Changeset 951:ee581a0ecfbf in lemon-1.2 for lemon/cbc.cc
- Timestamp:
- 01/06/12 16:27:06 (12 years ago)
- Branch:
- default
- Children:
- 952:0976225b5cae, 953:b873350e6258
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/cbc.cc
r576 r951 26 26 #include <coin/OsiSolverInterface.hpp> 27 27 28 #ifdef COIN_HAS_CLP29 28 #include "coin/OsiClpSolverInterface.hpp" 30 #endif31 #ifdef COIN_HAS_OSL32 #include "coin/OsiOslSolverInterface.hpp"33 #endif34 29 35 30 #include "coin/CbcCutGenerator.hpp" … … 259 254 delete _osi_solver; 260 255 } 261 #ifdef COIN_HAS_CLP262 256 _osi_solver = new OsiClpSolverInterface(); 263 #elif COIN_HAS_OSL264 _osi_solver = new OsiOslSolverInterface();265 #else266 #error Cannot instantiate Osi solver267 #endif268 257 269 258 _osi_solver->loadFromCoinModel(*_prob); … … 317 306 _cbc_model->addCutGenerator(&flowGen, -1, "FlowCover"); 318 307 319 #ifdef COIN_HAS_CLP320 308 OsiClpSolverInterface* osiclp = 321 309 dynamic_cast<OsiClpSolverInterface*>(_cbc_model->solver()); … … 323 311 osiclp->setupForRepeatedUse(2, 0); 324 312 } 325 #endif326 313 327 314 CbcRounding heuristic1(*_cbc_model);
Note: See TracChangeset
for help on using the changeset viewer.