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.0.tar.gz (799.1 kB view details)

Uploaded Source

Built Distributions

lmfit-0.8.0.win32-py3.4.exe (288.8 kB view details)

Uploaded Source

lmfit-0.8.0.win32-py2.7.exe (293.9 kB view details)

Uploaded Source

lmfit-0.8.0-py2-none-any.whl (78.3 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.8.0.tar.gz
Algorithm Hash digest
SHA256 a40524376b6ef7be97230b8b278c8516d72f2d6f644a1fe6e9a00c2257265b4d
MD5 5458fae6d7a2e22e00c7c8f9ec45ede0
BLAKE2b-256 603fe4363295190d31507de29a9b6020be20b66bf0fbc30a56f33c788c89f984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.8.0.win32-py3.4.exe
Algorithm Hash digest
SHA256 620117e6bb89c2f9b8b180168173114d8ef933616098359a8f26c0c3c73a1047
MD5 2016addab812808103c6121505ede3c0
BLAKE2b-256 4244a0bf4d2ef934554bf3d1f06e1efb4d3b680569ae8e1d0810dd03865bea5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.8.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 b997fd2dd454a616ee98b1358c640312a6df88e0f2a13fc1ceda0b16d990faeb
MD5 5df3d0efbc95e23f157508f91f7d8865
BLAKE2b-256 7222e1486c49982740fc2ec1656324bc674e7674ae1849ca8f5836baf769252a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.8.0-py2-none-any.whl
Algorithm Hash digest
SHA256 65254522cdc3be8590d1de1b62b75405af72d1cf6e2c11bd4adfa96b39217cc8
MD5 385dcb19c236e28d0a07c01a669db64f
BLAKE2b-256 0897eeaa67bc2bf50b024a401eef380f01e7930a42e7b0cb69e329a3f4a1f1c6

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