sel Tournament
suspend fun <V, F> PanmicticEvolveScope<V, F>.selTournament(size: Int, parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
Executes tournament selection step for Population:
Randomly select size chromosome for tournament between them. After that the best Chromosome is selected.
Parameters
size
the size of tournament (number selected chromosomes)
parallelism Limit
limit of parallel workers
suspend fun <V, F> PanmicticEvolveScope<V, F>.selTournament(percent: Double, size: Int, parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
Executes tournament selection step for Population:
Randomly select size * percent chromosome for tournament between them. After that the best Chromosome is selected. The remaining free space (size * (1.0 - percent)) will be filled with newly generated individuals by factory
Parameters
percent
determines the ratio of selected chromosomes to generated ones
size
the size of tournament (number selected chromosomes)
parallelism Limit
limit of parallel workers