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

Parallel constraints evaluation? #287

Open
osamimi opened this issue Jan 10, 2025 · 1 comment
Open

Parallel constraints evaluation? #287

osamimi opened this issue Jan 10, 2025 · 1 comment

Comments

@osamimi
Copy link

osamimi commented Jan 10, 2025

Is there a way to have constraints evaluated in a parallel/vectorized fashion like it can be done for the cost function by setting parallel_objective arg of fmin() to a callable?
There are plenty of problems where all or most of the computation is spent on finding a feasible solution.

@nikohansen
Copy link
Contributor

nikohansen commented Jan 13, 2025

Sorry, this is currently not possible out of the box. However, addressing issue #258 would allow this by design.

Otherwise, one could write a wrapper or inherited class for ConstrainedFitnessAL using or modifiying its __call__ method.

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

No branches or pull requests

2 participants