Skip to main content

Module slsqp

Module slsqp 

Source
Expand description

SLSQP: sequential least-squares quadratic programming (Kraft, 1988; SciPy’s minimize(method='SLSQP')) for smooth problems with bounds and nonlinear equality and inequality constraints.

Each iteration minimises a quadratic model ½ dᵀBd + ∇fᵀd of the objective subject to the linearised constraints and the bounds (B is a positive definite BFGS approximation of the Hessian of the Lagrangian, updated by Powell’s damped formula), steps along d by a line search on an ℓ₁ merit function whose penalty weights follow the multipliers of the subproblem, and stops when the objective and the constraints settle to ftol. A subproblem whose linearised constraints are inconsistent is relaxed by a scalar that scales their constants.

See the book entry Constrained optimisation.

Structs§

SlsqpOptions
Options for slsqp, with SciPy’s defaults.
SlsqpResult
The result of slsqp.

Enums§

SlsqpStatus
Why slsqp stopped.

Functions§

slsqp
Minimises problem.objective subject to the bounds lower ≤ x ≤ upper (None: unbounded) and the problem’s inequalities(x) ≤ 0 and equalities(x) = 0, by SLSQP (SciPy’s minimize(method='SLSQP')). The problem’s gradient and Jacobians are used (central differences unless the problem provides them); x0 is moved into the bounds first.