restart
suspend fun <V, F> PanmicticGA<V, F>.restart(populationSize: Int, populationBuffer: Int, forceStop: Boolean = false, resetPopulation: Boolean = true)
Immediately restart genetic algorithm.
Parameters
population Size
new size of restarted population
population Buffer
new buffer of restarted population
force Stop
if
true
and GA.isActive stop GA with StopPolicy.Immediately else StopPolicy.Default
reset Population
if true all progress will be lost.