how to optimize the number of parameter by using GA

5 ビュー (過去 30 日間)
uchida yuki
uchida yuki 2019 年 7 月 8 日
編集済み: uchida yuki 2019 年 7 月 9 日
I wanna optimize the number of parameter by using GA(genetic algorithm) and lhsdesign (Latin hypercube sampling).
sitution is this,
  1. set the first generation by lhsdesign. i wanna set the number of parameters and the parameters.
  2. optimize the number of parameters and the parameters.
num = 3 %the number of parameter(x,y,a)←i wanna change 'num' constant into variable
popsize = 30; %population
Ini = lhsdesign(popsize,num);
~~~~~~~~~~~~~~~
opts = gaoptimset('PlotFcns',{@gaplotbestf,@gaplotstopping}, 'Generations', 300 ,'PopulationSize', popsize, 'InitialPopulation', Ini,'mutationFcn',{@mutationadaptfeasible,0.3});
[S, val] = ga(@notusefunction, num, [], [], [], [], bpl, upl,[], opts);
please give me your geneous answer
please show example code
遺伝的アルゴリズムとラテン超方格法を利用して設計変数の個数とそれに応じた個数の設計変数を最適化したいです.
コードの例を書いていただけるとうれしいです.

回答 (0 件)

カテゴリ

Help Center および File Exchange産業用統計 についてさらに検索

Community Treasure Hunt

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

Start Hunting!