leastsqbound

Constrained multivariate least-squares optimizer


License
BSD-3-Clause
Install
pip install leastsqbound==1.1

Documentation

leastsqbound

What is leastsqbound

leastsqbound is a enhanced version of SciPy's optimize.leastsq function which allows users to include min, max bounds for each fit parameter. Constraints are enforced by using an unconstrained internal parameter list which is transformed into a constrained parameter list using non-linear functions.

With the release of SciPy version 0.17, SciPy comes with nonlinear least-squares solver which allows users to include bounds on the fit parameters, scipy.optimize.least_squares. The methods used in scipy.optimized.least_squares to inforce the bounds are much better than the method used in leastsqbound and the use of the SciPy method is encouraged.

As this replacements is available, leastsqbound is longer being actively developed.