Changes in lemon/cbc.cc [1142:4764031c082c:793:e4554cd6b2bf] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/cbc.cc
r1142 r793 26 26 #include <coin/OsiSolverInterface.hpp> 27 27 28 #ifdef COIN_HAS_CLP 28 29 #include "coin/OsiClpSolverInterface.hpp" 30 #endif 31 #ifdef COIN_HAS_OSL 32 #include "coin/OsiOslSolverInterface.hpp" 33 #endif 29 34 30 35 #include "coin/CbcCutGenerator.hpp" … … 266 271 delete _osi_solver; 267 272 } 273 #ifdef COIN_HAS_CLP 268 274 _osi_solver = new OsiClpSolverInterface(); 275 #elif COIN_HAS_OSL 276 _osi_solver = new OsiOslSolverInterface(); 277 #else 278 #error Cannot instantiate Osi solver 279 #endif 269 280 270 281 _osi_solver->loadFromCoinModel(*_prob); … … 318 329 _cbc_model->addCutGenerator(&flowGen, -1, "FlowCover"); 319 330 331 #ifdef COIN_HAS_CLP 320 332 OsiClpSolverInterface* osiclp = 321 333 dynamic_cast<OsiClpSolverInterface*>(_cbc_model->solver()); … … 323 335 osiclp->setupForRepeatedUse(2, 0); 324 336 } 337 #endif 325 338 326 339 CbcRounding heuristic1(*_cbc_model); … … 436 449 437 450 _prob = new CoinModel(); 451 rows.clear(); 452 cols.clear(); 438 453 } 439 454
Note: See TracChangeset
for help on using the changeset viewer.