COIN-OR::LEMON - Graph Library

Changeset 1571:68ce4302fb0b in lemon-0.x for demo


Ignore:
Timestamp:
07/20/05 10:02:11 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2070
Message:

Minor change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/lp_maxflow_demo.cc

    r1561 r1571  
    8383 
    8484  //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
    9190
    9291  //Maximization
Note: See TracChangeset for help on using the changeset viewer.