Capacity-constrained demand response in smart grids using deep reinforcement learning
Organizations: Lincoln AI Lab, University of Lincoln, Lincoln, United Kingdom
Abstract
This paper presents a capacity-constrained incentive-based demand response approach for residential smart grids. It aims to maintain electricity grid capacity limits and prevent congestion by financially incentivising end users to reduce or shift their energy consumption. The proposed framework adopts a hierarchical architecture in which a service provider adjusts hourly incentive rates based on wholesale electricity prices and aggregated residential load. The financial interests of both the service provider and end users are explicitly considered. A deep reinforcement learning approach is employed to learn optimal real-time incentive rates under explicit capacity constraints. Heterogeneous user preferences are modelled through appliance-level home energy management systems and dissatisfaction costs. Using real-world residential electricity consumption and price data from three households, simulation results show that the proposed approach effectively reduces peak demand and smooths the aggregated load profile. This leads to an approximately 22.82% reduction in the peak-to-average ratio compared to the no-demand-response case.
Figures & tables
| Inputs: policy network , target network , replay buffer , weighting factor , DDQN hyperparameters , incentive rate bounds . | |
|---|---|
| 1: | for episode do |
| 2: | % LSTM-based price forecasting |
| 3: | for hour do |
| 4: | DofWeek[ ] updateDayOfWeek( ); HofDay[ ] updateHourOfDay( ); MofYear[ ] updateMonthOfYear( ); IsWeekend[ ] updateWeekendFlag( ); IsHoliday[ ] updateHolidayFlag( ) |
| 5: | PrSeq[ ] updateHistoricalPriceSequence() |
| 6: | FuPrice[ ] PriceLSTM(DofWeek[ ], HofDay[ ], MofYear[ ], IsWeekend[ ], IsHoliday[ ], PrSeq[ ]) |
| Inputs for price forecasting | Inputs for load forecasting | ||
|---|---|---|---|
| Index | Description | Index | Description |
| 1 | Month of year (1–12) | 1 | Month of year (1–12) |
| 2 | Day of week (1–7) | 2 | Day of week (1–7) |
| 3 | Hour of day (1–24) | 3 | Hour of day (1–24) |
| 4 | Is holiday (0 or 1) | 4 | Is holiday (0 or 1) |
| 5 | Is weekend (0 or 1) | 5 | Is weekend (0 or 1) |
| Hyper-parameter | Value |
|---|---|
| Number of LSTM layers | 2 |
| Hidden units | 64 |
| Dropout | 0.2 |
| Window size | 24 |
| Forecast horizon | 1 |
| Optimiser | Adam |
| MAE | MAPE | |
|---|---|---|
| Wholesale price forecasting model | 1.87 | 0.53 |
| Load forecasting model of EU1 | 0.90 | 0.93 |
| Load forecasting model of EU2 | 0.72 | 0.78 |
| Load forecasting model of EU3 | 0.41 | 0.24 |
| Appliance | Type | Dissatisfaction coeff. | |
|---|---|---|---|
| mean | std | ||
| Dryer (DR) | TS, NI | 0.10 | 0.10 |
| Washing Machine (WM) | TS, NI | 0.40 | 0.10 |
| Dish Washer (DW) | TS, NI | 0.20 | 0.10 |
| Electric Vehicle (EV) | TS, I | 0.05 | 0.10 |
| Air Conditioner (AC) | PC | 3.50 | 2.00 |
| Metric | No DR | CCRL-DR |
|---|---|---|
| Peak load (kW) | 11.89 | 7.60 |
| Mean load (kW) | 6.46 | 5.34 |
| PAR | 1.84 | 1.42 |
| Metric | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EU1 | EU2 | EU3 | EU1 | EU2 | EU3 | EU1 | EU2 | EU3 | EU1 | EU2 | EU3 | EU1 | EU2 | EU3 | |
| Total energy reduction (kWh) | 5.81 | 14.21 | 8.7 | 11.59 | 17.29 | 4.99 | 11.21 | 17.71 | 7.26 | 4.40 | 6.90 | 11.08 | 3.38 | 21.86 | 9.66 |
| EU incentive income (¢) | 0.47 | 0.77 | 0.72 | 5.64 | 4.3 | 1.37 | 8.59 | 7.77 | 2.15 | 5.64 | 4.82 | 9.49 | 2.54 | 30.58 | 9.14 |
| EU discomfort cost (¢) | 2.14 | 91.81 | 22.37 | 6.63 | 72.90 | 16.35 | 4.39 | 52.83 | 11.92 | 1.19 | 0.87 | 8.31 | 0.14 | 10.83 | 2.65 |
| EU profit (¢) | -1.67 | -91.04 | -21.65 | -0.99 | -68.8 | -14.97 | 4.20 | -45.05 | -9.76 | 4.45 | 3.95 | 1.18 | 2.40 | 19.74 | 6.48 |
| Sum of EU profit (¢) | -114.36 | -84.56 | -50.61 | 9.58 | 28.62 | ||||||||||
| Off-peak | Mid-peak | On-peak | |
| (1–6 am, 22–24 pm) | (7–16 pm) | (17–21 pm) | |
| Elasticity | 0.5 | 0.3 | 0.1 |
| EU | ||||||
|---|---|---|---|---|---|---|
| EU1 | 0.3 | 0.1 | 0 | |||
| EU2 | 0.6 | |||||
| EU3 | 0.9 |
Demand Response
Demand response shifts or reduces electricity use to help balance the grid while accounting for prices, incentives, comfort, and service needs.
See all 23 papers