diff -r 8b18b6fed090 -r 18fc834761d9 lemon/lp_glpk.cc --- a/lemon/lp_glpk.cc Mon Dec 04 15:00:24 2006 +0000 +++ b/lemon/lp_glpk.cc Mon Dec 04 16:48:13 2006 +0000 @@ -213,6 +213,13 @@ } } + LpGlpk::Value LpGlpk::_getCoeff(int row, int col) + { + ///\todo This is not yet implemented!!! + return 0; + } + + void LpGlpk::_setColLowerBound(int i, Value lo) { if (lo==INF) { @@ -424,6 +431,11 @@ lpx_set_obj_coef(lp, i, obj_coef); } + LpGlpk::Value LpGlpk::_getObjCoeff(int i){ + //i=0 means the constant term (shift) + return lpx_get_obj_coef(lp, i); + } + void LpGlpk::_clearObj() { for (int i=0;i<=lpx_get_num_cols(lp);++i){ @@ -551,7 +563,13 @@ lpx_set_obj_dir(lp, LPX_MIN); } + bool LpGlpk::_isMax() + { + return (lpx_get_obj_dir(lp)==LPX_MAX); + } + + void LpGlpk::messageLevel(int m) { lpx_set_int_parm(lp, LPX_K_MSGLEV, m);