How to suppress all console output from Gurobi using C++
回答済みHi,
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,
Simran3 -
Thank you!
0
サインインしてコメントを残してください。
コメント
2件のコメント