def OutputFittest(self): fittest = self.get_fittest() fpl.scoreteam(fittest.genes,True)
def get_fitness(self, individual_passed): fitness = individual_passed.get_score() if fitness == -1: fitness = fpl.scoreteam(individual_passed.genes) individual_passed.set_score(fitness) return fitness