Next Article in Journal
Food Security of Urban Agricultural Households in the Area of North Bandung, West Java, Indonesia
Previous Article in Journal
The Climate of Innovation: AI’s Growing Influence in Weather Prediction Patents and Its Future Prospects
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Robust Optimal Scheduling of Microgrid with Electric Vehicles Based on Stackelberg Game

1
School of Electrical and Electronic Engineering, North China Electric Power University, Beijing 102206, China
2
Key Laboratory of Smart Grid of Ministry of Education, Tianjin University, Tianjin 300072, China
*
Author to whom correspondence should be addressed.
Sustainability 2023, 15(24), 16682; https://doi.org/10.3390/su152416682
Submission received: 30 October 2023 / Revised: 25 November 2023 / Accepted: 7 December 2023 / Published: 8 December 2023
(This article belongs to the Special Issue The Contributions of Smart Grids to a Greener Future)

Abstract

:
With increasing penetration of distributed generators (DG), the uncertainty and intermittence of renewable energy has brought new challenges to the economic dispatch and promotion of environment sustainability of microgrids. Active loads, especially in electric vehicles (EVs), are thought to be an efficient way to deal with the uncertainty and intermittence of renewable energy. One of the most important features of EVs is that their demand will vary in response to the electricity price. How to determine the real-time charging price to guide the orderly charging of EVs and operate with an uncertain renewable energy output represents an important topic for the microgrid operator (MGO). To this end, this paper formulates the optimal pricing and robust dispatch problem of the MGO as a Stackelberg game, in which the upper level minimizes the MGO’s cost, while the lower level minimizes the charging cost of each EV. In the problem, the approximate linear relationship between the node voltage and equivalent load is modeled, and the approximate linear expression of the node voltage security constraint is derived. Using dual optimization theory, the robust optimal dispatch model is transformed into a linear programming model without uncertain variables. Then, the Stackelberg game model is transformed into a mixed integer linear program by using the duality theorem of linear programming. Finally, the effectiveness of the proposed method is proved by simulation within the modified IEEE33-bus system.

1. Introduction

In recent years, the escalating global climate crisis has highlighted the urgency of energy transformation [1]. Promoting the transformation of the energy structure, establishing a clean, low-carbon, efficient and safe energy production and consumption system with renewable energy as the main body is of great significance to reduce carbon emissions for sustainable development [2,3]. However, with the development of clean energy, the uncertainty and intermittence of its output have brought new challenges to the economical dispatch and promotion of environment sustainability of microgrids (MGs).
Using a flexible load on the demand side will be an effective means to reduce the risk. With the rapid development of power demand, transportation and construction have become the focuses on the demand side [4]. As the main source of flexible load, the collaborative development of electric vehicles (EVs) and distributed renewable energy is one of the important ways to realize the sustainable development of urban energy [5]. According to research, as of 2021, the number of EVs worldwide reached 16.5 million and is growing rapidly [6]. However, uncoordinated charging behavior of large-scale EVs will make the peak–valley difference much bigger and affect the economy and stability of power systems [7]. If the charging behavior of EVs can be effectively guided by some measures, the microgrid will be more promising in improving the energy utilization rate of the power market and optimizing the operation of the power system [8]. By the means of vehicle-to-grid (V2G), EVs can improve the economy and sustainability of the whole system [9] and provide it with auxiliary services like frequency regulation and voltage regulation [10,11].
Extensive studies on the EV charging strategy have been proposed. An EV charging dispatching scheme considering the safe operation of the grid is proposed in [12]. A novel load frequency control strategy is proposed for EVs based on the different travel benefits and state of charge (SoC) in [13]. Reference [14] presents hierarchical control of EVs in multi-microgrids, considering five different control modes of operation. A microgrid deep Q-learning optimization strategy is presented based on the user charging behavior history data in [15], which aims to adopt the periodicity of user behavior. Reference [16] proposes the orderly scheduling model of EV charging with optimal grid loss. However, these studies are carried out under a fixed electricity price and direct control, which is passive regulation of EV users. Without considering the guidance of electricity price and the EV users’ subjective initiatives, it may not be possible to fully mobilize the enthusiasm of EV users in the open market environment. Also, the existing scheduling plan of EVs is limited to the regulation of the charge/discharge period but ignores the regulation of charge/discharge power, which results in the peak–valley difference not being effectively improved.
Therefore, the traditional models that aim to maximize the benefits of the microgrid operator (MGO) and EVs will lead to conflicts of interest. In order to guide orderly EV charging, it is necessary to build a cooperative game relationship between various subjects. Considering the sequence of the game between price providers and responders, wherein energy price providers can be modeled as leaders and energy price responders can be modeled as followers, the Stackelberg game model is more suitable for analyzing the complex interaction behavior of multi-agents. At present, there have been many studies on the game models in microgrid optimal scheduling. The two-layer optimization model of EV aggregators participating in the two-stage power market is also established as a Stackelberg game model in [17]. The game model between the cooperative center and MGOs considering energy and carbon sharing is established, and the effective reduction in energy consumption cost is verified by simulation in [18]. The feasibility of the Stackelberg game model in optimal MG scheduling has been fully proved.
Meanwhile, the risk brought by the uncertainty of a high proportion of renewable energy output is an important factor in the optimal scheduling. To deal with the uncertainty of renewable DG, stochastic programming [19,20,21] and robust optimization [22,23] are the regular methods. The stochastic programming based on the ellipsoid set is used to deal with the uncertainty in [24]. A two-stage robust optimal model considering the variable cost of the uncertainty of wind turbines (WTs) is proposed in [25]. However, the optimization results under stochastic programming heavily depend on the choice of scenario, and the feasible solution under robust optimization methods is usually too conservative. In addition, the voltage security of each node should be ensured as the uncertain prediction error changes, but the influence of randomness of renewable energy output on voltage security is rarely considered at present.
Therefore, this paper studies optimization considering the interests of both the MGO and EV users. Compared to the direct control of the charge/discharge periods, the main highlights of the proposed strategy are as follows:
  • The competitive relationship between the MGO and EV users is described by the Stackelberg game, in which the interests of all participants can be maximized at the game equilibrium point. The optimal charging price considering both the optimal of charge/discharge periods and power can be solved to guide the orderly charging of EVs.
  • Considering the uncertainty of the renewable energy output, the approximately linearized power flow model is presented to derive the voltage security constraints with the uncertain parameters, which can be converted to the deterministic optimization problem using the method of strong dual theory.
  • The Bertsimas robust optimization framework with a robust control coefficient is proposed to solve the problem, and the use of dual optimization theory is introduced to transform the robust optimal scheduling model into a linear programming model without uncertain variables by using dual optimization theory, in which the MGO can balance the robustness and economy of optimal scheduling according to its own needs.

