Expand description
Differential evolution (Storn and Price 1997) on real vectors, with Latin hypercube
initialisation and a warm-start library (Yue et al. 2023), and RADES, the rank-based DE
with a success archive (Parque 2024), in rades.
use evolutionary_planning::de::{Config, De};
use evolutionary_planning::operators::real::Bounds;
use evolutionary_planning::problems::single::rosenbrock;
use evolutionary_planning::{Limits, SplitMix64};
let mut de = De::new(Config::default(), Bounds::uniform(2, -2.0, 2.0));
let mut objective = |x: &Vec<f64>| rosenbrock(x);
let outcome = de.run(&mut objective, &mut Limits::evaluations(20_000), &mut (), &mut SplitMix64::new(1));
assert!(outcome.best_cost() < 1e-8);Modules§
- rades
- RADES, rank-based differential evolution with a successful archive (Parque 2024, equations (5)–(11)).
Structs§
- Config
- Parameters of a
Derun. - De
- Differential evolution within box bounds. A trial coordinate that leaves the box is set halfway between the target’s coordinate and the violated bound (“bounce back”), which keeps the population inside without piling it up on the boundary.
- Warm
Start Library - Stored solutions keyed by task descriptors, looked up by Euclidean distance.
Enums§
- Crossover
Kind - How the trial vector takes coordinates from the mutant (the
zofDE/x/y/z). - Initialization
- How the initial population is drawn.
- Strategy
- How the mutant vector is formed (the
x/yofDE/x/y/z).