メインコンテンツへスキップ

TimeLimit behavior with subproblems in callback

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • 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

投稿コメントは受け付けていません。