How to suppress all console output from Gurobi using C++
AnsweredHi,
I am aware of the option to suppress all output using Python using the following
However, I cannot find a similar way when using the C++ API. Is there a solution available?
Thanks
Pirmin
1
-
Hi Pirmin,
Similar to Python API, to suppress all console output from Gurobi with C++ API, we can set the OutputFlag to 0 before the Gurobi environment is started.
//create an empty environment
GRBEnv env = GRBEnv(true);
env.set(GRB_IntParam_OutputFlag, 0);
env.start();Best regards,
Simran2 -
Thank you!
0
Please sign in to leave a comment.
Comments
2 comments