Expand description
The search goal to optimize towards (maximize or minimize).
Each problem will usually have its own specific Fitness function, therefore you need to implement it yourself. Because the Fitness function is specific, it is also bound to the Genotype through a trait attribute (no reason to make it generic, as the client implements for a single Genotype type).
See Fitness Trait for examples and further documentation
Modules§
- placeholders for testing and bootstrapping, not really used in practice
Enums§
Traits§
- The fitness function, is implemented as a fitness method object.
Type Aliases§
- This is just a shortcut for
<Self::Genotype as Genotype>::Chromosome - This is just a shortcut for
Self::Genotype - This is just a shortcut for
Population<<Self::Genotype as Genotype::Chromosome> - Use isize for easy handling of scores (ordering, comparing) as floats are tricky in that regard.