Chromosome Mutable List
data class ChromosomeMutableList<T, F : Comparable<F>>(var value: MutableList<T>, var fitness: F? = null, clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>? = null) : Chromosome<MutableList<T>, F>
Base instance for Chromosome with value as MutableList of something
Use mutableList function to easily create ChromosomeMutableList
Constructors
Link copied to clipboard
constructor(value: MutableList<T>, fitness: F? = null, clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>? = null)
Properties
Link copied to clipboard
Combination of genes for a Chromosome (individual) (Often an array or string)
Functions
Link copied to clipboard
Clone function to create deap copied Chromosome with the same value and fitness
Link copied to clipboard
Link copied to clipboard
Base evaluates function for Chromosome by fitnessFunction