{"id":60447,"library":"cminpack","title":"cminpack","description":"A C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems","status":"active","version":"1.3.11","language":"cpp","source_language":null,"source_url":null,"tags":["numerical","optimization","nonlinear","solver"],"install":[{"cmd":"vcpkg install cminpack","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cminpack CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE cminpack::cminpack)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"cminpack.h","correct":"#include <cminpack.h>"}],"quickstart":{"code":"#include <cminpack.h>\n#include <stdio.h>\n\nint fcn(void *p, int n, double *x, double *fvec, int iflag) {\n    fvec[0] = x[0]*x[0] - 4.0;\n    return 0;\n}\n\nint main() {\n    int n = 1;\n    double x[1] = {1.0};\n    double fvec[1];\n    double tol = 1e-6;\n    int info = hybrd1(fcn, 0, n, x, fvec, tol, 0);\n    printf(\"Solution: %f\\n\", x[0]);\n    return 0;\n}","lang":"cpp","description":"Solve a simple nonlinear equation using hybrd1"},"warnings":[{"fix":"Refer to documentation for proper array indexing and workspace allocation.","message":"cminpack uses Fortran-style 1-based indexing internally; C interface may be confusing.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'c/c':3 'cminpack':1 'equat':15 'fortran':11 'least':18 'minpack':7 'nonlinear':14,17,23 'numer':21 'optim':22 'origin':9 'problem':20 'rewrit':4 'softwar':8 'solv':13 'solver':24 'squar':19","created_at":"2026-06-16T19:31:17.930724+00:00","updated_at":"2026-06-16T19:31:17.930724+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}