✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
瞪羚优化算法Gazelle optimization algorithm
⛄ 部分代码
clear all
clc
format long
SearchAgents_no=50; % Number of search agents
Function_name='F1';
Max_iteration=1000; % Maximum number of iterations
[lb,ub,dim,fobj]=Get_Functions_details(Function_name);
[Best_score,Best_pos,Convergence_curve]=GOA2(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);
% function topology
figure('Position',[500 400 700 290])
subplot(1,2,1);
func_plot(Function_name);
title('Function Topology')
xlabel('x_1');
ylabel('x_2');
zlabel([Function_name,'( x_1 , x_2 )'])
% Convergence curve
subplot(1,2,2);
semilogy(Convergence_curve,'Color','r')
title('Objective space')
xlabel('Iteration');
ylabel('Best score obtained so far');
display(['The best solution obtained by GOA is : ', num2str(Best_pos,10)]);
display(['The best optimal value of the objective function found by GOA is : ', num2str(Best_score,10)]);
disp(sprintf('--------------------------------------'));
⛄ 运行结果
⛄ 参考文献
[1] Agushaka J O , Ezugwu A E , Abualigah L . Gazelle optimization algorithm: a novel nature-inspired metaheuristic optimizer[J]. Neural Computing and Applications, 2022.