COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cplex.h

    r485 r623  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2008
     5 * Copyright (C) 2003-2009
    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
    147152  public:
    148153
    149154    /// Returns the used \c CplexEnv instance
    150155    const CplexEnv& env() const { return _env; }
     156
     157    /// \brief Returns the const cpxenv pointer
    151158    ///
     159    /// \note The cpxenv might be destructed with the solver.
    152160    const cpxenv* cplexEnv() const { return _env.cplexEnv(); }
    153161
     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
    154168    cpxlp* cplexLp() { return _prob; }
     169    /// Returns the cplex problem object
    155170    const cpxlp* cplexLp() const { return _prob; }
    156171
     
    161176  /// This class implements an interface for the CPLEX LP solver.
    162177  ///\ingroup lp_group
    163   class CplexLp : public CplexBase, public LpSolver {
     178  class CplexLp : public LpSolver, public CplexBase {
    164179  public:
    165180    /// \e
     
    171186    /// \e
    172187    virtual ~CplexLp();
     188
     189    /// \e
     190    virtual CplexLp* cloneSolver() const;
     191    /// \e
     192    virtual CplexLp* newSolver() const;
    173193
    174194  private:
     
    186206
    187207  protected:
    188 
    189     virtual CplexLp* _cloneSolver() const;
    190     virtual CplexLp* _newSolver() const;
    191208
    192209    virtual const char* _solverName() const;
     
    223240  /// This class implements an interface for the CPLEX MIP solver.
    224241  ///\ingroup lp_group
    225   class CplexMip : public CplexBase, public MipSolver {
     242  class CplexMip : public MipSolver, public CplexBase {
    226243  public:
    227244    /// \e
     
    234251    virtual ~CplexMip();
    235252
    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
    240260
    241261    virtual const char* _solverName() const;
Note: See TracChangeset for help on using the changeset viewer.