pygmo2
pygmo2 copied to clipboard
Accessing the number of generations and the exit flag
Is there a way to access and store the total number of generations and the exit flag?
I only came up with the following solution
...
algo.set_verbosity(1)
...
uda = algo.extract(pg.sade)
uda.get_log()
but it is slow and solves only half of the problem.