- Timestamp:
- Jul 20, 2011 2:48:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/src/CbcSolver.cpp
r1656 r1695 3580 3580 #endif 3581 3581 } 3582 if (preProcess && type == CBC_PARAM_ACTION_BAB) { 3583 // see whether to switch off preprocessing 3584 // only allow SOS and integer 3585 OsiObject ** objects = babModel_->objects(); 3586 int numberObjects = babModel_->numberObjects(); 3587 for (int iObj = 0; iObj < numberObjects; iObj++) { 3588 CbcSOS * objSOS = 3589 dynamic_cast <CbcSOS *>(objects[iObj]) ; 3590 CbcSimpleInteger * objSimpleInteger = 3591 dynamic_cast <CbcSimpleInteger *>(objects[iObj]) ; 3592 if (!objSimpleInteger&&!objSOS) { 3593 preProcess=0; 3594 break; 3595 } 3596 } 3597 } 3582 3598 if (type == CBC_PARAM_ACTION_BAB) { 3583 3599 double limit;
Note: See TracChangeset
for help on using the changeset viewer.