PSO IN APP DESIGNER

1 回表示 (過去 30 日間)
Riah Ann Fermin-Cayanan
Riah Ann Fermin-Cayanan 2021 年 8 月 28 日
回答済み: Kumar Pallav 2021 年 9 月 1 日
I am creating a project in App Designer that needs optimization and I got an error saying (Unrecognized field name "Position").
% Update Velocity
particle(i).Velocity(y) = w*particle(i).Velocity(y) ...
+ c1*rand(VarSize).*(particle(i).Best.Position(y) - particle(i).Position(y)) ...
+ c2*rand(VarSize).*(GlobalBest.Position(y) - particle(i).Position(y));

回答 (1 件)

Kumar Pallav
Kumar Pallav 2021 年 9 月 1 日
Could you share the code to analyze the issue further. The issue is caused if you are accessing a variable or property which is not defined or accesible.

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by