MATLAB Answers

I think my PSO code is correct but I don’t know why I get this error? I am using this code for other problems it is working fine but on prinkinsons data it is showing error. Anybody who can help?

1 view (last 30 days)
jahanzaib javid
jahanzaib javid on 20 Apr 2021
Commented: jahanzaib javid on 21 Apr 2021
Reference to non-existent field 'Position'.
Error in PSO (line 85)
+ c2*rand(VarSize).*(GlobalBest.Position -
Error in pso2 (line 33)
out = PSO(problem, params);

Community Treasure Hunt

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

Start Hunting!