I'm pretty new to DEAP and looking at several places and examples I've seen it creates classes for genetic algoritms using this method:
creator.create('FitnessMax', base.Fitness, weights=(1.0, -0.5,))
creator.create('Individual', list, fitness=creator.FitnessMax)
What I don't understand is the weights parameter. It is supposed that DEAP can be used to solve multiobjectives problems (maximize and minimize), that's why weights can be positive or negative.
But how is it linked to the fitness/objective function? Must the fitness function return several values, one for each weight?