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
-
Official comment
This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support. -
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,
Simran3 -
Thank you!
0
Post is closed for comments.
Comments
3 comments