Ignore:
File:
1 edited

Legend:

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

    r1902 r2048  
    130130{
    131131    OsiSolverInterface *solver = model->solver() ;
    132 
     132    // may be end game
     133    if (!active_)
     134      return;
    133135    // branch - do bounds
    134     assert (active_ == 7 || active_ == 15);
     136    assert ((active_&~16) == 7 || (active_&~16) == 15);
    135137    int i;
    136138    solver->setColLower(lower_);
    137139    solver->setColUpper(upper_);
    138     int numberColumns = model->getNumCols();
    139     // move basis - but make sure size stays
    140     // for bon-min - should not be needed int numberRows = model->getNumRows();
    141     int numberRows = basis->getNumArtificial();
    142     delete basis ;
    143     if (basis_) {
     140    if (basis) {
     141      int numberColumns = model->getNumCols();
     142      // move basis - but make sure size stays
     143      // for bon-min - should not be needed int numberRows = model->getNumRows();
     144      int numberRows = basis->getNumArtificial();
     145      delete basis ;
     146      if (basis_) {
    144147        basis = dynamic_cast<CoinWarmStartBasis *>(basis_->clone()) ;
    145148        basis->resize(numberRows, numberColumns);
     
    148151        basis->print() ;
    149152#endif
    150     } else {
     153      } else {
    151154        // We have a solver without a basis
    152155        basis = NULL;
     156      }
    153157    }
    154158    for (i = 0; i < numberCuts_; i++)
Note: See TracChangeset for help on using the changeset viewer.