Skip to main content

Module constrained

Module constrained 

Source
Expand description

Nonlinearly constrained minimization: min f(x) subject to h(x) = 0 (equalities) and g(x) ≤ 0 (inequalities).

  • sqp: sequential quadratic programming (Han-Powell). Each iteration solves the quadratic model min ½dᵀBd + ∇fᵀd subject to the linearised constraints, with B a damped-BFGS approximation of the Lagrangian Hessian (Powell’s damping keeps it positive definite). The QP is solved through its dual, a bound-constrained problem in the multipliers, by an active set method; steps are globalised by a line search on the ℓ₁ merit function. Superlinear convergence on smooth problems.
  • augmented_lagrangian: the method of multipliers. Each outer iteration minimises the augmented Lagrangian (Rockafellar’s form for inequalities) with L-BFGS, then updates the multipliers and, when the constraint violation stalls, the penalty. Simple and robust, but converges more slowly.

Problems implement ConstrainedProblem; derivatives default to central differences.

See the book entry Constrained optimisation.

Structs§

ConstrainedOptions
Settings for the constrained solvers.
ConstrainedResult
The outcome of a constrained solve.

Traits§

ConstrainedProblem
A constrained minimization problem. Only ConstrainedProblem::objective is required; constraints default to none and derivatives to central differences.

Functions§

augmented_lagrangian
The augmented Lagrangian method (method of multipliers) from x0.
sqp
Sequential quadratic programming from x0 (which need not be feasible).