Package-level declarations

Functions

Link copied to clipboard
fun <V, F> PanmicticEvolveScope<V, F>.selBest(count: Int, fillWithSelected: Boolean = true)

Executes best selection step for Population.

Link copied to clipboard
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.

Link copied to clipboard
inline suspend fun <V, F> PanmicticEvolveScope<V, F>.selectionWithIndex(parallelismLimit: Int, crossinline selection: (index: Int, source: Array<Chromosome<V, F>>, random: Random) -> Chromosome<V, F>)

Performs a selection step for population in PanmicticGA. Suitable for selection mechanisms where behavior depends on indices. For example: selTournament

Link copied to clipboard
suspend fun <V, F> PanmicticEvolveScope<V, F>.selRandom(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)

Executes random selection step for Population:

Link copied to clipboard
@JvmName(name = "selRouletteFitByte")
suspend fun <V> PanmicticEvolveScope<V, Byte>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
@JvmName(name = "selRouletteFitDouble")
suspend fun <V> PanmicticEvolveScope<V, Double>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
@JvmName(name = "selRouletteFitFloat")
suspend fun <V> PanmicticEvolveScope<V, Float>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
@JvmName(name = "selRouletteFitInt")
suspend fun <V> PanmicticEvolveScope<V, Int>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
@JvmName(name = "selRouletteFitLong")
suspend fun <V> PanmicticEvolveScope<V, Long>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
@JvmName(name = "selRouletteFitShort")
suspend fun <V> PanmicticEvolveScope<V, Short>.selRoulette(parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)

Executes roulette selection step for Population:

Link copied to clipboard
suspend fun <V, F> PanmicticEvolveScope<V, F>.selTournament(size: Int, parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)
suspend fun <V, F> PanmicticEvolveScope<V, F>.selTournament(percent: Double, size: Int, parallelismLimit: Int = ParallelismConfig.NO_PARALLELISM)

Executes tournament selection step for Population:

Link copied to clipboard
fun <V, F> PanmicticEvolveScope<V, F>.selWorst(count: Int, fillWithSelected: Boolean = true)

Executes worst selection step for Population.