selection

inline fun <V, F> CellEvolveScope<V, F>.selection(selection: (source: Array<Chromosome<V, F>>) -> Chromosome<V, F>)

Performs a selection step for population in CellularGA. Selects one partner from neighbors determined by the CellularNeighborhood with selection function. Selected partner will be moved to the first position of CellEvolveScope.neighbors (index = 0).

Welcome to use for your own implementations! It is a base function for executing selection step in CellularGA.

Parameters

selection

specific selection action (How chromosomes will be selected from current population)