[][src]Trait optlib::genetic::Selection

pub trait Selection<T: Clone> {
    fn kill(&mut self, population: &mut Population<T>);
}

The trait with selection algorithm.

T - type of a point in the search space for goal function (chromosomes).

Required methods

fn kill(&mut self, population: &mut Population<T>)

The method kills bad individuals. The method must call Individual::kill() method for individuals which will not go to next generation.

Loading content...

Implementors

impl<G: Float> Selection<Vec<G>> for CheckChromoInterval<G>[src]

impl<T: Clone> Selection<T> for KillFitnessNaN[src]

impl<T: Clone> Selection<T> for LimitPopulation[src]

Loading content...