Skip to main content

Log File in Gurobi 9?

Answered

Comments

5 comments

  • Gwyneth Butera
    Gurobi Staff Gurobi Staff

    Hi Ahmad - 

    Yes, for v9.0 there is a change in the default for creating the logfile; the default log file only exits for gurobi_cl and the interactive shell with v9.0. Otherwise, you need to set the LogFile parameter.

    Gwyneth

    0
  • Ahmad B
    Gurobi-versary
    First Comment
    First Question

    Thanks for the quick reply.

    For someone who is used to having the log file outputting by default, setting the parameter each time I run a model is quite cumbersome. Is there a way to change the default value to avoid having to do this every time?

    0
  • Vincent
    Gurobi-versary
    Curious
    Conversationalist

    Hi,

    I am setting the LogFile parameter manually but the file is almost empty! The only part copied to my logfile is this:

    Gurobi 9.0.1 (win64) logging started 04/22/20 14:49:32

    Changed value of parameter LogFile to gurobi.log
    Prev: Default:
    Parameter OutputFlag unchanged
    Value: 1 Min: 0 Max: 1 Default: 1
    Discarded solution information

    Would you please tell me what I am doing wrong or what's the correct way to set the LogFile parameter?

    Thanks.

    Ahmad B Gwyneth Butera

    0
  • Danial Ramin
    Gurobi-versary
    First Comment

    Hi Vincent,

    Make sure to put it before the "optimize" method.

    1
  • Vincent
    Gurobi-versary
    Curious
    Conversationalist

    That was actually the issue!

    Thank you Danial Ramin.

    0

Please sign in to leave a comment.