# 对偶动态规划

对偶动态规划（DDP）是一种多阶段随机优化算法，它用分段线性的 Benders 割（即用线性不等式逼近问题的未来成本函数）来近似未来成本，使水火电系统运行等大规模规划问题变得可解。这种求解方法被称为随机对偶动态规划（SDDP）。<sup>[1](https://doi.org/10.1016/0142-0615%2889%2990025-2)</sup> DDP 是嵌套 Benders 分解的一种基于采样的变体，要求随机数据逐阶段独立，并将问题分解为若干独立求解的小型线性规划，因此无需对状态空间进行离散化。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup><sup> • </sup><sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup>

| 关键事实 | 详情 | 来源 |
|---|---|---|
| 问题类别 | 多阶段随机优化；水火电调度是其最初的应用场景 | <sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup> |
| 核心近似 | Benders 割从下方构建每个阶段期望未来成本的多面体近似 | <sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup><sup> • </sup><sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup> |
| 输出 | 一个策略（即割近似）、一个确定性下界，以及一个蒙特卡洛上界 | <sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup><sup> • </sup><sup>[5](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)</sup> |
| 每次迭代的工作量 | 一次前向遍历和一次后向遍历；一次后向遍历求解 \( 1 + N_{2} + \cdots + N_{T} \) 个线性规划 | <sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup><sup> • </sup><sup>[6](https://bpb-us-e1.wpmucdn.com/sites.gatech.edu/dist/4/1470/files/2021/03/EJOR-2011.pdf)</sup> |
| 收敛性 | 以概率一在有限次迭代后收敛到样本平均近似最优解，由 Philpott 和 Guan（2008）证明 | <sup>[7](https://doi.org/10.1016/j.orl.2008.01.013)</sup> |
| 实际规模 | 巴西 5 年模型，每座水库 200 个来水情景：串行求解耗时近 15 小时，64 核上不到 23 分钟 | <sup>[8](https://doi.org/10.1109/tpwrs.2012.2236654)</sup> |
| 割管理 | 不做筛选时，约 12 小时生成 10,000 条割；采用一级支配筛选后，策略生成速度为原来的 11 倍 | <sup>[9](https://optimization-online.org/wp-content/uploads/2012/07/3529.pdf)</sup> |

## 工作原理

DDP 通过用基于割的近似替代每个阶段的未来成本函数来求解动态规划递推——若不替代，就需要对所有情景计算嵌套期望。该方法将 Kelley 割平面算法应用于未来成本值函数。<sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup> 在试探状态 \( x'_{k} \) 处，由阶段问题的对偶解导出的割为

\[ \theta \ge \mathbb{E}\left[ V_{j}(x', \varphi) + \frac{dV}{dx'}(x' - x'_{k}) \right], \]

其中 \( \theta \) 近似未来成本，\( V_{j} \) 是下游节点 \( j \) 的值函数。<sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup> 每条割都是真实未来成本函数的有效下界，因此所有割共同构成一个从下方建立的多面体外近似，增加割会使其更紧。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup><sup> • </sup><sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup> 由于每条割都低估未来成本，用当前割求解第一阶段问题就得到最优期望成本的一个确定性下界。<sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup><sup> • </sup><sup>[5](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)</sup>

Philpott 和 Guan 于 2008 年证明，前向/后向割生成过程在有限次迭代后以概率一收敛。<sup>[7](https://doi.org/10.1016/j.orl.2008.01.013)</sup><sup> • </sup><sup>[10](https://link.springer.com/article/10.1007/s10287-021-00411-x)</sup> Shapiro 及其同事表明，在温和条件下，经过足够多的后向和前向步骤后，前向过程以概率一给出样本平均近似（SAA）问题的最优策略；后向步骤就是对 SAA 问题应用标准的 Kelley 割平面算法。<sup>[6](https://bpb-us-e1.wpmucdn.com/sites.gatech.edu/dist/4/1470/files/2021/03/EJOR-2011.pdf)</sup>

## 具体做法

每次迭代都要在各阶段间进行一次前向遍历和一次后向遍历。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup> 前向遍历沿策略图从起点走到终点，随机地沿弧转移；在每个节点上观测随机变量的一个实现值，求解近似子问题，生成候选的传出状态变量。<sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup> 后向遍历按相反顺序走过访问过的节点，利用值函数的次梯度在每个候选传出状态处添加割；前向遍历将原始信息沿图向前推送，后向遍历将对偶信息拉回，类似于反向传播。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup><sup> • </sup><sup>[4](https://sddp.dev/dev/explanation/theory_intro/)</sup>

后向遍历是计算量大的环节，求解的线性规划数量是前向遍历的 \( N_{B} \) 倍；割共享——即对采样的来水实现值取平均，每个阶段每个状态只产生一条割——对性能至关重要。<sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup> 通常当确定性下界落入当前策略期望成本的蒙特卡洛上界的 95% 置信区间时，就宣布收敛。<sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup> 统计上界与下界之间的差距是对最优性间隙的保守估计，对于较大的问题，在合理的计算时间内可能无法将其缩小到指定精度。<sup>[5](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)</sup>

## 起源

该方法是为巴西电力系统运行而开发的，目标是用更高效的优化技术取代随机动态规划。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup> M. V. F. Pereira 和 L. M. V. G. Pinto 于 1985 年在《水资源研究》上发表的论文《多水库水电系统的随机优化：一种分解方法》，提出了基于 Benders 分解随机推广的方案，并在巴西系统的 37 座水库上做了演示。<sup>[11](https://doi.org/10.1029/wr021i006p00779)</sup><sup> • </sup><sup>[11](https://doi.org/10.1029/wr021i006p00779)</sup> Pereira 1989 年的论文首次使用了“随机对偶动态规划”这一名称<sup>[1](https://doi.org/10.1016/0142-0615%2889%2990025-2)</sup>，而 Pereira 和 Pinto 1991 年发表在《数学规划》上的论文《应用于能源规划的多阶段随机优化》给出了多阶段表述。<sup>[12](https://doi.org/10.1007/bf01582895)</sup>

该方法建立在两个前身之上：J. F. Benders 1962 年提出的分割程序中的 Benders 分解<sup>[13](https://doi.org/10.1007/bf01386316)</sup>，以及 John R. Birge 1985 年论文中对多阶段随机线性规划的推广——嵌套 Benders 分解。<sup>[14](https://doi.org/10.1287/opre.33.5.989)</sup> T.A. Rotting 和 A. Gjelsvik 于 1992 年将该方法应用于挪威电力系统的季节调度<sup>[15](https://doi.org/10.1109/59.141714)</sup>，Jesús Velásquez、Pedro J. Restrepo 和 Rafael Campo 于 1999 年在《水资源研究》上发表了关于该算法实现的一篇短文。<sup>[16](https://doi.org/10.1029/1999wr900052)</sup>

## 变体

**风险厌恶。** 期望与条件风险价值（CVaR）的凸组合满足动态规划递推，并且具有时间一致性。<sup>[17](https://www.epoc.org.nz/papers/PhilpottDeMatosEJORv4.pdf)</sup> 风险厌恶型 SDDP 的计算复杂度与风险中性情形几乎相同。<sup>[6](https://bpb-us-e1.wpmucdn.com/sites.gatech.edu/dist/4/1470/files/2021/03/EJOR-2011.pdf)</sup>

**整数与非凸问题。** SDDiP 通过二元状态扩展将 SDDP 推广到整数变量。<sup>[18](https://par.nsf.gov/servlets/purl/10058698)</sup>

**并行实现。** 并行 SDDP 方案在两个维度上有所不同：按情景分配工作还是按节点分配工作，以及同步还是异步交换信息。<sup>[10](https://link.springer.com/article/10.1007/s10287-021-00411-x)</sup> 嵌套 Benders 分解的传统并行化归功于 M. A. H. Dempster 和 R. T. Thompson<sup>[19](https://doi.org/10.2139/ssrn.37765)</sup>；同步并行 SDDP 已应用于大规模水火电规划<sup>[8](https://doi.org/10.1109/tpwrs.2012.2236654)</sup>，松弛同步的后向遍历以略多的迭代次数换取更高的并行效率。<sup>[3](https://www.mdpi.com/1996-1073/8/12/12431)</sup>

**建模扩展与软件。** 扩展涵盖逐阶段相关的目标不确定性<sup>[20](https://doi.org/10.1016/j.orl.2019.11.002)</sup>、部分可观测随机过程<sup>[21](https://doi.org/10.1016/j.orl.2020.06.005)</sup>、多阶段问题的策略图分解<sup>[22](https://doi.org/10.1002/net.21932)</sup>以及双目标表述。<sup>[23](https://doi.org/10.1007/s10107-022-01872-x)</sup> SDDP.jl 是一个基于 JuMP 构建的 Julia 包，支持无限时域问题、凸风险度量、混合整数状态变量与控制变量，以及部分可观测随机过程。<sup>[24](https://doi.org/10.1287/ijoc.2020.0987)</sup><sup> • </sup><sup>[25](https://sddp.dev/stable/)</sup>

## 应用

SDDP 的商业实现被广泛使用，在巴西、智利等多个南美国家用于水电站调度。<sup>[17](https://www.epoc.org.nz/papers/PhilpottDeMatosEJORv4.pdf)</sup> 除水火电调度外，应用还包括抽水蓄能电站的日前竞价<sup>[26](https://doi.org/10.1287/opre.2013.1182)</sup>、天然气储存估值、奶牛场运营和短期能量调度。<sup>[10](https://link.springer.com/article/10.1007/s10287-021-00411-x)</sup>

对于 5 年规划期、每座水库 200 个来水情景的巴西算例，串行求解需要近 15 小时，而并行算法在 64 核上不到 23 分钟就得到了完全相同的解。<sup>[8](https://doi.org/10.1109/tpwrs.2012.2236654)</sup> 一个将容量扩展模型与用 SDDP 求解的多阶段水电运行模型相结合的方案，已被应用于新西兰电力系统。<sup>[27](https://ideas.repec.org/a/eee/ejores/v322y2025i2p573-588.html)</sup>

## 局限与替代方法

DDP 要求阶段问题为凸，且标准形式下要求随机数据逐阶段独立。<sup>[2](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)</sup> 割平面法能处理阶段数多但状态变量相对较少的多阶段问题，而随机逼近法能处理阶段数少但决策变量多的问题；两者互补。<sup>[5](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)</sup> 要将未来成本函数一致逼近到给定精度，所需割平面数随状态变量维数呈指数增长。<sup>[5](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)</sup>

一项分析表明，SDDP 的迭代复杂度比 DDP 和 EDDP 差一个因子 \( \bar{N} := N_{2} \times N_{3} \times \cdots \times N_{T-1} \)，该因子随阶段数 \( T \) 呈指数增长。<sup>[28](https://ar5iv.labs.arxiv.org/html/1912.07702)</sup>

SDDP 越来越多地被用于近似求解非凸问题，而在这类问题中，即使训练投入很大，最优性间隙也可能不缩小到零。<sup>[29](https://informs-sim.org/wsc24papers/inv135.pdf)</sup> 近期工作针对采样与界的弱点：基于 Jensen 不等式，在每次迭代时刷新后向情景集合，可得到更稳健的运行策略<sup>[30](https://ideas.repec.org/a/eee/ejores/v335y2026i1p192-215.html)</sup>；增强型 SDDP 在每次迭代都给出有效界，因为原方法的上界只是统计意义上的，因而每次迭代的间隙并不有效。<sup>[31](https://www.arxiv.org/pdf/2507.21624)</sup> 在电力系统投资规划中，随机风电建模得出的投资决策与确定性风电建模不同，后者低估了目标函数。<sup>[31](https://www.arxiv.org/pdf/2507.21624)</sup>

## References

1. [Optimal stochastic operations scheduling of large hydroelectric systems (International Journal of Electrical Power & Energy Systems, 1989)](https://doi.org/10.1016/0142-0615%2889%2990025-2)
2. [Stochastic Dual Dynamic Programming and its variants: a tutorial-type review (Füllner & Rebennack; published in SIAM Review 67(3):415-539, 2025)](https://optimization-online.org/wp-content/uploads/2021/01/SDDP-Review.pdf)
3. [Efficient Parallelization of the Stochastic Dual Dynamic Programming Algorithm Applied to Hydropower Scheduling (Helseth & Braaten, Energies, 2015)](https://www.mdpi.com/1996-1073/8/12/12431)
4. [Introductory theory · SDDP.jl documentation](https://sddp.dev/dev/explanation/theory_intro/)
5. [Numerical Methods for Convex Multistage Stochastic Optimization (Shapiro)](https://optimization-online.org/wp-content/uploads/2023/03/NumericalMethodMultiStage.pdf)
6. [Analysis of stochastic dual dynamic programming method (Shapiro et al., EJOR 2011)](https://bpb-us-e1.wpmucdn.com/sites.gatech.edu/dist/4/1470/files/2021/03/EJOR-2011.pdf)
7. [A.B. Philpott, Z. Guan (2008). On the convergence of stochastic dual dynamic programming and related methods. Operations Research Letters.](https://doi.org/10.1016/j.orl.2008.01.013)
8. [Roberto J. Pinto, CarmenL. T. Borges, Maria E. P. Maceira (2013). An Efficient Parallel Algorithm for Large Scale Hydrothermal System Operation Planning. IEEE Transactions on Power Systems.](https://doi.org/10.1109/tpwrs.2012.2236654)
9. [Improving the Performance of Stochastic Dual Dynamic Programming (De Matos, Philpott, Finardi, Guigues; J. Comput. Appl. Math.)](https://optimization-online.org/wp-content/uploads/2012/07/3529.pdf)
10. [Parallel and distributed computing for stochastic dual dynamic programming (Computational Management Science, 2021)](https://link.springer.com/article/10.1007/s10287-021-00411-x)
11. [M. V. F. Pereira, L. M. V. G. Pinto (1985). Stochastic Optimization of a Multireservoir Hydroelectric System: A Decomposition Approach. Water Resources Research.](https://doi.org/10.1029/wr021i006p00779)
12. [M. V. F. Pereira, L. M. V. G. Pinto (1991). Multi-stage stochastic optimization applied to energy planning. Mathematical Programming.](https://doi.org/10.1007/bf01582895)
13. [J. F. Benders (1962). Partitioning procedures for solving mixed-variables programming problems. Numerische Mathematik.](https://doi.org/10.1007/bf01386316)
14. [John R. Birge (1985). Decomposition and Partitioning Methods for Multistage Stochastic Linear Programs. Operations Research.](https://doi.org/10.1287/opre.33.5.989)
15. [T.A. Rotting, A. Gjelsvik (1992). Stochastic dual dynamic programming for seasonal scheduling in the Norwegian power system. IEEE Transactions on Power Systems.](https://doi.org/10.1109/59.141714)
16. [Jesús Velásquez, Pedro J. Restrepo, Rafael Campo (1999). Dual dynamic programing: A note on implementation. Water Resources Research.](https://doi.org/10.1029/1999wr900052)
17. [Dynamic sampling algorithms for multi-stage stochastic programs with risk aversion (Philpott & De Matos, EJOR version)](https://www.epoc.org.nz/papers/PhilpottDeMatosEJORv4.pdf)
18. [Application of SDDiP to medium-term hydropower scheduling](https://par.nsf.gov/servlets/purl/10058698)
19. [M. A. H. Dempster, R. T. Thompson (1997). Parallelization and Aggregation of Nested Benders Decomposition. SSRN Electronic Journal.](https://doi.org/10.2139/ssrn.37765)
20. [Anthony Downward, Oscar Dowson, Regan Baucke (2019). Stochastic dual dynamic programming with stagewise-dependent objective uncertainty. Operations Research Letters.](https://doi.org/10.1016/j.orl.2019.11.002)
21. [Oscar Dowson, David P. Morton, Bernardo K. Pagnoncelli (2020). Partially observable multistage stochastic programming. Operations Research Letters.](https://doi.org/10.1016/j.orl.2020.06.005)
22. [Oscar Dowson (2020). The policy graph decomposition of multistage stochastic programming problems. Networks.](https://doi.org/10.1002/net.21932)
23. [O. Dowson, D. P. Morton, A. Downward (2022). Bi-objective multistage stochastic linear programming. Mathematical Programming.](https://doi.org/10.1007/s10107-022-01872-x)
24. [Oscar Dowson, Lea Kapelevich (2020). SDDP.jl : A Julia Package for Stochastic Dual Dynamic Programming. INFORMS journal on computing.](https://doi.org/10.1287/ijoc.2020.0987)
25. [SDDP.jl documentation (stable)](https://sddp.dev/stable/)
26. [Nils Löhndorf, David Wozabal, Stefan Minner (2013). Optimizing Trading Decisions for Hydro Storage Systems Using Approximate Dual Dynamic Programming. Operations Research.](https://doi.org/10.1287/opre.2013.1182)
27. [Capacity planning of renewable energy systems using stochastic dual dynamic programming (Hole, Philpott, Dowson, EJOR 322(2):573-588, 2025)](https://ideas.repec.org/a/eee/ejores/v322y2025i2p573-588.html)
28. [Complexity of Stochastic Dual Dynamic Programming (arXiv 1912.07702)](https://ar5iv.labs.arxiv.org/html/1912.07702)
29. [An SDDP Algorithm for Multistage Stochastic Programs with Decision-Dependent Uncertainty (Winter Simulation Conference 2024)](https://informs-sim.org/wsc24papers/inv135.pdf)
30. [Backward resampling in stochastic dual dynamic programming: Application to power generation planning (Cruz, Diniz, Bahiense, EJOR 335(1):192-215, 2026)](https://ideas.repec.org/a/eee/ejores/v335y2026i1p192-215.html)
31. [Adaptive Benders decomposition with enhanced SDDP for multistage stochastic programs with block-separable recourse (arXiv 2507.21624, 2025)](https://www.arxiv.org/pdf/2507.21624)

---
*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/dual-dynamic-programming

English original: https://www.edgepedia.org/dual-dynamic-programming
