资源简介
cuckoo_search12 是对原布谷鸟算法MATLAB程序的修改。其中的数据是参考论文《 基于布谷鸟算法的平面选址问题_宋瑞敏 》中的无约束公式和12顶点数据。
程序在MATLABr2017b测试通过。其他顶点计算只需要修改最后的函数及顶点矩阵即可。

代码片段和文件信息
% -----------------------------------------------------------------
% Cuckoo Search (CS) algorithm by Xin-She Yang and Suash Deb %
% Programmed by Xin-She Yang at Cambridge University %
% Programming dates: Nov 2008 to June 2009 %
% Last revised: Dec 2009 (simplified version for demo only) %
% -----------------------------------------------------------------
% Papers -- Citation Details:
% 1) X.-S. Yang S. Deb Cuckoo search via Levy flights
% in: Proc. of World Congress on Nature & Biologically Inspired
% Computing (NaBIC 2009) December 2009 India
% IEEE Publications USA pp. 210-214 (2009).
% http://arxiv.org/PS_cache/arxiv/pdf/1003/1003.1594v1.pdf
% 2) X.-S. Yang S. Deb Engineering optimization by cuckoo search
% Int. J. Mathematical Modelling and Numerical Optimisation
% Vol. 1 No. 4 330-343 (2010).
% http://arxiv.org/PS_cache/arxiv/pdf/1005/1005.2908v2.pdf
% ----------------------------------------------------------------%
% This demo program only implements a standard version of %
% Cuckoo Search (CS) as the Levy flights and generation of %
% new solutions may use slightly different methods. %
% The pseudo code was given sequentially (select a cuckoo etc) %
% but the implementation here uses Matlab‘s vector capability %
% which results in neater/better codes and shorter running time. %
% This implementation is different and more efficient than the %
% the demo code provided in the book by
% “Yang X. S. Nature-Inspired metaheuristic Algoirthms %
% 2nd Edition Luniver Press (2010). “ %
% --------------------------------------------------------------- %
% =============================================================== %
% Notes: %
% Different implementations may lead to slightly different %
% behavour and/or results but there is nothing wrong with it %
% as this is the nature of random walks and all metaheuristics. %
% -----------------------------------------------------------------
% Additional Note: This version uses a fixed number of generation %
% (not a given tolerance) because many readers asked me to add %
% or implement this option. Thanks.%
function [bestnestfmin]=cuckoo_search_new(n)
if nargin<1
% Number of nests (or different solutions)
n=50;
end
% Discovery rate of alien eggs/solutions
pa=0.25;
%% Change this if you want to get better results
N_IterTotal=1000;
%% Simple bounds of the search domain
% Lower bounds
nd=20;
Lb=-100*ones(1nd);
% Upper bounds
Ub=100*ones(1nd);
%Lb=[10 10];
%Ub=[0 0];
% Random initial solutions
for i=1:n
nest(i:)=Lb+(Ub-Lb).*rand(size(Lb));
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6543 2019-01-09 21:13 布谷鸟算法平面选址问题\cuckoo_search12.m
文件 217 2019-05-15 10:43 布谷鸟算法平面选址问题\说明.txt
目录 0 2019-05-15 10:44 布谷鸟算法平面选址问题
----------- --------- ---------- ----- ----
6760 3
- 上一篇:Matlab to HDL FPGA
- 下一篇:小波变换分割彩色图像
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论