Merge bugfix #368 to branch 1.2 1.2
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 03 May 2010 10:24:52 +0200
branch1.2
changeset 978cbf32bf95954
parent 974 e26ad33d1fbc
parent 976 5205145fabf6
child 985 f63fd24c0aea
Merge bugfix #368 to branch 1.2
lemon/network_simplex.h
     1.1 --- a/lemon/network_simplex.h	Mon Apr 12 17:00:05 2010 +0200
     1.2 +++ b/lemon/network_simplex.h	Mon May 03 10:24:52 2010 +0200
     1.3 @@ -1077,7 +1077,7 @@
     1.4        if (std::numeric_limits<Cost>::is_exact) {
     1.5          ART_COST = std::numeric_limits<Cost>::max() / 2 + 1;
     1.6        } else {
     1.7 -        ART_COST = std::numeric_limits<Cost>::min();
     1.8 +        ART_COST = 0;
     1.9          for (int i = 0; i != _arc_num; ++i) {
    1.10            if (_cost[i] > ART_COST) ART_COST = _cost[i];
    1.11          }
    1.12 @@ -1589,7 +1589,7 @@
    1.13        // optimality conditions
    1.14        if (_sum_supply == 0) {
    1.15          if (_stype == GEQ) {
    1.16 -          Cost max_pot = std::numeric_limits<Cost>::min();
    1.17 +          Cost max_pot = -std::numeric_limits<Cost>::max();
    1.18            for (int i = 0; i != _node_num; ++i) {
    1.19              if (_pi[i] > max_pot) max_pot = _pi[i];
    1.20            }