资源简介
Chicken Swarm Optimization(CSO)鸡群算法,于2014年10月刚在ICSI 2014上见刊!
这是一个全新的群智能优化算法,具有简单,良好扩展性的特点,是一种天然的多种群,自适应算法!
作为刚提出的新算法,很适合进行各种改进研究,发表论文。
http://www.mathworks.cn/matlabcentral/fileexchange/48204-chicken-swarm-optimization-algorithm--demo-
关于算法源代码及介绍,可在上述网站下载!
希望对大家有用!
代码片段和文件信息
% -----------------------------------------------------------------------------------------------------------
% Chicken Swarm Optimization (CSO) (demo)
% Programmed by Xian-bing Meng
% Updated 25 Aug 2014.
%
% This is a simple demo version only implemented the basic
% idea of the CSO for solving the unconstrained problem namely Sphere function.
% The details about CSO are illustratred in the following paper.
% (Citation details):
% Xian-bing Meng Xiao-zhi Gao. A new bio-inspired algorithm: Chicken Swarm Optimization
% in: ICSI 2014 Part I LNCS 8794 pp. 86-94
% Email: x.b.meng12@gmail.com; xiao-zhi.gao@aalto.fi
%
% The parameters in CSO are presented as follows.
% fitness % The fitness function
% M % Maxmimal generations (iterations)
% pop % Population size
% dim % Number of dimensions
% G % How often the chicken swamr can be updated.
% rPercent % The population size of roosters accounts for “rPercent“ percent of the total population size
% hPercent % The population size of hens accounts for “hPercent“ percent of the total population size
% mPercent % The population size of mother hens accounts for “mPercent“ percent of the population size of hens
%
% Using the default value you can execute this algorithm using the following code.
% [ bestX fMin ] = CSO
% -----------------------------------------------------------------------------------------------------------
% Main programs starts here
function [ bestX fMin ] = CSO( fitness M pop dim G rPercent hPercent mPercent )
% Display help
help CSO.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% set the parameter values
if nargin < 1
Func = @Sphere;
M = 1000; % Maxmimal generations (iterations)
pop = 100; % Population size
dim = 20; % Number of dimensions
G = 10; % How often the chicken swamr can be updated. The details of its meaning are illustrated at the following codes.
rPercent = 0.2; % The population size of roosters accounts for “rPercent“ percent of the total population size
hPercent = 0.6; % The population size of hens accounts for “hPercent“ percent of the total population size
mPercent = 0.1; % The population size of mother hens accounts for “mPercent“ percent of the population size of hens
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
rNum = round( pop * rPercent ); % The population size of roosters
hNum = round( pop * hPercent ); % The population size of hens
cNum = pop - rNum - hNum; % The population size of chicks
mNum = round( hNum * mPercent ); % The population size of mother hens
lb= -100*ones( 1dim ); % Lower limit/bounds/ a vector
ub= 100*ones( 1dim ); % Upper limit/bounds/ a vector
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 219489 2014-10-21 01:00 Chicken Swarm Optimization Algorithm\A new bio-inspired algorithm Chicken swarm optimization.pdf
文件 10530 2014-10-21 01:00 Chicken Swarm Optimization Algorithm\CSO.m
文件 1314 2014-10-21 01:00 license.txt
评论
共有 条评论