Properties

Link copied to clipboard
abstract var fitness: F?

Calculated value by fitness function for a specific individual

Link copied to clipboard
abstract var value: V

Combination of genes for a Chromosome (individual) (Often an array or string)

Functions

Link copied to clipboard
abstract fun clone(): Chromosome<V, F>

Clone function to create deap copied Chromosome with the same value and fitness

Link copied to clipboard
abstract operator fun compareTo(other: Chromosome<V, F>): Int
Link copied to clipboard
inline fun <V, F> Chromosome<V, F>.evaluate(fitnessFunction: (V) -> F)

Base evaluates function for Chromosome by fitnessFunction