資源簡介
人工蜂群算法解決函數(shù)優(yōu)化問題代碼,內(nèi)含Sphere,rastrigin,rosenbrock等標(biāo)準(zhǔn)測(cè)試函數(shù)
/* Artificial Bee Colony (ABC) is one of the most recently defined algorithms by Dervis Karaboga in 2005, motivated by the in
代碼片段和文件信息
function?ObjVal?=?ackley(Chromswitch1);
Dim=size(Chrom2);
???
%?Compute?population?parameters
???[NindNvar]?=?size(Chrom);
??????A?=?1/Dim;
??????Omega?=?2?*?pi;
??????sum1=A.*sum((Chrom?.*?Chrom)‘)‘;
??????%sum1=A.*sum(Chrom?.*?Chrom);
??????sum2=A.*sum((cos(Omega?*?Chrom))‘)‘;
??????ObjVal?=?-20*exp(-0.2*sqrt(sum1))-exp(sum2)+20+exp(1);
??
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????73??2008-06-05?10:32??Sphere.m
?????文件????????365??2009-09-01?15:41??ackley.m
?????文件????????182??2008-06-09?20:54??calculateFitness.m
?????文件????????202??2006-04-27?12:32??griewank.m
?????文件????????578??2006-04-27?12:32??rastrigin.m
?????文件????????602??2006-04-27?12:32??rosenbrock.m
?????文件???????8910??2011-07-04?10:11??runABC.m
?????文件????????447??2006-04-27?12:32??schwefel.m
-----------?---------??----------?-----??----
????????????????11359????????????????????8
評(píng)論
共有 條評(píng)論