# 机会约束优化

机会约束优化是一种不确定性下的决策方法，其中依赖于随机数据的约束只需以不低于指定值的概率成立，而不必在所有可能结果下都成立。形式化地，决策向量 \( x \) 必须满足 \( \mathbb{P}\{ f(x, \xi) \le 0 \} \ge 1 - \epsilon \)，其中 \( \xi \) 为不确定性，\( \epsilon \) 为可容忍的违反概率。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> 等价地，约束可写为 \( \mathbb{P}\{ h(x, \xi) \ge 0 \} \ge p \)，概率水平 \( p \in [0,1] \) 由决策者选定，以刻画安全性或可靠性。<sup>[2](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)</sup> 求解方法分为三大类：情景法、样本平均近似，以及基于鲁棒优化的方法。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义性要求 | \( \mathbb{P}\{ f(x, \xi) \le 0 \} \ge 1 - \epsilon \)；\( \epsilon \) 为违反概率。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> |
| 首次建模 | 查恩斯、库珀与西蒙兹，《管理科学》，1958 年；查恩斯与库珀于 1959 年命名该框架。<sup>[3](https://doi.org/10.1287/mnsc.4.3.235)</sup><sup> • </sup><sup>[4](https://doi.org/10.1287/mnsc.6.1.73)</sup> |
| 一般可处理情形 | 高斯分布下、\( f \) 为凸的线性单个机会约束，置信水平至少为 0.5。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup><sup> • </sup><sup>[18](https://optimization-online.org/wp-content/uploads/2022/01/8754.pdf)</sup> |
| 一般困难性 | 当内部约束多于一个时，联合机会约束是 NP 难的。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> |
| 主要重构 | 分位数（VaR）等价、CVaR 与 Bernstein 安全近似、邦费罗尼分解。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup><sup> • </sup><sup>[6](https://www2.isye.gatech.edu/~nemirovs/SIOPT_Bern_2006.pdf)</sup> |
| 无分布方法 | 情景法仅需凸性与样本量 \( N \)。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> |
| 典型应用 | 电力系统、金融、医疗、交通运输与路径规划、供应链、物流、调度，以及无线通信。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> |

## 工作原理

[机会约束规划](https://www.edgepedia.org/zh/chance-constrained-programming)是一个优化问题，通常形如 \( \min_{x \in X} c(x) \)，其中一个或多个约束含有随机向量 \( \xi \)，且仅以概率意义强制执行。两种结构性区分至关重要。第一，单个机会约束只涉及一个内部约束（\( m = 1 \)），而联合机会约束要求 \( \mathbb{P}\{ f_1(x,\xi) \le 0, \ldots, f_m(x,\xi) \le 0 \} \ge 1 - \epsilon \)（\( m > 1 \)）；单个形式是 \( m = 1 \) 的特例，联合形式建模能力更强但更难处理。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> 第二，不确定性可能位于右端项（例如随机需求），也可能位于左端项、藏在随机矩阵之中；问题进一步分为静态与两阶段，以及纯二值机会约束组合问题。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup>

凸性是核心理论问题，它既取决于 \( \xi \) 的分布，也取决于约束函数。<sup>[2](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)</sup> 一般而言，即使对 \( \xi \) 的每个实现 \( f \) 关于 \( x \) 都是凸的、且确定性集合 \( X \) 是凸的，可行域仍可能是非凸的。<sup>[7](https://par.nsf.gov/servlets/purl/10110826)</sup> 可处理的情形是特定的：仅高斯分布加上 \( f \) 的凸性并不保证可处理性，但高斯系数下的线性单个机会约束在置信水平至少为 0.5 时可重构为凸二阶锥规划；<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> 而系数向量固定、右端项具有对数凹密度时，它也是凸的。<sup>[8](https://doi.org/10.1007/s10957-006-9084-x)</sup><sup> • </sup><sup>[18](https://optimization-online.org/wp-content/uploads/2022/01/8754.pdf)</sup> 更广泛地，对于数据上的径向分布，线性规划中的概率约束可显式转化为凸二阶锥约束并精确求解。<sup>[8](https://doi.org/10.1007/s10957-006-9084-x)</sup> 普雷科帕的对数凹性定理给出：当约束函数关于 \( (x, \xi) \) 为凹、且 \( \xi \) 具有对数凹密度时，可行集是凸的，从而可行性概率关于 \( x \) 是对数凹的；片冈 1963 年的结果则给出：当随机矩阵退化为一行、\( \xi \) 为多元正态、且 \( p \ge 0.5 \) 时，可行集是凸的。<sup>[2](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)</sup> 在这些情形之外，当 \( m > 1 \) 时联合机会约束问题是 NP 难的。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup>

## 如何求解

由于所述约束一般计算上不可处理，标准策略是将其替换为一个安全可处理近似：一个可高效计算的凸约束系统，其在 \( x \) 空间上的投影包含于原机会约束的可行集之内。<sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup> 主要的确定性等价与近似如下：

- **分位数（VaR）重构。** 单个机会约束 \( \mathbb{P}\{ f_i(x,\xi) \le 0 \} \ge 1 - \epsilon_i \) 等价于风险价值约束 \( \mathrm{VaR}(f_i(x,\xi); 1 - \epsilon_i) \le 0 \)。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> 在右端项不确定的有限离散分布下，该约束线性化为 \( T \cdot x \ge F_\omega^{-1}(1 - \epsilon) \)，即 \( (1-\epsilon) \)-分位数。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup>
- **CVaR 近似。** 由于 \( \mathrm{CVaR} \ge \mathrm{VaR} \)，施加 \( \mathrm{CVaR}(f(x,\xi); 1 - \epsilon) \le 0 \) 是机会约束的一个保守（安全）凸近似；CVaR 可用于近似 VaR。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup><sup> • </sup><sup>[6](https://www2.isye.gatech.edu/~nemirovs/SIOPT_Bern_2006.pdf)</sup>
- **Bernstein 近似。** 一种大偏差型凸近似，是最一般的安全可处理近似，当约束关于扰动为仿射、且扰动分量相互独立并具有可计算的矩母函数凸界时有效。<sup>[6](https://www2.isye.gatech.edu/~nemirovs/SIOPT_Bern_2006.pdf)</sup><sup> • </sup><sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup>
- **邦费罗尼分解。** 通过邦费罗尼（布尔）不等式，联合机会约束可拆分为若干单个机会约束，代价是将违反预算 \( \epsilon \) 分摊到各约束上。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup>

涅米罗夫斯基进一步表明，机会约束的每一个正规安全凸近似都具有鲁棒对等体的形式，其不确定集为可显式构造的凸紧集，从而将机会约束与鲁棒优化联系起来。<sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup>

当分布未知时，采用两条基于采样的路线。情景法求解由 \( N \) 个采样约束构建的凸规划并丢弃其余约束，以显式置信度证明解的可行性；它仅要求 \( f(x,\xi) \) 与 \( X \) 的凸性，不作分布假设，且以 \( N \) 为唯一调节参数。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup><sup> • </sup><sup>[10](https://marco-campi.unibs.it/pdf-pszip/sample-discarding.pdf)</sup> 卡拉菲奥雷与坎皮 2004 年的定理给出了所需样本量的界，使得情景解以置信度 \( 1 - \delta \) 至多以概率 \( \epsilon \) 违反真实机会约束。<sup>[11](https://doi.org/10.1007/s10107-003-0499-y)</sup> 当 \( f \) 关于 \( \xi \) 为仿射且分布性质良好（盒内均匀、盒顶点上均匀或正态）时，改进的情景近似可减小所需样本量；作为对照，支撑维数为 \( d \) 的经典情景界为 \( N \ge (2/\epsilon) \cdot (\ln(1/\delta) + d) \)。<sup>[6](https://www2.isye.gatech.edu/~nemirovs/SIOPT_Bern_2006.pdf)</sup> FAST 算法能更高效地计算以概率 \( 1 - \epsilon \) 成立的情景解。<sup>[12](https://re.public.polimi.it/retrieve/e0c31c0d-7cd5-4599-e053-1705fe0aef77/FAST%20Algorithm%20for%20scenario%20technique_11311-937164_Garatti.pdf)</sup>

样本平均近似（SAA）以经验频率 \( (1/N) \sum_i \mathbf{1}_{\{ f(x, \xi^i) \le 0 \}} \) 替代概率；所得问题是一个混合整数规划，其中二值变量编码违反情况，联合约束归结为基数约束 \( \sum_{i \in [N]} z_i \le \lfloor \epsilon N \rfloor \)（当情景不等概率时为背包约束 \( \sum_i p_i z_i \le \epsilon \)）。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 此类混合整数模型用 Gurobi、CPLEX 等商业求解器实现，并用混合、星形与分位数割不等式加强。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup>

## 起源

第一个机会约束规划由 A. 查恩斯、W. W. 库珀与 G. H. 西蒙兹 在《成本视野与确定性等价：取暖油随机规划的一种方法》（《管理科学》，1958 年）中提出，是一项关于随机取暖油规划的研究。<sup>[3](https://doi.org/10.1287/mnsc.4.3.235)</sup> 随后查恩斯与库珀在《机会约束规划》（《管理科学》，第 6 卷第 1 期，第 73–79 页，1959 年 10 月）中命名并定义了该框架，引入了一种通过最优序贯随机决策规则进行不确定性下时序规划的载体。<sup>[4](https://doi.org/10.1287/mnsc.6.1.73)</sup> 他们 1963 年的论文《机会约束下优化与满意化的确定性等价》（《运筹学》，第 11 卷第 1 期，第 18–39 页）确立了线性决策规则下三类目标对应的确定性等价凸规划问题：E 模型（最大期望值）、V 模型（最小方差）与 P 模型（最大概率，与赫伯特·西蒙的满意化概念相关）。<sup>[13](https://doi.org/10.1287/opre.11.1.18)</sup> 联合机会约束由[布鲁斯·L·米勒](https://www.edgepedia.org/zh/bruce-l-miller)与哈维·M·瓦格纳在《带联合约束的机会约束规划》（《运筹学》，1965 年）中引入。<sup>[14](https://doi.org/10.1287/opre.13.6.930)</sup><sup> • </sup><sup>[10](https://marco-campi.unibs.it/pdf-pszip/sample-discarding.pdf)</sup>

## 变体

除单个与联合形式外，主要变体按不确定性的处理方式区分。在分布鲁棒机会约束中，概率针对模糊集 \( \mathcal{F} \) 中最坏的分布取界：\( \sup_{\mathbb{P} \in \mathcal{F}(\beta)} \mathbb{P}\{ x \notin P(\omega) \} \le \epsilon \)，从而使约束对所有与已有信息一致的分布都成立。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 卡拉菲奥雷与埃尔·加维发展了分布鲁棒机会约束线性规划，在给定均值与协方差的分布上具有显式的二阶锥对等形式。<sup>[8](https://doi.org/10.1007/s10957-006-9084-x)</sup> 两阶段变体在不确定性实现之前固定第一阶段决策，并对第二阶段追索施加机会约束。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 组合变体处理 0-1 决策变量。<sup>[15](https://pubsonline.informs.org/doi/abs/10.1287/mnsc.14.1.34)</sup>

## 应用

凡能自然指定可靠性水平之处，都会出现机会约束。在电力系统中，目标是在将失负荷概率保持在可接受可靠性水平以下的同时最小化期望生产成本；在两阶段日前发电调度中，发电机启停状态在需求实现之前固定，第二阶段强制执行至多不超过预先指定风险水平 \( \epsilon \in (0,1) \) 的失负荷概率。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 有文献记载的应用领域还包括金融、医疗、交通运输与路径规划、供应链（限制缺货概率的服务水平约束）、物流、调度与无线通信，<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 以及经济学、化工过程、水资源管理、机器学习、<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.10621)</sup> 电路制造、电信与能源管理，其中通过抽水蓄能或市场购电进行追索以补偿约束违反。<sup>[2](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)</sup>

## 局限与替代方案

主要失效模式是保守性、分布误差与不可行性。本-塔尔与涅米罗夫斯基、卡拉菲奥雷与坎皮、以及涅米罗夫斯基与夏皮罗的凸近似产生的解以高概率可行，但可能高度保守。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 在情景法中，\( N \) 是唯一调节参数：情景太少可能产生不可行解，情景太多则产生违反概率接近零的过度保守解。<sup>[7](https://par.nsf.gov/servlets/purl/10110826)</sup> 所需样本量通常很大，SAA 以变成混合整数规划为代价缓解这种保守性。<sup>[5](https://ar5iv.labs.arxiv.org/html/2101.08746)</sup> 当 \( \epsilon \) 非常小时，用[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)计算 CVaR 变得不切实际，而基于 CVaR 的近似对非离散多元分布可能不可处理。<sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup> 通过单个模型求解联合约束因其简单而有吸引力，但可能产生完全不可靠的决策。<sup>[2](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)</sup> 1981 年对应用文献的一项考察得出结论：几乎没有证据表明机会约束规划被以必要的谨慎加以使用，称其作为建模技术存在严重缺陷，作为政策制定工具价值有限。<sup>[16](https://psycnet.apa.org/doi/10.1287/mnsc.27.6.698)</sup>

与替代方案比较：鲁棒优化要求约束对不确定集内的所有实现都成立，更为严格；反过来，若 \( \mathbb{P}_{\mathrm{true}} \{ \xi \in \mathcal{U} \} \ge 1 - \epsilon \) 且 \( g(x,\xi) \le 0 \) 对 \( \mathcal{U} \) 中所有 \( \xi \) 成立，则 \( \mathbb{P}_{\mathrm{true}} \{ g(x,\xi) \le 0 \} \ge 1 - \epsilon \)，因此在此类集合上的鲁棒可行性蕴含机会约束可行性。<sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup><sup> • </sup><sup>[17](https://numdam.org/item/10.5802/ojmo.15.pdf)</sup> [随机规划](https://www.edgepedia.org/zh/stochastic-programming)将不确定性视为随机的、其分布已知属于给定分布族，并将机会约束与问题关联；而鲁棒优化假定不确定数据在一个不确定集上取值。<sup>[9](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)</sup>

## References

1. [Data-driven Decision Making with Probabilistic Guarantees (Part I): A Schematic Overview of Chance-constrained Optimization (Zhang et al.)](https://ar5iv.labs.arxiv.org/html/1903.10621)
2. [Chance Constrained Programming and Its Applications to Energy Management (Henrion et al., InTech chapter)](https://cdn.intechopen.com/pdfs/13877/InTech-Chance_constrained_programming_and_its_applications_to_energy_management.pdf)
3. [A. Charnes, W. W. Cooper, G. H. Symonds (1958). Cost Horizons and Certainty Equivalents: An Approach to Stochastic Programming of Heating Oil. Management Science.](https://doi.org/10.1287/mnsc.4.3.235)
4. [A. Charnes, W. W. Cooper (1959). Chance-Constrained Programming. Management Science.](https://doi.org/10.1287/mnsc.6.1.73)
5. [Chance-Constrained Optimization under Limited Distributional Information: A Review of Reformulations Based on Sampling and Distributional Robustness](https://ar5iv.labs.arxiv.org/html/2101.08746)
6. [Nemirovski & Shapiro, 'Convex approximations of chance constrained programs' (SIAM J. Optimization, 2006)](https://www2.isye.gatech.edu/~nemirovs/SIOPT_Bern_2006.pdf)
7. [Data-driven decision making in power systems with probabilistic guarantees: Theory and applications of chance-constrained optimization](https://par.nsf.gov/servlets/purl/10110826)
8. [G. C. Calafiore, L. El Ghaoui (2006). On Distributionally Robust Chance-Constrained Linear Programs. Journal of Optimization Theory and Applications.](https://doi.org/10.1007/s10957-006-9084-x)
9. [On Safe Tractable Approximations of Chance Constraints (Nemirovski, EURO XXIV tutorial)](https://www2.isye.gatech.edu/~nemirovs/EUROXXIV_Nemirovski_May2011.pdf)
10. [Campi, 'A Sampling-and-Discarding Approach to Chance-Constrained Optimization: Feasibility and Optimality'](https://marco-campi.unibs.it/pdf-pszip/sample-discarding.pdf)
11. [Giuseppe Calafiore, M.C. Campi (2004). Uncertain convex programs: randomized solutions and confidence levels. Mathematical Programming.](https://doi.org/10.1007/s10107-003-0499-y)
12. [Garatti & Campi, 'FAST, Fast Algorithm for the Scenario Technique'](https://re.public.polimi.it/retrieve/e0c31c0d-7cd5-4599-e053-1705fe0aef77/FAST%20Algorithm%20for%20scenario%20technique_11311-937164_Garatti.pdf)
13. [A. Charnes, W. W. Cooper (1963). Deterministic Equivalents for Optimizing and Satisficing under Chance Constraints. Operations Research.](https://doi.org/10.1287/opre.11.1.18)
14. [Bruce L. Miller, Harvey M. Wagner (1965). Chance Constrained Programming with Joint Constraints. Operations Research.](https://doi.org/10.1287/opre.13.6.930)
15. [Chance-Constrained Programming with 0-1 or Bounded Continuous Decision Variables (Management Science 14(1):34)](https://pubsonline.informs.org/doi/abs/10.1287/mnsc.14.1.34)
16. [Decision Problems Under Risk and Chance Constrained Programming: Dilemmas in the Transition (Management Science, 1981)](https://psycnet.apa.org/doi/10.1287/mnsc.27.6.698)
17. [Frameworks and Results in Distributionally Robust Optimization (Open Journal of Mathematical Optimization)](https://numdam.org/item/10.5802/ojmo.15.pdf)
18. [optimization-online.org](https://optimization-online.org/wp-content/uploads/2022/01/8754.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/chance-constrained-optimization

English original: https://www.edgepedia.org/chance-constrained-optimization
