Commit 8e85dad4 authored by Robert Ricci's avatar Robert Ricci

Get the intial score _after_ the fixed nodes have been assigned,

since we don't un-assign them when reverting to the best solution.
parent 7407d9a2
......@@ -230,10 +230,6 @@ void anneal(bool scoring_selftest)
/* Set up the initial counts */
init_score();
/* 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();
/* Set up fixed nodes */
for (name_name_map::iterator fixed_it=fixed_nodes.begin();
fixed_it!=fixed_nodes.end();++fixed_it) {
......@@ -264,6 +260,10 @@ void anneal(bool scoring_selftest)
num_fixed++;
}
/* 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();
bestscore = get_score();
bestviolated = violated;
......
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