pub fn cobyla<P: ConstrainedProblem>(
problem: &P,
x0: Vec<f64>,
options: CobylaOptions,
) -> Result<ConstrainedResult, ErrorsJSL>Expand description
Minimises f subject to g(x) ≤ 0 and h(x) = 0 without derivatives, by Powell’s COBYLA
(SciPy’s minimize(method='COBYLA'); equalities become pairs of inequalities).
The method keeps a simplex of n + 1 points and the linear functions that interpolate the
objective and every constraint on it. Each iteration minimises the linear objective subject
to the linear constraints within a ball of radius ρ around the best vertex (best by the
merit f + μ·max violation, with μ raised whenever a step would not decrease it), and
replaces a vertex by the new point. Steps that would spoil the simplex’s shape are replaced
by geometry steps, and ρ is halved when the trust-region steps become short, until it
reaches rhoend. The derivatives defaulted by ConstrainedProblem are never called.