-
Notifications
You must be signed in to change notification settings - Fork 81
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
User-provided heuristic solutions incorrectly report being rejected #494
Comments
So the ask is to change Gurobi.jl/src/MOI_wrapper/MOI_callbacks.jl Lines 299 to 303 in 44101cc
We can look up the status using something like: Gurobi.jl/src/MOI_wrapper/MOI_callbacks.jl Lines 172 to 179 in 44101cc
PRs accepted 😄 |
Yes, I would appreciate if REJECTED were changed to UNKNOWN in cases where such a verdict can not yet be made (presumeably both MIP and MIPSOL), since debugging such problems is non-trivial. What to do is version dependent, but the correct procedure and interpretation of the returned values is not well documented. I posted a question on their support forum and will report with the result. There is no example of how to use user-heuristics (i could provide one if you are interested). |
Gurobi can accept user provided heuristic solutions during "MIP", "MIPNODE" and "MIPSOL". When in "MIPNODE", the solutions are used immediately, otherwise they are stored to be used later.
When setting solutions during "MIPSOL", Gurobi.jl incorrectly returns
HEURISTIC_SOLUTION_REJECTED
despite being used later. It could be less confusing to returnHEURISTIC_SOLUTION_UNKNOWN
instead.Example code:
Solutions are clearly being accepted, Gurobi.jl just can not make the determination yet at query time.
Versions:
Gurobi version 10
Gurobi.jl v0.11.4
The text was updated successfully, but these errors were encountered: