Commit 60c595a4 authored by Georgios Dagkakis's avatar Georgios Dagkakis

if we have only deterministic evaluation in generations do not set score to zero

parent 6ea4f45b
......@@ -210,6 +210,8 @@ class BatchesStochasticACO(BatchesACO):
self.outputSheet.write(self.rowIndex,3,-ant['score'])
self.rowIndex+=1
# if we had stochastic evaluation of ants at the end of the generation
if numberOfAntsForStochasticEvaluationInGeneration:
# for the ants that were not evaluated stochastically set score = 0
for ant in antsInCurrentGeneration:
if ant['evaluationType']=='deterministic':
......
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