Commit 413c106c authored by Robert Ricci's avatar Robert Ricci

Adjust the neighborhood size by subracting out the number of fixed

nodes that there were in the top file.
parent eb2671d6
......@@ -266,6 +266,14 @@ void anneal(bool scoring_selftest, double scale_neighborhood)
// Subtract the number of fixed nodes from nnodes, since they don't really
// count
if (num_fixed) {
nnodes -= num_fixed;
cout << "Adjusting dificulty estimate for fixed nodes, " <<
nnodes << " remain.\n";
/* We'll check against this later to make sure that whe we've unmapped
* everything, the score is the same */
double initial_score = get_score();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment