how to gave the input for the following functions?
5 ビュー (過去 30 日間)
古いコメントを表示
function [x, fval, exitflag, output] = pso(objfunc, nvars, options)
In that function specified the objfunc means "real-valued function of a single, real-valued vector argument"
please call the function with example would been easy to understand
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 7 月 2 日
Example:
@(x) (x(1)-20).^2 + cos(x(2))
3 件のコメント
Walter Roberson
2015 年 7 月 2 日
You have not indicated what is to be optimized. What parameter is being looked for?
参考
カテゴリ
Help Center および File Exchange で Particle Swarm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!