improved is only set if we get a better metric, remove commented code
This commit is contained in:
parent
7b4c5594ed
commit
4920cf18fa
@ -387,8 +387,6 @@ class SAPlacer
|
|||||||
// SA acceptance criterea
|
// SA acceptance criterea
|
||||||
if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {
|
if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {
|
||||||
n_accept++;
|
n_accept++;
|
||||||
//if (delta < 2)
|
|
||||||
// improved = true;
|
|
||||||
} else {
|
} else {
|
||||||
if (other != IdString())
|
if (other != IdString())
|
||||||
ctx->unbindBel(oldBel);
|
ctx->unbindBel(oldBel);
|
||||||
|
Loading…
Reference in New Issue
Block a user