Next Article in Journal
Transformative Impacts of AI and Wireless Communication in CSP Heliostat Control Systems
Previous Article in Journal
Estimating Single Layer Bi-Channel Neural Networks Architecture for Speed Control of Variable Reluctance Motors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Day-Ahead Optimal Battery Scheduling Considering the Grid Stability of Distribution Feeders

1
Central Queensland University, Rockhampton, QLD 4701, Australia
2
Central Queensland University, Gladstone, QLD 4680, Australia
*
Author to whom correspondence should be addressed.
Energies 2025, 18(5), 1067; https://doi.org/10.3390/en18051067
Submission received: 6 January 2025 / Revised: 20 February 2025 / Accepted: 20 February 2025 / Published: 22 February 2025
(This article belongs to the Section F1: Electrical Power System)

Abstract

:
This study presents a comprehensive framework for optimizing energy management systems by integrating advanced methodologies for weather forecasting, energy cost analysis, and grid stability using a mixed-integer linear programming (MILP) algorithm. A novel approach is proposed for day-ahead weather forecasting, leveraging real-time data extraction from reliable weather websites and applying clear sky modeling to estimate photovoltaic (PV) generation with high accuracy. By automating weather data acquisition, the methodology bridges the gap between weather predictions and practical energy management, providing utilities with a reliable tool for operating and integrating renewable energy. The optimization framework focuses on minimizing the utility bill by analyzing a distribution feeder representative of Australia’s energy infrastructure, incorporating time-of-use (TOU) and flat tariff systems across eight Australian states to simulate realistic energy costs. Furthermore, voltage constraints are applied within the optimization framework to maintain system stability and improve voltage profiles, ensuring both technical reliability and economic efficiency. The proposed framework delivers actionable insights for utility industries, enhancing the scheduling of battery energy storage systems (BESS) and facilitating the integration of renewable energy into the grid.

1. Introduction

Managing grid stability and ensuring reliable grid operation is a crucial challenge for the utility industry due to the increasing amount of renewable energy sources (RES) [1]. Moreover, a surge in electricity rates has become unavoidable due to the increase in energy prices as the consumption in residential building is increasing [2]. Battery energy storage systems (BESS) offer an effective solution for addressing grid volatility and intermittency by storing surplus energy from the grid and discharging it when it is needed [3]. Among all the renewable energy sources, a photovoltaic (PV) system is the most commonly recognized form of distributed generation (DG). It is essential to integrate a BESS alongside it [4]. Intermittency of PV generation is quite inflexible due to climate’s nature, which create uncertainties in grid operation [5,6]. Other uncertainties involve load profiles, electricity prices, and so on [7]. The effective scheduling of BESS with PV systems is a critical challenge to address these uncertainties.
The optimization challenges associated with BESS have grown more complex due to issues such as discontinuity, non-differentiability, highly nonlinear objective functions, and constraints. Consequently, there has been a growing interest in applying metaheuristic bases optimization algorithms such as genetic algorithm [8,9], particle swarm optimization (PSO) [10,11], and simulated annealing (SA) [12] to address these complexities. In parallel with metaheuristic approaches, machine learning (ML) techniques, particularly reinforcement learning (RL) and deep reinforcement learning (DRL), have emerged as promising tools to optimize BESS-scheduling strategies. These approaches focus on maximizing rewards and guiding agents through states and actions in dynamic, uncertain environments. The corresponding objective functions or reward formulations often aim to maximize BESS reliability [13], profit [14], operational profit [15], and minimize electricity costs [16], among other goals. In this context, the Markov Decision Process (MDP) [17] has emerged as a widely used method for modeling the sequential decision-making process of battery charging and discharging over a defined period. This process is typically addressed using advanced RL techniques, such as Twin Delayed Deep Deterministic Policy Gradient (TD3) [18], Proximal Policy Optimization (PPO) [19], Q-learning [15], policy-based algorithms [20], and Deep Q-Network (DQN) [21]. Linear Programming (LP) has widely been employed to determine the optimal charging and discharging schedules [22,23,24], as well as to identify the optimal solutions for electricity pricing, feed-in tariffs in order to minimize overall costs [25]. Moreover, mixed-integer linear programming (MILP) has been used to solve the BESS-scheduling problem considering the PV curtailment and load shedding [26]. An MILP-based bi-level optimization scheduling is proposed considering the wind farm uncertainties to reduce daily electricity cost and emission [27]. A day-ahead charging and discharging strategy based on MILP is proposed to optimize the energy cost where an artificial neural network (ANN)-based method is used to forecast the renewable energy output based on historical data [28]. Another area of interest is the application of machine learning for short-term load forecasting. Approaches like Federated Model-Agnostic Meta Learning (Meta-learning) have shown promise in forecasting load in distribution transformer supply zones, where energy demand fluctuates dynamically [29]. This technique allows for more accurate forecasting by leveraging data from multiple sources, while also ensuring privacy and adaptability to changing energy conditions. These forecasting methods are essential for improving the accuracy of BESS scheduling, as they provide better predictions of energy supply and demand, allowing for more efficient battery operation. In recent years, deep learning-based models and their advanced variants, including Long Short-Term Memory (LSTM) [30], Bi-directional Long Short-Term Memory (Bi-LSTM) [31], Two-Dimensional Convolutional Neural Networks (2D-CNNs) [32], and hybrid models combining Convolutional Neural Networks (CNNs) with LSTM (CNN-LSTM) [33], have gained significant popularity among researchers. These models are favored for their exceptional computational efficiency, strong ability to fit nonlinear relationships, resilience to abnormal data, and robust parallel computing capabilities. However, deep network-based methods generally require a large amount of training data, and insufficient data can lead to overfitting problems that may undermine the accuracy of predictions [34]. Unfortunately, end users in areas served by distribution transformers, particularly those with newly installed smart meters, often do not have enough historical load data. Mixed-integer nonlinear programming (MINLP) is proposed to solve a tri-objective problem considering uncertainties [35]. These methods have gained traction in addressing challenges related to renewable generation forecasting, often leveraging advanced machine learning algorithms for more accurate predictions. All these studies consider historical data for renewable generation forecasting. Although different methods have been proposed to solve multi-objective functions, voltage profile improvement within set boundaries remains a critical challenge while performing BESS scheduling. Therefore, the major contributions of this article are given below:
  • 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

Web scraping involves automatically extracting data from websites. For weather forecasting, scraping provides a way to gather real-time weather data from public application programming interface (APIs) or web pages, often offering insights into current conditions, hourly forecasts, and long-term predictions. While APIs are often the preferred method for obtaining weather data, many websites also present detailed forecast information through HTML tables, making them ideal candidates for scraping. This approach can be useful for applications where an API may be unavailable, or when a developer needs specific, localized data that is displayed in a particular format on a website. Selenium is a powerful web automation tool used for testing and scraping dynamic web content. Unlike traditional scraping techniques that work with static HTML, Selenium interacts with websites in a way that mimics real user behavior. Selenium is used to extract hourly weather forecast data for Brisbane, Australia, from Wunderground [36].
Workflow for Weather Data Extraction:
  • 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.
From the weather-forecasting table, cloud coverage ( C C ) is extracted to calculate the solar radiation. The core of the solar radiation calculation relies on a clear sky model, which determines the theoretical maximum solar radiation. The solar radiation is the sum of the beam radiation and the diffused radiation [37]. Therefore, the first step in developing the model was to define the equation for horizontal beam radiation, which is shown below:
G c b = 1339 τ b cos θ z
where τ b = atmospheric transmittance beam radiation; θ z = angle of incidence
The diffusion radiation is defined in the equation below:
G c d = 1339 τ d cos θ z
where τ d = transmission co-efficient for diffuse radiation
Atmospheric transmittance beam radiation is defined in the equation below:
τ b = a o + a 1 e k / cos θ z
Transmission coefficients for diffuse radiation for clear days are defined in the equation below:
τ d = 0.271 0.294 τ b
The constants a o , a 1 , and k are not arbitrary but are derived from empirical equations based on experimental data and the specific atmospheric conditions for different altitudes [37]. The correction factors r o , r 1 , and r k are introduced to account for these environmental variations. These correction factors are defined in Equations (5)–(7), respectively. These correction factors ensure that the model is adaptable and provides accurate solar radiation predictions across a variety of environmental conditions. They also help align the model’s predictions with real-world observations, improving the accuracy of solar energy generation estimates. A is altitude of the observer in km.
a o = ( 0.4237 0.00821 ( 6 A ) 2 )   r o
a 1 = ( 0.4237 + 0.00595 ( 6.5 A ) 2 )   r 1
k = ( 0.2711 + 0.01858 ( 2.5 A ) 2 )   r k
Incidence angle of horizontal surfaces is defined in the equation below:
cos θ z = cos φ cos δ cos ω + sin φ sin δ
where φ = Latitude; ω = Hour angle; δ = Declination angle
To determine the declination angle, the equation below is used, where dd is the day of the year.
δ = 23.45 sin ( 360 284 + d d 365 )
The hour angle represents the sun’s apparent movement across the sky throughout the day measured in degrees.
The solar radiation is the sum of the two as shown below:
G 0 = 1339 τ b cos θ z + 1339 τ d cos θ z
The total solar radiation can be calculated as follows:
G t o t a l = G 0 ( 1 C C )
where C C represents the Cloud Cover column of Table 1.

3. Mathematical Modelling

3.1. Microgrid Modelling

Figure 1 illustrates a schematic diagram of a renewable energy community that integrates both prosumers and consumers into a shared low-voltage distribution network. The community is connected to a larger distribution network through a medium-voltage (MV) transformer. The low-voltage distribution network carries power from the MV transformer and distributes it to various entities within the renewable energy community. It acts as the main line that branches out to supply individual loads, including prosumers and consumers. This community-based microgrid is designed to operate sustainably by utilizing local renewable energy sources, energy storage, and energy-sharing capabilities among participants. The community includes prosumers—members who both consume and generate electricity—and consumers, who only consume power. The variables and parameters are discussed briefly in the following section.

3.2. Objective Function

The objective function is to minimize the electricity bill E b i l l within a 24 h timeframe, which is the difference between costs and revenue. If E b i l l is positive, then the amount is to be paid to the utility company. If E b i l l is negative, then the amount is received in terms of energy credits.
E b i l l x = t = 1 T ( P i m p o r t c i m p o r t ( t ) + P c h r c c h r t + P d i c h c d i c h t ) t = 1 T P e x p o r t c e x p o r t t
where x is a vector of decision variables; P i m p o r t is the power imported from the main grid, and c i m p o r t is the cost of imported energy; P e x p o r t is the exported power to the main grid, and c e x p o r t is the cost of exported energy; P c h r is the battery-charging power, and c c h r is the cost per kWh for charging the battery; P d i c h is the battery-discharging power, and c d i c h is the cost per kWh for discharging the battery.

3.3. Set of Constraints

3.3.1. Power Exchange and Balance Constraint

To schedule the battery energy storage system in a microgrid, a set of constraints are required related to networks physical operation.
The grid cannot import and export power simultaneously.
0 α i m p o r t + α e x p o r t 1
α i m p o r t and α e x p o r t are binary state variables that control whether the system is in import or export mode.
The main grid can only import and export power up to the maximum import ( P i m p o r t m a x ) and export power ( P e x p o r t m a x ) defined by the utility.
0 P i m p o r t ( t ) α i m p o r t ( t ) P i m p o r t m a x
0 P e x p o r t ( t ) α e x p o r t ( t ) P e x p o r t m a x
To satisfy the power balance, the total power generation must be equal to the total power demand.
P i m p o r t t + P d i c h t + P p v f c s t t = P c h r t + P e x p o r t t + P l o a d f c s t t
where P c h r and P d i c h are the battery-charging and -discharging power; P p v f c s t and P l o a d f c s t are the forecasted PV and load power.

3.3.2. Voltage Constraints

To maintain the grid stability, the voltage at each bus needs to remain within the allowable limits set by the utility industry.
V m i n V ( t ) V m a x
where V m i n and V m a x are the minimum and maximum voltage limits.

3.4. Battery Energy Storage System

