一、CEC2013测试函数
CEC2013,该测试集合也是目前高质量论文应用较广泛的测试集,CEC2013测试集函数复杂,非常具有挑战力。
二、多种智能优化算法求解CEC2013
2.1 本文参与求解CEC2013的智能优化算法
本文选取一些经典的智能优化算法参与测试CEC2013测试函数,具体有:蜣螂优化算法(DBO)、算术优化算法(AOA)、黏菌算法(SMA)、人工大猩猩部队优化算法(GTO)、蛇优化算法(SO)、非洲秃鹫优化算法(AVOA)以及灰狼算法(GWO)、鲸鱼算法(WOA)、引力搜索算法(GSA)。种群规模设为50、最大迭代次数为500。
2.2 部分测试函数运行结果与收敛曲线
F5:
The best optimal values of the objective funciton found by GSA is : 2457.2114
The best optimal values of the objective funciton found by GWO is : -223.7848
The best optimal values of the objective funciton found by WOA is : 285.8371
The best optimal values of the objective funciton found by AVOA is : -982.0826
The best optimal values of the objective funciton found by GTO is : -999.9453
The best optimal values of the objective funciton found by DBO is : -891.5535
The best optimal values of the objective funciton found by SO is : -988.8527
The best optimal values of the objective funciton found by SMA is : -999.7599
The best optimal values of the objective funciton found by AOA is : 7389.0116
F12:
The best optimal values of the objective funciton found by GSA is : 354.8103
The best optimal values of the objective funciton found by GWO is : -196.9842
The best optimal values of the objective funciton found by WOA is : 143.9386
The best optimal values of the objective funciton found by AVOA is : 176.6343
The best optimal values of the objective funciton found by GTO is : 31.5645
The best optimal values of the objective funciton found by DBO is : 61.3351
The best optimal values of the objective funciton found by SO is : -161.4073
The best optimal values of the objective funciton found by SMA is : -158.9262
The best optimal values of the objective funciton found by AOA is : 346.6833
F28:
The best optimal values of the objective funciton found by GSA is : 6340.6172
The best optimal values of the objective funciton found by GWO is : 2783.4362
The best optimal values of the objective funciton found by WOA is : 7557.7284
The best optimal values of the objective funciton found by AVOA is : 3389.731
The best optimal values of the objective funciton found by GTO is : 3836.6103
The best optimal values of the objective funciton found by DBO is : 2621.5
The best optimal values of the objective funciton found by SO is : 2475.2285
The best optimal values of the objective funciton found by SMA is : 1708.5277
The best optimal values of the objective funciton found by AOA is : 7108.9994
三、带标记收敛曲线代码(获得代码后可自行更改)
figure
maker_index=1:15:500;
semilogy(curve_compare(1,:),'k-*','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(2,:),'k-o','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(3,:),'b-<','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(4,:),'k-s','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(5,:),'k-d','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(6,:),'k-p','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(7,:),'r-p','MarkerIndices',maker_index,'LineWidth',1)
hold on
semilogy(curve_compare(8,:),'b-p','MarkerIndices',maker_index,'LineWidth',1)
xlabel('迭代次数');
ylabel('目标函数值');
grid on
box on
需要代码请私信博主