-
Notifications
You must be signed in to change notification settings - Fork 551
ENH: Add constrained optimization #971
base: master
Are you sure you want to change the base?
Conversation
I have a question regarding the upcoming implementation of constrained optimization. If I understood correctly, it will simply check a callable whether a new individual is within the constraints and keep on drafting until that function returns 'True'. Is that correct? Or will it also include a way of efficiently sampling higher dimensional polytopes (which might be necessary depending on the problem at hand). Anyway, looking forward to the release. :) |
With this implementation, as well as with the alternative abomination in #836, that's correct. That implementation also features a terminate condition. 🤔 Added in 1e4110b.
How would one go about that given an arbitrary constraint fun 8000 ction? |
I'm no expert on this topic either, but some colleagues of mine have published something which might be interesting: https://academic.oup.com/bioinformatics/advance-article-abstract/doi/10.1093/bioinformatics/btaa872/5921168 This approach should work for linearly constrained problems. Not sure if it's applicable for arbitrarily/nonlinear constrained functions, though. |
Maybe this is a silly question, but when can we expect the merge? |
Hello ! |
Hello, will this branch be merged sooner or later? |
To me, this PR is not working with "grid" mode:
I got:
|
Hello,When will this PR be merged into the master branch? |
Is there any chance that this will be added to the master branch? |
You can use initial_point_generator="grid_modified" with constrained skopt which is available in the following link: |
Brilliant. skopt_modcn was exactly what I needed to constrain my neural network configurations :) Thank you! I had to install:
For anyone who wants to see how I used it:
|
I am glad to know this could help. Thank you for providing an example. |
Fixes #355
Fixes #700
Fixes #770
Fixes #108
Fixes #977
Probably fixes #730
Probably fixes #371
Probably fixes #457
Closes #836
A proposal for constrained optimization. An alternative to #836 that you might find less invasive and, hopefully, far better designed!
This allows, e.g., to only seek 2D solutions within a unit circle:
The issues with:
are:
n_calls
of the optimizer to 20, I want that to be 20 valid calls"Will tidy-up/tests after gotten🆗 Apparently, this is the number one missing feature here, so feedback strongly appreciated!