[Osi] std::cout and messageHandler() in OsiClpSolverInterface
john.forrest at fastercoin.com
Tue Jan 10 04:06:52 EST 2012
That code is in OsiClpSolverInterface::branchAndBound
That was never meant to be used in a production environment - Cbc's
branch and bound using OsiClp can be orders of magnitude faster.
It would not take much to rewrite to send to messageHandler, but what
are your needs which need to use this particular piece of code?
On 09/01/12 20:20, John Perry wrote:
> I'm one of at least two people working on updating the Coin package in the Sage computer algebra system. I have a question in the way OsiClpSolverInterface handles log levels for messages to the user.
> In lines 7926-7 of OsiClpSolverInterface.cpp, this seems to be handled properly: a message destined for the user is passed through messageHandler(), which apparently pays attention to the logLevel. (I get this idea from seeing the messageHandler()'s setLogLevel() method invoked several times.)
> In line 7893, however, as well as a few others like it, non-critical messages for the user are sent to std::cout.
> (1) Is this a bug?
> (2) If not, can anyone suggest a way to impose a vow of silence? We are invoking the Osi interface from Cython, so we have some access to C++.
> john perry
> Osi mailing list
> Osi at list.coin-or.org
More information about the Osi