2. The Stackelberg Game Model between the MGO and EV Users

The MGO, as an intermediary between DG and EV users, sets the EV charging price and supplies electricity to its customers while collecting the market price and information like the charging power from EVs. Assuming that EVs are connected to the network through smart terminals, which can automatically calculate and execute the optimal charging strategy according to the price information provided by the MGO, and feedback to the MGO, the MGO revises the EV charging price based on the according to the feedback charging strategy. The optimal results can be obtained until the iteration converges. Particularly, EVs are free from being directly controlled by the MGO. The time-of-use pricing mechanism is adopted to guide EVs to actively optimize charging strategies, rather than a contract agreement. In the Stackelberg game model of this paper, the MGO is the decision-making subject of the upper level (leader), while the EV users are the decision-making subjects of the lower level (follower). The structure of the Stackelberg game is shown in Figure 1, which is divided into several stages, which are as follows:
  • EV users report their allowed charging period and the power demand before the day;
  • After receiving the declaration information from EV users, the MGO formulates its electricity procurement schedule and DG generation schedule as well as the time-varying charging price, which is broadcasted to all EV users;
  • EV users calculate their optimal charging strategies under the charging price, and feedback them to the MGO;
  • The MGO adjusts its dispatching schedule and charging price and broadcasts it to all EV users again;
  • The MGO and EV users repeat step 3 and step 4 until reaching the Stackelberg Equilibrium.
Under the above framework, the key problem for the MGO is to make its dispatching schedule and set the EV charging price for each period. Different from the traditional optimization, the utility of the MGO depends on the charging strategy of EVs, while EV charging behavior depends on the charging price set by the MGO rather than being controlled directly. To ensure the interests of EV users and prevent the MGO from overcharging, the average charging price during a day should be fixed. And the smart terminals will automatically charge EVs at the time when the charging price is lower. It is clear that the interrelation between the MGO and EV users is in accordance with the Stackelberg game model.

2.1. The Optimal Scheduling Model of MGO

As the leader of the Stackelberg game model, the optimal scheduling is to reduce the power supply cost as well as increase the electricity sales revenue and meet the power demand. The MGO needs to decide its power purchase plan as well as the DG generation schedule and time-varying charging price. The comprehensive cost of the MGO can be calculated using Equation (1):
min F MGO = t i C D G , i ( P i , t D G ) t i c t P i , t E V + t π t E t + π t + E t +
where C D G , i is the cost function of DG and P i , t D G is its active output. DG’s cost function can be seen as a quadratic function of its active output. c t is the charging price at time slot t. P i , t E V is the charging power the ith EV. π t and π t + are the selling price and the purchasing price of the market. E t is the electricity the MGO sells to the market, and E t + is the electricity the MGO buys from the market.
The MGO also needs to meet the corresponding constraints during its scheduling process:
  • The output constraint of controllable DG includes its output constraint and ramping constraint:
P i , min D G P i , t D G P i , max D G Q i , min D G Q i , t D G Q i , max D G P i , t D G P i , t 1 D G r i , max u p P i , t 1 D G P i , t D G r i , max d o w n
where P i , max D G and P i , min D G are the maximum and minimum of DG’s active output. Q i , min D G and Q i , max D G are the maximum and minimum of DG’s reactive output. r i , max u p and r i , max d o w n are the maximum upstream and downstream ramp rate of DG.
2.
The output constraint of renewable DG: the deviation between the actual output and the predicted output of intermittent renewable DG (wind power, photovoltaic) is uncertain. The cubic set is adopted to define the uncertainty.
P t r = P 0 , t r + ξ t r ξ t max ξ t r ξ t max
where P t r and P 0 , t r are the actual output and the predicted output of renewable DG. ξ t r is the prediction error and ξ t max is the maximum prediction error.
3.
Power flow constraint: the one-line diagram of a radial power network in Figure 2 is adopted to describe the distribution network. Therefore, the power flows can be described through DistFlow branch equations. The linearized Distflow model is adopted in this paper to make the model tractable and ensure the results acceptable.
P n + 1 , t b = P n , t b P n , t Q n + 1 , t b = Q n , t b Q n , t V n + 1 , t = V n , t r n + 1 P n + 1 , t b + x n + 1 Q n + 1 , t b / V 0 , t
where P n , t b and Q n , t b mean the active power flow and the reactive power flow from node n to n + 1, respectively, and P n , t and Q n , t mean the local active and reactive power at node n. V n , t is the voltage magnitude at node n. r n + 1 is the line resistance between nodes n and n + 1. x n + 1 is the line reactance between nodes n and n + 1.
Under the robust optimal scheduling of the MGO, the voltage security of each node can be ensured as the uncertain prediction error changes:
max ξ V n , t ( P , Q , ξ ) ( 1 + ε ) V 0 , t min ξ V n , t ( P , Q , ξ ) ( 1 ε ) V 0 , t
ε is maximum allowed voltage deviation.
Here, we define S n , t = P n , t + j · Q n , t as the equivalent load of node n, which can be calculated as
P n . t = P n . t l P 0 . t r ξ t r P n . t D G + i P i . t E V Q n . t = Q n . t l Q n . t D G
where P n . t l and Q n . t l are the active and reactive power of the load at node n. P n . t D G and Q n . t D G are active and reactive power generation of DGs at node n.
4.
Charging price constraint: due to the limited price tolerance of EV users and the consideration of the demand for stable EV charging price, the EV charging price should not be lower than the minimum value c t min or higher than the maximum value c t max , and its average value c av shall be fixed to prevent the MGO from overcharging [26].
c t min c t c t max , t t = 1 T c t / T = c av
As a result, the objective in the optimal scheduling model of MGO is to minimize (1), and the constraints are (2)–(7).

2.2. Orderly Charging Strategy of EV Users

In the Stackelberg game model, EV users aim to minimize their charging cost as followers in the lower level according to the charging price broadcasted by the MGO. The orderly charging model of the ith EV can be described as
min F E V , i = t c t P i , t E V
Equation (8) means that EV users’ target is to minimize their charging cost by adjusting the EV charging power.
Serval constraints also need to be satisfied during the EV charging process.
  • Total electricity consumption constraint: EVs have to be fully charged before the end of their allowed charging period.
t T a P i , t E V = ( E i m E i 0 ) / η E V
E i m is the EV battery capacity, E i 0 is its initial energy state, and η E V is the charging efficiency.
2.
Charging power and charging period constraint: the EV charging power cannot exceed its maximum value. And EV is only allowed to be charged for a certain time period.
0 P i , t E V P i , t max P i , t max = 0 , t T a P i , t max = P i E V , max , t T a
P i , t max is the maximum charging power in period t, T a is the set of allowed charging period, and P i E V , max is the maximum charging power of EV.
As a result, the objective of the optimal EV model is (8), while (9) and (10) are the constraints.

3. Solution Process

3.1. Robust Counterpart for Voltage Security Constraints

If n means the end node of the distribution network, P n + 1 , t b = 0 and Q n + 1 , t b = 0 can be known according to Figure 2. So, the first two equations in (4) can be further transformed into (11).
P k . t b = k n P k . t Q k . t b = k n Q k . t
Equation (11) means the linear relationship between the transmitted power and the node equivalent load. The last equation in (4) can be further described into (12).
V n + 1 = V n r n + 1 P b , n + 1 + x n + 1 Q b , n + 1 / V 0 = V n 1 ( r n P b , n + x n Q b , n + r n + 1 P b , n + 1 + x n + 1 Q b , n + 1 ) V 0 = V 0 ( r 1 P b , 1 + x 1 Q b , 1 + + r n + 1 P b , n + 1 + x n + 1 Q b , n + 1 ) V 0
After plugging Formulas (6) and (11) into Formula (12), the relationship between the node voltage amplitude and the power of each device can be obtained and expressed by matrix.
V t = V 0 R B P t X B Q t = V 0 R B ( P t l P 0 , t r ξ t r + P t E V P t D G ) X B ( Q t l Q t l ) = V 0 + R B ξ t r + [ R B     X B ] P t D G P t E V Q D G + [ R B     X B ] P 0 , t r P t l Q t l = A x t + A ~ ξ t r + A P t l + P 0 , t r Q t l
A = [ R B     X B ] A ~ = R B x t = P t E V + P t D G Q D G
V = [ V 0 , V 1 V n ] is a n-vector consisting of each node’s voltage amplitude. V 0 is the n-vector in which the elements are equal to V 0 , and n is the number of nodes. R and X are the coefficient matrix of (12). B is the transition matrix between the line transmitted power and load, and n b is the number of branch lines.
Plugging (13) into (5) and separate the control variables and the uncertain random variables, the voltage security constraints can be transformed into robust counterpart:
A x t + max z ξ t max A ~ z b ¯ A x t + min z ξ t max A ~ z b _ z ( i , : ) Γ r ( i , : )
ξ t max is the n-order diagonal matrix, which represents the maximum power fluctuation of DG in each node. Γ r is the n-order robust control coefficient vector. Using the method of strong dual theory and Karush–Kuhn–Tucker (KKT) conditions, the uncertain variables in the robust counterpart can be eliminated:
A x t + u 1 , t T Γ r + v 1 , t T Γ r b ¯ u 1 , t v 1 , t = A ~ T ξ t max u 1 , t > 0 , v 1 , t > 0 A x t + u 2 , t T Γ r + v 2 , t T Γ r b _ u 2 , t v 2 , t = A ~ T ξ t max u 2 , t > 0 , v 2 , t > 0
u 1 , t , v 1 , t , u 2 , t , and v 2 , t represent the dual variable matrix.

3.2. Solution of Two-Level Stackelberg Game

3.2.1. The Existence of Stackelberg Equilibrium

When all followers respond optimally according to the leader’s strategies, and the leader accepts the response, the results can be considered as the Stackelberg Equilibrium. x * = ( x D N O * , x E V * ) is the strategy at the Stackelberg Equilibrium point and satisfies the following conditions:
F D N O ( x D N O * , x E V * ) F D N O ( x D N O , x E V * )     x D N O F E V ( x D N O * , x E V * ) F E V ( x D N O * , x E V )     x E V
According to [17], the Stackelberg game can reach Stackelberg Equilibrium only if the following conditions are satisfied. In the proposed Stackelberg game, (1) the strategy space of both the leader and the follower is a non-empty compact convex set, and the objective functions are continuous in the field of definition. (2) Given a leader’s strategy, there is a unique optimal solution for the followers’ objective function. (3) Given followers’ strategies, there is a unique optimal solution for the upper leader’s objective.
  • The strategy sets of the MGO and EV users are non-empty, closed, and bounded convex in Euclidean space, and the objective functions are continuous with respect to control variables. Therefore, the condition (1) can be satisfied.
  • There is a one-to-many relationship in the upper game level; one leader can have many followers associated with it. For EV users, the objective function changes linearly with the EV charging power, which means the EV charging cost is a continuous quasi-convex function of charging power. As a result, for a given charging price broadcasted by the MGO, EV users have unique optimal charging strategies, which satisfies condition (2).
  • The objective function of the MGO consists of three parts: DG generation cost, electricity purchasing cost and electricity sales revenue to EVs. DG generation cost is a convex function of DG’s active output, and electricity purchasing cost and electricity sales revenue are linear functions of the MGO’s control variables, which means the objective function of the MGO is a convex function in its strategies set. As a result, if the EV charging power is given, the MGO has a unique optimal scheduling plan and charging price. Therefore, there is a unique equilibrium point between the MGO and EV users, which satisfies condition (3).

3.2.2. Solving Process of Stackelberg Game

The optimization problem based on Stackelberg game architecture is a bilevel optimization problem, which is often solved using an iterative method [17]. The MGO sets the charging price and broadcasts it to all EV users, and each EV user makes a charging plan according to the broadcasted charging price, and then the MGO collects the charging power feedbacked by EV users to adjust its strategy until Stackelberg Equilibrium is reached. However, with increasingly more EV connected to the power grid, the required optimization times and the amount of calculation will increase with the increasing charging access of EV, resulting in a large amount of calculation burden.
To save iterations, the KKT condition and strong dual theory are applied to transform the lower-level optimization problem of EV users into linear constraints of the MGO. The original two-level optimization problem can be transformed into a single-level optimization problem, and the object function of the MGO can be expressed as
min F D N O = t i C D G , i ( P i , t D G ) + t π t E t + π t + E t + min P i , t E V t i c t P i , t E V
However, there is nonlinear term c t P i , t E V with minimize function in (18), making the optimal problem unable to be solved directly. The dual problem of EV users can be expressed as
max u 3 , i , v i , t , v i , t + ( E i m E i 0 ) η E V · u 3 , i + t P i , t max · v i , t +
s.t.
u 3 , i + v i , t + v i , t + c t = 0
v i , t 0 , v i , t + 0
where u 3 , i is the dual variables of equality constraint (9). v i , t + and v i , t are the dual variables of (10), which represent the upper and lower limit of EV charging power, respectively. According to dual theory, the objective function of the MGO is equivalent to (22).
min F D N O = t i C D G , i ( P i , t D G ) + t π t E t + π t + E t + i { ( E i m E i 0 ) η E V · u 3 , i t P i , t max · v i , t + ) }
Since there are still constraints relevant to EV charging power P i , t E V , the theorem of mutually complementary elasticity is applied to gain the relationship between original variables and corresponding dual variables. v i , t + can be thought of as the shadow price of the charging power upper limit constraint. v i , t + > 0 means that the EV user can gain more benefit if the maximum charging power is increased, and the charging power is maximal at time slot t. Similarly, the charging power is equal to 0 when v i , t < 0 . Assuming that EV needs to be charged within N 1 hours, the EV charging power will reach its maximum in the chosen N 1 1 hour when the charging price is relatively low and be equal to 0 in the T N 1 + 1 hours when the charging price is relatively high, and it will fill the insufficient electricity demand in the remaining one hour. As a result, the relationship between v i , t + and v i , t is expressed as:
0 P i , t E V M · ( 1 δ i , t ) M · δ i , t v i , t 0 P i , t max · δ i , t + P i , t E V P i , t max 0 v i , t + M · δ i , t +
δ i , t + and δ i , t are binary auxiliary variables, and M is a sufficiently large constant. We can calculate EV charging power at each period by combining (9) and (23).
Overall, the Stackelberg game between the MGO and EV users can be transformed into the optimal problem: minimize (22) while satisfying the constraints (2), (3), (7), (9), (16), (20), (21) and (23).

4. Case Study

To validate the effectiveness of the proposed model, the test systems of the 33-node distribution network shown in Figure 3 is studied, whose reference voltage is 12.66 kV. The capacities of the PV and WT installed on nodes 6 and 32 are both 500 kW, as shown in Figure 4. The forecasted load and output of WT/PV both have a maximal predicting error of 20%. Three different controlled DGs are installed on nodes 17, 20 and 24; the technical parameters of different DGs can be found in Table 1. The cost of DG can be calculated using Equation (24). And the power purchasing price of each period is shown in Table 2. The average value of EV charging is set to be the average value of time-of-use (TOU) price, and the highest charging price is 1.2 times that of the TOU price, while the lowest charging piece is 0.8 times that of the TOU price.
C D G , i = t a D G , i · ( P i . t D G ) 2 + b D G , i · P i . t D G + c D G , i
A total of 300 EVs are connected to node 5. The battery capacity of the EV is 30 kWh, the maximum charging power is 5 kW, and the initial energy of EVs obeys a uniform distribution of 3~15 kwh. According to the driving characteristics, the EVs can be divided into three types [27]:
  • Day–night hybrid type: allowed to be charged from 15:00 to 03:00 of the next day.
  • Dayshift type: allowed to be charged in the time periods 0:00–08:00, 12:00–4:00 and 18:00–24:00.
  • Nightshift type: allowed to be charged from 08:00 to 23:00.
The numbers of these three types of EV are [50, 200, 50].
Table 1. Controllable DG parameters [28].
Table 1. Controllable DG parameters [28].
NoTechnical ParametersCost Coefficient
P i , max D G
/kW
P i , min D G
/kW
r i . max
/(kW/h)
a D G , i
/(CNY/kW2)
b D G , i
/(CNY/kW)
c D G , i
/CNY
1500251000.00050.80
240001000.000450.830
31000502000.000750.750
Table 2. Time-of-use price.
Table 2. Time-of-use price.
Types of PeriodsPeriod DivisionPrice/(CNY/kWh)
Valley01:00–08:000.369
Peak18:00–23:001.322
Flat08:00–18:00, 23:00–24:000.832

4.1. Robustness Analysis

To analyze the impact of uncertain variables on the results, the ‘violation rate’ is defined to measure the impact of uncertain variables. In this paper, assuming that the prediction error of renewable DG output obeys the normal distribution, the violation rate can be calculated using Equation (25).
rate v i o = N v i o N t o t a l × 100 %
N t o t a l represents the total number of scenes generated by random Monte Carlo sampling, which is set to 1000. N v i o represents the number of scenarios in which constraint violation occurs under the influence of uncertain parameters.
When the robust coefficient varies between its maximum and minimum values, we can obtain the results under different robustness levels as shown in Table 3. The larger the coefficient, the greater the volatility of the renewable energy output and the stronger the willingness of the MGO to avoid risks, which results in an increase in the controllable distributed power output to mitigate the influence of power flow caused by the fluctuation of the renewable energy output, as well as an increase in the operating cost. The MGO can achieve a balance between robustness and economy by adjusting the level of robustness.
When Γ r < 0.6 , as the level of robustness increases, the violation rate continues to fall rapidly but the cost keeps rising. This result shows that the MGO can make the distribution system safer by spending more money. However, the violation rate declines much more slowly as the robustness level increases when Γ r > 0.6 . That means that when the current level of robustness is relatively high, the MGO must spend more to achieve a higher level of robustness. Considering that short-term voltage violation is allowed in the actual operation of microgrid, 0.6 is selected to reconcile the robustness and economy in the subsequent analysis. Particularly, in the actual application, the MGO can set to be a reasonable value according to the actual requirements.
Figure 5 compares the total output of the controllable DG and power purchase strategy of the MGO under deterministic optimization and robust optimization. Under the robust optimization, the DG will generate more power; even in the lower price period, DG’s output is not equal to 0. The transmission power through distribution network lines can be decreased when DG generates more power, which can avoid the lower voltage caused by the fluctuation of renewable energy output.

4.2. Performance of the Proposed Approach

The EV charging price is shown in Figure 6. Since most EV users are more inclined to charge their EVs in the valley period with the lowest price, the MGO sets the charging price in the valley period to CNY 0.4428/kWh, which is the upper boundary of the charging price. As the average value of the charging price is fixed, the MGO has to set the charging price to its minimum value at the peak time while increasing the charging price of the other time to obtain more revenue from charging EVs.
The following three cases are set to demonstrate the effectiveness of the Stackelberg game model. Table 4 compares the results of three cases.
Case 1: All EVs are charged in a disorderly fashion [16].
Case 2: All EVs are charged in an orderly fashion in the guidance of charging price decided by the particle swarm optimization (PSO) algorithm in [12].
Case 3: All EVs are charged in an orderly fashion with the guidance of charging price decided by the Stackelberg game proposed in this paper.
According to Table 4, in case 1, where EVs are charged in a disorderly fashion, more EVs are charged at the peak time, which results in higher costs for both the MGO and EV users. And the operation of MG will face more pressure due to the higher load peak and bigger peak–valley difference. However, if EVs are guided to be charged in an orderly fashion by the charging price, more EVs will likely be charged at the valley time when the charging price is lower, so their users can spend less money. And the load profile will be flatter due to the EV loads being transferred from peak time to valley time, which makes the operation of the MGO more flexible and economical.
Compared with the PSO algorithm in case 2, the cost of the MGO in this model is reduced by CNY 105.1 and the peak valley rate is reduced by 2.87% while the EV cost is only slightly increased in the proposed model, which fully reflects the game process between the MGO and EVs and can achieve better results.
At the same time, due to the original model being transformed into a linear programming problem, the solving time is less than the iterative process of PSO. Figure 7 shows the changing trend of the solving time as the number of EVs increases. With an increase in the number of EVs, the PSO algorithm needs a longer time to find the optimal solution, while the solution time in this paper increases slowly, showing better applicability.
To analyze the impact of the different ratios of EVs, Figure 8 shows the costs of the MGO under different EV ratios. When the types of EVs are concentrated ([300, 0, 0] and [0, 0, 300]), the cost of the MGO is lowest. As the distribution of the three types tends to be balanced, the cost of the MGO gradually increases. This is because when a single type dominates, the charging price set by the MGO will be fully in line with the charging period of this type of EVs, so as to obtain the maximum profit. In addition, when the proportion of nightshift type is larger, the cost of the MGO will also be reduced. This is because nightshift EVs are charged during the day, and the price during the day time is higher than that at night, so the price can be set higher during the day to obtain more profit. In addition, the original fixed TOU charging price will lead to higher operating costs overall.

5. Conclusions

In this paper, the optimal scheduling of the MGO with EVs is modeled. First, the scheduling problem is presented as a mathematical programming problem aiming at the minimum power supply cost of the MGO. Uncertainty parameters such as renewable energy output are studied and modeled as uncertainty sets. Robust optimization is then applied to deal with uncertainty. The proposed robust optimization method makes an MGO tradeoff between economy and robustness by selecting schedules with different levels of robustness. Then, the Stackelberg game between the MGO and EV users is considered, in which EV users are guided to charge in an orderly fashion according to the charging price set by the MGO. And the Stackelberg game problem is transferred into mixed integer linear programming using the method of strong dual theory. The result indicates that by setting the charging price, the MGO can reduce its cost and smooth its load profile by guiding the orderly charging of EVs, whereby EV users can also save on their charging cost. In the future, more efforts could be made to further optimize the EV charging strategy. Firstly, the regional energy supply and demand ratio can be considered to guide users to participate in renewable energy consumption. Secondly, with the rapid development of EVs, the computational burden is also an urgent problem to be solved in the future.

Author Contributions

