PreBirth

Trait PreBirth 

Source
pub trait PreBirth<T> {
    // Required method
    fn pre_birth(
        &mut self,
        population: &Population<'_, T>,
        new_chromosomes: &mut Vec<T>,
    );
}
Expand description

The trait may be used after mutation but before birth of the individuals.

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

Required Methods§

Source

fn pre_birth( &mut self, population: &Population<'_, T>, new_chromosomes: &mut Vec<T>, )

The method may modify chromosomes list before birth of the individuals.

Implementors§