Bugfix/gurobi license and docs #556
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request
I noticed that the notebook in the docs is still failing even after the last fix where I added highs to the doc dependencies.
The problem
The init of gurobi in solvers.py was disabled in this commit when building the list of available solvers. This makes sense for performance but it seems to have led to the example notebooks breaking.
As there is no check for the gurobi license when building the available solvers list, the first solver in the list (gurobi) may not be usable if the licensing is not correct.
Currently the example notebooks are failing.
Proposed solutions
I propose to explicitly select "highs" in the example notebooks so that they always work without relying on a valid gurobi license.
Checklist
doc.doc/release_notes.rstof the upcoming release is included.