- Timestamp:
- Sep 12, 2011 3:15:28 AM (9 years ago)
- Location:
- stable/2.7/Cbc/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/2.7/Cbc/src/CbcHeuristic.cpp
r1675 r1724 1176 1176 #endif 1177 1177 model.passInEventHandler(model_->getEventHandler()); 1178 // say model_ is sitting there 1179 int saveOptions = model_->specialOptions(); 1180 model_->setSpecialOptions(saveOptions|1048576); 1178 1181 model.branchAndBound(); 1182 model_->setSpecialOptions(saveOptions); 1179 1183 #ifdef ALWAYS_DUAL 1180 1184 solver = model.solver(); -
stable/2.7/Cbc/src/CbcModel.cpp
r1716 r1724 12047 12047 delete eventHandler_; 12048 12048 eventHandler_ = NULL ; 12049 if (eventHandler) 12049 if (eventHandler) { 12050 12050 eventHandler_ = eventHandler->clone(); 12051 eventHandler_->setModel(this); 12052 } 12051 12053 } 12052 12054 -
stable/2.7/Cbc/src/CbcModel.hpp
r1711 r1724 1718 1718 18 bit (262144) - donor CbcModel 1719 1719 19 bit (524288) - recipient CbcModel 1720 20 bit (1048576) - waiting for sub model to return 1720 1721 */ 1721 1722 inline void setSpecialOptions(int value) { … … 1729 1730 inline bool normalSolver() const { 1730 1731 return (specialOptions_&16) == 0; 1732 } 1733 /** Says if model is sitting there waiting for mini branch and bound to finish 1734 This is because an event handler may only have access to parent model in 1735 mini branch and bound 1736 */ 1737 inline bool waitingForMiniBranchAndBound() const { 1738 return (specialOptions_&1048576) != 0; 1731 1739 } 1732 1740 /** Set more special options
Note: See TracChangeset
for help on using the changeset viewer.