[][src]Trait oxigen::crossover::Crossover

pub trait Crossover<T: PartialEq, G: Genotype<T>>: Send + Sync {
    fn cross(&self, ind1: &G, ind2: &G) -> (G, G);
}

This trait defines the cross function.

Required methods

fn cross(&self, ind1: &G, ind2: &G) -> (G, G)

Generates two children combining the two selected individuals.

Loading content...

Implementors

impl<T: PartialEq, G: Genotype<T>> Crossover<T, G> for CrossoverFunctions[src]

Loading content...