# 被囊动物群算法

被囊动物群算法（TSA）是一种基于群的元启发式方法（一种用于寻找足够好的解的通用搜索方法），用于连续、有约束或无约束问题的无导数全局优化。在该算法中，一群被称为被囊动物的候选解利用模拟海洋被囊动物喷射推进和社会觅食行为的规则来更新其位置。与其他群元启发式方法一样，它只需要目标函数和边界，不需要导数，并在满足停止条件时输出所找到的最优解。

| 关键事实 | 详情 |
|---|---|
| 提出者 | Kaur、Awasthi、Sangal 和 Dhiman，《Engineering Applications of Artificial Intelligence》，2020 年 <sup>[1](https://doi.org/10.1016/j.engappai.2020.103541)</sup> |
| 原始评估 | 74 个基准问题，含灵敏度、收敛性、可扩展性和 ANOVA 分析；6 个有约束和 1 个无约束工程设计问题 <sup>[2](https://www.mathworks.com/matlabcentral/fileexchange/75182-tunicate-swarm-algorithm-tsa)</sup> |
| 生物模型 | 被囊动物在导航和觅食过程中的喷射推进与群行为 <sup>[2](https://www.mathworks.com/matlabcentral/fileexchange/75182-tunicate-swarm-algorithm-tsa)</sup> |
| 核心机制 | 碰撞避免、基于距离向食物源搜索，以及通过两个最优解实现的群内聚 <sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup> |
| 固定参数 | \( TS_{\min} = 1 \) 和 \( TS_{\max} = 4 \) 限定避碰力；\( c_{1} \)、\( c_{2} \)、\( c_{3} \) 为随机系数 <sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup> |
| 已知弱点 | 在高多峰地形上存在探索不足和早熟收敛 <sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup> |
| 应用领域 | 电力系统、工程设计、医学图像分析和网络安全 <sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup> |

## 工作原理

TSA 模拟在被囊动物身上观察到的三种行为：它们通过出水管排出吸入的海水来推动自身，产生喷射推进；并作为群体协调对猎物的搜索。<sup>[5](https://www.mdpi.com/2227-7390/10/18/3405)</sup> 该算法将这些行为转化为三种机制：相邻搜索代理之间通过类引力实现碰撞避免；利用基于距离的搜索确定通向食物源的最佳路径；以及维持群内聚。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup>

解决相邻代理之间冲突的避碰力为

\[ \overrightarrow{T} = \frac{c_{2} + c_{3} - 2c_{1}}{TS_{\min} + c_{1}\left(TS_{\max} - TS_{\min}\right)} \]

其中 \( c_{1} \)、\( c_{2} \) 和 \( c_{3} \) 为随机值，\( TS_{\min} \) 和 \( TS_{\max} \) 为负责社会互动的被囊动物最小和最大速度，分别设为 1 和 4。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup> 解决冲突后，每个代理向最优个体移动：令 \( P_{D} = X_{\mathrm{best}} - r_{\mathrm{rand}} \cdot X_{t} \)，当 \( r_{\mathrm{rand}} < 0.5 \) 时位置更新为 \( X_{t} = X_{\mathrm{best}} - A \cdot P_{D} \)，当 \( r_{\mathrm{rand}} \ge 0.5 \) 时为 \( X_{\mathrm{best}} + A \cdot P_{D} \)。<sup>[5](https://www.mdpi.com/2227-7390/10/18/3405)</sup>

向食物源（最优解）的移动遵循

\[ \overrightarrow{P_{pop}}(t+1) = \begin{cases} \overrightarrow{FP} + \overrightarrow{T} \cdot \overrightarrow{DT} & \text{当随机数} \ge 0.5 \\ \overrightarrow{FP} - \overrightarrow{T} \cdot \overrightarrow{DT} & \text{当随机数} \le 0.5 \end{cases} \]

其中 FP 为食物源位置，DT 为每只被囊动物与食物源之间的距离；符号翻转使代理可从两侧接近。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup>

群内聚通过一种利用前两个最优搜索代理在代理之间传递位置信息的更新来强制执行 <sup>[6](https://www.mdpi.com/2076-3417/12/16/8203)</sup>：

\[ \overrightarrow{P_{pop}}(t+1) = \frac{\overrightarrow{P_{pop}}(t) + \overrightarrow{P_{pop}}(t+1)}{2 + c_{1}} \]

按单个代理的形式，对于 \( i > 1 \)，\( X_{i}^{(t+1)} = (X_{i}^{t} + X_{(i-1)}^{(t+1)})/(2 + c_{1}) \)；对于 \( i = 1 \)，为 \( X_{i}^{t} \)，其中 N 为种群规模。<sup>[5](https://www.mdpi.com/2227-7390/10/18/3405)</sup>

## 执行步骤

实践者运行以下循环 <sup>[5](https://www.mdpi.com/2227-7390/10/18/3405)</sup>：

1. 在问题边界内随机初始化一群被囊动物位置，并设置最大迭代次数和参数。
2. 计算每个代理的适应度并选择最优代理（食物源）。
3. 用随机 \( c_{1} \)、\( c_{2} \)、\( c_{3} \) 和 \( TS_{\min} = 1 \)、\( TS_{\max} = 4 \) 计算避碰力 \( T \)，然后用上述食物源和群内聚方程更新位置。
4. 将代理保持在搜索空间内（边界处理）。
5. 重新计算适应度，更新 X_best，重复直至达到最大迭代次数；输出最优个体。

除种群规模和迭代预算外，\( TS_{\min} \) 和 \( TS_{\max} \) 固定为 1 和 4，而 \( c_{1} \)、\( c_{2} \) 和 \( c_{3} \) 在每次迭代中随机抽取，而非调优。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup> 2025 年的一篇综述将 TSA 的采用归因于其简单性、参数高效性和无导数运行。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup>

## 起源

TSA 由 Satnam Kaur、Lalit K. Awasthi、A. L. Sangal 和 Gaurav Dhiman 在《被囊动物群算法：一种用于全局优化的新型生物启发元启发式范式》一文中提出，发表于 2020 年的《Engineering Applications of Artificial Intelligence》。<sup>[1](https://doi.org/10.1016/j.engappai.2020.103541)</sup> 原始论文使用灵敏度、收敛性和可扩展性分析以及 ANOVA 检验，在 74 个基准测试问题上评估了该算法，并在 6 个有约束和 1 个无约束工程设计问题上进行了评估。<sup>[2](https://www.mathworks.com/matlabcentral/fileexchange/75182-tunicate-swarm-algorithm-tsa)</sup> 更早的相关算法 STOA 由 Gaurav Dhiman 和 Amandeep Kaur（2019 年，同一期刊）提出，针对工业工程问题。<sup>[7](https://doi.org/10.1016/j.engappai.2019.03.021)</sup>

## 变体

命名变体通过修改更新规则来解决特定弱点：

- **ETSA** 增加一个动态扰动改进阶段，\( P_{\mathrm{pop}}(t+1) = P_{\mathrm{pop}}(t) \pm \mathrm{rand}^{t} \cdot \alpha/2 \)，以提高在大规模问题（如经济调度）上的局部开发能力。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup>
- **CLTSA 和 TLTSA** 将九种混沌映射与 Lévy 飞行策略相结合；Tent-Lévy 变体表现最佳，并在 16 个单峰、14 个多峰和 6 个固定维度基准函数以及 3 个有约束工程问题上进行了测试。<sup>[5](https://www.mdpi.com/2227-7390/10/18/3405)</sup>
- **CG-TSA** 将余弦变异和自适应分组应用于多目标机场登机口分配问题，最小化实时航班冲突、最大化登机桥使用率并最小化飞机滑行油耗。<sup>[6](https://www.mdpi.com/2076-3417/12/16/8203)</sup>
- **MSHHOTSA** 针对优化速度慢、精度低和早熟收敛问题，使用双曲正切域位置修正、非线性收敛因子替代随机因子 \( c_{1} \)，以及哈里斯鹰优化群更新。<sup>[8](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0290117)</sup>
- **RLTSA** 结合 Q 学习方法与两种提高效率的策略。<sup>[9](https://www.aimsciences.org/article/doi/10.3934/jimo.2024095)</sup>
- **ROBTSA** 将随机对立学习与跳跃概率相结合，通过增强种群多样性来逃离局部最优。<sup>[10](https://ideas.repec.org/a/spr/opsear/v62y2025i2d10.1007_s12597-024-00828-3.html)</sup>
- **HMTSA-FSGO** 增加动态 s-best 变异算子和定向变异规则，用于 BiLSTM 分类器的特征选择。<sup>[11](https://www.sciopen.com/article/10.3934/math.20241184)</sup>
- **IMATSA** 使用 Tent 映射和二次插值初始化、Golden-Sine 算法进行局部收敛，以及带改进高斯扰动的 Lévy 飞行来平衡全局和局部搜索。<sup>[12](https://sage.cnpereading.com/doi/10.3233/AIC-220093)</sup>
- 2024 年的一种多策略改进准对立混沌 TSA 针对全局优化和有约束工程应用 <sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC11109745/)</sup>，2025 年的综述还列出了混沌 TSA、自适应 TSA 和混合方法。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup>

## 应用

已发表的应用涵盖电力系统优化、工程设计、医学图像分析和网络安全。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup> 在应用力学中，TSA 已用于减速器、悬臂梁和三维梁优化。<sup>[14](https://jged.uns.ac.rs/index.php/jpe/article/view/754)</sup> 在机器学习中，HMTSA-FSGO 使用 BiLSTM 分类器执行特征选择，其超参数由鼠群优化器调优。<sup>[11](https://www.sciopen.com/article/10.3934/math.20241184)</sup> IMATSA 已应用于 SVM 和 GBDT 超参数优化，以及使用 PSNR 和 STD 指标评估的图像多阈值分割。<sup>[12](https://sage.cnpereading.com/doi/10.3233/AIC-220093)</sup> CG-TSA 解决机场登机口分配问题 <sup>[6](https://www.mdpi.com/2076-3417/12/16/8203)</sup>，ETSA 针对经济调度。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup>

## 局限性与替代方案

原始论文的证据包括 74 个基准问题和 7 个工程设计问题 <sup>[2](https://www.mathworks.com/matlabcentral/fileexchange/75182-tunicate-swarm-algorithm-tsa)</sup>；一项在 23 个基准函数上与六种成熟算法的比较研究凸显了 TSA 的优越性能。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup> 后来的变体报告了直接对比：MSHHOTSA 在 8 个标准基准函数、CEC2019 函数、4 个工程设计问题和 1 个 PID 参数优化问题上，与 BOA、GWO、MVO、HHO、TSA、ASO 和 WOA 进行了评估 <sup>[8](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0290117)</sup>；ROBTSA 在 13 个单峰和多峰函数上与 PSO、GWO、WOA、SCA、MVO、STOA、原始 TSA 和 OBTSA 进行了测试，外加压力容器和拉/压弹簧设计，根据 Friedman 和 Wilcoxon 秩和检验，在收敛速度、精度和稳定性方面优于竞争者。<sup>[10](https://ideas.repec.org/a/spr/opsear/v62y2025i2d10.1007_s12597-024-00828-3.html)</sup>

记录的局限性包括在高多峰地形上的探索不足和早熟收敛 <sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup>，以及在高维和复杂问题上陷入局部最优的倾向。<sup>[4](https://link.springer.com/article/10.1007/s44196-021-00039-4)</sup> MSHHOTSA 的作者将优化速度慢和精度低列为进一步的局限性。<sup>[8](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0290117)</sup> 最接近的替代方案是其他群元启发式方法，如 PSO、GWO、WOA、SCA、MVO 和 STOA，它们是 TSA 研究中的标准比较对象。2023 年后的工作包括准对立混沌变体 <sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC11109745/)</sup>、RLTSA <sup>[9](https://www.aimsciences.org/article/doi/10.3934/jimo.2024095)</sup>，以及量子启发增强、分布式计算和工业 4.0 集成等研究方向。<sup>[3](https://link.springer.com/article/10.1007/s11831-025-10287-8)</sup>

## References

1. [Satnam Kaur and colleagues (2020). Tunicate Swarm Algorithm: A new bio-inspired based metaheuristic paradigm for global optimization. Engineering Applications of Artificial Intelligence.](https://doi.org/10.1016/j.engappai.2020.103541)
2. [Tunicate Swarm Algorithm (TSA) - File Exchange - MATLAB Central](https://www.mathworks.com/matlabcentral/fileexchange/75182-tunicate-swarm-algorithm-tsa)
3. [Recent Versions and Applications of Tunicate Swarm Algorithm | Archives of Computational Methods in Engineering](https://link.springer.com/article/10.1007/s11831-025-10287-8)
4. [Enhanced Tunicate Swarm Algorithm for Solving Large-Scale Nonlinear Optimization Problems](https://link.springer.com/article/10.1007/s44196-021-00039-4)
5. [CLTSA: A Novel Tunicate Swarm Algorithm Based on Chaotic-Lévy Flight Strategy for Solving Optimization Problems](https://www.mdpi.com/2227-7390/10/18/3405)
6. [An Improved Tunicate Swarm Algorithm for Solving the MultiObjective Optimisation Problem of Airport Gate Assignments](https://www.mdpi.com/2076-3417/12/16/8203)
7. [Gaurav Dhiman, Amandeep Kaur (2019). STOA: A bio-inspired based optimization algorithm for industrial engineering problems. Engineering Applications of Artificial Intelligence.](https://doi.org/10.1016/j.engappai.2019.03.021)
8. [MSHHOTSA: A variant of tunicate swarm algorithm combining multi-strategy mechanism and hybrid Harris optimization (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0290117)
9. [A novel reinforcement learning-inspired tunicate swarm algorithm for solving global optimization and engineering design problems (RLTSA, JIMCO 2024)](https://www.aimsciences.org/article/doi/10.3934/jimo.2024095)
10. [An improved tunicate swarm algorithm with random opposition based learning for global optimization problems (ROBTSA)](https://ideas.repec.org/a/spr/opsear/v62y2025i2d10.1007_s12597-024-00828-3.html)
11. [Mathematical modeling of a Hybrid Mutated Tunicate Swarm Algorithm for Feature Selection and Global Optimization (HMTSA-FSGO)](https://www.sciopen.com/article/10.3934/math.20241184)
12. [IMATSA – an improved and adaptive intelligent optimization algorithm based on tunicate swarm algorithm](https://sage.cnpereading.com/doi/10.3233/AIC-220093)
13. [A novel multi-strategy ameliorated quasi-oppositional chaotic tunicate swarm algorithm for global optimization and constrained engineering applications](https://pmc.ncbi.nlm.nih.gov/articles/PMC11109745/)
14. [Application of the metaheuristic tunicate swarm algorithm in solving applied mechanics problems (Journal of Production Engineering)](https://jged.uns.ac.rs/index.php/jpe/article/view/754)

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

Topic: 物质世界与数学 › 数学与统计学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/tunicate-swarm-algorithm

English original: https://www.edgepedia.org/tunicate-swarm-algorithm
