Abstract
Constrained Markov Decision Processes (CMDPs) are critical in many high-stakes applications, where decisions must optimize cumulative rewards while strictly adhering to complex nonlinear constraints. In domains such as power systems, finance, supply chains, and precision robotics, violating these constraints can result in significant financial or societal costs. Existing Reinforcement Learning (RL) methods often struggle with sample efficiency and effectiveness in finding feasible policies for highly and strictly constrained CMDPs, limiting their applicability in these environments. Stochastic dual dynamic programming is often used in practice on convex relaxations of the original problem, but they also encounter computational challenges and loss of optimality. This paper introduces a novel approach, Two-Stage Deep Decision Rules (TS-DDR), to efficiently train parametric actor policies using Lagrangian Duality. TS-DDR is a self-supervised learning algorithm that trains general decision rules (parametric policies) using stochastic gradient descent (SGD); its forward passes solve deterministic optimization problems to find feasible policies, and its backward passes leverage duality theory to train the parametric policy with closed-form gradients. TS-DDR inherits the flexibility and computational performance of deep learning methodologies to solve CMDP problems. Applied to the Long-Term Hydrothermal Dispatch (LTHD) problem using actual power system data from Bolivia, TS-DDR is shown to enhance solution quality and to reduce computation times by several orders of magnitude when compared to current state-of-the-art methods.
Introduction
In high-stakes domains like power grid management, finance, and robotics, decisions are governed by "hard" constraints—physical laws or regulatory requirements that cannot be violated. For example, in a power grid, electricity production must match demand to avoid blackouts. Current approaches generally fall into two categories: Model-Free Reinforcement Learning (RL) and Stochastic Dual Dynamic Programming (SDDP). RL algorithms like PPO or REINFORCE often struggle with hard constraints, treating them as soft penalties which leads to safety violations. SDDP, the industry standard for power systems, is mathematically rigorous but limited to convex problems and is computationally expensive, making it unsuitable for real-time applications in non-convex environments.
Methodology: Two-Stage Deep Decision Rules (TS-DDR)
The proposed Two-Stage Deep Decision Rules (TS-DDR) framework bridges the gap between deep learning and classical stochastic programming. The architecture utilizes a two-stage process:
- Forward Pass (Intent and Correction): A neural network policy predicts a "target state" (e.g., desired reservoir water levels). To ensure physical feasibility, this prediction is passed through a deterministic optimization solver that projects it into the nearest feasible region.
- Backward Pass (Duality-Based Learning): Training the network requires gradients through the optimization layer. TS-DDR leverages Lagrangian Duality, using the dual variables (multipliers) from the solver to provide exact gradients for Stochastic Gradient Descent (SGD). This avoids the high computational cost of implicit differentiation.
The policy also incorporates a hidden latent state, similar to Recurrent Neural Networks (RNNs), allowing it to generalize across varying time horizons.
Experimental Evaluation
The framework was evaluated on several benchmarks, most notably a realistic model of the Bolivian Power System (28-bus case) featuring 34 generators and 11 hydro units. This system was tested under linear (DCLL), conic (SOC), and non-convex (AC-PF) physical models. Additionally, the Goddard Rocket Control problem was used to assess performance in non-linear vertical ascent scenarios.
Key Results
TS-DDR demonstrates substantial improvements over existing methods in both speed and solution quality:
- Computational Efficiency: In the Bolivian case study, TS-DDR achieved execution times between 0.002 and 0.067 seconds, compared to 10 to 480 minutes for SDDP. This represents a speedup of several orders of magnitude, making it viable for real-time operations.
- Optimality and Accuracy: In convex scenarios, TS-DDR remained within approximately 0.5% of the optimal cost. In non-convex AC power flow models, it actually outperformed SDDP by 0.32% in cost while remaining significantly faster.
- Non-Linear Control: On the Goddard Rocket problem, TS-DDR reduced the optimality gap by 23% compared to standard Model Predictive Control (MPC) approaches.
Conclusion
TS-DDR provides a robust framework for training deep learning policies that respect hard physical constraints. By decoupling intent from feasibility and leveraging duality for efficient gradient calculation, it offers a real-time alternative to traditional stochastic programming. Future work will explore the integration of discrete variables and scaling the approach to larger, continental-sized power grids.
Summary updated