Changeset 1876 for trunk/Cbc/src/CbcHeuristicGreedy.cpp
 Timestamp:
 Mar 19, 2013 9:04:43 AM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcHeuristicGreedy.cpp
r1796 r1876 398 398 399 399 int numberRows = solver>getNumRows(); 400 int numberColumns = solver>getNumCols(); 400 401 // Column copy 402 matrix_.setDimensions(numberRows,numberColumns); 401 403 const double * element = matrix_.getElements(); 402 404 const CoinBigIndex * columnStart = matrix_.getVectorStarts(); … … 407 409 good = false; 408 410 } 409 int numberColumns = solver>getNumCols();410 411 for (int iColumn = 0; iColumn < numberColumns; iColumn++) { 411 412 if (objective[iColumn]*direction < 0.0) … … 830 831 831 832 int numberRows = solver>getNumRows(); 833 int numberColumns = solver>getNumCols(); 834 matrix_.setDimensions(numberRows,numberColumns); 832 835 // Column copy 833 836 const double * element = matrix_.getElements(); … … 843 846 good = false; 844 847 } 845 int numberColumns = solver>getNumCols();846 848 for (int iColumn = 0; iColumn < numberColumns; iColumn++) { 847 849 if (objective[iColumn]*direction < 0.0)
Note: See TracChangeset
for help on using the changeset viewer.