Skip to main content

Understanding Gurobi Running time and why it is different than the log file time

Answered

Comments

3 comments

  • Gwyneth Butera
    Gurobi Staff Gurobi Staff

    It looks like you may be using a third-party modeling framework here. I would guess then that

    model.solve(solver=grb, display=True)

     has some other processing happening to convert the model you created into one that can be sent to Gurobi. The 20.84 is the time Gurobi spends in the optimization process.

    0
  • Amal Nammouchi
    Gurobi-versary
    First Question
    Conversationalist

    I see, that\s correct, I am using the library RSOME to construct my model and then solve it using Gurobi. However, shouldn't\t Gurobi solving time and the log file be similar ?

    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Amal,

    Since the RSOME API allows you to specify the solver at the point of calling ”solve” it means that nothing has been built in Gurobi up until that point. The 29s time difference is the time RSOME is taking to build the model in Gurobi. In this respect there is double handling, the model is built twice, once in RSOME, and again in Gurobi.

    - Riley

    0

Please sign in to leave a comment.