Skip to main content

differential_evolution

Function differential_evolution 

Source
pub fn differential_evolution(
    cfg: &OptimConfig,
    f: &dyn Fn(&[f64]) -> f64,
    bounds: &[(f64, f64)],
    seed: u64,
) -> OptimResult
Expand description

Minimize f inside the per-parameter bounds box with DE/rand/1/bin. Deterministic for a given seed; the population size is max(15, 10 * dim). Converged when the population’s value spread falls below tol; iterations counts generations.