Simple example of PSO algorithm

版本 1.0.0.0 (1.7 KB) 作者: Andrea Cirillo
Matlab function to find the minimum of a objective function with the PSO Algorithm
14.9K 次下载
更新时间 2011/3/7

查看许可证

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Particle Swarm 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0