The overall efficiency of the battery energy storage system ( η b e s s ) is the product of efficiencies of three core components: coupling transformer, converter and the battery pack.
η b e s s = η t r η c o n η b a t
where η t r is the efficiency of the coupling transformer, which is used to step up or step down the voltage levels between the battery and the grid; η c o n represents the efficiency of the converter system, which converts the AC output of the grid to DC input into the battery during charging and vice versa with discharging; η b a t is the efficiency of the battery which represents how the battery can store or release energy efficiently.
The battery efficiency ( η b a t ) can be expressed as the square root of the round-trip efficiency ( η r t ) as follows:
η b a t = η r t
The round-trip efficiency is the ratio of the energy retrieved from the battery to the energy going into it. It is a common practice to have charging and discharging efficiency to be the same. Different battery technologies have different round-trip efficiencies: lead acid batteries have 92%, lithium-ion batteries have 94%, and LiFePO4 batteries have higher efficiency of 97% [17]. Again, the typical transformer and converter efficiencies are greater than 97%.
State of charge (SOC) refers to the amount of energy stored in the battery compared to its maximum available energy capacity ( E v ). The SOC can be updated recursively based on the power input during charging and the power output during discharging.
S O C t = η B E S S P c h r ( t ) E v P d i c h t η B E S S E v + S O C i n                                             f o r   t = 1
S O C t = η B E S S P c h r ( t ) E v P d i c h t η B E S S E v + S O C t 1                                   f o r   t > 1
where S O C i n   refers to the initial state of charge.
For optimization purposes, the SOC should be limited to predefined range.
S O C m i n S O C ( t ) S O C m a x
where S O C m i n and S O C m a x are the minimum and maximum allowable state of charge, respectively.
For a balanced system, the final value of SOC at the end of period T should be the same as the initial value.
S O C t = T = S O C i n
The charging and discharging operations cannot happen simultaneously.
0 α c h r ( t ) + α d i c h ( t ) 1
where α c h r and α d i c h are the state variables for charging and discharging operations.
Equations (25) and (26) impose limits on the charging and discharging power of the battery energy storage system (BESS), ensuring that they do not exceed the rated BESSs power ( P r B E S S ).
0 P c h r ( t ) α c h r ( t ) P r B E S S
0 P d i c h ( t ) α d i c h ( t ) P r B E S S

3.5. Matrix Formulation

When formulating an optimization problem for a mixed-integer linear programming (MILP) solver, the mathematical problem is typically expressed in matrix form. The problem is structured as follows:
min n f T x s u b j e c t   t o   A x b A e q x = b e q l b x u b
where f is a vector of co-efficient representing the cost and is a vector of solution variables, and f T x represents a linear combination of the decision variables that defines the objective; A is a matrix representing the co-efficient of the inequality constraints, and b is a vector representing the upper bounds for each inequality constraint; A e q is a matrix representing the co-efficient of the equality constraints, and b e q is a vector representing the upper bounds for each equality constraint; l b and u b are the lower and upper bound for each decision variable.
The f and   x can be represented as follows:
f = [ c c h r t ; c d i c h t ; c i m p o r t t ; { c e x p o r t t } ]
x = [ P c h r t ; P d i c h t ; P i m p o r t t ; { P e x p o r t t } ]
The optimization program runs for 24 h, which includes four decision variables. Therefore, a total of 96 decision variables has to be optimized in each cycle.

3.6. Cost Estimation

