【松鼠優(yōu)化算法】基于松鼠優(yōu)化算法求解單目標(biāo)優(yōu)化問題(Squiirrel search algorithm,
1 簡介







2 部分代碼
clearvars
close all
clc
disp('The?SSA?is?tracking?the?problem');
N=30; % Number of Squirrel
Function_name='F4'; % Name of the test function that can be from F1 to F24
MaxIT=200; % Maximum number of iterations
[lb,ub,dim,fobj]=Get_Functions_details(Function_name); % Function details
Times=1; %Number of independent times you want to run the DSSA
display(['Number of independent runs: ', num2str(Times)]);
for i=1:Times
[Destination_fitness(i),bestPositions(i,:),Convergence_curve(i,:)]=SSA(N,MaxIT,lb,ub,dim,fobj);
end
[bestfitness,index]=min(Destination_fitness);
figure;
subplot(121)
func_plot(Function_name);
title(Function_name)
xlabel('x_1');
ylabel('x_2');
zlabel([Function_name,'( x_1 , x_2 )'])
subplot(122)
semilogy(Convergence_curve(index,:),'LineWidth',3);
xlabel('Iterations');
ylabel('Best fitness obtained so far');
legend('SSA');
box on;
axis tight;
grid off;
3 仿真結(jié)果



4 參考文獻(xiàn)
[1]韓毅, 徐梓斌, 張亮. 國外新型智能優(yōu)化算法——松鼠覓食算法[J]. 現(xiàn)代營銷:信息版, 2019(9):2.
博主簡介:擅長智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測、信號處理、元胞自動機(jī)、圖像處理、路徑規(guī)劃、無人機(jī)等多種領(lǐng)域的Matlab仿真,相關(guān)matlab代碼問題可私信交流。
部分理論引用網(wǎng)絡(luò)文獻(xiàn),若有侵權(quán)聯(lián)系博主刪除。
