1 简介
近年来,随着人工智能的发展,越来越多的学者致力于新型智能优化算法的设计和开发.2019年,文献[1]提出了一种受自然界海鸥启发的新颖全局优化算法——海鸥优化算法(Seagull Optimization Algorithm, SOA).与其他智能优化算法类似,海鸥优化算法也是基于种群的算法,模拟了海鸥群体的迁徙和攻击行为.
2 部分代码
```matlab
clear all
clc
SearchAgents=30;
Fun_name='F1';
Max_iterations=1000;
[lowerbound,upperbound,dimension,fitness]=fun_info(Fun_name);
[Best_score,Best_pos,SOA_curve]=soa(SearchAgents,Max_iterations,lowerbound,upperbound,dimension,fitness);
figure('Position',[500 500 660 290])
subplot(1,2,1);
func_plot(Fun_name);
title('Objective space')
xlabel('x_1');
ylabel('x_2');
zlabel([Fun_name,'( x_1 , x_2 )'])
subplot(1,2,2);
plots=semilogx(SOA_curve,'Color','r');
set(plots,'linewidth',2)
hold on
title('Objective space')
xlabel('Iterations');
ylabel('Best score');
axis tight
grid on
box on
legend('SOA')
display(['The best solution obtained by SOA is : ', num2str(Best_pos)]);
display(['The best optimal value of the objective funciton found by SOA is : ', num2str(Best_score)]);
3 仿真结果
4 参考文献
[1]韩毅, 徐梓斌, 张亮,等. 国外新型智能优化算法——海鸥优化算法[J]. 现代营销(经营版), 2019(10).