Solving Two-Stage Programs with Endogenous Uncertainty via Random Variable Transformation

Maria Bazotte, Margarida Carvalho, Thibaut Vidal

TL;DR

This paper introduces a novel method to solve complex optimization problems where uncertainty depends on the decisions made. By transforming the uncertain variables, they convert these "endogenous uncertainty" problems into more manageable ones with "exogenous uncertainty," making them solvable with existing tools. This approach significantly improves efficiency and solution quality for real-world problems like network design.

What Problem Does This Paper Address?

Many real-world optimization problems involve "decision-dependent uncertainty," also known as "endogenous uncertainty." This means the probability of future events isn't fixed but changes based on the decisions we make now. For example, how much inventory to stock might affect the probability of stockouts. Traditional optimization methods, like stochastic programming, are well-developed for "decision-independent uncertainty" (where probabilities are fixed), but struggle with endogenous uncertainty. This is because endogenous uncertainty often leads to highly complex, non-linear, and non-convex mathematical models that are computationally intractable. Existing methods for endogenous uncertainty are often problem-specific and lack generality. This paper aims to bridge this gap by providing a general, robust methodology to tackle a broad class of two-stage stochastic programs with endogenous uncertainty.

Methods

The core of the paper's methodology is random variable transformation. The authors propose transforming the endogenous random variables (those dependent on decisions) into new, exogenous random variables (independent of decisions). This is achieved through a transformation function, $t(x, \vartheta)$, where $x$ represents the first-stage decisions and $\vartheta$ is a decision-independent random vector. This transformation converts the original "endogenous uncertainty" problem into an equivalent "exogenous uncertainty" problem.

The paper then explores various techniques for defining these transformation functions, categorized into:

  • Inversion: Using the inverse of the cumulative distribution function to map a standard uniform random variable to the desired endogenous variable.
  • Enumeration: Directly considering all possible distributions when decisions involve selecting from a predefined set.
  • Standardization: For location-scale families of distributions, transforming variables to a standard form.
  • Convolution: Expressing complex random variables as sums of simpler ones.

Crucially, the authors show that for certain endogenous distributions, this transformation can yield mixed-integer linear or convex programs, which are much easier to solve. They also apply the Sample Average Approximation (SAA) method to solve these transformed problems, a standard technique for stochastic programming.

Datasets

The paper uses a case study based on the Network Design and Facility Protection Problem (NDFPP). The instances for this problem are generated following a procedure similar to that described in Bhuiyan et al. (2020). The generation process involves defining network structures (based on US city data), transportation costs, demands, protection costs, and disruption events with varying intensities. The authors consider five network sizes and three disruption intensity levels, creating a diverse set of problem instances for evaluation. No new datasets were introduced; existing data generation procedures were adapted.

Key Insights and Ideas

  • Transforming Uncertainty: The fundamental insight is that endogenous uncertainty, while complex, can often be "unpacked" and converted into a more manageable exogenous form through clever variable transformations. This is a powerful idea that generalizes existing approaches.
  • Convexity from Non-Convexity: A key finding is that even if the original problem is non-linear and non-convex, the transformed problem can become mixed-integer linear or convex, making it solvable by standard optimization solvers. This is a significant theoretical contribution.
  • SAA's Robustness: The paper demonstrates that the Sample Average Approximation (SAA) method, when applied to the transformed problem, performs exceptionally well, providing high-quality solutions and reliable estimators even for complex scenarios.
  • Efficiency Gains: The transformed approach, combined with SAA, is shown to be significantly faster than solving the original, non-convex formulations, especially for problems with many scenarios.

Key Results

The paper's main results are demonstrated through the NDFPP case study:

  • NDFPP-Selection: The SAA applied to the transformed problem (SAA-TP) consistently found feasible solutions with very low optimality gap over-estimators (0-1%). It outperformed the direct MILP formulation of the DE-OP (Deterministic Equivalent of the Original Program) in terms of both solution quality and computational time. The SAA-TP achieved optimality gaps close to 0% for all instances, while the DE-OP struggled to achieve gaps below 10% for most instances.
  • NDFPP-Binomial, Discrete, and Normal: For these variants, where the DE-OP is non-convex and linearization is difficult, the SAA-TP also yielded high-quality solutions with low optimality gap over-estimators (-1% to 1%). While computational times were longer than for NDFPP-Selection, they were still manageable, and the SAA-TP consistently found good solutions.
  • Value of Stochastic Solution (VSS): The SAA-TP consistently found better solutions than the Expected Value (EV) problem, highlighting the advantage of considering the full stochastic nature of the problem, even after transformation. VSS values varied significantly by instance, but were generally substantial.

