How to make Gurobi not printing the optimization information?Answered
I use Gurobi with Python. After an optimization, Gurobi automatically prints out the optimization information as below. How to hide this information? Thank you!
You can disable console output by setting the LogToConsole parameter to 0. To additionally disable output to a logfile, use the LogFile or OutputFlag parameters.
How do i use this LogToConsole? I cant find any clear information on the usage of it anywhere.
You can find examples of how to set parameters for each API in the Parameter Examples section of our documentation. E.g., in Python:
import gurobipy as gp
m = gp.Model()
m.Params.LogToConsole = 0
To also prevent license file information from printing to the console, please see the article How do I suppress all console output from Gurobi?.3
Thanks, still very useful answer :)0
Please sign in to leave a comment.