WorksMathematics
Decision-Focused Learning for Multistage Stochastic Programs, with Application to Power Network Repair Scheduling
Abstract
Multistage stochastic programs (MSPs) with discrete decisions are hard to solve due to the curse of dimensionality, non-convex value functions, and scenario trees that grow exponentially with the horizon. We develop a decision-focused learning (DFL) framework for MSPs in which a neural network predicts scores for the part of the decision that drives the state transition. Under structural conditions that make this sub-decision enter the stage objective linearly, the network is trained on labels from offline single-scenario problems, using the Fenchel-Young loss with perturbed optimizers, which need only an optimization oracle. We apply the framework to repair scheduling in power networks under stochastic, time-varying component failures, with and without a per-stage repair budget. On a synthetic 5-bus network and on the IEEE 14-bus network at two repair-cost scales, the learned and baseline policies are compared on common evaluation paths. Without the budget, DFL is the cheapest policy on the 5-bus network; on the 14-bus network it does not outperform a near-sighted model-predictive control (MPC) baseline, but it beats repairing every failed component at the higher scale. Under a binding budget, DFL is the cheapest policy evaluated on both networks and at both scales, 14% to 23% below the next-best policy. On the 5-bus network, the mean cost of DFL is 1.7% (without the budget) and 1.8% (with it) above the exact optimum computed by dynamic programming. Within days of computation, sample average approximation yields costlier policies than DFL and the repair-everything heuristic, and stochastic dual dynamic integer programming remains far from convergence. DFL computes its decisions about as fast as the trivial heuristics and orders of magnitude faster than MPC. Since these conditions are not specific to power networks, the framework extends to other MSPs that share this structure.
Introduction
Multistage stochastic programs (MSPs) model decisions that adapt to information revealed over time and arise in, among other fields, inventory management, energy dispatch, financial optimization, supply chain planning, and, as studied here, power grid operations under uncertainty. Their exact solution is hindered by three related difficulties: value functions must be represented over a state space whose size grows exponentially with its dimension; integer decisions can make these functions non-convex; and a scenario tree with branches per stage has leaves, a number exponential in the horizon . SDDP ([17, 18]) relies on convex stage problems and does not directly accommodate integer recourse. Its integer extension SDiP ([26]) converges finitely for binary state variables, so continuous states must be approximated by binarization, and its worst-case effort grows exponentially with the number of binary state variables. SAA ([13, 22]) produces deterministic mixed-integer programs that grow with the scenario tree. We ask whether the part of the continuation value that the current decision needs can be learned from offline data, without reconstructing the value function or building a scenario tree. Building on decision-focused learning (DFL) [14] (Elmachtoub and Grigas 2022), under the structural conditions stated in § 3, we parameterize the continuation value linearly in a learnable sub-decision and train the resulting optimization layer against decision quality. Training labels come from offline, single-scenario perfect-information MIPs, as is common in optimization-augmented machine learning [21]. These MIPs grow only linearly with the horizon, and deployment avoids both backward recursion and scenario trees.
We instantiate the framework for repair scheduling in power networks under time-varying stochastic component failures, motivated by severe-weather risk. At each stage, the operator dispatches power under DC Optimal Power Flow constraints and schedules repairs. Structural analysis (§ 4.3) yields a closed-form threshold repair rule at each stage, driven by learned continuation-value coefficients that depend on the state and the stage; a per-stage budget instead couples the repairs of a stage through a knapsack constraint.
Our contributions are threefold. First, we present a general DFL framework for MSPs, identify conditions supporting a linear continuation-value parameterization, and provide a training and deployment procedure. Second, we formulate power-network repair scheduling under stochastic component failures as a worked example and identify the decomposition and decoupling properties that make the framework applicable. With the budget, the knapsack surrogate is not separable, so training uses the general perturbed-optimizer estimator of § 3.3. Third, experiments on synthetic 5-bus and IEEE 14-bus networks show that DFL is the cheapest policy evaluated under a binding per-stage budget, that its advantage over repairing every failed component grows with the repair-cost scale, and that it deploys at the cost of a simple heuristic.
The paper is organized as follows. § 2 reviews related work, followed by § 3, which develops the general DFL framework for MSPs. Then, in § 4, we formulate the repair scheduling problem and identify its structural properties. § 5 presents computational experiments, and finally, § 6 concludes. The appendix collects the proofs and the Fenchel–Young background (Section A), the learning implementation (Section B), the full model and failure process (Section C), the specifications of the comparison methods (Section D), and how each method used the computing resources (Section E).
Literature Review
Multistage stochastic programming. The MSP framework, including the value functions on which the solution methods below rest, is developed in Shapiro et al. [22]. The dominant exact approaches represent the future explicitly, either through cuts built by backward recursion, as in SDDP [17, 18] and SDDiP [26], or through an explicit scenario tree, as in SAA [13]. Their cost is driven by the number of cuts or scenario-tree nodes required before that representation is accurate enough, which with discrete decisions runs into the difficulties summarized in § 1.
Decision-focused learning. Our learning machinery comes from decision-focused learning, whose premise is the predict-then-optimize paradigm of Elmachtoub and Grigas (2022): rather than minimizing prediction error, one trains directly against the quality of the resulting decision. The survey of Mandi et al. [14] gives a comprehensive account. The central technical obstacle is differentiating through a combinatorial optimization layer, and it has been addressed through Quadratic Program (QP) differentiation via the implicit function theorem [2], the Fenchel–Young loss framework [6], and perturbed optimizers [4], the latter two connected through Fenchel duality in Berthet et al. [4] and set in a general probabilistic framework by Dalle et al. [7]. These tools, however, are almost always deployed in a single-stage setting, where one prediction feeds one downstream optimization, and only rarely in a two-stage one; in multistage settings they have, to our knowledge, appeared only in problem-specific forms [3, 20]. The closest step toward a general multistage method is decision-focused forecasting [19], which forecasts the exogenous parameters entering a multistage program and backpropagates decision regret through the entire solve; it is restricted, however, to convex stage problems with a differentiable solution map and does not treat integer or combinatorial stage problems.
Power network optimization. Our worked example builds on the DC optimal power flow model (reviewed in Wood et al. [24]), written in the network-agnostic operator form of Zhou et al. [25], which we adopt and extend to a multistage setting with repair decisions. Service restoration after outages has been studied mostly for distribution grids [9, 11]. The influence of adverse weather on component failure rates is examined in Panteli and Mancarella [15], and time-varying failure probability models under severe weather are developed in Alvehag and Söder [1] and Wang and Billinton [23]. To schedule repairs against these failures, that literature relies largely on heuristics or on stochastic and robust MILP formulations, whose cost grows quickly with the number of components and the planning horizon. We instead cast repair scheduling under such stochastic, time-varying failures as an instance of our multistage DFL framework, and we benchmark it against an exact multistage method by running SDDiP through the SDDP.jl implementation of Dowson and Kapelevich [8].
Positioning. The closest works are Baty et al. [3] on dynamic vehicle routing and Rautenstrauß and Schiffer [20] on ambulance dispatching and redeployment. In both, a learned model predicts the parameters of an optimization layer designed for the application (prizes in a prize-collecting routing problem, edge weights in a bipartite matching) and is trained with a perturbed loss to imitate perfect-information solutions. We use the same training scheme, but our layer comes from the MSP itself. For any MSP that meets two structural conditions (§ 3), it is the stage problem in which the continuation value is replaced by a linear function of the sub-decision driving the state transition, with learned coefficients. When the optimal cost of the remaining decisions does not depend on that sub-decision, as in our application, the layer is a linear-objective oracle, so the Fenchel–Young loss and perturbed-optimizer gradients apply without making the solver differentiable, even when the stage problems are mixed-integer. Unlike the classical MSP methods, the approach uses no backward pass or scenario tree, and at deployment it solves one stage problem per stage. Our contribution is this general construction, the conditions under which it applies, and a worked application; the Fenchel–Young and perturbation results we rely on are established ([6, 4, 7]), and we collect them with their proofs in Section A.
A DFL Framework for Multistage Stochastic Programs
Multistage stochastic programming
Let be a finite planning horizon. At each stage the system occupies a state , an exogenous random variable is revealed, the controller selects a decision , pays stage cost , and the state evolves as . A policy is a collection of decision rules , each selecting a feasible decision from the information available at stage . The non-anticipativity requirement is that this choice depend only on the realizations observed up to stage , never on future realizations ; equivalently, each decision is -measurable. The MSP minimizes total expected cost over all non-anticipative policies:
We assume throughout that (1) satisfies complete recourse: for every , , , the feasible set is non-empty. We also assume that the shocks are stagewise independent, so that is a Markov state, and that the minima below are attained; both conditions hold in our application. Under these conditions and standard measurability and integrability requirements (Shapiro et al. [22]), the value functions are well defined and the optimal value of (1) satisfies the Bellman equations with :
An optimal policy is then any non-anticipative rule that selects, at every stage and state, a minimizer of the inner problem in (2). We will refer to as the continuation value at state ; it equals the expected optimal cost from stage onwards, starting from state .
Linear continuation-value parameterization and the DFL surrogate
Instead of reconstructing , our approach identifies, within the problem structure, a low-dimensional parameterization of the continuation value that is linear in the decisions of interest and that can be learned from offline data.
Assume the decision decomposes as into a learnable sub-decision and a complementary part . The DFL framework requires two structural conditions on this decomposition.
Assumption 1 (State-transition separability). The state transition depends on the full decision only through :
Assumption 2 (Linear stage cost in ). The stage cost decomposes as
for a fixed cost vector , where does not depend on .
Denote the marginal feasible set for by
Under Assumptions 1 and 2, the Bellman equation (2) factors as
where
is the optimal inner cost for a fixed . The feasible set in (5) may depend on , in which case is itself a function of and remains inside the outer minimization, while by Assumption 1 the continuation value depends on the decision only through .
The factorization (4)–(5) is exact under the two assumptions. The framework then approximates the continuation value by a function that is affine in :
where are the continuation-value coefficients, and is an additive baseline independent of (it does not affect the surrogate optimization). Substituting into (4) and dropping the constant , the stage surrogate for , which is the optimization layer of our framework, is
This is a (possibly combinatorial) optimization problem parameterized by . A neural network maps the observable state to ; the network is trained so that solving (7) with the predicted reproduces the perfect-information labels , obtained by solving the horizon-wide deterministic problem on a single sampled scenario (§ 3.4).
Remark 1 (Linear-objective oracle). The Fenchel–Young machinery of Section 3.3 needs only an oracle that maximizes a linear objective over a compact feasible set, which may be binary, discrete, continuous, or mixed. The surrogate (7) is such an oracle when is independent of , or affine in it with its coefficient absorbed into the score: in the independent case it reads with effective score .
Remark 2. Together with the condition on in Remark 1, Assumptions 1 and 2 are sufficient, not necessary, for a linear-objective surrogate. Assumption 1 makes the continuation value a function of alone, and Assumption 2 makes the known cost linear in , so the affine correction (6) enters the surrogate linearly. DFL has also been applied where a linear-objective surrogate of the downstream problem is identified by other means, as in the structured approximation scheme of Parmentier and T’Kindt [16], its multistage instantiation for dynamic vehicle routing in Baty et al. [3], and the variants collected in the survey of Mandi et al. [14]. The assumptions say nothing about how accurate the affine form (6) is, a question we return to in § 6; the present paper stays within this linear case and leaves non-linear surrogates to future work.
Learning with the Fenchel–Young loss and perturbed optimizers
Let be the compact feasible set of the oracle, its convex hull, and a convex regularizer with conjugate . The Fenchel–Young (FY) loss of Blondel et al. [6] is
and, when is strongly convex, its gradient is , where is the maximizer in (Proposition A.1 in Section A). Computing over the convex hull is itself a hard problem. Berthet et al. [4] instead use the perturbed optimizer: fix , let be a random vector whose distribution has a positive, differentiable density on , a finite first moment, and , and define
One estimates it without bias by Monte Carlo: sampling , solving for each , and averaging. Each sample requires a single call to any solver that maximizes a linear objective over , with no solver modifications. For the regularizer induced by , is the regularized decision of , so is the exact gradient of the FY loss (Theorem A.1 in Section A; Berthet et al. [4], Dalle et al. [7]). The FY loss can therefore be minimized without forming , by solving problems with randomly perturbed linear objectives over .
Training and deployment
Training scenarios may be sampled from a known distribution of or taken directly from historical data.
Training. For each training scenario , solve the single-scenario MIP (the deterministic -stage problem with fixed realization ) to obtain the perfect-information labels . Each such MIP sees the whole sampled trajectory before deciding, so these labels are optimal in hindsight for that trajectory and are not draws from an optimal non-anticipative policy; their conditional mean need not coincide with the optimal online action. Training non-anticipative policies on such labels follows established practice ([21, 3, 20]). Single-scenario MIPs have no scenario branching: their size grows linearly with the horizon rather than exponentially with the scenario tree, and the offline training cost is discussed in § 5.7. The learning goal is to minimize the aggregate FY loss
by stochastic gradient descent. Here is the effective score of Remark 1, the same score the oracle uses at deployment, and the gradient with respect to the network output is (§ 3.3). Training therefore identifies the scores only through the decisions they induce: it fits them so that the oracle reproduces the labels, and the fitted scores do not need to reflect the true continuation values.
The single-scenario MIP may have several optimal solutions, such as symmetric repair schedules, of which the solver returns one; (10) then targets that particular vector, although the alternatives encode the same scenario cost. Separately, incumbents accepted within the solver’s optimality tolerance may be slightly suboptimal, so a label may differ from every exact optimum.
Deployment. At each stage : (1) observe and ; (2) compute via a single forward pass; (3) solve the surrogate problem ((7)) for ; (4) solve the inner problem for . Steps (3)–(4) together solve one stage of the recourse problem, so deployment proceeds one stage at a time, without a scenario tree or dynamic programming.
Optimality of the DFL policy
Two sources of error separate the learned policy from an optimal one: the affine form ((6)), and the learning step, through the imitation of perfect-information labels, the finite training sample, the capacity of the network class, and the numerical optimization of the loss. The following proposition states when the resulting policy is optimal.
Proposition 1 (Conditional optimality of the DFL policy). Suppose that at every stage and every reachable pair , there exist and such that for all , and that at all these pairs. Then, the DFL policy is optimal for (1).
The proof is given in Section A.3. Proposition 1 describes the ideal case that the framework approximates, not a guarantee for the trained network, which is fitted to perfect-information labels (§ 3.4). On the 5-bus network, where the optimal expected cost can be computed exactly, the mean cost of the learned policy is 1.7% above it without a repair budget and 1.8% above it with one (§ 5).
Power Network Repair Scheduling
We now instantiate the general framework of § 3 for the power network repair scheduling problem: we adapt a standard DC-OPF to account for component outages, formulate the multistage stochastic problem, and identify the structural properties that make the DFL framework applicable.
DC optimal power flow
Starting point. We adapt the network-agnostic DC-OPF in Equation (3) of Zhou et al. [25]. The directed network has buses and lines, with bus–line incidence matrix and diagonal susceptance matrix . It contains generators, with generation , linear cost , and limits , and loads with demand ; are the line limits. Bus-mapping matrices and place each generator and each load at its bus, and under the DC approximation (Wood et al. [24]), voltage angles induce line flows .
Extension to time-varying availability and load shedding. Our multistage formulation extends that starting point in two ways. First, component failures change the network: failed generators are taken offline, and failed lines are disconnected, that is, removed from the network so that they carry no power and impose no coupling between their endpoint voltage angles. We model this through a time-varying availability vector , where if component is operational at stage and if it is failed (defined precisely in § 4.2). Because a line outage is a topology change, we introduce explicit line-flow variables and impose the DC power-flow law conditionally on line availability. Second, demand may be unserved: we introduce the demand served and penalize load shedding at rate . The resulting stage- DC-OPF is
where denotes element-wise multiplication, bounds the bus voltage angles, and with is a valid big- constant, the largest value of over the angle bounds. When , the two line constraints reduce to the DC power-flow law and the thermal limit . When , the capacity constraint forces , while the conditional law relaxes to a bound implied by the angle bounds, so it imposes no relation between the two endpoint angles: the failed line is fully removed from the network and, carrying no flow, drops out of the flow-form balance. Likewise, forces . For fixed , (11) is therefore the DC-OPF on the energized subnetwork ; if splits into islands, pins the angle datum of the island containing the reference bus, and the angles of every other island are determined only up to a common offset, which the angle bounds restrict and which has no effect on the flows, the dispatch, or the cost. When (as in all our experiments), the all-off dispatch (with ) is feasible; hence (11) admits complete recourse for any .
The multistage repair-scheduling problem
Within-stage chronology. Each stage unfolds in a fixed order: the failure vector is revealed; the availability updates to (a component whose repair completes at stage is not exposed to ); observing , the operator dispatches and chooses which failed components to repair, ; and the repairs, together with , determine :
State variables. The component availability vector records, for each component , whether it is operational () or failed () at stage , accounting for any failure events and repair completions that have occurred up to and including stage . As a modeling device, all components are operational and no repair is pending before the horizon, and ; the availability then follows from the first failure draw, so components may already be failed at .
Stochastic dynamics. At each stage , the failure event vector is revealed. For every component, independently across time and components, regardless of its state; by (12), a shock has an effect only on a component that is operational at , so is the failure probability of an operational component. The failure process is the only source of randomness in the model: the load profile is exogenous, deterministic, and known to the operator at every stage. The availability at stage is then updated component-wise according to:
where for all (no repairs before the planning horizon). The condition means that the repair was ordered stages earlier. For this reduces to , which is the case used in the experiments of § 5; for general , the dynamic-programming state must additionally track repairs in progress through a -position pipeline; the MIP formulations used for SAA, SDDiP, and the training labels include this pipeline, whereas the inputs of our learned policy cover only.
Stage decisions. Given , the decisions at stage are:
Dispatch: solving the DC-OPF (11) with availability ;
Repair: with (only failed components can be repaired).
Stage cost. The stage cost sums dispatch cost and repair fees:
where collects the component repair costs, and (only a generator with zero capacity has zero repair cost).
The multistage problem. The repair-scheduling problem is the multistage stochastic mixed-integer program (MSMIP)
subject to, at every stage , the constraints of (11) at availability , the dynamics (12) with and , and binary repairs with . The policy is non-anticipative: each and is -measurable. The budgeted variant below adds (15), and Section C states both programs in full.
Extension: a per-stage repair budget. In practice, the money available for repairs at each stage is often limited, so we also consider a variant of (14) with a per-stage repair budget. Let be an exogenously given repair budget at stage (not accumulated or carried over); the model then gains the single coupling constraint
Because the budget is not carried over, it introduces no new state variable, and the state carried to the next stage (§ 4.3) remains unchanged; however, it couples the per-stage repair decisions, which must now be jointly affordable. This single change is sufficient to break the component-wise separability exploited in § 4.3: we treat the budgeted variant as an extension of that section and use it to illustrate the general, non-separable case of the framework.
Failure probability model. The time-varying failure probability of component is specified by a synthetic log-linear logit model that emulates the non-constant temporal risk profile of a severe-weather event:
with a global shift constant. The parameters and are set so that peaks at stage with value ; Section C gives the expressions, the condition on , and the resulting profiles. With and for every component, as in our experiments, each failure probability is above up to stage 4 and below it from stage 5 on, whatever its peak value. This specification is a synthetic modeling choice and is not calibrated to meteorological data. The DFL framework and its training procedure do not depend on it: the failure probabilities enter only through the sampled scenarios.
Structural analysis: decomposition choice and the threshold policy
Proposition 2 (Dispatch–repair decoupling). Under model (14), the dispatch decisions do not appear in the state transition (12). Consequently, the next-stage availability and the continuation value depend on stage- decisions only through the repair vector . Moreover, for fixed , the optimal dispatch cost is independent of .
Proof. The dynamics (12) involve only availabilities, shocks, and past repairs, so the dispatch variables do not enter them and depends on stage- decisions only through . For fixed , the DC-OPF (11) contains no repair variable, so its optimal value does not depend on .
Proposition 2 makes the minimal natural decomposition: the transition depends only on , while the stage cost is linear in it, so Assumptions 1 and 2 hold with . Larger decompositions containing dispatch variables remain valid but unnecessarily embed the DC-OPF in the learning layer. Since does not depend on , the surrogate (7) reduces to a linear problem in only repair variables, making the FY loss directly applicable (Remark 1); component-wise separability then yields the threshold policy below.
Value convention. § 3.1 defines before the shock of stage . In the repair problem with , the state carried from stage to stage is : it is observed before and depends on the stage- decisions only through , as Assumption 1 requires. We write for the optimal expected cost from stage onwards given the post-shock availability . With , intersected with (15) when the budget applies, and the next availability under (12),
Thus is the pre-shock value of § 3.1 at , and the optimal expected cost is . It is this expected continuation value that we approximate linearly (the specialization of (6) to the repair problem):
where are the continuation-value coefficients of the repairs: in (18), plays the role of the expected future cost reduction from initiating a repair of component at stage .
In the repair problem, the stage surrogate (7) becomes
Its objective is and each constraint involves a single component, so the problem separates across components. Its optimal solution, with ties broken toward not repairing, is the threshold repair policy: repair component if and only if its estimated future benefit exceeds its immediate cost and it is currently failed, that is
(Section A.3 gives the formal argument).
Neural network predictor. A feedforward network maps the feature vector (availability plus normalized stage index) to . For convenience, the implementation outputs the effective scores of Remark 1 directly, which is equivalent since is fixed, and (20) repairs a failed component if and only if , with no further optimization. Because the surrogate (19) is separable, the smoothed decision map (9) is available in closed form. Our unbudgeted runs perturb with standard logistic noise, for which
where is the logistic function. The training gradient is , requiring no solver calls at training time; Section B compares this choice with Gaussian noise.
Extension: when a budget couples the components. The budgeted variant (15) is exactly a non-separable instance. With the per-stage constraint , the separable surrogate (19) becomes a 0/1 knapsack over the failed components,
with item value , weight , and capacity (at deployment the values are nominal, so negative-value items, , never enter; in training they are perturbed first, so any failed component may enter). Its feasible set
is no longer a box, so the perturbed optimum no longer factors across components and the threshold rule (20) and closed-form smoothing (21) no longer hold. The Fenchel–Young loss (8) keeps its form with effective score , and the gradient is still ; but the smoothed decision map is now the perturbed knapsack optimum
which has no componentwise closed form (because is not a box) and is estimated by Monte Carlo perturbation: one knapsack solve per sample, exactly the general estimator of § 3.3, with only the objective coefficients perturbed while the weights and the capacity stay fixed. The single-scenario training labels and all baselines (§ 5) also respect (15). A slack budget returns the deployment decision to the threshold rule (20) (Section A.3 gives the exact conditions, including those for the smoothed map), so a binding budget is what makes the extension non-trivial: it removes the separability specific to the power-network problem and requires the general estimator of § 3.3.
Computational Experiments
Experimental Setup
Test networks. Two benchmark networks are used: a synthetic 5-bus network (, ), which serves as a small validation instance, and the IEEE 14-bus network, case14 (, ). All experiments run over a stage horizon with repair delay . In the DC-OPF (11), the voltage-angle bound is set to in all experiments, so the big- constants are ; the generation lower limits are (no must-run generation).
Demand is constant over the horizon, at every stage, equal to the nominal bus loads of the network data, and each stage is costed as one hour of operation, so a shortfall in MW corresponds to the same amount in MWh of unserved energy.
Failure parameters. Components are assigned to two vulnerability classes with equal probability (50% each): standard () and elevated (), with peak failure stage and global shift . The value of lost load is /MWh. Baseline repair costs are capacity-proportional: generator mean $550 and line mean $350. Because these failures are synthetic and independent across components, and their probabilities peak already at the first stage, the experiments below are algorithmic stress tests that compare solution methods under one deliberately severe failure regime.
DFL training. The neural network has three hidden layers and is trained with Adam and early stopping at perturbation temperature ; Section B lists all settings and documents the stop-gradient form of the loss used in the implementation. Training labels come from single-scenario MIPs solved to a relative gap of . In the budgeted variant the perturbed knapsack oracle (24) is estimated with Monte Carlo samples per training example. We sweep 15 training sizes from 25 to 120,000 single-scenario MIPs. Each MIP contributes stage-level examples, and the training sets are nested: each size uses the first scenarios of one common sample. The stage-level examples are split at random into 80% training and 20% validation, and the validation loss drives the learning-rate schedule, early stopping, and the choice of the restored checkpoint. Every size is trained from five weight-initialization seeds, which change only the initial weights; the data, the split, the dropout masks, and the batch order are shared.
Baselines. Five baselines are evaluated alongside DFL. NoRepair never initiates a repair, and AlwaysRepair repairs every failed component at every stage except the last, where a repair could not complete within the horizon; these are the two trivial heuristics. SAA solves a single extensive-form MILP on a sampled binary scenario tree over the 14 stages and is evaluated by rolling its node policy out on the common evaluation paths with nearest-child matching. SDDiP runs Lagrangian cut generation through SDDP. [8] until the shared wall-clock limit, and its final policy is evaluated on 500 simulations drawn from its own stagewise distribution rather than on the common evaluation paths. Section D gives both specifications.
Because the two trivial heuristics are near-optimal only in the extreme cost regimes (§ 5.2), we add a non-anticipative baseline that plans ahead: Near-sighted MPC (Model Predictive Control), a certainty-equivalent, finite-horizon model-predictive controller. At each stage it rolls the failure process forward at its mean over a window of stages, scoring the resulting fractional availabilities with a DC-OPF whose line and generator parameters are scaled by them, optimizes the repair schedule over that window, executes only the current-stage repairs, and replans after observing the next failures. We call it “near-sighted” since it assigns zero value to anything beyond its planning window (no terminal cost-to-go or continuation value). Its schedule search is exhaustive for up to seven simultaneously failed components and samples schedules beyond that. It is non-anticipative by construction and uses no learning; Section D.2 presents the algorithm in full and details how it differs from a complete stochastic MPC.
Because the 5-bus instance has only seven failure-prone components, we additionally compute its exact optimal expected value by finite-horizon dynamic programming and use it as a benchmark. For the empirical policy comparison, all methods except SDDiP, which is evaluated internally as described above, are tested on the same 500 evaluation paths, sampled with a seed different from that of the training scenarios. These paths are separate from model fitting, but we also used them to choose the operating scales (§ 5.2) and, for each configuration, the reported training size (the one with the lowest mean cost).
Compute environment. Every run, for every method, used the same type of node on a high-performance computing cluster (AMD EPYC 7H12 CPUs; 64 cores and 112 GB of memory requested per job; no GPUs) under a wall-clock limit of 117 hours (roughly 4.9 days) per job; Section E describes how each method used these resources. The code, with its solver settings, job scripts, and seeds, is publicly available.
Cost-Regime Analysis and Parameter Selection
Depending on the ratio between the load-shedding penalty and the component repair costs , the problem tends toward one of two trivial extremes. When repairs are nearly free, repairing every failed component immediately is near-optimal (AlwaysRepair); when repairs are prohibitively expensive, never repairing dominates (NoRepair). The informative regime lies in between, where the operator must decide which components to repair and when. To locate it, we fix and scale all repair costs by a common factor .
Figure 1 sweeps on the unbudgeted problem and reports the relative advantage of DFL over AlwaysRepair. On 5-bus, DFL is ahead at every scale tested, with a margin that stays small while repairs are cheap and grows once they become expensive. On case14, AlwaysRepair is strictly better over most of the range; the advantage changes sign between the sweep points and , near by linear interpolation, and widens quickly beyond them. On both networks, DFL’s advantage over AlwaysRepair thus grows with the repair-cost scale.

