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

Implementation of a genotype using Vec.

Implementation of genotype using fixedbistset::FixedBitSet.

Implementation of binary encoded genetic::Genotype using smallvec::SmallVec.

Implementors