selectMate

abstract fun selectMate(individual: Solution, pool: List<Solution>, niches: NicheResult, compareSolutions: (Solution, Solution) -> Int, rnStream: RNStreamIfc): Solution(source)

Selects a mate for individual from pool, possibly using the niches structure.

Parameters

individual

the individual seeking a mate

pool

the candidate partners (typically the selected parent pool)

niches

the current niche structure

compareSolutions

best-first comparison (negative when the first is better)

rnStream

the random stream