# update the options list to ensure that good performing queue-rule
# combinations have increased representation and good chance of
...
...
@@ -160,6 +173,13 @@ class ACO(plugin.ExecutionPlugin):
# selected by the next ants.
collated[m].append(l[m])
#termination criterion: after four generations check if the solution has been improving
solutionConvergence.append(max([ant['actualDelays']forantinants]))#add the worst solution after the last generation
solutionConvergence.sort()
del(solutionConvergence[int(data['general'].get('numberOfSolutions',0)):])#extract the last 4 worst solutions among the best, if there has been no improvement, terminate the optimisation process