Conceptualization, J.H. and Y.S.; methodology, T.H.; software, T.H. and Q.X.; validation, T.H. and Q.X.; formal analysis, T.H. and Q.X.; investigation, T.H. and Q.X.; resources, J.H. and Y.S.; data curation, T.H. and Q.X.; writing—original draft preparation, T.H. and Q.X.; writing—review and editing, J.H. and Y.S.; visualization, T.H. and Q.X.; supervision, J.H. and Y.S.; project administration, J.H. and Y.S.; funding acquisition, J.H. and Y.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Science and Technology Project of the State Grid Corporation of China, grant number 5204XA22000D.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yang, L.X.; Sun, Q.Y.; Zhang, N.; Li, Y.S. Indirect multi-energy transactions of energy internet with deep reinforcement learning approach. IEEE Trans. Power Syst. 2022, 37, 4067–4077. [Google Scholar] [CrossRef]
  2. Sun, Q.Y.; Zhang, N.; Shi, Y.; Wang, J. The dual control with consideration of security operation and economic efficiency for energy hub. IEEE Trans. Smart Grid 2019, 10, 5930–5941. [Google Scholar] [CrossRef]
  3. Jia, L.; Cheng, P.; He, L.; Yu, Y.; Nie, H.; Wang, C.; Chen, S. Investigation on the mercury nucleation mechanism based on the release characteristics of inhalable particles during coupled combustion of sewage sludge-coal washery tailing. Energy Rep. 2023, 9, 175–192. [Google Scholar] [CrossRef]
  4. Li, J.; Cheng, P.; Yu, Y.; Chen, S.-H.; Wang, C.-X.; He, L.; Nie, H.-T.; Wang, J.-C.; Zhang, J.-C.; Fan, B.-G.; et al. Regeneration mechanism of a novel high-performance biochar mercury adsorbent directionally modified by multimetal multilayer loading. J. Environ. Manag. 2023, 326, 116790. [Google Scholar]
  5. Wu, J.; Zhang, Q.; Lu, Y.; Qin, T.; Bai, J. Source-Load Coordinated Low-Carbon Economic Dispatch of Microgrid including Electric Vehicles. Sustainability 2023, 15, 15287. [Google Scholar] [CrossRef]
  6. Lin, Z.; Wang, P.; Ren, S.; Zhao, D. Economic and environmental impacts of EVs promotion under the 2060 carbon neutrality target—A CGE based study in Shaanxi Province of China. Appl. Energy 2023, 332, 120501. [Google Scholar] [CrossRef]
  7. Shang, B.; Dai, N.; Cai, L.; Yang, C.; Li, J.; Xu, Q. V2G Scheduling of Electric Vehicles Considering Wind Power Consumption. World Electr. Veh. J. 2023, 14, 236. [Google Scholar] [CrossRef]
  8. Juhi, D.; Debapriya, D. Energy management of multi-microgrids with renewables and electric vehicles considering price-elasticity based demand response: A bi-level hybrid optimization approach. Sustain. Cities Soc. 2023, 99, 104908. [Google Scholar]
  9. Kumar, J.B.; Singh, A.; Kumar, A.; Dheer, D.K.; Singh, D.; Misra, R.K. Day ahead scheduling of PHEVs and D-BESSs in the presence of DGs in the distribution system. IET Electr. Syst. Transp. 2020, 10, 170–184. [Google Scholar] [CrossRef]
  10. Tkac, M.; Kajanova, M.; Bracinik, P. A Review of Advanced Control Strategies of Microgrids with Charging Stations. Energies 2023, 16, 6692. [Google Scholar] [CrossRef]
  11. Zhong, W.; Xie, K.; Liu, Y.; Yang, C.; Xie, S. Topology-Aware Vehicle-to-Grid Energy Trading for Active Distribution Systems. IEEE Trans. Smart Grid 2019, 10, 2137–2147. [Google Scholar] [CrossRef]
  12. Tian, J.; Lv, Y.; Zhao, Q.; Gong, Y.; Li, C.; Ding, H.; Yu, Y. A charging plan generation method for EV clusters considering the operation of regional distribution network. Energy Rep. 2022, 8, 135–143. [Google Scholar] [CrossRef]
  13. Cai, S.N.; Ryuji, M. Optimal dispatching control of EV aggregators for load frequency control with high efficiency of EV utilization. Appl. Energy 2022, 319, 119233. [Google Scholar] [CrossRef]
  14. Aslam, M.A.; Kashif SA, R.; Gulzar, M.M.; Alqahtani, M.; Khalid, M. A Novel Multi Level Dynamic Decomposition Based Coordinated Control of Electric Vehicles in Multi-Microgrids. Sustainability 2023, 15, 12648. [Google Scholar] [CrossRef]
  15. Wen, Y.; Fan, P.; Hu, J.; Ke, S.; Wu, F.; Zhu, X. An Optimal Scheduling Strategy of a Microgrid with V2G Based on Deep Q-Learning. Sustainability 2022, 14, 10351. [Google Scholar] [CrossRef]
  16. Yin, W.J.; Ji, J.B.; Wen, T.; Zhang, C. Study on orderly charging strategy of EV with load forecasting. Energy 2023, 178, 127818. [Google Scholar] [CrossRef]
  17. Xu, X.; Zhan, Z.; Mi, Z.; Ji, L. An Optimized Decision Model for Electric Vehicle Aggregator Participation in the Electricity Market Based on the Stackelberg Game. Sustainability 2023, 15, 15127. [Google Scholar] [CrossRef]
  18. Chen, P.; Qian, C.; Lan, L.; Guo, M.; Wu, Q.; Ren, H.; Zhang, Y. Shared Trading Strategy of Multiple Microgrids Considering Joint Carbon and Green Certificate Mechanism. Sustainability 2023, 15, 10287. [Google Scholar] [CrossRef]
  19. Liu, X.; Wu, Y.; Wu, H. PV-EV Integrated Home Energy Management Considering Residential Occupant Behaviors. Sustainability 2021, 13, 13826. [Google Scholar] [CrossRef]
  20. Salman, H.; Amir, A.; Jia, Y.W. A stochastic model for microgrids planning considering smart prosumers, electric vehicles and energy storages. J. Energy Storage 2023, 70, 107962. [Google Scholar]
  21. Xiong, Z.; Shen, X.; Wu, Q.; Guo, Q.; Sun, H. Stochastic planning for low-carbon building integrated energy system considering electric-heat-V2G coupling. Int. J. Electr. Power 2023, 151, 109148. [Google Scholar] [CrossRef]
  22. Tan, B.; Lin, Z.; Zheng, X.; Xiao, F.; Wu, Q.; Yan, J. Distributionally robust energy management for multi-microgrids with grid-interactive EVs considering the multi-period coupling effect of user behaviors. Appl. Energy 2023, 350, 121770. [Google Scholar] [CrossRef]
  23. Arsalan, N.; Mahdi, P.K.; Michal, J. A hybrid decentralized stochastic-robust model for optimal coordination of electric vehicle aggregator and energy hub entities. Appl. Energy 2021, 304, 117708. [Google Scholar]
  24. Yang, Z.; Yang, F.; Liao, X.; Wei, H.; Min, H.; Lei, Y.; Su, L.; Shen, Y. Two stage affinely adjustable robust optimal scheduling for AC/DC hybrid distribution network based on source–grid–load–storage coordination. Energy Rep. 2022, 8, 15686–15701. [Google Scholar] [CrossRef]
  25. Shams, M.H.; Shahabi, M.; MansourLakouraj, M.; Shafie-khah, M.; Catalão, J.P. Adjustable robust optimization approach for two-stage operation of energy hub-based microgrids. Energy 2021, 222, 119894. [Google Scholar] [CrossRef]
  26. Ma, S.C.; Yi, B.W.; Fan, Y. Research on the valley-filling pricing for EV charging considering renewable power generation. Energy Econ. 2022, 106, 105781. [Google Scholar] [CrossRef]
  27. Hasan, K.N.; Muttaqi, K.M.; Borboa, P.; Scira, J.; Zhang, Z.; Leishman, M. Distribution network voltage analysis with data-driven electric vehicle load profiles. Sustain. Energy Grids 2023, 36, 101216. [Google Scholar] [CrossRef]
  28. Zeng, L.J.; Xu, J.Z.; Wu, M.; Tang, J.; Wu, Q.; Wang, Q.; Fan, G. Day-ahead interval optimization for CCHP system considering uncertainty of wind power and PV. Int. J. Electr. Power 2022, 138, 107895. [Google Scholar] [CrossRef]
