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

Uploaded Source

Built Distributions

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

lmfit-0.7.2.win32-py3.2.exe (261.4 kB view details)

Uploaded Source

lmfit-0.7.2.win32-py2.7.exe (261.4 kB view details)

Uploaded Source

lmfit-0.7.2.win32-py2.6.exe (261.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.2.tar.gz
Algorithm Hash digest
SHA256 f6c3cdf68ad70db304b450500c3064f0eff7d109c971378c10b86f195d0fc084
MD5 02ba890cf48d9671bda946cf44553f21
BLAKE2b-256 cf8bcdcf7cf1449d4e02d71d8178a175de1184ba7b84d21bd192dba5beaab73f

See more details on using hashes here.

File details

Details for the file lmfit-0.7.2.win32-py3.2.exe.

File metadata

  • Download URL: lmfit-0.7.2.win32-py3.2.exe
  • Upload date:
  • Size: 261.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lmfit-0.7.2.win32-py3.2.exe
Algorithm Hash digest
SHA256 6bf929273b8c4fe56801520bde506416883f5bdcaf3a8a098d6b2eca3102264b
MD5 a3010a7011ca681de69fbfd66f8fc80c
BLAKE2b-256 fc3af556a356a3e206a4bc93010e098df102b6119fa648afaa2193722d5532b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lmfit-0.7.2.win32-py2.7.exe
  • Upload date:
  • Size: 261.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lmfit-0.7.2.win32-py2.7.exe
Algorithm Hash digest
SHA256 7cf5b902e4dc311410e1c99f0de55cbb3b4245bb3930c26aec950c1aa481b7c2
MD5 8d703a76a2c2dc9c98baebd1fcacd14a
BLAKE2b-256 8ef754d5a38a87795dcd9a7c33c461bf8fdfbc39239e8653656eee419d844bce

See more details on using hashes here.

File details

Details for the file lmfit-0.7.2.win32-py2.6.exe.

File metadata

  • Download URL: lmfit-0.7.2.win32-py2.6.exe
  • Upload date:
  • Size: 261.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lmfit-0.7.2.win32-py2.6.exe
Algorithm Hash digest
SHA256 d19363ed2d5784ab10ab7b3897d29010257208fbe931114c7ee8be58c27a0c8a
MD5 786a2d88f824f2bdc6567c27901a5e97
BLAKE2b-256 d361e1e9cddb050199e38b8f35e47861adcbff2839786082f4331b5507ed7241

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