I am using the Genetic Algorithm to solve a particular problem. I am optimizing scheduled over the day vs a price. The schedule is wether On or Off. So the parameters from the genetic algorithm are the index of starting of each range. Ex :
Range 1 : 0h –> x(1) = 0
Range 2 : 07h –> x(2) = 7….
To do this I need to put a constraint that will tell the algorithm that x(4)>x(3)>x(2)>x(1)… Unfortunately, I am not able to do so with the existing constraints :
A*x = blb & ub
Does anyone have an idea to do this ?
Best Answer