how to gave the input for the following functions?

2 次查看(过去 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

回答(1 个)

Walter Roberson
Walter Roberson 2015-7-2
Example:
@(x) (x(1)-20).^2 + cos(x(2))
  3 个评论
Walter Roberson
Walter Roberson 2015-7-2
You have not indicated what is to be optimized. What parameter is being looked for?
ajith
ajith 2015-7-2
sir i am new in PSO.
i need to optimized the features of 20 images. To find the gbest .

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Particle Swarm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by