Ignore:
Timestamp:
Aug 21, 2009 12:19:13 PM (10 years ago)
Author:
forrest
Message:

fixes

File:
1 edited

Legend:

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

    r1205 r1212  
    5555  // Get a copy of original matrix
    5656  assert(model->solver());
    57   matrix_ = *model->solver()->getMatrixByCol();
     57  if (model->solver()->getNumRows()) {
     58    matrix_ = *model->solver()->getMatrixByCol();
     59  }
    5860  originalNumberRows_=model->solver()->getNumRows();
    5961}
     
    462464  // Get a copy of original matrix
    463465  assert(model->solver());
    464   matrix_ = *model->solver()->getMatrixByCol();
     466  if (model->solver()->getNumRows()) {
     467    matrix_ = *model->solver()->getMatrixByCol();
     468  }
    465469  originalNumberRows_=model->solver()->getNumRows();
    466470}
Note: See TracChangeset for help on using the changeset viewer.