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

Lazy cns with Gurobi #210

Open
FabrizioLacalandra opened this issue Sep 16, 2023 · 2 comments
Open

Lazy cns with Gurobi #210

FabrizioLacalandra opened this issue Sep 16, 2023 · 2 comments

Comments

@FabrizioLacalandra
Copy link

Dear all,
when using pure Jump model i exensively use the lazy attribute with some cns using Gurobi as a solver with the syntiax

MOI.set(MyMod, Gurobi.ConstraintAttribute("Lazy"), CnsName, K)

where K is 1/2 or 3 depending on the Gurobi possibilities. Besides the need to indexing single constraint in for loops, i receive an error using the same approach within a certain Bilevel problem using BilevelJump.
Question is: is it possible to do that kind of attribute setting, or the BJump interface does not enable it?

Regards,
Fabrizio

@joaquimg
Copy link
Owner

Hi, the short answer is that today it is not possible out of the box.

It would be reasonable to allow this for the upper level model.

What would that do for a lower level constraint?

Remember that the lower level will be reformulated to be represented by its KKT conditions, so there will be many dual constraints and complementarity constraints.

@FabrizioLacalandra
Copy link
Author

Thanks for your answer,

indeed i think it could be and interesting feature to add to BJuMP and indeed my interest is at the moment related to the Upper level of the bilevel model, which is a complex MIP with linear cns that could be "lazied" the way Gurobi let you. It could also be possible to add some user cut as well.

Regards,
Fabrizio

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

2 participants