athos@1260: // -*- c++ -*-
athos@1260: #ifndef LEMON_LP_SOLVER_GLPK_CC
athos@1260: #define LEMON_LP_SOLVER_GLPK_CC
athos@1260:     //LOW LEVEL INTERFACE, MATRIX MANIPULATING FUNCTIONS
athos@1260: extern "C" {
athos@1260: #include "glpk.h"
athos@1260: }
athos@1260: #include "lp_solver_glpk.h"
athos@1260: 
athos@1260: namespace lemon {
athos@1260: 
athos@1260: 
athos@1260:     /// \e
athos@1260:     int LpGlpk::_addCol() { 
athos@1260:       int i=lpx_add_cols(lp, 1);
athos@1260:       _setColLowerBound(i, -INF);
athos@1260:       _setColUpperBound(i, INF);
athos@1260:       return i;
athos@1260:     }
athos@1260:     /// \e
athos@1260:     int LpGlpk::_addRow() { 
athos@1260:       int i=lpx_add_rows(lp, 1);
athos@1260:       return i;
athos@1260:     }
athos@1260: 
athos@1260: } //namespace lemon
athos@1260: 
athos@1260: #endif //LEMON_LP_SOLVER_GLPK_CC