计算机工程与应用 ›› 2025, Vol. 61 ›› Issue (12): 107-119.DOI: 10.3778/j.issn.1002-8331.2407-0068

• 理论与研发 • 上一篇    下一篇

自适应复合转换函数的二进制电鳗觅食优化算法

李牧元,刘建华,力尚龙,吴炳南   

  1. 1.福建理工大学 计算机科学与数学学院,福州 350108
    2.福建理工大学 福建省大数据挖掘与应用技术重点实验室,福州 350108
  • 出版日期:2025-06-15 发布日期:2025-06-13

Binary Electric Eel Foraging Optimization Based on Adaptive Compound Transfer Function

LI Muyuan, LIU Jianhua, LI Shanglong, WU Bingnan   

  1. 1.School of Computer Science and Mathematics, Fujian University of Technology, Fuzhou 350108, China
    2.Fujian Provincial Key Laboratory of Big Data Mining and Applications, Fujian University of Technology,Fuzhou 350108, China
  • Online:2025-06-15 Published:2025-06-13

摘要: 电鳗觅食优化算法是近年提出的元启发式优化算法,用于求解连续优化问题,并且应用在各种工程问题中。然而现实中许多优化问题是离散的,这就需要提出算法的二进制版本。研究者通常使用转换函数将连续解转换为离散解,用于求解离散优化问题,但传统的S型转换函数易于发散难以收敛,而V型转换函数易于陷入局部最优难以跳出。针对上述问题,设计出一种自适应的V型转换函数,并利用电鳗能量因子将S型与自适应V型转换函数融合,提出一种自适应复合型转换函数用于电鳗算法的二值化。此外由于电鳗算法在休息和狩猎阶段缺乏局部多样性,及其在交互和迁徙阶段存在过早收敛,进一步对电鳗优化算法进行了改进。算法在交互阶段增加权重控制因子,发挥S型转换函数的发散特性,增强全局搜索能力;在迁徙阶段施加鞭策因子,约束电鳗的行为,避免过早收敛陷入局部最优;在休息、狩猎阶段增加随机因子提高局部多样性。通过35个背包问题数据实例上的收敛、均值及消融等实验,其结果证明了提出的二进制电鳗觅食优化算法的有效性。

关键词: 二进制电鳗觅食优化算法, 转换函数, 复合型转换函数, 背包问题

Abstract: The electric eel foraging optimization (EEFO) algorithm is a recently proposed metaheuristic optimization algorithm used to solve continuous optimization problems and has been applied in various engineering problems. However, many real-world optimization problems are discrete, which necessitates a binary version of the algorithm. Researchers typically use transfer functions to convert continuous solutions into discrete ones for solving discrete optimization problems. Traditional S-shaped transfer functions tend to diverge and struggle with convergence, while V-shaped transfer functions are prone to getting trapped in local optima and are difficult to escape. To address these challenges, this paper designs an adaptive V-shaped transfer function and combines it with an S-shaped transfer function using the electric eel energy factor, proposing an adaptive compound transfer function to binarize the electric eel algorithm. However, due to the lack of local diversity during the resting and hunting phases, and premature convergence during the interaction and migration phases of the electric eel algorithm, further improvements are made. A weight control factor is added during the interaction phase to exploit the divergent properties of the S-shaped transfer function, enhancing global search capabilities. A boosting factor is introduced in the migration phase to regulate the behavior of the electric eel, preventing premature convergence into local optima. Additionally, random factors are incorporated during the resting and hunting phases to increase local diversity. Finally, experiments conducted on 35 knapsack problem instances, including convergence, mean performance, and ablation analysis, confirm the effectiveness of the proposed binary electric eel foraging optimization algorithm.

Key words: binary electric eel foraging optimization (EEFO)algorithm , transfer function, compound transfer function, knapsack problem