Introduction
Multi-stage optimization is a cornerstone of long-term infrastructure planning, particularly in the management of energy storage systems where decisions made today have cascading effects over months or even years. The standard algorithmic approach for these problems is Dual Dynamic Programming (DDP), which decomposes large-scale problems into manageable stage-wise subproblems. However, DDP traditionally relies on the assumption of convexity, a requirement that real-world energy systems—characterized by nonlinear heat pump efficiencies and complex power flow equations—frequently violate.
This paper introduces Moment DDP, a novel extension that integrates Sum-of-Squares (SOS) programming and moment relaxations into the DDP framework. By doing so, the authors provide a scalable method to solve non-convex polynomial control problems without falling victim to the "curse of dimensionality" associated with state-space discretization.
The Challenge: Non-Convexity and Dimensionality
In energy management, practitioners often face a difficult trade-off when dealing with nonlinearities:
- Linearization: Simplifying the physical model to fit the convex requirements of standard DDP, which often leads to suboptimal or physically unrealistic solutions.
- Discretization: Using standard Dynamic Programming by gridding the state space. While this handles non-convexity, the computational cost grows exponentially with the number of state variables, making it impractical for systems with more than a few dimensions.
Moment DDP aims to bridge this gap by handling polynomial nonlinearities directly, maintaining the stage-wise decomposition of DDP while utilizing higher-order approximations to capture non-convex value functions.
Methodology: The Moment-SOS Framework
The core innovation of Moment DDP lies in its two-phase iterative process, which replaces the linear approximations of standard DDP with polynomial structures:
1. Backward Recursion (The SOS Pass)
In classical DDP, the backward pass generates affine "cuts" (linear under-approximators) to build a representation of the cost-to-go (value) function. Moment DDP instead employs Sum-of-Squares (SOS) programming to generate polynomial cuts. These higher-degree polynomials can much more accurately under-approximate non-convex value functions, capturing the "valleys" and "kinks" that linear cuts would simply bridge over.
2. Forward Simulation (The Moment Pass)
Rather than simulating a single trajectory of point-values, the forward pass in Moment DDP propagates probability distributions of the state. This is achieved by solving a Generalized Moment Problem (GMP), which tracks the statistical moments (such as mean and variance) of the state distribution as it evolves through the system dynamics.
The synergy between these passes is rooted in duality: the moments calculated in the forward pass provide the necessary data to refine the SOS polynomials in the backward pass, ensuring the value function is accurately characterized in the regions of the state space most likely to be visited.
Experimental Evaluation
The authors validated the algorithm using two case studies centered on seasonal thermal energy storage, utilizing real-world demand data from the Empa Campus in Dübendorf, Switzerland.
- Single Borehole Storage System: A one-state system (temperature) used to establish a baseline. The results from Moment DDP were compared against a "ground truth" generated by exhaustive state-space discretization. Moment DDP, using quadratic basis functions, successfully captured the non-convexities caused by switching between different operating modes (e.g., boiler vs. heat pump).
- Multiple Borehole Storage System: A three-state system involving three independent boreholes. This served as a stress test for the algorithm. While the decision space for this system is 9-dimensional—rendering conventional discretized DP computationally intractable due to memory limits—Moment DDP converged to a solution in a reasonable timeframe.
Key Insights and Results
- Tight Approximations: The use of quadratic and higher-order polynomial cuts allows for a significantly tighter under-approximation of the value function compared to affine cuts, which is essential for systems with non-convex costs.
- Scalability: By decomposing the $T$-stage problem into $T$ smaller SOS/Moment problems, the algorithm avoids the exponential memory growth of gridding. The 3-borehole system converged in approximately 28 minutes, whereas linear DDP (while faster at ~5 seconds) cannot guarantee accuracy for such nonlinear problems.
- Distributional Robustness: Because the forward pass operates on moments, the resulting value functions are inherently valid for a distribution of initial states, providing a level of robustness against initial state uncertainty.
Limitations and Future Work
While Moment DDP represents a significant step forward, the authors acknowledge several areas for further development:
- Computational Complexity: SOS programs grow combinatorially with the degree of the polynomials and the number of state variables. For very high-dimensional systems, the computational burden remains significant.
- Exploiting Sparsity: Many large-scale systems are "sparse," meaning variables only interact with a small subset of others. Future iterations of the algorithm could exploit this structure to reduce the size of the SOS programs.
- Stochastic Dynamics: The current numerical examples focus on deterministic dynamics with initial uncertainty. Extending the empirical testing to systems with high stochasticity (such as volatile renewable energy inputs) is a priority for future research.
Summary updated