bug fix
authormarci
Thu, 09 Dec 2004 10:45:32 +0000
changeset 10339fff45a59e92
parent 1032 9e903d3a1ef6
child 1034 be6ee857b72d
bug fix
src/work/marci/lp/min_cost_gen_flow.h
     1.1 --- a/src/work/marci/lp/min_cost_gen_flow.h	Wed Dec 08 20:54:26 2004 +0000
     1.2 +++ b/src/work/marci/lp/min_cost_gen_flow.h	Thu Dec 09 10:45:32 2004 +0000
     1.3 @@ -121,7 +121,7 @@
     1.4  	typename GWWW::Edge ewww(ew, INVALID, false);
     1.5  	flow.set(e, translated_flow[ewww]+lcapacity[e]);
     1.6        }
     1.7 -      return (expected>=preflow.flowValue());
     1.8 +      return (preflow.flowValue()>=expected);
     1.9      }
    1.10      // for nonnegative costs
    1.11      bool run() {
    1.12 @@ -208,7 +208,7 @@
    1.13  	flow.set(e, lcapacity[e]+
    1.14  		 min_cost_flow.getFlow()[ewww]);
    1.15        }
    1.16 -      return (expected>=min_cost_flow.flowValue());
    1.17 +      return (min_cost_flow.flowValue()>=expected);
    1.18      }
    1.19      void runByLP() {
    1.20        typedef LPSolverWrapper LPSolver;