Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync/Async with Dask #179

Open
yhamadi75 opened this issue Dec 21, 2024 · 1 comment
Open

Sync/Async with Dask #179

yhamadi75 opened this issue Dec 21, 2024 · 1 comment

Comments

@yhamadi75
Copy link

Hi Antonio,
A quick question:
In the distributed_nsgaii_with_dask.py example, the number of workers is explicitly given by setting up the Dask client: # setup Dask client
client = Client(LocalCluster(n_workers=10)).

On the other hand, in the synchronous nsgaii example, it is not stated, the Dask evaluator is just passed as a parameter to the algorithm: population_evaluator=DaskEvaluator().

How can we decide for number of workers in for synchronous nsgaii?

Additionally, is it straightforward to adapt Spea2 or Hype for asynchronous distributed search? They are only possible with synchronous.

Thanks

@ajnebro
Copy link
Contributor

ajnebro commented Dec 21, 2024

Hi.
I have just updated the DastEvaluator so you can indicate the number of cores.

Developing an asynchronous version of an algorithm is not straightforward as you have to redesing it (we wrote a paper about this matter many years ago: https://ieeexplore.ieee.org/abstract/document/4536375) . Just take a look at the DistributedNSGAII class; in particular, at the run() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants