Commit f695f6a2 authored by Christopher Alfeld's avatar Christopher Alfeld

Fixed so that it always outputs a float score (i.e. 1.0 vs. 1).

Previously on the rare occasion that a run scored an integer score
assign_wrapper would break.
parent 9fb8e603
......@@ -264,8 +264,8 @@ int assign()
}
timeend = used_time(timestart);
cout << " BEST SCORE: " << get_score() << " in "
<< iters << " iters and " << timeend << " seconds" << endl;
printf(" BEST SCORE: %.2f",get_score());
cout << " in " << iters << " iters and " << timeend << " seconds" << endl;
cout << "With " << violated << " violations" << endl;
cout << "With " << accepts << " accepts of increases\n";
cout << "Iters to find best score: " << cycles_to_best << endl;
......
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