资源简介
XinShe Yang教授提出的Cuckoo Search优化算法Matlab原代码,可用于全局优化,并附有算法原理的文章及测试函数,供大家参考学习。

代码片段和文件信息
% -----------------------------------------------------------------
% Cuckoo Optimization Algorithm (COA) by Ramin Rajabioun %
% Programmed by Ramin Rajabioun %
% -----------------------------------------------------------------
% Paper: R. Rajabioun. Cuckoo Optimization Algorithm Applied Soft
% Computing 11 (2011) 5508?518
% ----------------------------------------------------------------%
% This program implements a standard version of Cuckoo %
% Optimization Algorithm (COA) which minimizes any Cost Function %
% --------------------------------------------------------------- %
% Email: r.rajabioun@ece.ut.ac.ir %
% Website: www.coasite.info %
% --------------------------------------------------------------- %
%
% To use the code easily prepare your cost function and type its %
% name in: costFunction = ‘YourCostFunctionName‘ then set number %
% of optimization parameters in “npar“ and set the upper and lower%
% bands of the problem %
% --------------------------------------------------------------- %
clc clear close all
%% Set problem parameters
% select your cost function:
costFunction = ‘rastrigin‘; % F6 +/-5.12
npar = 100; % number of optimization variables
varLo = -5; % Lower band of parameter
varHi = 5; % Higher band of parameter
%% Set COA parameters
numCuckooS = 5; % number of initial population
minNumberOfEggs = 2; % minimum number of eggs for each cuckoo
maxNumberOfEggs = 4; % maximum number of eggs for each cuckoo
maxIter = 100; % maximum iterations of the Cuckoo Algorithm
knnClusterNum = 1; % number of clusters that we want to make
motionCoeff = 30; % Lambda variable in COA paper default=2
accuracy = -inf; % How much accuracy in answer is needed
maxNumOfCuckoos = 10; % maximum number of cuckoos that can live at the same time
radiusCoeff = 5; % Control parameter of egg laying
cuckooPopVariance = 1e-13; % population variance that cuts the optimization
%% initialize population:
cuckooPop = cell(numCuckooS1);
% initialize egg laying center for each cuckoo
for cuckooNumber = 1:numCuckooS
cuckooPop{cuckooNumber}.center = ( varHi-varLo )*rand(1npar) + varLo;
end
%% initialize COA cost minimization plot
figure(1)
hold on
xlabel ‘Cuckoo iteration‘
ylabel ‘Cost Value‘
%% Start Cuckoo Optimization Algorithm
iteration = 0;
maxProfit = -1e20; % Let initial value be negative number
goalPoint = (varHi - varLo)*rand(1npar) + varLo; % a random goalpoint to start COA
globalBestCuckoo = goalPoint;
globalMaxProfit = maxProfit;
profitVector = [];
while ( (iteration <= maxIter) && (-maxProfit > accuracy) )
iteration = iteration + 1
% initial
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 304076 2014-04-14 19:15 CK\Cuckoo Search and Firefly Algorithm - Overview and Analysis.pdf
文件 13895 2014-03-27 08:55 CK\cuckooMain.m
文件 6598 2014-02-12 14:17 CK\cuckoo_search.m
文件 6832 2014-02-12 14:17 CK\cuckoo_search_new.m
文件 5768 2014-02-12 14:17 CK\cuckoo_search_spring.m
文件 1315 2014-02-12 14:07 CK\license.txt
文件 95 2014-02-12 14:07 CK\rastrigin.m
目录 0 2014-10-29 22:40 CK
----------- --------- ---------- ----- ----
338579 8
- 上一篇:MatlabR2019A.txt
- 下一篇:基于SIMUli
nk的qpsk仿真
相关资源
- 多种群遗传算法的函数优化算法(源
- 灰狼优化算法求解柔性作业车间问题
- 最优化算法规划-单纯形法MATLAB程序
- 蝴蝶优化算法
- 灰狼优化算法的仿真
- matlab开发-果蝇优化算法第二版
- 《MATLAB优化算法案例分析与应用》随
- bbocomplex 生物地理学算法
- matlab智能优化算法30个案例代码
- 鲸鱼优化算法(WOAMatlab).zip
- MATLAB实现群体多目标优化算法MOALO蚁狮
- DIRECT 全局优化算法 matlab程序 附带
- 差分蜂群优化算法MATLAB实现.rar
- MATLAB优化算法测试函数
- MATLAB多种优化算法介绍
- 多目标优化算法
- 超完整规范的多目标遗传优化算法M
- Matlab优化算法.pdf
- Matlab优化算法PDF
- 最优化方法及其Matlab程序设计 马昌凤
- MATLAB优化算法案例分析与应用-配书代
- Matlab编写多目标优化算法NSGA-Ⅱ的详解
- Matlab智能算法285081
- 智能优化算法及其MATLAB-(第2版)
- 两个经典的多目标优化算法代码:N
- MATLAB优化算法案例分析与应用 源代码
- 智能优化算法及其MATLAB[包子阳余继周
- [高清文字版]MATLAB优化算法案例分析与
- MATLAB优化算法案例分析与应用第1版电
- MATLAB优化算法案例分析与应用案例及
评论
共有 条评论