diff -r f030c01e6173 -r 2d4835f5a86a lemon/lp_base.h --- a/lemon/lp_base.h Wed Jan 18 09:42:08 2006 +0000 +++ b/lemon/lp_base.h Wed Jan 18 09:42:59 2006 +0000 @@ -701,15 +701,14 @@ ///\param c is the column to be modified ///\param e is a dual linear expression (see \ref DualExpr) - ///\bug This is a temporary function. The interface will change to ///a better one. - void setCol(Col c,const DualExpr &e) { + void col(Col c,const DualExpr &e) { std::vector indices; std::vector values; indices.push_back(0); values.push_back(0); for(DualExpr::const_iterator i=e.begin(); i!=e.end(); ++i) - if((*i).second!=0) { ///\bug EPSILON would be necessary here!!! + if((*i).second!=0) { indices.push_back(rows.floatingId((*i).first.id)); values.push_back((*i).second); } @@ -723,11 +722,9 @@ ///\param obj is the corresponding component of the objective ///function. It is 0 by default. ///\return The created column. - ///\bug This is a temportary function. The interface will change to - ///a better one. Col addCol(const DualExpr &e, Value obj=0) { Col c=addCol(); - setCol(c,e); + col(c,e); objCoeff(c,obj); return c; }