# 黏液霉菌算法

黏液霉菌算法（slime mold algorithm，SMA）是一种基于群体的元启发式算法，通过模仿黏液霉菌的振荡觅食行为来搜索数值函数的最优解，应用于工程与计算中的连续单目标优化问题。它基于自然界中黏液霉菌的振荡模式提出，与粒子群优化、灰狼优化同属基于种群、由隐喻驱动的优化器家族。<sup>[1](https://doi.org/10.1016/j.future.2020.03.055)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup>

| 关键事实 | 详情 |
| --- | --- |
| 提出论文 | 李世民（Shimin Li）等，“黏液霉菌算法：一种随机优化新方法”，《未来一代计算机系统》（Future Generation Computer Systems），2020<sup>[1](https://doi.org/10.1016/j.future.2020.03.055)</sup> |
| 问题类别 | 连续、单目标数值优化；综述的SMA论文中81%为单目标、90%为连续<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> |
| 核心机制 | 自适应权重 \( W \) 模拟生物振荡器的正负反馈，在食物源周围形成粗细不同的脉络网络<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup> |
| 关键参数 | \( z = 0.03 \) 设定随机重新初始化的概率，平衡探索与开发<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> |
| 原始评估 | 33个基准函数（单峰、多峰、固定维度多峰、复合）加四个工程设计问题<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup> |
| 已记载的主要缺陷 | 局部最优停滞、收敛速度慢、在高维和多峰问题上精度低<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> |
| 应用类别 | 工程优化（最多）、能源、机器学习、图像分割、网络、调度等<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> |

## 工作原理

SMA建模的是原质团黏液霉菌[多头绒泡菌](https://www.edgepedia.org/zh/physarum-polycephalum)（Physarum polycephalum）的觅食行为，这是一种巨大的类变形虫细胞，会在营养源上铺开一张由静脉状管道构成的网络。该算法的数学模型用自适应权重模拟黏液霉菌传播波的正负反馈——该传播波基于一个生物振荡器——使权重在食物源周围形成粗细不同的摄食管网络；一个位置更新决策参数 \( p \) 在各种收缩模式之间进行选择。<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup> 这一脉多头绒泡菌模型立足于正反馈：传导率越大则通量越大，通量越大又反过来提高传导率，从而使原质团的网络模型能够求解迷宫。<sup>[4](https://doi.org/10.1016/j.jtbi.2006.07.015)</sup>

每次位置更新有三个分支。以概率 \( z \)（原始文献中取0.03）个体被随机重新初始化；否则，若一次随机抽取低于 \( p_i \)，个体以带权偏移向最优位置移动，否则按比例步长移动：<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup><sup> • </sup><sup>[5](https://www.mdpi.com/2313-7673/10/8/504)</sup>

\[ X_{i}(t+1) = \begin{cases} r(t), & \mathrm{rand} < z \\ X_{b} + v_{b} \cdot \left( W \cdot X_{A} - X_{B} \right), & \mathrm{rand} \ge z \text{ 且 } r < p_{i} \\ v_{c} \cdot X_{i}(t), & \mathrm{rand} \ge z \text{ 且 } r \ge p_{i} \end{cases} \]

这里 \( X_{b} \) 是气味浓度最高的位置（迄今找到的最优解），\( X_{A} \) 与 \( X_{B} \) 是两个随机选出的个体，\( p_i \) 由该个体的适应度和全局最优个体的适应度计算得出。<sup>[5](https://www.mdpi.com/2313-7673/10/8/504)</sup> 系数 \( v_{b} \) 的取值范围为 \( [-a, a] \)，从一线性递减至零，\( v_{c} \) 也随迭代从一线性递减至零，因此随着运行推进，朝向最优解的带权吸引逐渐占据主导。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup><sup> • </sup><sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup>

权重 \( W \) 控制对最优解的开发，由当前迭代的最优适应度 \( bF \) 和最差适应度 \( wF \) 计算：<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup>

\[ W(\mathrm{SmellIndex}(i)) = \begin{cases} 1 + r \cdot \log\left( \frac{bF - S(i)}{bF - wF} + 1 \right), & \text{条件1} \\ 1 - r \cdot \log\left( \frac{bF - S(i)}{bF - wF} + 1 \right), & \text{其他情况} \end{cases} \]

已发表的一处对该公式的复述省略了对数内的+1，因此各论文中的确切形式有所不同。<sup>[5](https://www.mdpi.com/2313-7673/10/8/504)</sup>

## 实施方法

一次SMA运行按已发表的伪代码如下进行：<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup>

1. 初始化 \( z \)、最大迭代次数 \( \mathrm{max\_t} \)、种群规模 \( N \)、维度，以及所有个体的随机位置。
2. 当 \( t \le \mathrm{max\_t} \) 时：检查边界、评估适应度，并对种群排序。
3. 更新 \( bF \)、\( wF \)、\( DF \) 和 \( X_{b} \)，然后为每个个体计算权重 \( W \)。
4. 更新 \( p \)、\( v_{b} \)、\( v_{c} \) 以及辅助系数 \( A \) 和 \( B \)。
5. 用上述三分支规则更新每个位置，令 \( t \) 递增，然后重复。

SMA的源代码由作者公开发布。<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup>

## 起源

生物学起点是2000年中垣俊之（Toshiyuki Nakagaki）、山田宏康（Hiroyasu Yamada）和阿戈陶·托特（Ágota Tóth）在《自然》（Nature）上的报告：多头绒泡菌是一种具有树突状管状伪足网络的大型类变形虫细胞，它能连接放置在两个不同位置的食源，实际上求解了一个迷宫。<sup>[6](https://doi.org/10.1038/35035159)</sup> 寺尾敦（Atsushi Tero）、小林亮（Ryo Kobayashi）和中垣俊之在2006年建立了这一自适应运输网络的数学模型，<sup>[4](https://doi.org/10.1016/j.jtbi.2006.07.015)</sup> 同一批作者还在2006年提出了用于路网导航的多头绒泡菌求解器。<sup>[7](https://doi.org/10.1016/j.physa.2006.01.053)</sup> 安东尼·布拉巴宗（Anthony Brabazon）和肖恩·麦加里（Seán McGarraghy）后来将黏液霉菌觅食作为算法设计的灵感来源进行了综述，其中包括改进多头绒泡菌算法（improved Physarum polycephalum algorithm，IPPA）。<sup>[8](https://doi.org/10.1504/ijica.2020.105316)</sup>

SMA本身作为一种基于种群的随机优化器，由李世民等在2020年的《未来一代计算机系统》上报道。<sup>[1](https://doi.org/10.1016/j.future.2020.03.055)</sup> 提出论文在33个基准函数（涵盖单峰、多峰、固定维度多峰和复合类型）上使用Wilcoxon符号秩检验和Friedman检验评估了该算法，并将其应用于四个经典工程结构问题：焊接梁、压力容器、悬臂梁和工字梁设计。<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup>

## 变体

一份2024年对谷歌学术上130篇SMA文章（2022年至2023年）的综述记录了两大变体家族。混沌变体用混沌映射产生的值取代随机值，具体命名的例子包括CO-SMA、CSMA、ECSMA、CRFSMA、PCE-SMA和MSMA。二进制与离散变体使SMA适应选择与离散搜索，包括BDFSMA——一种二进制分散觅食SMA，在基于包装器的特征选择中颇具前景；用于结构损伤分类的ABSMA；以及用于机组组合的二进制SMA。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> 分散觅食的连续与二进制变体由胡娇（Jiao Hu）等在2021年的《知识系统》（Knowledge-Based Systems）上提出。<sup>[9](https://doi.org/10.1016/j.knosys.2021.107761)</sup>

混合SMA将SMA与其他优化器或算子结合；该综述列出了与正弦余弦算法、[海洋捕食者算法](https://www.edgepedia.org/zh/marine-predators-algorithm)、粒子群优化、进化算法、[萤火虫算法](https://www.edgepedia.org/zh/firefly-algorithm)、灰狼优化、基于梯度的优化器、二次近似、锦标赛选择、人工神经网络、飞蛾火焰优化、模式搜索和支持向量回归的组合。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> 已记载的具名混合体包括PSMADE——它加入差分进化交叉与变异，外加一个带禁忌表的Powell机制用于工程设计，由李新茹（Xinru Li）等在2023年提出，<sup>[10](https://doi.org/10.1016/j.isci.2023.107736)</sup> 以及SMA-CSA——它加入柯西变异和以[Metropolis](https://www.edgepedia.org/zh/metropolis)接受准则为基础的模拟退火，由张晓怡（Xiaoyi Zhang）、刘启轩（Qixuan Liu）和白欣瑶（Xinyao Bai）在2023年提出。<sup>[11](https://doi.org/10.1371/journal.pone.0280512)</sup> 此外还有为SMA提出的一种控制选择压力的惩罚算子，并在CEC2017测试集上进行了评估。<sup>[12](https://abmir.yazd.ac.ir/article_3793.html?lang=en)</sup>

## 应用

该综述将130篇SMA出版物分为七类：工程优化（最多）、能源优化、机器学习、图像分割、网络、调度优化及其他。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> 提出论文本身涵盖了焊接梁、压力容器、悬臂梁和工字梁设计。<sup>[3](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)</sup> 后来的变体扩展了应用记录：SMA-CSA被应用于带容量约束的[车辆路径问题](https://www.edgepedia.org/zh/vehicle-routing-problem)，<sup>[11](https://doi.org/10.1371/journal.pone.0280512)</sup> PSMADE用于四个受约束的实际工程问题，<sup>[10](https://doi.org/10.1016/j.isci.2023.107736)</sup> 而2025年的一种混沌增强领导者SMA被应用于带频率约束的穹顶结构优化。<sup>[13](https://www.nature.com/articles/s41598-025-17346-x)</sup>

已报告的比较让人对条件与结果有所了解。混沌SMA（CSMA）用10种不同的混沌映射取代随机值，在62个基准函数上与PSO、DE、GWO、哈里斯鹰优化、阿基米德优化算法和COOT对比测试，取得了比标准SMA和所比较方法相对更成功的结果，并用于三个实际工程设计问题。<sup>[14](https://link.springer.com/article/10.1007/s10462-021-10100-5)</sup> CCHSMA在30个CEC2017函数上以Wilcoxon符号秩检验和Friedman检验与七种元启发式算法和十种群体变体进行了基准比较，并在拉压弹簧、压力容器和三杆桁架设计上优于其他算法。<sup>[15](https://link.springer.com/article/10.1186/s40537-024-01000-w)</sup>

## 局限与替代方案

该综述指出基本SMA的主要问题是局部最优停滞、收敛速度慢，以及多峰和高维问题上精度低。其强大的局部搜索能力是以牺牲探索为代价换来的，造成开发与探索之间失衡，而全局探索不足源于随机初始种群质量和多点局部搜索机制。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup> PSMADE的作者同样将收敛速度慢和早熟收敛列为SMA的缺点，并指出根据无免费午餐理论，没有任何算法能在任何领域实现完美优化。<sup>[10](https://doi.org/10.1016/j.isci.2023.107736)</sup> 混合体会付出运行时间的代价：由于退火过程，SMA-CSA的计算时间相比SMA平均增加57%。<sup>[11](https://doi.org/10.1371/journal.pone.0280512)</sup> 该综述建议进一步研究多目标和离散SMA，并扩展到神经网络和极限学习机；2022年至2023年间此类变体发表甚少。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)</sup>

SMA也受到针对隐喻驱动元启发式算法的方法论批评。肯尼斯·索伦森（Kenneth Sörensen）认为一些基于隐喻的方法是对更古老技术的重新推导，并以和声搜索作为(μ + 1)进化策略的一个特例为例。<sup>[16](https://www.cs.ubc.ca/~hutter/EARG.shtml/stack/2013_Sorensen_MetaheuristicsTheMetaphorExposed.pdf)</sup>

近期进展包括CCHSMA，结合了混沌局部搜索、协方差矩阵自适应和哈里斯鹰优化策略，<sup>[15](https://link.springer.com/article/10.1186/s40537-024-01000-w)</sup> BWSMA（2025），整合了自适应贪心机制、最佳-最差管理策略和停滞替换机制，<sup>[5](https://www.mdpi.com/2313-7673/10/8/504)</sup> SMAFR（2024），加入了觅食风险机制，<sup>[17](https://scope-journal.com/assets/uploads/doc/66bd8-1147-1165.202410236.pdf)</sup> mSMACLS（2025），一种变异混沌局部搜索版本，<sup>[18](https://doi.org/10.1051/ro/2025138)</sup> 以及QCSMA（2026），加入拟共轭搜索机制，并在IEEE CEC2017和CEC2021上与23种算法进行了验证。<sup>[19](https://doi.org/10.1007/s11518-025-5716-2)</sup>

## References

1. [Shimin Li and colleagues (2020). Slime mould algorithm: A new method for stochastic optimization. Future Generation Computer Systems.](https://doi.org/10.1016/j.future.2020.03.055)
2. [Advances in Slime Mould Algorithm: A Comprehensive Survey (Biomimetics, 2024; also MDPI Biomimetics 9(1):31)](https://pmc.ncbi.nlm.nih.gov/articles/PMC10813181/)
3. [Slime mould algorithm: A new method for stochastic optimization (Future Generation Computer Systems, journal pre-proof, doi:10.1016/j.future.2020.03.055)](https://research-repository.griffith.edu.au/server/api/core/bitstreams/69127d61-2b71-4c50-afb6-9e4f2e4c782b/content)
4. [Atsushi Tero, Ryo Kobayashi, Toshiyuki Nakagaki (2006). A mathematical model for adaptive transport network in path finding by true slime mold. Journal of Theoretical Biology.](https://doi.org/10.1016/j.jtbi.2006.07.015)
5. [An Enhanced Slime Mould Algorithm Based on Best–Worst Management for Numerical Optimization Problems (BWSMA, Biomimetics, 2025)](https://www.mdpi.com/2313-7673/10/8/504)
6. [Toshiyuki Nakagaki, Hiroyasu Yamada, Ágota Tóth (2000). Maze-solving by an amoeboid organism. Nature.](https://doi.org/10.1038/35035159)
7. [Atsushi Tero, Ryo Kobayashi, Toshiyuki Nakagaki (2006). Physarum solver: A biologically inspired method of road-network navigation. Physica A Statistical Mechanics and its Applications.](https://doi.org/10.1016/j.physa.2006.01.053)
8. [Anthony Brabazon, Seán McGarraghy (2020). Slime mould foraging: an inspiration for algorithmic design. International Journal of Innovative Computing and Applications.](https://doi.org/10.1504/ijica.2020.105316)
9. [Jiao Hu and colleagues (2021). Dispersed foraging slime mould algorithm: Continuous and binary variants for global optimization and wrapper-based feature selection. Knowledge-Based Systems.](https://doi.org/10.1016/j.knosys.2021.107761)
10. [Xinru Li and colleagues (2023). Advanced slime mould algorithm incorporating differential evolution and Powell mechanism for engineering design. iScience.](https://doi.org/10.1016/j.isci.2023.107736)
11. [Xiaoyi Zhang, Qixuan Liu, Xinyao Bai (2023). Improved slime mould algorithm based on hybrid strategy optimization of Cauchy mutation and simulated annealing. PLoS ONE.](https://doi.org/10.1371/journal.pone.0280512)
12. [Punishment: A new operator to control selection pressure and improve the efficiency of the slime mold algorithm (Advanced Biomedical Research)](https://abmir.yazd.ac.ir/article_3793.html?lang=en)
13. [Chaotic enhanced leader slime mold algorithm for dome structures with frequency constraints (Scientific Reports, 2025)](https://www.nature.com/articles/s41598-025-17346-x)
14. [Chaotic slime mould optimization algorithm for global optimization (Artificial Intelligence Review)](https://link.springer.com/article/10.1007/s10462-021-10100-5)
15. [An efficient weighted slime mould algorithm for engineering optimization (CCHSMA, Journal of Big Data, 2024)](https://link.springer.com/article/10.1186/s40537-024-01000-w)
16. [Metaheuristics, the metaphor exposed (Sörensen)](https://www.cs.ubc.ca/~hutter/EARG.shtml/stack/2013_Sorensen_MetaheuristicsTheMetaphorExposed.pdf)
17. [Slime Mould Algorithm with Foraging Risk (SMAFR, Scope, June 2024)](https://scope-journal.com/assets/uploads/doc/66bd8-1147-1165.202410236.pdf)
18. [Adel Got and colleagues (2025). Slime Mould Algorithm-based mutated Chaotic Local Search for global optimization and engineering applications. RAIRO - Operations Research.](https://doi.org/10.1051/ro/2025138)
19. [Qian Qian and colleagues (2026). An Enhanced Slime Mould Algorithm Based on Quasi-conjugate Search Mechanism. Journal of Systems Science and Systems Engineering.](https://doi.org/10.1007/s11518-025-5716-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/slime-mould-algorithm

English original: https://www.edgepedia.org/slime-mould-algorithm
