Skip to main content

Gurobi Stuck After Solving Problem

Ongoing

Comments

2 comments

  • Silke Horn
    Gurobi Staff 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č
    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

Please sign in to leave a comment.