Evolutionary.jl icon indicating copy to clipboard operation
Evolutionary.jl copied to clipboard

Access the population during GA evolution

Open ropinotex opened this issue 1 year ago • 1 comments

Is it possible to access the current population at the end of each iteration, for example by using the callbacks (or any other feasible way)?

Say, I want to check the population at the end of each iteration, and adding new individuals if some conditions are satisfied.

ropinotex avatar Jun 09 '23 14:06 ropinotex

Yes, but you would have define a trace! overload that saves a reference to your state.population in order to expose it to a callback for manipulation. The callback takes a trace record as input.

jonathanfischer97 avatar Apr 17 '24 14:04 jonathanfischer97