资源简介
关于WOA鲸鱼群算法的完整代码,有需要的可以再Q,可以发送原理有关文档
代码片段和文件信息
%_________________________________________________________________________%
% Whale Optimization Algorithm (WOA) source codes demo 1.0 %
% %
% Developed in MATLAB R2011b(7.13) %
% %
% Author and programmer: Seyedali Mirjalili %
% %
% e-Mail: ali.mirjalili@gmail.com %
% seyedali.mirjalili@griffithuni.edu.au %
% %
% Homepage: http://www.alimirjalili.com %
% %
% Main paper: S. Mirjalili A. Lewis %
% The Whale Optimization Algorithm %
% Advances in Engineering Software in press %
% DOI: http://dx.doi.org/10.1016/j.advengsoft.2016.01.008 %
% %
%_________________________________________________________________________%
% This function draw the benchmark functions
function func_plot(func_name)
[lbubdimfobj]=Get_Functions_details(func_name);
switch func_name
case ‘F1‘
x=-100:2:100; y=x; %[-100100]
case ‘F2‘
x=-100:2:100; y=x; %[-1010]
case ‘F3‘
x=-100:2:100; y=x; %[-100100]
case ‘F4‘
x=-100:2:100; y=x; %[-100100]
case ‘F5‘
x=-200:2:200; y=x; %[-55]
case ‘F6‘
x=-100:2:100; y=x; %[-100100]
case ‘F7‘
x=-1:0.03:1; y=x %[-11]
case ‘F8‘
x=-500:10:500;y=x; %[-500500]
case ‘F9‘
x=-5:0.1:5; y=x; %[-55]
case ‘F10‘
x=-20:0.5:20; y=x;%[-500500]
case ‘F11‘
x=-500:10:500; y=x;%[-0.50.5]
case ‘F12‘
x=-10:0.1:10; y=x;%[-pipi]
case ‘F13‘
x=-5:0.08:5; y=x;%[-31]
case ‘F14‘
x=-100:2:100; y=x;%[-100100]
case ‘F15‘
x=-5:0.1:5; y=x;%[-55]
case ‘F16‘
x=-1:0.01:1; y=x;%[-55]
case ‘F17‘
x=-5:0.1:5; y=x;%[-55]
case ‘F18‘
x=-5:0.06:5; y=x;%[-55]
case ‘F19‘
x=-5:0.1:5; y=x;%[-55]
case ‘F20‘
x=-5:0.1:5; y=x;%[-55]
case ‘F21‘
x=-5:0.1:5; y=x;%[-55]
case ‘F22‘
x=-5:0.1:5; y=x;%[-55]
case ‘F23‘
x=-5:0.1:5; y=x;%[-55]
end
L=length(x);
f=[];
for i=1:L
for j=1:L
if strcmp(func_name‘F15‘)==0 && strcmp(func_name‘F19‘)==0 && strcmp(func_name‘F20‘)==0 && strcmp(func_name‘F21‘)=
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1953 2018-05-22 09:10 initialization.m
文件 3149 2018-05-22 09:10 main.m
文件 4214 2018-05-22 09:10 WOA.m
文件 3633 2018-05-22 09:10 func_plot.m
文件 7725 2018-05-22 09:10 Get_Functions_details.m
- 上一篇:多探头超声波车流检测系统的设计
- 下一篇:差分进化算法代码及10维测试函数
评论
共有 条评论