The annualized life cycle cost of energy storage (LCCOES) gives a total cost of a storage in a yearly figure for the whole project life span. This cost involves capital investment and operations and maintenance cost and can be expressed as follows [38]:
L C C O E S = C i n v + C O M
where C i n v is the total investment cost, and C O M is the total operation and maintenance cost.
The total investment cost can be expressed as follows:
C i n v = C i n v e s t , i n R F
where C i n v e s t , i n is the initial investment cost, and R F is the recovery factor.
The recovery factor can be expressed as follows [39]:
R F = i ( 1 + i ) y ( 1 + i ) y 1
where i is the discount rate, and y is the service life.
The initial investment cost consists of the cost of the associated devices, such as storage container ( C s c ), power conversion devices ( C p c ), and transformer and protection devices ( C p d ).
C i n v e s t , i n = C s c + C p c + C p d
The cost of storage container can be represented by Equation (34):
C s c = c s ( E r η r t D O D m a x )
where c s refers to the cost of storage container in AUD/kWh, E r is the rated capacity in kWh, and D O D m a x is the maximum depth of discharge.
The cost of the power converter is represented by Equation (35):
C p c = c p c P r
where c p c refers to the cost of power converter in AUD/kW
The cost of protection and other remaining devices is expressed in Equation (36):
C p d = c p d P r
c p d refers to the cost of the protection devices in AUD/kW.
The operation and maintenance costs are divided into two categories: a fixed cost ( C f i x e d ), which remains constant throughout the lifetime of the project regardless of the operational phase of the energy storage (ES) technology, and a variable cost ( C v a r i a b l e ), which fluctuates depending on the operational phase of the ES technology.
The fixed operation and maintenance cost can be expressed in Equation (37):
C f i x e d = c f i x e d P r R F ( m = 1 m = y ( 1 + V o m ) m ( 1 + i ) m )
where c f i x e d refers to the fixed operation cost expressed in AUD/kW; V o m refers to the annualized factor rate.
The annual variable operation and maintenance cost is represented in Equation (38):
C v a r i a b l e = B e l e c E r d 24 h d η r t R F ( m = 1 m = y ( 1 + V e l e c ) m ( 1 + i ) m )
where B e l e c refers to the electricity price in AUD/kWh; d is the total working days per year; h d is the number of working hours per day; V e l e c refers to annual change rate B e l e c .
Then, the total operation and maintenance cost can be expressed as follows:
C O M = C f i x e d + C v a r i a b l e
The annualized energy output from a storage over the lifetime of the system can be expressed as in Equation (40):
E o u t = E r D O D m a x S O H N c y c l e s
where S O H refers to the state of the health of the storage, and N c y c l e s refers to maximum number of cycle up to which the storage will last.
Therefore, the availability cost the battery energy storage system can be calculated by the following equation:
c b e s s = L C C O E S E o u t
The cost of charging and discharging is determined by the availability cost ( c b e s s ) and the efficiency ( η b e s s ) of the battery, as follows:
c c h r = c b e s s η b e s s
c d i c h = 1 η b e s s c b e s s
Table 2 provides the cost and technical parameters to calculate the availability cost, which can be found from [39] for Li-ion batteries.

4. Simulation Results

To verify the efficiency of the proposed solution methodology for optimal scheduling of battery energy storage system in radial distribution systems, an Australian distribution network is employed. The electrical configuration of this system is presented in Figure 2. The system has a 11 kV voltage at the substation bus and 415 V at the distribution side. The capacity of the transformer is 200 kVA. To connect the buses, a moon conductor, which is of seven 4.75 mm AAC strands, has been used. A total of 55 houses are connected to the system, and PV is also connected to the buses where load is connected. Each PV system is equipped with 6 kWp. The peak load is 155 kW. The battery capacity is 200 kWh. The minimum and maximum state of charge is limited to 0.2 to 1. The time resolution of the load and the PV power is 1 h.
To construct the solar radiation profile by using Equation (1) to Equation (11), the parameter values used are r o = 0.95; r 1 = 0.99; r k = 1.02. The solar radiation profile is shown in Figure 3.
A detailed Australian residential load demand has been constructed for 2024 and onwards [40]. The load profile specifically tailored for 2024 has been employed in the study, serving as the basis for simulations. Figure 4 shows the load profile for 24 h period.
The cost of charging and discharging can be calculated from Equations (42) and (43), which are c c h r = 0.415 AUD/kWh and c d i c h = 0.046 AUD/kWh.
Table 3 presents the energy-pricing structure for different states of Australia broken down by three time-of-use (TOU) periods, such as on-peak, off-peak, and shoulder. The on-peak period refers to the times when the tariff rate is expensive due to the high electricity demand. Off-peak times represent the periods of the low electricity demand, which results in lower tariff rates. Shoulder time periods fall between on-peak and off-peak and the pricing is higher than off-peak and lower than on-peak. A flat tariff refers to a pricing structure where the rate charged for a service or commodity is fixed and does not vary based on consumption or usage. This means the customer pays the same amount regardless of how much of the service or product they use. A flat tariff rate of 0.1837 AUD/kWh has been used in this study.
Figure 5 illustrates the daily power balance and energy storage dynamics for various Australian states, showcasing the relationship between PV generation, energy storage charging and discharging, and grid interaction. All states import power from the grid during late night and early morning. Energy storage becomes charged during late night or early morning due to the off-peak tariff in WA, TAS, NT, NSW, and ACT. Again, battery becomes discharged before the peak PV period for these states. This pre-emptive discharging ensures that energy storage systems are not competing with PV energy production for grid support. Instead, they help stabilize the grid during the morning peak demand and recharge during the day when solar generation is available. For states like QLD, VIC, and SA, the optimization does not find it cost-effective to charge the battery during early hours as the tariff system is shoulder for these states. The energy prices during this period are not as low as off-peak hours, making it more expensive to charge the batteries at this time. For all the states, the battery starts to charge at 10 a.m. and reaches the peak storage level during the PV hours. Again, the battery becomes discharged during high load demand to support the grid. In a flat tariff system, there is no incentive to charge the battery during specific times of the day based on cost. Therefore, the charging of energy storage typically occurs during the solar generation period. During times of high demand, when grid usage is at its highest, energy stored in the batteries is released to support the grid. This helps reduce strain on the grid by providing additional supply from the battery system, which is especially important during times of high energy consumption. Discharging the battery during these periods allows the system to avoid importing power from the grid, which is more expensive.
Table 4 presents a comparison of various states and a flat tariff system based on different energy-related metrics, including daily imported energy, daily exported energy, utility bill, and optimized bill. The utility bill varies across different states ranging from 550 AUD in VIC to 785 AUD in SA due to the grid prices and tariff structure. The utility bill shows significant reductions across all states after applying optimization. Using the current tariff structure, ACT can save up to 455 AUD, NSW 490 AUD, NT 533 AUD, SA 505 AUD, TAS 396 AUD, VIC 348 AUD, WA 477 AUD, QLD 468 AUD, and 282 AUD using the flat tariff. This suggests that, for consumers who can optimize their energy use and manage it according to the peak and off-peak rates, the current tariff structure might lead to higher savings. However, for those who prefer simplicity or have a more consistent usage pattern, the flat tariff might be an easier but slightly less cost-saving option.
From the above discussion, it is evident that the battery is charged during solar generation hours and discharged during peak demand hours. Consequently, the voltage profiles during these periods are influenced by the charging and discharging dynamics of the battery. As an illustrative case, the Queensland voltage profile for all buses at 11:00, 12:00, 13:00, 20:00, and 21:00 h is shown in Figure 6. Before optimization, the voltages at buses 6, 7, and 8 at 11:00 a.m. are 1.0542 p.u., 1.0512 p.u., and 1.0526 p.u., respectively. After the optimization shown in Figure 7, utilizing the battery, the voltage profile improves significantly by 0.728% for these buses. Similarly, during the peak demand period at 8:00 p.m., the voltages at these buses are 0.9468 p.u., 0.9496 p.u., and 0.9484 p.u., respectively. As the battery discharges during this time, the voltages at these buses rise to 0.9569 p.u., 0.9596 p.u., and 0.9585 p.u., respectively, demonstrating a notable improvement in voltage stability during high-demand periods.

5. Conclusions

This study proposes a robust and innovative approach to optimizing energy management systems by employing a mixed-integer linear programming (MILP) framework. The primary objectives are to minimize utility bills and maintain grid stability, while addressing key economic and technical challenges posed by renewable energy integration. Real-time weather data are extracted directly from a reliable weather-forecasting website, using web-scraping techniques. This eliminates the need for manual data collection or dependency on outdated static datasets. Automating this process bridges the gap between PV generation forecasting and real-world weather conditions, ensuring the use of up-to-date and accurate weather data. The clear sky model is applied to convert the extracted weather data (e.g., solar irradiance) into a solar generation profile, accounting for geographical and meteorological variations. This enhances the reliability of PV generation estimates, which are critical for day-ahead energy management and optimization. This study evaluates both time-of-use (TOU) and flat tariff systems across eight Australian states, representing real-world economic and regulatory conditions. TOU tariffs divide electricity prices into peak, off-peak, and shoulder periods, encouraging load and storage optimization to reduce costs during high-price periods. Flat tariffs offer a consistent rate, enabling straightforward cost analysis but limiting load-shifting opportunities. The economic analysis demonstrates how different tariff structures influence the optimal scheduling of battery energy storage systems (BESS). BESS operations, such as charging during low-cost periods and discharging during high-cost periods, are tailored to maximize savings under the given tariff system. Voltage constraints are embedded in the MILP model to ensure that the system operates within permissible voltage limits, avoiding issues like voltage drops or over-voltages that could destabilize the grid. High penetration of renewable energy, especially distributed PV systems, can cause voltage fluctuations. The proposed framework addresses these challenges by maintaining a stable voltage profile across the distribution network. By combining economic and technical objectives, the model provides a holistic solution for energy management, making it directly applicable to real-world systems. The proposed framework equips utility operators with actionable insights to optimize energy storage systems, improve grid performance, and adapt to dynamic market conditions.

