pub fn basinhopping(
f: impl FnMut(&[f64]) -> f64,
x0: &[f64],
options: BasinhoppingOptions,
) -> GlobalResultExpand description
Basin hopping (Wales and Doye, 1997; SciPy’s basinhopping): a random walk on the local
minima. Each step displaces the current minimum uniformly by up to stepsize in every
coordinate, minimises locally (L-BFGS-B with finite differences), and accepts the new minimum
by the Metropolis rule exp(−(f_new − f_old)/T) > u. Every interval steps the step size is
divided (or multiplied) by stepwise_factor if the acceptance rate is above (below) the
target. Returns the lowest minimum seen.