Skip to main content

Module moead

Module moead 

Source
Expand description

MOEA/D (Zhang and Li 2007): multi-objective search by decomposition into N scalar subproblems, one per weight vector, each improved by mating within its neighbourhood of the T closest weight vectors; with the neighbourhood mating probability δ and the replacement limit n_r of Li and Zhang (2009).

Constraints are handled by comparing violation first, then the scalarised cost.

use evolutionary_planning::moead::{Config, Decomposition, Moead};
use evolutionary_planning::operators::real::{Bounds, Polynomial, Sbx};
use evolutionary_planning::operators::{NoRepair, Variation};
use evolutionary_planning::pareto::{das_dennis, hypervolume};
use evolutionary_planning::problems::multi::Zdt;
use evolutionary_planning::{Limits, SplitMix64};

let bounds = Bounds::uniform(10, 0.0, 1.0);
let mut moead = Moead::new(Config::default(), das_dennis(2, 99), Variation {
    init: bounds.clone(),
    crossover: Sbx { bounds: bounds.clone(), eta: 20.0 },
    mutation: Polynomial { bounds, eta: 20.0, rate: None },
    repair: NoRepair,
});
let outcome = moead.run(&mut Zdt::Zdt1, &mut Limits::evaluations(20_000), &mut (), &mut SplitMix64::new(1));
let points: Vec<&[f64]> = outcome.front.iter().map(|e| e.objectives.as_slice()).collect();
assert!(hypervolume(&points, &[1.1, 1.1]) > 0.85);

Structs§

Config
Parameters of a Moead run.
Moead
MOEA/D with caller-supplied weight vectors (see das_dennis).

Enums§

Decomposition
How a weight vector turns an objective vector into a scalar cost.