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/CbcHeuristicDive.cpp

    r1121 r1148  
    636636    if (model_->numberIntegers()!=
    637637        model_->numberObjects()&&(model_->numberObjects()||
    638                                   (model_->specialOptions()&1024)==0))
    639       setWhen(0);
     638                                  (model_->specialOptions()&1024)==0)) {
     639      int numberOdd=0;
     640      for (int i=0;i<model_->numberObjects();i++) {
     641        if (!model_->object(i)->canDoHeuristics())
     642          numberOdd++;
     643      }
     644      if (numberOdd)
     645        setWhen(0);
     646    }
    640647  }
    641648
Note: See TracChangeset for help on using the changeset viewer.