Energy Community Management Based on Artificial Intelligence for the Implementation of Renewable Energy Systems in Smart Homes
Abstract
:1. Introduction
1.1. Motivation and Background
1.2. Related Works and Contributions
2. Methodology
2.1. The Proposed Design
2.2. Supply–Demand Correlation
2.2.1. Smart Bidding Approach
2.2.2. Bid and Quote
2.3. Objective Function
DR Implementation: Appliance Scheduling of Smart Homes
2.4. Single Home Case Study
2.4.1. PV System
2.4.2. Households Load Consumptions
2.4.3. Storage System
2.4.4. Potential Budget
2.4.5. Time-of-Use Tariff
2.4.6. Energy Balance
2.4.7. EV Constraints
3. Deep Reinforcement Learning Solution
Markov Decision Process Formulation
Q-learning Algorithm 1. P2P Energy Trading Approach. |
Home Agent ID status, SoCBT
Output groups- N (s), Q-value records, Optimal action an MDP
|
4. Case Study
4.1. General Setup
Initialization
4.2. Single Home
4.2.1. Results with Utility Grid
4.2.2. Results Considering Grid with Blackouts
4.3. Case Study: Multi-House Community
4.3.1. High Solar Penetration
4.3.2. Low Solar Penetration
4.3.3. Performance Evaluation Using RL/ANN and MILP
4.4. Regarding the General Applicability of the Offered Approach
4.5. Discussion
5. Conclusions and Future Works
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A
Mathematical Formulation | Mathematical Formulation | ||
---|---|---|---|
DSCID=1T(t) | Consumer 1 Demand–Supply Correlation at time “t” | DSCID=2S(t) | Prosumer 4 Demand–Supply Correlation at time “t” |
DSCID=2S(t) | Prosumer 2 Demand–Supply Correlation at time “t” | DSCID=3S(t) | Prosumer 5 Demand–Supply Correlation at time “t” |
DSCID=3S(t) | Prosumer 3 Demand–Supply Correlation at time “t” | DSCID=6T(t) | Consumer 6 Demand–Supply Correlation at time “t” |
Pinj-PV1 (t) | Power delivered by PV1 at time “t” in kW | Pinj-PV4 (t) | Power delivered by PV4 at time “t” in kW |
Pinj-PV2 (t) | Power delivered by PV2 at time “t” in kW | Pinj-PV5 (t) | Power delivered by PV5 at time “t” in kW |
Pinj-PV3 (t) | Power delivered by PV3 at time “t” in kW | Pinj-PV6 (t) | Power delivered by PV6 at time “t” in kW |
PGrid-home1 | Power supplied by the grid to home 1 at time e “t” | PGrid-home5 | Power supplied by the grid to home 5 at time “t” |
PGrid-home2 | Power supplied by the grid to home 2 at time “t” | PGrid-home6 | Power supplied by the grid to home 6 at time “t” |
PGrid-home3 | Power supplied by the grid to home 3 at time “t” | Bid and Quote | |
PGrid-home4 | Power supplied by the grid to home 4 at the time “t” | QID=3S(t) | Quote pricing provided by Prosumer 2 at time “t” |
Bid and Quote | QID=4S(t) | Quote pricing provided by Prosumer 3 at time “t” | |
BID=1T(t) | Bid pricing provided by Customer 1 at time “t” | QID=5S(t) | Quote pricing provided by Prosumer 4 at time “t” |
BID=2T(t) | Bid pricing provided by Customer 6 at time “t” | QID=6S(t) | Quote pricing provided by Prosumer 5 at time “t” |
PRTPgrid(t) | Grid and RTP tariff at time “t” | Objective Function | |
Trading costs from prosumers to consumers | Switch1 con(t) | A numerical value indicating the amount of power that was extracted from the grid at time t | |
min B(t) | Minimum offering quantity at time “t” | PRTPGrid(t) | RTP pricing at time “t” |
Trad1cost(t) | Power price that Consumer 1 bought at time “t” | PGrid (t) | Power delivered by the grid at time “t” in kW |
Trad2cost(t) | Power price that Prosumer 2 bought at time “t” | MPV (t) | Maintenance expenses for solar power systems |
Objective Function | MBT (t) | Maintenance expenses for BT energy storage in kW | |
PPV (t) | Power delivered by PV at time “t” in kW | PBTDis (t) | Battery power discharged at time t expressed in kW |
Consumer(K,t) | Electricity transferred from the customer at time t in kW | Prosumer(K,t) | Electricity transferred from the consumer at time t in kW |
S(i,t) | Binary value (on/off) denotes the exchanges with consumer i at time t | ||
Energy Balance | |||
J1 | Power Balance for Prosumer i = (ID: 1,3.4,5) at time t | J3 | Power Balance for Consumer i = (ID: 6) at time t |
J2 | Power Balance for Consumer i = (ID: 2) at time t | PGH (t,s) | Power delivered from the grid to home at time t in kW |
Pneeded (t,s) | Energy demand by each Prosumer i = (ID: 1,3.4,5) at time t in kW | PNG (t,s) | Power delivered from the home to the grid at the time t in kW |
PBTCharge (t,s) | Battery backup during time t in kw | PBTDis (t) | Battery power discharged at time t expressed in kW |
Electric Vehicle | |||
Yn, tEV, Cons | Household electrical energy usage, n, over time t, measured in kW | Yn, tEV, dis | The household “n’s” electric vehicle (EV) power discharging during t is noted (kW) |
Yn, tEV, Sell | The household “n’s” electric vehicle (EV) power sales during t is noted (kW) | ψn, tEV | The domestic electric vehicle (EV) battery charging efficiency is its charging efficiency. It measures the efficiency with which the EV battery stores energy from the charging source (kW). |
Yn, tEV, char | The household “n’s” electric vehicle (EV) power charging during t is noted (kW) | χn, tEV | A binary variable can only take two values, commonly 0 and 1. If the EV is charged during t, the value is 1; otherwise, 0. |
Tn1 | The anticipated arrival time of household n’s EV | Dn, tEV | EV charge efficiency of household n |
Tn2 | The anticipated departure time of household n’s EV | ƞn, tEV, Cons | EV discharge efficiency |
SINGLE HOME SHARING ENERGY | |||
Isolar(t) | PV supply at the time t in kw | ea, x | Switching vector selects power consumption |
Ja,x | Appliance average power demand matrices | SoC0BT(t) | Battery state of charge at time 0 |
SoCBT(t) | Battery state of charge at time t | CBT max | Battery maximum capacity at time t |
ηc | BT charging efficiency | ηd | BT discharging efficiency at time t |
CBT 0 | Battery capacity at time t0 | pd(t,s) | Power delivered by the BT at time t |
CIntialBudget | Initial budget (USD) at the time t | ϕpv | PV array Capital Cost (USD/kW) at time t |
ϕBT | BT Capital-Cost (USD/kW) at the time t | ClimitBudget | Fixed budget limit (USD) at time t |
Deep reinforcement learning solution | |||
SnMDP(t) | MDP state vector condition at time t | K1 | Home Energy Trading at time t |
anMDP(t) | MDP action vector condition at time t | K2 | Load scheduling of six houses at time t |
RnMDP(t) | MDP reward vector condition at time t | K3 | BT energy storage at time t |
wi | The weighted sum of the input vector at time t | Q(Sn, an) | Optimal Q-value at time t |
g | The relative discount coefficient at time t | k* | Deterministic policy at time t |
Δζ | Counted maximum future payment at time t | L(θ) | Bellman equation at time t |
θ | Soft update coefficient at time t | θnQ | Soft update at time t |
gn(T) | The loss function at time t | Cbuy(t) | The electricity sale prices at time t |
Cbuy(t) | The electricity purchase prices at time t |
References
- Jenisha, C.M. Decoupled control with constant DC link voltage for PV-fed single-phase grid-connected systems. Integr. Renew. Energy Sources Smart Grid 2021, 9, 171–185. [Google Scholar]
- Khodoomi, M.; Sahebi, H. Robust Optimization and pricing of peer-to-peer energy trading considering battery storage. Comput. Ind. Eng. 2023, 179, 109210. [Google Scholar] [CrossRef]
- Wang, J.; Xu, H.; Xu, J. Can the target responsibility system of air pollution control achieve a win-win situation of pollution reduction and efficiency enhancement? Front. Energy Res. 2022, 9, 821686. [Google Scholar] [CrossRef]
- Steele, K. Pareto improvements and feasible climate solutions. In Philosophy and Climate Change; Oxford University Press: Oxford, UK, 2021; pp. 346–369. [Google Scholar]
- Yu, V.F.; Le, T.H.; Gupta, J.N.D. Sustainable Microgrid Design with peer-to-peer energy trading involving government subsidies and uncertainties. Renew. Energy 2023, 206, 658–675. [Google Scholar] [CrossRef]
- Fernandez, E.; Hossain, M.J.; Ali, S.M.N.; Sharma, V. An efficient P2P energy trading platform based on evolutionary games for prosumers in a community. Sustain. Energy Grids Netw. 2023, 34, 101074. [Google Scholar] [CrossRef]
- Horowitz, M.J.; Haeri, H. Economic efficiency V energy efficiency. Energy Econ. 1990, 12, 122–131. [Google Scholar] [CrossRef]
- Mokryani, G. Control of distribution networks with integration of renewable sources. In Future Distribution Networks; AIP Publishing LLC: Melville, NY, USA, 2022; pp. 1–16. [Google Scholar]
- Xia, Y.; Xu, Q.; Li, F. Grid-friendly pricing mechanism for peer-to-peer energy sharing market diffusion in communities. Appl. Energy 2023, 334, 120685. [Google Scholar] [CrossRef]
- Ghaemi, S.; Anvari-Moghaddam, A. Local energy communities with strategic behavior of multi-energy players for peer-to-peer trading: A techno-economic assessment. Sustain. Energy Grids Netw. 2023, 34, 101059. [Google Scholar] [CrossRef]
- Ben Slama, S.; Mahmoud, M. A deep learning model for Intelligent Home Energy Management System using renewable energy. Eng. Appl. Artif. Intell. 2023, 123, 106388. [Google Scholar] [CrossRef]
- Ben Slama, S. Prosumer in smart grids based on Intelligent edge computing: A review on Artificial Intelligence Scheduling Techniques. Ain Shams Eng. J. 2022, 13, 101504. [Google Scholar] [CrossRef]
- Ben Slama, S. Design and implementation of Home Energy Management System using vehicle to home (H2V) approach. J. Clean. Prod. 2021, 312, 127792. [Google Scholar] [CrossRef]
- Seo, S.-K.; Yun, D.-Y.; Lee, C.-J. Design and optimization of a hydrogen supply chain using a centralized storage model. Appl. Energy 2020, 262, 114452. [Google Scholar] [CrossRef]
- Gbadega, P.A.; Sun, Y. Centralized peer-to-peer transactive energy market approach in a prosumer-centric residential smart grid environment. Energy Rep. 2022, 8, 105–116. [Google Scholar] [CrossRef]
- Yang, Y.; Hu, W.; Chen, X.; Cao, G. Energy-aware CPU frequency scaling for mobile video streaming. IEEE Trans. Mob. Comput. 2019, 18, 2536–2548. [Google Scholar] [CrossRef]
- Zakeri, B.; Gissey, G.C.; Dodds, P.E.; Subkhankulova, D. Centralized vs. distributed energy storage—Benefits for residential users. Energy 2021, 236, 121443. [Google Scholar] [CrossRef]
- Jiang, Y.; Zhou, K.; Lu, X.; Yang, S. Electricity trading pricing among prosumers with game theory-based model in Energy Blockchain Environment. Appl. Energy 2020, 271, 115239. [Google Scholar] [CrossRef]
- Talari, S.; Khorasany, M.; Razzaghi, R.; Ketter, W.; Gazafroudi, A.S. Mechanism design for decentralized peer-to-peer energy trading considering heterogeneous preferences. Sustain. Cities Soc. 2022, 87, 104182. [Google Scholar] [CrossRef]
- Sheikh, M.A.; Kamuni, V.; Fulpagare, M.; Suryawanshi, U.; Wagh, S.; Singh, N.M. Blockchain-based decentralized, flexible, and transparent energy market. In Flexibility in Electric Power Distribution Networks; CRC Press: Boca Raton, FL, USA, 2021; pp. 233–253. [Google Scholar]
- Mukherjee, M.; Hardy, T.; Fuller, J.C.; Bose, A. Implementing multi-settlement decentralized electricity market design for transactive communities with Imperfect Communication. Appl. Energy 2022, 306, 117979. [Google Scholar] [CrossRef]
- Zhao, X.; Li, L.; Tao, Y.; Lai, S.; Zhou, X.; Qiu, J. Aggregated operation of heterogeneous small-capacity distributed energy resources in peer-to-peer energy trading. Int. J. Electr. Power Energy Syst. 2022, 141, 108162. [Google Scholar] [CrossRef]
- Zhou, Y.; Lund, P.D. Peer-to-peer energy sharing and trading of renewable energy in Smart Communities ─ trading pricing models, decision-making and agent-based collaboration. Renew. Energy 2023, 207, 177–193. [Google Scholar] [CrossRef]
- Mahmood, D.; Javaid, N.; Ahmed, G.; Khan, S.; Monteiro, V. A review on optimization strategies integrating renewable energy sources focusing uncertainty factor—Paving path to eco-friendly smart cities. Sustain. Comput. Inform. Syst. 2021, 30, 100559. [Google Scholar] [CrossRef]
- Aygun, B.; Gunel Kilic, B.; Arici, N.; Cosar, A.; Tuncsiper, B. Application of binary PSO for Public Cloud Resources Allocation System of Video on Demand (VOD) services. Appl. Soft Comput. 2021, 99, 106870. [Google Scholar] [CrossRef]
- Alsenani, T.R. The participation of electric vehicles in a peer-to-peer energy-backed token market. Int. J. Electr. Power Energy Syst. 2023, 148, 109005. [Google Scholar] [CrossRef]
- Bellos, E.; Iliadis, P.; Papalexis, C.; Rotas, R.; Nikolopoulos, N.; Kosmatopoulos, E.; Halmdienst, C. Dynamic investigation of centralized and decentralized storage systems for a district heating network. J. Energy Storage 2022, 56, 106072. [Google Scholar] [CrossRef]
- Zhang, F.; Yang, Q.; Li, D. A deep reinforcement learning-based bidding strategy for participants in a peer-to-peer energy trading scenario. Front. Energy Res. 2023, 10, 1017438. [Google Scholar] [CrossRef]
- Zhou, Y.; Wu, J.; Song, G.; Long, C. Framework design and optimal bidding strategy for ancillary service provision from a peer-to-peer energy trading community. Appl. Energy 2020, 278, 115671. [Google Scholar] [CrossRef]
- Zhou, Y.; Liu, J. Agent-based peer-to-peer energy trading between prosumers and consumers with cost-benefit business models. In Sustainable Developments by Artificial Intelligence and Machine Learning for Renewable Energies; Elsevier: Amsterdam, The Netherlands, 2022; pp. 273–289. [Google Scholar]
- Wang, Z.; Yu, X.; Mu, Y.; Jia, H.; Jiang, Q.; Wang, X. Peer-to-peer energy trading strategy for Energy Balance Service Provider (EBSP) considering market elasticity in community microgrid. Appl. Energy 2021, 303, 117596. [Google Scholar] [CrossRef]
- Yaldız, A.; Gökçek, T.; Şengör, I.; Erdinç, O. Optimal Sizing and economic analysis of photovoltaic distributed generation with Battery Energy Storage System considering peer-to-peer energy trading. Sustain. Energy Grids Netw. 2021, 28, 100540. [Google Scholar] [CrossRef]
- Issi, F.; Kaplan, O. The Determination of Load Profiles and Power Consumptions of Home Appliances. Energies 2018, 11, 607. [Google Scholar] [CrossRef]
- Chen, Y.; Pei, W.; Xiao, H.; Ma, T. Incentive-compatible and budget balanced AGV mechanism for peer-to-peer energy trading in smart grids. Glob. Energy Interconnect. 2023, 6, 26–35. [Google Scholar] [CrossRef]
- Sahebi, H.; Khodoomi, M.; Seif, M.; Pishvaee, M.; Hanne, T. The benefits of peer-to-peer renewable energy trading and battery storage backup for local grid. J. Energy Storage 2023, 63, 106970. [Google Scholar] [CrossRef]
- Wang, J.; Li, L.; Zhang, J. Deep reinforcement learning for energy trading and load scheduling in residential peer-to-peer energy trading market. Int. J. Electr. Power Energy Syst. 2023, 147, 108885. [Google Scholar] [CrossRef]
- Pereira, H.; Gomes, L.; Vale, Z. Peer-to-peer energy trading optimization in energy communities using multi-agent deep reinforcement learning. Energy Inform. 2022, 5, S4. [Google Scholar] [CrossRef]
- Lopez, H.K.; Zilouchian, A. Peer-to-peer energy trading for photo-voltaic prosumers. Energy 2023, 263, 125563. [Google Scholar] [CrossRef]
- Hou, S.; Fujimura, S. Day-Ahead multi-objective microgrid dispatch optimization based on demand side management via particle swarm optimization. IEEJ Trans. Electr. Electron. Eng. 2022, 18, 25–37. [Google Scholar] [CrossRef]
- Mensin, Y.; Ketjoy, N.; Chamsa-ard, W.; Kaewpanha, M.; Mensin, P. The P2P energy trading using maximized self-consumption priorities strategies for sustainable microgrid community. Energy Rep. 2022, 8, 14289–14303. [Google Scholar] [CrossRef]
- Wang, J.X.; Kurth-Nelson, Z.; Kumaran, D.; Tirumala, D.; Soyer, H.; Leibo, J.Z.; Hassabis, D.; Botvinick, M. Prefrontal cortex as a meta-reinforcement learning system. Nat. Neurosci. 2018, 21, 860–868. [Google Scholar] [CrossRef]
PV | BT | EVs | DG | DR | Pricing | Interface | LS | Ref. |
---|---|---|---|---|---|---|---|---|
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ○ | [13] |
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ○ | [14] |
✓ | ✓ | ○ | ○ | ✓ | ✓ | ✓ | ○ | [15] |
✓ | ○ | ○ | ○ | ✓ | ○ | ○ | ○ | [16] |
✓ | ○ | ○ | ○ | ✓ | ✓ | ✓ | ✓ | [17] |
✓ | ○ | ✓ | ✓ | ✓ | ○ | ✓ | ✓ | [18] |
✓ | ○ | ✓ | ✓ | ✓ | ✓ | ✓ | [19] | |
✓ | ✓ | ✓ | ○ | ✓ | ○ | [20] | ||
✓ | ✓ | ○ | ✓ | ✓ | ✓ | ○ | ✓ | [21] |
✓ | ○ | ✓ | ✓ | ○ | ✓ | [22] | ||
✓ | ○ | ○ | ✓ | ✓ | ○ | ✓ | [23] | |
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | [24] |
✓ | ○ | ○ | ✓ | ✓ | [25] | |||
✓ | ○ | ○ | ✓ | ✓ | ✓ | ✓ | ✓ | [10] |
✓ | ○ | ○ | ✓ | ✓ | ○ | [11] | ||
✓ | ○ | ✓ | ✓ | ○ | ✓ | [12] | ||
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | [7] | ||
✓ | ✓ | ✓ | ✓ | ✓ | ○ | ✓ | [5] | |
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | In our Proposed work |
Items | Parameters | Items | Parameters |
---|---|---|---|
System Parameters | System Parameters | ||
Learning Rate (LR) Δζ (∈ [0, 1]) | Δζ = 0 or 1 | Episode | 1000e |
Discount Rate (DR) | 0.95 | Exploration Rate Min | |
Exploration Rate (ER) | n | Exploration Rate Max | |
Decay Rate (DR) | 0.998 | Discounting Parameter g | g∈ [0, 1] |
Execution Time | 24 h | Optimization parameter | 0.005 |
TUpper | 24 C | TLower | 17 C |
AC Thermal | 0.879 and 0.025 | WM operating Time | (6:30 a.m., 9:30 p.m.) |
ΔEAC | 39.95 Wh | Dissatisfaction cost AC | 47 |
Dissatisfaction cost OV | 50 | Dissatisfaction cost WM | 51 |
e-greedy policy k* | 0.1 | Preferred Temperature range | (23 C, 25 C) |
Daily tariffs for different prices | Daily tariffs for different prices | ||
00:00–01:00 | 0.01 | 01:00–02:00 | 0.01 |
02:00–03:00 | 0.01 | 03:00–04:00 | 0.01 |
04:00–05:00 | 0.01 | 05:00–06:00 | 0.01 |
06:00–07:00 | 0.01 | 07:00–08:00 | 0.02 |
09:00–09:00 | 0.0245 | 09:00–10:00 | 0.248 |
10:00–11:00 | 0.251 | 11:00–12:00 | 0.3154 |
Battery storage unit | PV system | ||
Maximum Charging Power (PBch max) (Kw) | 3.0 Kw | PV-related Power | 1.0 Kw |
Max power for charging BT battery PC, max, Kw | 3.3 Kw | Interest rate | 4.80% |
Charge/discharging efficiency % | 0.89/0.9% | GHM lifetime | 25.0 |
V2H Energy Efficiency (KWh/100 Km) | 3.0 KWh/100 Km | Rated Capacity: gratedPVG (KW) | 8.02 Kw |
Maximum Charging Power (PBdich max) (Kw) | 3.0 Kw | Investment cost (δGPV) (USD/KW) | 769.0 $/KW |
SoCV2H-min (%) | 19% | PV Cell Numbers | Ns 3; Np 6 |
SoCBT-max (%) | 90% | P Grid, max (Kw) | 6725 Kw |
SOCBT Range | 30~80% | PV charging efficiency ηch, % | 0.89% |
Electric Vehicle | Electric Vehicle | ||
SoEmax | =100 kwh | SoEinit | =60 kwh |
SoEmin | =25 kwh | ψEV | 12 kw |
SoEdisered | =81 kwh | DEV | 10 kw |
Agent User ID | Agent Type | Cost without Q-Learning | Cost with Q-Learning |
---|---|---|---|
1 | #A1-Prosumer | 0.60 | 0.649 |
2 | #A1-Consumer | 05.6 | 0.616 |
3 | #A1-Prosumer | 0.624 | 0.420 |
4 | #A1-Consumer | 0.897 | 0.599 |
5 | #A1-Prosumer | 0.5789 | 0.463 |
6 | #A1-Prosumer | 0.45698 | 0.451 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Khayyat, M.M.; Sami, B. Energy Community Management Based on Artificial Intelligence for the Implementation of Renewable Energy Systems in Smart Homes. Electronics 2024, 13, 380. https://doi.org/10.3390/electronics13020380
Khayyat MM, Sami B. Energy Community Management Based on Artificial Intelligence for the Implementation of Renewable Energy Systems in Smart Homes. Electronics. 2024; 13(2):380. https://doi.org/10.3390/electronics13020380
Chicago/Turabian StyleKhayyat, Manal Mahmoud, and Benslama Sami. 2024. "Energy Community Management Based on Artificial Intelligence for the Implementation of Renewable Energy Systems in Smart Homes" Electronics 13, no. 2: 380. https://doi.org/10.3390/electronics13020380
APA StyleKhayyat, M. M., & Sami, B. (2024). Energy Community Management Based on Artificial Intelligence for the Implementation of Renewable Energy Systems in Smart Homes. Electronics, 13(2), 380. https://doi.org/10.3390/electronics13020380