Taking discrete values from a given set using genetic algorithm

Guys , I have an optimization problem in which, my variables are discrete. These variables have to take value from a given standard set of values.How do I make these variables take those values from the set. The number of values in the set will define my lower and upper bounds. I am using genetic algorithm

回答 (1 件)

Alan Weiss
Alan Weiss 2015 年 3 月 30 日

0 投票

Take a look at this example.
Alan Weiss
MATLAB mathematical toolbox documentation

3 件のコメント

Ace_ventura
Ace_ventura 2015 年 3 月 30 日
Thank u Alan for responding. I have already seen this example .The part where I have to map variables to set of values is said to be mentioned in cantileverMApVariables.m file ,in this document under the subheading titled " Add Discrete Non Integer variable Constraint" . However I am not able to find this file. I am using Matlab R2011a and this documentation is for R2015. May be that is why Its not there. So I end up with nothing.
Alan Weiss
Alan Weiss 2015 年 3 月 30 日
As the release notes state, mixed integer nonlinear programming was added to GA in R2011b. So I am afraid that your MATLAB version does not support integer programming.
Alan Weiss
MATLAB mathematical toolbox documentation
Ace_ventura
Ace_ventura 2015 年 3 月 30 日
Thans a lot Alan. I will get a new version. Cheers Man!!!

サインインしてコメントする。

カテゴリ

質問済み:

2015 年 3 月 29 日

コメント済み:

2015 年 3 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by