Ignore:
Timestamp:
Apr 19, 2009 10:08:30 AM (11 years ago)
Author:
forrest
Message:

changes to use heuristics with SOS etc

File:
1 edited

Legend:

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

    r1132 r1148  
    22532253    if (model_->numberIntegers()!=
    22542254        model_->numberObjects()&&(model_->numberObjects()||
    2255                                   (model_->specialOptions()&1024)==0))
    2256       setWhen(0);
     2255                                  (model_->specialOptions()&1024)==0)) {
     2256      int numberOdd=0;
     2257      for (int i=0;i<model_->numberObjects();i++) {
     2258        if (!model_->object(i)->canDoHeuristics())
     2259          numberOdd++;
     2260      }
     2261      if (numberOdd)
     2262        setWhen(0);
     2263    }
    22572264  }
    22582265#ifdef NEW_ROUNDING
Note: See TracChangeset for help on using the changeset viewer.