Fixed adapt inequality

This commit is contained in:
SimpleArt
2020-11-27 19:23:54 -05:00
parent 5b5ed70d73
commit cbd0265cd8

View File

@ -141,7 +141,7 @@ class GA(Attributes):
threshhold_fitness = self.population[round(self.percent_converged*len(self.population)/2)].fitness
# Way too many converged
if abs(best_fitness - threshhold_fitness) > tol:
if abs(best_fitness - threshhold_fitness) < tol:
multiplier **= 2
limit = max_val / multiplier