Changeset 2110


Ignore:
Timestamp:
Jan 17, 2015 10:56:43 PM (4 years ago)
Author:
tkr
Message:

Make sure number of rows is not zero in rounding heuristic

File:
1 edited

Legend:

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

    r2094 r2110  
    19371937    int numberRows = matrix_.getNumRows();
    19381938    assert (numberRows <= solver->getNumRows());
     1939    if (numberRows == 0){
     1940       return 0;
     1941    }
    19391942    int numberIntegers = model_->numberIntegers();
    19401943    const int * integerVariable = model_->integerVariable();
Note: See TracChangeset for help on using the changeset viewer.