src/work/athos/lp/lp_test.cc
changeset 1293 8ede2a6b2594
parent 1273 2b2ffa625775
child 1295 02a403c305b9
equal deleted inserted replaced
6:8ab148606123 7:4be1690da314
   141   
   141   
   142   typename G::EdgeMap<LpGlpk::Col> x(g);
   142   typename G::EdgeMap<LpGlpk::Col> x(g);
   143   lp.addColSet(x);
   143   lp.addColSet(x);
   144   
   144   
   145   for(EdgeIt e(g);e!=INVALID;++e) {
   145   for(EdgeIt e(g);e!=INVALID;++e) {
   146     lp.setColUpperBound(x[e],cap[e]);
   146     lp.colUpperBound(x[e],cap[e]);
   147     lp.setColLowerBound(x[e],0);
   147     lp.colLowerBound(x[e],0);
   148   }
   148   }
   149 
   149 
   150   for(NodeIt n(g);n!=INVALID;++n) if(n!=s&&n!=t) {
   150   for(NodeIt n(g);n!=INVALID;++n) if(n!=s&&n!=t) {
   151     LpGlpk::Expr ex;
   151     LpGlpk::Expr ex;
   152     for(InEdgeIt  e(g,n);e!=INVALID;++e) ex+=x[e];
   152     for(InEdgeIt  e(g,n);e!=INVALID;++e) ex+=x[e];