how to gave the input for the following functions?

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

Risposte (1)

Example:
@(x) (x(1)-20).^2 + cos(x(2))

3 Commenti

thank a lot sir but i have another doubt regards the objfun
i have the features of 20 images in that 10X250 matrics(normal case) & 10 x 250 matrics (abnormal case) how to write the objfun for this input and also what value assign for nvars sir would you please again explain in code been very useful for my understanding sir
You have not indicated what is to be optimized. What parameter is being looked for?
sir i am new in PSO.
i need to optimized the features of 20 images. To find the gbest .

Accedi per commentare.

Richiesto:

il 2 Lug 2015

Commentato:

il 2 Lug 2015

Community Treasure Hunt

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

Start Hunting!

Translated by