replace With Elitism
fun <V, F> CellularEvolveScope<V, F>.replaceWithElitism(population: Array<Chromosome<V, F>>, index: Int, old: Chromosome<V, F>, new: Chromosome<V, F>)
Executes replacing old chromosome with new when:
CellularEvolveScope.elitism =
falseCellularEvolveScope.elitism =
trueANDnew.fitness > old.fitness
Parameters
population
target population
index
target index of chromosome in population