[Lemon-commits] [lemon_svn] alpar: r2474 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:56 CET 2006


Author: alpar
Date: Wed Jan 18 10:42:59 2006
New Revision: 2474

Modified:
   hugo/trunk/lemon/lp_base.h

Log:
- setCol() -> col()
- better doc.

Modified: hugo/trunk/lemon/lp_base.h
==============================================================================
--- hugo/trunk/lemon/lp_base.h	(original)
+++ hugo/trunk/lemon/lp_base.h	Wed Jan 18 10:42:59 2006
@@ -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<int> indices;
       std::vector<Value> 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;
     }



More information about the Lemon-commits mailing list