replaceWithElitism

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:

Parameters

population

target population

index

target index of chromosome in population