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

Ted Ralphs ted at lehigh.edu
Sat Apr 24 11:31:31 EDT 2010


For Clp (and also for some of the others), I believe that if you do

osi->setHintParam(OsiDoReducePrint);
osi->messageHandler()->setLogLevel(0);

this will turn off all messages. At least that's what we do in
SYMPHONY and we aren't getting any additional messages. If this
doesn't work, post a follow-up and I'll dig deeper to see if there's
anything else we're doing.

Ted

On Sat, Apr 24, 2010 at 9:44 AM, Christophe-Marie Duquesne
<chm.duquesne at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/osi
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted





More information about the Osi mailing list