Skip to main content

SelectionOperator

Trait SelectionOperator 

Source
pub trait SelectionOperator {
    // Required method
    fn select(&self, population: &[Solution], n_select: usize) -> Vec<Solution> ;
}
Expand description

Trait for selection operators

Required Methods§

Source

fn select(&self, population: &[Solution], n_select: usize) -> Vec<Solution>

Select individuals from population

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§