Skip to content
Snippets Groups Projects
Commit e6a5db44 authored by Christopher Alfeld's avatar Christopher Alfeld
Browse files

Fixed probably bug in finding the absolute best score.

parent 61a08b32
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ int assign()
bestscore = newscore;
bestviolated = violated;
accepts++;
if (violated < absbestv ||
if ((violated < absbestv) ||
((violated == absbestv) &&
(newscore < absbest))) {
node n2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment