problem in PSO algorithm code

2 ビュー (過去 30 日間)
tahseen alshmary
tahseen alshmary 2018 年 10 月 31 日
回答済み: younes youyou 2019 年 12 月 16 日
i have this error with this PSO algorithm ? how can i solve it many thanks
Index exceeds matrix dimensions.
Error in Sphere (line 16) z= 2.633*x(1)+2.992*x(2)+3.134*x(3)+3.678*x(4)+3.620*x(5)+2.948*x(6)+1.607*x(7)+2.952*x(8)+3.348*x(9)+3.680*x(10)+3.774*x(11)+2.995*x(12)+3.237*x(13)+1.608*x(14);
Error in pso>@(x)Sphere(x)
Error in pso (line 160) disp ([ 'CostFunction = ' (CostFunction(it))])

回答 (1 件)

younes youyou
younes youyou 2019 年 12 月 16 日
can you contact me in this whatsapp number please +60173586440

カテゴリ

Help Center および File ExchangeParticle Swarm についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by