cxOrdered

@JvmName(name = "cxOrderedIntArray")
suspend fun <F> PanmicticEvolveScope<IntArray, F>.cxOrdered(chance: Double, parallelismLimit: Int = parallelismConfig.workersCount, crossoverType: CrossoverType = CrossoverType.Iterative)

Executes an ordered crossover (OX) on the input chromosome values. The two value are modified in place. This crossover expects Chromosome.value as IntArray. Mixes indexes without conflicts, preserving parental relationships.

Parameters

chance

chance of crossover between a pair of chromosomes

parallelismLimit

limit of parallel workers

crossoverType

describes the strategy of the crossing stage in PanmicticGA