Skip to content

Commit

Permalink
remove geometric interpolation parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Aug 30, 2023
1 parent 0a277dc commit 7ab4329
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions mt-kahypar/io/command_line_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,6 @@ namespace mt_kahypar {
po::value<double>((initial_partitioning ? &context.initial_partitioning.refinement.fm.unconstrained_upper_bound_min :
&context.refinement.fm.unconstrained_upper_bound_min))->value_name("<double>")->default_value(0.0),
"Cooling FM algorithm: Minimum (final) upper bound (default = 0 = equal to start).")
((initial_partitioning ? "i-r-fm-cooling-geometric-interpolation" : "r-fm-cooling-geometric-interpolation"),
po::value<bool>((initial_partitioning ? &context.initial_partitioning.refinement.fm.geometric_interpolation :
&context.refinement.fm.geometric_interpolation))->value_name("<bool>")->default_value(false),
"Cooling strategy: Use geometric instead of linear interpolation.")
((initial_partitioning ? "i-r-fm-activate-unconstrained-dynamically" : "r-fm-activate-unconstrained-dynamically"),
po::value<bool>((initial_partitioning ? &context.initial_partitioning.refinement.fm.activate_unconstrained_dynamically :
&context.refinement.fm.activate_unconstrained_dynamically))->value_name("<bool>")->default_value(false),
Expand Down
1 change: 0 additions & 1 deletion mt-kahypar/partition/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ struct FMParameters {
double imbalance_penalty_min = 0.2;
double imbalance_penalty_max = 1.0;
double unconstrained_upper_bound_min = 0.0;
bool geometric_interpolation = false;

// unconstrained: dynamic enabling/disableing
bool activate_unconstrained_dynamically = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,8 @@ class CoolingStrategy: public IFMStrategy {
if (round == 0) {
return start;
}
if (context.refinement.fm.geometric_interpolation) {
double factor = end / start;
return start * std::pow(factor, static_cast<double>(round) / static_cast<double>(n_rounds - 1));
} else {
double summed = (n_rounds - round - 1) * start + round * end;
return summed / static_cast<double>(n_rounds - 1);
}
double summed = (n_rounds - round - 1) * start + round * end;
return summed / static_cast<double>(n_rounds - 1);
};

if (round < n_rounds) {
Expand Down

0 comments on commit 7ab4329

Please sign in to comment.