[Osi] logLevel_ not kept (OsiClpSolverInterface)
John J Forrest
jjforre at us.ibm.com
Fri Jul 18 11:49:20 EDT 2008
Francois,
Not quite as easy to fix as you might think (and fixing might change
behavior for other people).
As you say, there are two message handlers but there is also the hint
OsiDoReducePrint..
I will add a setLoglevel to OsiClp - so you would do clp->setLogLevel(0);
John
[Osi] logLevel_ not kept (OsiClpSolverInterface)
fmargot
to:
osi
07/17/2008 05:39 PM
Sent by:
osi-bounces at list.coin-or.org
Consider the code:
OsiClpSolverInterface *clp;
// A
clp->messageHandler()->setLogLevel(0);
// B
clp->initialSolve();
// C
If you print
clp->handler_->logLevel_ and clp->modelPtr_->handler_->logLevel_
at point A, both are 1.
At point B, the first one is zero and the second one is 1
At point C, both are 1.
Obviously, initialSolve() should not modify the logLevel set by the
user. The problem is that setLogLevel() modifies only
clp->handler_->logLevel_ and initialSolve() looks at
clp->modelPtr_->handler_->logLevel_ when saving the logLevel.
A ticket has been filed (ticket #65).
Francois
_______________________________________________
Osi mailing list
Osi at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/osi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20080718/4c06899e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 821 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/osi/attachments/20080718/4c06899e/attachment.gif>
More information about the Osi
mailing list