Changeset 1899:2d4835f5a86a in lemon-0.x for lemon
- Timestamp:
- 01/18/06 10:42:59 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2474
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r1895 r1899 702 702 ///\param c is the column to be modified 703 703 ///\param e is a dual linear expression (see \ref DualExpr) 704 ///\bug This is a temporary function. The interface will change to705 704 ///a better one. 706 void setCol(Col c,const DualExpr &e) {705 void col(Col c,const DualExpr &e) { 707 706 std::vector<int> indices; 708 707 std::vector<Value> values; … … 710 709 values.push_back(0); 711 710 for(DualExpr::const_iterator i=e.begin(); i!=e.end(); ++i) 712 if((*i).second!=0) { ///\bug EPSILON would be necessary here!!!711 if((*i).second!=0) { 713 712 indices.push_back(rows.floatingId((*i).first.id)); 714 713 values.push_back((*i).second); … … 724 723 ///function. It is 0 by default. 725 724 ///\return The created column. 726 ///\bug This is a temportary function. The interface will change to727 ///a better one.728 725 Col addCol(const DualExpr &e, Value obj=0) { 729 726 Col c=addCol(); 730 setCol(c,e);727 col(c,e); 731 728 objCoeff(c,obj); 732 729 return c;
Note: See TracChangeset
for help on using the changeset viewer.