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

Uploaded Source

Built Distributions

lmfit-0.7.win32-py3.2.exe (232.3 kB view details)

Uploaded Source

lmfit-0.7.win32-py2.7.exe (232.3 kB view details)

Uploaded Source

lmfit-0.7.win32-py2.6.exe (232.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for lmfit-0.7.tar.gz
Algorithm Hash digest
SHA256 bbd2dc9b20cb5591f1346af974da8cfc4d4c7895b80a7a571cf276c6eea287fb
MD5 c194e76b8b759753765e47cbe1a5b301
BLAKE2b-256 93a3d2ad440450a9915450087c3e28ab07ceb55849b691145d743f7974a75779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.7.win32-py3.2.exe
Algorithm Hash digest
SHA256 be7931cb12cf01519c029f3a42e2b86362b251165dad7f3a118d5ca07a7ed5da
MD5 9737924707212fb330719368b935e7ad
BLAKE2b-256 9db0337ed83c15467ac4583690d0fa6210099dbf9caca11030f7367330795779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.7.win32-py2.7.exe
Algorithm Hash digest
SHA256 9536a6334fc2809e11e86a6cf9bf2df4ecb65cc4a44cc60b708987934af24010
MD5 38a9bf7e174242385cbe3ca96f651eb1
BLAKE2b-256 dbf5acdd720b3709111a0108ab6ec1768bab9a27d06142d62f243b22d2f59bbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lmfit-0.7.win32-py2.6.exe
Algorithm Hash digest
SHA256 182bca45b351d22adac2408905d318792f81e2918032553cdaa40d1a593b444f
MD5 9ed912562bc25348f70b7666a4fb4d17
BLAKE2b-256 71feb06f70075dd9297cc971ce11fd00c3627daa85b17660114076ed390f3895

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