pub fn shgo<P: ConstrainedProblem>(
problem: &P,
lower: &[f64],
upper: &[f64],
options: ShgoOptions,
) -> Result<ShgoResult, ErrorsJSL>Expand description
Finds the global minimum of problem in the box [lower, upper] (with its inequality and
equality constraints) by simplicial homology global optimisation.
The box is sampled either by a simplicial complex (the corners and centre of the box, refined iters − 1
times by the midpoints of all edges; vertices violating an inequality get the value +∞) or by the first
n · iters points of the (unscrambled) Sobol sequence (infeasible ones dropped); the vertices are
Delaunay-triangulated. A
sample whose value is lower than at all its neighbours in the triangulation is a
minimiser: it approximates a local minimum, and the number of them estimates the number of
basins (the rank of the complex’s homology, in the language of the paper). A local SLSQP solve
is started from each minimiser in order of value, and the distinct results are returned with
the best of them.