A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders
Abstract
:1. Introduction
- A novel approach for forecasting day-ahead weather conditions is introduced, utilizing real-time data directly from reliable weather forecasting websites, eliminating the need for complex data processing.
- This real-time integration ensures accurate and up-to-date weather information, essential for energy management systems relying on renewable sources like solar PV.
- The clear sky model is applied to convert weather data into precise estimates of potential PV generation, accounting for geographical and meteorological conditions.
- The study models a distribution feeder representative of Australia’s energy infrastructure, incorporating real-world economic and regulatory frameworks like the TOU tariff system and flat tariff system across eight Australian states.
- Tariff structures are considered to simulate realistic energy costs, offering insights into how electricity prices impact energy storage scheduling and usage.
- Voltage constraints are included in the optimization framework to ensure system stability, preventing fluctuations that could destabilize the grid or damage equipment. By considering voltage constraints, the optimization not only focuses on economic benefits but also ensures the technical stability and reliability of the system.
2. Solar Generation Forecasting
- The first step in the process is determining the date for the forecast. The script calculates the next 24 h using Python’s datetime module. This allows the system to dynamically generate a URL that corresponds to the desired forecast date.
- Automate the web-browsing process, Selenium WebDriver is configured to use the Firefox browser in headless mode. Headless mode means that the browser operates without opening a visible user interface, which helps improve performance, particularly when running automated tasks in the background.
- The script generates the correct URL for Wunderground’s hourly forecast page by embedding the calculated date into the URL structure. Once the browser navigates to the page, a short delay is introduced to ensure that the content has fully loaded before any data extraction begins.
- The script identifies the HTML table containing the forecast information. Using XPath, Selenium locates the table and begins extracting data. It first captures the table headers, which represent the forecast attributes (such as time, temperature, and humidity). Then, the individual rows of the table, which contain the actual forecast data for each hour, are processed. The extracted data table is shown in Table 1.
3. Mathematical Modelling
3.1. Microgrid Modelling
3.2. Objective Function
3.3. Set of Constraints
3.3.1. Power Exchange and Balance Constraint
3.3.2. Voltage Constraints
3.4. Battery Energy Storage System
3.5. Matrix Formulation
3.6. Cost Estimation
4. Simulation Results
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Symeonidou, M.M.; Zioga, C.; Papadopoulos, A.M. Life cycle cost optimization analysis of battery storage system for residential photovoltaic panels. J. Clean. Prod. 2021, 309, 127234. [Google Scholar] [CrossRef]
- Ros, A.J.; Sai, S.S. Residential rooftop solar demand in the U.S. and the impact of net energy metering and electricity prices. Energy Econ. 2023, 118, 106491. [Google Scholar] [CrossRef]
- Vand, B.; Ruusu, R.; Hasan, A.; Delgado, B.M. Optimal management of energy sharing in a community of buildings using a model predictive control. Energy Convers. Manag. 2021, 239, 114178. [Google Scholar] [CrossRef]
- de Doile, G.N.D.; Rotella Junior, P.; Rocha, L.C.S.; Janda, K.; Peruchi, R.; Aquila, G.; Balestrassi, P.P. Impacts of economic regulation on photovoltaic distributed generation with battery energy storage systems. J. Energy Storage 2023, 72, 108382. [Google Scholar] [CrossRef]
- Sun, W.; Zou, Y.; Zhang, X.; Guo, N.; Zhang, B.; Du, G. High robustness energy management strategy of hybrid electric vehicle based on improved soft actor-critic deep reinforcement learning. Energy 2022, 258, 124806. [Google Scholar] [CrossRef]
- Faraji, J.; Ketabi, A.; Hashemi-Dezaki, H. Optimization of the scheduling and operation of prosumers considering the loss of life costs of battery storage systems. J. Energy Storage 2020, 31, 101655. [Google Scholar] [CrossRef]
- Bahramara, S.; Sheikhahmadi, P.; Golpîra, H. Co-optimization of energy and reserve in standalone micro-grid considering uncertainties. Energy 2019, 176, 792–804. [Google Scholar] [CrossRef]
- Zhang, S.; Tang, Y. Optimal schedule of grid-connected residential PV generation systems with battery storages under time-of-use and step tariffs. J. Energy Storage 2019, 23, 175–182. [Google Scholar] [CrossRef]
- Ivanov, O.; Neagu, B.-C.; Grigoras, G.; Scarlatache, F.; Gavrilas, M. A Metaheuristic Algorithm for Flexible Energy Storage Management in Residential Electricity Distribution Grids. Mathematics 2021, 9, 2375. [Google Scholar] [CrossRef]
- Martinez-Rico, J.; Zulueta, E.; Argandoña, I.R.d.; Fernandez-Gamiz, U.; Armendia, M. Multi-objective Optimization of Production Scheduling Using Particle Swarm Optimization Algorithm for Hybrid Renewable Power Plants with Battery Energy Storage System. J. Mod. Power Syst. Clean Energy 2021, 9, 285–294. [Google Scholar] [CrossRef]
- Raghavan, A.; Maan, P.; Shenoy, A.K.B. Optimization of Day-Ahead Energy Storage System Scheduling in Microgrid Using Genetic Algorithm and Particle Swarm Optimization. IEEE Access 2020, 8, 173068–173078. [Google Scholar] [CrossRef]
- Park, S.; Oh, J.; Hwang, E. Metaheuristic Algorithm-Based Optimal Energy Operation Scheduling and Energy System Sizing Scheme for PV-ESS Integrated Systems in South Korea. Int. J. Energy Res. 2024, 2024, 1992135. [Google Scholar] [CrossRef]
- Wu, Q.; Feng, Q.; Ren, Y.; Xia, Q.; Wang, Z.; Cai, B. An intelligent preventive maintenance method based on reinforcement learning for battery energy storage systems. IEEE Trans. Ind. Inform. 2021, 17, 8254–8264. [Google Scholar] [CrossRef]
- Cao, J.; Harrold, D.; Fan, Z.; Morstyn, T.; Healey, D.; Li, K. Deep reinforcement learning-based energy storage arbitrage with accurate lithium-ion battery degradation model. IEEE Trans. Smart Grid 2020, 11, 4513–4521. [Google Scholar] [CrossRef]
- Han, G.; Lee, S.; Lee, J.; Lee, K.; Bae, J. Deep-learning-and reinforcement-learning-based profitable strategy of a grid-level energy storage system for the smart grid. J. Energy Storage 2021, 41, 102868. [Google Scholar] [CrossRef]
- Liu, Y.; Zhang, D.; Gooi, H.B. Optimization strategy based on deep reinforcement learning for home energy management. CSEE J. Power Energy Syst. 2020, 6, 572–582. [Google Scholar]
- ABB. EssProTM Energy Storage Power Conversion System (PCS); ABB: Tokyo, Japan, 2023. [Google Scholar]
- Hosseini, M.M.; Parvania, M. Hierarchical intelligent operation of energy storage systems in power distribution grids. IEEE Trans. Sustain. Energy 2022, 14, 741–750. [Google Scholar] [CrossRef]
- Kang, H.; Jung, S.; Kim, H.; Jeoung, J.; Hong, T. Reinforcement learning-based optimal scheduling model of battery energy storage system at the building level. Renew. Sustain. Energy Rev. 2024, 190, 114054. [Google Scholar] [CrossRef]
- Kang, D.; Kang, D.; Hwangbo, S.; Niaz, H.; Lee, W.B.; Liu, J.J.; Na, J. Optimal planning of hybrid energy storage systems using curtailed renewable energy through deep reinforcement learning. Energy 2023, 284, 128623. [Google Scholar] [CrossRef]
- Real, A.C.; Luz, G.P.; Sousa, J.; Brito, M.; Vieira, S. Optimization of a photovoltaic-battery system using deep reinforcement learning and load forecasting. Energy AI 2024, 16, 100347. [Google Scholar] [CrossRef]
- Elkazaz, M.; Sumner, M.; Davies, R.; Pholboon, S.; Thomas, D. Optimization based real-time home energy management in the presence of renewable energy and battery energy storage. In Proceedings of the 2019 International Conference on Smart Energy Systems and Technologies (SEST), Porto, Portugal, 9–11 September 2019; pp. 1–6. [Google Scholar]
- Nottrott, A.; Kleissl, J.; Washom, B. Energy dispatch schedule optimization and cost benefit analysis for grid-connected, photovoltaic-battery storage systems. Renew. Energy 2013, 55, 230–240. [Google Scholar] [CrossRef]
- Zhang, H.; Cai, J.; Fang, K.; Zhao, F.; Sutherland, J.W. Operational optimization of a grid-connected factory with onsite photovoltaic and battery storage systems. Appl. Energy 2017, 205, 1538–1547. [Google Scholar] [CrossRef]
- Hesse, H.C.; Martins, R.; Musilek, P.; Naumann, M.; Truong, C.N.; Jossen, A. Economic optimization of component sizing for residential battery storage systems. Energies 2017, 10, 835. [Google Scholar] [CrossRef]
- Silva, V.A.; Aoki, A.R.; Lambert-Torres, G. Optimal Day-Ahead Scheduling of Microgrids with Battery Energy Storage System. Energies 2020, 13, 5188. [Google Scholar] [CrossRef]
- Eslahi, M.; Nematollahi, A.F.; Vahidi, B. Day-Ahead scheduling of centralized energy storage system in electrical networks by proposed stochastic MILP-Based bi-objective optimization approach. Electr. Power Syst. Res. 2021, 192, 106915. [Google Scholar] [CrossRef]
- Aslam, S.; Khalid, A.; Javaid, N. Towards efficient energy management in smart grids considering microgrids with day-ahead energy forecasting. Electr. Power Syst. Res. 2020, 182, 106232. [Google Scholar] [CrossRef]
- Feng, C.; Shao, L.; Wang, J.; Zhang, Y.; Wen, F. Short-term Load Forecasting of Distribution Transformer Supply Zones Based on Federated Model-Agnostic Meta Learning. IEEE Trans. Power Syst. 2024, 40, 31–45. [Google Scholar] [CrossRef]
- Kong, W.; Dong, Z.Y.; Jia, Y.; Hill, D.J.; Xu, Y.; Zhang, Y. Short-term residential load forecasting based on LSTM recurrent neural network. IEEE Trans. Smart Grid 2017, 10, 841–851. [Google Scholar] [CrossRef]
- Guo, Y.; Li, Y.; Qiao, X.; Zhang, Z.; Zhou, W.; Mei, Y.; Lin, J.; Zhou, Y.; Nakanishi, Y. BiLSTM multitask learning-based combined load forecasting considering the loads coupling relationship for multienergy system. IEEE Trans. Smart Grid 2022, 13, 3481–3492. [Google Scholar] [CrossRef]
- Singh, N.; Vyjayanthi, C.; Modi, C. Multi-step short-term electric load forecasting using 2D convolutional neural networks. In Proceedings of the 2020 IEEE-HYDCON, Hyderabad, India, 11–12 September 2020; pp. 1–5. [Google Scholar]
- Jiang, L.; Wang, X.; Li, W.; Wang, L.; Yin, X.; Jia, L. Hybrid multitask multi-information fusion deep learning for household short-term load forecasting. IEEE Trans. Smart Grid 2021, 12, 5362–5372. [Google Scholar] [CrossRef]
- Ribeiro, M.; Grolinger, K.; ElYamany, H.F.; Higashino, W.A.; Capretz, M.A. Transfer learning with seasonal and trend adjustment for cross-building energy forecasting. Energy Build. 2018, 165, 352–363. [Google Scholar] [CrossRef]
- Chamandoust, H.; Derakhshan, G.; Hakimi, S.M.; Bahramara, S. Tri-objective scheduling of residential smart electrical distribution grids with optimal joint of responsive loads with renewable energy sources. J. Energy Storage 2020, 27, 101112. [Google Scholar] [CrossRef]
- Available online: https://www.wunderground.com/ (accessed on 5 May 2024).
- Bird, R.E.; Hulstrom, R.L. Simplified Clear Sky Model for Direct and Diffuse Insolation on Horizontal Surfaces; United States, 01 1981. Available online: https://www.osti.gov/biblio/6510849 (accessed on 20 August 2024).
- Li, L.; Wang, B.; Jiao, K.; Ni, M.; Du, Q.; Liu, Y.; Li, B.; Ling, G.; Wang, C. Comparative techno-economic analysis of large-scale renewable energy storage technologies. Energy AI 2023, 14, 100282. [Google Scholar] [CrossRef]
- Mostafa, M.H.; Aleem, S.H.A.; Ali, S.G.; Ali, Z.M.; Abdelaziz, A.Y. Techno-economic assessment of energy storage systems using annualized life cycle cost of storage (LCCOS) and levelized cost of energy (LCOE) metrics. J. Energy Storage 2020, 29, 101345. [Google Scholar] [CrossRef]
- Mumtahina, U.; Alahakoon, S.; Wolfs, P.; Liu, J. Constructing Australian Residential Electricity Load Profile for Supporting Future Network Studies. Energies 2024, 17, 2908. [Google Scholar] [CrossRef]
Time | Conditions | Temp. | Feels Like | Precip | Amount | Cloud Cover | Dew Point | Humidity | Wind | Pressure |
---|---|---|---|---|---|---|---|---|---|---|
12:00 am | Clear | 75 °F | 79 °F | 6% | 0 in | 15% | 70 °F | 85% | 3 mph E | 29.90 in |
1:00 am | Mostly Clear | 75 °F | 79 °F | 6% | 0 in | 26% | 70 °F | 86% | 2 mph ENE | 29.88 in |
2:00 am | Mostly Clear | 74 °F | 76 °F | 7% | 0 in | 28% | 70 °F | 87% | 2 mph ENE | 29.87 in |
3:00 am | Mostly Clear | 73 °F | 75 °F | 7% | 0 in | 24% | 70 °F | 90% | 2 mph E | 29.86 in |
4:00 am | Clear | 72 °F | 75 °F | 8% | 0 in | 17% | 70 °F | 92% | 1 mph SW | 29.87 in |
5:00 am | Clear | 72 °F | 74 °F | 8% | 0 in | 18% | 70 °F | 92% | 1 mph WSW | 29.88 in |
6:00 am | Sunny | 74 °F | 77 °F | 6% | 0 in | 18% | 70 °F | 88% | 1 mph SSW | 29.90 in |
7:00 am | Sunny | 78 °F | 83 °F | 4% | 0 in | 9% | 71 °F | 79% | 2 mph SSW | 29.91 in |
8:00 am | Sunny | 82 °F | 87 °F | 1% | 0 in | 16% | 71 °F | 69% | 2 mph E | 29.91 in |
9:00 am | Sunny | 85 °F | 90 °F | 0% | 0 in | 12% | 70 °F | 60% | 2 mph N | 29.90 in |
10:00 am | Sunny | 88 °F | 94 °F | 0% | 0 in | 8% | 69 °F | 53% | 3 mph NNE | 29.88 in |
11:00 am | Sunny | 91 °F | 97 °F | 0% | 0 in | 5% | 68 °F | 47% | 4 mph NE | 29.86 in |
12:00 pm | Sunny | 94 °F | 100 °F | 0% | 0 in | 2% | 68 °F | 43% | 5 mph ENE | 29.84 in |
1:00 pm | Sunny | 95 °F | 101 °F | 0% | 0 in | 4% | 67 °F | 40% | 6 mph ENE | 29.81 in |
2:00 pm | Sunny | 96 °F | 102 °F | 0% | 0 in | 10% | 66 °F | 38% | 8 mph E | 29.80 in |
3:00 pm | Sunny | 96 °F | 101 °F | 0% | 0 in | 11% | 66 °F | 38% | 9 mph ENE | 29.78 in |
4:00 pm | Sunny | 94 °F | 99 °F | 0% | 0 in | 10% | 66 °F | 41% | 11 mph NE | 29.77 in |
5:00 pm | Sunny | 91 °F | 96 °F | 0% | 0 in | 4% | 67 °F | 46% | 11 mph NE | 29.78 in |
6:00 pm | Sunny | 87 °F | 92 °F | 0% | 0 in | 3% | 68 °F | 53% | 10 mph NE | 29.80 in |
7:00 pm | Clear | 84 °F | 89 °F | 1% | 0 in | 4% | 69 °F | 60% | 8 mph NE | 29.83 in |
8:00 pm | Clear | 82 °F | 87 °F | 2% | 0 in | 10% | 70 °F | 67% | 6 mph NE | 29.85 in |
9:00 pm | Clear | 81 °F | 86 °F | 3% | 0 in | 12% | 70 °F | 71% | 5 mph NNE | 29.86 in |
10:00 pm | Clear | 80 °F | 84 °F | 4% | 0 in | 16% | 71 °F | 74% | 4 mph NNE | 29.87 in |
11:00 pm | Clear | 78 °F | 83 °F | 5% | 0 in | 15% | 71 °F | 77% | 3 mph NNE | 29.87 in |
Parameters | Value |
---|---|
(%) | 7 |
(years) | 20 |
(AUD/kWh) | 1272 |
(%) | 90 |
(AUD/kW) | 740 |
(AUD/kW) | 128 |
(AUD/kW) | 11 |
0.03 | |
(AUD/kWh) | 0.16 |
(day) | 365 |
(hour) | 2 |
0.03 | |
(%) | 80 |
(cycles) | 6000 |
Queensland (QLD) | South Australia (SA) | ||||
---|---|---|---|---|---|
Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) | Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) |
19:00–9:00 | Shoulder | 0.3012 | 21:00–10:00 | Shoulder | 0.3107 |
9:00–16:00 | Off-peak | 0.2756 | 10:00–16:00 | Off-peak | 0.2952 |
16:00–19:00 | On-peak | 0.4365 | 16:00–21:00 | On-peak | 0.5159 |
Victoria (VIC) | Western Australia (WA) | ||||
Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) | Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) |
21:00–10:00 | Shoulder | 0.2500 | 21:00–07:00 | Off-peak | 0.0841 |
10:00–15:00 | Off-peak | 0.1837 | 07:00–15:00 | On-peak | 0.5153 |
15:00–21:00 | On-peak | 0.3032 | 15:00–21:00 | Shoulder | 0.2311 |
Tasmania (TAS) | Australian Capital Territory (ACT) | ||||
Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) | Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) |
21:00–07:00 | Off-peak | 0.1669 | 22:00–07:00 | Off-peak | 0.2017 |
07:00–10:00 | On-peak | 0.3584 | 07:00–09:00 | On-peak | 0.3789 |
10:00–16:00 | Off-peak | 0.1669 | 09:00–17:00 | Shoulder | 0.2761 |
16:00–21:00 | On-peak | 0.3584 | 17:00–20:00 | On-peak | 0.3789 |
20:00–22:00 | Shoulder | 0.2761 | |||
New South Wales (NSW) | Norther Territory (NT) | ||||
Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) | Time-of-Use (TOU) | Designation | Energy prices (AUD/kWh) |
21:00–15:00 | Off-peak | 0.2315 | 18:00–06:00 | Off-peak | 0.2627 |
15:00–21:00 | On-peak | 0.5562 | 06:00–18:00 | On-peak | 0.3445 |
Parameter | ACT | NSW | NT | SA | TAS | VIC | WA | QLD | Flat Tariff |
---|---|---|---|---|---|---|---|---|---|
Daily imported energy (kWh) | 1134 | 1219 | 1219 | 1112 | 1168 | 1146 | 1253 | 1146 | 1146 |
Daily exported energy (kWh) | 585 | 678 | 675 | 571 | 618 | 605 | 709 | 7605 | 602 |
Utility bill (AUD) | 599 | 747 | 659 | 785 | 571 | 550 | 611 | 668 | 396 |
Optimized bill (AUD) | 144 | 257 | 126 | 280 | 175 | 202 | 134 | 200 | 114 |
Savings (AUD) | 455 | 490 | 533 | 505 | 396 | 348 | 477 | 468 | 282 |
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. |
© 2025 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
Mumtahina, U.; Alahakoon, S.; Wolfs, P. A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders. Energies 2025, 18, 1067. https://doi.org/10.3390/en18051067
Mumtahina U, Alahakoon S, Wolfs P. A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders. Energies. 2025; 18(5):1067. https://doi.org/10.3390/en18051067
Chicago/Turabian StyleMumtahina, Umme, Sanath Alahakoon, and Peter Wolfs. 2025. "A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders" Energies 18, no. 5: 1067. https://doi.org/10.3390/en18051067
APA StyleMumtahina, U., Alahakoon, S., & Wolfs, P. (2025). A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders. Energies, 18(5), 1067. https://doi.org/10.3390/en18051067