Open thiagobell opened 4 years ago
Seems consistent with what is checked in the population class for the termination:
if not self.config.no_fitness_termination:
# End if the fitness threshold is reached.
fv = self.fitness_criterion(g.fitness for g in itervalues(self.population))
if fv >= self.config.fitness_threshold:
self.reporters.found_solution(self.config, self.generation, best)
break
on Population.run(), while compiling statistics for reporting, the methods looks for the genome with the highest fitness value irrespective of what was set under fitness_criterion.