def eval_fitness(population): """ Evaluate the fitness of the given population. """ print "Evaluating the BLUE robot..." for chromo in population: chromo.fitness = eval_individual(chromo, population.getGen()) print "Fitness:", chromo.fitness
def eval_fitness(population): for chromo in population: chromo.fitness = eval_individual(chromo, population.getGen()) print "Fitness:", chromo.fitness, "\n"