✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
鱼鹰算法Osprey Optimization Algorithm求解单目标优化问题附matlab代码
⛄ 部分代码
%%
% Osprey Optimization Algorithm: A new bio-inspired metaheuristic algorithm for solving engineering optimization problems
% Pavel Trojovský1 and Mohammad Dehghani
% Department of Mathematics, Faculty of Science, University of Hradec Králové, 50003 Hradec Králové, Czech Republic
% " Optimizer"
%%
clc
clear
close all
%%
%%
Fun_name='F1'; % number of test functions: 'F1' to 'F23'
SearchAgents=30; % population members
Max_iterations=1000; % maximum number of iteration
[lowerbound,upperbound,dimension,fitness]=fun_info(Fun_name); % Object function information
[Best_score,Best_pos,OOA_curve]=OOA(SearchAgents,Max_iterations,lowerbound,upperbound,dimension,fitness); % Calculating the solution of the given problem using OOA
%%
display(['The best optimal value of the objective funciton found by OOA for ' [num2str(Fun_name)],' is : ', num2str(Best_score)]);
%%