Author Contributions

Conceptualization, U.M.; Methodology, U.M.; Software, U.M.; Formal analysis, U.M.; Writing—original draft, U.M.; Writing—review & editing, S.A. and P.W.; Supervision, S.A. and P.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Advanced Queensland Industry Research Fellowship Program grant number AQIRF105-2022RD5.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. 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]
  2. 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]
  3. 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]
  4. 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]
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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]
  16. 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]
  17. ABB. EssProTM Energy Storage Power Conversion System (PCS); ABB: Tokyo, Japan, 2023. [Google Scholar]
  18. 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]
  19. 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]
  20. 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]
  21. 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]
  22. 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]
  23. 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]
  24. 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]
  25. 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]
  26. 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]
  27. 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]
  28. 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]
  29. 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]
  30. 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]
  31. 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]
  32. 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]
  33. 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]
  34. 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]
  35. 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]
  36. Available online: https://www.wunderground.com/ (accessed on 5 May 2024).
  37. 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).
  38. 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]
  39. 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]
  40. 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]
Figure 1. Schematic diagram of a renewable energy community.
Figure 1. Schematic diagram of a renewable energy community.
Energies 18 01067 g001
Figure 2. An Australian distribution network.
Figure 2. An Australian distribution network.
Energies 18 01067 g002
Figure 3. Solar generation profile.
Figure 3. Solar generation profile.
Energies 18 01067 g003
Figure 4. Load profile for 24 h period.
Figure 4. Load profile for 24 h period.
Energies 18 01067 g004
Figure 5. Power balance curves and corresponding SOC for a 24 h period for different Australian states: (a) ACT, (b) NSW, (c) NT, (d) SA, (e) TAS, (f) VIC, (g) WA, (h) QLD, (i) flat tariff.
Figure 5. Power balance curves and corresponding SOC for a 24 h period for different Australian states: (a) ACT, (b) NSW, (c) NT, (d) SA, (e) TAS, (f) VIC, (g) WA, (h) QLD, (i) flat tariff.
Energies 18 01067 g005aEnergies 18 01067 g005bEnergies 18 01067 g005cEnergies 18 01067 g005d
Figure 6. Voltage profile for different buses before BESS scheduling.
Figure 6. Voltage profile for different buses before BESS scheduling.
Energies 18 01067 g006
Figure 7. Voltage profile for different buses after BESS scheduling.
Figure 7. Voltage profile for different buses after BESS scheduling.
Energies 18 01067 g007
Table 1. Extracted weather data from Wunderground (16 October 2024).
Table 1. Extracted weather data from Wunderground (16 October 2024).
TimeConditionsTemp.Feels LikePrecipAmountCloud CoverDew PointHumidityWindPressure
12:00 amClear75 °F79 °F6%0 in15%70 °F85%3 mph E29.90 in
1:00 amMostly Clear75 °F79 °F6%0 in26%70 °F86%2 mph ENE29.88 in
2:00 amMostly Clear74 °F76 °F7%0 in28%70 °F87%2 mph ENE29.87 in
3:00 amMostly Clear73 °F75 °F7%0 in24%70 °F90%2 mph E29.86 in
4:00 amClear72 °F75 °F8%0 in17%70 °F92%1 mph SW29.87 in
5:00 amClear72 °F74 °F8%0 in18%70 °F92%1 mph WSW29.88 in
6:00 amSunny74 °F77 °F6%0 in18%70 °F88%1 mph SSW29.90 in
7:00 amSunny78 °F83 °F4%0 in9%71 °F79%2 mph SSW29.91 in
8:00 amSunny82 °F87 °F1%0 in16%71 °F69%2 mph E29.91 in
9:00 amSunny85 °F90 °F0%0 in12%70 °F60%2 mph N29.90 in
10:00 amSunny88 °F94 °F0%0 in8%69 °F53%3 mph NNE29.88 in
11:00 amSunny91 °F97 °F0%0 in5%68 °F47%4 mph NE29.86 in
12:00 pmSunny94 °F100 °F0%0 in2%68 °F43%5 mph ENE29.84 in
1:00 pmSunny95 °F101 °F0%0 in4%67 °F40%6 mph ENE29.81 in
2:00 pmSunny96 °F102 °F0%0 in10%66 °F38%8 mph E29.80 in
3:00 pmSunny96 °F101 °F0%0 in11%66 °F38%9 mph ENE29.78 in
4:00 pmSunny94 °F99 °F0%0 in10%66 °F41%11 mph NE29.77 in
5:00 pmSunny91 °F96 °F0%0 in4%67 °F46%11 mph NE29.78 in
6:00 pmSunny87 °F92 °F0%0 in3%68 °F53%10 mph NE29.80 in
7:00 pmClear84 °F89 °F1%0 in4%69 °F60%8 mph NE29.83 in
8:00 pmClear82 °F87 °F2%0 in10%70 °F67%6 mph NE29.85 in
9:00 pmClear81 °F86 °F3%0 in12%70 °F71%5 mph NNE29.86 in
10:00 pmClear80 °F84 °F4%0 in16%71 °F74%4 mph NNE29.87 in
11:00 pmClear78 °F83 °F5%0 in15%71 °F77%3 mph NNE29.87 in
Table 2. Parameters for Li-ion batteries.
Table 2. Parameters for Li-ion batteries.
ParametersValue
i (%)7
y (years)20
c s (AUD/kWh)1272
D O D m a x (%)90
c p c (AUD/kW)740
c p d (AUD/kW)128
c f i x e d (AUD/kW)11
V o m 0.03
B e l e c (AUD/kWh)0.16
d (day)365
h d (hour)2
V e l e c 0.03
S O H (%)80
N c y c l e s (cycles)6000
Table 3. Time-of-use tariff structure for Australian states.
Table 3. Time-of-use tariff structure for Australian states.
Queensland (QLD)South Australia (SA)
Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)
19:00–9:00Shoulder0.301221:00–10:00Shoulder0.3107
9:00–16:00Off-peak0.275610:00–16:00Off-peak0.2952
16:00–19:00On-peak0.436516:00–21:00On-peak0.5159
Victoria (VIC)Western Australia (WA)
Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)
21:00–10:00Shoulder0.250021:00–07:00Off-peak0.0841
10:00–15:00Off-peak0.183707:00–15:00On-peak0.5153
15:00–21:00On-peak0.303215:00–21:00Shoulder0.2311
Tasmania (TAS)Australian Capital Territory (ACT)
Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)
21:00–07:00Off-peak0.166922:00–07:00Off-peak0.2017
07:00–10:00On-peak0.358407:00–09:00On-peak0.3789
10:00–16:00Off-peak0.166909:00–17:00Shoulder 0.2761
16:00–21:00On-peak0.358417:00–20:00On-peak0.3789
20:00–22:00Shoulder0.2761
New South Wales (NSW)Norther Territory (NT)
Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)Time-of-Use (TOU)DesignationEnergy prices (AUD/kWh)
21:00–15:00Off-peak0.231518:00–06:00Off-peak0.2627
15:00–21:00On-peak0.556206:00–18:00On-peak0.3445
Table 4. Energy matrices for Australian states.
Table 4. Energy matrices for Australian states.
ParameterACTNSWNTSATASVICWAQLDFlat Tariff
Daily imported energy (kWh)113412191219111211681146125311461146
Daily exported energy (kWh)5856786755716186057097605602
Utility bill (AUD)599747659785571550611668396
Optimized bill (AUD)144257126280175202134200114
Savings (AUD)455490533505396348477468282
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.

Share and Cite

MDPI and ACS Style

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

AMA Style

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 Style

Mumtahina, 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 Style

Mumtahina, 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

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop