Genetic Algorithm - Special constraint
Show older comments
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 = b
lb & ub
Does anyone have an idea to do this ?
Accepted Answer
More Answers (0)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!