COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cplex.h

    r623 r485  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2009
     5 * Copyright (C) 2003-2008
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    7979  ///
    8080  /// This class implements the common interface of the CPLEX LP and
    81   /// MIP solvers.
     81  /// MIP solvers. 
    8282  /// \ingroup lp_group
    8383  class CplexBase : virtual public LpBase {
     
    145145    virtual void _clear();
    146146
    147     virtual void _messageLevel(MessageLevel level);
    148     void _applyMessageLevel();
    149 
    150     bool _message_enabled;
    151 
    152147  public:
    153148
    154149    /// Returns the used \c CplexEnv instance
    155150    const CplexEnv& env() const { return _env; }
    156 
    157     /// \brief Returns the const cpxenv pointer
    158151    ///
    159     /// \note The cpxenv might be destructed with the solver.
    160152    const cpxenv* cplexEnv() const { return _env.cplexEnv(); }
    161153
    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
    168154    cpxlp* cplexLp() { return _prob; }
    169     /// Returns the cplex problem object
    170155    const cpxlp* cplexLp() const { return _prob; }
    171156
     
    176161  /// This class implements an interface for the CPLEX LP solver.
    177162  ///\ingroup lp_group
    178   class CplexLp : public LpSolver, public CplexBase {
     163  class CplexLp : public CplexBase, public LpSolver {
    179164  public:
    180165    /// \e
     
    186171    /// \e
    187172    virtual ~CplexLp();
    188 
    189     /// \e
    190     virtual CplexLp* cloneSolver() const;
    191     /// \e
    192     virtual CplexLp* newSolver() const;
    193173
    194174  private:
     
    206186
    207187  protected:
     188
     189    virtual CplexLp* _cloneSolver() const;
     190    virtual CplexLp* _newSolver() const;
    208191
    209192    virtual const char* _solverName() const;
     
    240223  /// This class implements an interface for the CPLEX MIP solver.
    241224  ///\ingroup lp_group
    242   class CplexMip : public MipSolver, public CplexBase {
     225  class CplexMip : public CplexBase, public MipSolver {
    243226  public:
    244227    /// \e
     
    251234    virtual ~CplexMip();
    252235
    253     /// \e
    254     virtual CplexMip* cloneSolver() const;
    255     /// \e
    256     virtual CplexMip* newSolver() const;
    257 
    258   protected:
    259 
     236  protected:
     237
     238    virtual CplexMip* _cloneSolver() const;
     239    virtual CplexMip* _newSolver() const;
    260240
    261241    virtual const char* _solverName() const;
Note: See TracChangeset for help on using the changeset viewer.