[Coin-lpsolver] Correct way to disable messages in Coin
John J Forrest
jjforre at us.ibm.com
Mon Mar 22 09:29:03 EST 2004
Jean-Sebastien,
One way is to override the message handler with one of you own - see
COIN/Clp/Test/MyMessageHandler.cpp/.hpp.
However looking at the code a much simpler way would be to allow you to
set the level to -1. Try changing line 253 of CoinMessageHandler.cpp to
if (value >=-1) and then set the level to -1. If that does what you want
then I will put the change in cvs.
John Forrest
Jean-Sebastien Roy <js at jeannot.org>
Sent by: coin-lpsolver-admin at www-124.southbury.usf.ibm.com
03/20/2004 09:42 AM
To
Coin-lpsolver at www-124.southbury.usf.ibm.com
cc
Subject
[Coin-lpsolver] Correct way to disable messages in Coin
Hi !
I use:
OsiClpSolverInterface solver1;
SbbModel model(solver1);
To create a new SbbModel, then:
model.solver()->messageHandler()->setLogLevel(0);
model.messageHandler()->setLogLevel(0);
To disable messages (as found in SbbParam.cpp). Most messages disapear,
yet if I use the presolve using:
model.solver()->setHintParam(OsiDoPresolveInInitial,true,OsiHintTry);
I get messages like:
Clp3002W Empty problem - 0 rows, 0 columns and 0 elements
And:
Coin0507I Presolve determined that the problem was infeasible with
tolerance of 1e-08
What is the correct way to disable all messages ?
Thank you very much in advance !
Regards,
js
_______________________________________________
Coin-lpsolver mailing list
Coin-lpsolver at www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-lpsolver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20040322/9e4abd19/attachment.html>
More information about the Clp
mailing list