Getting an Error while runnig pso algorithm

While running PSO algo and calling a styblinski-tang function get an error msg like
error in untitled3 (line 48)
[~, fBest, info] = PSO(objFun, x0, xLow, xUpp, options);
i take the PSO code and Styblinski-tang function code from matlab itself.
How i can remove this error.

2 件のコメント

Walter Roberson
Walter Roberson 2020 年 5 月 7 日
There would have been more error message than just that.
When you say that you took the PSO code from matlab itself, do you mean that you took a copy of particleswarm.m and renamed it PSO.m ??
Or do you mean that you took PSO.m from the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/72388-pso-for-training-a-regular-autoencoder ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2020 年 5 月 7 日

コメント済み:

2020 年 5 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by