# 化学反应优化

化学反应优化（Chemical reaction optimization，CRO）是一种基于种群的元启发式（一种通用问题求解搜索算法框架，不针对特定问题），它模拟化学反应中分子间的相互作用以达到低能稳定态，并为组合优化与连续优化问题输出所找到的最优解及其目标函数值。<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup> 种群通过四个基本反应算子演化。CRO 由阿尔伯特·Y. S. 林（Albert Y. S. Lam）和维克多·O. K. 李（Victor O. K. Li）提出，属于更广泛的自然启发元启发式家族，与遗传算法和粒子群优化并列。<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup>

| 关键事实 | 详情 |
|---|---|
| 它是什么 | 基于种群的元启发式，模拟分子反应趋向低能稳定态<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup> |
| 提出者 | 阿尔伯特·Y. S. 林（Albert Y. S. Lam）和维克多·O. K. 李（Victor O. K. Li），《IEEE 进化计算汇刊》（IEEE Transactions on Evolutionary Computation），2010，第 14 卷，第 381-399 页<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup><sup> • </sup><sup>[2](https://doi.org/10.1109/tevc.2009.2033580)</sup> |
| 核心算子 | 撞墙无效碰撞、分解、分子间无效碰撞、合成<sup>[3](https://arxiv.org/pdf/1502.00194)</sup> |
| 能量记账 | \( (PE_{\omega_i}(t) + KE_{\omega_i}(t)) + buffer(t) = C \)，其中 \( C \) 为常数<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> |
| 典型参数 | 八个：iniPopSize、iniKE、iniBuffer、CollRate、LossRate、DecThres、SynThres、StepSize<sup>[5](https://doi.org/10.48550/arxiv.1507.02492)</sup> |
| 收敛性保证 | 建模为有限吸收马尔可夫链，当时间趋于无穷时以任意接近 1 的概率收敛到全局最优解<sup>[6](https://doi.org/10.1109/tevc.2012.2227973)</sup> |
| 典型应用 | 二次分配、项目调度、信道分配、神经网络训练<sup>[5](https://doi.org/10.48550/arxiv.1507.02492)</sup> |

## 工作原理

这一隐喻来自化学反应的微观景象：具有过多能量的不稳定分子通过一系列基本反应相互作用，直到转化为能量最低的稳定态。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> CRO 是一种种群规模可变的元启发式，模拟分子状态跃迁与分子间相互作用，并设置一个中央能量缓冲区以实现能量守恒。<sup>[7](https://arxiv.org/pdf/1502.00193)</sup>

四种基本反应分担搜索任务。撞墙无效碰撞和分子间无效碰撞对应于局部搜索（开发），而分解与合成负责全局搜索（探索）；当分子满足某一准则时，就会发生分解。<sup>[3](https://arxiv.org/pdf/1502.00194)</sup> 运行过程中种群规模会发生变化。<sup>[7](https://arxiv.org/pdf/1502.00193)</sup> 能量在全局意义上守恒：中央缓冲区加上所有分子的势能与动能之和等于常数 \( C \)，如式（13）所示：\( buffer(t) + \sum_i (PE_{\omega_i}(t) + KE_{\omega_i}(t)) = C \)。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> 等价地，\( E_{\mathrm{total}} = E_{\mathrm{buffer}} + PE_{\omega_1} + KE_{\omega_1} + \cdots + PE_{\omega_n} + KE_{\omega_n} \)。<sup>[5](https://doi.org/10.48550/arxiv.1507.02492)</sup> 每次基本反应后都会检查守恒条件；若违反，则撤销该变化，并记录任何新的最优解。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup>

## 实施方式

实践者用一个短循环实现 CRO。首先，为 PopSize、KELossRate、MoleColl、InitialKE、\( \alpha \)、\( \beta \) 以及针对具体问题的设置分配参数值，并初始化分子种群，将每个分子的初始动能设为 InitialKE。<sup>[8](https://bogaotory.github.io/static/publications/li2012ispa.pdf)</sup> 在每次迭代中，通过将随机数 \( h \in [0, 1] \) 与 MoleColl 比较，决定执行单分子反应还是分子间反应。<sup>[8](https://bogaotory.github.io/static/publications/li2012ispa.pdf)</sup> 应用所选的基本反应，更新能量记账，并重复该循环，直到满足停止准则。

提出者根据其实现推导出的建议参数值为 PopSize = 10、KELossRate = 0.2、MoleColl = 0.2、InitialKE = 1000、\( \alpha = 500 \)、\( \beta = 10 \)、buffer = 0，不过这些值依赖于具体问题；\( \alpha \) 和 \( \beta \) 控制多样化程度，并平衡强化（开发）与多样化（探索）。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> 典型的停止准则包括：使用的最大 CPU 时间、执行的最大函数评估次数、获得小于预定义阈值的目标函数值，或在没有改进的情况下执行的最大迭代次数。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> 已发表的伪代码列出的参数集为 PopSize、InitialKE、StepSize、buffer、KELossRate、On-wallColl、DecThres 和 SynThres。<sup>[9](https://pdfs.semanticscholar.org/08b6/38ca9c7502584698d4b1d7ef9e9df95b60e4.pdf)</sup>

## 起源

CRO 由阿尔伯特·Y. S. 林（Albert Y. S. Lam）和维克多·O. K. 李（Victor O. K. Li）提出，二人当时均任职于[香港大学](https://www.edgepedia.org/zh/university-of-hong-kong)（University of Hong Kong），论文为《受化学反应启发的优化元启发式》（Chemical-Reaction-Inspired Metaheuristic for Optimization），发表于《IEEE 进化计算汇刊》（IEEE Transactions on Evolutionary Computation），第 14 卷，第 3 期，第 381-399 页，2010 年出版（最早于 2009 年 12 月 16 日在线发布）。<sup>[18](https://researchr.org/publication/LamL10-0)</sup><sup> • </sup><sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup><sup> • </sup><sup>[2](https://doi.org/10.1109/tevc.2009.2033580)</sup> 同一批作者于 2012 年在《模因计算》（Memetic Computing）上发表了详细教程《化学反应优化：教程》（Chemical Reaction Optimization: a tutorial）（第 4 卷，第 3-17 页）。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> CRO 属于自然启发谱系，该谱系包括从自然进化过程发展而来的遗传算法，以及受鸟群或鱼群社会行为启发的粒子群优化。<sup>[9](https://pdfs.semanticscholar.org/08b6/38ca9c7502584698d4b1d7ef9e9df95b60e4.pdf)</sup> 在理论上，通过将 CRO 建模为有限吸收[马尔可夫链](https://www.edgepedia.org/zh/markov-chain)，当时间趋于无穷时，它以任意接近 1 的概率收敛到全局最优解，而收敛性由基本反应和系统总能量共同决定；在此分析之前，所有关于 CRO 的研究都是经验性的。<sup>[6](https://doi.org/10.1109/tevc.2012.2227973)</sup>

## 变体

CRO 的原始版本是为离散优化问题设计的。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5552861/)</sup> 对于连续问题，林、李与余（Yu）于 2011 年在《IEEE 进化计算汇刊》上提出了实数编码化学反应优化（Real-Coded Chemical Reaction Optimization，RCCRO），引入了三项修改：解的表示、邻域算子和边界约束处理。<sup>[11](https://doi.org/10.1109/tevc.2011.2161091)</sup><sup> • </sup><sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5552861/)</sup>

其他变体改变的是算子而非编码。自适应 CRO（adaptive CRO，ACRO）操纵八个典型参数中的六个，并把参数总数从八个减少到三个，同时加入自适应机制；所需额外时间不到典型 CRO 计算时间的 5%，ACRO 比典型 CRO 收敛更快，能防止早熟收敛，并在 24 个 30 维基准函数中的 14 个上产生最佳结果。<sup>[5](https://doi.org/10.48550/arxiv.1507.02492)</sup> 正交 CRO（orthogonal CRO，OCRO）使用准正交试验设计（quasi-orthogonal experimental design，QOX）作为全局搜索算子，并在 23 个基准函数上与 CRO、ABC 和 OXDE 的变体进行了测试。<sup>[12](https://dl.acm.org/doi/10.1016/j.eswa.2014.11.045)</sup> 综述文献还列出了基于对立的 CRO，以及 CRO 与差分进化、粒子群优化的混合算法，<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5552861/)</sup> 包括 HP-CRO、一种 PSO-CRO 混合算法，以及一种混合变异变体（MCRO）。<sup>[9](https://pdfs.semanticscholar.org/08b6/38ca9c7502584698d4b1d7ef9e9df95b60e4.pdf)</sup>

## 应用

CRO 已被应用于离散和连续问题类别。林和李将其用于二次分配问题（Quadratic Assignment Problem，QAP）、资源约束项目调度问题（Resource-Constraint Project Scheduling Problem）和信道分配问题（Channel Assignment Problem）；徐（Xu）及其同事将其应用于网格任务调度；它还被用于认知无线电频谱分配，以及在空气污染检测中用 CRO 训练的神经网络（CROANN）进行传感器部署。<sup>[5](https://doi.org/10.48550/arxiv.1507.02492)</sup><sup> • </sup><sup>[7](https://arxiv.org/pdf/1502.00193)</sup> 离散应用进一步包括传感器部署问题（Sensor Deployment Problem）和机组组合问题（Unit Commitment Problem）。<sup>[13](https://ar5iv.labs.arxiv.org/html/1502.00197)</sup> 在连续问题方面，RCCRO 已被应用于训练人工神经网络、最优潮流问题（Optimal Power Flow problem）和认知频谱分配问题（Cognitive Spectrum Allocation problem）。<sup>[13](https://ar5iv.labs.arxiv.org/html/1502.00197)</sup> 提出者报告称，该方法在二次分配问题、神经网络训练和多峰连续问题上取得了成功应用，仿真结果表明其性能优于其他现有优化算法。<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup>

## 局限与替代方案

首次提出 CRO 的论文在三个 NP 难组合优化问题上测试了该算法，其中两个是传统基准问题，一个是现实世界问题；在某些情况下，它优于现有的成功元启发式，并在现实世界问题上取得了最佳性能。<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup> 在与遗传算法就两个非线性约束测试函数进行直接对比时（popsize = 100、kelossrate = 0.001、k = 500），CRO 在测试函数 2 上达到 124.93，而 GA 为 123.133。<sup>[14](https://doi.org/10.5120/18768-0069)</sup>

参数行为是记录最充分的局限。一项实验研究报告称，CRO 的性能依赖于参数（迭代次数、popsize、ke lossrate），ke lossrate 不影响整体性能，并且在较低 popsize 下观察到更高的一致性。<sup>[14](https://doi.org/10.5120/18768-0069)</sup> 同一研究的作者发现，随着种群规模增加，函数值变得更稳定，在其两个非线性测试函数上最受偏好的 Pop-Size 为 10000，<sup>[15](https://www.ijaet.org/media/24I26-IJAET0826494-v8-iss2-pp219-232.pdf)</sup> 而提出者建议 PopSize = 10，且依赖于具体问题，<sup>[4](https://link.springer.com/article/10.1007/s12293-012-0075-1)</sup> 并且在几乎所有测试参数下，CRO 的随机行为都很明显。<sup>[15](https://www.ijaet.org/media/24I26-IJAET0826494-v8-iss2-pp219-232.pdf)</sup> 实践者的基准测试还发现，CRO 可能陷入停滞，证据是收敛曲线图中有长时间平坦段，不过它总体上表现出不错的结果。<sup>[16](https://www.mql5.com/en/articles/15080)</sup>

在方法论上，肯尼斯·索伦森（Kenneth Sorensen）在《元启发式算法：隐喻的暴露》（Metaheuristics: the metaphor exposed）（《国际运筹学研究汇刊》（International Transactions in Operational Research），2013）中主张，大多数基于新隐喻的“新颖”元启发式让该领域“后退而非前进”，并且，解构一种方法，再结合对元启发式各组成部分和参数的统计检验，可以揭示真正对性能有贡献的组成部分；他还指出，这类论文结论的统计有效性往往值得怀疑。<sup>[17](https://www.cs.ubc.ca/%7Ehutter/EARG.shtml/stack/2013_Sorensen_MetaheuristicsTheMetaphorExposed.pdf)</sup> 应用到 CRO 上，这一批评质疑：除了重新组合遗传算法和模拟退火中已有的种群搜索、局部搜索和接受机制之外，反应隐喻究竟增加了多少东西。在新颖性方面，没有免费午餐定理以谦逊的方式框定这一主张：CRO 在平均意义上必然与其他元启发式表现相当，但当它与合适的问题类型匹配时，可以胜过所有其他元启发式。<sup>[1](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)</sup>

## References

1. [Chemical-Reaction-Inspired Metaheuristic for Optimization (Lam & Li, IEEE Transactions on Evolutionary Computation)](https://www.semanticscholar.org/paper/Chemical-Reaction-Inspired-Metaheuristic-for-Lam-Li/2ba5927b4248d89e788cd3fb974d156bc4188491)
2. [Albert Y S Lam, Victor O K Li (2009). Chemical-Reaction-Inspired Metaheuristic for Optimization. IEEE Transactions on Evolutionary Computation.](https://doi.org/10.1109/tevc.2009.2033580)
3. [CRO tutorial continuation (arXiv:1502.00194)](https://arxiv.org/pdf/1502.00194)
4. [Chemical Reaction Optimization: a tutorial (Memetic Computing, 2012, 4:3-17)](https://link.springer.com/article/10.1007/s12293-012-0075-1)
5. [Adaptive Chemical Reaction Optimization for Global Numerical Optimization (ACRO)](https://doi.org/10.48550/arxiv.1507.02492)
6. [On the Convergence of Chemical Reaction Optimization for Combinatorial Optimization](https://doi.org/10.1109/tevc.2012.2227973)
7. [CRO tutorial part (arXiv:1502.00193, K. Li)](https://arxiv.org/pdf/1502.00193)
8. [Chemical Reaction Optimization for Heterogeneous Computing Environments (ISPA 2012 conference PDF)](https://bogaotory.github.io/static/publications/li2012ispa.pdf)
9. [Hybrid mutation chemical reaction optimization (MCRO) research article](https://pdfs.semanticscholar.org/08b6/38ca9c7502584698d4b1d7ef9e9df95b60e4.pdf)
10. [Nature-Inspired Chemical Reaction Optimisation Algorithms](https://pmc.ncbi.nlm.nih.gov/articles/PMC5552861/)
11. [Albert Y. S. Lam, Victor O. K. Li, James J. Q. Yu (2011). Real-Coded Chemical Reaction Optimization. IEEE Transactions on Evolutionary Computation.](https://doi.org/10.1109/tevc.2011.2161091)
12. [Orthogonal chemical reaction optimization algorithm for global numerical optimization problems | Expert Systems with Applications](https://dl.acm.org/doi/10.1016/j.eswa.2014.11.045)
13. [An Inter-molecular Adaptive Collision Scheme for Chemical Reaction Optimization](https://ar5iv.labs.arxiv.org/html/1502.00197)
14. [Comparative Study of Performance of Chemical Reaction Optimization with Genetic Algorithm (GA)](https://doi.org/10.5120/18768-0069)
15. [IJAET study of CRO parameter effects on nonlinear test functions](https://www.ijaet.org/media/24I26-IJAET0826494-v8-iss2-pp219-232.pdf)
16. [Chemical reaction optimization (CRO) algorithm (Part II): Assembling and results - MQL5](https://www.mql5.com/en/articles/15080)
17. [Metaheuristics, the metaphor exposed (K. Sorensen, Intl. Trans. in Op. Res., 2013)](https://www.cs.ubc.ca/%7Ehutter/EARG.shtml/stack/2013_Sorensen_MetaheuristicsTheMetaphorExposed.pdf)
18. [LamL10 0 (researchr.org)](https://researchr.org/publication/LamL10-0)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 25, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Physics- and human-inspired metaheuristics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/chemical-reaction-optimization

English original: https://www.edgepedia.org/chemical-reaction-optimization
