-
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
ListOfModelAttributesSet does not include callbacks #579
Comments
This error is expected behavior. The LP writer does not support serializing I think this is just asking for a way to unset the CallbackFunction.
Gurobi.jl/src/MOI_wrapper/MOI_wrapper.jl Lines 748 to 764 in 9bafe7d
|
Why do you need this? |
Thanks for the quick answer :) We need this because we use Gurobi callbacks to store some state while solving, and depending on the user query we will also print the problem. Disabling the callback without resetting the optimizer state would solve our issue. I've tried a bunch of things, but no luck so far. Do you have any tips? |
If you know that you're using Gurobi Gurobi.GRBwrite(JuMP.unsafe_backend(model), "model.lp") |
That works! Thanks! Closing this. |
LP
format for a cached optimizer
Perhaps there is an argument to exclude. I'll discuss this at our next monthly meeting |
Call says:
|
Just to follow up on this. The next release of MOI will support |
Thanks @odow ❤️ |
Hey!
As the title says, we get an error when printing in
LP
format with Gurobi:Here is a MRE on the latest version
1.3.1
of Gurobi.jl.If I omit the line that sets the
Gurobi.CallbackFunction
, printing works. Also using theGurobi.Optimizer()
directly instead of a cached optimizer works.Edit: I thought we could set
CallbackFunction
tonothing
before printing but that unfortunately resets the optimizer state. Printing works correctly in that case.Thank you!
The text was updated successfully, but these errors were encountered: