Ignore:
Timestamp:
Mar 19, 2013 9:04:43 AM (8 years ago)
Author:
forrest
Message:

changes for cuts and extra variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristicGreedy.cpp

    r1796 r1876  
    398398
    399399        int numberRows = solver->getNumRows();
     400        int numberColumns = solver->getNumCols();
    400401        // Column copy
     402        matrix_.setDimensions(numberRows,numberColumns);
    401403        const double * element = matrix_.getElements();
    402404        const CoinBigIndex * columnStart = matrix_.getVectorStarts();
     
    407409                good = false;
    408410        }
    409         int numberColumns = solver->getNumCols();
    410411        for (int iColumn = 0; iColumn < numberColumns; iColumn++) {
    411412            if (objective[iColumn]*direction < 0.0)
     
    830831
    831832        int numberRows = solver->getNumRows();
     833        int numberColumns = solver->getNumCols();
     834        matrix_.setDimensions(numberRows,numberColumns);
    832835        // Column copy
    833836        const double * element = matrix_.getElements();
     
    843846                good = false;
    844847        }
    845         int numberColumns = solver->getNumCols();
    846848        for (int iColumn = 0; iColumn < numberColumns; iColumn++) {
    847849            if (objective[iColumn]*direction < 0.0)
Note: See TracChangeset for help on using the changeset viewer.