diff -r 8de0c1aeeb32 -r bfbb5b30c5b8 src/lemon/lp_base.h --- a/src/lemon/lp_base.h Wed Apr 20 14:29:23 2005 +0000 +++ b/src/lemon/lp_base.h Wed Apr 20 15:06:42 2005 +0000 @@ -434,9 +434,10 @@ virtual void _setRowLowerBound(int i, Value value) = 0; virtual void _setRowUpperBound(int i, Value value) = 0; virtual void _setObjCoeff(int i, Value obj_coef) = 0; - virtual void _setObj(int length, - int const * indices, - Value const * values ) = 0; + virtual void _clearObj()=0; +// virtual void _setObj(int length, +// int const * indices, +// Value const * values ) = 0; virtual SolveExitStatus _solve() = 0; virtual Value _getPrimal(int i) = 0; virtual Value _getPrimalValue() = 0; @@ -449,10 +450,8 @@ //Constant component of the objective function Value obj_const_comp; - ///\e - - ///\bug Unimplemented - void clearObj() {} + + public: @@ -667,7 +666,7 @@ ///\param e is a linear expression of type \ref Expr. ///\bug The previous objective function is not cleared! void setObj(Expr e) { - clearObj(); + _clearObj(); for (Expr::iterator i=e.begin(); i!=e.end(); ++i) objCoeff((*i).first,(*i).second); obj_const_comp=e.constComp();