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

Is there any way to modify the constraints? #26

Open
zidanessf opened this issue Feb 16, 2020 · 2 comments
Open

Is there any way to modify the constraints? #26

zidanessf opened this issue Feb 16, 2020 · 2 comments

Comments

@zidanessf
Copy link

No description provided.

@joaquimg
Copy link
Owner

Currently no.
But JuMP has methods for that! We can extend them.
Are you used to JuMP 0.21.x?

@zidanessf
Copy link
Author

no, I'm using JuMP v0.20.1. The "delete" method from JuMP simply sets the state of the constraint to invalid. Since adding one constraint to the bilevel problem generates some variables and constraints to its single-level counterpart, we can build a tree to trace these var/cons and delete them when needed.

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