placer1: Encourage chain swaps

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-12-09 14:41:02 +00:00 committed by David Shah
parent c926b273de
commit 222abb5be2

View File

@ -553,7 +553,7 @@ class SAPlacer
(1 - lambda) * (double(moveChange.wirelen_delta) / last_wirelen_cost);
n_move++;
// SA acceptance criterea
if (delta < 0 || (temp > 1e-8 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {
if (delta < 0 || (temp > 1e-9 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / (5 * temp)))) {
n_accept++;
if (ctx->debug)
log_info("accepted chain swap %s\n", cell->name.c_str(ctx));