crossover
inline fun <V, F> CellEvolveScope<V, F>.crossover(chance: Double, crossover: (chromosome1: Chromosome<V, F>, chromosome2: Chromosome<V, F>) -> Unit)
Performs a crossover step for population in CellularGA that modify in-place the input chromosomes.
selection stage is expected before the call.
executes crossover between CellEvolveScope.cell and neighbor CellEvolveScope.neighbors from index = 0 (neighbor is previously selected)
Welcome to use for your own implementations! It is a base function for executing crossover step in CellularGA.
Parameters
chance
chance of crossover between a pair of chromosomes
crossover
specific crossing action (How chromosomes will be crossed)