# 滚动时域优化

滚动时域优化是一种决策方法：在一个移动的时间窗口上反复求解优化模型，只执行当期的决策，然后在新信息到达时从新状态重新求解。当全时域模型规模过大而无法求解，或预测成本高昂且不确定时，就会采用这种方法；它为调度、生产计划、能源调度和控制生成一系列可执行的决策，而非单一固定计划。<sup>[1](https://optimization-online.org/2020/05/7809/)</sup><sup> • </sup><sup>[2](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/rolling_horizon/)</sup>

| 关键事实 | 详情 |
|---|---|
| 产出什么 | 一系列可执行的首期决策，每次重解产生一个，拼接成完整计划<sup>[2](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/rolling_horizon/)</sup> |
| 核心机制 | 在预测时域上求解，按决策时域向前推移，将滑出窗口的变量固定<sup>[1](https://optimization-online.org/2020/05/7809/)</sup> |
| 关键参数 | 前瞻阶段数 \( \tau \)，它截断时域，在计算成本与策略质量之间权衡<sup>[3](https://link.springer.com/article/10.1007/s10479-026-07289-5)</sup> |
| 最坏情况质量 | 对某些问题类别，与完整多阶段解相比，最优性差距可以任意大<sup>[4](https://doi.org/10.1016/j.ejor.2017.12.004)</sup> |
| 实际质量 | 在大型真实尾号分配实例上，解与全局最优的差距至多为几个百分点<sup>[1](https://optimization-online.org/2020/05/7809/)</sup> |
| 主要失效模式 | 短视导致的储能耗尽、计划神经质、对时域长度的敏感性<sup>[5](https://docs.pypsa.org/latest/examples/rolling-horizon/)</sup><sup> • </sup><sup>[6](https://onlinelibrary.wiley.com/doi/10.1111/j.1540-5915.1988.tb00259.x)</sup> |
| 控制领域的对应物 | 同一思想在控制领域被研究为模型预测控制，也称滚动时域控制<sup>[7](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)</sup> |

## 工作原理

每一步，决策者观察系统状态 \( s_{t} \)，在截断的时域上求解一个较小的前瞻问题 \( P_{t}(s_{t}) \)，只执行当期决策 \( x_{t} \)，向前滚动一个周期，并从新状态 \( s_{t+1} \) 重复。<sup>[3](https://link.springer.com/article/10.1007/s10479-026-07289-5)</sup> 前瞻模型将时域从 \( (t, T) \) 缩减为 \( (t, t+\tau-1) \)，其中 τ 是前瞻阶段数；选择 τ 需要在计算成本与策略质量之间取得平衡。<sup>[3](https://link.springer.com/article/10.1007/s10479-026-07289-5)</sup>

在用于大型时间索引模型的分解形式中，问题在预测时域上建模、求解，然后按较短的决策时域向前推移；所有滑出预测时域的变量在后续迭代中被视为固定。基本算法求解 \( T - \mu + 1 \) 个组合的 μ 周期问题，每推进一个周期就固定该周期的解。<sup>[1](https://optimization-online.org/2020/05/7809/)</sup> 在调度实现中，每次迭代求解一个覆盖 H 个操作的规划窗口的子问题，但只执行前 S 个操作，剩余的 \( H - S \) 个操作推迟到重新规划时处理。<sup>[8](https://arxiv.org/pdf/2502.15791)</sup>

截断会产生时域末端效应：模型看不到窗口之外的情况，可能做出在窗口内看起来不错但损害后续利益的早期决策。在含储能的能源系统中，短视模型会在每个窗口结束时将电池完全放电，因为它无法预见到之后风能可用性的下降。<sup>[5](https://docs.pypsa.org/latest/examples/rolling-horizon/)</sup> 向窗口模型添加终端条件是一种早期而有效的修正。<sup>[9](https://ideas.repec.org/a/inm/ormnsc/v25y1979i4p341-351.html)</sup>

## 实施方法

实践者先构建一个时间索引模型，然后选择两个参数：优化窗口（例如每次求解 48 小时）和向前推移量（例如 24 小时），且向前推移量必须小于或等于优化窗口。每个窗口解中只有向前推移部分被存储，而在向前推移时段之外保留缓冲可以防止时域末端的储能耗尽。窗口数量为 \( (\text{total\_time\_length} + \text{move\_forward} - \text{optimization\_window}) / \text{move\_forward} \)。<sup>[2](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/rolling_horizon/)</sup>

然后循环为：求解窗口模型，执行首批决策，观察实现值，更新数据，重新求解。PyPSA 的 `optimize_with_rolling_horizon(horizon=24, overlap=0)` 仅使用截至当前时域末端可用的信息依次求解较短的窗口，模拟有限预见，并与完美预见基准进行比较。<sup>[5](https://docs.pypsa.org/latest/examples/rolling-horizon/)</sup> JuMP 实现可以用 ParametricOptInterface.jl 在窗口之间原地更新参数，避免重建模型。<sup>[2](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/rolling_horizon/)</sup>

## 起源

不存在单一的引入性论文；该方法从一系列相关工作演变而来。[弗兰科·莫迪利亚尼](https://www.edgepedia.org/zh/franco-modigliani)（Franco Modigliani）和弗朗茨·E. 霍恩（Franz E. Hohn）1955 年发表于《[计量经济学](https://www.edgepedia.org/zh/econometrica)》（Econometrica）的关于跨期生产计划的论文表明，在库存持有成本相对于边际生产成本较大等条件下，最优计划可分解为相继的区间，各区间的时间表仅取决于该区间内的需求——这为规划时域推理奠定了基础。<sup>[10](https://doi.org/10.2307/1905580)</sup> 加里·D. 埃彭（Gary D. Eppen）、F. J. 古尔德（F. J. Gould）和 B. 彼得·帕希吉安（B. Peter Pashigian）于 1969 年将规划时域定理推广到动态批量模型。<sup>[11](https://doi.org/10.1287/mnsc.15.5.268)</sup>

实验传统始于肯尼斯·R. 贝克（Kenneth R. Baker）1977 年发表于《决策科学》（Decision Sciences）的关于生产计划中滚动时间表的研究<sup>[12](https://doi.org/10.1111/j.1540-5915.1977.tb01065.x)</sup>，随后是贝克与大卫·W. 彼得森（David W. Peterson）1979 年发表于《管理科学》（Management Science）的分析框架。<sup>[9](https://ideas.repec.org/a/inm/ormnsc/v25y1979i4p341-351.html)</sup> 苏雷什·钱德（Suresh Chand）于 1983 年为具有嵌套时间表的串联设施库存模型开发了滚动时域程序。<sup>[13](https://doi.org/10.1287/mnsc.29.2.237)</sup> 詹姆斯·C. 比恩（James C. Bean）和罗伯特·L. 史密斯（Robert L. Smith）于 1984 年给出了规划时域存在的一般条件<sup>[14](https://doi.org/10.1287/moor.9.3.391)</sup>，钱德、苏雷什·P. 塞西（Suresh P. Sethi）和让-玛丽·普罗特（Jean-Marie Proth）于 1990 年证明了滚动时域方法对平稳非折现批量模型给出精确解。<sup>[15](https://doi.org/10.1287/opre.38.5.884)</sup> 形式化理论——包括时域每期被“滚动”的术语——出自苏雷什·塞西和格哈德·索尔格（Gerhard Sorger）1991 年发表于《运筹学年鉴》（Annals of Operations Research）的论文，该文将滚动时域方法的合理性归于预测未来的成本。<sup>[16](https://doi.org/10.1007/bf02283607)</sup> 钱德、许宁（Vernon Ning Hsu）和塞西 2002 年的分类文献目录梳理了预测、求解和滚动时域方面的文献。<sup>[17](https://doi.org/10.1287/msom.4.1.25.287)</sup>

## 变体

该方法与松弛-固定启发式密切相关，如哈特穆特·施塔特勒（Hartmut Stadtler）2003 年关于具有内部滚动时间表和批量窗口的多级批量确定的工作。<sup>[18](https://doi.org/10.1287/opre.51.3.487.14949)</sup> 对于多阶段随机规划，滚动时域程序使情景树解变得可执行：在每个周期，此时此地的决策固定在其最优值，观察到的随机参数被采纳用于后续周期，更新后的情景树评估已执行决策的真实目标值。<sup>[19](https://onlinelibrary.wiley.com/doi/10.1111/deci.12481)</sup> 终端条件处理截断问题；在二次成本模型中，终端条件显著改善滚动时间表的性能。<sup>[9](https://ideas.repec.org/a/inm/ormnsc/v25y1979i4p341-351.html)</sup> [马歇尔·费希尔](https://www.edgepedia.org/zh/marshall-l-fisher)（Marshall Fisher）、卡玛利尼·拉姆达斯（Kamalini Ramdas）和郑玉生（Yu-Sheng Zheng）的期末库存估值（EIV）方法是多周期生产调度的一种终端估值修正。<sup>[20](https://doi.org/10.1287/mnsc.47.5.679.10485)</sup> 卢卡斯·格隆布（Lukas Glomb）、弗劳克·利尔斯（Frauke Liers）和弗洛里安·勒泽尔（Florian Rösel）2021 年的调整滚动时域分解强制施加 \( (1+\varepsilon) \)-最优性约束，为解提供明确的质量保证。<sup>[21](https://doi.org/10.1016/j.ejor.2021.07.043)</sup> L-RHO 由李思睿（Sirui Li）、欧阳文彬（Wenbin Ouyang）、马一宁（Yining Ma）和吴佳俊（Cathy Wu）在 ICLR 2025 上提出，被描述为第一个用于组合优化问题的学习引导滚动时域优化框架：神经网络固定那些事后看来无需重新优化的重叠变量，缩小子问题，在柔性作业车间调度问题上将滚动时域优化加速高达 54%，同时提升解的质量。<sup>[8](https://arxiv.org/pdf/2502.15791)</sup>

控制领域将同一递归研究为模型预测控制（MPC），也称滚动时域控制，因为只施加优化轨迹的第一个值，预测和优化在每个时刻重复进行。<sup>[7](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)</sup> MPC 的基础奠定于 1970 年代末：模型预测启发式控制（MPHC）被提出，采用脉冲响应模型、滚动时域和输入/输出约束；而动态矩阵控制（DMC）则在壳牌石油（Shell Oil）开发并应用。<sup>[7](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)</sup>

## 应用

已记录的应用包括批量确定与生产计划<sup>[1](https://optimization-online.org/2020/05/7809/)</sup>、滚动规划时域下的主生产计划稳定性<sup>[6](https://onlinelibrary.wiley.com/doi/10.1111/j.1540-5915.1988.tb00259.x)</sup>、飞机尾号分配<sup>[1](https://optimization-online.org/2020/05/7809/)</sup>、柔性作业车间调度<sup>[8](https://arxiv.org/pdf/2502.15791)</sup>、水-火电发电计划（其中决策确定多少水用于发电以及产生多少火电）<sup>[3](https://link.springer.com/article/10.1007/s10479-026-07289-5)</sup>、微电网能源供需规划<sup>[22](https://doi.org/10.1016/j.apenergy.2015.05.090)</sup>、分布式能源资源网络<sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC11570308/)</sup>、工业能源系统<sup>[24](https://www.mdpi.com/1996-1073/18/15/3977)</sup>，以及中断和需求不确定性下的供应链分销网络设计。<sup>[19](https://onlinelibrary.wiley.com/doi/10.1111/deci.12481)</sup> 美国多家区域电力系统运营商使用 MPC——同一思想的控制形式——来结算实时电力市场。<sup>[25](https://www.cambridge.org/core/journals/environmental-data-science/article/robust-machinelearned-algorithms-for-efficient-grid-operation/0E29B936A8FEE565B169F70372B7F9DE)</sup>

## 局限与替代方案

短视是最明显的失效模式：在有限预见下，储能资产在每个窗口结束时被耗尽，因为模型无法预见到之后的变化，如风能可用性的下降；重叠时域——预测更新周期短于时域长度——可减少这种倾向。<sup>[5](https://docs.pypsa.org/latest/examples/rolling-horizon/)</sup> 神经质——计划投产量和生产量在迭代间频繁变化——是滚动时域程序公认的不稳定性；主生产计划的仿真研究考察了冻结方法、时间表冻结比例和规划时域长度作为稳定性杠杆的作用。<sup>[6](https://onlinelibrary.wiley.com/doi/10.1111/j.1540-5915.1988.tb00259.x)</sup> 在滚动时域环境中测试的机会约束生产计划模型显著减少了计划投产量的变化，同时改善了成本和服务水平表现。<sup>[26](https://doi.org/10.1080/00207543.2016.1165356)</sup>

重新调度的频率本身可能适得其反：在高资源争用下，较低频率的策略在作业完成和准时比例方面优于较高频率的策略，在某些实验中几乎逆转了名义参数下得到的结果。<sup>[27](https://www.math.uwaterloo.ca/~rfukasaw/stevenson_reschedule.pdf)</sup> 迭代之间固定的等距间隔往往难以适配不确定参数，例如当光伏不确定性仅限于白天时。<sup>[28](https://arxiv.org/abs/2311.11307)</sup>

性能通过相对于全时域解的最优性差距、每次重解的计算成本以及迭代间的决策稳定性来衡量。贝尔塔齐（Bertazzi）和马焦尼（Maggioni）表明，对一类多阶段随机规划，最坏情况下差距可以任意大<sup>[4](https://doi.org/10.1016/j.ejor.2017.12.004)</sup>；从折现无限时域替代模型导出的差距界为选择 \( \tau \) 以达到期望质量提供了明确指导。<sup>[3](https://link.springer.com/article/10.1007/s10479-026-07289-5)</sup> 与固定时域多阶段随机规划相比，滚动时域以有保证的多阶段策略为代价，换取了可处理性和适应性；计算上难以处理的多阶段模型通常被两阶段随机规划或可调鲁棒优化的滚动时域评估所替代。<sup>[29](https://ideas.repec.org/a/eee/proeco/v202y2018icp81-96.html)</sup> 一种直接的序贯方法在其假设下理论上可能更好，但滚动时域算法在实践中通常给出更好的结果，因为它利用后续周期的知识来固定末端状态。<sup>[1](https://optimization-online.org/2020/05/7809/)</sup>

## References

1. [A rolling-horizon approach for multi-period optimization (Glomb, Liers & Rösel; author preprint of the EJOR 2022 paper)](https://optimization-online.org/2020/05/7809/)
2. [Rolling horizon problems · JuMP tutorial](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/rolling_horizon/)
3. [On choosing the number of look-ahead stages in the rolling-horizon procedure for multistage stochastic programming (Annals of Operations Research)](https://link.springer.com/article/10.1007/s10479-026-07289-5)
4. [Luca Bertazzi, Francesca Maggioni (2017). A stochastic multi-stage fixed charge transportation problem: Worst-case analysis of the rolling horizon approach. European Journal of Operational Research.](https://doi.org/10.1016/j.ejor.2017.12.004)
5. [Rolling-Horizon Optimization - PyPSA documentation](https://docs.pypsa.org/latest/examples/rolling-horizon/)
6. [Measuring Master Production Schedule Stability Under Rolling Planning Horizons (Sridharan, Berry & Udayabhanu, Decision Sciences, 1988)](https://onlinelibrary.wiley.com/doi/10.1111/j.1540-5915.1988.tb00259.x)
7. [Review on model predictive control: an engineering perspective (International Journal of Advanced Manufacturing Technology)](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)
8. [Learning-Guided Rolling Horizon Optimization for Long-Horizon Flexible Job-Shop Scheduling (L-RHO, ICLR 2025)](https://arxiv.org/pdf/2502.15791)
9. [An Analytic Framework for Evaluating Rolling Schedules (Baker & Peterson, Management Science 25(4), 1979)](https://ideas.repec.org/a/inm/ormnsc/v25y1979i4p341-351.html)
10. [Franco Modigliani, Franz E. Hohn (1955). Production Planning Over Time and the Nature of the Expectation and Planning Horizon. Econometrica.](https://doi.org/10.2307/1905580)
11. [Gary D. Eppen, F. J. Gould, B. Peter Pashigian (1969). Extensions of the Planning Horizon Theorem in the Dynamic Lot Size Model. Management Science.](https://doi.org/10.1287/mnsc.15.5.268)
12. [Kenneth R. Baker (1977). AN EXPERIMENTAL STUDY OF THE EFFECTIVENESS OF ROLLING SCHEDULES IN PRODUCTION PLANNING. Decision Sciences.](https://doi.org/10.1111/j.1540-5915.1977.tb01065.x)
13. [Suresh Chand (1983). Rolling Horizon Procedures for the Facilities in Series Inventory Model with Nested Schedules. Management Science.](https://doi.org/10.1287/mnsc.29.2.237)
14. [James C. Bean, Robert L. Smith (1984). Conditions for the Existence of Planning Horizons. Mathematics of Operations Research.](https://doi.org/10.1287/moor.9.3.391)
15. [Suresh Chand, Suresh P. Sethi, Jean-Marie Proth (1990). Existence of Forecast Horizons in Undiscounted Discrete-Time Lot Size Models. Operations Research.](https://doi.org/10.1287/opre.38.5.884)
16. [Suresh Sethi, Gerhard Sorger (1991). A theory of rolling horizon decision making. Annals of Operations Research.](https://doi.org/10.1007/bf02283607)
17. [Suresh Chand, Vernon Ning Hsu, Suresh Sethi (2002). Forecast, Solution, and Rolling Horizons in Operations Management Problems: A Classified Bibliography. Manufacturing & Service Operations Management.](https://doi.org/10.1287/msom.4.1.25.287)
18. [Hartmut Stadtler (2003). Multilevel Lot Sizing with Setup Times and Multiple Constrained Resources: Internally Rolling Schedules with Lot-Sizing Windows. Operations Research.](https://doi.org/10.1287/opre.51.3.487.14949)
19. [Data-Driven Rolling Horizon Approach for Dynamic Design of Supply Chain Distribution Networks under Disruption and Demand Uncertainty (Decision Sciences)](https://onlinelibrary.wiley.com/doi/10.1111/deci.12481)
20. [Marshall Fisher, Kamalini Ramdas, Yu-Sheng Zheng (2001). Ending Inventory Valuation in Multiperiod Production Scheduling. Management Science.](https://doi.org/10.1287/mnsc.47.5.679.10485)
21. [Lukas Glomb, Frauke Liers, Florian Rösel (2021). A rolling-horizon approach for multi-period optimization. European Journal of Operational Research.](https://doi.org/10.1016/j.ejor.2021.07.043)
22. [Javier Silvente and colleagues (2015). A rolling horizon optimization framework for the simultaneous energy supply and demand planning in microgrids. Applied Energy.](https://doi.org/10.1016/j.apenergy.2015.05.090)
23. [A production-inventory model to optimize the operation of distributed energy resource networks in a rolling horizon (2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11570308/)
24. [Energy Management of Industrial Energy Systems via Rolling Horizon and Hybrid Optimization: A Real-Plant Application in Germany (Energies, 2025)](https://www.mdpi.com/1996-1073/18/15/3977)
25. [Robust machine-learned algorithms for efficient grid operation (Environmental Data Science, Cambridge Core)](https://www.cambridge.org/core/journals/environmental-data-science/article/robust-machinelearned-algorithms-for-efficient-grid-operation/0E29B936A8FEE565B169F70372B7F9DE)
26. [Chance-constrained formulations in rolling horizon production planning: an experimental study](https://doi.org/10.1080/00207543.2016.1165356)
27. [Evaluating periodic rescheduling policies using a rolling horizon framework in an industrial-scale multipurpose plant](https://www.math.uwaterloo.ca/~rfukasaw/stevenson_reschedule.pdf)
28. [Threshold-Based Algorithms for an Online Rolling Horizon Framework Under Uncertainty - With an Application to Energy Management (arXiv, November 2023)](https://arxiv.org/abs/2311.11307)
29. [Adaptation and approximate strategies for solving the lot-sizing and scheduling problem under multistage demand uncertainty (Curcio, Amorim, Zhang & Almada-Lobo, IJPE 2018)](https://ideas.repec.org/a/eee/proeco/v202y2018icp81-96.html)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/rolling-horizon-optimization

English original: https://www.edgepedia.org/rolling-horizon-optimization
