Changeset 1121 for trunk/Cbc/src/CbcCutGenerator.cpp
- Timestamp:
- Jan 14, 2009 4:19:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/src/CbcCutGenerator.cpp
r1053 r1121 38 38 mustCallAgain_(false), 39 39 switchedOff_(false), 40 globalCutsAtRoot_(false), 40 41 timing_(false), 41 42 timeInCutGenerator_(0.0), … … 60 61 mustCallAgain_(false), 61 62 switchedOff_(false), 63 globalCutsAtRoot_(false), 62 64 timing_(false), 63 65 timeInCutGenerator_(0.0), … … 69 71 numberActiveCutsAtRoot_(0) 70 72 { 73 if (howOften<-1000) { 74 globalCutsAtRoot_=true; 75 howOften+=1000; 76 } 71 77 model_ = model; 72 78 generator_=generator->clone(); … … 101 107 mustCallAgain_ = rhs.mustCallAgain_; 102 108 switchedOff_ = rhs.switchedOff_; 109 globalCutsAtRoot_ = rhs.globalCutsAtRoot_; 103 110 timing_ = rhs.timing_; 104 111 timeInCutGenerator_ = rhs.timeInCutGenerator_; … … 132 139 mustCallAgain_ = rhs.mustCallAgain_; 133 140 switchedOff_ = rhs.switchedOff_; 141 globalCutsAtRoot_ = rhs.globalCutsAtRoot_; 134 142 timing_ = rhs.timing_; 135 143 timeInCutGenerator_ = rhs.timeInCutGenerator_; … … 232 240 info.inTree = node!=NULL; 233 241 info.randomNumberGenerator=randomNumberGenerator; 242 info.options=(globalCutsAtRoot_) ? 8 : 0; 234 243 incrementNumberTimesEntered(); 235 244 CglProbing* generator = … … 246 255 bool doCuts=false; 247 256 if (info2&&!depth) { 257 info2->options=(globalCutsAtRoot_) ? 8 : 0; 248 258 info2->level = depth; 249 259 info2->pass = pass; … … 269 279 2000123, 270 280 2099999}; 271 int n = (int)(sizeof(test)/sizeof(int));281 int n = static_cast<int> (sizeof(test)/sizeof(int)); 272 282 int saveStack = generator->getMaxLook(); 273 283 int saveNumber = generator->getMaxProbe();
Note: See TracChangeset
for help on using the changeset viewer.