Skip to main content

OutputFlag vs DisplayInterval

Answered

Comments

9 comments

  • Official comment
    Simranjit Kaur
    • 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?.
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    Could you post a minimal working example to reproduce this issue? Are you executing the script compiled on Windows on the Centos machine? Are you setting any other parameters?

    Best regards,
    Jaromił

    0
  • Nooshin Heidari
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi

    Yes, The script are the same (both for Windows and Centos) and except this error, the rest of the code is fine and comply. I do not set any otther parameters as well. 

    I am wondering why OutputFlag parameter is replaced by DisplayInterval indeed.

    Thanks

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    Setting the OutputFlag parameter should not result in an error referring to the DisplayInterval parameter. I am not able to reproduce this issue. Could you provide a minimal working example?

    Best regards,
    Jaromił

    0
  • Nooshin Heidari
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi

    My model is complicated. So its not possible to make a minimal example of this. There is no other issue in my script except this line of code in Centos at the time of running (Make is done with no problem) :

    model->set(GRB_IntParam_OutputFlag, 0)

    When I deactive this line of code, the program runs with no problem but I have the report in consol.

    Thanks

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    This makes providing any help very difficult. Are you using the same Gurobi version on both systems?

    Does explicitly setting the DisplayInterval parameter to 1 after setting the OutputFlag parameter resolve the issue?

    Best regards,
    Jaromił

    0
  • Nooshin Heidari
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi

    I am using Gurobi 9.0.3 in Windows and 9.1.2 in Centos. But is there any difference for OutputFlag command?

    Setting DisplayInterval after OutputFlag doesn't work since it has an error while reading OutputFlag command.

    Regards,

     

    0
  • Gwyneth Butera
    • Gurobi Staff

    Hi Nooshin -

    Can you share the output of your make command? I think maybe there is some issue of mixing header files and libraries from different versions. Thanks, Gwyneth

    0
  • Nooshin Heidari
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi Gwyneth

    Thanks for your comment. It works now. Perfect. Thank you!

    Regards,

    Nooshin

    0

Post is closed for comments.