# HG changeset patch # User marci # Date 1102589132 0 # Node ID 9fff45a59e925c398345ea841b56e4b643f53226 # Parent 9e903d3a1ef665f49b7e483e05a60af7c78bf8b5 bug fix diff -r 9e903d3a1ef6 -r 9fff45a59e92 src/work/marci/lp/min_cost_gen_flow.h --- a/src/work/marci/lp/min_cost_gen_flow.h Wed Dec 08 20:54:26 2004 +0000 +++ b/src/work/marci/lp/min_cost_gen_flow.h Thu Dec 09 10:45:32 2004 +0000 @@ -121,7 +121,7 @@ typename GWWW::Edge ewww(ew, INVALID, false); flow.set(e, translated_flow[ewww]+lcapacity[e]); } - return (expected>=preflow.flowValue()); + return (preflow.flowValue()>=expected); } // for nonnegative costs bool run() { @@ -208,7 +208,7 @@ flow.set(e, lcapacity[e]+ min_cost_flow.getFlow()[ewww]); } - return (expected>=min_cost_flow.flowValue()); + return (min_cost_flow.flowValue()>=expected); } void runByLP() { typedef LPSolverWrapper LPSolver;