Trait genevo::operator::CrossoverOp
source · [−]pub trait CrossoverOp<G>: GeneticOperator where
G: Genotype, {
fn crossover<R>(&self, parents: Parents<G>, rng: &mut R) -> Children<G>
where
R: Rng + Sized;
}
Expand description
A CrossoverOp
defines a function of how to crossover two
genetic::Genotype
s, often called parent genotypes, to derive new
genetic::Genotype
s. It is analogous to reproduction and biological
crossover. Cross over is a process of taking two parent solutions and
producing an offspring solution from them.