diff -r 6b2e8b734ae7 -r 6ae1a97055a2 lemon/lp_base.h --- a/lemon/lp_base.h Mon Feb 19 12:11:41 2007 +0000 +++ b/lemon/lp_base.h Mon Feb 19 18:21:28 2007 +0000 @@ -972,7 +972,7 @@ ///\param l is lower bound (-\ref INF means no bound) ///\param e is a linear expression (see \ref Expr) ///\param u is the upper bound (\ref INF means no bound) - ///\bug This is a temportary function. The interface will change to + ///\bug This is a temporary function. The interface will change to ///a better one. ///\todo Option to control whether a constraint with a single variable is ///added or not. @@ -1009,7 +1009,7 @@ ///\param e is a linear expression (see \ref Expr) ///\param u is the upper bound (\ref INF means no bound) ///\return The created row. - ///\bug This is a temportary function. The interface will change to + ///\bug This is a temporary function. The interface will change to ///a better one. Row addRow(Value l,const Expr &e, Value u) { Row r=addRow(); @@ -1284,8 +1284,7 @@ ///Set the objective function ///\param e is a linear expression of type \ref Expr. - ///\bug Is should be called obj() - void setObj(Expr e) { + void obj(Expr e) { _clearObj(); for (Expr::iterator i=e.begin(); i!=e.end(); ++i) objCoeff((*i).first,(*i).second); @@ -1313,10 +1312,10 @@ void min() { _setMin(); } ///Query function: is this a maximization problem? - bool is_max() const {return _isMax(); } + bool isMax() const {return _isMax(); } ///Query function: is this a minimization problem? - bool is_min() const {return !is_max(); } + bool isMin() const {return !isMax(); } ///@}