Skip to main content

MIP stopping criteria - Rate of objective value change




  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Kalyana,

    You could achieve this using callbacks.

    See "How do I use callbacks to terminate the solver?"

    You would use the MIPSOL callback and store the solution value and current time when it is called, so that you can compare against them next time the callback is triggered to calculate a "rate".  You would also update the TimeLimit parameter so that if no further solutions are found within a certain time frame then the solve is terminated.

    See also: (there are equivalents in other APIs found here).
    Callback codes

    Please let me know if anything needs clarification.

    - Riley

  • Kalyana Namburi
    First Comment
    First Question

    Thanks Riley. Appreciate the insights.


Please sign in to leave a comment.