[Coin-lpsolver] switching off output

John J Forrest jjforre at us.ibm.com
Fri Dec 9 16:48:50 EST 2005


Stefan,

I know it is confusing - and I am as confused as anyone as Cbc interacts 
with Osi, Cgl, Clp and Coin.

I think the idea is that to reduce the print out from any 
OsiSolverInterface object you use the hint OsiDoReducePrint.  The problem 
is that Clp is the only instance of OsiSolverInterface which uses the same 
message handler so it is not intuitive.

At present Cbc and Clp do reduce output from other message handlers used. 
I will extend that to OsiClp unless someone objects. 

John Forrest



Stefan Vigerske <stefan at mathematik.hu-berlin.de> 
Sent by: coin-lpsolver-bounces at list.coin-or.org
12/09/2005 04:08 PM

To
coin-lpsolver at list.coin-or.org
cc

Subject
[Coin-lpsolver] switching off output






Hi,

I'm using the OsiClpSolverInterface to formulate my problem and I had a 
problem to switch off the output after I updated to a new version.
Setting the loglevel to zero using the message handler provided by my 
OsiClpSolverInterface object did not have any effect.
In OsiClpSolverInterface::initialSolve() I read
  int saveMessageLevel=modelPtr_->logLevel();
and
  solver.messageHandler()->setLogLevel(saveMessageLevel);

Hence, I seem to use the wrong message handler.
Setting the loglevel to zero for the message Handler which is provided 
from 
the ClpSimplex object provided by my OsiClpSolverInterface object due to a 

call of getModelPtr() seems to solve the problem.

Is this behaviour intended this way?

Stefan

-- 
Stefan Vigerske
Humboldt University Berlin, Numerical Mathematics
http://www.math.hu-berlin.de/~stefan
_______________________________________________
Coin-lpsolver mailing list
Coin-lpsolver at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-lpsolver

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20051209/b89096f4/attachment.html>


More information about the Clp mailing list