Skip to content

Gurobi FLK compatibility - #387

Open
venaturum wants to merge 4 commits into
coin-or:masterfrom
venaturum:flk_params
Open

venaturum wants to merge 4 commits into
coin-or:masterfrom
venaturum:flk_params

Conversation

@venaturum

Copy link
Copy Markdown

Closes #386.

Tests not possible unfortunately due to the nature of the FLK.

@venaturum

Copy link
Copy Markdown
Author

This PR is ready now, pending any requests from maintainers. It has been reported as working by a Gurobi customer.

Comment thread mip/gurobi.py Resolved
@venaturum

Copy link
Copy Markdown
Author

I'm wondering if we need to change inferring the parameter type based off the value. For example, it would be quite natural to turn off heuristics by setting the Heuristics parameter to 0. In gurobipy for example, most users would write model.params.heuristics=0 or perhaps model.setParams("Heuristics", 0).

But in this proposed code we would see 0 as an int, and try to use GRBsetintparam on this "double" parameter, resulting in an error. In an ideal world we'd stay Pythonic and no difference between 0 and 0.0 would be observed, but it could require a bit of a workaround to make this sort of thing happen.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Gurobi FLK license cannot be used

2 participants