Merge bugfix #368
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 03 May 2010 10:56:24 +0200
changeset 9790bca98cbebbb
parent 975 ca4059d63236
parent 976 5205145fabf6
child 987 a22b3f1bf83e
Merge bugfix #368
lemon/network_simplex.h
     1.1 --- a/lemon/network_simplex.h	Mon Apr 12 17:05:49 2010 +0200
     1.2 +++ b/lemon/network_simplex.h	Mon May 03 10:56:24 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            }