Select

Trait Select 

Source
pub trait Select<C: Chromosome>: Send + Sync {
    // Required method
    fn select(
        &self,
        population: &Population<C>,
        optimize: &Objective,
        count: usize,
    ) -> Population<C>;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

A trait for selection algorithms. Selection algorithms are used to select individuals from a population to be used in the next generation. The selection process is (most of the time) based on the fitness of the individuals in the population. The selection process can be based on the fitness of the individuals in the population, or it can be based on the individuals themselves.

Required Methods§

Source

fn select( &self, population: &Population<C>, optimize: &Objective, count: usize, ) -> Population<C>

Provided Methods§

Source

fn name(&self) -> &'static str

Implementors§