资源简介
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 to HDL FPGA
- 三相全控PWM整流器matlab带仿真程序
- 人工鱼群算法
- matlab翻译函数
- 矩量法matlab程序设计.doc
- AM信号载波同步
- 主动悬架在matlab上的模拟仿真
- MOPSO多目标粒子群优化算法MATLAB实现可
- MOAFSA人工鱼多目标优化算法MATLAB实现
- pmsm双闭环PI模型,可运行
- 基于MATLAB的GS算法
- 8 matlab图像去噪 滤波 锐化 边缘检测
-
基于SIMUli
nk仿真的BUCK电路 - OFDM系统仿真
- 用matlab读取nc文件
- 微穿孔板吸声系数MATLAB仿真代码
- 基于MATLAB模板匹配的车牌识别
- 前向回归法,求解特征选择 matlab
- 毫米波信道模型
-
DFIG simuli
nk - matlab三次B样条曲面
- zw_16QAM信号调制解调Matlab仿真.zip
- zw_Matlab多旅行商实验.zip
- zw_52372580SINS-MatlabImplement.zip
- 风电储能并网发电系统
- matlab加速度积分为速度、位移
- 电动汽车充电负荷预测
- 概率论与数理统计-matlab 验证泊松定理
- 三相锁相环
- 计算粒度分布
评论
共有 条评论