# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1300318533 -3600
# Node ID f112c18bc304761d339c4ffc4976bba5ca348da6
# Parent 141f9c0db4a3892de5feca4ebdbc8776191567cd
Bug fix in CostScaling (#417)
diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h
|
a
|
b
|
|
| 907 | 907 | startPush(); |
| 908 | 908 | break; |
| 909 | 909 | case AUGMENT: |
| 910 | | startAugment(); |
| | 910 | startAugment(_res_node_num - 1); |
| 911 | 911 | break; |
| 912 | 912 | case PARTIAL_AUGMENT: |
| 913 | 913 | startAugment(MAX_PATH_LENGTH); |
| … |
… |
|
| 1084 | 1084 | } |
| 1085 | 1085 | |
| 1086 | 1086 | /// Execute the algorithm performing augment and relabel operations |
| 1087 | | void startAugment(int max_length = std::numeric_limits<int>::max()) { |
| | 1087 | void startAugment(int max_length) { |
| 1088 | 1088 | // Paramters for heuristics |
| 1089 | 1089 | const int EARLY_TERM_EPSILON_LIMIT = 1000; |
| 1090 | 1090 | const double GLOBAL_UPDATE_FACTOR = 3.0; |