diff -r e4ec01f1a4cd -r 852361980706 lemon/lp_glpk.h --- a/lemon/lp_glpk.h Tue Apr 08 15:16:16 2008 +0000 +++ b/lemon/lp_glpk.h Tue Apr 08 16:01:28 2008 +0000 @@ -49,8 +49,8 @@ ~LpGlpk(); protected: - virtual LpSolverBase &_newLp(); - virtual LpSolverBase &_copyLp(); + virtual LpSolverBase* _newLp(); + virtual LpSolverBase* _copyLp(); virtual int _addCol(); virtual int _addRow(); @@ -120,6 +120,12 @@ ///Pointer to the underlying GLPK data structure. LPX *lpx() {return lp;} + + ///Returns the constraint identifier understood by GLPK. + int lpxRow(Row r) { return _lpId(r); } + + ///Returns the variable identifier understood by GLPK. + int lpxCol(Col c) { return _lpId(c); } }; } //END OF NAMESPACE LEMON