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§
- Trust
Constr State - What the callback of
trust_constr_withsees after each iteration.Displaygives the line that SciPy prints withverbose=2, so a callback that prints it is the verbosity option:Some(&mut |s| { println!("{s}"); false }).
Enums§
- Hessian
Update - How the Hessian of the Lagrangian is obtained (SciPy’s
hessargument).
Functions§
- trust_
constr - Minimises
f(x)subject toh(x) = 0andg(x) ≤ 0by a trust-region interior-point method (SciPy’sminimize(method='trust-constr')with a BFGS Hessian). - trust_
constr_ with trust_constrwith a choice of the Hessian and a callback. The callback is called after every iteration and stops the solve by returningtrue(the result then hasconverged = false).HessianUpdate::ExactneedsConstrainedProblem::lagrangian_hessianto return the matrix.