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.4.tar.gz (360.2 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.4.win32-py3.2.exe (272.9 kB view details)

Uploaded Source

lmfit-0.7.4.win32-py2.7.exe (272.9 kB view details)

Uploaded Source

lmfit-0.7.4.win32-py2.6.exe (272.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.4.tar.gz
Algorithm Hash digest
SHA256 773090598c431e6dec224a65707f5772cfebb2bea9948d76f67fc201aa63a25f
MD5 121cc508575b6c9e84f50d89fe6c40d0
BLAKE2b-256 44f9fc137697e6015c914be5a1e6ad0334e656c616a08a9202f40c24629efde2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.4.win32-py3.2.exe
Algorithm Hash digest
SHA256 07dfa45965edc6469b2f2a72e465fc96705e4ea1dd4ba094878edb355e949540
MD5 3bf96a7aee7dc9229c839a468cb0289b
BLAKE2b-256 988c6418e88239856f890012b93c0f9827c9ddec5017d5aaa722ac96794a307a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.4.win32-py2.7.exe
Algorithm Hash digest
SHA256 bd101e3149908eaaa92f95f7eba53f503a23fa853fbd09ab5b764fbcd6d087bf
MD5 4daf634d7b20dbe97a9f808603c06b77
BLAKE2b-256 300035aa03c2217836d5ef5c77a71739ea3b93e417f1f8ac56524e5c7313a7b9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.4.win32-py2.6.exe
Algorithm Hash digest
SHA256 00a4d26ea8e8f3e1cd00bcbb87aac79992f37a4cd17d8a7b0f6a6f36f89b2d6e
MD5 288785122882fb2bd8cccd8cc64f8c91
BLAKE2b-256 79bae1640303e57815054872e6041123b8634887ab3c69ea9193a7a3b77a147c

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