Skip to main content

Module trust_constr

Module trust_constr 

Source
Expand description

trust-constr: a trust-region interior-point method for nonlinearly constrained problems (Byrd, Hribar and Nocedal, 1999; SciPy’s minimize(method='trust-constr')).

See the book entry Constrained optimisation.

Structs§

TrustConstrState
What the callback of trust_constr_with sees after each iteration. Display gives the line that SciPy prints with verbose=2, so a callback that prints it is the verbosity option: Some(&mut |s| { println!("{s}"); false }).

Enums§

HessianUpdate
How the Hessian of the Lagrangian is obtained (SciPy’s hess argument).

Functions§

trust_constr
Minimises f(x) subject to h(x) = 0 and g(x) ≤ 0 by a trust-region interior-point method (SciPy’s minimize(method='trust-constr') with a BFGS Hessian).
trust_constr_with
trust_constr with a choice of the Hessian and a callback. The callback is called after every iteration and stops the solve by returning true (the result then has converged = false). HessianUpdate::Exact needs ConstrainedProblem::lagrangian_hessian to return the matrix.