-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fixes for the gurobi interface and OSQP tolerances #235
Conversation
Since I don't have access to an academic license any longer, does this mean it's fixed for 9.1 onward or also works for older versions of Gurobi now? |
Yeah not sure, would have to ask who added the comment before. The workaround is from 5 years ago though. It is fixed in 9.1 and there are some other part that do depend on Gurobi 9 I think so I would not expect the interface to work with Gurobi 8. |
I guess anyone with a license can download the latest version but it also seems a bit brutal. I would only like to do that if we start adding the externally installed solvers to 'extras' so that we can require a minimum version. Maybe @phantomas1234 and @KristianJensen have some thoughts on this, too? |
I could check if it work with older supported Gurobi versions. The current interface does not work with Gurobi 7 anyways due to API incompatibilities so the effective minimum version right now is Gurobi 8. |
Here is a version that works with all supported Gurobi versions (>8.0.1) (https://support.gurobi.com/hc/en-us/articles/360048138771-Gurobi-release-and-support-history).
Though I personally think supporting the current stable major version is hard enough and we should not try to support legacy versions since you could still use those by pinning an older version of optlang. However, the current version has been breaking MICOM (with gurobi) for at least a month and I would like to fix that. Also had to disable safety in Python 2.7 since the last supported version of pip in 2.7 will be flagged now due to a CVE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me. And sorry for causing you more trouble. I actually just wanted some more opinions but now you already added support for 8 🙂
That's fine, I appreciate feedback 😁 |
This PR fixes several issues with Gurobi and a bug where one could not clone from the OSQP interface.
Fixes
Tests on all interfaces