[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #46: Incorrect conversion to dynamic pseudo cost

COIN-OR Branch-and-Cut MIP Solver coin-trac at coin-or.org
Sat Mar 15 14:18:55 EDT 2008


#46: Incorrect conversion to dynamic pseudo cost
------------------------+---------------------------------------------------
 Reporter:  fmargot     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  major       |   Milestone:          
Component:  component1  |     Version:  2.0     
 Keywords:              |  
------------------------+---------------------------------------------------
 In file !CbcBranchActual.cpp

 1149    CbcSimpleIntegerPseudoCost::!CbcSimpleIntegerPseudoCost (!CbcModel
 * model, int dummy,int iColumn,

 1150                                                            double
 downPseudoCost, double upPseudoCost)

 1151    {

 1152
 !CbcSimpleIntegerPseudoCost(model,iColumn,downPseudoCost,upPseudoCost);

 1153      columnNumber_=iColumn;

 1154    }

 line 1152 should be

   *this =
 !CbcSimpleIntegerPseudoCost(model,iColumn,downPseudoCost,upPseudoCost);

 Otherwise a new object is created and *this is not changed leaving an
 unitialized object.

 This affects stable 2.0 and realease 2.0.0

-- 
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/46>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.



More information about the Cbc-tickets mailing list