How to silence all the loggings?
AnsweredI configure the gurobipy to solve the non-convex problem, and meanwhile to silence all the outputs to the console:
m.setParam('NonConvex', 2)
m.setParam('LogToConsole', 0)
m.setParam('OutputFlag', 0)
While notifications still come out in the console as:
Set parameter NonConvex to value 2
Set parameter NonConvex to value 2
Set parameter NonConvex to value 2
Set parameter NonConvex to value 2
Set parameter NonConvex to value 2
Therefore, is it possible to silence the above notifications as well?
-
Hi Junhong,
To suppress all output, the parameters LogToConsole and OutputFlag have to be set before the environment is started. Please follow the instructions in How do I suppress all console output?.
Best regards,
Elisabeth
0 -
Hi Elisabeth,
Many thanks for your great help. It works as follows:
m.setParam('LogToConsole', 0)
m.setParam('OutputFlag', 0)
m.setParam('NonConvex', 2)Best regards,
Junhong
0
Please sign in to leave a comment.
Comments
2 comments