Merge bugfix in #417 to branch 1.2 1.2
authorAlpar Juttner <alpar@cs.elte.hu>
Thu, 17 Mar 2011 09:16:38 +0100
branch1.2
changeset 9104e36fdf856b7
parent 908 7f37e5fc416e
parent 909 f112c18bc304
child 912 cc9bb4f95ed3
Merge bugfix in #417 to branch 1.2
     1.1 --- a/lemon/cost_scaling.h	Fri Mar 04 11:38:05 2011 +0100
     1.2 +++ b/lemon/cost_scaling.h	Thu Mar 17 09:16:38 2011 +0100
     1.3 @@ -907,7 +907,7 @@
     1.4            startPush();
     1.5            break;
     1.6          case AUGMENT:
     1.7 -          startAugment();
     1.8 +          startAugment(_res_node_num - 1);
     1.9            break;
    1.10          case PARTIAL_AUGMENT:
    1.11            startAugment(MAX_PATH_LENGTH);
    1.12 @@ -1084,7 +1084,7 @@
    1.13      }
    1.14  
    1.15      /// Execute the algorithm performing augment and relabel operations
    1.16 -    void startAugment(int max_length = std::numeric_limits<int>::max()) {
    1.17 +    void startAugment(int max_length) {
    1.18        // Paramters for heuristics
    1.19        const int EARLY_TERM_EPSILON_LIMIT = 1000;
    1.20        const double GLOBAL_UPDATE_FACTOR = 3.0;