Module genevo::recombination::discrete
source · [−]Expand description
The discrete
module provides operator::CrossoverOp
s that recombine
genetic::Genotype
s by exchanging variable values between the parent
individuals. Discrete recombination can be applied for binary encoded
genotypes and value encoded genotypes.
The provided operator::CrossoverOp
s are:
UniformCrossBreeder
forfixedbitset::FixedBitSet
,smallvec::SmallVec
andVec
of any type.SinglePointCrossBreeder
forfixedbitset::FixedBitSet
,smallvec::SmallVec
andVec
of any type.MultiPointCrossBreeder
forfixedbitset::FixedBitSet
,smallvec::SmallVec
andVec
of any type.
Structs
The MultiPointCrossBreeder
operator combines binary or value encoded
genetic:Genotype
s by splitting the vector of values into 2 or several
slices and combining the slices from randomly picked parents into the new
genetic:Genotype
.
The SinglePointCrossBreeder
operator combines binary encoded or value
encoded genetic::Genotype
s by splitting the vector of bits/values into 2
slices and combining the slices from randomly picked parents into the new
genetic:Genotype
.
The UniformCrossBreeder
operator combines binary encoded or value encoded
genetic::Genotype
s by walking through the bits/values of the parents one
by one and randomly selecting the bit/value of one partner that is copied to
the resulting child.