python-lmfit - Least-Squares Minimization with Constraints (Python 2)

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Universe i386
Package filename python-lmfit_0.9.7+dfsg-1_all.deb
Package name python-lmfit
Package version 0.9.7+dfsg
Package release 1
Package architecture all
Package type deb
Category universe/python
License -
Maintainer Ubuntu Developers <>
Download size 84.96 KB
Installed size 408.00 KB
The lmfit Python package provides a simple, flexible interface to
non-linear optimization or curve fitting problems. The package
extends the optimization capabilities of scipy.optimize by replacing
floating pointing values for the variables to be optimized with
Parameter objects. These Parameters can be fixed or varied, have
upper and/or lower bounds placed on its value, or written as an
algebraic expression of other Parameters.
The principal advantage of using Parameters instead of simple
variables is that the objective function does not have to be
rewritten to reflect every change of what is varied in the fit, or
what relationships or constraints are placed on the Parameters. This
means a scientific programmer can write a general model that
encapsulates the phenomenon to be optimized, and then allow user of
that model to change what is varied and fixed, what range of values
is acceptable for Parameters, and what constraints are placed on the
model. The ease with which the model can be changed also allows one
to easily test the significance of certain Parameters in a fitting
The lmfit package allows a choice of several optimization methods
available from scipy.optimize. The default, and by far best tested
optimization method used is the Levenberg-Marquardt algorithm from
from MINPACK-1 as implemented in scipy.optimize.leastsq. This method
is by far the most tested and best support method in lmfit, and much
of this document assumes this algorithm is used unless explicitly
stated. An important point for many scientific analysis is that this
is only method that automatically estimates uncertainties and
correlations between fitted variables from the covariance matrix
calculated during the fit.
A few other optimization routines are also supported, including
Nelder-Mead simplex downhill, Powell's method, COBYLA, Sequential
Least Squares methods as implemented in scipy.optimize.fmin, and
several others from scipy.optimize. In their native form, some of
these methods setting allow upper or lower bounds on parameter
variables, or adding constraints on fitted variables. By using
Parameter objects, lmfit allows bounds and constraints for all of
these methods, and makes it easy to swap between methods without
hanging the objective function or set of Parameters.
Finally, because the approach derived from MINPACK-1 usin the
covariance matrix to determine uncertainties is sometimes questioned
(and sometimes rightly so), lmfit supports methods to do a brute
force search of the confidence intervals and correlations for sets of
This is the Python 2 version of the package.


Package Version Architecture Repository
python-lmfit_0.9.7+dfsg-1_all.deb 0.9.7+dfsg all Ubuntu Universe
python-lmfit - - -


Name Value
python-numpy -
python-scipy -
python-six -
python:any >= 2.7.5-5~
python:any << 2.8


Type URL
Binary Package python-lmfit_0.9.7+dfsg-1_all.deb
Source Package lmfit-py

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-lmfit deb package:
    # sudo apt-get install python-lmfit




2018-02-18 - Picca Frédéric-Emmanuel <>
lmfit-py (0.9.7+dfsg-1) unstable; urgency=medium
* New upstream version 0.9.7+dfsg
* Standards-Verion bumped to 4.1.3 (extra -> optional)
* d/watch
- Updated to version 4
2016-10-15 - Picca Frédéric-Emmanuel <>
lmfit-py (0.9.5+dfsg-2) unstable; urgency=medium
* Standards-Verion bumped to 3.9.8 (nothing to do)
* Removed ipython(3)-notebook dependency (Closes: #840521)
* Removed matplotlib, tk, latex, pandas Build-Depends (useless)
* Simplified d/rules
2016-08-17 - Picca Frédéric-Emmanuel <>
lmfit-py (0.9.5+dfsg-1) unstable; urgency=medium
* Imported Upstream version 0.9.5+dfsg
2016-03-31 - Picca Frédéric-Emmanuel <>
lmfit-py (0.9.3+dfsg-1) unstable; urgency=medium
* Imported Upstream version 0.9.3+dfsg
* fix the autopkgtest scripts
* Use cme to update the package
* Standards-Verion bumped to 3.9.7 (nothing to do)
2015-10-31 - Picca Frédéric-Emmanuel <>
lmfit-py (0.9.2+dfsg-1) unstable; urgency=medium
* Imported Upstream version 0.9.2+dfsg (Closes: #802085)
* Use the pypi redirector
2014-12-30 - Picca Frédéric-Emmanuel <>
lmfit-py (0.8.3+dfsg.1-1~exp1) experimental; urgency=medium
* Imported Upstream version 0.8.3+dfsg.1
* Run the test suite during the build
* Standards-Version bumped to 3.9.6 (no other changes required)
* Add the autopkgtest test suite.
2014-08-31 - Picca Frédéric-Emmanuel <>
lmfit-py (0.8.0+dfsg.1-1) unstable; urgency=medium
* Imported Upstream version 0.8.0+dfsg.1
* Remove all patches (applyed upstream)
* Add the doc-base registration
2014-03-07 - Picca Frédéric-Emmanuel <>
lmfit-py (0.7.4+dfsg.2-1) unstable; urgency=low
* Initial release (Closes: #741078)

See Also

Package Description
python-logbook-doc_0.12.3-1_all.deb logging system for Python that replaces the standard library's module (doc)
python-logbook_0.12.3-1_all.deb logging system for Python that replaces the standard library's module
python-logging-tree_1.4-1_all.deb introspect and display the logging tree in Python
python-loggingx_0.1.3-1.1build1_all.deb Generic utilities for the Python logging facility
python-logilab-common_1.4.1-1_all.deb useful miscellaneous modules used by Logilab projects
python-logilab-constraint_0.5.0-2_all.deb constraints satisfaction solver in Python
python-logsparser_0.4-1_all.deb Python library for log parsing, tagging and analysis
python-loofah_0.1-1_all.deb debile helper to rebuild a set of existing packages
python-louie_1.1-4_all.deb Python signal dispatching mechanism
python-louis_3.5.0-1_all.deb Python bindings for liblouis
python-ltsp_0.2-0ubuntu3_all.deb provides ltsp related functions
python-lucene_4.10.1+dfsg-2_i386.deb Python extension for accessing Java Lucene
python-lunar_2.0.1-3_i386.deb Python bindings for the Chinese Lunar library
python-lunch_0.4.0-2_all.deb distributed process launcher
python-lxc_0.1-3_i386.deb Linux Containers userspace tools (Python 2.x bindings)