Simple example of PSO algorithm

Matlab function to find the minimum of a objective function with the PSO Algorithm
14,9K download
Aggiornato 7 mar 2011

Visualizza la licenza

It finds the minimum of a n variables function with the Particle Swarm Optimization Algorithm.

% The input parameters are:
% -func: it's the objective function's handle to minimize
% -numInd: it's the number of the swarm's elements
% -range: it's the range in which the elements must be created
% -n_var: it's the number of function's variables
% -tolerance: it's the tolerance for the stop criterion on the swarm's
% radius
% -numIter: it's the max iterations' number
% -pesoStoc: it's the swarm's movability
%
% The output parameters are:
% -p_min: the minimum point find
% -f_min: the minimum value of the function
% -iter: the number of iterations processed

Cita come

Andrea Cirillo (2024). Simple example of PSO algorithm (https://www.mathworks.com/matlabcentral/fileexchange/30660-simple-example-of-pso-algorithm), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0