Skip to main content

TimeLimit behavior with subproblems in callback

Answered

Comments

1 comment

  • Maximilian Kolter
    Gurobi-versary
    First Comment
    First Question

    Hi Pedro Castellucci, probably you resolved this issue already. However, here the answer to your question since very likely other people have the same question.

    You can enforce a global time limit as follows:

    1: In the callback query the current runtime of your master problem: model.cbGet(GRB.Callback.RUNTIME)

    2: Set the run time for your subproblems: min{max time limit per subproblem , (global time limit - current runtime)}

    0

Please sign in to leave a comment.