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

    r961 r1148  
    375375    if (model_->numberIntegers()!=
    376376        model_->numberObjects()&&(model_->numberObjects()||
    377                                   (model_->specialOptions()&1024)==0))
    378       setWhen(0);
     377                                  (model_->specialOptions()&1024)==0)) {
     378      int numberOdd=0;
     379      for (int i=0;i<model_->numberObjects();i++) {
     380        if (!model_->object(i)->canDoHeuristics())
     381          numberOdd++;
     382      }
     383      if (numberOdd)
     384        setWhen(0);
     385    }
    379386    // Only works if costs positive, coefficients positive and all rows G
    380387    OsiSolverInterface * solver = model_->solver();
Note: See TracChangeset for help on using the changeset viewer.