Genetic algorithm: child out of constraints
Show older comments
I have set the linear inequality constraints of the GA in a way that each gene is smaller than the next one, eg x1<x2<x3...<xn but in some cases i see that this rule is not followed. Although i have read the relative documentation i am not sure if the genetic algorithm allows chromosomes out of the constraints and if so, how can i eliminate these chromosomes.
9 Comments
b
on 27 May 2012
Are you using GUI? If not, you can write the code of that, so i can help
dimitris
on 29 May 2012
Sean de Wolski
on 29 May 2012
Are the final results outside of the constraints?
dimitris
on 29 May 2012
Image Analyst
on 29 May 2012
Here in my state, you'll end up in jail if you have a child in constraints, regardless of any chromosomal/relative/genetic connection you have to the child. ;-)
dimitris
on 29 May 2012
Sean de Wolski
on 29 May 2012
@Dimitris: What version of ML are you using, how are you calling GA, the more info you can give us the better we can help.
dimitris
on 29 May 2012
Oleg Komarov
on 29 May 2012
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Accepted Answer
More Answers (0)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!