From 4a751d9aafa0de4f64960bf7e9f16400319259ef Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 3 Aug 2018 18:14:09 +0200 Subject: Add distance moved metrics, changing heuristics Signed-off-by: David Shah --- common/placer1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/placer1.cc') diff --git a/common/placer1.cc b/common/placer1.cc index 673e304f..6da8608a 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -395,7 +395,7 @@ private: if (other != IdString()) new_dist += get_constraints_distance(ctx, other_cell); delta = new_metric - curr_metric; - delta += (1 / temp) * (new_dist - old_dist); + delta += (10 / temp) * (new_dist - old_dist); n_move++; // SA acceptance criterea if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) { -- cgit v1.2.3