Skip to main content

Least-Squares Minimization with Bounds and Constraints

Project description

A library for least-squares minimization and data fitting in Python. Built on top of scipy.optimize, lmfit provides a Parameter object which can be set as fixed or free, can have upper and/or lower bounds, or can be written in terms of algebraic constraints of other Parameters. The user writes a function to be minimized as a function of these Parameters, and the scipy.optimize methods are used to find the optimal values for the Parameters. The Levenberg-Marquardt (leastsq) is the default minimization algorithm, and provides estimated standard errors and correlations between varied Parameters. Other minimization methods, including Nelder-Mead’s downhill simplex, Powell’s method, BFGS, Sequential Least Squares, and others are also supported. Bounds and contraints can be placed on Parameters for all of these methods.

In addition, methods for explicitly calculating confidence intervals are provided for exploring minmization problems where the approximation of estimating Parameter uncertainties from the covariance matrix is questionable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lmfit-0.8.1.tar.gz (813.7 kB view details)

Uploaded Source

Built Distributions

lmfit-0.8.1.win32-py3.4.exe (290.0 kB view details)

Uploaded Source

lmfit-0.8.1.win32-py2.7.exe (295.1 kB view details)

Uploaded Source

File details

Details for the file lmfit-0.8.1.tar.gz.

File metadata

  • Download URL: lmfit-0.8.1.tar.gz
  • Upload date:
  • Size: 813.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lmfit-0.8.1.tar.gz
Algorithm Hash digest
SHA256 f45eb8fe1fc0db89de3dd7d3384ae5e06fccba9fa833daf2ab48bf11a740cc65
MD5 e5383a2f6f00b5cd4930e693f1075878
BLAKE2b-256 da46574c4e72626d3aefdf0d66bc56b674923ff70e3d2ecce5e782907e78db3d

See more details on using hashes here.

File details

Details for the file lmfit-0.8.1.win32-py3.4.exe.

File metadata

File hashes

Hashes for lmfit-0.8.1.win32-py3.4.exe
Algorithm Hash digest
SHA256 ab6f5267ecc73fe4d931d7a0c1842680285e4220b47225716235f7bdc92b0de7
MD5 a6d85223ac33935c228660bba7d828bd
BLAKE2b-256 4da8335b57a99fb8658686931ecbd28f6da1fb15e748a8b84032e7a8d9916079

See more details on using hashes here.

File details

Details for the file lmfit-0.8.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for lmfit-0.8.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 b4d659dad116088527b57ec68a206e06e05d0f9d7a6408ed5dd3b45561611921
MD5 5d337ee8bdaa07856ac765ad8bff8044
BLAKE2b-256 98275fa65cf221874a8813e8b9c2d23dd032d3ac2fee0d94777b394ad5729145

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page