lemon/cplex.h
changeset 476 efec3c133e74
parent 461 08d495d48089
child 540 9db62975c32b
equal deleted inserted replaced
0:103983bd0a7f 1:9605b50a8dac
   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 LpCplex : public CplexBase, public LpSolver {
   163   class CplexLp : public CplexBase, public LpSolver {
   164   public:
   164   public:
   165     /// \e
   165     /// \e
   166     LpCplex();
   166     CplexLp();
   167     /// \e
   167     /// \e
   168     LpCplex(const CplexEnv&);
   168     CplexLp(const CplexEnv&);
   169     /// \e
   169     /// \e
   170     LpCplex(const LpCplex&);
   170     CplexLp(const CplexLp&);
   171     /// \e
   171     /// \e
   172     virtual ~LpCplex();
   172     virtual ~CplexLp();
   173 
   173 
   174   private:
   174   private:
   175 
   175 
   176     // these values cannot retrieved element by element
   176     // these values cannot retrieved element by element
   177     mutable std::vector<int> _col_status;
   177     mutable std::vector<int> _col_status;
   184 
   184 
   185     SolveExitStatus convertStatus(int status);
   185     SolveExitStatus convertStatus(int status);
   186 
   186 
   187   protected:
   187   protected:
   188 
   188 
   189     virtual LpCplex* _cloneSolver() const;
   189     virtual CplexLp* _cloneSolver() const;
   190     virtual LpCplex* _newSolver() const;
   190     virtual CplexLp* _newSolver() const;
   191 
   191 
   192     virtual const char* _solverName() const;
   192     virtual const char* _solverName() const;
   193 
   193 
   194     virtual SolveExitStatus _solve();
   194     virtual SolveExitStatus _solve();
   195     virtual Value _getPrimal(int i) const;
   195     virtual Value _getPrimal(int i) const;
   220 
   220 
   221   /// \brief Interface for the CPLEX MIP solver
   221   /// \brief Interface for the CPLEX MIP solver
   222   ///
   222   ///
   223   /// This class implements an interface for the CPLEX MIP solver.
   223   /// This class implements an interface for the CPLEX MIP solver.
   224   ///\ingroup lp_group
   224   ///\ingroup lp_group
   225   class MipCplex : public CplexBase, public MipSolver {
   225   class CplexMip : public CplexBase, public MipSolver {
   226   public:
   226   public:
   227     /// \e
   227     /// \e
   228     MipCplex();
   228     CplexMip();
   229     /// \e
   229     /// \e
   230     MipCplex(const CplexEnv&);
   230     CplexMip(const CplexEnv&);
   231     /// \e
   231     /// \e
   232     MipCplex(const MipCplex&);
   232     CplexMip(const CplexMip&);
   233     /// \e
   233     /// \e
   234     virtual ~MipCplex();
   234     virtual ~CplexMip();
   235 
   235 
   236   protected:
   236   protected:
   237 
   237 
   238     virtual MipCplex* _cloneSolver() const;
   238     virtual CplexMip* _cloneSolver() const;
   239     virtual MipCplex* _newSolver() const;
   239     virtual CplexMip* _newSolver() const;
   240 
   240 
   241     virtual const char* _solverName() const;
   241     virtual const char* _solverName() const;
   242 
   242 
   243     virtual ColTypes _getColType(int col) const;
   243     virtual ColTypes _getColType(int col) const;
   244     virtual void _setColType(int col, ColTypes col_type);
   244     virtual void _setColType(int col, ColTypes col_type);