after
fun <V, F> DistributedConfigScope<V, F>.after(afterEvolution: suspend DistributedEvolveScope<V, F>.() -> Unit)
Callback after evolution process which will be invoked when GA.state is going to be State.FINISHED.
Example:
// init DistributedGA
dGA(
// configure common factory, fitnessFunction, population name and children (if already exist)
) {
// set ga's configuration here (adding children)
after { (this = DistributedEvolveScope)
println("DistributedGA is going to be FINISHED")
}
}
Content copied to clipboard