Skip to main content

Solution time error

Awaiting user input

Comments

3 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Could you please share one such model when the reported solution time does not match the actual wallclock time? You can use the gurobi_write function to generate an LP or MPS file. Note that uploading files in the Community Forum is not possible but we discuss an alternative in Posting to the Community Forum.

    Best regards, 
    Jaromił

    0
  • Jaehwan Jeong
    Gurobi-versary
    First Comment
    First Question

    Sorry. I cannot share the model because I do not publish the model yet.

    I experienced it especially when so many runs were sequentially conducted for computational experiments. I guess Gurobi has the error when the solver is called extremely many times (over several thousand times) in sequence, so it has an error in separating CPU times between the current and previous calls. Or it could be an error in Gurobi under Matlab. 

    In fact, a more serious problem is that Gurobi fails to report any (non-global or feasible) solution in that case. It simply reports "TIME_LIMIT" without giving any sub-optimal solution. Then, I should report that Gurobi failed because I need a feasible (hopefully global) solution in my algorithm that sequentially uses a solver to get to an optimal solution of the main model. Strangely, when I try to solve the same sub-problem separately, Gurobi nicely finds a solution in a few seconds. I can use try-catch function in Matlab to run Gurobi again, but I do not do it because it does not properly measure the solution time of my algorithm.

    I just hoped the Gurobi team would notice the error and fix it in a future version because I appreciate the academic license and would like to continue to use it in future research.

    0
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Thank you for reporting this issue. Please note that without a way to reproduce it, the chance of us fixing the issue is small. Could you maybe share a log snippet of such a failing run?

    0

Please sign in to leave a comment.