資源簡介
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
評論
共有 條評論