Skip to main content

Gurobi Stuck After Solving Problem

Ongoing

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Silke Horn
    • Gurobi Staff

    Gurobi uses the concurrent optimizer to solve your LP, i.e., it runs multiple algorithms in parallel; the fastest one wins the race. However, to keep the behavior deterministic, it needs to continue with the losing threads for a little (or, as in your case, long) while longer.

    You can try avoiding this by using another method: You could set Method=0 to run only primal simplex or Method=3 for non-deterministic concurrent.

    Best regards,
    Silke

    1
  • Miran Kavrečič
    • Gurobi-versary
    • First Comment

    Hi,

    is Method set as a environment or as a model parameter? I've to set the Method parameter to both

    grbEnv.Method = 3;
    grbMod.Set(GRB.IntParam.Method, 3);

    but the solver still "hangs" on "Waiting for other threads to finish...". Setting the parameter to 0 prevented "waiting for other threads" but increased the computational time until the point when the message starts appearing.

    Any additional ideas?
    Thanks

    0

Post is closed for comments.