OutputFlag vs DisplayInterval
AnsweredHi
I am using Gurobi with c++. I need to stop printing outputs in console
and I did in windows by model->set(GRB_IntParam_OutputFlag, 0) and it
works. But now, I am using centos and when I run the same code with
commandline, I get this error:
Error code = 10008
Unable to set parameter DisplayInterval to value 0 (minimum is 1)
I set the OutputFlag parameter to 0 and not DisplayInterval. Would you
please let me kow what's wrong in here? Is there any command which I can
use instead?
Thanks
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Hi Gwyneth
Thanks for your comment. It works now. Perfect. Thank you!
Regards,
Nooshin
0
Please sign in to leave a comment.
Comments
8 comments