COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cbc.cc

    r1120 r623  
    2626#include <coin/OsiSolverInterface.hpp>
    2727
     28#ifdef COIN_HAS_CLP
    2829#include "coin/OsiClpSolverInterface.hpp"
     30#endif
     31#ifdef COIN_HAS_OSL
     32#include "coin/OsiOslSolverInterface.hpp"
     33#endif
    2934
    3035#include "coin/CbcCutGenerator.hpp"
     
    254259      delete _osi_solver;
    255260    }
     261#ifdef COIN_HAS_CLP
    256262    _osi_solver = new OsiClpSolverInterface();
     263#elif COIN_HAS_OSL
     264    _osi_solver = new OsiOslSolverInterface();
     265#else
     266#error Cannot instantiate Osi solver
     267#endif
    257268
    258269    _osi_solver->loadFromCoinModel(*_prob);
     
    306317      _cbc_model->addCutGenerator(&flowGen, -1, "FlowCover");
    307318
     319#ifdef COIN_HAS_CLP
    308320      OsiClpSolverInterface* osiclp =
    309321        dynamic_cast<OsiClpSolverInterface*>(_cbc_model->solver());
     
    311323        osiclp->setupForRepeatedUse(2, 0);
    312324      }
     325#endif
    313326
    314327      CbcRounding heuristic1(*_cbc_model);
Note: See TracChangeset for help on using the changeset viewer.