I am employing genetic algorithm through DEAP package in python. In this process, I would like to set different upper and lower bounds to each gene in the individual.
I would like to know how can one do that? For more illustration, Suppose my individual has two genes then I would like to give the following bounds
gene1: should be bounded to 0,1 gene2: should be bounded to 2,3
For the creation of a bounded initial population, see this StackOverflow question.
For enforcing bounds in subsequent generations, see this DEAP documentation example.