Skip to main content

dual_annealing

Function dual_annealing 

Source
pub fn dual_annealing(
    f: impl FnMut(&[f64]) -> f64,
    lower: &[f64],
    upper: &[f64],
    options: DualAnnealingOptions,
) -> Result<GlobalResult, ErrorsJSL>
Expand description

Dual annealing (Xiang et al., 1997; SciPy’s dual_annealing): generalised simulated annealing whose heavy-tailed Tsallis visiting distribution makes long jumps likely at high temperature, with the temperature falling as T(t) = T₀ (2^{q_v−1} − 1)/((1 + t)^{q_v−1} − 1), acceptance of uphill moves with probability [1 − (1 − q_a) ΔE/T]^{1/(1−q_a)}, a local L-BFGS-B search whenever the best point improves (or nothing has improved for a long time), and re-annealing from a random point once the temperature falls below restart_temp_ratio · T₀.