资源简介
MATLAB源程序,鸡群算法,鸡群算法(ChickenSwarmOptimization,CSO)是由MENGXianbing等于2014年提出的一种基于鸡群搜索行为的随机优化方法,它模拟了鸡群等级制度和鸡群行为。
代码片段和文件信息
% -----------------------------------------------------------------------------------------------------------
% 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 鸡群算法\A new bio-inspired algorithm Chicken swarm optimization.pdf
文件 10530 2014-10-21 01:00 鸡群算法\新建文件夹\CSO.m
目录 0 2016-11-22 21:10 鸡群算法\新建文件夹
目录 0 2016-05-30 10:33 鸡群算法
----------- --------- ---------- ----- ----
230019 4
相关资源
- Matlab VoiceBox工具箱附有安装说明
-
IEEE33节点配电网Simuli
nk模型.rar - lms自适应滤波算法提取胎儿心电matl
- 二元二阶微分方程组求解,并画出极
- 超宽带UWB四个基站与25个测试点测距误
-
FXLMS主动降噪simuli
nk模型.rar - 基于matlab的图像形状与分类
- 基于MATLAB的拼图游戏设计
- 数字信号处理matlab版代码
- 人工势场法避障三维
- matlab GA-pls建立模型
- SRM直接转矩MATLAB仿真
- A*算法 matlab版
- 交通灯的识别——自然场景中
- 基于matlab遗传算法的微网运行优化
- IQ调制MATLAB程序
- 虹膜定位详尽的虹膜识别matlab源代码
- 基于对偶四元数航天器姿轨耦合一体
- PLSmatlab工具包讲解
- 基于形态学滤波去噪matlab代码
- 图像超分辨重建matlab代码
- 基于MATLABGUI实现图像阈值分割处理的
- RSSI定位 MATLAB
- Ncut图像分割算法MATLAB实现
- magnify用于matlab的放大插件
- matlab-快速搜索随机树算法实现RRT
- PID参数整定的临界比例度法的实现
- 基于MATLAB的分数阶负反馈控制系统的
- matlab编程100篇
- RRT* RRT star RRT 星路径规划算法的matl
评论
共有 条评论