opencobra / optlang

optlang - sympy based mathematical programming language
http://optlang.readthedocs.org/
Apache License 2.0
249 stars 51 forks source link

Add faster primal, shadow price and reduced cost accessors to the Gurobi interface. #240

Closed cdiener closed 2 years ago

cdiener commented 2 years ago

This adds faster accessors to the interface. This probably only works for Gurobi 9.5+ so we should enforce that version from now on.

Midnighter commented 2 years ago

Let me know when you're ready for a review. Looks good so far 🙂

cdiener commented 2 years ago

Yep go ahead. Still trying to figure out what to do about CI. Have to deactivate Python 3.6 if I want to test Gurobi in the CI but can't activate 3.10 because nose is broken there. Also not sure which Gurobi versions will work with those changes, so we may want to limit it to Gurobi >= 9.5.