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

Does cvxpylayer support Gurobi as solver, and then back-propagate? #148

Open
keungRX opened this issue Aug 3, 2023 · 2 comments
Open

Does cvxpylayer support Gurobi as solver, and then back-propagate? #148

keungRX opened this issue Aug 3, 2023 · 2 comments

Comments

@keungRX
Copy link

keungRX commented Aug 3, 2023

Does cvxpylayer support Gurobi as solver, and then back-propagate? I am trying to solve a large_scale MIP problem in cvxpy layer in my neural network, and SCS is incapable to solve my problem.

@akshayka
Copy link
Member

akshayka commented Aug 3, 2023

No it does not.

@holmesco
Copy link

I implemented this on my fork of cvxpylayers so that I could use Mosek.
You can use any solver as long as it gives you access to the primal, dual and slack variables. It basically injects the primal-dual solution on the forward pass so that it is used in the implicit differentiation on the backward pass. Note that it also requires my fork of the diffcp module, which does all the heavy lifting for cvxpylayers. Also I only implemented the PyTorch version.

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

No branches or pull requests

3 participants