[Paper Review] Computing an Optimal Control Policy for an Energy Storage
This paper presents StoDynProg, a Python-based library implementing Stochastic Dynamic Programming (SDP) to compute optimal control policies for energy storage systems, demonstrated on smoothing power output from an Ocean Wave Energy Converter (SEAREV). The method reduces grid power variability by 20% on average compared to a linear heuristic policy, using a Markovian state-space model and policy iteration, though performance degrades under high non-linear wave conditions due to model limitations.
We introduce StoDynProg, a small library created to solve Optimal Control problems arising in the management of Renewable Power Sources, in particular when coupled with an Energy Storage System. The library implements generic Stochastic Dynamic Programming (SDP) numerical methods which can solve a large class of Dynamic Optimization problems. We demonstrate the library capabilities with a prototype problem: smoothing the power of an Ocean Wave Energy Converter. First we use time series analysis to derive a stochastic Markovian model of this system since it is required by Dynamic Programming. Then, we briefly describe the "policy iteration" algorithm we have implemented and the numerical tools being used. We show how the API design of the library is generic enough to address Dynamic Optimization problems outside the field of Energy Management. Finally, we solve the power smoothing problem and compare the optimal control with a simpler heuristic control.
Motivation & Objective
- To develop a generic, open-source library for solving optimal control problems in energy systems using stochastic dynamic programming.
- To address the challenge of smoothing highly variable power output from ocean wave energy converters (e.g., SEAREV) using energy storage.
- To compare the performance of an optimal control policy derived via SDP against a simple linear feedback control law.
- To evaluate the impact of model fidelity on control performance, particularly under non-linear wave dynamics.
Proposed method
- The system is modeled as a discrete-time Markov process using an autoregressive model fitted to simulated SEAREV power data.
- The optimal control policy is computed via the policy iteration algorithm, a standard method in stochastic dynamic programming.
- The cost function is defined as the expected long-term average of the squared injected grid power, penalizing variability.
- The state variable is the stored energy in the storage system, bounded between 0 and the rated capacity (10 MJ).
- The control policy is derived as a state feedback function, mapping current stored energy to optimal grid injection power.
- The implementation uses standard scientific Python libraries (NumPy, SciPy) to ensure portability and reusability across engineering domains.
Experimental results
Research questions
- RQ1Can a generic SDP-based library effectively compute optimal control policies for energy storage systems managing variable renewable generation?
- RQ2How does the performance of an optimal policy derived via stochastic dynamic programming compare to a simple linear heuristic policy in smoothing wave energy output?
- RQ3To what extent does model accuracy—particularly linearity assumptions—affect the robustness of the optimal control policy under high-amplitude wave conditions?
- RQ4What is the quantitative reduction in grid power variability achievable through optimal control versus heuristic control?
Key findings
- The optimal control policy reduces the standard deviation of injected grid power by approximately 20% on average across three independent 1000-second SEAREV production samples, compared to the linear heuristic policy.
- The optimal policy better utilizes the full range of the storage capacity, particularly avoiding underuse of high-energy states observed in the linear policy.
- In high-production phases (e.g., 200–220 s), the optimal policy exhibits spiky output due to mismatch with the linear model’s assumptions, indicating a limitation under high non-linear dynamics.
- The performance degradation is linked to the Gaussian assumption in the linear state-space model, which fails to capture extreme accelerations beyond 4 standard deviations.
- The library, StoDynProg, is shown to be generic and reusable for other optimal control problems in engineering and life sciences, provided the state space is low-dimensional.
- The study highlights the need for more accurate non-linear models to fully realize the benefits of optimal control in real-world wave energy applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.