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
# 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
# termCriterion += 1
#
scores=[ant['targetUtil']forantinfittest]
# scores = [ant['targetUtil'] for ant in fittest]
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
# 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