1. Introduction
The integration of energy storage systems (ESS) in distribution networks has become a key solution for enhancing energy efficiency, reliability, and flexibility in distribution networks. Furthermore, the advent of Microgrids (MGs), which is characterized by their integration of renewable energy sources (RES) and various ESSs play a crucial role in enhancing the flexibility, reliability, and economic viability, mitigating the environmental impact and reducing the fossil fuel dependence of current power systems for sustainable development [
1] by shifting load demand, managing renewable variability, reducing dependence of traditional generation, and providing ancillary services such as voltage support. Economic dispatch is fundamentally centered on minimizing operational costs while maintaining system reliability, and for MGs, it consists of the coordination of RES, demand management, and BESS. Therefore, the optimal operation of BESS requires advanced optimization techniques that can handle both technical and economic objectives.
The economic dispatch of BESS in MG-integrated distribution networks has become an essential factor in enhancing the performance and reliability of modern power systems. As RER sources such as solar and wind power become increasingly integrated into these MGs, the role of BESS is evolving into a pivotal one, not only facilitating energy management but also improving cost efficiency in grid operations. Economic dispatch involves determining the optimal operating costs for power generation while meeting load demands and ensuring grid safety. Economic distribution assessment can greatly benefit from the inclusion of BESS systems, which are capable of storing excess energy during periods of low demand and releasing it back into the grid during peak usage periods.
Several studies have highlighted the economic and operational benefits of BESS in MG environments. For instance, Ma et al. [
2] demonstrated that integrating renewable energy with diesel generators and BESS enhances reliability and reduces costs in isolated MGs, underscoring the importance of effective dispatch strategies that account for generator ramp rates and battery constraints. This approach underscores the complexity of integrating multiple generation sources, particularly in scenarios where renewable output is variable, thus necessitating a well-coordinated energy dispatch strategy that encompasses the operational characteristics of both conventional and renewable generators [
3]. Similarly, Bansal et al. [
4] emphasized the contribution of storage systems to grid reliability and power quality, pointing to their increasing role in enabling broader participation in energy markets. Moreover, demand response integrated with BESS scheduling has been shown to provide real-time balancing between supply and demand, significantly improving the economic operation of MGs [
5].
The economic dispatch models that integrate BESS can also employ advanced computational techniques like Genetic Algorithms and model predictive control, as noted in [
6]. This methodology allows for the optimization of BESS operations, effectively balancing the costs associated with battery degradation and maintenance against the benefits realized from their usage in peak shaving and load shifting processes. Additionally, Nguyen and Lee emphasized the importance of maintaining battery operations within safe parameters to ensure longevity and economic feasibility, which plays an essential role in defining the overall dispatch strategy [
7].
Moreover, recent studies indicate that BESS plays a fundamental role in addressing the variability and intermittency inherent in renewable energy sources, such as solar and wind power, which are increasingly prevalent in MGs. Their incorporation allows for various functionalities including energy arbitrage, peak shaving, and improving self-consumption rates within MGs, enabling users to mitigate reliance on external energy sources [
8]. The economic dispatch of BESS can be significantly affected by the chosen optimization methodologies. For instance, the use of intelligent algorithms like Grey Wolf Optimization has demonstrated efficacy in sizing BESS within MG scenarios, tailoring their capacities based on specific renewable generation profiles and operational constraints [
9]. A comprehensive energy management strategy that incorporates demand response mechanisms can further enhance the economic operation of MGs with integrated BESS. This can be achieved through real-time balancing of supply and demand, which optimally schedules battery charging and discharging cycles of the BESS in relation to variable electricity pricing [
10].
Moreover, the optimal configuration of energy storage capacities in grid-connected MGs contributes significantly to the overall economics and efficiency of these systems [
11]. Research indicates that hybrid energy storage configurations, which may include combinations of batteries and ultracapacitors, lead to improved performance in terms of both energy reliability and cost-effectiveness [
12].
The economic viability of integrating BESS into MGs is also contingent on advances in battery technology and enhanced lifecycle management strategies. The aging effects of batteries necessitate effective schedules and operational strategies to prolong their lifespan while minimizing capacity degradation [
13]. BESS can thus be operated in ways that not only address immediate energy demands but also account for long-term performance metrics, enhancing the overall operational strategy within the MG framework [
14]. Furthermore, beyond economic consideration, the technical implications of BESS operation in MGs are critical. Previous studies have demonstrated that appropriate allocation and operation of BESS can significantly enhance system performance, improve voltage profiles, reduce power losses, and strengthen overall grid reliability [
15].
Furthermore, significant potential lies in the use of decentralized control strategies which harmonize the functionalities of various energy resources within MGs, particularly those involving BESS and variable renewable energy technologies like photovoltaic systems. Efficient coordination of these resources can lead to optimal dispatching strategies that enhance system profitability through minimized operational constraints [
16]. The synergy between demand response initiatives and optimal energy management paradigms ultimately underscores the need for a holistic approach towards MG design and operation.
The interplay between energy storage and demand response mechanisms in optimizing energy costs is increasingly recognized. By shifting and scheduling loads based on available generation and storage capacities, MG operators can yield substantial economic benefits [
17]. Despite the growing body of research on economic dispatch of BESS in MGs, several gaps remain unaddressed. Much of the existing work focuses on isolated or stand-alone MGs, with limited attention to the integration of BESS into distribution-level networks. In addition, many studies simplify battery modeling by neglecting realistic charging and discharging dynamics, and SOC limits, which reduces the practicality of the proposed solutions. Furthermore, electricity price signals are often underrepresented in optimization models, limiting their economic accuracy. While heuristic and metaheuristic approaches have been widely applied, the adoption of exact and computationally efficient methods such as MILP for BESS dispatch in grid-connected MGs remains insufficient. Finally, most research emphasizes cost minimization while giving less attention to technical benefits such as grid power smoothing and voltage profile enhancement, which are equally important for reliable distribution system operation. So, BESS has become a cornerstone in economic dispatch (ED) strategies for both grid-connected MGs and larger distribution-integrated energy systems. In these contexts, BESS contributes to dynamic economic dispatch (DED) by coordinating renewable and conventional energy resources, thereby improving system reliability and reducing operational costs [
18]. One of the key advantages of BESS lies in its ability to balance supply and demand while accommodating the variability of renewable energy sources such as solar and wind [
19]. By charging during low-price or low-demand periods and discharging during peak demand, BESS enables cost-effective energy management and reduces stress on the grid.
To address the uncertainties associated with renewable generation, advanced optimization approaches such as MILP have been applied to integrate BESS into economic dispatch frameworks. These methods enable efficient scheduling of charging and discharging cycles while accounting for operational constraints, electricity price fluctuations, and renewable intermittency [
20]. As modern energy systems become increasingly complex, there is a growing need for dispatch models that incorporate BESS not only to minimize costs but also to enhance resilience against operational and market uncertainties [
21].
Economic dispatch in MGs aims to minimize operational costs while meeting demand and maintaining system reliability. For distribution-integrated MGs, this requires optimal scheduling of RES, demand response, and BESS, while respecting technical constraints of the network. The unique capability of BESS to store excess energy during low-demand or low-price periods and discharge it during peak-demand or high-price periods makes it a powerful tool for improving both economic and operational performance. However, achieving optimal operation requires advanced optimization frameworks capable of handling charging/discharging dynamics, state-of-charge (SOC) constraints, and electricity price variations over time.
Despite extensive work on BESS integration in MGs, several gaps remain. Many studies focus on storage sizing and investment planning but overlook short-term operational scheduling [
11,
17]. Others employ heuristic optimization approaches, such as Genetic Algorithms or Grey Wolf Optimization [
20], which may not guarantee global optimality or computational efficiency. In contrast, MILP offers a robust and practical optimization tool, providing globally optimal solutions while incorporating detailed operational constraints. Recent real-time consensus-based frameworks [
21] emphasize communication robustness but often neglect practical network constraints and cost minimization under normal operation, limiting their applicability to realistic distribution-level MGs.
Recent studies further highlight complementary contributions. Reference [
22] investigated the stability of isolated microgrids, demonstrating that BESS can improve voltage and frequency response, particularly under varying generation conditions, although economic dispatch was not considered. Reference [
23] proposed hybrid optimization frameworks combining MILP and metaheuristic approaches for microgrid operation, achieving cost minimization and improved load management, but without explicitly addressing battery degradation or network-level technical constraints. Reference [
24] focused on optimized battery sizing and economic dispatch in wind-powered microgrids, incorporating depth-of-discharge (DoD) constraints to prolong battery life and reduce operating costs by 40–50%, though the study was limited to wind-dominated systems without full distribution network modeling.
To address these gaps, this study develops a MILP-based economic dispatch framework for BESS in MG-connected distribution systems. The proposed formulation explicitly models battery SOC dynamics, degradation costs, charging and discharging constraints, and electricity price, while ensuring compliance with voltage and thermal limits of the IEEE-33 distribution feeder over a 24 h horizon. The objective is to minimize total operating costs while simultaneously improving technical performance indicators, such as voltage profile and grid power exchange, ensuring both realistic and cost-effective operation.
Unlike previous MILP-based studies that primarily target cost minimization in isolated microgrids or simplified network models, the present work introduces a comprehensive MILP framework for a microgrid-connected distribution feeder that jointly optimizes both economic and technical objectives. The proposed model integrates detailed BESS degradation cost modeling, time-coupled SOC dynamics, charging/discharging decisions, dynamic energy price signals, and real 24 h RES within the optimization while maintaining the operational limits of the IEEE 33-bus network. Additionally, it extends the MILP formulation to improve feeder loading capability, minimize power losses, and enhance voltage stability within a 24 h operational horizon. These features distinguish the proposed work as a practical and technically comprehensive approach for real-world distribution-level MG integration.
The main contribution of this study is as follows:
Development of a MILP-based economic dispatch framework for optimal operation scheduling of BESS in a MG connected with the IEEE-33 radial distribution feeder, ensuring a balance between economic efficiency and technical reliability.
Comprehensive modeling of BESS operations, incorporating state-of-charge dynamics, charging/discharging constraints, BESS degradation, and electricity price variations over a 24 h horizon to derive realistic scheduling decisions.
Demonstration of both economic and technical benefits, showing how the proposed strategy reduces operational costs, smooths grid power exchange, and enhances voltage profiles, improves feeder loading capability, and reduces system losses in the distribution feeder.
2. Proposed System Model
This section presents the mathematical model of the system proposed, which integrates MG and distribution network. The model is structured into four components. First, the MG model is presented, which captures the coupling between local demand and renewable generation. Second, the BESS model is presented, its state-of-charge dynamics, and operation constraints. Third, the RES model is presented. Fourth, the power exchange model is presented to account for import and export interactions between MG and the distribution network. Finally, the Distribution Network Power Flow Model is provided to ensure that active/reactive power balances and voltage constraints are met. All these formulations combined constitute the foundation of the economic dispatch problem stated in the next section.
2.1. MG Model
The MG considered in this study is connected to the main distribution network at bus 34, where both local demand and renewable energy sources are present.
2.1.1. MG Net Demand
The net demand of the MG is calculated as:
where
represents the demand, while
represents the power generated by photovoltaic (PV) systems and wind turbines (WT), respectively.
The proposed MG is equipped with a BESS, wind turbine, and PV and a bidirectional converter, which enables flexible power exchange between the DC and AC buses. The economic dispatch framework governs the operation of these components to minimize operational costs while ensuring reliable power supply.
2.1.2. Wind Turbine Output Power Modeling
The operational behavior of a wind turbine can be divided into three main regions: zero power, partial (de-rated) power, and rated power. The zero-power region occurs when the wind speed is below the turbine’s cut-in speed (
), where the rotor cannot generate sufficient torque to overcome mechanical friction. In the de-rated power region, the turbine’s output rapidly rises with increasing wind speed until it reaches the rated power. Once the wind speed exceeds the turbine’s cut-out speed, the turbine automatically shuts down to protect the rotor and structural components from excessive forces. The power output of the wind turbine in this region is calculated using Equation (1) [
25]. The specific parameters of the turbine and the corresponding wind speed data used in this study are summarized in
Table 1.
2.1.3. PV Output Power Modeling
Similarly to wind turbine modeling, the power generated by a photovoltaic (PV) system is strongly dependent on the solar irradiance (
). The PV output power can be determined using Equation (2) [
25]. The key parameters of the PV system and the corresponding solar irradiance data employed in this study are listed in
Table 2.
Figure 1 shows the overall structure of the proposed MG model, highlighting the interaction between the distributed grid, renewable energy sources, BESS, and the economic dispatch unit. This figure illustrates the main measurement points within the MG. The instantaneous renewable power outputs
and
are measured at the PV and wind generation interfaces, while the BESS controller provides the charging and discharging power signals
and
, as well as the stored energy
. On the AC side, nodal voltage magnitudes
and branch power flows
are monitored to evaluate feeder loading against its thermal limit. These measurements feed into the economic dispatch unit in order to determine the optimal power exchange between MG and the distribution grid and which ensures a balance between economic efficiency and technical reliability.
2.2. BESS Model
BESS is a key component of the proposed MG model, enabling energy shifting, peak shaving, and integration of intermittent renewable resources. The mathematical formulation of the BESS includes its SoC dynamics, operational constraints, and its role in power exchange with the grid.
2.2.1. SoC Dynamics
The state of energy in the BESS at any time step t is expressed as:
where
and
represent the charging and discharging power, respectively, while
and
are the charging and discharging efficiencies.
2.2.2. Operational Constraints
To ensure reliable and safe operation of the BESS, the following constraints are imposed:
The state of charge at time t is defined as:
To prevent simultaneous charging and discharging, the following binary condition is applied:
2.3. Power Exchange Model
In the proposed MG, power can be exchanged with the distribution grid to ensure that local demand is continuously met while maximizing the utilization of renewable energy resources and the BESS. The power exchange is defined as the difference between the imported and exported power at time t:
where
is the power imported from the distribution grid and
is the power exported to the grid.
The overall power balance of the MG is governed by the interaction of load demand, renewable generation, and BESS operation. This relationship is expressed as:
Equation (10) ensures that any mismatch between the net MG demand and the renewable supply is compensated either by charging/discharging the BESS or by importing/exporting power from the distribution grid. This formulation links the operation of renewable energy resources, BESS, and the external grid, providing the foundation for the economic dispatch problem.
2.4. Distribution Network Power Flow Model
The proposed system is embedded within the IEEE 33-bus radial distribution network. The operation of the distribution network is governed by power flow equations that ensure the balance between active and reactive power at each bus while maintaining voltage stability across the system.
2.4.1. Active Power Balance
At any bus k, the active power balance is expressed as:
where
and
are the active power flows into and out of bus k, respectively.
and
denote the active power generation and load at bus k.
2.4.2. Reactive Power Balance
The reactive power balance at bus k is similarly defined as:
where
and
are the active power flows into and out of bus k, respectively.
and
denote the active power generation and load at bus k.
Equations (13)–(15) are applied at every bus k and at every time interval t of the 24 h scheduling horizon. All power flow, generation, and load terms are explicitly modeled as time-dependent variables.
For bus 34, where the MG is integrated, the active power balance incorporates the import and export between the MG and the distribution grid:
2.4.3. Grid Operational Limits
Voltage Operational Limits
The distribution network must also satisfy voltage constraints to ensure secure operation:
Equations (13)–(16) collectively define the distribution network power flow model, ensuring that all power exchanges between the IEEE 33-bus system and the MG at bus 34 are balanced while maintaining voltage stability.
Thermal Operation Limits (Line Loading)
This constraint ensures that the apparent power flow through each distribution line does not exceed its rated capacity. This constraint is expressed as in (17). Enforcing this constraint prevents overheating of conductors, safeguards insulation integrity, and maintains the secure operation of the distribution network.
where
and
represent the active and reactive power flows on feeder ik at time t, and
denotes the thermal capacity of line ik.
2.5. Objective Function
The optimization objective of the proposed model is to minimize the total operating cost of the MG over a 24 h scheduling horizon. The cost function accounts for electricity transactions with the distribution grid as well as the degradation cost of the BESS. The objective function is expressed as:
where
is the net MG-grid power,
and
are BESS charge/discharge powers,
and
are renewable generation,
is the electricity tariff,
is the depredation cost of BESS in (USD/kwh)
is the replacement fraction,
is BESS capital cost, and
is the BESS lifetime in cycles.
2.6. Proposed Model Implementation
The proposed economic dispatch model was implemented in MATLAB using a Mixed-Integer Linear Programming (MILP) technique. The process as shown in
Figure 2 begins with input data preparation, where the IEEE-33 radial distribution system is represented with its line parameters, nodal loads, and operational limits. The MG, connected at bus 34, is modeled with its demand, renewable generation profiles, and time-varying electricity prices. BESS is characterized by its rated energy capacity, charging and discharging power limits, round-trip efficiency, SoC limit, and degradation cost derived from its capital and replacement costs.
The objective function minimizes the total operating cost of the integrated system, which is expressed as the sum of the cost of energy exchanged with the upstream grid and the degradation cost incurred from battery cycling. To achieve this, the model introduces several decision variables, including the charging power , discharging power and the state of energy in the BESS at any time step and SoC of the BESS, as well as the grid import and export powers . Binary variables and which enforce the complementarity condition that prevents simultaneous charging and discharging. For the distribution system, the branch active and reactive power flows and bus voltages are also defined as optimization variables, ensuring compliance with the full set of power flow and operational constraints of the IEEE-33 feeder.
These variables and constraints are incorporated into the MILP framework by constructing the objective vector, equality constraints (e.g., SoC dynamics and power balance at the point of common coupling), and inequality constraints (e.g., power and voltage limits, and line capacity constraints). The resulting optimization problem is solved using MATLAB, which efficiently handles the mixed-integer structure of the formulation.
Upon convergence, the model provides the optimal BESS operating schedule, including its charging and discharging profile, SoC trajectory, and the power exchanged with the upstream grid. In addition, the solution yields the bus voltage magnitudes and branch flow profiles of the IEEE-33 system. Post-processing of the results includes calculating the total operating cost, quantifying the contribution of degradation costs, and visualizing the 24 h profiles of SoC, grid exchange, voltage magnitudes, and line loadings. This comprehensive implementation ensures that both the economic benefits and technical impacts of BESS integration are fully captured.
The optimization was carried out in MATLAB R2023a using the intlinprog solver from the Optimization Toolbox, which efficiently handles MILP problems. The solver settings included a relative optimality tolerance of 1 × 10−6, maximum iterations of 105, and automatic presolve and cut generation enabled to ensure convergence. Simulations were performed on a laptop with an Intel i7 CPU and 16 GB RAM, with an average computation time of approximately 57 s for the 24 h optimization horizon with 1 h resolution. These implementation details are included to enhance the reproducibility and transparency of the proposed MILP-based optimization framework.
4. Discussion
The results obtained in this study confirm that the proposed optimal economic operation framework for BESS in MG-connected distribution systems can significantly reduce operating costs while enhancing the reliability of the grid by maintaining both voltage stability and thermal security and reduce system losses in the distribution grid. Therefore, this model not only minimizes total daily energy costs but also eliminates violations of voltage and thermal limits and reduces overall system losses, which are common issues when renewables are integrated without storage due to their intermittent nature. For example, as shown in
Table 3, the integration of RES alone reduced operating costs but still resulted in grid constraint violations. In contrast, incorporating BESS with the proposed economic dispatch strategy achieved both technical feasibility and the highest cost savings (74.4%), even after including the degradation cost of the battery. This demonstrates that careful scheduling of charging and discharging can balance renewable intermittency, optimize power exchange with the main grid, and sustain long-term operational viability.
Compared to previous studies, our findings demonstrate several important contributions. Earlier works, such as [
11,
17], primarily focused on optimal BESS configuration and sizing, considering investment cost or tariff sensitivity, but did not fully address daily operational scheduling under network constraints. Other studies, such as [
18,
20], explored economic dispatch and BESS optimization, but either relied on heuristic approaches or did not incorporate battery degradation and distribution-level technical constraints. Real-time scheduling frameworks, such as [
21], emphasized resilience under cyberattacks, yet their focus diverged from cost minimization under normal operational conditions.
More research has extended these perspectives. Alsalman (2023) [
22] investigated the role of BESS in enhancing the stability of isolated microgrids, analyzing the impact of BESS capacity and location on voltage and frequency response, but without considering economic dispatch or cost optimization. Ref. [
23] proposed hybrid optimization frameworks for microgrids, combining MILP and metaheuristic methods for cost minimization and load management under variable RES generation; however, their approach did not explicitly model BESS degradation or enforce distribution network constraints. Ref. [
24] studied optimal battery sizing and economic dispatch in wind-powered microgrids with depth-of-discharge (DoD) constraints, achieving 40–50% cost reductions and prolonging battery lifespan, yet this approach was limited to wind-dominated microgrids and did not consider full distribution-level operational limits.
Table 4 summarizes these prior studies, their focus, limitations, and how the present work extends them. The proposed MILP-based framework combined a mathematically rigorous MILP formulation with BESS degradation, renewable, distribution network constraints, and optimal economic dispatch, ensuring both technical feasibility and significant cost savings in MG-connected distribution systems.
4.1. Sensitivity Analysis
Sensitivity analysis results are shown in
Table 5 and
Figure 11 and
Figure 12, on different BESS capacities and power ratings. This analysis showed that increasing the energy capacity generally will reduce the total operating cost by enabling greater energy shifting from low- to high-price periods. For example, the 5000 kWh BESS with 500 kW rating achieved the lowest feasible operating cost without violating thermal or voltage limits as shown in
Figure 11 and
Figure 12. However, when the BESS power rating was increased to 1000 kW, thermal and voltage violations were observed, indicating that higher instantaneous charging/discharging power stresses the distribution feeder beyond its limits. Smaller BESS sizes, such as 3000 kWh, resulted in higher operating costs despite lower degradation expenses, as their limited capacity prevented effective peak shaving and arbitrage. Moreover, degradation costs were found to rise with larger capacities and higher power ratings due to increased cycling. These results highlight the trade-off between economic benefit and network security: larger energy capacities are beneficial for cost reduction, but excessive power capability leads to technical violations, underscoring the need to co-optimize both BESS size and network constraints. Moreover, the sensitivity analysis reveals an interesting interaction between the BESS energy capacity and its power rating. For the 3000 kWh and 4000 kWh cases, the total daily energy exchanged with the grid remains unchanged when increasing the maximum power from 500 kW to 1000 kW. This indicates that these systems are energy-constrained, meaning that the limited storage capacity prevents further energy shifting regardless of the charging/discharging rate. In contrast, for the 5000-kWh case, the total daily energy utilization increases slightly when the power rating is raised from 500 kW to 1000 kW. This outcome highlights that at 500 kW, the system is power-limited, and the battery cannot fully deploy its available energy within peak demand or high-price windows. By increasing the power capacity, the BESS can inject and absorb energy more rapidly, leading to increase daily energy consumption. Although both the 4000 kWh and 5000 kWh BESS configurations with 500 kW power rating meet technical requirements, the 4000 kWh system is more cost-effective, with only a 0.7% reduction in energy delivery but significantly lower degradation costs. This makes it a more efficient and financially practical choice, avoiding overinvestment and ensuring optimal utilization in real-world microgrid operation. These findings emphasize that both energy and power ratings must be jointly optimized, since a mismatch can reduce the effectiveness of the BESS in system operation. This sensitivity analysis demonstrated the effectiveness of the proposed optimal economic dispatch model in identifying the most suitable BESS configuration that ensures both grid stability and cost efficiency which demonstrates the model’s capability to balance technical constraints with economic objectives. The results also show that increasing BESS power or energy capacity beyond optimal levels can lead to diminishing returns or even operational issues, such as constraint violations or higher degradation costs. This confirms that the proposed model not only optimizes daily dispatch decisions but also guides appropriate BESS sizing, leading to practical and scalable solutions for microgrid-connected distribution systems.
4.2. Recommendations and Future Work
In terms of future research, the framework can be extended by incorporating uncertainty in renewable generation and electricity prices through stochastic or robust optimization techniques. Moreover, extending the analysis to multi-MG systems or peer-to-peer energy trading environments would provide deeper insights into distributed flexibility markets. Another valuable extension would be to consider multi-objective formulations that simultaneously optimize cost, emissions, and reliability. Additionally, exploring the co-optimization of demand response, EV integration, and ancillary service provision can further enhance the applicability of the proposed method for smart and sustainable power system planning.