Optimization and root finding (scipy.optimize)

Optimization

Local Optimization

The minimize function supports the following methods:

The minimize_scalar function supports the following methods:

The specific optimization method interfaces below in this subsection are not recommended for use in new scripts; all of these methods are accessible via a newer, more consistent interface provided by the functions above.

General-purpose multivariate methods:

Constrained multivariate methods:

Univariate (scalar) minimization methods:

Equation (Local) Minimizers

Global Optimization

Rosenbrock function

Fitting

Linear Programming

Simplex Algorithm:

The linprog function supports the following methods:

Assignment problems:

Utilities