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

MOI.set for basis status #380

Merged
merged 3 commits into from
Dec 23, 2020
Merged

MOI.set for basis status #380

merged 3 commits into from
Dec 23, 2020

Conversation

joehuchette
Copy link
Contributor

I've added two methods to MOI.set that allow you to set variable/constraint basis status. This is surprisingly difficult behavior to test: I don't think it's possible to check the basis status in Gurobi without optimizing the model, at which point you can only indirectly measure if your basis was correctly set.

I also looked at adding tests at the MOI level, but it got complicated when I tried to figure out how to make this work with universal fallback, so I punted.

@joehuchette
Copy link
Contributor Author

Gurobi said that to unit test this, we should set an iteration limit (close to what I do here) or use a message callback: https://support.gurobi.com/hc/en-us/community/posts/360075729911-Getting-VBasis-CBasis-attributes-without-optimizing

@odow
Copy link
Member

odow commented Dec 23, 2020

Can you post a screenshot of the tests passing?

@joehuchette
Copy link
Contributor Author

image

@odow odow merged commit 7ea22f0 into master Dec 23, 2020
@odow odow deleted the set-basis branch December 23, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants