Changeset 906


Ignore:
Timestamp:
Jan 11, 2007 10:49:52 AM (14 years ago)
Author:
forrest
Message:

empty problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSolve.cpp

    r891 r906  
    376376  ClpMatrixBase * saveMatrix=NULL;
    377377  ClpObjective * savedObjective=NULL;
     378  if (!objective_||!matrix_) {
     379    // totally empty
     380    handler_->message(CLP_EMPTY_PROBLEM,messages_)
     381      <<0
     382      <<0
     383      <<0
     384      <<CoinMessageEol;
     385    return -1;
     386  } else if (!numberRows_||!numberColumns_||!getNumElements()) {
     387    presolve = ClpSolve::presolveOff;
     388  }
    378389  if (objective_->type()>=2&&optimizationDirection_==0) {
    379390    // pretend linear
Note: See TracChangeset for help on using the changeset viewer.