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
-
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
Please sign in to leave a comment.
Comments
2 comments