# 海洋捕食者算法

海洋捕食者算法（MPA）是一种受自然启发的元启发式方法（用于寻找优良解的一般性搜索方法），面向数值优化与工程优化，模拟海洋捕食者及其猎物的觅食行为。它用一个候选解种群在问题的解空间中搜索，不需要目标函数的导数。其灵感来自在海洋捕食者身上观察到的[莱维飞行](https://www.edgepedia.org/zh/levy-flight)与[布朗运动](https://www.edgepedia.org/zh/brownian-motion)模式，并结合了支配捕食者—猎物相互作用的最优相遇率策略。<sup>[1](https://doi.org/10.1016/j.eswa.2020.113377)</sup> 一篇综述将其描述为无导数、易用、灵活且简单，这帮助它迅速推广到广泛的优化问题之中。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09912-1.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 提出论文 | 阿夫欣·法拉马尔齐（Afshin Faramarzi）、海达里内贾德（Heidarinejad）、米尔贾利利（Mirjalili）与甘多米（Gandomi），《专家系统与应用》，2020<sup>[1](https://doi.org/10.1016/j.eswa.2020.113377)</sup> |
| 搜索算子 | 莱维飞行与布朗运动，由捕食者—猎物速度比切换<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup> |
| 主要结构 | 按迭代次数的三等分划分三个阶段：探索、过渡、开发<sup>[4](https://cran.r-project.org/web/packages/marinepredator/refman/marinepredator.html)</sup> |
| 控制参数 | \( P = 0.5 \)，\( \text{FADs} = 0.2 \)，\( \beta = 1.5 \)（推荐默认值）<sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup> |
| 基准测试结果 | 在 CEC-BC-2017 上排名第二，仅次于 LSHADE-cnEpSin；在统计上优于 GA、PSO、GSA、CS、SSA 与 CMA-ES<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup> |
| 已知弱点 | 早熟收敛、陷入局部最优、多样性丧失、探索—开发失衡<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637075/)</sup> |

## 工作原理

MPA 维护两个矩阵：一个精英矩阵，存放顶级捕食者（即迄今找到的最优解）；一个猎物矩阵，存放当前种群。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup> 猎物位置的移动由捕食者速度与猎物速度之比支配，该比值把整个运行过程划分为三个阶段。当猎物移动更快时（速度比约为 10 或更高），捕食者原地不动，由布朗运动驱动探索。在速度比为 1 时，双方同时搜索：一半种群按莱维飞行移动，另一半按布朗运动移动，这是探索向开发转化的过渡阶段。当捕食者更快时（比值约为 0.1），带自适应步长的莱维飞行把开发集中在最优解附近。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup><sup> • </sup><sup>[4](https://cran.r-project.org/web/packages/marinepredator/refman/marinepredator.html)</sup>

这些移动规则背后的生物学模型是：猎物稀疏时以莱维飞行方式觅食，而探测到猎物种群密集时则转为布朗运动。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup> 提出该算法的论文建立在生物学研究之上，这些研究表明环境背景可以解释海洋动物身上的莱维运动与布朗运动模式。<sup>[1](https://doi.org/10.1016/j.eswa.2020.113377)</sup>

## 具体做法

使用者运行如下循环，迭代过程被分为三等份。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup><sup> • </sup><sup>[4](https://cran.r-project.org/web/packages/marinepredator/refman/marinepredator.html)</sup>

1. 在边界内均匀初始化猎物矩阵，并把最优解复制进精英矩阵。
2. **第一阶段**（迭代 0 至 \( \text{Max\_Iter}/3 \)）：用布朗运动步长更新猎物。步长为
\[ \text{stepsize} = R_{B} \otimes (\text{Elite} - R_{B} \otimes \text{Prey}) \]
其中 \( R_{B} \) 是 [0, 1] 上均匀随机数构成的向量，\( P = 0.5 \) 用于缩放步长。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup>
3. **第二阶段**（中间三分之一）：对种群的前一半施加莱维更新，对另一半施加布朗更新。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup>
4. **第三阶段**（迭代超过 \( 2 \cdot \text{Max\_Iter}/3 \)）：对所有个体施加莱维更新，自适应因子为
\[ CF = \left(1 - \frac{\text{Iter}}{\text{Max\_Iter}}\right)^{2\,\text{Iter}/\text{Max\_Iter}} \]
它在运行推进过程中调节捕食者的步长。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup>
5. 以概率 \( \text{FADs} = 0.2 \) 施加 FADs 效应：或者是在边界范围内抽取的较长跳跃，\( \vec{x}_{i} + CF \cdot [\vec{x}_{\min} + \vec{R} \cdot (\vec{x}_{\max} - \vec{x}_{\min})] \cdot \vec{U} \)；或者是基于差值的移动 \( \vec{x}_{i} + [\text{FADs}(1-r) + r] \cdot (\vec{x}_{r1} - \vec{x}_{r2}) \)。这模拟了鱼类聚集装置——鲨鱼有超过 80% 的时间在其附近活动——有助于跳出局部最优。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup><sup> • </sup><sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup>

提出论文中的灵敏度分析建议把 \( P = 0.5 \) 与 \( \text{FADs} = 0.2 \) 作为保守的默认值，并为[莱维分布](https://www.edgepedia.org/zh/levy-distribution)取 \( \beta = 1.5 \)。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup><sup> • </sup><sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup>

## 起源

MPA 由阿夫欣·法拉马尔齐（Afshin Faramarzi）及其同事在《海洋捕食者算法：一种受自然启发的元启发式方法》一文中提出，该文于 2020 年发表于《专家系统与应用》（*Expert Systems with Applications*）。<sup>[1](https://doi.org/10.1016/j.eswa.2020.113377)</sup> 作者们在 GitHub、MATLAB File Exchange 及项目网站上发布了参考代码。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup>

## 变体

已发表的变体可归为二值、离散、改进、混合、混沌、量子与多目标等类别。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637075/)</sup> 有名称的例子包括 MPA 与粒子群优化（particle swarm optimization）的混合（MPA-PSO）、多种群 MPA（MultiPopMPA），以及采用自适应权重调整与动态社会学习的改进型 MPA。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup> IMPA 增加了一种基于排序的多样性削减机制，用于改善那些未能找到可行解的粒子，并被应用于医学图像分割。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637075/)</sup> 其他路线包括：把 MPA 与卷积神经网络结合用于图像分类，与飞蛾扑火优化器（moth-flame optimizer）结合用于图像分割，与混沌映射上的反向学习结合，与精英进化策略结合，以及与由单一参数控制的混沌映射结合。<sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup> 一个多目标家族包括 MMPA、改进的 MMPA、高斯变异 M-MMPA 与内尔德—米德单纯形 M-MMPA。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup> 针对超多目标最优潮流问题，昆基蒂（Khunkitti）、西里塔拉提瓦（Siritaratiwat）与普雷姆鲁迪普里查猜（Premrudeepreechacharn）开发了 MaMPA，于 2022 年发表于《应用科学》（*Applied Sciences*）。<sup>[8](https://doi.org/10.3390/app122211829)</sup> 一个 2025 年的超多目标自适应变体直接建立在 MPA 的三阶段捕食者搜索结构之上。<sup>[9](https://www.nature.com/articles/s41598-025-96901-y)</sup>

## 应用

提出该算法的研究在 29 个测试函数、CEC-BC-2017 测试集、三个工程基准问题，以及通风与建筑能耗性能方面的两个真实设计问题上评估了 MPA。MPA 总体排名第二，仅次于 CEC 2017 竞赛冠军 LSHADE-cnEpSin；它在统计上优于 GA、PSO、GSA、CS、SSA 与 CMA-ES，与 SHADE 和 LSHADE-cnEpSin 在统计上相当。<sup>[3](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)</sup>

一项针对 13 个工程问题上 193 组参数设置的统计研究发现，P 与 FADs 显著影响性能；把 P 从 0.5 动态线性降至 0 是最佳设置，优于原始配置。较小的种群（\( N = 10 \)）给出的结果显著优于 \( N = 500 \)。<sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup> 在电力系统中，MaMPA 在 IEEE 30 节点最优潮流问题上于最大迭代次数的四分之一以内收敛到可行解，在 IEEE 118 节点系统上以超过 1000 美元/小时的幅度胜过所有对比算法，并在 30 节点算例上比 EP、GSO、HHO、MF、SSA、WOA、ACDE 与 ECHT-DE 运行得更快。<sup>[8](https://doi.org/10.3390/app122211829)</sup> 应用还包括图像分割与入侵检测。<sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup><sup> • </sup><sup>[10](https://link.springer.com/article/10.1186/s40537-025-01080-2)</sup>

## 局限与替代方法

已记录的弱点有早熟收敛、陷入局部最优与多样性不足，在工业工程设计问题上尤为明显。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637075/)</sup> 一项 2025 年的研究补充指出种群初始化均匀性不足，以及探索与开发不均衡。<sup>[10](https://link.springer.com/article/10.1186/s40537-025-01080-2)</sup> 近期各变体论文反复出现的动机都是同一组批评：初始化均匀性、探索—开发平衡与早熟收敛。<sup>[10](https://link.springer.com/article/10.1186/s40537-025-01080-2)</sup> 较高的 FADs 取值会降低效率，因为 FADs 规则会随机重新放置当前解并拖慢收敛；偶尔使用则可改善可解性。<sup>[5](https://www.mdpi.com/2227-7390/11/23/4716)</sup> [参数](https://www.edgepedia.org/zh/parameter)研究发现，在单峰函数上 P 比 FADs 更敏感，而在多峰函数上 FADs 更为重要。<sup>[7](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)</sup> WOA 与 HHO 只在个别应用研究中作为基线出现，<sup>[8](https://doi.org/10.3390/app122211829)</sup> 而针对[灰狼优化器](https://www.edgepedia.org/zh/gray-wolf-optimizer)的专门正面对比基准、收敛性分析或复杂度分析，以及针对平移或旋转函数的具体结果，均尚未发表。

## References

1. [Afshin Faramarzi and colleagues (2020). Marine Predators Algorithm: A nature-inspired metaheuristic. Expert Systems with Applications.](https://doi.org/10.1016/j.eswa.2020.113377)
2. [Marine Predators Algorithm: A Review (Archives of Computational Methods in Engineering, Springer, 2023)](https://link.springer.com/content/pdf/10.1007/s11831-023-09912-1.pdf)
3. [Marine Predators Algorithm: A nature-inspired metaheuristic (original paper PDF, Open Publications of UTS Scholars)](https://opus.lib.uts.edu.au/bitstream/10453/146522/2/Binder3.pdf)
4. [Help for package marinepredator (CRAN)](https://cran.r-project.org/web/packages/marinepredator/refman/marinepredator.html)
5. [Evaluation of Marine Predator Algorithm by Using Engineering Optimisation Problems (Mathematics, MDPI, 2023)](https://www.mdpi.com/2227-7390/11/23/4716)
6. [Improved marine predators algorithm for engineering design optimization problems (PMC full text)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637075/)
7. [Marine Predator Algorithm and Related Variants: A Systematic Review (IJACSA, Vol. 16, No. 1, 2025)](https://thesai.org/Downloads/Volume16No1/Paper_54-Marine_Predator_Algorithm_and_Related_Variants.pdf)
8. [Sirote Khunkitti, Apirat Siritaratiwat, Suttichai Premrudeepreechacharn (2022). A Many-Objective Marine Predators Algorithm for Solving Many-Objective Optimal Power Flow Problem. Applied Sciences.](https://doi.org/10.3390/app122211829)
9. [Adaptive predator prey algorithm for many objective optimization (Scientific Reports, 2025)](https://www.nature.com/articles/s41598-025-96901-y)
10. [Multi-strategy enhanced marine predator algorithm: performance investigation and application in intrusion detection (Journal of Big Data, 2025)](https://link.springer.com/article/10.1186/s40537-025-01080-2)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Swarm intelligence optimizers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/marine-predators-algorithm

English original: https://www.edgepedia.org/marine-predators-algorithm
