ljvmiranda921 / pyswarms

A research toolkit for particle swarm optimization in Python
https://pyswarms.readthedocs.io/en/latest/
MIT License
1.29k stars 332 forks source link

parallel pyswarms not working #514

Open peterfakhry opened 1 year ago

peterfakhry commented 1 year ago

Describe the bug Thank you so much for this amazing package, been using it since 2018 now. I tried the following code to parallel process particle evaluation. The problem is that nothing happens when i run the code and i can not stop the console as well. Can you please help on that best_cost, best_particle = optimizer.optimize(my_mdl.pso_optimize, iters=iterations,n_processes=4)

Expected behavior Expected to run faster as particles being solved at the same time

Environment (please complete the following information):