[Osi] Is there a way to deactivate solver output?

Christophe-Marie Duquesne chm.duquesne at gmail.com
Sat Apr 24 09:44:40 EDT 2010


On Sat, Apr 24, 2010 at 3:25 PM, Stefan Vigerske
<stefan at math.hu-berlin.de> wrote:
> Try set the loglevel of the message handler to 0 (or -1):
>  osi->messagehandler()->setLogLevel(0);
> Depending on which solver you use, this is better or worse implemented
> (should work for clp, cplex, xpress, mosek, glpk, gurobi).
>
> Stefan
>

Thank you Stefan,

This kind of works, but there are still traces I don't want.

I had stuff like :
Clp0006I 0  Obj 0 Primal inf 43 (38)
Clp0006I 83  Obj 439191 Primal inf 101 (52)
Clp0006I 166  Obj 956776 Primal inf 7 (7)
Clp0006I 177  Obj 957472
Clp0000I Optimal - objective value 957472
Coin0511I After Postsolve, objective 957472, infeasibilities - dual 0
(0), primal 0 (0)
Clp0032I Optimal objective 957472.328 - 177 iterations time 0.012, Presolve 0.00
Clp0006I 0  Obj 957472
Clp0006I 0  Obj 957472
Clp0000I Optimal - objective value 957472
Integer solution of 957472 found after 0 iterations and 1 nodes
Search took 0 iterations and 1 nodes

And now I get:
Integer solution of 957472 found after 0 iterations and 1 nodes
Search took 0 iterations and 1 nodes


-- 
Christophe-Marie Duquesne
06 84 14 26 82 - mobile
04 76 57 48 06 - g-scop
04 97 23 27 33 - amadeus





More information about the Osi mailing list