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.9.5.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lmfit-0.9.5-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

lmfit-0.9.5-py2-none-any.whl (102.6 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: lmfit-0.9.5.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lmfit-0.9.5.tar.gz
Algorithm Hash digest
SHA256 eebc3c34ed9f3e51bdd927559a5482548c423ad5a0690c6fdcc414bfb5be6667
MD5 3a38aa3e4510a564d9e2f606d2537522
BLAKE2b-256 06a042fda64e1fb05bfc21367fbc34732b83eb637e6ef3efb1e3466212b69271

See more details on using hashes here.

File details

Details for the file lmfit-0.9.5-py3-none-any.whl.

File metadata

File hashes

Hashes for lmfit-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2d226ac6e835f3853375b2e37362789bf896fed69a2f141e3f7e4a703f8af4a6
MD5 10abf1e4d7311310a5a5940a3a834b21
BLAKE2b-256 4d002ef8e34c034da7a2a56d3878cf8049ac12711f85d5ac725900677b8ecdce

See more details on using hashes here.

File details

Details for the file lmfit-0.9.5-py2-none-any.whl.

File metadata

File hashes

Hashes for lmfit-0.9.5-py2-none-any.whl
Algorithm Hash digest
SHA256 75b014616f1b1ff848a64ec8c357305801f7dad9a5a4b989717ab6423d7e56ab
MD5 6e60be8cf80ab1d082babc40b5fe1550
BLAKE2b-256 ca4d9d1769a95621b2647c55e82792a602d1be658d73328da1cb52136bcea18a

See more details on using hashes here.

Supported by

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