Expand description
Minima of functions of several variables over a box: local, and global.
minimize_local walks downhill from a start by the Nelder-Mead simplex,
which asks for values only. global_minimum finds the least value over
the whole box by branch and bound: each sub-box’s floor is its centre’s
value less a Lipschitz constant times its half-diagonal, the box with the
lowest floor is split, and the search stops when no floor lies more than
the tolerance below the best value found. The constant is estimated from
the function’s own slopes, so the certificate holds as far as that
estimate does. swarm_minimum is the particle swarm, for a function
too rough for a Lipschitz bound to say much.
Structs§
- Minimum
- A minimum found over a box.
Functions§
- global_
minimum - The least value of
fover the box, to withintolerance, by Lipschitz branch and bound with local polishing. - minimize_
local - A local minimum of
fnearstartwithin the box, by the Nelder-Mead simplex from a first simplex ofstepalong each axis. Points are held to the box. - swarm_
minimum - A minimum of
fover the box by particle swarm:particlespoints moving under their own best and the swarm’s best foriterationsrounds, from a deterministic scattering, then polished locally. No certificate: the swarm reports the best it saw.