Skip to main content

Log File in Gurobi 9?

Answered

Comments

6 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • 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

Post is closed for comments.