Limitations and Future Work

  • Assumption 1: The methodology relies on Assumption 1, which states that there exists a decision-independent random vector $\vartheta$ and a transformation function $t(x, \vartheta)$ such that the endogenous variable $\xi_x = t(x, \vartheta)$. While the authors argue this is not restrictive, its applicability to all endogenous uncertainty scenarios might need further exploration.
  • Assumption 2: The method also assumes that the continuous relaxation of the second-stage transformed program is convex (Assumption 2). If this doesn't hold, further problem-specific analysis or linearization techniques might be required, potentially increasing complexity.
  • Random q, T, W: The paper notes that when cost vector $q(\omega)$, technology matrix $T(\omega)$, or recourse matrix $W(\omega)$ are themselves random (beyond the endogenous uncertainty in capacity), achieving a convex relaxation for the transformed program becomes more challenging.
  • Future Work: The authors suggest several avenues for future research:
  • Exploring additional transformation techniques.
  • Developing methods to handle cases where $q(\omega)$, $W(\omega)$, or $H(\omega)$ are random.
  • Investigating how endogenous uncertainty affects the Value of the Stochastic Solution (VSS).
  • Extending the approach to scenarios where the probability distribution is not known a priori.
  • Applying the methodology to other problems, such as post-disruption edge failure and facility location.

Summary updated

Abstract

Real-world decision-making problems often involve decision-dependent uncertainty, where the probability distribution of the random vector depends on the model’s decisions. Few studies focus on two-stage stochastic programs with this type of endogenous uncertainty, and those that do lack general methodologies. We propose a general method for solving a class of these programs based on random variable transformation, a technique widely employed in probability and statistics. The random variable transformation converts a stochastic program with endogenous uncertainty (original program) into an equivalent stochastic program with decision-independent uncertainty (transformed program), for which solution procedures are well studied. Additionally, endogenous uncertainty usually leads to nonlinear nonconvex programs, which are theoretically intractable. Nonetheless, we show that for some classical endogenous distributions, the proposed method yields mixed-integer linear or convex programs with exogenous uncertainty. We validate this method by applying it to a network design and facility-protection problem, considering distinct decision-dependent distributions for the random variables. Although the original formulation of this problem is nonlinear nonconvex for most endogenous distributions, the proposed method transforms it into mixed-integer linear programs with exogenous uncertainty. We solve these transformed programs with the sample average approximation method. We highlight the superior performance of our approach compared with solving the original program in the case that a mixed-integer linear formulation of this program exists. History: Accepted by Pascal Van Hentenryck, Area Editor for Computational Modeling: Methods & Analysis. Funding: This research was funded by Scale AI [the SCALE-AI Chair in Data-Driven Supply Chains], the Fonds de recherche du Québec [the FRQ -IVADO Research Chair], the IVADO [the FRQ -IVADO Research Chair], and the Natural Sciences and Engineering Research Council of Canada [Grant 2024-04051]. Supplemental Material: The software that supports the findings of this study is available within the paper and its Supplemental Information ( https://pubsonline.informs.org/doi/suppl/10.1287/ijoc.2024.0847 ) as well as from the IJOC GitHub software repository ( https://github.com/INFORMSJoC/2024.0847 ). The complete IJOC Software and Data Repository is available at https://informsjoc.github.io/ .
BibTeX
@inproceedings{bazotte2025solving,
  author = {Maria Bazotte and Margarida Carvalho and Thibaut Vidal},
  title = {{Solving Two-Stage Programs with Endogenous Uncertainty via Random Variable Transformation}},
  booktitle = {INFORMS},
  year = {2025},
  doi = {10.1287/ijoc.2024.0847},
}
Figure