Changeset 1493:94535d1833b5 in lemon-0.x
- Timestamp:
- 06/15/05 12:13:08 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1974
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r1484 r1493 489 489 } 490 490 ///\e 491 DualExpr(const Value &v) {}492 ///\e493 491 void set(const Key &v,const Value &c) { 494 492 Base::insert(std::make_pair(v, c)); … … 707 705 ///\bug This is a temportary function. The interface will change to 708 706 ///a better one. 709 Col addCol( Value l,const DualExpr &e, Value obj=0) {707 Col addCol(const DualExpr &e, Value obj=0) { 710 708 Col c=addCol(); 711 709 setCol(c,e); 712 objCoeff(c, 0);710 objCoeff(c,obj); 713 711 return c; 714 712 } -
test/lp_test.cc
r1484 r1493 165 165 e/=2.2; 166 166 167 e=((p1+p2)+(p1-p2)+ (p1+12)+(12+p1)+(p1-12)+(12-p1)+167 e=((p1+p2)+(p1-p2)+ 168 168 (p1+f)+(f+p1)+(f+g)+ 169 169 (p1-f)+(f-p1)+(f-g)+
Note: See TracChangeset
for help on using the changeset viewer.