%_______________________________________________________________________________________
% The Arithmetic Optimization Algorithm (AOA) source codes demo version 1.0
%
% Developed in MATLAB R2015a (7.13)
%
% Main paper: The Arithmetic Optimization Algorithm
% Reference: Abualigah, L., Diabat, A., Mirjalili, S., Abd Elaziz, M., and Gandomi, A. H. (2021). The Arithmetic Optimization Algorithm. Computer Methods in Applied Mechanics and Engineering.
%
%_______________________________________________________________________________________
clear all
clc
Solution_no=20; %Number of search solutions
F_name='F1'; %Name of the test function F1-f23
M_Iter=1000; %Maximum number of iterations
[LB,UB,Dim,F_obj]=Get_F(F_name); %Give details of the underlying benchmark function
[Best_FF,Best_P,Conv_curve]=AOA(Solution_no,M_Iter,LB,UB,Dim,F_obj); % Call the AOA
figure('Position',[454 445 694 297]);
subplot(1,2,1);
func_plot(F_name);
title('Parameter space')
xlabel('x_1');
ylabel('x_2');
zlabel([F_name,'( x_1 , x_2 )'])
subplot(1,2,2);
semilogy(Conv_curve,'Color','r','LineWidth',2)
title('Convergence curve')
xlabel('Iteration#');
ylabel('Best fitness function');
axis tight
legend('AOA')
display(['The best-obtained solution by Math Optimizer is : ', num2str(Best_P)]);
display(['The best optimal value of the objective funciton found by Math Optimizer is : ', num2str(Best_FF)]);
【優化求解-單目标求解】基于阿基米德算法求解單目标問題matlab源碼
三、仿真結果
【優化求解-單目标求解】基于阿基米德算法求解單目标問題matlab源碼
【優化求解-單目标求解】基于阿基米德算法求解單目标問題matlab源碼
四、參考文獻
Abualigah, L., Diabat, A., Mirjalili, S., Abd Elaziz, M., and Gandomi, A. H. (2021). The Arithmetic Optimization Algorithm. Computer Methods in Applied Mechanics and Engineering.