2024最新算法:河马优化算法(HO)求解23个基准函数

一、河马优化算法

河马优化算法(Hippopotamus optimization algorithm,HO)由Amiri等人于2024年提出,该算法模拟了河马在河流或池塘中的位置更新、针对捕食者的防御策略以及规避方法。河马优化算法的灵感来自河马生活中观察到的三种突出行为模式。河马群由几只雌性河马、河马幼崽、多只成年雄性河马和一只占主导地位的雄性河马(牛群的领导者)组成.由于它们与生俱来的好奇心,幼崽和小河马经常表现出远离群体的倾向。因此,它们可能会变得孤立并成为捕食者的目标。

参考文献:

1\]Amiri, Mohammad Hussein, et al. "Hippopotamus Optimization Algorithm: a Novel Nature-Inspired Optimization Algorithm." Scientific Reports, vol. 14, no. 1, Springer Science and Business Media LLC, Feb. 2024, doi:10.1038/s41598-024-54910-3. ### 二、23个函数介绍 ![](https://file.jishuzhan.net/article/1765230370741030914/3ea3af6a4cb623b78dd28fe776bae638.webp) 参考文献: \[1\] Yao X, Liu Y, Lin G M. Evolutionary programming made faster\[J\]. IEEE transactions on evolutionary computation, 1999, 3(2):82-102. ### 三、HO求解23个函数 #### 3.1部分代码 ``` close all ; clear clc Npop=30;                 Function_name='F1';     % Name of the test function that can be from F1 to F23 (  Tmax=300;               [lb,ub,dim,fobj]=Get_Functions_details(Function_name); [Best_fit,Best_pos,Convergence_curve]=HO(Npop,Tmax,lb,ub,dim,fobj); figure('Position',[100 100 660 290]) %Draw search space subplot(1,2,1); func_plot(Function_name); title('Parameter space') xlabel('x_1'); ylabel('x_2'); zlabel([Function_name,'( x_1 , x_2 )']) %Draw objective space subplot(1,2,2); semilogy(Convergence_curve,'Color','r','linewidth',3) title('Search space') xlabel('Iteration'); ylabel('Best score obtained so far'); axis tight grid on box on legend('HO') saveas(gca,[Function_name '.jpg']); display(['The best solution is ', num2str(Best_pos)]); display(['The best fitness value is ', num2str(Best_fit)]); ``` #### 3.2部分结果 ![](https://file.jishuzhan.net/article/1765230370741030914/bd08ef26966ee3ad8a53dc759261115c.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/9e72a798a2bef1287e81da5b0f4cca0c.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/ec536622ce3f634581cb090ea75a2840.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/3b2454a49ca1adabdaa2f76bbdce0739.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/44c76af1d4fcd66a1da010539bd3ae2a.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/c3b9e4863aa95693ebe413e80d4d493b.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/2afff90fa03a1a7569ba2c7e036de6b2.webp) ![](https://file.jishuzhan.net/article/1765230370741030914/fb86bb7eb82b9719950f7b6bd9db0a1d.webp) ### 四、完整MATLAB代码

相关推荐
你撅嘴真丑5 小时前
第九章-数字三角形
算法
uesowys5 小时前
Apache Spark算法开发指导-One-vs-Rest classifier
人工智能·算法·spark
ValhallaCoder5 小时前
hot100-二叉树I
数据结构·python·算法·二叉树
董董灿是个攻城狮5 小时前
AI 视觉连载1:像素
算法
智驱力人工智能6 小时前
小区高空抛物AI实时预警方案 筑牢社区头顶安全的实践 高空抛物检测 高空抛物监控安装教程 高空抛物误报率优化方案 高空抛物监控案例分享
人工智能·深度学习·opencv·算法·安全·yolo·边缘计算
孞㐑¥6 小时前
算法——BFS
开发语言·c++·经验分享·笔记·算法
Not Dr.Wang4227 小时前
FIR数字滤波器设计的两种实现
matlab
月挽清风7 小时前
代码随想录第十五天
数据结构·算法·leetcode
3GPP仿真实验室7 小时前
【MATLAB源码】CORDIC-QR :基于Cordic硬件级矩阵QR分解
开发语言·matlab·矩阵
XX風7 小时前
8.1 PFH&&FPFH
图像处理·算法