[Osi-tickets] [COIN-OR Open Solver Interface] #65: initialSolve() of OsiClpSolverInterface modifies the logLevel

COIN-OR Open Solver Interface coin-trac at coin-or.org
Thu Jul 17 17:33:41 EDT 2008


#65: initialSolve() of OsiClpSolverInterface modifies the logLevel
---------------------+------------------------------------------------------
 Reporter:  fmargot  |       Owner:  mjs 
     Type:  defect   |      Status:  new 
 Priority:  minor    |   Milestone:      
Component:  OsiClp   |     Version:  0.96
 Keywords:           |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/65>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list