Skip to main content

Nsga2

Type Alias Nsga2 

Source
pub type Nsga2<S, Cross, Mut, F, G> = GeneticAlgorithm<S, Nsga2RankAndScoringSelection, Nsga2RankCrowdingSurvival, Cross, Mut, F, G>;
Expand description

NSGA-II algorithm wrapper.

This struct is a thin facade over [GeneticAlgorithm] preset with the NSGA-II survival and selection strategy.

Construct it with Nsga2Builder. After building, call run and then population to retrieve the final non-dominated set.

For algorithmic details, see: Kalyanmoy Deb, Amrit Pratap, Sameer Agarwal, and T. Meyarivan (2002), “A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II”, IEEE Transactions on Evolutionary Computation, vol. 6, no. 2, pp. 182–197, Apr. 2002. DOI: 10.1109/4235.996017

Aliased Type§

pub struct Nsga2<S, Cross, Mut, F, G> {
    pub population: Option<Population<<F as FitnessFn>::Dim, <G as ConstraintsFn>::Dim>>,
    pub context: AlgorithmContext,
    /* private fields */
}

Fields§

§population: Option<Population<<F as FitnessFn>::Dim, <G as ConstraintsFn>::Dim>>§context: AlgorithmContext