[Osi-tickets] [COIN-OR Open Solver Interface] #58: OsiClp::enableSimplexInterface(true) fails if called twice in a row

COIN-OR Open Solver Interface coin-trac at coin-or.org
Mon May 26 08:22:25 EDT 2008


#58: OsiClp::enableSimplexInterface(true) fails if called twice in a row
---------------------+------------------------------------------------------
 Reporter:  nowozin  |       Owner:  mjs
     Type:  defect   |      Status:  new
 Priority:  minor    |   Milestone:     
Component:  OsiClp   |     Version:     
 Keywords:           |  
---------------------+------------------------------------------------------
 OsiClp 0.98.2 and trunk crashes on the following code snippet:

 {{{
    OsiClpSolverInterface* si = new OsiClpSolverInterface;
    // ... setup problem, solve problem
    si->enableSimplexInterface(true);
    // ... do something else
    si->enableSimplexInterface(true);     // crash
 }}}

 The assertion thrown is
 {{{
   OsiClpSolverInterface.cpp:4334: virtual void
 OsiClpSolverInterface::enableSimplexInterface(bool): Assertion
 `modelPtr_->solveType()==1' failed.
 }}}

 I think it should return silently if solveType() is already 2.

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/58>
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