lemon/lp_glpk.h
changeset 2635 23570e368afa
parent 2557 673cb4d1060b
equal deleted inserted replaced
18:944be931ad85 19:49d903cbb531
    47     LpGlpk();
    47     LpGlpk();
    48     LpGlpk(const LpGlpk &);
    48     LpGlpk(const LpGlpk &);
    49     ~LpGlpk();
    49     ~LpGlpk();
    50     
    50     
    51   protected:
    51   protected:
    52     virtual LpSolverBase &_newLp();
    52     virtual LpSolverBase* _newLp();
    53     virtual LpSolverBase &_copyLp();
    53     virtual LpSolverBase* _copyLp();
    54 
    54 
    55     virtual int _addCol();
    55     virtual int _addCol();
    56     virtual int _addRow();
    56     virtual int _addRow();
    57     virtual void _eraseCol(int i);
    57     virtual void _eraseCol(int i);
    58     virtual void _eraseRow(int i);
    58     virtual void _eraseRow(int i);
   118     ///The presolver is off by default.
   118     ///The presolver is off by default.
   119     void presolver(bool b);
   119     void presolver(bool b);
   120 
   120 
   121     ///Pointer to the underlying GLPK data structure.
   121     ///Pointer to the underlying GLPK data structure.
   122     LPX *lpx() {return lp;}
   122     LPX *lpx() {return lp;}
       
   123 
       
   124     ///Returns the constraint identifier understood by GLPK.
       
   125     int lpxRow(Row r) { return _lpId(r); }
       
   126 
       
   127     ///Returns the variable identifier understood by GLPK.
       
   128     int lpxCol(Col c) { return _lpId(c); }
   123   };
   129   };
   124 } //END OF NAMESPACE LEMON
   130 } //END OF NAMESPACE LEMON
   125 
   131 
   126 #endif //LEMON_LP_GLPK_H
   132 #endif //LEMON_LP_GLPK_H
   127 
   133