Changes in lemon/cplex.h [485:9b082b3fb33f:623:745e182d0139] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/cplex.h
r485 r623 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-200 85 * Copyright (C) 2003-2009 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 79 79 /// 80 80 /// This class implements the common interface of the CPLEX LP and 81 /// MIP solvers. 81 /// MIP solvers. 82 82 /// \ingroup lp_group 83 83 class CplexBase : virtual public LpBase { … … 145 145 virtual void _clear(); 146 146 147 virtual void _messageLevel(MessageLevel level); 148 void _applyMessageLevel(); 149 150 bool _message_enabled; 151 147 152 public: 148 153 149 154 /// Returns the used \c CplexEnv instance 150 155 const CplexEnv& env() const { return _env; } 156 157 /// \brief Returns the const cpxenv pointer 151 158 /// 159 /// \note The cpxenv might be destructed with the solver. 152 160 const cpxenv* cplexEnv() const { return _env.cplexEnv(); } 153 161 162 /// \brief Returns the const cpxenv pointer 163 /// 164 /// \note The cpxenv might be destructed with the solver. 165 cpxenv* cplexEnv() { return _env.cplexEnv(); } 166 167 /// Returns the cplex problem object 154 168 cpxlp* cplexLp() { return _prob; } 169 /// Returns the cplex problem object 155 170 const cpxlp* cplexLp() const { return _prob; } 156 171 … … 161 176 /// This class implements an interface for the CPLEX LP solver. 162 177 ///\ingroup lp_group 163 class CplexLp : public CplexBase, public LpSolver{178 class CplexLp : public LpSolver, public CplexBase { 164 179 public: 165 180 /// \e … … 171 186 /// \e 172 187 virtual ~CplexLp(); 188 189 /// \e 190 virtual CplexLp* cloneSolver() const; 191 /// \e 192 virtual CplexLp* newSolver() const; 173 193 174 194 private: … … 186 206 187 207 protected: 188 189 virtual CplexLp* _cloneSolver() const;190 virtual CplexLp* _newSolver() const;191 208 192 209 virtual const char* _solverName() const; … … 223 240 /// This class implements an interface for the CPLEX MIP solver. 224 241 ///\ingroup lp_group 225 class CplexMip : public CplexBase, public MipSolver{242 class CplexMip : public MipSolver, public CplexBase { 226 243 public: 227 244 /// \e … … 234 251 virtual ~CplexMip(); 235 252 236 protected: 237 238 virtual CplexMip* _cloneSolver() const; 239 virtual CplexMip* _newSolver() const; 253 /// \e 254 virtual CplexMip* cloneSolver() const; 255 /// \e 256 virtual CplexMip* newSolver() const; 257 258 protected: 259 240 260 241 261 virtual const char* _solverName() const;
Note: See TracChangeset
for help on using the changeset viewer.