✅作者简介:热爱科研的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)]);
%%
⛄ 运行结果



⛄ 参考文献
⛳️ 完整代码
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料
文章介绍了使用鱼鹰算法OspreyOptimizationAlgorithm解决工程优化问题的Matlab实现,包括代码示例和运行结果展示。作者提供了一个用于求解F1测试函数的案例,并展示了如何找到最佳优化值。此外,还提到了完整代码可在个人主页获取,以及参考文献的相关信息。
761

被折叠的 条评论
为什么被折叠?



