Type Definition genevo::genetic::Parents

source · []
pub type Parents<G> = Vec<G>;
Expand description

The Parents type defines a tuple of individuals that are needed for breeding one offspring. The operator::SelectionOp selects a list of parents which are taken by the operator::CrossoverOp for breeding the offspring.

Commonly parents are defined as tuple of two Genotypes but some derivation of the genetic algorithm wants to use three or more Genotypes for breeding.

Note: For an efficient and easy to use implementation the logical tuple of parents is software technically typed as vector.