Skip to main content

Time limit on a parallel solve

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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?.
  • Silke Horn
    Gurobi Staff Gurobi Staff

    You are right that setting a time limit lets the solver terminate after that time has passed, independently of the number of threads. There is no parallel version of the time limit. You can, of course, try to vaguely approximate this by dividing the time limit by the number of threads (but this approximation likely wouldn't be very exact).

    You could also have a look at other termination criteria (NodeLimit or IterationLimit). It would probably be hard to emulate a time limit with those, but they do provide means to limit the *effort* spent on a model.

    Do you have a worthwhile application for such a parallel time limit?

    0

Post is closed for comments.