selection
inline suspend fun <V, F> PanmicticEvolveScope<V, F>.selection(parallelismLimit: Int, crossinline selection: (source: Array<Chromosome<V, F>>, random: Random) -> Chromosome<V, F>)
Performs a selection step for population in PanmicticGA.
Welcome to use for your own implementations! It is a base function for executing selection step in PanmicticGA. Fully supports elitism - elite chromosomes go through the selection stage by default.
Parameters
parallelism Limit
limit of parallel workers
selection
specific selection action (How chromosomes will be selected from current population)