OutputFlag vs DisplayInterval

Answered

Comments

8 comments

  • Jaromił Najman

    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
    Comment actions Permalink
  • Nooshin Heidari

    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
    Comment actions Permalink
  • Jaromił Najman

    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
    Comment actions Permalink
  • Nooshin Heidari

    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
    Comment actions Permalink
  • Jaromił Najman

    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
    Comment actions Permalink
  • Nooshin Heidari

    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
    Comment actions Permalink
  • Gwyneth Butera

    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
    Comment actions Permalink
  • Nooshin Heidari

    Hi Gwyneth

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

    Regards,

    Nooshin

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk