一、大规模全局优化数据集CEC2013(LSGO)
二、狮群优化算法LSO
三、狮群优化算法LSO 求解CEC2013(LSGO)
close all
clear
clc
SearchAgents_no=100; % 种群大小
Function_name=1; % 测试函数 1-15
Max_iteration=500; % 最大迭代次数
% Load details of the selected benchmark function
[lb,ub,dim]=GetCEC2013detail(Function_name);
[fMin,bestX,curve]=LSO(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);
%Draw objective space
figure
semilogy(curve,'r-','linewidth',2)
title(['CEC2013(LSGO) F' num2str(Function_name)])
xlabel('Iteration');
ylabel('Best score obtained so far');
axis tight
% grid on
box on
legend('LSO')
display(['The best solution obtained by LSO is : ', num2str(bestX)]);
display(['The best optimal value of the objective funciton found by LSO is : ', num2str(fMin)]);
部分结果:
四、参考代码
文件夹内包含狮群优化算法LSO 求解CEC2013(LSGO)的完整MATLAB代码,点击main.m即可运行。