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代码

相关推荐
我也不曾来过11 小时前
AVL树的实现
算法
jerry6091 小时前
LeetCode 滑动窗口问题 - 核心限制条件总结 (基于灵茶山艾府分类 - 详尽版)
算法·leetcode·分类
yuhao__z1 小时前
代码随想录算法训练营第六十五天| 图论10—卡码网94. 城市间货物运输 I,95. 城市间货物运输 II
java·算法·图论
袁气满满~_~1 小时前
LeetCode:贪心算法
算法·leetcode·贪心算法
枫景Maple1 小时前
LeetCode 1340. 跳跃游戏 V(困难)
算法·leetcode
虾球xz1 小时前
游戏引擎学习第304天:构建与遍历图
c++·学习·算法·游戏引擎
虾球xz2 小时前
游戏引擎学习第300天:从排序键更改为排序规则
c++·学习·算法·游戏引擎
新知图书2 小时前
OpenCV图像平移示例
opencv·算法·计算机视觉
FungLeo2 小时前
浏览器原生 Web Crypto API 实现 SHA256 Hash 加密
前端·算法·哈希算法·sha256·web crypto api
apcipot_rain2 小时前
【应用密码学】实验六 公钥密码3——SM2
算法·密码学·哈希算法