lemon/glpk.h
changeset 514 f5bc148f7e1f
parent 461 08d495d48089
child 525 0fec6a017ead
child 528 9db62975c32b
equal deleted inserted replaced
0:e2fe6de73865 1:d1dbef73c4dc
   117 
   117 
   118   /// \brief Interface for the GLPK LP solver
   118   /// \brief Interface for the GLPK LP solver
   119   ///
   119   ///
   120   /// This class implements an interface for the GLPK LP solver.
   120   /// This class implements an interface for the GLPK LP solver.
   121   ///\ingroup lp_group
   121   ///\ingroup lp_group
   122   class LpGlpk : public GlpkBase, public LpSolver {
   122   class GlpkLp : public GlpkBase, public LpSolver {
   123   public:
   123   public:
   124 
   124 
   125     ///\e
   125     ///\e
   126     LpGlpk();
   126     GlpkLp();
   127     ///\e
   127     ///\e
   128     LpGlpk(const LpGlpk&);
   128     GlpkLp(const GlpkLp&);
   129 
   129 
   130   private:
   130   private:
   131 
   131 
   132     mutable std::vector<double> _primal_ray;
   132     mutable std::vector<double> _primal_ray;
   133     mutable std::vector<double> _dual_ray;
   133     mutable std::vector<double> _dual_ray;
   134 
   134 
   135     void _clear_temporals();
   135     void _clear_temporals();
   136 
   136 
   137   protected:
   137   protected:
   138 
   138 
   139     virtual LpGlpk* _cloneSolver() const;
   139     virtual GlpkLp* _cloneSolver() const;
   140     virtual LpGlpk* _newSolver() const;
   140     virtual GlpkLp* _newSolver() const;
   141 
   141 
   142     virtual const char* _solverName() const;
   142     virtual const char* _solverName() const;
   143 
   143 
   144     virtual SolveExitStatus _solve();
   144     virtual SolveExitStatus _solve();
   145     virtual Value _getPrimal(int i) const;
   145     virtual Value _getPrimal(int i) const;
   201 
   201 
   202   /// \brief Interface for the GLPK MIP solver
   202   /// \brief Interface for the GLPK MIP solver
   203   ///
   203   ///
   204   /// This class implements an interface for the GLPK MIP solver.
   204   /// This class implements an interface for the GLPK MIP solver.
   205   ///\ingroup lp_group
   205   ///\ingroup lp_group
   206   class MipGlpk : public GlpkBase, public MipSolver {
   206   class GlpkMip : public GlpkBase, public MipSolver {
   207   public:
   207   public:
   208 
   208 
   209     ///\e
   209     ///\e
   210     MipGlpk();
   210     GlpkMip();
   211     ///\e
   211     ///\e
   212     MipGlpk(const MipGlpk&);
   212     GlpkMip(const GlpkMip&);
   213 
   213 
   214   protected:
   214   protected:
   215 
   215 
   216     virtual MipGlpk* _cloneSolver() const;
   216     virtual GlpkMip* _cloneSolver() const;
   217     virtual MipGlpk* _newSolver() const;
   217     virtual GlpkMip* _newSolver() const;
   218 
   218 
   219     virtual const char* _solverName() const;
   219     virtual const char* _solverName() const;
   220 
   220 
   221     virtual ColTypes _getColType(int col) const;
   221     virtual ColTypes _getColType(int col) const;
   222     virtual void _setColType(int col, ColTypes col_type);
   222     virtual void _setColType(int col, ColTypes col_type);