I am trying to use DEAP to maximise a function.
I understand how to do it with the basic example:
toolbox.register("attr_bool", random.randint, 0, 1)
toolbox.register("individual", tools.initRepeat, creator.Individual,
toolbox.attr_bool, 100)
which creates 100 random values or either 0 or 1. You then go on and create a population and mutate ...
How do you build a population when you have for example two parameters:
parameter 1 integer with range [0,1]
parameter 2 float with range [0,2]
Then create an individual combining both randomly sampled parameters? or for parameter 2 sample with an arbitary step value , for example 0.25.