FeasibilityTol for GRBCallback.useSolution()
OngoingHi all,
I'm calling GRBCallback.useSolution() in a callback function at GRB.Callback.MIPNODE. My question is what is the FeasibilityTol for GRBCallback.useSolution()? Are we able to adjust this FeasibilityTol? I may experience some rounding errors for the solutions I provided using GRBCallback.setSolution(). GRBCallback.useSolution() returns "1e+100 " although the solution I set should be feasible.
Thanks
Walter
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
You mentioned that your solution should be feasible. As stated at e.g. https://docs.gurobi.com/projects/optimizer/en/10.0/reference/java/callback.html#java-method-GRBCallback-useSolution, the value "1e+100" may be returned when the solution is feasible, but it doesn't have a better objective value than the current incumbent:
It equals GRB.INFINITY if no _improved_ solution is found or...
Did you consider this possibility?
0 -
Thank you Xavier for your prompt reply. Sorry I didn't reply earlier. There is no current incumbent solution found yet before I used useSolution(). My current approach is to relax some constraints a little bit, and it successfully registers the solution I provided as an incumbent solution. But I'm still not sure what is the FeasibilityTol of useSolution(). Is it the same as the main program by default? Can the user control it separately? Thank you.
0
Post is closed for comments.
Comments
3 comments