[Cbc] Incorrect conversion to Dynamic Pseudo Costs

John J Forrest jjforre at us.ibm.com
Mon Mar 17 10:16:17 EDT 2008


Francois,

checked in changes (svn) to CbcModel and CbcBranchActual.cpp

Thanks for finding error

John


                                                                                                                          
  From:       fmargot at andrew.cmu.edu                                                                                      
                                                                                                                          
  To:         cbc at list.coin-or.org                                                                                        
                                                                                                                          
  Date:       03/15/2008 02:32 PM                                                                                         
                                                                                                                          
  Subject:    [Cbc] Incorrect conversion to Dynamic Pseudo Costs                                                          
                                                                                                                          





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. A ticket (#46) has been filed.


Francois
_______________________________________________
Cbc mailing list
Cbc at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/cbc




More information about the Cbc mailing list