esa / pygmo2

A Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pygmo2/
Mozilla Public License 2.0
436 stars 56 forks source link

Accessing the number of generations and the exit flag #73

Open fialat opened 3 years ago

fialat commented 3 years ago

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.