Skip to main content

FeasibilityTol for GRBCallback.useSolution()

Ongoing

Comments

2 comments

  • Xavier Nodet
    • Gurobi Staff

    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
  • Zhaomiao Guo
    • Gurobi-versary
    • First Comment
    • First Question

    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.