Changeset 1212 for trunk/Cbc/src/CbcHeuristicGreedy.cpp
 Timestamp:
 Aug 21, 2009 12:19:13 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcHeuristicGreedy.cpp
r1205 r1212 55 55 // Get a copy of original matrix 56 56 assert(model>solver()); 57 matrix_ = *model>solver()>getMatrixByCol(); 57 if (model>solver()>getNumRows()) { 58 matrix_ = *model>solver()>getMatrixByCol(); 59 } 58 60 originalNumberRows_=model>solver()>getNumRows(); 59 61 } … … 462 464 // Get a copy of original matrix 463 465 assert(model>solver()); 464 matrix_ = *model>solver()>getMatrixByCol(); 466 if (model>solver()>getNumRows()) { 467 matrix_ = *model>solver()>getMatrixByCol(); 468 } 465 469 originalNumberRows_=model>solver()>getNumRows(); 466 470 }
Note: See TracChangeset
for help on using the changeset viewer.