On Distributionally Robust Chance Constrained Programs with Wasserstein Distance
Weijun Xie
Introduction
We study distributional robust chance constrained programs (DRCCPs) of the form:
We denote the feasible region induced by DRCC (1c) as
2 Assumptions
In this paper, we consider Wasserstein ambiguity set , i.e., we make the following assumption on the ambiguity set .
The Wasserstein ambiguity set is defined as
This assumption has been studied in recent DRCCP literature ;
By making this assumption, it might cause the DRCC (1c) to be more conservative than the general setting studied in ;
In practice, one needs to choose a proper Wasserstein radius through cross validation to alleviate the over-conservatism caused by Assumption (A2), which will be illustrated in Section 5.
Finally, we suppose that Assumptions (A1) and (A2) hold throughout the paper.
3 Related Literature
When DRCC set is not convex, many inner convex approximations have been proposed. In , the authors proposed to aggregate the multiple uncertain constraints with positive scalars in to a single constraint, and then use conditional value-at-risk () approximation scheme to develop an inner approximation of . This approximation is shown to be exact for single DRCCP when is specified by first and second moments in or, more generally, by convex moment constraints in . In , the authors provided several sufficient conditions under which the well-known Bonferroni approximation of joint DRCCP is exact and yields a convex reformulation.
4 Contributions
In this paper, we study approximations and exact reformulations of DRCCP under Wasserstein ambiguity set. In particular, our main contributions are summarized as below.
We derive a deterministic equivalent reformulation for set and show that this reformulation admits a conditional value-at-risk () interpretation, i.e.,
where is defined in Theorem 1.
We show that set , once bounded, is mixed integer representable with big-M coefficients and additional binary variables.
We derive inner and outer approximations based upon interpretation. We develop compact formulations for these approximations and compare their strengths.
When the decision variables are pure binary (i.e., ), we first show that the nonlinear constraints in the reformulation can be recast as submodular knapsack constraints. Then, by exploiting the polyhedral properties of submodular functions, we propose a new big-M free mixed integer linear reformulation, which can be effectively solved by a branch and cut algorithm.
The remainder of the paper is organized as follows. Section 2 presents exact reformulations of DRCC set . Section 3 provides inner and outer approximations of set and compares their strengths. Section 4 studies binary DRCCP (i.e., ), develops a big-M free formulation. Section 5 numerically illustrates the proposed methods. Section 6 concludes the paper.
Exact Reformulations
In this section, we will show that DRCC set admits a conditional-value-at-risk () interpretation and is mixed integer representable. This reformulation also allows us to derive tight inner and outer approximations in next section.
In this subsection, we will reformulate the set into its deterministic counterpart with respect to empirical distribution. The main idea of this reformulation is that we first use the strong duality result from to formulate the worst-case chance constraint into its dual form, and then break down the indicator function according to its definition.
and if and , otherwise, and characteristic function if and 0, otherwise.
We separate the proof into three steps, where the first step is to apply strong duality result for distributionally robust optimization, the second step is to break down the indicator function, and the third step is to replace the dual variable with its reciprocal.
Next, we break down the indicator function in the infimum of (6b) by discussing the conditions under which it is equal to zero or one and reformulate it as below.
For given and , we have
Therefore, we only need to show that for any ,
If , then in the left-hand side of (6d), the infimum is equal to by letting , which equals the right-hand side since the infimum is also achieved by .
If , then for any , we either have or . Hence, the left-hand side of (6d) is equivalent to
where by letting .
Finally, let denote the set in the right-hand side of (4) , we only need to show that .
Given , there exists such that satisfies (4). If , then let . Then it is easy to see that satisfies (4) . Hence, .
Now suppose that , then in (4), we have
Similarly, given , there exists such that satisfies (4) . If , then let . Then it is easy to see that satisfies (4). Hence, .
Now suppose that , then in (4) , we have
for each . Thus, (4) reduces to contradicting that .∎
Please note that in the proof, we use the fact that from Assumption (A1), and the formulation (4) does not hold if .
while its -conditional value-at-risk (CVaR) is defined as
With the definitions above, we observe that set in (4) has a interpretation.
First, we observe that the constraint in (4) directly implies , thus the nonnegativity constraint of can be dropped, i.e., equivalently, we have
Next, in the above formulation, letting and replacing the existence of by finding the best such that the constraint still holds, we arrive at
In the following sections, we will derive the inner and outer approximations mainly based upon formulation in Corollary 1.
2 Exact Mixed Integer Program Reformulation
In this subsection, we show that set is mixed integer representable. To do so, we first observe that the reformulation of set in Theorem 1 can be further simplified as a disjunction of a nonconvex set and a convex set.
We need to show that and .
Given , we have , thus (defined in (5)) is . Thus, let . Clearly, satisfies all the constraints in (4), i.e., . Hence, .
Given , there exists which satisfies constraints in (8). Suppose that , then we have . Hence, for each , we have (8a) and (8b) imply that
That is, . Thus, .
Now we suppose that . For each , (8a) and (8b) along with imply that
where the second inequality is due to (8d). Then according to (8a), we have
i.e., satisfies the constraints in (4), i.e., . Thus, .
Similarly, given , there exists which satisfies constraints in (4). Suppose that , then we must have for all , otherwise, we have for all . Then (4a) is equivalent to
a contradiction that . Hence, we must .
From now on, we assume that . Let us define , and for each . Clearly, satisfies constraints in (8), i.e., . ∎
We make the following remarks about the disjunctive formulation of set .
For DRCCP with left-hand uncertainty (i.e., ), we have
For DRCCP with right-hand uncertainty or two-side uncertainty (i.e., ), we have .
According to Lemma 2 , the feasible region induced by a chance constraint is closed, so is set . However, set might not be closed due to in (8e). In practice, one can find a lower bound such that
or let be a sufficiently small number. Then replace the constraint in (8e) by .
We observe that set can be formulated as a mixed integer set when it is bounded, i.e., we can use binary variables to represent the nonlinear constraints (8b) as mixed integer linear ones. This result has been observed independently by (see their Proposition 1) for single DRCCP.
for all . Then is mixed integer representable, i.e.,
We first observe that the constraints (8b) are equivalent to
Above, the outer maximum in the right-hand side can be linearized by using a binary variable , a continuous variable , and big-M coefficient for each . By doing so, we arrive at (10). ∎∎
Usually, we can derive the big-M coefficients by inspection; for example, suppose that , then for each , we can find in the following way: (i) rewrite for each , (ii) define sets and , and (iii) let be
There are various methods introduced in literature to further tighten big-M coefficients.
Formulation (10) involves binary variables and big-M coefficients. In Section 4, we will show that for binary DRCCP, set can be reformulated as a big-M free formulation without introducing additional binary variables.
3 A Special Case: DRCCP with Right-hand Uncertainty
In this subsection, we consider DRCCP with right-hand uncertainty, i.e., . We first observe that when , in Theorem 1, set of DRCCP with right-hand uncertainty has a more compact representation.
For DRCCP with right-hand uncertainty (i.e., ), set is equivalent to the following mathematical program:
The result directly follows from Theorem 1.∎∎
The differences between this result and the one in Proposition 1 are: (i) for DRCCP with right-hand uncertainty, we do not need to reformulate set as a disjunction of two sets, and (ii) compared to set in (8), there is no need to introduce additional positive variable in the formulation (11).
Following the similar derivation in Theorem 2, we can also reformulate the set in (11) as a mixed integer program as below. This result has been observed independently by (see their Proposition 2).
for all . Then set is mixed integer representable, i.e.,
The proof is similar as that of Theorem 2, thus is omitted. ∎∎
Similar to Theorem 2, suppose that , then for each , one possible can be derived as below:
where and .
Outer and Inner Approximations
In this section, we will introduce one outer approximation and three different inner approximations by exploiting the exact reformulations in the previous section. The outer approximation can provide a lower bound for DRCCP, while inner approximations can provide good-quality feasible solutions. Our numerical study in Section 5 will demonstrate that together these approximations, we can obtain better solutions than those from the exact mixed integer programming model in the previous section, in particular, for large-sized instances.
Therefore, in Corollary 1, if we replace by , then we have the following outer approximation of set .
According to Corollary 1 and the well-known result in that
and if , otherwise, . Thus we further have
Using the fact that , we arrive at (13).∎∎
We make the following remarks about outer approximation .
A particular interpretation of formulation (13) is that in order to enforce the robustness, we further penalize the left-hand side of uncertain constraints by the dual norm ; and
Recently, there are several works on distributionally robust optimization with Wasserstein ambiguity set, and set is in fact equal to the feasible region induced by DRCC with Wasserstein ambiguity set.
Consider Wasserstein ambiguity set defined as
where Wasserstein distance is defined as
Then set is equivalent to
This result demonstrates that set indeed can be viewed as a deterministic counterpart of DRCCP with Wasserstein ambiguity set. Thus, in practice, it can serve as an alternative for the set .
For the completeness of this paper, we present the mixed integer program formulation of outer approximation set . The proof is omitted as it directly follows the proof of Theorem 2.
for all . Then is mixed integer representable, i.e.,
Similar to Theorem 2, suppose that , then for each , one possible can be derived as below:
where and .
2 Inner Approximation I- Robust Scenario Approximation
Using the definition of and the fact that , we arrive at (16). ∎∎
We remark that set in (16) is very similar to scenario approach to regular chance constrained program . That is, we generate i.i.d. samples and enforce all the sampled constraints to hold. It has been shown in that if is larger than a threshold, it guarantees with high probability that the solution of scenario approach is feasible to the regular chance constrained program. Different from scenario approach, in formulation (16), we add a penalty to the sampled constraints, which can be viewed as a “robust” scenario approach to the regular chance constrained problem. That is, if the sample size is not sufficiently large (i.e., is smaller than the threshold given by ), one might want to add a penalty to enforce that set is indeed a subset of the feasible region induced by a regular chance constraint.
3 Inner Approximation II- An Inner Chance Constrained Programming Approximation
Next we propose an inner chance constrained programming approximation of set by constructing a feasible in (4).
According to the definition of in (5) and the fact , set is equivalent to
For any , we need to show that . Since , there exists an such that satisfies constraints in (18). Now let us define . It remains to show that satisfies the constraints (4).
where the first inequality is due to and the second inequality is due to (18). Hence,
where the first inequality is due to according to its definition in (5) and the second inequality is due to .∎∎
We also observe that (i) set is a special case of set by letting , thus, we must have ; (ii) there are disjoint intervals that belong to, that is,
The feasible region induced by the above chance constraint increases if we decrease the value of to . Therefore, to optimize over set , we only need to enumerate these different values of and choose the one which yields the smallest objective value; (iii) for each given , the chance constraint in (17) is mixed integer program representable. These three results are summarized below.
set , where set is defined as
for each ; and
for all , then set is mixed integer representable, i.e.,
Similar to Theorem 2, suppose that , then for each and , one possible in Corollary 5 can be derived as below:
where and .
According to Corollary 5, to solve the inner approximation of DRCCP (i.e., ), we can solve for each and choose the smallest value.
where the inequality is due to and . This observation is summarized below.
According to , any light-tail distribution (e.g., Gaussian distribution) satisfies the assumption in above proposition; and
Sets and together build up a hierarchy of regular chance constrained programs, which converges to DRCC set as and preserves the outer and inner approximations, i.e., for all and and as .
4 Inner Approximation III- 𝐂𝐕𝐚𝐑𝐂𝐕𝐚𝐑{\bf{CVaR}} Approximation
In this subsection, we will study a well-known convex approximation of a chance constraint, which is to replace the nonconvex chance constraint by a convex constraint defined by (cf., ). For DRCC set , the resulting approximation is
Set (21) is convex and is an inner approximation of set . The following results show a reformulation of set . We would like to acknowledge that this result has been independently observed by a recent work in . Thus, the proof is omitted.
Set is equivalent to
We remark that one can directly derive the equivalent form (22) of set based upon formulation (4).
Since , by replacing with , then function is lower bounded by
Thus, set can be inner approximated by the following set
By introducing additional variables to linearize the nonlinear function , we arrive at
This set can be proven to be exactly equal to set by discussing whether or not:
if , then replace and by and ;
if , since and , according to the pigeonhole principle, we must have for some , which implies that for all .
This observation inspires us that if . In fact, if , then we must have for all , which implies that .
Suppose that , then .
We note that , where and are defined in (8) and (9), respectively. We note that set . Indeed, suppose that , i.e., for each , then let and for each . Clearly, satisfies the constraints in (22). Hence, .
Thus, it is sufficient to show that . Indeed, given , there exists such that satisfies the constraints in (8). We only need to show that for each . Suppose that there exists a such that . Then according to (8a), we have
where the second inequality is due to and , a contradiction that . Therefore, in (8b), we must have
for each . Hence, satisfies the constraints in (22), i.e., . ∎∎
The result in Proposition 5 shows that if the risk parameter is small enough (i.e., less than or equal to ), then set is convex and is equivalent to its approximation.
5 Formulation Comparisons
First, we would like to compare sets . Indeed, we can show that , i.e., set is at least as conservative as approximation .
Let be defined in (16), (22) , respectively. Then
Given , we only need to show that . Indeed, let us consider , for all , then we see that satisfies the constraints in (22), i.e., .∎
The following example illustrates sets and their inclusive relationships.
Suppose and . Then, (2) becomes:
Clearly, we have Z_{R}\subsetneq\left\{\begin{subarray}{c}Z_{{\bf{CVaR}}}\\ \rotatebox[origin={c}]{-90.0}{\not\subseteq}\\ Z_{I}\end{subarray}\right\}\subsetneq Z\subsetneq Z_{{\bf{VaR}}} (see Figure 1 for an illustration).
Finally, the theoretical inclusive relationships of sets are shown in Figure 2 and their reformulations are summarized in Table 1.
DRCCP with Pure Binary Decision Variables
In this section, we will study DRCCP with pure binary decision variables , i.e., we assume that . If is a bounded integer set, we can use binary expansion to reformulate an equivalent binary set (c.f., ). For binary DRCCP, we will show that the reformulations in the previous section can be improved.
Our main derivation of stronger formulations is based upon some polyhedral results of submodular functions, which will be briefly reviewed in this subsection.
We first briefly introduce the definition of submodularity and interested readers are referred to for more details.
for every with and every , we must have .
We first begin with the following lemmas on submodular functions.
Since is a nondecreasing submodular function and is a nonincreasing concave function, the submodularity of their composition follows by Table 1 in .∎∎
Given , function with is submodular over the binary hypercube.
This is because , and is a submodular function if is a concave function (cf., ). ∎∎
Next, we will introduce polyhedral properties of submodular functions. For any given submodular function with , let us denote to be its epigraph, i.e.,
Then the convex hull of is characterized by the system of “extended polymatroid inequalities” (EPI) , i.e.,
where denotes a collection of all permutations of set and for each with and .
In addition, although there are number of inequalities in (24), these inequalities can be easily separated by a greedy procedure.
2 Reformulating a Binary DRCCP by Submodular Knapsack Constraints: Big-M free
In this section, we will replace the nonlinear constraints defining the feasible region of a binary DRCCP (i.e., set ) by submodular knapsack constraints. These constraints can be equivalently described by the system of EPI in (24). Therefore we obtain a big-M free mixed integer representation of set .
First, we introduce auxiliary variables complementing binary variables , denoted by , i.e., for each . With these additional variables, we can reformulate function as
Thus, from above discussion, we can formulate (recall that set according to Proposition 1) as the following mixed integer set with submodular knapsack constraints.
Suppose that . Then , where
According to Proposition 1, equalities (25) and the fact that with constant , constraints (8b) and (8d) are equivalent to (26b) and (26d). Thus, we only need to show that . There are two cases.
If , then we must have , then . We are done.
If , then we must have . For any , we need to show that . If , then the constraints (8) become
Since , thus by the pigeonhole principle, we must have for some . This implies that for each . Together with , we must have .
Now suppose that . Note that , therefore, implies that , thus, . Thus, .∎
From the proof of Theorem 7, we note that if for each , then we have . Thus, .
Suppose that and for each . Then .
From the proof of Theorem 7, we only need to show that . In this case, we have . Then according to (25), we have . Let us set . Then it is easy to see that satisfies the constraints in (26), i.e., . ∎∎
We note that the left-hand sides of constraints (26b) and (26d) are submodular functions according to Lemma 1 and Lemma 2. Therefore, equivalently, we can replace these constraints with the convex hulls of epigraphs of their associated submodular functions. Thus, we arrive at the following equivalent representation of set .
Suppose that and is norm with . Then
Note that the optimization problem can be solved by a branch and cut algorithm. In particular, at each branch and bound node, denoted as , there might be too many (i.e., ) valid inequalities to add, since in (28b) and (28d), there are convex hulls of epigraphs (i.e., ) to be separated from. Therefore, instead, we can first check and find the epigraphs of (e.g., in our numerical study) most violated constraints in (26b) and (26d), i.e., find the epigraphs corresponding to the largest values in the following set
Finally, we can generate and add valid inequalities by separating from the convex hulls of these epigraphs according to Lemma 3.
Numerical Demonstration
In this section, we present a series of numerical studies to demonstrate the effectiveness of the proposed formulations and also show how to use cross validation to choose a proper Wasserstein radius .
where the chance constraint here is to guarantee that the worst-case probability that each knapsack’s capacity should be satisfied is at least .
In the following subsections, we generated different random instances to test the proposed formulations. All the instances were executed on a MacBook Pro with a 2.80 GHz processor and 16GB RAM with a call of the commercial solver Gurobi (version 7.5, with default settings). We set the time limit of solving each instance to be 3600 seconds.
The numerical results with sample size are displayed in Table 2, where we use BigM Model, Model, Model and ICCP Model denote exact formulation in Theorem 2, outer approximation in Corollary 4, approximation in Theorem 6 and inner chance constrained programming approximation in Corollary 5, respectively. We also use “Opt.Val” to denote the optimal value , “Value” to denote the best objective value output from an approximation model and “Time” to denote the computational time in seconds. Additionally, since we can solve exact BigM Model to the optimality, we use GAP denote the optimality gap of an approximation model, which is computed as
We also let denote the best found in ICCP Model. In BigM Model (10), we chose a lower bound of as . We chosen the big-M coefficients in BigM Model, Model, and ICCP Model according to the remarks after Theorem 2, Corollary 4, and Corollary 5, respectively, where . From Table 2, we see that all the models can be solved to the optimality within 2 minutes, where BigM Model and ICCP Model often take the longest time to solve, and for each instance, Model can be solved within a second. This might be because (i) Model is a second order conic program and does not involve any binary variables; (ii) on the contrary, the BigM Model not only has binary variables but also involves the most number of auxiliary variables, while to solve ICCP Model, one needs to solve regular chance constrained programs. In terms of approximation accuracy, we see that VaR Model is usually 2-3% away from the true optimality, Model is 1-2% away from the true optimality, while ICCP Model nearly finds the true optimal solution. This demonstrates that all of the proposed approximation models can find near-optimal solutions.
The numerical results with sample size are displayed in Table 3, where similarly, we use BigM Model, Model, Model and ICCP Model denote exact formulation in Theorem 2, outer approximation in Corollary 4, approximation in Theorem 6 and inner chance constrained programming approximation in Corollary 5, respectively. We use “UB” to denote the best upper bound found by BigM Model or Model, “LB” to denote the best lower bound found by BigM Model, Model, or ICCP Model, and “Time” to denote the computational time in seconds. Additionally, since we cannot solve the BigM Model to optimality, we use GAP denote its optimality gap, which is computed as
To evaluate the effectiveness of approximation models, we use Improvement to denote the percentage of differences between the bounds of approximation models and bounds of BigM Model, i.e., for the Model,
while for the Model or ICCP Model,
where Approximation Model here is either Model or ICCP Model. We found that ICCP Model is difficult to solve these instances to optimality, and thus we chose a particular in ICCP Model. Similarly, in BigM Model (10), we chose a lower bound of as , and the big-M coefficients in BigM Model, Model, and ICCP Model were computed according to the remarks after Theorem 2, Corollary 4, and Corollary 5, respectively, where . From Table 3, we see that Model can be solved to optimality within 2 seconds, while all the other models cannot be solved within the time limit. In terms of approximation accuracy, we see that VaR Model consistently provides better upper bounds and can help close more 10% optimality gap on average compared to BigM Model, Model often provides slightly better feasible solutions than BigM Model, while, ICCP Model yields the best feasible solutions. This demonstrates that all of the proposed approximation models are useful, to some extent, to improve the exact bigM model. In particular, Model provides a better upper bound, which helps evaluate the solution quality more accurately, Model and ICCP Model often provide better feasible solutions. Also, we notice that mixed integer programs Model and ICCP Model outperform BigM Model, which might be because (i) the BigM Model requires more auxiliary variables than Model or ICCP Model; (ii) the naive big-M coefficients of the BigM Model are typically larger than the other two. In practice, it is worthy of trying all the BigM Model, ICCP Model, and CVaR Model first, then choose the best solution from three models and use the outer approximation- VaR Model to provide a numerical optimality guarantee on how good the solution quality is.
2 Choosing a Wasserstein Radius using Cross Validation
for each and , and . For each , we independently generated from the uniform distribution on the interval $i\in[I]b^{i}:=50\delta\in\{0.01,0.02,\ldots,0.1\}$.
For the comparison purpose, we also solve a regular chance constrained programming counterpart of DRMKP (30) with respect to the empirical samples and used the same procedure to compute its 90-percentile violation. The numerical results are displayed in Table 4, where we use “CCP Model” to denote the chance constrained programming counterpart of DRMKP, and “Opt.Val” to denote the optimal value of a corresponding model.
3 Binary DRMKP: Strength of Big-M Free Formulation
and a lower bound of as . In the branch and cut implementation described in the end of Section 4, each time we added EPI inequalities.
The results are displayed in Table 5. We use BigM Model and BigM-free Model to denote the big-M formulation in Theorem 2 and big-M free formulation in Corollary 7, respectively. In addition, we use UB, LB, GAP, Opt.Val and Time to denote the best upper bound, the best lower bound, optimality gap, the optimal objective value, and the total running time in seconds, respectively.
From Table 5, we observe that the overall running time of BigM-free Model significantly outperforms that of BigM Model, i.e., almost all of the instances of BigM-free Model can be solved within 10 minutes, while the majority of the instances of BigM Model reach the time limit. The main reasons are two-fold: (i) BigM Model involves binary variables and continuous variables, while BigM-free Model only involves binary variables and continuous variables; and (ii) BigM Model contains big-M coefficients, while BigM-free Model does not. We also observe that, as the risk parameter increases or Wasserstein radius decreases, both formulations take longer time to solve, but BigM-free Model still significantly outperforms BigM Model. These results demonstrate the effectiveness of our proposed BigM-free Model.
Conclusion
In this paper, we studied a distributionally robust chance constrained problem (DRCCP) with Wasserstein ambiguity set. We showed that a DRCCP could be formulated as a conditional value-at-risk constrained optimization, thus admits tight inner and outer approximations. Once the feasible region is bounded, we showed that a DRCCP could be mixed integer representable with big-M coefficients and additional binary variables, i.e., a DRCCP can be formulated as a mixed integer conic program. We also compared various inner and outer approximations and proved their corresponding inclusive relations. We further proposed a big-M free formulation for a binary DRCCP and a branch and cut solution algorithm. The numerical studies demonstrated that the proposed formulations are quite promising.
Acknowledgments
The author would like to thank Professor Shabbir Ahmed (Georgia Tech) for his helpful comments on an earlier version of the paper. Valuable comments from the editors and three anonymous reviewers are gratefully acknowledged.