src/lemon/lp_glpk.h
changeset 1370 76a3f46d361c
parent 1359 1581f961cfaa
child 1376 8de0c1aeeb32
equal deleted inserted replaced
6:e0f734cf6bcc 7:57d3b2eb43cc
    29 namespace lemon {
    29 namespace lemon {
    30 
    30 
    31 
    31 
    32   /// \brief Wrapper for GLPK solver
    32   /// \brief Wrapper for GLPK solver
    33   /// 
    33   /// 
    34   /// This class implements a lemon wrapper for GLPK.
    34   /// This class implements an interface for GLPK.
    35   ///\ingroup gen_opt_group
    35   ///\ingroup gen_opt_group
    36   class LpGlpk : public LpSolverBase {
    36   class LpGlpk : public LpSolverBase {
    37   protected:
    37   protected:
    38     LPX* lp;
    38     LPX* lp;
    39     
    39     
    43     
    43     
    44     LpGlpk();
    44     LpGlpk();
    45     ~LpGlpk();
    45     ~LpGlpk();
    46     
    46     
    47   protected:
    47   protected:
       
    48     virtual LpSolverBase &_newLp();
       
    49     virtual LpSolverBase &_copyLp();
       
    50 
    48     virtual int _addCol();
    51     virtual int _addCol();
    49     virtual int _addRow();
    52     virtual int _addRow();
    50     virtual void _setRowCoeffs(int i, 
    53     virtual void _setRowCoeffs(int i, 
    51 			       int length,
    54 			       int length,
    52                                const int   * indices, 
    55                                const int   * indices,