目录
一、CEC2014测试函数
二、多种智能优化算法求解CEC2014
2.1 本文参与求解CEC2014的智能优化算法
2.2 部分测试函数运行结果与收敛曲线
三、曲线标记代码(获得代码后可自行更改)
一、CEC2014测试函数
CEC2014测试集共有30个单目标测试函数,每个测试函数可选择的维度分别为10维、30维、50维、100维。该测试集合也是应用最广泛的测试集之一。
CEC2014测试函数名称及理论最优值
二、多种智能优化算法求解CEC2014
2.1 本文参与求解CEC2014的智能优化算法
本文选取一些经典的智能优化算法参与测试CEC2014测试函数,具体有:沙丘猫优化算法(SCSO)、蜣螂优化算法(DBO)、算术优化算法(AOA)、黏菌算法(SMA)、人工大猩猩部队优化算法(GTO)、蛇优化算法(SO)、非洲秃鹫优化算法(AVOA)以及灰狼算法(GWO)、鲸鱼算法(WOA)、引力搜索算法(GSA)。种群规模设为50、最大迭代次数为500。
2.2 部分测试函数运行结果与收敛曲线
F3:
F6:
F12:
The best optimal values of the objective funciton found by GSA is : 1200.0099
The best optimal values of the objective funciton found by GWO is : 1200.1912
The best optimal values of the objective funciton found by WOA is : 1200.8795
The best optimal values of the objective funciton found by AVOA is : 1200.4914
The best optimal values of the objective funciton found by GTO is : 1200.1207
The best optimal values of the objective funciton found by DBO is : 1200.2735
The best optimal values of the objective funciton found by SO is : 1200.6003
The best optimal values of the objective funciton found by SMA is : 1200.3303
The best optimal values of the objective funciton found by AOA is : 1200.4396
The best optimal values of the objective funciton found by SCSO is : 1200.4692
F23:
The best optimal values of the objective funciton found by GSA is : 2780.4703
The best optimal values of the objective funciton found by GWO is : 2711.5476
The best optimal values of the objective funciton found by WOA is : 2689.9783
The best optimal values of the objective funciton found by AVOA is : 2709.4031
The best optimal values of the objective funciton found by GTO is : 2689.1951
The best optimal values of the objective funciton found by DBO is : 2714.0109
The best optimal values of the objective funciton found by SO is : 2689.1951
The best optimal values of the objective funciton found by SMA is : 2689.196
The best optimal values of the objective funciton found by AOA is : 2770.8503
The best optimal values of the objective funciton found by SCSO is : 2694.7907
F30:
The best optimal values of the objective funciton found by GSA is : 27721.4784
The best optimal values of the objective funciton found by GWO is : 3640.6276
The best optimal values of the objective funciton found by WOA is : 4095.9104
The best optimal values of the objective funciton found by AVOA is : 3401.2183
The best optimal values of the objective funciton found by GTO is : 3299.4237
The best optimal values of the objective funciton found by DBO is : 3856.3
The best optimal values of the objective funciton found by SO is : 3545.8633
The best optimal values of the objective funciton found by SMA is : 3629.7526
The best optimal values of the objective funciton found by AOA is : 37404.2912
The best optimal values of the objective funciton found by SCSO is : 3623.8055
三、曲线标记代码(获得代码后可自行更改)
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
需要代码请私信博主