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
414 stars 56 forks source link

[BUG] set_bfe() #157

Closed Tpar23 closed 3 months ago

Tpar23 commented 3 months ago

Hello,

I'm trying to speed up my optimization using batch fitness evaluations. However, I cannot apply set_bfe() to any of the algorithms. I'm running Python in Miniconda. I can use the bfe in the population initialization stage, however, I can't seem to get it working with the algorithm.

Code bfe_instance = pg.mp_bfe(chunksize=popSize) bfe_instance.resize_pool(threads)

algo = pg.algorithm(pg.nspso(gen=nGen)) algo.set_bfe(bfe_instance)

Error Message AttributeError: 'pygmo.core.algorithm' object has no attribute 'set_bfe'. Did you mean: 'set_seed'?

I've tried several other algorithms and they all have the same error message.

Thank you!