# HG changeset patch # User athos # Date 1083858462 0 # Node ID 2d27cbaa982dbd6618b3a4f76fa39e1aea30e281 # Parent 8e5102790d4db6ede737ee2b1ed2b587205af617 Method checkSolution() added. diff -r 8e5102790d4d -r 2d27cbaa982d src/work/athos/mincostflows.h --- a/src/work/athos/mincostflows.h Thu May 06 15:39:31 2004 +0000 +++ b/src/work/athos/mincostflows.h Thu May 06 15:47:42 2004 +0000 @@ -187,13 +187,15 @@ //This function checks, whether the given solution is optimal //Running after a \c run() should return with true + //In this "state of the art" this only check optimality, doesn't bother with feasibility bool checkSolution(){ Length mod_pot; Length fl_e; FOR_EACH_LOC(typename Graph::EdgeIt, e, G){ //C^{\Pi}_{i,j} - mod_pot = length[e]-potential[G.head(e)]+potential[G.head(e)]; + mod_pot = length[e]-potential[G.head(e)]+potential[G.tail(e)]; fl_e = flow[e]; + // std::cout << fl_e << std::endl; if (0