Do not print optimization information

33 views
Skip to first unread message

Florian Krellner

unread,
Jul 19, 2016, 8:47:38 AM7/19/16
to Gurobi Optimization

I am using model.optimize() in Python and it always prints out the following optimization information.


Optimize a model with 42 rows, 42 columns and 138 nonzeros

Coefficient statistics:

  Matrix range    [9e-03, 3e+00]

  Objective range [1e+00, 2e+01]

  Bounds range    [0e+00, 0e+00]

  RHS range       [1e+00, 1e+00]

Presolve removed 19 rows and 28 columns

Presolve time: 0.01s

Presolved: 23 rows, 14 columns, 53 nonzeros

 

Iteration    Objective       Primal Inf.    Dual Inf.      Time

       0      handle free variables                          0s

       6    9.7538490e+00   0.000000e+00   0.000000e+00      0s

 

Solved in 6 iterations and 0.02 seconds

Optimal objective  9.753848996e+00

 

 Is it possible that model.optimize() does not print out those information?


Thanks in advance! 

Renan Garcia

unread,
Jul 19, 2016, 9:28:55 AM7/19/16
to gur...@googlegroups.com
Set the LogToConsole parameter (http://www.gurobi.com/documentation/6.5/refman/logtoconsole.html#parameter:LogToConsole) or the OutputFlag parameter (http://www.gurobi.com/documentation/6.5/refman/outputflag.html#parameter:OutputFlag) to 0, depending on whether or not you still want a log file.

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages