-
Notifications
You must be signed in to change notification settings - Fork 36
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
Multiple constraints minimization #18
Comments
Alas, This is a low priority right now, given that the majority of pytorch-minimize is devoted to |
Thanks for the rapid reply! |
@rfeinman I am a bit of a newbie at optimization, but hopefully my math background will help me hit the ground running. I might be interested in taking this on if you're looking for someone to implement this in If you feel given your expertise that these are both bad ideas/workarounds, I would be interested in implementing constrained optimization for multiple bounds provided it is not a completely insane amount of work and you'd be willing to provide some guidance :) I have a fair bit of open source experience and I just finished up adding some features to a GPU-based numerical integration package, so I feel comfortable offering this. I also knew nothing about numerical integration before I started that and here we are 😄 so I hope I can catch on here too if need be :) |
P.S I'm interested only in box contraints, so from I can see L-BFGS-B would be the route to go, I think. |
P.P.S I would also be interested in BFGS-B if that exists. No attachment to limited memory particularly |
Excuse me, I want to apply L-BFGS-B in pytorch settings and use cuda, are there any implementations of algorithm L-BFGS-B? Specifically, I prefer to the algorithm equivalent to scipy.optimize.minimize(method='L-BFGS-B') |
I've created a wrapper around this function ( |
First of all - thank you for the great repo!
Now, I have a question: is there any support in multiple constraints minimization? It is often the case, since I am minimizing a function that gets tensor as input, so I need multiple constraints for the relations between the input tensor's elements.
So far I've tried: list of dictionaries, dictionary of lists, dictionary that returns tensor with > 1 elements, and dictionary that returns list of tensors. They all failed.
Here's my toy snippet of code with one constraint:
Thanks in advance!
The text was updated successfully, but these errors were encountered: