1. Introduction
Conventional power generation predominantly relies on fossil fuels, thereby exacerbating environmental degradation through increased greenhouse gas emissions. Due to the increasing commitment of international societies to a low-carbon economy and exceptional technological advancement, the steady growth of distributed energy resources (DER) is questioning the relative benefit of large-scale traditional electricity generation, which is supposed to pile up high economies of scale. This indicates that alternative energy sources such as photovoltaic and wind power are imperative despite their inherent intermittency [
1]. In systems with high PV penetration, surplus energy is generated during sunny periods, while deficits occur at other times. The energy output is highly fluctuating even within its available period. The proliferation of intermittent renewable energy sources alongside the introduction of electric vehicles presents significant challenges in managing and controlling the power grid. Furthermore, as the electricity sector witnesses a surge in active participants, there emerges a pressing need for a more efficient system that can benefit both the supply and demand sides. The intricate energy landscape impacts both technical operations and economic considerations, underscoring the importance of Optimal Energy Management (OEM) for efficient resource allocation. In response to these multifaceted challenges, the development and implementation of SMART grid technology represent an inevitable and transformative evolution.
ED is a crucial aspect of demand-side management, which deals with the allocation of resources in a power system. In this process, every generator unit determines its optimal strategy to maintain power balance within the network [
2]. The traditional electricity market is vertically integrated: the utility has to supply all the load demand whenever it occurs, and in response to providing demand, the utility charges the consumers. Ensuring a precise balance between supply and demand in real-time is essential for enhancing the reliability of the electricity system. Various factors contribute to the complexity of this task, including transmission and distribution line failures, abrupt changes in generation and load patterns, and unexpected outages of generation units, which can swiftly alter both supply and demand levels. To enhance the reliability of the supply system, significant investments in additional infrastructure are required, representing a substantial capital incentive. Consequently, the costs associated with ensuring reliability are inevitably transferred to consumers, resulting in higher consumer expenses. Therefore, electric utilities and power network companies have been forced to restructure their operation from a vertically integrated classical model to an open market system. Within an open market system, electricity consumers are more responsive to market dynamics, and correspondingly, the market adapts to consumer behaviors. Therefore, the incorporation of Demand Response (DR) in economic dispatch would be an appropriate approach for optimal energy management.
DR plays a crucial role in optimal energy management by enabling the voluntary reduction or shifting in electric energy usage in response to monetary incentives or changes in energy prices over time. Beyond merely shifting load from peak to off-peak periods, DR enhances both customer benefits and grid efficiency. Integrating DR with economic dispatch offers a solution that aligns the interests of both suppliers and consumers, ultimately maximizing energy efficiency. Addressing the Social Welfare Maximization problem allows for the formulation and solving of real-time pricing mechanisms, ensuring that both suppliers and consumers reap maximum benefits from electricity transactions. In [
3], factors that highly impact the future power grids have been defined: policies from the governmental and federal level, efficiency needed for the consumers and consumers’ utility, and the most intelligent technologies of computer software and hardware. Allowing the integration of renewable energy resources, active customer participation to enable better energy conservation, secure communication to protect from cyber-attacks, and the optimization of the energy-supplying strategy and energy flow to lower and reduce losses are the basic requirements of future smart power grids. In [
4], the authors have proposed different approaches to controllable load management in smart grids. Traditional load control approaches such as controllable end users’ appliances, battery storage, vehicle-to-grid and grid-to-vehicle, and heat storage are reviewed. Furthermore, virtual power plants, load aggregators, and microgrids are presented as effective ways of broad controllable load management. Effective management of controllable loads provides a flexible solution to integrating highly intermittent renewable sources in grids.
The literature contains significant research on different aspects of economic dispatch. In [
5], a multi-agent-based distributed sub-gradient algorithm has been used to coordinate among multiple microgrids to balance active power. Supply and demand are kept balanced by adjusting the utilization level of renewable generations based on local frequency, i.e., frequency is considered the controlled parameter in coordination. A two-level Incremental cost consensus (ICC) algorithm is proposed in [
6]. At the lower level, the average consensus algorithm is run, and the average mismatch in each node is found. The ICC is run at the higher level of the consensus network. The operation is based on a distributed algorithm, more than one consensus algorithm is run, and the dynamic behavior of demand is not accounted for. In [
7], an ADMM algorithm and model predictive control are used in a decentralized micro-grid to schedule and control the distributed energy resources in real-time. The central coordinator collects information from all the agents to find the optimal decision variables and sends it back to each agent. A central leader’s involvement in communicating directly with all units for the operation may be vulnerable to single-point failure and might have data privacy concerns. In [
8], an accelerated distributed gradient-based algorithm for economic dispatch is proposed, but an extra momentum term is added to ensure power balance by communicating with all the agents. Multi-parameter matrix perturbation theory and graph theory have been proposed in [
9] to find the economic dispatch solution in a distributed manner, in which mismatch energy is used as feedback in the control logic. This research takes conventional generation units, and the generation ramp rate limit is not considered.
The literature contains a plethora of research, including responsive demand in economic dispatch. In [
10], the Social Welfare Maximization problem in the smart grid was solved using Lagrangian and projected gradient methods. The supply and demand mismatch in a distributed way was derived using the Multi-Agent System (MAS) framework. In [
11], the author has presented the distributed algorithm for the optimal scheduling of resources, where the social welfare problem is formulated and solved. A gradient algorithm is used to jointly compute utility and customer equilibrium points. However, communication at each iteration is all-to-all. At the beginning of the day, the utility companies and customers compute their prices, consumption, and battery charging schedules for each period in advance. In [
12], an incremental welfare consensus algorithm for energy management is presented. The author addresses both the generation and demand sides simultaneously for a single period, aiming to optimize benefits for all participants. An additional observer has been introduced to approximate the generation and load mismatch. In [
13], social welfare optimization employs dual decomposition methods to achieve a distributed solution for optimal energy generation and demand. However, this algorithm does not ensure power balance. In [
14], the VCG mechanism is proposed for demand-side management. Each user provides their demand information to the energy provider, who then computes optimal energy consumption levels and costs. The optimization problem maximizes user utility while minimizing energy costs. However, information must be collected from all participating units.
The conventional power grid employs a centralized communication structure where a central coordinator collects data from various units and forwards them to a central data operation center. This system simplifies data management but is vulnerable to failures due to its dependency on a central coordinator for data gathering, processing, decision-making, and distribution. Sharing decision variables and cost parameters for optimization raises concerns about fair market implementation. Many popular algorithms based on the ADMM have been extensively used to provide distributed solutions for energy resource allocation in power systems. These algorithms solve distributed economic dispatch problems with a coordinator acting as a leader of the network, and the leader addresses the mismatched power. Many researchers have proposed solutions to eliminate the need for coordinators [
5,
6,
15], though none of them fully addresses the real-time demand fluctuations without some system adjustment. Another aspect is that utilities in traditional power grids typically overlook demand response when scheduling energy resources, primarily focusing on meeting consumer demand irrespective of energy prices. Ensuring reliable operation of the energy system necessitates a real-time balance between supply and demand. However, factors such as sudden changes in supply and demand, forced outages of generation units, and disruptions in transmission and distribution infrastructure contribute to imbalances. These unforeseen conditions underscore the critical importance of real-time demand-supply balancing for effective energy management. Enhancing supply reliability up to the limit of handling any contingencies requires substantial investment in robust infrastructure, leading to increased consumer costs. Therefore, there is a pressing need for electric utilities and power network companies to restructure their operations to incorporate responsive demand along with the status of generating units while preserving the privacy of each participant. Different approaches discussed in the literature, such as Lagrangian and gradient methods, dual decomposition, the VCG mechanism, etc., either require extensive communication and data sharing among all units or do not adequately address real-time imbalances and demand fluctuations. This paper presents an algorithm incorporating dynamic consensus-based ADMM to provide a more practical, reliable, and efficient solution for distributed economic dispatch integrating demand response to ensure the real-time balance between supply and demand. The ADMM is more robust—it can handle data more accurately even when there is communication delay or partial data loss and scalable—the size of the problem does not grow with the network size as the problem is broken down into smaller subproblems and computation can be conducted in a parallel sequential fashion. The main contributions of this paper are as follows:
Design of distributed economic dispatch algorithm incorporating demand response in time-variant demands. The generation limit and ramp rate limit of the generating unit and power consumption limit of the responsive demand units are considered;
Finding optimal generation, optimal demand, and real-time pricing of electrical energy and maximizing social welfare;
Analyzing the effect of renewable sources in real-time pricing and social welfare maximization.
The proposed algorithm prioritizes privacy by exclusively sharing the energy mismatch with neighboring agents, safeguarding the privacy of each individual. Furthermore, it ensures robustness and scalability, making it a reliable and adaptable solution.
The remainder of this paper is organized as follows:
Section 2 provides an overview of graph theory, the dynamic consensus algorithm, the Karush–Kuhn–Tucker (KKT) conditions, and the ADMM.
Section 3 details the problem formulation of economic dispatch with different approaches.
Section 4 presents the result, and
Section 5 concludes the paper.
4. Results
The results and analysis of the proposed Algorithm 1 are discussed in three different cases:
- →
In
Section 4.2, the case where the proposed algorithm does not incorporate demand response is explained.
- →
In
Section 4.3, the case where the proposed algorithm is utilized to its full capability, considering demand response is presented.
- →
Lastly, in
Section 4.4, the effect of renewable energy in the proposed algorithm is examined.
4.1. Simulation Setup for the Algorithm Test
The algorithm was executed within the MATLAB R2020a environment to assess the effectiveness of the proposed algorithm on the IEEE 39 test bus system, which contains 10 generating units and 21 demand units. The coefficient used to randomize the load demands of the standard IEEE 39 bus system over 24 periods for each hour is given in
Table A1. The IEEE 39 bus system is shown in
Figure 3. Although the cost parameters in each generation unit remain consistent with the data available in Matpower, adjustments have been made to these cost coefficients to vary the incremental cost among generators. The minimum and maximum generation limits are determined as specified, and the ramp rate limit (both up and down) is set at 30% of their respective maximum generation capacity for each unit.
In the scenario where the proposed algorithm is tested with demand response, the simulation setup is adjusted accordingly. The demand units are classified into two categories: controllable and uncontrollable time-variant demand. Among the 21 demand units, 10 are designated as uncontrollable demand, while the remaining 11 are categorized as controllable demand units. Uncontrollable loads are treated as time-variant loads, fluctuating on an hourly basis, resulting in 24 steps in the time-variant uncontrollable load demand units. The cost coefficients, generator limits, and initial values of power demand at each bus were set according to the specifications outlined in MATPOWER [
22]. Parameters for the demand utility function (
,
) were derived through approximation, leveraging the characteristics of the utility function, as described in
Section 3.1. These parameters were intentionally varied from each other to reflect the differentiation in demand units based on their values.
The utility coefficients of the 11 controllable demand units connected to the load bus, which ranges from bus 1 to bus 20, are fictitiously generated to test the proposed economic dispatch algorithm with demand response. Based on these coefficients, each demand’s utility or marginal benefit, correlated with their power consumption levels, is illustrated in
Figure 1. The corresponding values of these coefficients are indicated in
Figure 1. For controllable loads, the consumption level is constrained within a specified range. The lower limit is 90% below, and the upper limit is set at 90% above the given demand in the IEEE39 test bus system. The rest of the demand units connected to the buses from bus 21 to bus 39 are considered uncontrollable.
4.2. Result and Discussion of the Proposed Algorithm with No Demand Response
The distributed economic dispatch problem formulation without demand response using the ADMM approach is clearly stated in [
23]. The simulation outcomes depicting the load distribution throughout a 24-h period are illustrated in
Figure 4,
Figure 5,
Figure 6 and
Figure 7. Each unit’s load demand has been pre-scheduled for specific periods, and the utility’s obligation is to meet all demanded loads at the most economically advantageous market rate available at any given period. In
Figure 4,
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10,
Figure 11,
Figure 12,
Figure 13,
Figure 14,
Figure 15,
Figure 16,
Figure 17,
Figure 18,
Figure 19 and
Figure 20, presenting in
Section 4.2 to
Section 4.4, the blue numbers on the x-axis represent the time in hours, while the black numbers indicate the number of iterations.
Figure 4 illustrates the optimal generation of each generating unit, with different colored lines representing each unit. The corresponding optimal market energy prices are shown in
Figure 5. This price reflects the common consent energy price. Each generating unit adjusts its output to generate power optimally based on this consensus price, ensuring that the total generation matches the demand precisely. The power demand of each load unit over a 24-h period is presented in
Figure 6. An increase in demand correlates with a higher market price, while a decrease in demand leads to a lower consensus price, in line with the supply-demand curve. Furthermore,
Figure 7 illustrates the total generation and demand, which are perfectly balanced, resulting in zero energy mismatch upon convergence. Two peaks in demand are notable: one at the 9th time period and another at the 21st time period. The utility successfully meets all demands, irrespective of energy prices, which fluctuate between 2455 MW and 5926 MW. The total energy consumption over the day amounts to 96383 Megawatt-hours, with a corresponding cost of
$1,219,256. The average cost per Megawatt-hour stands at approximately
$12.65.
4.3. Result and Discussion of Proposed Algorithm with Demand Response
The results for this case are depicted in
Figure 8,
Figure 9,
Figure 10,
Figure 11,
Figure 12,
Figure 13 and
Figure 14.
Figure 8 presents the optimal generation levels for each conventional generating unit in each time period, with maximum generation occurring during periods of peak demand and minimum generation during times of low energy demand. In
Figure 9, the hourly variation of uncontrollable load across 24 time periods is illustrated, with peak consumption observed in the 21st period and a secondary peak in the 9th period, while consumption is minimal during the start of the day.
Figure 10 represents the market energy prices for all participating agents in
$/MWh. The algorithm is designed to establish a common optimal value for each participating agent, leading to the convergence of market prices to a consensus value for a specific load demand period and transitioning to the next common value for different loads. With every change in load, convergence to an optimal common value ensures the algorithm’s effectiveness for dynamic loads.
Figure 11 illustrates the optimal demand for all controllable loads per time slot. The graph clearly demonstrates that the consumption of controllable units varies significantly based on energy prices—they consume more power when prices are low and less when prices increase. For instance, energy prices are at their minimum during the first period, coinciding with the highest consumption of controllable demand units. Conversely, energy prices reach their maximum in the 21st time period, with corresponding minimal consumption of controllable demand units. This highlights the effectiveness of demand response in conjunction with economic dispatch.
Figure 13 depicts the total generation and total demand in each time frame, showcasing a near-perfect match between generation and demand, resulting in minimal mismatch among units, as displayed in
Figure 14. Additionally,
Figure 12 illustrates the power consumption of individual demand units across all time periods. A noticeable trend emerges where uncontrollable and controllable demand units exhibit contrasting energy consumption patterns—consumption of controllable units decreases when uncontrollable load increases, and vice versa. This underscores the efficacy of the proposed economic dispatch algorithm, which not only optimizes generation scheduling but also significantly contributes to demand-side management. The demand curve in
Figure 13 reveals that power consumption levels are confined between 3460 MW and 4859 MW.
Figure 8.
Optimal generation level for each generating unit.
Figure 8.
Optimal generation level for each generating unit.
Figure 9.
Time-variant uncontrollable load demand.
Figure 9.
Time-variant uncontrollable load demand.
Figure 10.
Energy price .
Figure 10.
Energy price .
Figure 11.
Optimal demand of each demand unit.
Figure 11.
Optimal demand of each demand unit.
Figure 12.
Combined plot of each controllable and uncontrollable load.
Figure 12.
Combined plot of each controllable and uncontrollable load.
Figure 13.
Sum of total energy generation and total demand.
Figure 13.
Sum of total energy generation and total demand.
Figure 14.
Mismatch of generation and demand.
Figure 14.
Mismatch of generation and demand.
The total energy cost for the consumed quantity amounts to $1,147,345, with a cumulative energy usage of 96,134 megawatt-hours over the course of one day, incorporating demand response measures. When compared to Economic Dispatch without Demand Response, the utilization of Demand Response resulted in approximately $71,911 less cost for 249 megawatt-hours less energy. The average electricity cost per megawatt-hour in this scenario is approximately $11.93, compared to $12.65 in the previous case without Demand Response.
4.4. Result and Discussion on Effect of Renewable Generation in Proposed Algorithm with Demand Response
The simulation setup is exactly the same as that outlined in
Section 4.1, except for the incorporation of additional renewable energy resources in this section, specifically photovoltaic (PV) generation. Six identical PV energy generation setups are randomly integrated into the system, spanning buses from bus 1 to bus 6. Irradiance and temperature data for these six locations over a single day are sourced from the National Renewable Energy Laboratory (NREL), and recorded every 10 min throughout the day. A 2-square-kilometer area is considered for PV energy generation. The efficiency of the solar panels is standardized at 20% for each station throughout the simulation period.
The time-varying uncontrollable load is the same as analyzed in
Section 4.1 and is depicted in
Figure 9. The remaining results, which were influenced by renewable energy, are displayed in the figure from
Figure 15,
Figure 16,
Figure 17,
Figure 18,
Figure 19 and
Figure 20.
Figure 15 showcases the optimized power generation of each conventional unit throughout the time periods, and
Figure 16 displays the power generation from photovoltaic units based on given irradiance and temperature in corresponding periods. Both sources work in tandem to satisfy the required power demand.
Figure 17 displays the market energy price in
$/MWh for all system agents. As demand fluctuates, prices adjust accordingly, lowering with reduced demand and rising with increased demand. The integration of renewable sources decreases the need for conventional generation, reducing overall energy costs due to their lower prices.
Figure 18 illustrates the optimal demand of all controllable loads for each time slot. The graph illustrates how power consumption by controllable demand units changes with energy prices: consumption rises when prices are low and falls when prices increase. When renewable energy is fully available, energy prices are lowest, leading to peak consumption. Conversely, energy prices peak at the 21st time period, aligning with the lowest consumption of controllable demand units. Overall, consumption levels move inversely with energy prices. The proposed algorithm facilitates the shifting of peak demand from the 21st slot to other periods when the electric grid receives maximum power from PV generation. This indicates that the concept of demand response, coupled with renewable generation such as PV, effectively flattens the demand curve in conjunction with economic dispatch.
Figure 19 depicts the combined total generation and total demand for each time interval. It is noticeable that generation and demand align perfectly, resulting in an average mismatch approaching zero for each unit, as depicted in
Figure 20.
Figure 15.
Optimal generation level for each generating unit in presence of renewable energy.
Figure 15.
Optimal generation level for each generating unit in presence of renewable energy.
Figure 16.
Power generated by each PV units.
Figure 16.
Power generated by each PV units.
Figure 17.
Energy price in presence of the renewable energy.
Figure 17.
Energy price in presence of the renewable energy.
Figure 18.
Optimal demand of each demand unit in presence of the renewable energy.
Figure 18.
Optimal demand of each demand unit in presence of the renewable energy.
Figure 19.
Sum of total energy generation and total demand in the presence of renewable energy.
Figure 19.
Sum of total energy generation and total demand in the presence of renewable energy.
Figure 20.
Mismatch of generation and demand in the presence of renewable energy.
Figure 20.
Mismatch of generation and demand in the presence of renewable energy.
By integrating photovoltaic generation, the total energy usage over a single day, incorporating demand response measures, amounts to approximately 103,482 megawatt-hours, with a total cost of $1,189,187.7 for this energy consumption. With renewable energy and Demand Response considered, approximately 2205.71 megawatt-hours more energy is utilized compared to scenarios with only Demand Response under Economic Dispatch. However, the overall energy cost in this scenario is $41,842 higher than it would be without photovoltaic generation.
When both photovoltaic generation and demand response are integrated, the average cost per megawatt-hour of energy consumed stands at $11.492, compared to $11.93 with no renewable generation and only demand response measures.
With demand response in place, power consumption remains within the range of 3460 MW to 4859 MW. In contrast, without demand response, the variance in power consumption is significant, ranging from a low of 2455 MW to a maximum of around 5926 MW. It can be inferred that by effectively incorporating demand response measures into the power system, fluctuations in demand can be significantly reduced. This reduction in demand variability not only decreases the required plant installation capacity but also enhances plant factor, thereby improving overall profitability.
5. Conclusions
This paper proposes a novel, fully distributed economic dispatch algorithm based on the ADMM, eliminating the need for a central coordinator to compute global decision variables and incorporating demand response for optimal demand-side management. The approach formulates the social welfare maximization problem to determine the optimal generation of power units and the optimal demand for controllable loads. Each agent only shares their average energy mismatch with their neighbors as a control variable during the welfare maximization process. A dynamic consensus protocol is employed to establish a common optimal market price. Based on this price, each generating unit produces its optimal output, and each controllable load consumes its optimal amount of energy. This ensures the privacy of each agent throughout the economic dispatch process.
Theoretically, it is evident that market prices directly influence controllable loads, which adjust their consumption accordingly. The proposed algorithm was tested on the standard IEEE 39 bus test system, with simulation results showing its effectiveness in achieving real-time economic dispatch for generation units, optimal demand for controllable loads, and optimal energy pricing. Comparisons between economic dispatch with and without demand response revealed that, without demand response, generation units operate based on incremental generation costs to meet all required loads. With demand response, however, controllable loads adjust their consumption based on energy prices, consuming more energy when prices are low and less when prices are high. This helps to flatten the energy demand curve and improves demand-side management. Furthermore, the impact of renewable resources on demand-responsive economic dispatch was analyzed. The results demonstrated that peak load demand shifts to periods when renewable generation is at its maximum. Thus, the proposed economic dispatch algorithm significantly enhances demand-side management, optimizing generation and energy consumption while ensuring the data privacy of each participating agent. The aggregation demonstrated here does not capture detailed load flow analysis. It has been assumed that the system’s transmission infrastructure can successfully deliver designated power demand from the source to the demand unit, meeting all power flow constraints of the power system. The distributed economic dispatch that incorporates demand response is discussed in this paper, in which the the generation limit and generation ramp rate limit are considered. The future work is to perform the security-constrained economic dispatch (SCED) with demand response to ensure both economic efficiency and system reliability under normal system operations and different types of contingencies such as an outage of generation, outage of transmission lines, maintaining transmission limits, voltage limits, and stability constraints.