# 水母搜索优化器

水母搜索优化器（jellyfish search optimizer，JS），也写作 JSO，是一种基于群体的元启发式算法（一种通用的求解问题算法模板，不针对特定问题），它模拟水母如何跟随洋流以及在群体内部移动以寻找食物，并将这种模拟应用于连续优化和工程优化问题：给定有界搜索空间上的一个目标函数，它返回所找到的最优解及其目标值。其设计目标是几乎无需调参，已发表的比较研究报告称，在标准基准测试集上，它优于一系列已有的元启发式算法。<sup>[1](https://doi.org/10.1016/j.amc.2020.125535)</sup><sup> • </sup><sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup>

| 关键事实 | 详情 |
|---|---|
| 首发论文 | Jui-Sheng Chou 与 Dinh-Nhat Truong，Applied Mathematics and Computation（印刷卷 389，2021 年刊），DOI 10.1016/j.amc.2020.125535<sup>[1](https://doi.org/10.1016/j.amc.2020.125535)</sup><sup> • </sup><sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup> |
| 控制参数 | 仅两个：种群规模和迭代次数<sup>[4](https://www.mathworks.com/matlabcentral/fileexchange/78961-jellyfish-search-optimizer-js)</sup> |
| 阶段切换 | 时间控制函数 \( c(t) \) 与 \( c_{0} = 0.5 \) 比较<sup>[5](https://doi.org/10.3390/math13193068)</sup> |
| 分布系数 | \( \beta = 3 \)，由原始数值实验中的敏感性分析确定<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup> |
| 原始验证 | 50 个小/中等规模函数加 25 个大规模函数，对比十种知名元启发式算法<sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup> |
| 旗舰应用 | 25 杆、52 杆和 582 杆塔架结构设计，在对比算法中目标函数评估次数最少<sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup> |
| 官方代码 | MATLAB，发布于 MathWorks File Exchange，首次发布 2020 年 8 月 7 日<sup>[4](https://www.mathworks.com/matlabcentral/fileexchange/78961-jellyfish-search-optimizer-js)</sup> |

## 工作原理

该算法将观察到的两种水母行为映射到搜索算子上。跟随洋流是一种全局移动：洋流的方向称为趋势，从种群均值指向已找到的最优位置，每只水母沿此方向移动。在群体内部，水母表现出被动运动（A 型），即群体形成早期使用的随机漂移，以及主动运动（B 型），即随着搜索推进而占据主导的有向移动。时间控制函数 c(t) 是一个在运行过程中于 0 和 1 之间波动的随机值，决定每只水母在给定迭代中使用哪种行为：当 \( c(t) \) 超过阈值 \( c_{0} = 0.5 \) 时，水母跟随洋流；当它低于 c0 时，水母在群体内部移动。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup><sup> • </sup><sup>[5](https://doi.org/10.3390/math13193068)</sup> 搜索以汇聚成水母华结束，这相当于种群收敛到一个解上。<sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup>

综述文献中印出的更新方程如下。洋流趋势及由此产生的位置更新为<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup>

\[ \text{trend} = X^{*} - \beta \cdot \text{rand}(0,1) \cdot \mu, \qquad X_{i}(t+1) = X_{i}(t) + \text{rand}(0,1) \cdot \text{trend}, \]

其中 \( X^{*} \) 是最优位置，\( \mu \) 是所有水母的均值位置，\( \beta > 0 \) 是与洋流长度相关的分布系数，基于敏感性分析设为 \( \beta = 3 \)。群体内部的被动运动更新为<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup>

\[ X_{i}(t+1) = X_{i}(t) + \gamma \cdot \text{rand}(0,1) \cdot (U_{b} - L_{b}), \]

其中 \( U_{b} \) 和 \( L_{b} \) 为上下界，在算法的一种复述中 \( \gamma = 0.1 \)。<sup>[6](https://www.nature.com/articles/s41598-024-75619-3)</sup> 主动运动更新——水母选择另一个个体，若该个体目标值更优则向其移动，否则（对于最小化问题）远离它——在综述文献中印出的形式不一致，此处从略。<sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup>

时间控制函数存在两种相互冲突的印出形式，已发表的复述未能解决这一差异。一篇论文印出 \( c = 1 - (FES/\text{maxFES}) \cdot (2 \cdot \text{rand} - 1) \)，基于函数评估次数，<sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup> 而综述印出 \( c(t) = \left| (1 - t/\text{Max\_iter}) \times (2 \times \text{rand}(0,1) - 1) \right| \)，基于迭代次数。<sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup><sup> • </sup><sup>[9](https://iieta.org/journals/isi/paper/10.18280/isi.260608)</sup> 切换方向的印出也不一致：多数文献指出 \( c(t) \) 高于 \( c_{0} = 0.5 \) 意味着跟随洋流，低于则意味着在群体内移动，<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup><sup> • </sup><sup>[5](https://doi.org/10.3390/math13193068)</sup> 而一篇综述的说法相反。实现者应查阅原始论文的伪代码，而非依赖二手复述。

## 实现方法

一次运行如下进行。第一，在边界 \( L_{b} \) 和 \( U_{b} \) 内随机初始化水母位置种群。第二，在每次迭代中计算时间控制值 \( c(t) \)，并与 \( c_{0} = 0.5 \) 比较，为每只水母分配阶段。第三，在洋流阶段，用 \( \beta = 3 \) 从最优位置和种群均值计算趋势，并沿其更新位置；在群体阶段，应用被动或主动运动，早期偏向被动运动，后期偏向主动运动。第四，评估每个新位置处的目标函数，并保留已找到的最优解。重复直至迭代预算耗尽。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup><sup> • </sup><sup>[5](https://doi.org/10.3390/math13193068)</sup><sup> • </sup><sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup>

该算法被描述为无参数，意思是用户仅需提供种群规模和迭代次数；内部常数 \( \beta \)、\( \gamma \) 和 \( c_{0} \) 是固定的。官方 MATLAB 实现指出，JS“只有两个控制参数，即种群规模和迭代次数”，因此使用简单。<sup>[4](https://www.mathworks.com/matlabcentral/fileexchange/78961-jellyfish-search-optimizer-js)</sup> 一项比较对 JS 使用种群规模 \( N = 50 \)，<sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup> 但已发表文献中没有关于种群规模或迭代次数的通用准则，且原始 β 分析之外的敏感性也未得到刻画。官方代码于 2020 年 8 月 7 日首次发布于 MathWorks File Exchange，<sup>[4](https://www.mathworks.com/matlabcentral/fileexchange/78961-jellyfish-search-optimizer-js)</sup> 水母搜索优化器的 Python 实现可在 PyPI 上的 pyMetaheuristic 包中获得。

## 起源

水母搜索优化器由 Jui-Sheng Chou 和 Dinh-Nhat Truong 在 2020 年发表于 Applied Mathematics and Computation 的论文《一种受海洋中水母行为启发的新型元启发式优化器》中报告；印刷卷（389）标注日期为 2021 年。<sup>[1](https://doi.org/10.1016/j.amc.2020.125535)</sup><sup> • </sup><sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup> 同两位作者于 2020 年在 Chaos, Solitons & Fractals 上发表了多目标变体 MOJS。<sup>[10](https://doi.org/10.1016/j.chaos.2020.109738)</sup> 一篇综述将该算法归功于 Dinh Nhat Truong 一人（2020 年），这一归属与两作者的期刊记录不符；两作者归属得到更好的支持。<sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup> 除水母行为本身外，已发表文献未指明具体的前驱谱系；首发论文的比较处于粒子群优化和差分进化等自然启发元启发式算法的一般家族之内。<sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup>

## 变体

变体开发十分广泛，修改可归纳为几种可识别的类型。

**多目标。** MOJS 集成了 Lévy 飞行、精英种群、固定大小存档、混沌映射和基于对立的跳变，以获得 Pareto 最优解。<sup>[10](https://doi.org/10.1016/j.chaos.2020.109738)</sup> 一种带有增强交换算子的双目标混沌版本称为 CJSESOS。<sup>[11](https://www.nature.com/articles/s41598-025-11566-x)</sup>

**二值和离散。** 一种二值版本 Bin_AJS 针对 0–1 背包问题，在两个数据集的四十个问题上检验了八种传递函数和五种变异率。<sup>[12](https://avid.selcuk.edu.tr/scopus/257)</sup>

**修改搜索算子。** MJS 修改了局部和全局搜索公式，将全局搜索导向最优和精英个体，并在包括 CEC2013 和 CEC2017 函数在内的八十个最小化问题上以多个维度进行了测试。<sup>[13](https://avid.selcuk.edu.tr/scopus/259)</sup> 一种修改版 JS 将对立学习初始化与基于概率的替换相结合，用偏向全局最优的移动替代被动群体运动，由收敛偏置（CB）系数控制，在 30 个基准函数中的 27 个上表现最佳，而标准 JSO 为 18 个。<sup>[9](https://iieta.org/journals/isi/paper/10.18280/isi.260608)</sup> JSeig 系列增加了旧解存档以避免局部最优、在 1 到 10 之间有界的自适应分布系数 β，以及特征变换。<sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup> 后续工作中涉及的命名增强版本包括 EJSO、FOGJSO（带有高斯变异的分数阶修改策略）、OLJSO（正交学习）和 MOQRJFS。<sup>[5](https://doi.org/10.3390/math13193068)</sup> 还存在一种混沌主动群体方法版本 CASM-JSO。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup>

**混合。** Abdel-Basset 及其同事提出了 MJSO，一种带有早熟收敛策略的修改版 JSO，用于光伏模型参数辨识。<sup>[14](https://doi.org/10.3390/en14071867)</sup> HJSPSO 由 Nayyef 及其同事于 2023 年报告，用粒子群优化替代洋流算子，并通过时间控制机制在 PSO 和 JSO 算子之间交替，带有非线性时变惯性、认知和社会系数。<sup>[15](https://doi.org/10.3390/math11143210)</sup> IJSO 将 JSO 与布谷鸟搜索的 Lévy 飞行相结合，以解决光伏应用中的早熟收敛和收敛时间长的问题。<sup>[6](https://www.nature.com/articles/s41598-024-75619-3)</sup> BHJO 融合了白鲸优化、蜜獾算法和 JS，并采用基于对立的学​​习，用 Friedman 事后 Dunn 检验分析进行评估。<sup>[16](https://www.sciopen.com/article/10.32604/cmes.2024.052001)</sup> CNJSO 由 Nadimi-Shahraki、Banaie-Dezfouli 和 Zamani 于 2025 年报告，增加了带有非邻域全局搜索（BNGS）的最优存档和游走搜索（WAS）策略，以修复 JSO 探索能力低和探索–开发失衡的问题。<sup>[5](https://doi.org/10.3390/math13193068)</sup> 在路径规划方面，Meng 及其同事于 2024 年提出了一种基于进化状态估计的多策略 JSO，用于多无人机协同路径规划，<sup>[17](https://doi.org/10.1109/tiv.2024.3378195)</sup> 而 RL-JSO 用对决双深度 Q 网络策略替代确定性时间控制规则，在漂移、被动和主动阶段之间自适应选择。<sup>[18](https://doi.org/10.3390/drones10050394)</sup>

## 应用

首发论文在各种维度的五十个中小规模和二十五个大规模基准函数上验证了 JS，将其与十种知名元启发式算法比较，并报告 JS 优于它们；后来的比较发现 JS 在 25 个 CEC 2005 问题上优于十种进化算法，包括差分进化、粒子群优化和树种子算法。<sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup><sup> • </sup><sup>[7](https://mendel-journal.org/index.php/mendel/article/view/130)</sup> 综述文献指出，JSO 在各种测试中优于 PSO、DE、AEO、MRFO、SCA、WOA、TLBO、ABC 和 GA；这些是定性的优越性声明，已发表文献中没有针对 GWO 或 WOA 的逐函数一对一对比表。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup> 变体结果包括：CNJSO 在 CEC 2018 函数上针对十种最先进元启发式算法进行评估，并用 Wilcoxon 秩和与 Friedman 检验验证，<sup>[5](https://doi.org/10.3390/math13193068)</sup> HJSPSO 在经典函数上达到 64%、在 CEC-C06 2019 大规模函数上达到 30% 的最高命中率，<sup>[15](https://doi.org/10.3390/math11143210)</sup> Bin_AJS 在四十个背包问题中 97.5% 达到最优值。<sup>[12](https://avid.selcuk.edu.tr/scopus/257)</sup>

应用集中在工程领域。JS 本身应用于 25 杆、52 杆和 582 杆塔架设计，表现最佳且所需目标函数评估次数最少，<sup>[3](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)</sup> MOJS 在二十个多目标基准上针对 MOALO、MODA、MOEA/D、MOGWO、MOPSO 和 NSGA-II 进行了测试，然后应用于 25 杆、160 杆和 942 杆塔架设计，最小化结构重量和最大节点挠度。<sup>[10](https://doi.org/10.1016/j.chaos.2020.109738)</sup> 一种修改版 JSO 在 10 杆桁架设计问题的最佳重量上优于 GA、HPSO、SAHS 和 TLBO。<sup>[9](https://iieta.org/journals/isi/paper/10.18280/isi.260608)</sup> 能源应用包括光伏参数辨识、<sup>[14](https://doi.org/10.3390/en14071867)</sup> 局部遮阴下的光伏参数提取和全局最大功率点跟踪、<sup>[6](https://www.nature.com/articles/s41598-024-75619-3)</sup><sup> • </sup><sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup> 最优潮流、<sup>[5](https://doi.org/10.3390/math13193068)</sup> 最优无功协调、变压器参数估计和 PEM 燃料电池参数辨识。<sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup> 综述中涉及的其他用途包括 Hadoop YARN 中的 [MapReduce](https://www.edgepedia.org/zh/mapreduce) 作业性能和脑图像分割。<sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup> 综览文献，应用分布为工程优化 56%、预测与分类 21%、人工智能微调 23%。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup>

## 局限与替代方案

已记录的失效模式是收敛到局部最优、早熟收敛和收敛缓慢。<sup>[2](https://doi.org/10.1038/s41598-022-23121-z)</sup> 随机初始化的种群多样性低，容易陷入局部最优，这促使采用混沌映射生成初始种群。<sup>[8](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)</sup> 后来的变体论文也指出探索能力低、探索与开发失衡，<sup>[5](https://doi.org/10.3390/math13193068)</sup> 以及光伏问题中的早熟收敛和收敛时间长，<sup>[6](https://www.nature.com/articles/s41598-024-75619-3)</sup> 作为其修改所针对的弱点。最接近的替代方案是它常被比较的元启发式算法，尤其是 PSO、DE、WOA 和 GWO；已发表的比较仅支持 JSO 的定性优越性声明，而非量化的逐函数优越性，且已发表文献中没有针对 GWO 或 WOA 的带数值结果的一对一基准测试。

## References

1. [Jui-Sheng Chou, Dinh-Nhat Truong (2020). A novel metaheuristic optimizer inspired by behavior of jellyfish in ocean. Applied Mathematics and Computation.](https://doi.org/10.1016/j.amc.2020.125535)
2. [Recent advances in use of bio-inspired jellyfish search algorithm for solving optimization problems](https://doi.org/10.1038/s41598-022-23121-z)
3. [A novel metaheuristic optimizer inspired by behavior of jellyfish in ocean (RePEc record)](https://ideas.repec.org/a/eee/apmaco/v389y2021ics0096300320304914.html)
4. [Jellyfish Search Optimizer (JS) - MATLAB Central File Exchange (official code by nhat truong)](https://www.mathworks.com/matlabcentral/fileexchange/78961-jellyfish-search-optimizer-js)
5. [Mohammad H. Nadimi-Shahraki, Mahdis Banaie-Dezfouli, Hoda Zamani (2025). Conscious Neighborhood-Based Jellyfish Search Optimizer for Solving Optimal Power Flow Problems. Mathematics.](https://doi.org/10.3390/math13193068)
6. [Application of improved Jellyfish search algorithm for 9-parameters cell extraction and GMPPT in PV systems (Scientific Reports, 2024)](https://www.nature.com/articles/s41598-024-75619-3)
7. [Three Steps to Improve Jellyfish Search Optimiser](https://mendel-journal.org/index.php/mendel/article/view/130)
8. [An Insight Review on Jellyfish Optimization Algorithm and Its Application in Engineering (IIETA RCES)](https://www.iieta.org/journals/rces/paper/10.18280/rces.090103)
9. [A Modified Jellyfish Search Optimizer with Opposition Based Learning and Biased Passive Swarm Motion](https://iieta.org/journals/isi/paper/10.18280/isi.260608)
10. [Jui-Sheng Chou, Dinh-Nhat Truong (2020). Multiobjective optimization inspired by behavior of jellyfish for solving structural design problems. Chaos Solitons & Fractals.](https://doi.org/10.1016/j.chaos.2020.109738)
11. [Scientific Reports (2025), JSO variant paper (CJSESOS)](https://www.nature.com/articles/s41598-025-11566-x)
12. [A Novel Binary Artificial Jellyfish Search Algorithm for Solving 0–1 Knapsack Problems](https://avid.selcuk.edu.tr/scopus/257)
13. [MJS: a modified artificial jellyfish search algorithm for continuous optimization problems](https://avid.selcuk.edu.tr/scopus/259)
14. [Mohamed Abdel-Basset and colleagues (2021). An Improved Artificial Jellyfish Search Optimizer for Parameter Identification of Photovoltaic Models. Energies.](https://doi.org/10.3390/en14071867)
15. [Husham Muayad Nayyef and colleagues (2023). A Novel Hybrid Algorithm Based on Jellyfish Search and Particle Swarm Optimization. Mathematics.](https://doi.org/10.3390/math11143210)
16. [BHJO: A Novel Hybrid Metaheuristic Algorithm Combining the Beluga Whale, Honey Badger, and Jellyfish Search Optimizers (CMES, 2024)](https://www.sciopen.com/article/10.32604/cmes.2024.052001)
17. [Kai Meng and colleagues (2024). Evolutionary State Estimation-Based Multi-Strategy Jellyfish Search Algorithm for Multi-UAV Cooperative Path Planning. IEEE Transactions on Intelligent Vehicles.](https://doi.org/10.1109/tiv.2024.3378195)
18. [Adaptive Reinforcement Learning-Driven Jellyfish Search Optimizer for Cooperative Multi-UAV Path Planning (Drones, 2026)](https://doi.org/10.3390/drones10050394)

---
*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/jellyfish-search-optimizer

English original: https://www.edgepedia.org/jellyfish-search-optimizer