Figure 1. Relative advantage of DFL over AlwaysRepair vs. repair cost scale , unbudgeted problem. Note. Vertical axis: ; positive means DFL is cheaper. Each point is a single-seed DFL model trained on scenarios and evaluated on the 500 evaluation paths, so the values differ from the five-seed means of Table 1. The case14 operating scales and lie between the sweep points , , and .
We choose the operating scales from the unbudgeted problem. A binding per-stage cap (15) removes feasible repair schedules and forces the operator to choose among failed components, so a scale at which repair selection already matters without the cap remains relevant once the cap is imposed. We fix
and all experiments in § 5.3–§ 5.7 use these scales, with every method evaluated at the same per-network scale. For 5-bus, lies in the range where DFL’s advantage over AlwaysRepair grows with . For case14, we choose two scales around the unbudgeted crossover: , where repairs are cheaper relative to the load-shedding penalty and selective repair has less room to pay off, and , close to the crossover. § 5.4 compares the unbudgeted results at both scales, while § 5.5 reports how the comparison at changes once the cap restricts the repairs that can be made at each stage.
Empirical Learning Curves
We now examine how DFL’s cost on the evaluation paths changes with the size of the training set at the operating scales in (25). For each network we train DFL at 15 sizes from 25 to 120,000 single-scenario MIPs and evaluate each trained model on the 500 evaluation paths; the budgeted sweep is capped at $n=80,000. To distinguish the effect of training-set size from variation due to weight initialization, we train five independently initialized models at each size.
Figure 2 shows the DFL mean cost on the evaluation paths one standard deviation across the five seeds, as a function of , without the budget (panels a and b) and with it (panels c and d).

