资源简介
改进WOA算法,可以解决大规模性的路径优化问题,对写论文的同学们是有很大的帮助的,非常好的算法,也是最新的算法
代码片段和文件信息
%_________________________________________________________________________%
% 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]
case ‘F24‘
x=-1:0.1:2; y=x;%[-12]
end
L=length(x);
f=[];
for i=1:L
for j=1:L
if strcmp(func_name‘F15‘)==0 && strcmp
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3725 2018-10-06 21:49 改进3\func_plot.m
文件 7990 2018-12-04 12:23 改进3\Get_Functions_details.m
文件 2095 2018-10-09 14:18 改进3\initialization.m
文件 3964 2018-12-09 11:18 改进3\main.m
文件 4553 2018-12-09 11:08 改进3\WOA.m
文件 4604 2018-12-09 11:15 改进3\WOA1.m
文件 4610 2018-12-09 11:10 改进3\WOAgai.m
评论
共有 条评论