lemon/cplex.h
changeset 541 89e29e22d479
parent 462 9b082b3fb33f
child 551 9d0d7e20f76d
equal deleted inserted replaced
1:9605b50a8dac 2:e118dae32ec8
   158 
   158 
   159   /// \brief Interface for the CPLEX LP solver
   159   /// \brief Interface for the CPLEX LP solver
   160   ///
   160   ///
   161   /// This class implements an interface for the CPLEX LP solver.
   161   /// This class implements an interface for the CPLEX LP solver.
   162   ///\ingroup lp_group
   162   ///\ingroup lp_group
   163   class CplexLp : public CplexBase, public LpSolver {
   163   class CplexLp : public LpSolver, public CplexBase {
   164   public:
   164   public:
   165     /// \e
   165     /// \e
   166     CplexLp();
   166     CplexLp();
   167     /// \e
   167     /// \e
   168     CplexLp(const CplexEnv&);
   168     CplexLp(const CplexEnv&);
   169     /// \e
   169     /// \e
   170     CplexLp(const CplexLp&);
   170     CplexLp(const CplexLp&);
   171     /// \e
   171     /// \e
   172     virtual ~CplexLp();
   172     virtual ~CplexLp();
       
   173 
       
   174     /// \e
       
   175     virtual CplexLp* cloneSolver() const;
       
   176     /// \e
       
   177     virtual CplexLp* newSolver() const;
   173 
   178 
   174   private:
   179   private:
   175 
   180 
   176     // these values cannot retrieved element by element
   181     // these values cannot retrieved element by element
   177     mutable std::vector<int> _col_status;
   182     mutable std::vector<int> _col_status;
   183     void _clear_temporals();
   188     void _clear_temporals();
   184 
   189 
   185     SolveExitStatus convertStatus(int status);
   190     SolveExitStatus convertStatus(int status);
   186 
   191 
   187   protected:
   192   protected:
   188 
       
   189     virtual CplexLp* _cloneSolver() const;
       
   190     virtual CplexLp* _newSolver() const;
       
   191 
   193 
   192     virtual const char* _solverName() const;
   194     virtual const char* _solverName() const;
   193 
   195 
   194     virtual SolveExitStatus _solve();
   196     virtual SolveExitStatus _solve();
   195     virtual Value _getPrimal(int i) const;
   197     virtual Value _getPrimal(int i) const;
   220 
   222 
   221   /// \brief Interface for the CPLEX MIP solver
   223   /// \brief Interface for the CPLEX MIP solver
   222   ///
   224   ///
   223   /// This class implements an interface for the CPLEX MIP solver.
   225   /// This class implements an interface for the CPLEX MIP solver.
   224   ///\ingroup lp_group
   226   ///\ingroup lp_group
   225   class CplexMip : public CplexBase, public MipSolver {
   227   class CplexMip : public MipSolver, public CplexBase {
   226   public:
   228   public:
   227     /// \e
   229     /// \e
   228     CplexMip();
   230     CplexMip();
   229     /// \e
   231     /// \e
   230     CplexMip(const CplexEnv&);
   232     CplexMip(const CplexEnv&);