Changeset 1571:68ce4302fb0b in lemon-0.x for demo/lp_maxflow_demo.cc
- Timestamp:
- 07/20/05 10:02:11 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2070
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/lp_maxflow_demo.cc
r1561 r1571 83 83 84 84 //Objective function: the flow value entering 't' 85 { 86 LpDefault::Expr ex; 87 for(InEdgeIt e(g,t);e!=INVALID;++e) ex+=x[e]; 88 for(OutEdgeIt e(g,t);e!=INVALID;++e) ex-=x[e]; 89 lp.setObj(ex); 90 } 85 LpDefault::Expr obj; 86 for(InEdgeIt e(g,t);e!=INVALID;++e) obj+=x[e]; 87 for(OutEdgeIt e(g,t);e!=INVALID;++e) obj-=x[e]; 88 lp.setObj(obj); 89 91 90 92 91 //Maximization
Note: See TracChangeset
for help on using the changeset viewer.