lemon/cbc.cc
changeset 998 7fdaa05a69a1
parent 746 e4554cd6b2bf
parent 988 8d281761dea4
child 1000 404b98971e1f
     1.1 --- a/lemon/cbc.cc	Wed Sep 12 17:25:48 2012 +0200
     1.2 +++ b/lemon/cbc.cc	Thu Sep 13 11:56:19 2012 +0200
     1.3 @@ -25,12 +25,7 @@
     1.4  #include <coin/CbcModel.hpp>
     1.5  #include <coin/OsiSolverInterface.hpp>
     1.6  
     1.7 -#ifdef COIN_HAS_CLP
     1.8  #include "coin/OsiClpSolverInterface.hpp"
     1.9 -#endif
    1.10 -#ifdef COIN_HAS_OSL
    1.11 -#include "coin/OsiOslSolverInterface.hpp"
    1.12 -#endif
    1.13  
    1.14  #include "coin/CbcCutGenerator.hpp"
    1.15  #include "coin/CbcHeuristicLocal.hpp"
    1.16 @@ -270,13 +265,7 @@
    1.17      if (_osi_solver) {
    1.18        delete _osi_solver;
    1.19      }
    1.20 -#ifdef COIN_HAS_CLP
    1.21      _osi_solver = new OsiClpSolverInterface();
    1.22 -#elif COIN_HAS_OSL
    1.23 -    _osi_solver = new OsiOslSolverInterface();
    1.24 -#else
    1.25 -#error Cannot instantiate Osi solver
    1.26 -#endif
    1.27  
    1.28      _osi_solver->loadFromCoinModel(*_prob);
    1.29  
    1.30 @@ -328,13 +317,11 @@
    1.31        CglFlowCover flowGen;
    1.32        _cbc_model->addCutGenerator(&flowGen, -1, "FlowCover");
    1.33  
    1.34 -#ifdef COIN_HAS_CLP
    1.35        OsiClpSolverInterface* osiclp =
    1.36          dynamic_cast<OsiClpSolverInterface*>(_cbc_model->solver());
    1.37        if (osiclp->getNumRows() < 300 && osiclp->getNumCols() < 500) {
    1.38          osiclp->setupForRepeatedUse(2, 0);
    1.39        }
    1.40 -#endif
    1.41  
    1.42        CbcRounding heuristic1(*_cbc_model);
    1.43        heuristic1.setWhen(3);
    1.44 @@ -448,8 +435,6 @@
    1.45      }
    1.46  
    1.47      _prob = new CoinModel();
    1.48 -    rows.clear();
    1.49 -    cols.clear();
    1.50    }
    1.51  
    1.52    void CbcMip::_messageLevel(MessageLevel level) {