Skip to main content
QUICK REVIEW

[Paper Review] Optimal Energy System Scheduling Using A Constraint-Aware Reinforcement Learning Algorithm

Shengren Hou, Pedro P. Vergara|arXiv (Cornell University)|May 9, 2023
Smart Grid Energy ManagementEngineering5 citations
TL;DR

This paper proposes MIP-DQN, a constraint-aware deep reinforcement learning algorithm that formulates a trained Q-network as a mixed-integer program (MIP) to enforce hard operational constraints—such as power balance and ramping limits—during online scheduling. The method ensures feasible, near-optimal energy system dispatch in renewable-rich distribution networks, achieving 13.7% error relative to the optimal solution while strictly satisfying constraints even on unseen test days.

ABSTRACT

The massive integration of renewable-based distributed energy resources (DERs) inherently increases the energy system's complexity, especially when it comes to defining its operational schedule. Deep reinforcement learning (DRL) algorithms arise as a promising solution due to their data-driven and model-free features. However, current DRL algorithms fail to enforce rigorous operational constraints (e.g., power balance, ramping up or down constraints) limiting their implementation in real systems. To overcome this, in this paper, a DRL algorithm (namely MIP-DQN) is proposed, capable of extit{strictly} enforcing all operational constraints in the action space, ensuring the feasibility of the defined schedule in real-time operation. This is done by leveraging recent optimization advances for deep neural networks (DNNs) that allow their representation as a MIP formulation, enabling further consideration of any action space constraints. Comprehensive numerical simulations show that the proposed algorithm outperforms existing state-of-the-art DRL algorithms, obtaining a lower error when compared with the optimal global solution (upper boundary) obtained after solving a mathematical programming formulation with perfect forecast information; while strictly enforcing all operational constraints (even in unseen test days).

Motivation & Objective

  • To address the lack of constraint enforcement in deep reinforcement learning (DRL) for energy system scheduling.
  • To develop a DRL algorithm that guarantees feasibility of operational schedules under hard constraints like power balance and ramping limits.
  • To enable real-time, data-driven scheduling of distributed energy resources (DERs) with high renewable penetration.
  • To bridge the gap between model-free DRL and the rigorous feasibility requirements of real-world energy systems.
  • To improve upon existing DRL methods by integrating optimization theory into the DNN inference phase.

Proposed method

  • The MIP-DQN algorithm restructures the trained Q-network as a mixed-integer programming (MIP) formulation to embed operational constraints directly into the action space.
  • During online inference, the MIP formulation ensures that all actions (e.g., power outputs) strictly satisfy system constraints such as power balance, DG ramping, and ESS charge/discharge limits.
  • The Q-network is trained offline using a DQN-based framework with a reward function that includes penalty terms for constraint violations and scaling coefficients for reward shaping.
  • The method leverages recent advances in representing deep neural networks as MIPs, enabling exact constraint enforcement without compromising the policy’s optimality.
  • The MIP formulation is solved at inference time to generate feasible actions, ensuring that no infeasible schedules are produced.
  • The approach is validated through comprehensive simulations on test systems with multiple distributed generators and energy storage systems.
Figure 5: Mean and standard deviation of the demand consumption and PV generation.
Figure 5: Mean and standard deviation of the demand consumption and PV generation.

Experimental results

Research questions

  • RQ1Can a DRL algorithm be designed to enforce hard operational constraints in real-time energy system scheduling?
  • RQ2How can deep neural networks used in DRL be restructured to guarantee constraint feasibility during online inference?
  • RQ3To what extent does the proposed MIP-DQN method reduce scheduling error compared to state-of-the-art DRL algorithms under uncertain renewable forecasts?
  • RQ4Can the MIP-DQN algorithm maintain constraint feasibility on unseen test days, where training data does not include such scenarios?
  • RQ5How does the integration of MIP-formulated DNNs affect the trade-off between optimality and computational feasibility in energy scheduling?

Key findings

  • The MIP-DQN algorithm achieves a scheduling error of 13.7% relative to the optimal global solution obtained with perfect forecast information.
  • The proposed method strictly enforces all operational constraints, including power balance, ramping limits, and ESS state-of-charge bounds, even on unseen test days.
  • MIP-DQN outperforms existing state-of-the-art DRL algorithms in terms of solution quality, with lower error and better constraint satisfaction.
  • The algorithm maintains feasibility during online execution by formulating the trained Q-network as a MIP, ensuring no infeasible actions are selected.
  • The method demonstrates robustness in complex, real-world-like scenarios involving multiple distributed generators and energy storage units.
  • The results confirm that MIP-representation of DNNs enables safe, constraint-aware reinforcement learning in energy systems without sacrificing near-optimality.
Figure 6: Mean and 95% confident interval for the reward, operating cost and power unbalance for the developed MIP-DQN algorithm, as well as for other DRL algorithms, during training. As expected, none of these DRL algorithms are able to enforce the power balance constraint.
Figure 6: Mean and 95% confident interval for the reward, operating cost and power unbalance for the developed MIP-DQN algorithm, as well as for other DRL algorithms, during training. As expected, none of these DRL algorithms are able to enforce the power balance constraint.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.