pub trait Genotype: Clone + Debug + PartialEq + Send + Sync {
type Dna: Clone + Debug + PartialEq;
}
Expand description
A Genotype
defines those properties of a Phenotype
that are relevant
for the genetic algorithm. Respectively they are used to determine the
Fitness
value of the solution candidate. These properties are also called
chromosomes.
In order to achieve an efficient execution of the genetic algorithm these properties should be stored in a compact form such as strings or vectors of primitive types.
Associated Types
Implementations on Foreign Types
sourceimpl<V> Genotype for Vec<V> where
V: Clone + Debug + PartialEq + Send + Sync,
impl<V> Genotype for Vec<V> where
V: Clone + Debug + PartialEq + Send + Sync,
Implementation of a genotype using Vec
.
type Dna = V
sourceimpl Genotype for FixedBitSet
impl Genotype for FixedBitSet
Implementation of genotype using fixedbistset::FixedBitSet
.
sourceimpl<A, V> Genotype for SmallVec<A> where
A: Array<Item = V> + Sync,
V: Clone + Debug + PartialEq + Send + Sync,
impl<A, V> Genotype for SmallVec<A> where
A: Array<Item = V> + Sync,
V: Clone + Debug + PartialEq + Send + Sync,
Implementation of binary encoded genetic::Genotype
using smallvec::SmallVec
.