2024最新算法:电鳗觅食优化算法(Electric eel foraging optimization,EEFO)求解23个基准函数(提供MATLAB代码)

一、电鳗觅食优化算法

电鳗觅食优化算法(Electric eel foraging optimization,EEFO)由Weiguo Zhao等人提出的一种元启发算法,EEFO从自然界中电鳗表现出的智能群体觅食行为中汲取灵感。该算法对四种关键的觅食行为进行数学建模:相互作用、休息、狩猎和迁徙,以在优化过程中提供探索和利用。此外,还开发了一个能量因子来管理从全球搜索到本地搜索的过渡以及搜索空间中探索和开发之间的平衡。

参考文献:

Weiguo Zhao, Liying Wang, Zhenxing Zhang, Honggang Fan, Jiajie Zhang, Seyedali Mirjalili, Nima Khodadadi, Qingjiao Cao,Electric eel foraging optimization: A new bio-inspired optimizer for engineering applications,Expert Systems with Applications,Volume 238, Part F,2024,122200,https://doi.org/10.1016/j.eswa.2023.122200.

二、23个函数介绍

参考文献:

1\] Yao X, Liu Y, Lin G M. Evolutionary programming made faster\[J\]. IEEE transactions on evolutionary computation, 1999, 3(2):82-102. ### 三、EEFO求解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]=EEFO(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('EEFO') 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/1764091412095176705/92516e27edc26aaacf557b39398a0fb7.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/01286013abd550a44ec28b0220b617d3.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/ae7549208ed536959946e13443494d35.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/27d24900bfb4d7a01b70c0eb67d35188.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/62fc6dc1cab9e20da54be63aa02bf80d.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/3c10ea983c849fab72855f99d47a4ffc.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/a414e2dbe14b50e9a8f4bda70cc5b4a4.webp) ![](https://file.jishuzhan.net/article/1764091412095176705/f106cb578e1830e680ec521009723807.webp) ### 四、完整MATLAB代码

相关推荐
樱花穿过千岛湖26 分钟前
第六章:Multi-Backend Configuration
人工智能·python·gpt·学习·ai
ptu小鹏27 分钟前
类和对象(中)
开发语言·c++
跳跳糖炒酸奶1 小时前
第十五讲、Isaaclab中在机器人上添加传感器
人工智能·python·算法·ubuntu·机器人
FACELESS VOID1 小时前
llama-factory微调报错:
python
_一条咸鱼_2 小时前
Python 名称空间与作用域深度剖析(二十七)
人工智能·python·面试
_一条咸鱼_2 小时前
Python之函数对象+函数嵌套(二十六)
人工智能·python·面试
_一条咸鱼_2 小时前
Python 文件操作之修改(二十二)
人工智能·python·面试
_一条咸鱼_2 小时前
Python 闭包函数:原理、应用与深度解析(二十八)
人工智能·python·面试
_一条咸鱼_2 小时前
Python 之文件处理编码字符(二十)
人工智能·python·面试
_一条咸鱼_2 小时前
Python 装饰器:代码功能的优雅增强(二十九)
人工智能·python·面试