Next Article in Journal
Study on Spatial–Temporal Patterns and Factors Influencing Human Settlement Quality in Beijing
Next Article in Special Issue
An Optimal Dispatching Model for Integrated Energy Microgrid Considering the Reliability Principal–Agent Contract
Previous Article in Journal
The Effects of COVID-19 on Wellbeing: Evidence from Israel
Previous Article in Special Issue
A Study on Temperature Distribution within HVDC Bushing Influenced by Accelerator Content during the Curing Process
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Economic Dispatch Method of Microgrid Based on Fully Distributed ADMM Considering Demand Response

1
College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China
2
State Grid Ningbo Power Supply Company, Ningbo 315000, China
*
Author to whom correspondence should be addressed.
Sustainability 2022, 14(7), 3751; https://doi.org/10.3390/su14073751
Submission received: 15 February 2022 / Revised: 9 March 2022 / Accepted: 11 March 2022 / Published: 22 March 2022
(This article belongs to the Special Issue Sustainable Power Systems and Optimization)

Abstract

:
Aiming at the problem that the existing alternating direction method of multipliers (ADMM) cannot realize totally distributed computation, a totally distributed improved ADMM algorithm that combines logarithmic barrier function and virtual agent is proposed. We also investigate economic dispatch for microgrids considering demand response based on day-ahead real-time pricing (RTP), which forms a source-load-storage collaborative optimization scheme. First, three general distributed energy sources (DERs), renewable energy resources (RESs), conventional DERs and energy storage systems (ESSs), are considered in the method. Second, the goal of economic dispatch is to minimize the sum of three energy generation costs and implement the optimal power allocation of dispatchable DERs. Specifically, the approach not only inherits the fast computational speed of ADMM but also uses barrier function and virtual agent to handle inequality and equality, respectively. Moreover, the approach requires no coordination center and only the communication between current agent and adjacent agent to achieve totally distributed solution for every iteration, which can preserve information privacy well. Finally, a 30-node microgrid system is used for case analysis, and the simulation results demonstrate the feasibility and effectiveness of the proposed approach. It can be found that, the proposed approach converges to the optima when p = 0.01, v = 100, t 0 = 0.01 and μ = 2.

1. Introduction

Given increasingly serious environmental pollution and the gradual exhaustion of fossil fuel, there is a trend in the development of energy systems to be cleaner and more intelligent. The development of smart energy sources has become a national strategy [1], and the energy structure adjustment strategy is advancing rapidly. The key point of smart energy source is proper management of distributed energy sources (DERs) [2]; therefore, microgrids [3] have quickly developed as an effective way method of DER consumption because of its merits of clean energy, flexible power generation, energy storage, compatibility with the environment, low line loss, etc. [4]. The microgrid contains multiple types of DERs, such as wind turbines (WT), photovoltaic generation systems (PV), diesel generators (DG) and energy storage systems (ESSs). The economic dispatch [5] of microgrid is to achieve the optimal allocation of DERs through a series of algorithms and strategies, which can efficiently alleviate the shortage of energy supply and environmental pollution. Therefore research on economic dispatch of microgrids is quite important.
The goal of economic dispatch of microgrids is mainly to minimize generation cost while meeting power generation constraints and power balance constraints in order to achieve optimal power allocation of DERs. Renewable energy sources (RESs) can be wasted to different degrees in the general economic dispatch of microgrids. In order to absorb and reduce the abandonment rate of WT and PV, the introduction of demand response in the economic dispatch of microgrids [6] is a very effective measure that can not only increase the wind and solar consumption rate but also adjust the electricity consumption behavior of users; the interconnection and interaction between the power generators and the users has also been realized. An incentive-based demand response plan for economic dispatch of microgrids was introduced in [7]. In [8], the authors proposed a real-time incentive demand response algorithm for smart grid systems with reinforcement learning and deep neural networks to ensure the balance of power supply and demand and improve grid reliability. In addition to incentive mechanisms, demand response also uses price mechanisms to guide users’ electricity consumption behavior. A real-time price (RTP) decision model was developed to implement the demand response, effectively minimized the generation cost [9]. In [10], the authors proposed an energy management system strategy by introducing price-based demand response to reduce the operating cost of the entire microgrid. Considering price-based demand response can make users more voluntarily and actively participate in the adjustment of electricity consumption by changing electricity prices, in this study, we chose it in the economic dispatch to construct a source-load-storage coordination scheme.
It is important to implement the economic dispatch problem for microgrids after forming it is established. The implementation effect of economic dispatch of microgrids is related to the applied control structure. Control structure that are used widely in microgrids can be divided into two types: centralized control and distributed control. However, with the penetration of DERs, centralized control wherein a central controller is responsible for communication with all other DERs faces challenges such as heavy computational burden and complex communication. Thus, distributed control will emerge as the times require. Economic dispatch under a distributed control [11] structure requires no central controller [12] and allocates the local controller for each DER. Finally, all DERs can complete economic dispatch only through point-to-point communication with adjacent agents. Therefore, the reliability of distributed control is higher, and coupled with the distributed characteristics of high dispersion and easy deployment of DERs in the microgrid, distributed economic dispatch has gradually become a research hotspot.
Existing literature includes a lot of research on distributed economic dispatch. An economic dispatch strategy of microgrids was proposed in [13] based on distributed control by introducing the principle of equal increment rate. In [14], a consensus algorithm in the isolated microgrid was proposed to solve reactive power distribution. Considering the pros and cons of the principle of equal increment rate and consensus algorithm, an adaptive dual-control energy internet optimization method combining the two theories above was proposed in [15]. Although these distributed economic dispatch methods avoid the problems of heavy calculation and complicated communication of centralized control, further research and improvement are required in terms of the number of iterations and convergence speed. Based on the above problems, Boyd et al. [16] first proposed the alternating direction method of multipliers (ADMM) algorithm based on the multi-agent framework to solve the distributed optimization problem. Compared with other distributed optimization algorithms, the ADMM algorithm has faster convergence speed, which integrates the decomposability of dual ascent [17] and the faster convergence rate of the multiplier method, requiring no strong convex properties for objective function. Therefore, it has become a very important method for distributed optimization. In [18], a coordinated planning method of transmission and distribution network based on the standard ADMM algorithm was proposed. A distributed ADMM algorithm was developed in [19] by applying finite-time average consensus algorithm to solve economic dispatch problems. In [20], a GS-ADMM algorithm was proposed that can achieve sequential optimization based on standard the ADMM algorithm. Aiming at the problem of a possible longer waiting time in sequential optimization described in [20], a proximal Jacobian ADMM algorithm that can realize optimal power flow problem by parallel optimization was introduced in [21]. However, these methods cannot be called true distributed computing. They still need a coordination center to update the variable value of each agent, causing the traditional ADMM algorithm to still be subject to the computation and communication capabilities of the coordination center. Thus, several fully distributed ADMM algorithms were proposed to solve the above problem. An appropriate energy management framework in smart islands based on the primal-dual method of multipliers was established in [22]. Due to a lack of discussion of coupled constraint in [22], a fully distributed scheme that embeds a dynamic average consensus protocol in the ADMM was designed to minimize the sum of local objective functions in [23]. An ADMM algorithm that makes some improvements on the algorithm in [23] to speed the converging rate based on duality and consensus theory was proposed in [24] to solve such linearly constrained convex optimization problems. Although these algorithms can achieve fully distributed computation, they tend to concern the processing of equality and ignore the processing inequality. In order to consider both equality and inequality, an improved fully distributed ADMM algorithm based on logarithmic barrier function and virtual agent is proposed in this paper that realize fully distributed economic dispatch of microgrids. In contrast to existing ADMM algorithms, the differences and our main contributions are summarized as follows.
(1)
The logarithmic barrier function method and the idea of virtual agent are employed to deal with the power inequality constraints of the distributed power sources and the power balance equality constraints of the microgrid in this paper, by which the problem of constraints is solved easily by reducing the complex computation and simplifying the solution process.
(2)
The algorithm requires no coordination center, and the update of each variable only requires the value of the adjacent agent’s variable to complete calculation, which can realize fully distributed computation and preserve information privacy well.
(3)
Through comparison with the traditional ADMM algorithm, the feasibility and effectiveness of the proposed method are verified. Sensitivity analysis of the related parameters is implemented, which can ensure the convergence of the proposed algorithm.
(4)
A fully distributed source-load-storage coordination scheme is constructed under the price-based demand response, and real-time optimal dispatch results can be obtained that use the power of the RESs as soon as possible and implement the beneficial interaction between power generators and power users.
The remainder of the paper is organized as follows. Section 2 presents the mathematical formulation of the economic dispatch problem. A fully distributed ADMM algorithm and a source-load-storage collaborative optimization scheme are proposed in Section 3. Case studies and the simulation results are elaborated in Section 4. Section 5 presents conclusions and future research directions.

2. Mathematical Formulation

The microgrid structure is shown in Figure 1, which contains a PV, a WT, four DGs, two ESSs and some loads. DG and ESS are dispatchable, whereas RESs are not dispatchable because their output power is related to the external environment and cannot be controlled. Thus, we expected maximized power generation consumption of RESs in economic dispatch, independent of power generation cost [3].
The following optimization problems are formulated according to the structure in Figure 1.
(1)
DG
DG can adjust its power to any required reference value within the power limit. The cost function is usually expressed as a quadratic function [25],
f D G , k ( t ) = a k P D G , k 2 ( t ) + b k P D G , k ( t ) + c k
P D G , k m i n P D G , k ( t ) P D G , k m a x
P D G , k R P D G , k ( t ) P D G , k ( t 1 ) P D G , k R
where a k , b k and c k are the coefficients of cost function f D G , k ( t ) ; P D G , k ( t ) is the power output of the k-th DG at time t; P D G , k m a x and P D G , k m i n are the maximum and minimum power output of DG, respectively; and P D G , k R is the maximum ramp rate of DG.
(2)
ESS
ESS has the function of bidirectional regulation of energy in the microgrid. It exchanges electrical energy with the microgrid through power electronic devices, and its cost function is defined as [26,27]:
f E S S , j ( t ) = a j P E S S , j 2 ( t ) + b j P E S S , j ( t ) + c j
P E S S , j m a x P E S S , j ( t ) P E S S , j m a x P E S S , j ( t ) = P E S S , c , j ( t ) ,   P E S S , j ( t ) 0 P E S S , dc , j ( t ) ,   P E S S , j ( t ) > 0 P E S S , c , j ( t ) * P E S S , dc , j ( t ) 0
where P E S S , j ( t ) is the charging/discharging power of the j-th ESS at time t; P E S S , c , j ( t ) and P E S S , dc , j ( t ) are the charging power and discharging power, respectively; a j , b j and c j are the coefficients of cost function f E S S , j ( t ) ; and P E S S , j m a x is the maximum of charging/discharging power.
The optimal power allocation in the microgrid is aimed at allocating the power output by minimizing generation cost and satisfying the constraints of the power balance, as well as the DERs’ own power generation. The economic dispatch problem considered in this paper can be formulated as an optimization problem in Equation (6).
m i n P t T ( k N D G f D G , k ( t ) + j N E S S f E S S , j ( t ) ) s . t .         P D G ( t ) + P E S S ( t ) + P W T ( t ) + P P V ( t ) = P D ( t )                                         a n d           ( 2 ) , ( 3 ) , ( 5 )
where T is the total number of time slots; N D G and N E S S are the total number of DGs and ESSs, respectively; and P W T ( t ) and P P V ( t ) are the power output of WT and PV, respectively.
In order to solve the economic dispatch problem from the generation and consumption side, which can improve the interaction of sources and loads and enhance the utilization of the RESs. Load demand is obtained by utilizing the principle of demand response (DR) based on a pricing mechanism. The DR modeling is introduced as follows.
(3)
DR MODELING
It is known that there are three electricity pricing mechanisms in price-based demand response: time-of-use pricing (TOU), critical-peak pricing (CPP) and real-time pricing (RTP). Considering the traits of day-ahead real-time pricing (DARTP), we chose it as the pricing mechanism to implement demand response in this paper.
The purpose of demand response is to adjust the electricity consumption of users by reasonably setting electricity prices. Therefore, a better characterization of users’ electricity consumption behavior is particularly critical for achieving demand response. Price-based demand response generally uses the power elasticity matrix [28] to describe the relationship between users’ power consumption and market electricity prices. Formula (7) reflects the relationship between the change rate of electricity consumption and the change rate of electricity price.
Δ d 1 / d 1 Δ d 2 / d 2 L Δ d 24 / d 24 = E Δ p r 1 / p r 1 Δ p r 2 / p r 2 L Δ p r 24 / p r 24
where Δ d i and Δ p r i are changes in demand and price, respectively, during time slot i; d i and p r i are the base load demand and electricity price, respectively, during time slot i; and E is the price elasticity matrix, which can be described as:
E = ε 1 , 1 ε 1 , 2 ε 1 , 24 ε 2 , 1 ε 2 , 2 ε 2 , 24 ε 24 , 1 ε 24 , 2 ε 24 , 24
where ε i , i is the self-elasticity coefficient, and ε i , j ( i j ) is the crossing elasticity coefficient.
The change of load demand in any period of time can be obtained by the equivalent transformation of Formula (7).
Δ d i = j = 1 24 ε i , j × Δ p r j / p r j × d i
The price changes according to the difference of between load demand and RESs,
Δ p r t = β ( d t P W G ( t ) P P V ( t ) )
where β is the DARTP proportional coefficient, and t represents the same time slot as i.
The load demand after DARTP-DR implementation can be expressed as:
d D R t = d i + Δ d i
In order to ensure that the demand response has a positive effect on the economic operation for the microgrid, the amount of load change needs to meet certain constraints. From Formulas (9)–(11), it can be seen that the amount of load change can be divided into the amount of shifting out and the amount of shifting in.
Δ d s h i f t o u t = i = 1 24 m Δ d i ,   i f Δ d i < 0 , m = 1 ;   e l s e   m = 0
Δ d s h i f t i n = i = 1 24 n Δ d i ,   i f Δ d i > 0 , n = 1 ;   e l s e   n = 0
If Δ d s h i f t o u t Δ d s h i f t i n , the amount of load change is corrected as:
Δ d i = Δ d i Δ d i > 0 Δ d i = Δ d i × Δ d s h i f t i n / Δ d s h i f t o u t Δ d i < 0
If Δ d s h i f t o u t < Δ d s h i f t i n , the amount of load change is corrected as:
Δ d i = Δ d i Δ d i < 0 Δ d i = Δ d i × Δ d s h i f t o u t / Δ d s h i f t i n Δ d i > 0
where Δ d s h i f t o u t and Δ d s h i f t i n are the amount of shifting out and the amount of shifting in, respectively, of load demand.
We substitute Formula (11) into Formula (6) to obtain the dynamic economic dispatch problem.
m i n P t T ( k N D G f D G , k ( t ) + j N E S S f E S S , j ( t ) ) s . t .         P D G ( t ) + P E S S ( t ) + P P V ( t ) + P W G ( t ) = d D R t                                         a n d           ( 2 ) , ( 3 ) , ( 5 )

3. Distributed ADMM Algorithm for Dynamic Economic Dispatch

3.1. Optimal Model Processing

From Formula (16), the optimization model contains two kinds of constraints: inequality and equality constraints. The logarithmic barrier function and the idea of virtual agent are employed to deal with the constraints of the optimization problem in this paper.
(1)
Process of Inequality Constraints
The goal processing of inequality constraints is mainly to use the barrier function method to add the barrier function to the original objective function, which can limit the solution of the objective function to the feasible range. The barrier function generally has two forms: fraction and logarithm. Considering that the derivation result of the fractional form is more complicated, the logarithmic barrier function is chosen to deal with inequality constraints.
(2)
Process of Equality Constraints
Equality constraints describe the relationship of all variables. In this paper, we use the idea of virtual agents to solve this problem.
Definition of virtual agent: virtual agent refers to a conceived agent whose cost function is a constant function; there is no optimization variable, but it meets specific constraints.
From the definition of the virtual agent, we know that as long as the cost function of the virtual agent is set as 0, the objective function plus the equality constraint not only has no influence on the overall solution result but also makes the result meet the specific constraints. There are two advantages for this processing: (1) each agent is only responsible for satisfying its own power constraints; and (2) the virtual agent is responsible for satisfying the overall power balance constraints.
Before introducing the details of processing the optimization model [29], Problem (16) is considered again. In order to unify the form, the optimization objective function can be set as f ( P ) ; the lower and upper bounds of the inequality constraint are represented by h _   and h ¯   , respectively; and the time index is dropped for convenience. Then, Problem (16) can be written as:
m i n P           f ( P ) = i = 1 n f ( P i ) s . t .           i = 1 n P i = d D R P R E S                                 h   _ i P i   h   ¯ i    
where P i is the power output of each dispatchable DER.
m i n x i = 1 ω g i ( x ) g i ( x ) = t f i ( x ) + f i ( x ) f i ( x ) = l o g ( h _ i + P i ) l o g ( h ¯ i P i )                                                                                                                       i f       i A v * i = 1 n P i ( d D R P R E S ) 2 ,         i f       i B
where ω is the sum of the number of original agents and virtual agents, A is the number of original agents and B is the number of virtual agents.
It can be seen from Formula (18) that the original optimization model becomes a new unconstrained optimization model through the logarithmic barrier function and the virtual agent’s processing of constraints. At the same time, the new unconstrained optimization model also contains some parameters for adjustment, where t > 0 , t k = μ t k 1 is the updated formula of parameter t, and t 0 > 0 , μ > 1 , v > 0 .

3.2. Fully Distributed ADMM Algorithm

Based on the above processing of the economic dispatch optimization model of the microgrid, a fully distributed ADMM algorithm based on logarithmic barrier function and virtual agent is proposed in this paper, which is presented as:
x i k + 1 = a r g m i n x f i ( x i ) + j N ( i ) λ j i k λ j i k T x i + ρ x j k x i 2
λ j i k + 1 = λ j i k ρ ( x j k x i k + 1 )
where N ( i ) is the set of agents adjacent to agent i.
Stopping criteria need to be introduced to make the proposed algorithm converge in finite time, which can improve the stability of the proposed algorithm in a closed loop. Similar to [16], the stopping criteria are designed according to two relationships: (1) the solution error between current agent and adjacent agent in each iteration; and (2) the solution error of current agent at time step k and k − 1. The update of agents stops until the below stopping criteria are satisfied.
j N i x j k x i k 2 δ i p r i ρ x i k x i k 1 2 δ i d u a l δ i p r i = δ a b s + δ r e l m a x j N i x j k 2 , x i k 2 , δ i d u a l = δ a b s + δ r e l m a x j N i λ j i k 2
where δ i p r i and δ i d u a l are primal error and dual error, respectively; and δ a b s and δ r e l are absolute and relative tolerances, usually chosen as 10−3 or 10−4 [16].
It can be seen from Formula (19) that the update of the variable, x i , requires the value of the adjacent variable, x j at the last moment, and it is independent of the value at the current moment, which has the characteristic of full distribution. Therefore, the ADMM algorithm in Formulas (19) and (20) only needs to communicate with adjacent agents, which decreases the computation and the communication burden. The algorithm is shown in Figure 2.

3.3. Source-Load-Storage Collaborative Optimization Scheme

Based on the microgrid economic dispatch model with demand response proposed in Section 2 and the fully distributed ADMM algorithm proposed in Section 3.2, in this paper, we propose a two-layer source-load-storage collaborative optimization scheme that can realize fully distributed computing. The block diagram in Figure 3 is as follows.
Collaborative optimization is realized by the DR layer and the ED layer. The real-time load demand forest is implemented by utilizing the DAPRTP in the DR layer. Load shift-in equals load shift-out during the DR. In the ED layer, the fully distributed optimal allocation containing PV, WT, DG and ESS can be finished by employing the proposed ADMM algorithm. The optimization considers not only the power supply side but also the load demand side, which can enhance the consumption of the RESs as soon as possible and improve the interaction between generation and consumption.

4. Case Study

The proposed fully distributed ADMM algorithm is coded by Matlab, and the CVX algorithm package is used to simulate a 30-node microgrid system that consists of four DGs and two ESSs on a Windows 10 PC. The relevant parameters of the microgrid system are given in Table 1. The power profiles of WT, PV and load demand during a day (24 h) are shown in Figure 4. The single-time-slot economic dispatch and multiple-time-slot economic dispatch are implemented to verify the feasibility and effectiveness of the proposed approach.

4.1. Single-Time-Slot Economic Dispatch

4.1.1. Centralized ADMM for Single-Time-Slot Economic Dispatch

The centralized ADMM is the reference of power output, which is obtained with a traditional ADMM algorithm. The calculation result of centralized ADMM in the Table 2 is as follows.

4.1.2. Optimal Power Allocation of Fully Distributed ADMM Algorithm

When p = 0.01, v = 100, t 0 = 0.01 and μ = 2, it can be clearly seen from Figure 5 that the final optimal solution of each DER basically fits the value obtained by the centralized algorithm in Table 2, which demonstrates the feasibility of proposed ADMM algorithm, and it converges to the optimal solution after only 143 iterations.
In order to show that the proposed approach can converge to the global optima more clearly, Figure 6 shows the distances of the solution to the global optima from different perspectives. From the figures, we can see that: (1) the solution gradually approximates the global optima, and the error descends from 100 to 10−3 at time step k = 0–100; (2) the error stays between 10−3 and 10−4, and the solution converges to the optima after time step k > 100, which illustrates that the convergence of the proposed approach can be guaranteed.
(1) The Influence of Parameters on The Convergence Speed of The Algorithm
It can be seen from Formula (18) that the optimization results of the objective function are closely related to the four variable parameters. Each parameter is analyzed one by one, and its influence on the optimization results of the algorithm is explored.
(1)
parameter ρ
Here, μ = 2, v = 100 and t 0 = 0.01, keep μ , v , t 0 unchanged and change the value of ρ to explore its influence on the optimization result. Figure 7 is the comparison of the corresponding objective function values under different values of ρ . It can be seen from Figure 7 that the convergence rate is the fastest when ρ = 0.01, and the convergence rate is slower or even unable to converge when other ρ values are adopted.
(2)
parameter v
Here, ρ = 0.01, μ = 2 and t 0 = 0.01, keep ρ , μ , t 0 unchanged and change the value of v to explore its influence on the optimization results (Figure 8). The influence of different values on the error of optimization results is the comparison of the errors obtained under different values of v . It can be seen from Figure 8, the influence of different values on the error of optimization results, that the convergence curve is almost the same when v = 100, 1000, or 10,000, indicating that the value at this time has little influence on the convergence speed, and when v = 0.1 or 0.01, it is difficult to ensure that the algorithm converges to the optimal solution, causing the speed of convergence to also lose its meaning.
(3)
parameter μ
Here, ρ = 0.01, v = 2 and t 0 = 0.01, keep ρ , v , t 0 unchanged and change the value of μ to explore its impact on the optimization results. Figure 9, the influence of different values on the value of the objective function, is the comparison of the corresponding objective function values under different values of μ .
It can be seen from Figure 9, the influence of different values on the value of the objective function that when μ = 0.5 or 0.9, that the objective function value deviates significantly from the reference function value and does not converge. When μ = 1, although it can be converged, the objective function value is much higher than the reference function value and does not reach optimal levels. However, when μ = 2, 3 or 10, the three objective function values fit the reference function value, and the curves almost overlap, indicating that the optimal solution has been reached.
(4)
parameter t 0
Here, ρ = 0.01 and v = 100. It can be seen from the above that when μ > 1, it is advisable to set μ = 2, keep ρ , v , μ unchanged and change the initial value of t 0 to explore its influence on the optimization results. Figure 10 is the comparison of the corresponding errors under different values of t 0 .
It can be seen from Figure 10 that the number of iterations is the most when t 0 = 0.0001, and the convergence speed is the slowest when t 0 = 0.001. The convergence speeds are fastest when t 0 = 0.01, 0.1, 1 or 10, and the optimal value can be reached after only 143 steps.
Some general conclusions can be obtained about the parameters of the proposed algorithm according to the sensitivity analysis. (1) The parameter ρ can search in the range of 0.0001–0.1, and the proper ρ is 0.01 for the proposed algorithm. (2) The parameter v can search when v 100 , and the proper v is 100 for the proposed algorithm. (3) The parameter μ can search when bigger than 1, and the proper μ is set as 2 for the proposed algorithm. (4) The parameter t 0 can search in the range of 0.01–10, and the proper t 0 is set as 0.01 for the proposed algorithm. Convergence can be guaranteed under these conditions.
(2) The Influence of the Number of Virtual Agents on the Optimization Results
In Formula (16), B is the number of virtual agents. Different choices of B also change the optimization results. The following selects different numbers of B to explore its specific impact on the optimization results. Figure 11 reflects that the smaller the number of virtual agents is, the better the convergence speed is.
(3) Test of Plug-and-Play Capability
Plug-and-play capability is tested to demonstrate the flexibility of the microgrid system. Without loss of generality, the DER6 is plugged out at time step k = 100 due to faults and plugged in at time step k = 170 due to recovery. The cost function can converge to the optimal value whenever DER6 is plugged out or in, as shown in Figure 12a. Each DER reallocates the power output to a new steady state when the DER6 is plugged out and recovers the original optimal value when the DER6 is plugged in, as shown in Figure 12b. Thus, the proposed ADMM algorithm can still be effective for the case of plug and play.

4.2. Multiple-Time-Slot Economic Dispatch

Collaborative Optimization Results with Real Time Demand Response

Figure 13 is a comparison diagram of the load before and after the demand response, and Figure 14 is a comparison diagram of the electricity price before and after the demand response. Combining Figure 13 and Figure 14, it can be seen that the peak periods of the difference between the load demand and the sum of the WT and PV power output are at 07:00–09:00 and 16:00–18:00. The load adjustment is obvious during the time slots while realizing the purpose of shifting the load from more to less under the high electricity price. The periods of 01:00–05:00 and 20:00–23:00 are the valley periods of the difference between the load demand and the sum of the WT and PV power output. At this time, the load only needs to be adjusted slightly to meet the scheduling requirements.
The coordination optimization results of DERs with the demand response are shown in Figure 15. It can be seen from the figure that when the load demand is less than the sum of the WT and PV power generation, the excess power is used for energy storage charging, and other distributed power sources are no effort required. When the load demand is greater than the sum of the WT and PV power generation, at this time, in addition to the power output of the distributed power generation, energy storage is needed to ensure the balance between supply and demand by discharging.

5. Conclusions

Aiming at the distributed demand of microgrid economic dispatch, in this paper, we propose a fully distributed ADMM algorithm based on the logarithmic barrier function method and virtual agent and apply them to microgrid economic dispatch. In addition, a demand response based on the real-time electricity price is introduced into the economic dispatch of the microgrid. Thus, a source-load-storage energy microgrid optimization scheme is proposed. The economic scheduling method has the following characteristics. (1) the constraint conditions are processed by the logarithmic barrier function method and virtual agent, which greatly reduces the computational complexity and simplifies the implementation steps by adding the inequality constraint to the objective function and setting proper virtual agents for equality constraint. (2) Compared to other distributed ADMM algorithms, which can be called fully distributed algorithms outwardly and still need a coordination center to collect information of each agent, the proposed algorithm is a fully distributed calculation and requires no coordination center and only needs limited information exchange with two adjacent distributed power sources to configure the optimal power of the dispatchable distributed power sources. (3) The proposed source-load-storage coordination scheme realizes dynamic economic dispatch with demand response by introducing the RTP, which not only improves the utilization efficiency of RESs but also takes user behavior into consideration to form a bidirectional feedback dispatchable scheme.
This paper currently only considers the power constraints of DERs in the economic dispatch optimization model and ignores the uncertainty of power output of PV and WT. Thus, the other constraints, such as line constraints and the uncertainty of RESs, will be considered in the optimization model, which is the future research direction to improve the accuracy, reliability and scope of application of the optimization model.

Author Contributions

Conceptualization, D.Z. and F.G.; methodology, F.G.; software, X.N.; validation, X.N. and F.G.; formal analysis, D.Z., X.N., F.G., Y.X., P.L. and J.F.; investigation, D.Z., X.N., Y.X., P.L. and J.F.; resources, D.Z., Y.X., P.L. and J.F.; data curation, Y.X., P.L. and J.F.; writing—original draft preparation, X.N.; writing—review and editing, D.Z., X.N. and F.G.; visualization, X.N.; supervision, D.Z., Y.X., P.L. and J.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key Research and Development Program of Zhejiang Province (2019C01149) and the Energy Foundation (G-2109-33293).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Paul, S.; Dey, T.; Saha, P.; Dey, S.; Sen, R. Review on the development scenario of renewable energy in different country. In Proceedings of the Innovations in Energy Management and Renewable Resources, Kolkata, India, 5–7 February 2021. [Google Scholar]
  2. Cady, S.T.; Domínguez-García, A.D.; Hadjicostis, C.N. A Distributed Generation Control Architecture for Islanded AC Microgrids. IEEE Trans. Control Syst. Tech. 2015, 23, 1717–1735. [Google Scholar] [CrossRef]
  3. Lasseter, R.H. Microgrids. In Proceedings of the IEEE Power Engineering Society Winter Meeting, (Cat. No. 02CH37309), New York, NY, USA, 27–31 January; IEEE: New York, NY, USA, 2002; Volume 1, pp. 305–308. [Google Scholar]
  4. Espina, E.; Llanos, J.; Burgos-Mellado, C.; Cárdenas-Dobson, R.M.; Martínez-Gómez, M.; Sáez, D. Distributed Control Strategies for Microgrids: An Overview. IEEE Access 2020, 8, 193412–193448. [Google Scholar] [CrossRef]
  5. Kellerer, E.; Steinke, F. Scalable Economic Dispatch for Smart Distribution Networks. IEEE Trans. Power Syst. 2015, 30, 1739–1746. [Google Scholar] [CrossRef]
  6. Rezaee Jordehi, A. Optimisation of demand response in electric power systems, a review. Renew. Sustain. Energy Rev. 2019, 103, 308–319. [Google Scholar] [CrossRef]
  7. Nwulu, N.I.; Xia, X. Optimal dispatch for a microgrid incorporating renewables and demand response. Renew. Energy 2017, 101, 16–28. [Google Scholar] [CrossRef]
  8. Renzhi, L.; Hong, S.H. Incentive-based demand response for smart grid with reinforcement learning and deep neural network. Appl. Energy 2019, 236, 937–949. [Google Scholar]
  9. Alquthami, T.; Milyani, A.H.; Awais, M.; Rasheed, M.B. An Incentive Based Dynamic Pricing in Smart Grid: A Customer’s Perspective. Sustainability 2021, 13, 6066. [Google Scholar] [CrossRef]
  10. Muqeet, H.A.U.; Ahmad, A. Optimal Scheduling for Campus Prosumer Microgrid Considering Price Based Demand Response. IEEE Access 2020, 8, 71378–71394. [Google Scholar] [CrossRef]
  11. Yazdanian, M.; Mehrizi-Sani, A. Distributed control techniques in microgrids. IEEE Trans. Smart Grid 2014, 5, 2901–2909. [Google Scholar] [CrossRef]
  12. Shafiee, Q.; Vasquez, J.C.; Guerrero, J.M. Distributed secondary control for islanded microgrid-A novel approach. IEEE Trans. Power Electron. 2014, 29, 1018–1031. [Google Scholar] [CrossRef] [Green Version]
  13. Xia, H.; Li, Q.; Xu, R.; Chen, T.; Wang, J.; Hassan, M.A.S.; Chen, M. Distributed Control Method for Economic Dispatch in Islanded Microgrids with Renewable Energy Sources. IEEE Access 2018, 6, 21802–21811. [Google Scholar] [CrossRef]
  14. Zhang, H.; Kim, S.; Sun, Q.; Zhou, J. Distributed adaptive virtual impedance control for accurate reactive power sharing based on consensus control in microgrids. IEEE Trans. Smart Grid 2017, 8, 1749–1761. [Google Scholar] [CrossRef]
  15. Zhang, N.; Sun, Q.; Wang, J.; Yang, L. Distributed adaptive dual control via consensus algorithm in the energy internet. IEEE Trans. Ind. Informat. 2021, 17, 4848–4860. [Google Scholar] [CrossRef]
  16. Boyd, S.; Parikh, N.; Chu, E.; Peleato, B.; Eckstein, J. Distributed optimization and statistical learning via the alternating direction method of multipliers. Found. Trends 2011, 3, 1–122. [Google Scholar]
  17. Guo, Y.; Gao, H.; Wang, Z. Distributed online voltage control for wind farms using generalized fast dual ascent. IEEE Trans. Power Syst. 2020, 35, 4505–4517. [Google Scholar] [CrossRef]
  18. Chen, G.; Yang, Q. An ADMM-Based Distributed Algorithm for Economic Dispatch in Islanded Microgrids. IEEE Trans. Ind. Informat. 2018, 14, 3892–3903. [Google Scholar] [CrossRef]
  19. Li, P.; Hu, J. An ADMM based distributed finite-time algorithm for economic dispatch problems. IEEE Access 2018, 6, 30969–30976. [Google Scholar] [CrossRef]
  20. Deng, W.; Lai, M.J.; Peng, Z.; Yin, W. Parallel Multi-Block ADMM with O(1/k) Convergence. J. Sci. Comput. 2017, 71, 712–736. [Google Scholar] [CrossRef]
  21. Ma, M.; Fan, L.; Miao, Z. Consensus ADMM and Proximal ADMM for economic dispatch and AC OPF with SOCP relaxation. In Proceedings of the 2016 North American Power Symposium (NAPS), Denver, CO, USA, 18–20 September 2016. [Google Scholar]
  22. Mohamed, M.A.; Jin, T.; Su, W. Multi-agent energy management of smart islands using primal-dual method of multipliers. Energy 2020, 208, 118306. [Google Scholar] [CrossRef]
  23. Falsone, A.; Notarnicola, I.; Notarstefano, G.; Prandini, M. Tracking-ADMM for distributed constraint-coupled optimization. Automatica 2020, 117, 108962. [Google Scholar] [CrossRef] [Green Version]
  24. Carli, R.; Dotoli, M. Distributed Alternating Direction Method of Multipliers for Linearly Constrained Optimization Over a Network. IEEE Control Syst. Lett. 2020, 4, 247–252. [Google Scholar] [CrossRef]
  25. Lyu, C.; Jia, Y.; Xu, Z. A Novel Communication-Less Approach to Economic Dispatch for Microgrids. IEEE Trans. Smart Grid 2021, 12, 901–904. [Google Scholar] [CrossRef]
  26. Duan, Y.; He, X.; Zhao, Y. Distributed algorithm based on consensus control strategy for dynamic economic dispatch problem. Intl. J. Electr. Power Energy Syst. 2021, 129, 106833. [Google Scholar] [CrossRef]
  27. Carli, R.; Cavone, G.; Pippia, T.; Schutter, B.D.; Dotoli, M. Robust Optimal Control for Demand Side Management of Multi-Carrier Microgrids. IEEE Trans. Autom. Sci. Eng. 2022, 1–14. Available online: https://www.techrxiv.org/articles/preprint/Robust_Optimal_Control_for_Demand_Side_Management_of_Multi-Carrier_Microgrids/19149023 (accessed on 14 February 2022). [CrossRef]
  28. Juan, S.; Shu, F.; Guangjin, X.; Songhai, D.; Zhiwen, C. Eleceticity Price Elasticity Model under Electricity Market Transaction Mode. In Proceedings of the 3rd AEEES Conference, Chengdu, China, 26–29 March 2021; pp. 1035–1041. [Google Scholar]
  29. Yan, J.; Guo, F.; Wen, C. False data injection against state estimation in power systems with multiple cooperative attackers. ISA Trans. 2020, 101, 225–233. [Google Scholar] [CrossRef]
Figure 1. Microgrid structure.
Figure 1. Microgrid structure.
Sustainability 14 03751 g001
Figure 2. Flow chart of fully distributed ADMM algorithm.
Figure 2. Flow chart of fully distributed ADMM algorithm.
Sustainability 14 03751 g002
Figure 3. Block diagram of source-load-storage collaborative optimization.
Figure 3. Block diagram of source-load-storage collaborative optimization.
Sustainability 14 03751 g003
Figure 4. Power profiles of WT, PV and load demand.
Figure 4. Power profiles of WT, PV and load demand.
Sustainability 14 03751 g004
Figure 5. Optimal power configuration of the corresponding DER for each iteration.
Figure 5. Optimal power configuration of the corresponding DER for each iteration.
Sustainability 14 03751 g005
Figure 6. (a) Function value of the proposed ADMM and centralized ADMM. (b) The error between the solution of the proposed ADMM and the optima.
Figure 6. (a) Function value of the proposed ADMM and centralized ADMM. (b) The error between the solution of the proposed ADMM and the optima.
Sustainability 14 03751 g006
Figure 7. Influence of different ρ values on the value of the objective function.
Figure 7. Influence of different ρ values on the value of the objective function.
Sustainability 14 03751 g007
Figure 8. Influence of different v values on the error of optimization results.
Figure 8. Influence of different v values on the error of optimization results.
Sustainability 14 03751 g008
Figure 9. Influence of different μ values on the value of the objective function.
Figure 9. Influence of different μ values on the value of the objective function.
Sustainability 14 03751 g009
Figure 10. Influence of different t 0 values on the error of optimization results.
Figure 10. Influence of different t 0 values on the error of optimization results.
Sustainability 14 03751 g010
Figure 11. Influence of different B values on the optimization result error.
Figure 11. Influence of different B values on the optimization result error.
Sustainability 14 03751 g011
Figure 12. (a) Value of the cost function under the plug-and-play test. (b) Value of each DER under the plug-and-play test.
Figure 12. (a) Value of the cost function under the plug-and-play test. (b) Value of each DER under the plug-and-play test.
Sustainability 14 03751 g012
Figure 13. Comparison of load demand before and after demand response.
Figure 13. Comparison of load demand before and after demand response.
Sustainability 14 03751 g013
Figure 14. Changes in electricity prices before and after demand response.
Figure 14. Changes in electricity prices before and after demand response.
Sustainability 14 03751 g014
Figure 15. (a) Power output of DG 1. (b) Power output of DG 2. (c) Power output of DG 3. (d) Power output of DG 4. (e) Power output of ESS 1. (f) Power output of ESS 2.
Figure 15. (a) Power output of DG 1. (b) Power output of DG 2. (c) Power output of DG 3. (d) Power output of DG 4. (e) Power output of ESS 1. (f) Power output of ESS 2.
Sustainability 14 03751 g015
Table 1. Parameters of simulation.
Table 1. Parameters of simulation.
DERs a i / ( $ / M W 2 h ) b i / ( $ / M W h ) c i / ( $ / h ) P i m i n / M W P i m a x / M W
DG10.00375200200
DG20.01751.7500200
DG30.06251.00080
DG40.008343.2500200
ESS10.0253.00−100100
ESS20.0253.00−100100
Table 2. Centralized ADMM algorithm calculation results.
Table 2. Centralized ADMM algorithm calculation results.
DG1DG2DG3DG4ESS1ESS2
P/MW185.1146.8719.1210.0310.0312.03
f(P)/MW767.602
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhou, D.; Niu, X.; Xie, Y.; Li, P.; Fang, J.; Guo, F. An Economic Dispatch Method of Microgrid Based on Fully Distributed ADMM Considering Demand Response. Sustainability 2022, 14, 3751. https://doi.org/10.3390/su14073751

AMA Style

Zhou D, Niu X, Xie Y, Li P, Fang J, Guo F. An Economic Dispatch Method of Microgrid Based on Fully Distributed ADMM Considering Demand Response. Sustainability. 2022; 14(7):3751. https://doi.org/10.3390/su14073751

Chicago/Turabian Style

Zhou, Dan, Xiaodie Niu, Yuzhe Xie, Peng Li, Jiandi Fang, and Fanghong Guo. 2022. "An Economic Dispatch Method of Microgrid Based on Fully Distributed ADMM Considering Demand Response" Sustainability 14, no. 7: 3751. https://doi.org/10.3390/su14073751

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