Least-Squares Minimization with Bounds and Constraints
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.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|lmfit-0.7.tar.gz (776.7 kB) Copy SHA256 hash SHA256||Source||None||Sep 19, 2012|
|lmfit-0.7.win32-py2.6.exe (232.3 kB) Copy SHA256 hash SHA256||Windows Installer||2.6||Sep 19, 2012|
|lmfit-0.7.win32-py2.7.exe (232.3 kB) Copy SHA256 hash SHA256||Windows Installer||2.7||Sep 19, 2012|
|lmfit-0.7.win32-py3.2.exe (232.3 kB) Copy SHA256 hash SHA256||Windows Installer||3.2||Sep 19, 2012|