(a) (a) 5-bus (), unbudgeted

(b) (b) case14 (), unbudgeted

(c) (c) 5-bus (), budgeted

(d) (d) case14 (), budgeted
Figure 2. DFL mean cost on the evaluation paths (std across five seeds) vs. training size. Note. Panels (c) and (d) use the per-stage budget (, § 5.5) and are trained through the perturbed-knapsack oracle; the budgeted sweep is capped at . Dashed: AlwaysRepair; dotted: NoRepair; dash-dotted: Near-sighted MPC.
Most of the improvement occurs at relatively small training sizes. On 5-bus () for instance, performance varies considerably below , but DFL moves below AlwaysRepair at and changes little beyond ; over this range, the standard deviation across seeds remains below $30k. § 5.4 compares this policy with the baselines in greater detail.
DFL versus Baselines
Table 1 reports, for each network at its operating scale, the mean cost of every method over the 500 evaluation paths, without the budget (upper panel) and with it (lower panel, § 5.5).
| Network | NoRepair | AlwaysRepair | MPC | SAA | DFL | Savings | |
| Without budget | |||||||
| 5-bus () | 15,000 | 2,511,488 | 1,506,639 | 1,445,096 | 2,028,014 | 1,406,419 | +6.7% |
| case14 () | 30,000 | 3,614,867 | 2,098,438 | 1,949,190 | 3,193,445 | 2,271,956 | −8.3% |
| case14 () | 100,000 | 3,614,867 | 2,369,039 | 2,107,215 | 3,255,115 | 2,318,269 | +2.1% |
| With per-stage budget () | |||||||
| 5-bus () | 60,000 | 2,511,488 | 1,937,457 | 2,403,624 | 2,069,534 | 1,520,472 | +21.5% |
| case14 () | 15,000 | 3,614,867 | 2,842,476 | 2,600,141 | 3,240,817 | 2,235,973 | +21.3% |
| case14 () | 80,000 | 3,614,867 | 3,052,613 | 3,390,760 | 3,214,677 | 2,340,615 | +23.3% |
Table 1. Mean cost on the evaluation paths by method at the chosen operating scales, without and with a binding per-stage repair budget (). Note. Mean total cost ($) over the 500 evaluation paths; bold marks the cheapest policy in each row. DFL is the five-seed mean at its best training size; with the budget, its across-seed std is $2,011, $68,890, and $49,014 (top to bottom). Savings = , positive when DFL is cheaper than AlwaysRepair (AR). With the budget, AlwaysRepair repairs as many failed components as the budget allows, cheapest first, except at the last stage; the schedule filter of Near-sighted MPC receives the cap; and DFL solves the knapsack (22).
Across the two case14 rows, DFL’s saving over AlwaysRepair changes sign: DFL remains behind the strongest baselines at but moves ahead of AlwaysRepair at . On 5-bus, DFL is the cheapest policy evaluated, 6.7% below AlwaysRepair, though Near-sighted MPC is close behind at 2.8% above DFL. The exact optimal expected cost, computed by dynamic programming, is $1,382,625, so the DFL mean lies 1.7% above it. On case14 at , DFL is not cheapest: Near-sighted MPC and AlwaysRepair both undercut it, by 14.2% and 7.6% of the DFL cost. At , DFL moves 2.1% below AlwaysRepair, though Near-sighted MPC remains the cheapest policy at that scale; § 5.5 shows that this ordering reverses once the cap binds.
The cost decomposition shows where the differences arise. On case14 at , DFL spends $540,798 on repairs, compared with $1,217,706 for AlwaysRepair, but sheds 1,714 MWh instead of 857 MWh, and the additional load-shedding cost exceeds the saving on repairs. At , DFL spends $517,535 against $1,488,307 and sheds 1,784 MWh against 857 MWh. On 5-bus at , DFL spends $381,209 on repairs, compared with $737,884 for AlwaysRepair, while shedding 988 MWh instead of 726 MWh; here the additional load-shedding cost is smaller than the repair expenditure avoided. In all three unbudgeted configurations, DFL repairs less and sheds more load than AlwaysRepair. Across scenarios, the standard deviation of the DFL cost is lower than that of AlwaysRepair and Near-sighted MPC on 5-bus and on case14 at , and comparable at .
Budgeted Repair Extension: Results
We next consider the budgeted variant (15), in which the per-stage constraint couples the repair decisions. As established in § 4.3, a binding budget removes the separability of the unbudgeted surrogate. The stage surrogate becomes the 0/1 knapsack problem (22), the closed-form rule (20) is no longer applicable, and training uses the general perturbed-optimizer estimator of § 3.3. We set the stage budget to of the cost of repairing all components, so that at every stage. The networks, operating scales (25), and evaluation paths are those of the unbudgeted experiments, while the labels, the stage surrogate, and the baselines are adapted to the budget. The lower panel of Table 1 reports the results.
The comparison reverses on case14, while DFL’s existing advantage on 5-bus becomes larger. On 5-bus, the budget increases the cost of AlwaysRepair much more than that of DFL, raising DFL’s saving from 6.7% to 21.5%; the DFL mean lies 1.8% above the exact optimal expected cost of $1,493,319. On case14 at , DFL moves from costing 8.3% more than AlwaysRepair in the unbudgeted setting to costing 21.3% less under the budget. At , the corresponding saving is 23.3%. Near-sighted MPC, whose schedule search must respect the additional constraint, becomes much more expensive under the budget: its cost reaches $2,403,624 on 5-bus, $2,600,141 at , and $3,390,760 at . DFL reduces these costs by 36.7%, 14.0%, and 31.0%, respectively, and is the least-cost policy in all three budgeted configurations.
The cost decomposition indicates where these gains arise. On case14 at , DFL spends $379,670 on repairs, compared with $945,617 for AlwaysRepair, and sheds slightly less load (1,840 versus 1,878 MWh). On 5-bus, it lowers both repair expenditure ($342,405 versus $553,488) and load shedding (1,144 versus 1,356 MWh). At , DFL produces nearly the same amount of load shedding (1,889 versus 1,878 MWh) while reducing repair expenditure from $1,155,754 to $434,735.
Figure 2c–(Figure 2d) presents the budgeted learning curves. Under the budget, DFL has the smallest across-scenario standard deviation of the policies that repair, in all three configurations: $153,482, $247,306, and $215,595 for 5-bus, case14 at , and case14 at , respectively (averaged over the five seeds), against $216,198, $298,073, and $306,815 for AlwaysRepair.
Classical Approaches
We compare DFL with our implementations of SAA and SDDiP in the six configurations defined by the chosen operating scales (25) and the two budget regimes.
SAA. On 5-bus, SAA reaches its 10% target gap within hours. In the four case14 configurations, it reaches the wall-clock limit with MIP gaps between 42.5% and 60.1%. The sampled-tree incumbent objectives range from $1.41M to $2.87M. When the resulting node policies are rolled out on the 500 evaluation paths using nearest-child matching, their costs rise to $2.03M–$3.26M, above both DFL and AlwaysRepair in all six configurations (Table 1).
SDDiP. Within the wall-clock limit, SDDiP completes 782 and 755 iterations on 5-bus (unbudgeted and budgeted) and at most 158 on case14 (Table D.1). Measured against the mean cost of its final policy over 500 simulations from its own stagewise distribution, the final lower bound leaves gaps of 35.3% and 21.5% on 5-bus and between 59.8% and 68.2% on case14, so none of the runs converged within the limit. On 5-bus, exact dynamic programming provides an additional check: the final policy means are 14.6% and 10.6% above the exact optima, while the lower bounds remain 25.9% and 13.2% below them. The lower bound moved slowly throughout: in the unbudgeted 5-bus run it rose from $0.40M after the first iteration to $0.73M after 100 and $1.02M after 782. Because its case14 simulations use their own sampled law, we do not rank SDDiP against the policies evaluated on the common evaluation paths, and we use its gaps only as an approximate measure of convergence.
Computational Efficiency
At deployment, DFL is also computationally cheap, in every cost regime. A complete 14-stage evaluation path takes DFL about 30 ms on 5-bus () and 35 ms on case14 (), comparable to the trivial heuristics (25–36 ms) and less than half the time of the deployed SAA policy (77–79 ms). Evaluation requires one network forward pass, the thresholding rule (20), and one single-stage LP at each stage, and the budgeted policy also solves one knapsack (22) per stage; no scenario sample is involved, and the cost of a complete path grows linearly with . Near-sighted MPC, in contrast, takes 5.9 s and 95.3 s per path, 196 and 2,707 times longer than DFL, because the number of simultaneously failed components enlarges the set of repair schedules it must evaluate. DFL’s main cost is incurred offline, during training, which is performed once per configuration; training a single model took at most 17 h without the budget and 63 h with it, within the 117-hour job limit. Generating the training labels is a further offline cost: without the budget, solving the 120,000 case14 single-scenario MIPs took about 19 h of wall-clock time with up to 64 parallel solves. The single-scenario MIPs are independent of one another, so label generation can run in parallel, and the whole offline cost is incurred once per configuration: the trained policy is then reused on every new failure realization without further training.
Discussion and Conclusion
This paper develops a decision-focused learning framework for multistage stochastic programs. Under the conditions of § 3, the effect of a transition-relevant sub-decision on the future is represented through learned continuation-value coefficients, and the stage surrogate becomes a linear-objective oracle that is trained with a Fenchel–Young loss through perturbed optimizers, without differentiating through the solver; the resulting policy is optimal when the continuation value is affine and its coefficients are recovered (Proposition 1). The power-network problem serves as a worked example: the unbudgeted variant yields a separable threshold rule, while the budgeted variant illustrates the more general case of a coupled decision set and a combinatorial oracle.
Computational findings. On the common evaluation paths, DFL is the least-cost policy evaluated in all three budgeted configurations. Without the budget, it is cheaper than AlwaysRepair on 5-bus and on case14 at but not at , and Near-sighted MPC is cheaper than DFL in two of the three configurations. On the 5-bus network, the DFL mean lies 1.7% (unbudgeted) and 1.8% (budgeted) above the exact optimum, and at deployment DFL is about as fast as the trivial heuristics. The classical results concern our implementations within the shared budget: the sampled-tree SAA policy with nearest-child matching is not competitive on the evaluation paths, and SDDiP remains far from convergence.
Limitations and future work. When the true continuation value is not affine in the transition-relevant decision, the learned policy has no certified optimality-gap bound. Its performance may depend on approximation error, interactions among decisions, perfect-information labels, state-space coverage, model capacity, and numerical training error. The empirical learning curves do not provide a finite-sample guarantee, and the non-convex neural parameterization precludes a general claim of global convergence.
The 500 evaluation paths are separate from model fitting but are also used to examine the operating scales and to select the reported training sizes. The results should therefore be read as comparisons on a fixed evaluation set. Moreover, the experiments cover only two networks under a synthetic, independent failure model.
Further work should study richer continuation-value models, policy-gap and sample-complexity guarantees, the effect of perfect-information labels on the deployed policy (for instance, through a generalization procedure such as the one applied in Rautenstrauß and Schiffer [20]), non-linear surrogates, correlated failures, and applications beyond power-network repair. A common-scenario evaluation of a retained SDDiP policy would also sharpen the comparison with the classical methods.
Acknowledgments
D. Krame Kadurha and A. Zocca are supported by the NWO grant VI.Vidi.233.247, Power Network Optimization in the Age of Climate Extremes (https://doi.org/10.61686/GEUL09973). We thank SURF (www.surf.nl) for the support in using the National Supercomputer Snellius. We also used generative AI tools in preparing this manuscript: Claude Code (Claude Opus 5.5, Anthropic) assisted with coding and data analysis, and Claude (Opus 5.5, Anthropic) and ChatGPT (GPT-5.6 Luna, OpenAI) assisted with language editing. The authors reviewed and verified all AI-assisted output and take full responsibility for the content of this article.
Appendix
This appendix collects the material referred to in the main paper. Equations, sections, propositions, and theorems numbered without a letter prefix refer to the main paper.
Fenchel–Young Background and Proofs
The Fenchel–Young loss
Let be a compact feasible set (which may be binary, discrete, continuous, or mixed), its convex hull, and a proper, lower-semicontinuous, strongly convex regularizer. Define the regularized oracle and its Fenchel conjugate:
The Fenchel–Young loss associated with is , as in (8).
Proposition A.1 (Blondel et al. [6]). Let be strongly convex on . Then: (i) , with equality if and only if ; (ii) ; (iii) is convex.
Proof. (i) The Fenchel–Young inequality is tight iff , which by the subgradient characterization of the conjugate is equivalent to (Blondel et al. [6]). (ii) by Danskin’s theorem and is linear. (iii) is convex as a supremum of affine functions; the rest is affine in . □
Perturbation and its equivalence with regularization
For and a noise distribution satisfying the conditions of § 3.3, let be the perturbed value function, so that in (9) is the expected perturbed maximizer. Based on Propositions 2.1 and 2.2 and Definition 4.1 of Berthet et al. [4] and Proposition 3.2 of Dalle et al. [7], the following theorem states the equivalence between Fenchel–Young regularization and perturbation.
Theorem A.1 (Dalle et al. [7]). Let be compact, let satisfy the conditions of § 3.3, and let . Set and let be the regularizer induced by , with domain . Then
In our application, the feasible set is , which depends on the availability and, in the budgeted variant, on the budget (see (23)); the induced regularizer depends on them as well, and the theorem applies at each stage with the corresponding . By Theorem A.1, the perturbed-optimizer gradient is the gradient of the FY loss , so training with perturbed optimizers minimizes this loss.
The proof below, reproduced in simplified form from the convex-analytic results of Berthet et al. [4] and Dalle et al. [7], holds under the stated density and moment assumptions. It allows any compact feasible set; in the unbudgeted application the convex hull is the face of the hypercube, and statements about interior points refer to the relative interior of that face.
Proof of Theorem A.1.
Step 1 (convexity). For each fixed , the map is the support function of evaluated at , hence a supremum of affine functions of indexed by , and therefore convex; no finiteness of is assumed, and compactness is used only to ensure that the supremum is attained. Since is an expectation of convex functions, is convex.
Step 2 (gradient). by Danskin’s theorem under the density and moment conditions of § 3.3, which make the maximizer almost surely unique (Berthet et al. [4]).
Step 3 (scaling). , obtained by factoring inside the expectation.
Step 4 (conjugate). , with the substitution .
Step 5 (Fenchel–Moreau). is convex (Step 1) and finite-valued on all of (hence proper and lower semicontinuous). The Fenchel–Moreau theorem therefore gives , giving the first identity in (A.2). Step 6 (uniqueness). is differentiable (Step 2), so the supremum in Step 5 is uniquely attained. By standard convex analysis, the unique maximizer of equals the gradient of the conjugate at , which by Step 2 is . □
Proofs for the main paper
Proof of Proposition 1. Fix a stage and a reachable pair . Under the premise, the objective of the inner minimization in (4) equals
which differs from the objective of the surrogate (7) at only by , a term independent of . Hence every minimizer of the surrogate attains the minimum in (4), and, together with an inner decision attaining in (5), the DFL decision attains the minimum in the Bellman equation (2). The DFL policy therefore selects a Bellman-optimal decision at every stage and every reachable state, and by the standard verification argument for (2) (Shapiro et al. [22]) its expected cost equals the optimal value of (1). □
Proof of the threshold rule (20). Feasibility. If then forces . If then is free.
Separability. , so the problem separates over components. For failed components (), minimize over :
If : coefficient , so is optimal.
If : coefficient , so is optimal.
If : both are optimal; convention sets .
Combining over all yields (20). □
Slack budgets. Consider the budgeted surrogate (22). If , the budget is inactive at the nominal values, and the deployment optimum coincides with the threshold rule (20). Recovering a componentwise closed-form smoothing (with the Gaussian CDF in place of in (21), since (24) uses Gaussian noise) requires the stronger condition , because a perturbed value can make a nominally unprofitable component profitable.
Learning Implementation
This section details the training settings and the relationship between the mathematical formulation of the main paper and the accompanying implementation, available at https://github.com/DavidKrame/DFL_for_MSP_Application_to_power_network_repair.
Training settings
The network has three hidden layers of widths 128, 256, and 128 with ReLU activations and dropout 0.3, followed by a linear output layer. It is trained with Adam (Kingma and Ba [12]) (learning rate , weight decay , mini-batches of 64, gradient-norm clipping at 1), a ReduceLROnPlateau scheduler (patience 200, factor 0.5), and early stopping (patience 330 epochs). The maximum number of epochs scales with the training size, (200 epochs at ), so early stopping is active only for the larger sizes. The perturbation temperature is . The stage-level examples of an training scenarios are split at random into 80% training and 20% validation with a fixed seed; the validation value of the loss (B.1) drives the scheduler and early stopping, and the weights with the lowest validation value are restored at the end. Training scenarios are drawn with seed 42 and the 500 evaluation paths with seed 1000. The five runs per size use initialization seeds 1, 2, 3, 4, and 42; the data, the split, the dropout masks, and the batch order are the same in all five. Training labels come from single-scenario MIPs solved to a relative gap of , and in the budgeted variant the perturbed knapsack oracle (24) is estimated with Monte Carlo samples per training example.
Perturbation distributions
The two variants use different noise distributions. Without the budget, the surrogate (19) is separable, so the perturbed optimizer (9) factorizes component-wise. For each failed component , the inner problem is
and its expected value is :
Logistic noise : , the smoothing (21) used in our unbudgeted runs. A standard logistic variable is the difference of two independent standard Gumbel variables, so the binary repair choice takes the Gumbel-max form, with the sigmoid as its choice probability.
Gaussian noise : , with the standard normal CDF.
With the budget, the knapsack oracle is perturbed with standard Gaussian noise, as in (24), and the expectation is estimated by Monte Carlo. Both choices are valid instantiations of the perturbed-optimizer framework, and Theorem A.1 holds for either, with the corresponding regularizer determined by the noise distribution. The gradient signal has the same sign structure in both cases.
Stop-gradient surrogate for the FY loss
Stochastic gradient descent uses only the gradient of the loss, and that gradient, , needs neither nor the value of . With the budget, is the regularizer induced by the Gaussian noise, which has no closed form, and the knapsack solutions behind are piecewise constant in , so automatic differentiation has nothing to differentiate through. In place of the FY loss in (10), we therefore train on the simplest scalar whose automatic gradient is the FY gradient, with one implementation for both variants:
where .detach() treats the smoothed decision as a constant (stop-gradient). Its gradient,
coincides with from Proposition A.1(ii) and Theorem A.1, so a gradient step on coincides with a gradient step on at the same step size: the estimator is the perturbed-optimizer gradient of the FY loss, neither a straight-through construction nor the SPO+ surrogate. The loss values differ, however. is nonnegative and vanishes only when the smoothed decision equals the target (Proposition A.1(i)), whereas can be negative and can vanish when (if is orthogonal to ). The training curves are therefore pseudo-loss values, and because the learning-rate schedule, early stopping, and checkpoint choice use the validation pseudo-loss, the training trajectory can differ from one driven by the theoretical FY loss itself.
In the separable, unbudgeted case with the logistic smoothing (21), the update of a failed component is times the gradient in of the binary cross-entropy between and , so it coincides, up to a constant absorbed into the learning rate, with cross-entropy training on the same labels. The coincidence concerns the update rule only, since is a smoothed oracle decision rather than a classifier’s probability, and it disappears under the budget, where no longer factorizes across components.
Full Model and Failure Process
The complete multistage program
Combining the stage DC-OPF (11) and the dynamics (12), the repair-scheduling problem (14) written out in full is
with each and -measurable. The constraints are those of (11) with symmetric line-flow capacities (, ); the budgeted variant adds (15) at every stage.

Figure C.1. Experimental failure-probability profiles. Note. Profiles use , , and . Each component is assigned with probability to the standard class () or elevated class (). Shading spans each class’s range; marked curves use its midpoint. Probabilities are conditional on the component being operational. All profiles cross between stages 4 and 5 (at ), whatever their peak value; a larger gives a higher peak and a faster decay afterward.
Failure probability model
In (16), the parameters and are determined by two component inputs, the peak failure stage and the peak probability , via
where . These expressions are obtained by requiring and . They are well defined when ; since increases with , for , as in our experiments, this holds if and only if , and hence for the experimental value . In addition, the condition ensures , so that as .
Substituting (C.2) into (16) gives
whose sign does not depend on when . With and , the bracket is positive for and negative for (it vanishes at ), so every failure probability is above up to stage 4 and below it from stage 5 on (Figure C.1).
Comparators and Classical Methods
SAA and SDDiP
SAA solves a single extensive-form MILP on a sampled binary scenario tree with branching factor over stages, giving leaf paths in every configuration. The MILP is solved to a target relative gap of 10% or until the solver time limit just below the shared wall-clock limit. For evaluation on the common paths, the resulting node policy is rolled out stage by stage: at each stage, the realized path is mapped to the current node’s closest child in Hamming distance, and that child’s repair decision is applied subject to the realized component availability.
| Network | Variant | Iterations | LB ($) | Policy mean ($) | Est. gap | |
| 5-bus () | unbudgeted | 782 | 1,024,482 | 1,584,476 | 35.3% |
| 5-bus () | budgeted | 755 | 1,296,240 | 1,651,543 | 21.5% |
| case14 () | unbudgeted | 158 | 671,289 | 2,110,204 | 68.2% |
| case14 () | budgeted | 150 | 831,741 | 2,208,569 | 62.3% |
| case14 () | unbudgeted | 150 | 740,410 | 2,283,357 | 67.6% |
| case14 () | budgeted | 147 | 927,540 | 2,304,480 | 59.8% |
Table D.1. SDDiP results at termination of the wall-clock budget.
Note. LB is the final SDDiP lower bound. The policy mean is reconstructed from the saved stagewise averages over 500 post-training simulations, and the estimated gap is (policy mean − LB)/policy mean. The simulations use SDDiP’s own stagewise distribution, which is exact on 5-bus and sampled on case14, rather than the common evaluation paths used in Table 1. Individual simulation costs were not retained, so no confidence intervals are reported.
SDDiP runs Lagrangian cut generation through SDDP.jl (Dowson and Kapelevich [8]) using HiGHS and terminates at the shared wall-clock limit, without gap-based stopping. We report the final lower bound and the final policy’s mean cost over 500 post-training simulations drawn from SDDiP’s stagewise distribution, which enumerates the full failure law on 5-bus and uses a sampled finite support on case14. Their difference is an internal estimated policy gap, which may favor SDDiP; because the runs did not converge within the shared budget, it is the most informative assessment of the final policies that these runs provide.
The near-sighted MPC baseline
This section specifies the near-sighted model-predictive control (MPC) baseline of § 5.1, a non-anticipative, learning-free controller. Standard stochastic MPC repeatedly solves a finite-horizon expected-cost problem with a terminal value, implements the first action, and replans (Bertsekas [5]); our baseline keeps this receding-horizon feedback but replaces the expectation by a mean-failure rollout and sets the terminal value to zero.
Setup. We use the notation of § 4.2, write for the optimal value of the DC-OPF (11) at availability (Proposition 2), and write for a repair set . The rollout below evaluates at fractional on a derated network, in which scales both the susceptance and the thermal capacity of line , and , and scales the capacity of generator . This heuristic, used only to score schedules, is a linear program for fixed and coincides with (11) at binary .
Our MPC baseline. The baseline is parameterized by the window with and by a cap on the number of candidate schedules scored per stage; the experiments use and . At each true stage it performs the following.
Observe. Read and the currently-failed set ; only these are repair candidates.
Effective window. Let . A repair ordered at window-step completes at , so it can influence the window only if ; the actionable steps are . If none exist (final stages) or , order no repair.
Build the candidate set. A schedule assigns each failed component to an actionable step or to “never”: , with . There are such schedules. If this number does not exceed , the candidate set is the full set of schedules, enumerated in lexicographic order from “repair every failed component now” to the all-never schedule . Otherwise holds the all-never schedule, listed first, and further schedules, each drawn uniformly from the full set (with replacement) by a random-number generator seeded once with seed 0.
Score under expected failures. Collapse the future to its mean: set and, for ,
i.e. the dynamics (12) with replaced by its mean . Availabilities become fractional, which accepts through the derated network defined above. The schedule’s predicted window cost is
Optimize over the candidate set, execute only the current stage. Choose as the first minimizer of over in the order above: an exact minimization over all schedules when the cap does not bind, and a randomized search over the sampled subset when it does. The all-never schedule belongs to by construction, so the chosen schedule never has a higher predicted window cost (D.2) than ordering no repair. Ties are resolved by this order: in favor of earlier repairs under exact enumeration, and in favor of the all-never schedule in the sampled search. Execute only the current-stage repairs and discard .
Advance and replan. Apply , observe the realized , update via (12), and return to step 1 at . Replanning from the observed state corrects for the difference between the mean rollout and the realized failures.
Scope and variants. Relative to standard stochastic MPC, the baseline has zero terminal value, uses the certainty-equivalent rollout (D.1), and schedules only components failed at the current stage. It therefore has no preemptive repairs and credits no benefits beyond the window. The search is exhaustive only while ; with , , and , this covers at most seven simultaneously failed components when the full window is available (more in the final stages, where the window is shorter), after which the fixed-seed sample is used. Under the per-stage budget (15), step 3 retains only schedules satisfying at every window step; the empty schedule preserves feasibility, and scoring and replanning are unchanged.
Computing Resources
All runs used the nodes and the per-job wall-clock limit described in § 5.1. The offline methods differ in how the 64 cores are used: DFL label generation runs up to 64 independent single-threaded MILP solves in parallel (HiGHS), DFL training is a single CPU process, SAA runs one multi-threaded extensive-form solve (Gurobi, which used up to 32 of the cores), and SDDiP gives the cores to its stage-subproblem solver (HiGHS). The stage DC-OPF problems are solved with HiGHS, except in the SAA rollouts, which use Gurobi. Near-sighted MPC has no offline stage and is timed online only, at deployment. The limit applies to each job, so it does not equalize total effort across methods: DFL runs separate jobs for label generation and for each training size and seed.
References
- [1]Alvehag K, Söder L (2011) A reliability model for distribution systems incorporating seasonal variations in severe weather. IEEE Transactions on Power Delivery 26(2):910–919, URL http://dx.doi.org/10.1109/TPWRD.2010.2090363.
- [2]Amos B, Kolter JZ (2017) OptNet: Differentiable optimization as a layer in neural networks. Proceedings of the 34th International Conference on Machine Learning (ICML), volume 70, 136–145 (PMLR).arxiv.org/abs/1703.00443
- [3]Baty L, Jungel K, Klein PS, Parmentier A, Schiffer M (2024) Combinatorial optimization-enriched machine learning to solve the dynamic vehicle routing problem with time windows. Transportation Science 58(4):708–725, URL http://dx.doi.org/10.1287/trsc.2023.0107.
- [4]Berthet Q, Blondel M, Teboul O, Cuturi M, Vert JP, Bach F (2020) Learning with differentiable perturbed optimizers. Advances in Neural Information Processing Systems, volume 33, 9508–9519.
- [5]Bertsekas DP (2024) Model predictive control and reinforcement learning: A unified framework based on dynamic programming. IFAC-PapersOnLine 58(18):363–383, URL http://dx.doi.org/10.1016/j.ifacol.2024.09.056.
- [6]Blondel M, Martins AFT, Niculae V (2020) Learning with Fenchel-Young losses. Journal of Machine Learning Research 21(35):1–69.arxiv.org/abs/1901.02324
- [7]Dalle G, Baty L, Bouvier L, Parmentier A (2022) Learning with combinatorial optimization layers: A probabilistic approach. URL https://arxiv.org/abs/2207.13513.
- [8]Dowson O, Kapelevich L (2021) SDDP.jl: A Julia package for stochastic dual dynamic programming. INFORMS Journal on Computing 33(1):27–33, URL http://dx.doi.org/10.1287/ijoc.2020.0987.
- [9]Eisenkraemer P, Souto L, Bastias L, Alao AB, Adeyanju O, Mitra B, Chamana M, Bayne S (2026) A systematic review on coordinated restoration strategies for power distribution grids. IEEE Access 14:30702–30725, URL http://dx.doi.org/10.1109/ACCESS.2026.3667471.
- [11]Goda M, Abdel-Salam M, EL-Mohandes MT, Elnozahy A (2025) Electric supply restoration in self-healed smart distribution systems: A review. Energy Informatics 8:114, URL http://dx.doi.org/10.1186/s42162-025-00541-5.
- [12]Kingma DP, Ba J (2015) Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR).arxiv.org/abs/1412.6980
- [13]Kleywegt AJ, Shapiro A, Homem-de-Mello T (2002) The sample average approximation method for stochastic discrete optimization. SIAM Journal on Optimization 12(2):479–502, URL http://dx.doi.org/10.1137/S1052623499363220.
- [14]Mandi J, Kotary J, Berden S, Mulamba M, Bucarey V, Guns T, Fioretto F (2024) Decision-focused learning: Foundations, state of the art, benchmark and future opportunities. Journal of Artificial Intelligence Research 80:1623–1701, URL http://dx.doi.org/10.1613/jair.1.15320.
- [15]Panteli M, Mancarella P (2015) Influence of extreme weather and climate change on the resilience of power systems: Impacts and possible mitigation strategies. Electric Power Systems Research 127:259–270, URL http://dx.doi.org/10.1016/j.epsr.2015.06.012.
- [16]Parmentier A, T’Kindt V (2023) Structured learning based heuristics to solve the single machine scheduling problem with release times and sum of completion times. European Journal of Operational Research 305(3):1032–1041, URL http://dx.doi.org/10.1016/j.ejor.2022.06.040.
- [17]Pereira MVF (1989) Optimal stochastic operations scheduling of large hydroelectric systems. International Journal of Electrical Power & Energy Systems 11(3):161–169, URL http://dx.doi.org/10.1016/0142-0615(89)90025-2.
- [18]Pereira MVF, Pinto LMVG (1991) Multi-stage stochastic optimization applied to energy planning. Mathematical Programming 52(1-3):359–375, URL http://dx.doi.org/10.1007/BF01582895.
- [19]Peršak E, Anjos MF (2025) Decision-focused forecasting: A differentiable multistage optimisation architecture. URL https://arxiv.org/abs/2405.14719.
- [20]Rautenstrauß M, Schiffer M (2027) Optimization-augmented machine learning for vehicle operations in emergency medical services. European Journal of Operational Research 336(3):1103–1126, URL http://dx.doi.org/10.1016/j.ejor.2026.08.007.
- [21]Schiffer M, Hoppe H, Su Y, Bouvier L, Parmentier A (2026) Combinatorial optimization augmented machine learning. URL https://arxiv.org/abs/2601.10583.
- [22]Shapiro A, Dentcheva D, Ruszczyński A (2021) Lectures on Stochastic Programming: Modeling and Theory (Philadelphia, PA: SIAM), 3rd edition.
- [23]Wang P, Billinton R (2002) Reliability cost/worth assessment of distribution systems incorporating time-varying weather conditions and restoration resources. IEEE Transactions on Power Delivery 17(1):260–265, URL http://dx.doi.org/10.1109/61.974216.
- [24]Wood AJ, Wollenberg BF, Shéhblé GB (2013) Power Generation, Operation, and Control (Hoboken, NJ: Wiley), 3rd edition.
- [25]Zhou F, Anderson J, Low SH (2021) The optimal power flow operator: Theory and computation. IEEE Transactions on Control of Network Systems 8(2):1010–1022, URL http://dx.doi.org/10.1109/TCNS.2020.3044258.
- [26]Zou J, Ahmed S, Sun XA (2019) Stochastic dual dynamic integer programming. Mathematical Programming 175(1-2):461–502, URL http://dx.doi.org/10.1007/s10107-018-1249-5.