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

[Bug]: SciPy Differential Evolution parallelisation broken #590

Open
BradyPlanden opened this issue Dec 10, 2024 · 1 comment
Open

[Bug]: SciPy Differential Evolution parallelisation broken #590

BradyPlanden opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@BradyPlanden
Copy link
Member

BradyPlanden commented Dec 10, 2024

Python Version

3.12

Describe the bug

When trying to run SciPy Differential Evolution with parallel execution, there is a pickling error from the cost wrapper.

Steps to reproduce the behaviour

Running any example with SciPy Differential Evolution and workers arg set to > 1:

optim = pybop.SciPyDifferentialEvolution(
    cost,
    max_iterations=100,
    workers=-1
)

Relevant log output

    cls(buf, protocol).dump(obj)
AttributeError: Can't pickle local object 'SciPyDifferentialEvolution._run_optimiser.<locals>.cost_wrapper'
@BradyPlanden BradyPlanden added the bug Something isn't working label Dec 10, 2024
@BradyPlanden BradyPlanden changed the title [Bug]: SciPy Differential Evolution can't be parallelised [Bug]: SciPy Differential Evolution parallisation broken Dec 10, 2024
@BradyPlanden BradyPlanden changed the title [Bug]: SciPy Differential Evolution parallisation broken [Bug]: SciPy Differential Evolution parallelisation broken Dec 10, 2024
@BradyPlanden
Copy link
Member Author

Here's the issue discussed on teams @PipGrylls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant