Spaces:
Sleeping
Sleeping
Commit
·
54080b4
1
Parent(s):
841d7fc
Fix local variable redefinition
Browse files- paralleleureqa.jl +1 -1
paralleleureqa.jl
CHANGED
|
@@ -16,7 +16,7 @@ for pop in allPops
|
|
| 16 |
bestCurScoreIdx = argmin([pop.members[member].score for member=1:pop.n])
|
| 17 |
bestCurScore = pop.members[bestCurScoreIdx].score
|
| 18 |
if bestCurScore < bestScore
|
| 19 |
-
bestScore = bestCurScore
|
| 20 |
println(bestScore, " is the score for ", stringTree(pop.members[bestCurScoreIdx].tree))
|
| 21 |
end
|
| 22 |
end
|
|
|
|
| 16 |
bestCurScoreIdx = argmin([pop.members[member].score for member=1:pop.n])
|
| 17 |
bestCurScore = pop.members[bestCurScoreIdx].score
|
| 18 |
if bestCurScore < bestScore
|
| 19 |
+
global bestScore = bestCurScore
|
| 20 |
println(bestScore, " is the score for ", stringTree(pop.members[bestCurScoreIdx].tree))
|
| 21 |
end
|
| 22 |
end
|