ifmax(scores)-min(scores)<=0.001*min(scores):#Termination Criteria to check for convergence - in this case, if the current solutions are within 10% range
termCriterion+=1
scores=[ant['targetUtil']forantinfittest]
ifmax(scores)-min(scores)<=0.001*min(scores):#Termination Criteria to check for convergence - in this case, if the current solutions are within 10% range
termCriterion+=1
# scores = [ant['excess'] for ant in fittest]
# if max(scores) - min(scores) <= 0.001*min(scores): #Termination Criteria to check for convergence - in this case, if the current solutions are within 10% range
# termCriterion += 1
#
# scores = [ant['targetUtil'] for ant in fittest]
# if max(scores) - min(scores) <= 0.001*min(scores): #Termination Criteria to check for convergence - in this case, if the current solutions are within 10% range