[Osi] logLevel_ not kept (OsiClpSolverInterface)
fmargot at andrew.cmu.edu
fmargot at andrew.cmu.edu
Thu Jul 17 17:34:16 EDT 2008
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
More information about the Osi
mailing list