Figure 1. Architecture for the Stackelberg game.
Figure 1. Architecture for the Stackelberg game.
Sustainability 15 16682 g001
Figure 2. Diagram of a radial power network.
Figure 2. Diagram of a radial power network.
Sustainability 15 16682 g002
Figure 3. Topology of 33-bus system.
Figure 3. Topology of 33-bus system.
Sustainability 15 16682 g003
Figure 4. Forecasted load and output of WT/PV.
Figure 4. Forecasted load and output of WT/PV.
Sustainability 15 16682 g004
Figure 5. Total output of controllable DG and power purchase strategy of MGO.
Figure 5. Total output of controllable DG and power purchase strategy of MGO.
Sustainability 15 16682 g005
Figure 6. EV charging price.
Figure 6. EV charging price.
Sustainability 15 16682 g006
Figure 7. Comparison between Stackelberg game and PSO under different number of EVs.
Figure 7. Comparison between Stackelberg game and PSO under different number of EVs.
Sustainability 15 16682 g007
Figure 8. Comparison of MGO’s cost under different ratios of EVs and different charging prices.
Figure 8. Comparison of MGO’s cost under different ratios of EVs and different charging prices.
Sustainability 15 16682 g008
Table 3. The results of economy and violation rate with different robustness levels.
Table 3. The results of economy and violation rate with different robustness levels.
Γ r Cost of MGO/CNY rate v i o
137,235.80
0.834,755.54.80%
0.632,425.110.54%
0.430,777.729.61%
0.228,969.661.76%
027,483.090.04%
Table 4. Comparison under different charging strategies.
Table 4. Comparison under different charging strategies.
CaseCost of MGO/CNYCost of EVs/CNYPeak Load/kWPeak Valley RatioSolving Time/s
134,345.52345.64783.453.17%6.12
232,530.21917.53989.836.12%62.72
332,425.11923.43926.733.25%7.24
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hao, J.; Huang, T.; Xu, Q.; Sun, Y. Robust Optimal Scheduling of Microgrid with Electric Vehicles Based on Stackelberg Game. Sustainability 2023, 15, 16682. https://doi.org/10.3390/su152416682

AMA Style

Hao J, Huang T, Xu Q, Sun Y. Robust Optimal Scheduling of Microgrid with Electric Vehicles Based on Stackelberg Game. Sustainability. 2023; 15(24):16682. https://doi.org/10.3390/su152416682

Chicago/Turabian Style

Hao, Jianhong, Ting Huang, Qiuming Xu, and Yi Sun. 2023. "Robust Optimal Scheduling of Microgrid with Electric Vehicles Based on Stackelberg Game" Sustainability 15, no. 24: 16682. https://doi.org/10.3390/su152416682

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