Changeset 411 for branches


Ignore:
Timestamp:
Jul 14, 2006 12:49:09 PM (13 years ago)
Author:
forrest
Message:

to stop message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcModel.cpp

    r410 r411  
    38433843          bool mustResolve =
    38443844            generator_[i]->generateCuts(theseCuts,fullScan,node) ;
    3845           if(numberRowCutsBefore < theseCuts.sizeRowCuts() &&
     3845          int numberRowCutsAfter = theseCuts.sizeRowCuts() ;
     3846          if(numberRowCutsBefore < numberRowCutsAfter &&
    38463847             generator_[i]->mustCallAgain())
    38473848            keepGoing=true; // say must go round
     3849          // Check last cut to see if infeasible
     3850          if(numberRowCutsBefore < numberRowCutsAfter) {
     3851            const OsiRowCut * thisCut = theseCuts.rowCutPtr(numberRowCutsAfter-1) ;
     3852            if (thisCut->lb()>thisCut->ub()) {
     3853              feasible = false; // sub-problem is infeasible
     3854              break;
     3855            }
     3856          }
    38483857#ifdef CBC_DEBUG
    38493858          {
Note: See TracChangeset for help on using the changeset viewer.