pub fn trust_constr_with<P: ConstrainedProblem>(
problem: &P,
x0: Vec<f64>,
options: ConstrainedOptions,
hessian: HessianUpdate,
callback: Option<&mut dyn FnMut(&TrustConstrState<'_>) -> bool>,
) -> Result<ConstrainedResult, ErrorsJSL>Expand description
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.