How to set the variables as integers in a Genetic Algorithm Function?
11 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Supposing the objective function is @(x)f(x(1),x(2)). I would like to set the variable 'x' as a integer in a Genetic Algorithm Function.
How should I do? Is there anyone knowing it?
Thanks, Zheng
0 件のコメント
採用された回答
Walter Roberson
2012 年 7 月 7 日
編集済み: Walter Roberson
2015 年 2 月 27 日
Note that there are a number of restrictions on ga()'s operation when you constrain to integer.
9 件のコメント
Pratik Anandpara
2017 年 3 月 22 日
how to set it in ga boundry value only in integer lb=[100 1] ub=[500 50]
i want upper and lower boundry value only in integer not in decimal point
Walter Roberson
2017 年 3 月 22 日
Is the general form
x = ga(fitnessfcn,nvars,A,b,[],[],LB,UB,nonlcon,IntCon)
not what you need?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!