Next Article in Journal
The Impact of Social Media Use on Consumers’ Restaurant Consumption Experiences: A Qualitative Study
Next Article in Special Issue
A Two-Stage Optimal Dispatching Model for Micro Energy Grid Considering the Dual Goals of Economy and Environmental Protection under CVaR
Previous Article in Journal
Analysing the Impact of the Glass Ceiling in a Managerial Career: The Case of Spain
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Decision Optimization Model of Microgrid Participating in Spot Market Transaction

Department of Economic Management, North China Electric Power University, Beijing 102206, China
*
Author to whom correspondence should be addressed.
Sustainability 2021, 13(12), 6577; https://doi.org/10.3390/su13126577
Submission received: 12 May 2021 / Revised: 4 June 2021 / Accepted: 7 June 2021 / Published: 9 June 2021
(This article belongs to the Special Issue Towards Sustainable Energy Markets)

Abstract

:
The development of electricity spot trading provides an opportunity for microgrids to participate in the spot market transaction, which is of great significance to the research of microgrids participating in the electricity spot market. Under the background of spot market construction, this paper takes the microgrid including wind power, photovoltaic (PV), gas turbine, battery storage, and demand response as the research object, uses the stochastic optimization method to deal with the uncertainty of wind and PV power, and constructs a decision optimization model with the goal of maximizing the expected revenue of microgrids in the spot market. Through the case study, the optimal bidding electricity of microgrid operators in the spot market is obtained, and the revenue is USD 923.07. Then, this paper further investigates the effects of demand response, meteorological factors, market price coefficients, and cost coefficients on the expected revenue of microgrids. The results demonstrate that the demand response adopted in this paper has better social–economic benefits, which can reduce the peak load while ensuring the reliability of the microgrid, and the optimization model also ensure profits while extreme weather and related economic coefficients change, providing a set of scientific quantitative analysis tools for microgrids to trade electricity in the spot market.

1. Introduction

1.1. Background

With the increasing of greenhouse gas emissions and the worsening of global environmental problems, as well as the commitments made by countries to carbon peaks and carbon neutrality, renewable energy power generation has gradually attracted wide attention from various countries. However, renewable energy such as wind and solar energy is greatly affected by the environment, and the uncertainty and intermittence of its power generation has brought huge challenges to the power system’s safe operation [1]. Renewable energy mainly improves the consumption capacity through the construction of market mechanisms. However, renewable energy is difficult to directly participate in the market transaction due to its small scale and high volatility. As an important carrier of renewable energy, the microgrid has increasingly become an important part of the design of power market mechanisms. By combining renewable and non-renewable distributed energy resources, battery storage, loads, and demand responses, microgrids can facilitate the consumption of renewable energy with unpredictable and highly intermittent characteristics [2]. In 2015, the State Council has issued a guideline named “Several Opinions of the Central Committee of the Communist Party of China and the State Council on Further Deepening the Reform of the Electricity System” (ZF [2015] No. 9), marking the official launch of a new round of power market reform in China. In the new round of power market reform, the government has clearly put forward the requirements of opening the electricity sales side, enriching the types of market entities, and allowing microgrids to participate in the power market transactions as a market entity [3]. With the continuous deepening of power system reform, the spot market has become the core and focus of China’s power market construction. From the perspective of market participants, microgrids are new entrants in the deregulated electricity market, and they face various challenges and opportunities in the spot market [4]. The construction of the spot market provides a strong market mechanism guarantee for the consumption of renewable energy such as wind and PV power in the microgrid. However, under the influence of uncertain factors such as market price, renewable energy power output, and electric load, the economic dispatch of microgrids in the spot market has become a challenge. Therefore, the research on the decision-making optimization model of microgrids’ participation in the spot market has practical needs and important significance.

1.2. Literature Review

At present, the research on microgrids mainly includes two main aspects: system optimization operation and transaction decision-making. Among them, there is relatively more research on optimal operation, mainly focusing on system operation economy, system operation security, and renewable energy uncertainty. A multi-objective optimization model suitable for multiple microgrids has been constructed, and the operating costs and emissions of multiple microgrids were minimized based on a genetic algorithm [5]. Akhtar H et al. have designed a multi-microgrid scheduling method based on robust optimization, considering the uncertainty of renewable energy power output and load [6]. Wang L et al. have considered the uncertainty of renewable energy output. Meanwhile, the integrated dispatch method based on robust multi-objective optimization has been taken to achieve the minimum operating cost of the microgrid under the worst conditions [7]. Li W et al. have taken microgrids with multiple scenarios as their research object and transformed the multi-scenario optimization problem into a dual-objective problem of minimizing the number of scenarios and minimizing the operating cost of the microgrid, and found the optimal scheduling strategy for all users [8]. The multi-energy flow microgrid has been studied with cold, heat, electricity, gas, and others. By constructing a collaborative optimization model of cold, heat, electricity, and gas, the security and economic operation of the microgrid was realized [9,10,11]. A scene-based optimization algorithm has been applied to deal with the uncertainty of solar irradiance and wind speed, converting the uncertain problem into certainty to solve the problem [12]. In order to solve the uncertainty of renewable energy power output and electric vehicle travel patterns, the method of robust optimization has been used to deal with the uncertain parameters, which transformed the optimization problem into a mixed integer linear programming problem to obtain the global optimal solution [13]. Mohammadi-Ivatloo B et al. have taken microgrids including gas boilers, wind turbines, and demand responses as the research object, and used a scenario-based stochastic optimization method to model the uncertainty of wind speed, electricity price, and load [14].
The above literatures are all related to the operation optimization of microgrid, while there is relatively less research on the decision-making model of microgrid participating in spot market transactions. Compared with other market entities, the microgrid has the characteristics of more energy types and a complex system benefit source. Thus, when the microgrid participates in the spot market, it is necessary to consider the uncertainty of new energy resources, and realize the maximum benefit of the microgrid while ensuring system stability. In recent years, some academics have conducted research on this issue. Most of the literature uses stochastic optimization or robust optimization methods to deal with uncertainty. A stochastic optimization method has been used to deal with the uncertainty of wind power, and the decision optimization model has been constructed of microgrids participating in the day-ahead market [15,16,17]. Mehdizadeh A et al. have studied the microgrid including wind power, PV, battery storage, and gas turbines, considered the demand response factors, and used the robust optimization method to model the market price uncertainty to obtain the optimal bidding strategy for the microgrid operators in the day-ahead market [18]. A bidding strategy model has been proposed suitable for microgrids, which used stochastic optimization methods to deal with uncertain factors such as wind power, photovoltaic power, and market prices, and improved the bidding profits of microgrids in the electricity spot market [19]. A stochastic optimization method has been used to deal with the uncertainties of wind speed and market price. In addition, the bidding strategy model has been constructed of an energy hub so as to realize the optimal bidding strategy of energy hubs [20]. A two-stage method has been adopted to determine the schedule for the combined heat and power plant, the power exchanged with the grid in the day-ahead market, and the intraday optimization has been carried out according to the day-ahead optimization results and the observed values of the uncertain parameters [21]. The microgrid group containing multiple microgrids has been taken as the research object and has combined the multi-time scale optimization method with the multiplier alternating method to manage the energy of the day-ahead, intraday, and real-time markets, which eliminates the impact of uncertainty on the economic operation of microgrids to the greatest extent [22]. A stochastic optimization method has been used to deal with the uncertainty of load and renewable energy output, and a bidding strategy model for microgrids containing renewable energy has been proposed to participate in the day-ahead market, so as to maximize the microgrid’s profit [23]. Aiming to jointly optimize the operation of the day-ahead market and the real-time market, the forecasted new energy output has been modeled based on mixed integer linear programming (MILP) in the day-ahead market, and the robust optimization has been used to model the uncertainty of renewable energy power in the real-time market [24]. For the two-stage optimization problem of the microgrid, most literatures use two objective functions [22,24], and some literatures use one objective function to maximize the profit of the microgrid [19,20,21]. When two objective functions are used, the global optimization may not be achieved by simultaneously optimizing the microgrid revenue and unit commitment. Therefore, this paper uses one objective function to maximize the revenue of microgrid in the spot market.
When stochastic optimization is applied to the processing of uncertainty in the microgrid, the significant disadvantage is that when the number of scenarios increases, the calculation requirement is high [25]. Robust optimization can only consider the best result in the worst case, which will make the result too conservative [6]. Some literatures decompose the bidding strategy of the microgrid into a two-step optimization problem. Firstly, the scenario generation and reduction of uncertain variables are completed, and then an optimization algorithm is used to determine the bidding decision and the optimal power output of each unit. A model for aggregators has been constructed with flexible power output units to participate in the spot market. Based on stochastic mixed integer linear programming, bidding decisions have been made in the day-ahead market and scheduling has been carried out in the real-time market to minimize the total transaction cost in the spot market [26]. A Monte Carlo simulation has been used to generate scenarios with uncertain variables, and a stochastic optimization method was used to maximize the profit of the bidding scheme [27]. An D et al. have constructed a stochastic double auction bidding model, and the uncertain scenarios of renewable energy power and load have been generated by Monte Carlo simulation, minimizing the operation cost of the microgrid by stochastic optimization method [28]. A random bidding strategy model has been proposed for microgrid operators in the day-ahead market. Firstly, Latin hypercube sampling has been used to generate multiple sets of scenarios, then a backward scenario reduction method has been used for scenario reduction, and finally, a stochastic optimization algorithm has been used to deal with the uncertainties of wind power and load, so as to determine the optimal bidding strategy of microgrid operators [29]. A bidding strategy model has been proposed for microgrid operators in the day-ahead market and the real-time market. Latin hypercube sampling has been used to generate scenarios of wind speed, light intensity, and load, and backward scenario reduction technology has been used to reduce the scenario [30]. Compared with the Monte Carlo simulation, the samples generated by the Latin hypercube sampling can reflect the shape of distribution more accurately [29].
In conclusion, under the background of spot market reform, the research on microgrids with renewable energy participating in market transactions has made some progress, but there are still some problems with the research. In the above literature on the participation of microgrids in market decision-making, some do not consider the participation of the microgrid in the real-time market, some do not consider the volatility of renewable energy output power, some do not consider the uncertainty of the market price, and some only use stochastic optimization or robust optimization to solve the problems. In order to avoid the limitations of the above research, this paper uses two-step optimization to construct the decision-making model of microgrids in the spot market. Latin hypercube sampling is utilized to generate scenarios, which can accurately reflect the distribution of renewable energy, and the synchronous back generation reduction method is adopted to reduce scenarios that can reduce the amount of calculation. Considering the demand response factors, the decision-making model of microgrids participating in spot market transactions composed of wind power, PV, gas turbines, and battery storage is constructed to optimize its trading decision-making scheme. The model takes into account various constraints and microgrid components, which is more practical and provides scientific quantitative analysis tools for microgrids. In order to achieve more targeted research, this paper uses the following two hypotheses: (1) The microgrid participates in market transactions as price receivers; (2) Spot market transactions only include electricity as a subject matter.
The main contributions of this paper include the following:
  • The Latin hypercube sampling method is used to discretize the wind and PV power into multiple scenarios. This sampling method can generate more uniformly distributed sample points, which is more efficient than random sampling. In addition, to decrease the computation time, the most representative expected scenario is selected by the synchronous back generation reduction method.
  • The two-level PBDR was implemented in the day-ahead market. First, the overall load curve of the microgrid was optimized, and then, for the more flexible residential load, it can respond to changes in the power output of renewable energy, thereby maximizing the consumption of renewable energy. In the real-time market, IBDR is used to change users’ electrical power consumption, which not only enables users to get a certain amount of financial compensation, but also enables microgrids to obtain part of the “negative output” at a lower electricity price.
  • The proposed stochastic bidding strategy for microgrid participation in spot market transactions, which considers the uncertainty of renewable output power, load, and market price, can ensure the maximum expected revenue of the microgrid in various scenarios.
  • The sensitivity analysis method is used to analyze the impact of each cost coefficient and market price coefficient on microgrid revenue. On the one hand, it verifies the stability of the optimization model. At the same time, it also provides a reference range for the setting of the market price coefficient.
  • The profit situation of microgrid in extreme weather is analyzed, and the microgrid can remain profitable in extreme weather, which shows that the model is stable and less affected by extreme weather.
The remainder of this paper is organized as follows. Section 2 introduces the mathematical modeling. Section 3 presents the decision optimization model of microgrid operators. Section 4 describes the numerical simulations to demonstrate the effectiveness of the proposed approach. And the abbreviations and acronyms are in Table A1.

2. Strategy and Modeling

In this section, the process of microgrids participating in spot market transactions is described. The mathematical model of each unit in a microgrid is given, as well as the model of uncertainty and the electricity market.

2.1. Spot Market Trading Strategy

The spot electricity market is also referenced as short-term electricity market. Generally, the spot market is divided into the day-ahead market and the real-time market according to time scale. In the Nordic electricity market, there is also an intraday market between the day-ahead market and the real-time market. Due to the small trading scale of intraday market in the entire spot market, it is often ignored [31]. This paper considers day-ahead market and real-time market and proposes an energy management strategy suitable for microgrids with a high renewable energy penetration rate so as to maximize the expected revenue of the microgrids.
In the day-ahead market, microgrid operators take the typical daily load curve as the actual load curve, determine and notify the user of the hourly electricity price of the next day in advance, implement the PBDR to shift peak load, and obtain new load curves. Based on the load after the implementation of the PBDR and the predicted wind and PV power, the microgrid operators call gas turbines to balance the deviation and determine the amount of bidding electrical power in the day-ahead market and its decision-making results can be used in the real-time market.
In the real-time market, due to errors in the short-term forecast of the wind and PV power, there is a deviation between the actual transaction of electrical power and the bidding on electrical power. When the forecasted wind and PV output power is greater than the actual wind and PV output power, the microgrid operators need to meet the load demand by dispatching battery storage and demand response, or they can purchase electrical power at a high price from the real-time market. When the forecasted wind and PV output is more than the actual wind and PV power, the microgrid operators can sell this part of the electrical power at a low price to the real-time market and balance the internal power of the microgrid. The spot market trading strategy is shown in Figure 1.

2.2. Mathematical Model of Microgrid

2.2.1. Photovoltaic

Solar energy is one of the most promising renewable energy sources. At present, the utilization of solar energy mainly includes PV power generation and photothermal power generation. The scale of photothermal power generation is relatively large, and it is mostly used for centralized power generation, while PV power generation can be applied in small-scale and distributed generation. In this paper, PV power generation is applied. PV power is closely related to the solar irradiance. Ref. [32] points out that the solar irradiance can be expressed by beta distribution function, and its probability density function is as follows:
f ( G ( t ) ) = Γ ( α s p + β s p ) Γ ( α s p ) Γ ( β s p ) G ( t ) G max α s p 1 1 G ( t ) G max β s p 1
In Equation (1), Γ ( ) is a gamma function that represents the solar irradiance in period t , G max represents the maximum solar irradiance in this period in kW/m2, and 0 G ( t ) G max , α s p , and β s p are the shape parameters of beta distribution, which are determined by σ p v (standard deviation) and μ p v (expected value) of the solar irradiance during this period and can be calculated based on the historical data of local solar irradiance according to Equation (2).
α s p = μ p v μ p v ( 1 μ p v ) σ p v 2 1 β s p = ( 1 μ p v ) μ p v ( 1 μ p v ) σ p v 2 1
Finally, PV power is calculated according to Equation (3).
P p v t = P S T C × G i n G S T C × 1 + ω p v ( T c T S T C )
where P S T C (kW), G S T C (kW/m2), and T S T C (°C) indicate the rated power, solar irradiance, and PV cell temperature, respectively, of PV panels under standard test conditions. P p v t represents the actual output power, in kW. G i n refers to the actual solar irradiance. ω p v is the power temperature coefficient, generally taken as −0.47. T c is the surface temperature of the PV panel, in °C.

2.2.2. Wind Turbine

At present, wind power generation has become the most mature renewable energy with the most viable development value. The wind power industry has also become one of the fastest growing and highest potential industries in the world. The principle of wind power generation is to convert wind energy into electric energy. According to its power generation principle, wind power is closely related to the wind speed. Ref. [33] points out that the actual wind speed distribution conforms to the Weibull distribution, and the probability density function of wind speed described by the Weibull distribution is as follows:
f ( v ) = a b ( v b ) a 1 exp [ ( v b ) a ]
In Equation (4), v is the actual wind speed, m/s, a , and b (m/s) represent the shape parameters and scale parameters of the wind speed curve, respectively, which can be obtained by calculating the μ (expected value) and δ (standard deviation) of historical wind speed data. The specific calculation is shown in Equation (5).
a = ( δ μ ) 1.086 , b = μ Γ ( 1 + 1 a )
The relationship between wind power and wind speed satisfies the wind turbine power characteristic curve, as shown in Figure 2.
According to Equations (4) and (5), the power of wind turbines can be further calculated as follows:
P w i n d t { 0     , 0 v < v i n P r v r 3 v i n 3 v 3 v r 3 v in 3 v i n 3 P r  , v i n v < v r P r ,     v r v v out 0       , v > v out
In Equation (6), P w i n d t is the output power of the wind turbine in period t , kW, P r is the rated power of the wind turbine, kW, and v i n , v o u t , and v r are the cut in wind speed, cut out wind speed, and rated wind speed of the wind turbine in m/s, respectively.

2.2.3. Gas Turbine

The gas turbine has the characteristics of fast climbing speed and low start-up and shut-down cost, which can ensure the stable operation of the microgrid in periods of low solar irradiance and lean wind and provide reserve service for the whole microgrid when the wind and PV power is insufficient. The power of gas turbines is affected by the generation efficiency, and the power model is presented in Equation (7):
P C G T t = W C G T t η C G T Q g a s κ g a s
where P C G T t is the output power of the gas turbine, kW, W C G T t is the gas consumption of the gas turbine in period t , m3, η C G T is the power generation efficiency of the gas turbine in period t ,%, Q g a s is the calorific value of natural gas, taking 36 MJ/m3 [34], and κ g a s is the conversion coefficient, 0.278 kWh/MJ.

2.2.4. Battery Storage

The microgrid contains a large number of distributed PV and wind turbines, which have great volatility. The installation of battery storage can ensure the stable operation of the microgrid system. In addition, battery storage has a good peak-shaving and valley-filling effect, which can store electricity when the price is low and sell electricity when the price is high, thereby improving the income of the microgrid. Therefore, considering both stability and economy, the microgrid in this paper includes battery storage. The relationship between the state of charge and the power of charging and discharging can be expressed as follows:
S O C t = S O C t 1 + P c h η c h E b Δ t
S O C t = S O C t 1 + P d i s η d i s E b Δ t
In Equations (8) and (9), S O C t and S O C t 1 represent the state of charge of battery storage in period t and in period t 1 as percentages, respectively, and Δ t represents an operating period. P c h and P d i s represent the charging and discharging power of the battery storage in kW, respectively. η c h and η d i s represent the charging and discharging efficiency, respectively, which is generally less than 1, and E b is the rated capacity of battery storage in kWh.

2.2.5. Demand Response

With the continuous increase of renewable energy penetration, the operation of the microgrid has been seriously affected, which may make the microgrid face the risk of abandoning wind and PV or load shedding, and demand response (DR) resources participating in the operation of microgrid is an effective way to solve this problem. DR includes the price-based demand response (PBDR) and the incentive-based demand response (IBDR). The response time of the PBDR is slow, but the economy is good, and it has a fine effect of peak-shaving and valley-filling. The IBDR has a fast response time but poor economy, which can effectively promote renewable energy consumption. According to the respective characteristics of the PBDR and the IBDR, this paper uses the PBDR in the day-ahead market to reduce the load in peak period or transfer it to low period and adopts the IBDR in the real-time market to maximize the utilization of user-side resources and promote renewable energy consumption. The adoption of the PBDR and the IBDR in the spot market considering the multi-scenarios of wind and PV power can function to better the role of the demand response, realize the stable operation of the power system, and meet the needs of market-oriented balance mechanism.
(1)
Day-ahead load dispatch based on the two-level PBDR
In the PBDR model, according to the consumer psychology principle, the reasonable “real-time electricity price” can be formulated in the day-ahead market to influence the users’ electrical power consumption behavior. “Real-time electricity price” is the electricity price of the next day, which is determined in day-ahead market and notified to the user in advance. Generally speaking, the lower the electricity price, the higher the power consumption is of users, and vice versa. Based on the modeling method of stepped elastic load curve, this paper designs 10 electricity price gears. The electricity price of each gear and the response rate of the user load are shown in Table 1 [35].
In this paper, it is assumed that the users arrange the electrical power consumption plan in advance according to the “real-time electricity price” and determine the amount of load transfer or reduction. The mathematical model of PBDR is illustrated in Equations (10)–(14):
P L t = P s t d D κ d t σ d t
d D κ d t = 1 , κ d t 0 , 1
Equation (10) represents the load value in period t after the implementation of the first level PBDR, and Equation (11) indicates that the electricity price at each period can only be in one gear. Where P s t is the total load forecast value in period t in kW, P L t is the load value after participating in the first level PBDR in kW. κ d t is a binary variable, indicating the identification of the electricity price level, and σ d t is the load response rate under the gear d in period t .
The above is the first level PBDR for all users of the microgrid. Microgrid users can be divided into industrial, commercial, and residential users. For the residents, their electrical power consumption behavior is more flexible than that of industrial and commercial users. In order to maximize renewable energy consumption in the day-ahead market, the implementation of the second level PBDR to residential users is continued so that their load can respond to changes in wind and solar output power.
P W T , D A t + P P V , D A t P r t = D t
P t r = 0         , D t < a 10 % × ( D t - a )   ,   D t a
P P B t = P L t P t r
Equation (13) shows the variation of residential load value with wind and solar power output where P W T , D A t is the wind power output predicted in the day-ahead market in kW, P P V , D A t is the PV power output predicted by the day-ahead market in kW, P r t (kW) is the residential load, and D t (kW) is the difference between the renewable energy power output and the residential load in the day-ahead market. P t r is the change of residential load, and P P B t is the microgrid load after the implementation of the two-level PBDR in kW. a is the reference value of the difference between renewable energy power output and residential load.
(2)
Real-time load dispatch based on IBDR
In IBDR model, through signing contracts with large-load users and giving them certain economic compensation according to the contract content, users can adjust load demand, provide “negative output” for the microgrid, balance forecast errors, and improve the stability of the microgrid. The mathematical model of IBDR is shown in Equations (15) and (16).
0 P I B t ς L P B t
Δ P I B m a x P I B t P I B t 1 Δ P I B m a x
Equation (15) represents the power constraint of demand response in period t , and Equation (16) is the ramp rate limits of the demand response in adjacent periods where P I B t is the load reduced by IBDR in period t in kW, ς is the maximum power coefficient as a percentage, and Δ P I B m a x is the maximum ramp rate of the IBDR in kW.

2.2.6. Uncertain Sets of Renewable Power, Load, and Electricity Prices

There are several uncertain factors in this paper, namely, the electricity price uncertainty, the user load uncertainty, and the wind and PV power output uncertainty. Aiming at the uncertainty of electricity price, this paper uses the fuzzy clustering method to generate a set of electricity price scenarios of the day-ahead and real-time markets according to the historical electricity price data. The typical daily load curve is used as the user load scenario. Latin hypercube sampling and the synchronous back substitution reduction method are used to generate and reduce the wind and PV power scenarios to reduce the impact of uncertainty. Then, S i , m w ( m wind speed scenes) and S j , n p v ( n solar irradiance scenes) are obtained and the total number of scenes is S , which is equal to m n . The mathematical model of the Latin hypercube sampling and the synchronous back substitution reduction method is as follows.
(1)
Latin hypercube sampling
Due to the randomness of wind and PV power, this paper introduces Latin hypercube sampling to reduce the influence of randomness on the experimental results. Latin Hypercube Sampling (LHS) is a set sampling method that guarantees full coverage of the variable range through the stratified marginal distribution to the greatest extent [29]. This sampling method can generate more uniformly distributed sample points, which is more efficient than random sampling, and is suitable for the reliability analysis in the power system. In this paper, Latin hypercube sampling is used to generate wind and PV power scenarios.
The steps of generating samples N by Latin hypercube sampling are as follows:
Step 1: Determine the sample size N and vector dimension k .
Suppose a hypercube: x 1 , x 2 , x 3 , , x k is k random variables, that is, the dimension of variables is k , and the cumulative probability distribution function of each variable is F x i = f ( x i ) and i = 1 , 2 , , k . For any random variable, x i , divide the vertical axis of the cumulative probability distribution curve of x i into N intervals with equal probability, the length of each interval is 1 / N , and for any value of x in the interval, there are: P ( x i a < x < x i ( a + 1 ) ) = 1 / N , where x i a is the a -th sampling value of random variable x i .
Step 2: The cumulative probability distribution function corresponding to x i a is F x i ( a ) = ( 1 / N ) r u + ( a 1 ) / N , where r u ~ N ( 0 , 1 ) obeys a uniform distribution. The a -th sampling value x i a of x i can be obtained by calculating the inverse function of the cumulative distribution function.
Step 3: After sampling, the sampling values of k random variables are arranged into a column of the matrix to form a sampling matrix L of N times k .
(2)
Synchronous back substitution reduction method
If only the above Latin hypercube sampling method is used, the sample size will be too large and the calculation efficiency will be reduced. Therefore, the samples need to be decreased [36]. In order to make the scene set obtained after scene reduction consistent with the result obtained by the original scene set, this paper uses the synchronous back generation reduction method to reduce the scene set and merge similar scenes.
Step 1: First, suppose there are N different scenes A p ( p = 1 , 2 N ) in the initial scene set, and the probability of each scene is π P . Obviously, the probability of each scene generated by Latin hypercube sampling is 1 / N , and D p , p is defined as the distance between scenes p and p . T is defined as the set of scenes that need to be deleted, which is empty before reduction, and the final number of scenes is N . The distance between any two scenes in set N is D p , p = D ( A p , A p ) = i = 1 k ( a i p a i p ) 2 , k represents the dimension of each scene, and a i p represents the value of the i -th dimension of scene p .
Step 2: Through calculation, find the scene s which is closest to the scene r , such that D ( r , s ) = min D ( r , b ) , where r b , r , b P .
Step 3: The probability of scene r is π ( r ) , and the probability distance between scene r and s is P D r , s , so that P D r , s = π ( r ) D ( r , s ) and P D r , s = min P D d , s determines the scene d to be cut.
Step 4: Change the total number of scenes to S = S d , T = T + d . The probability of the scene becomes π r = π r + π d , so that the sum of the probabilities of all scenes is always 1.
Step 5: Repeat steps 2, 3, and 4 until the final scene number is obtained.

2.2.7. Market Model

In the microgrid, the electrical power trading is conducted between the microgrid operators and the electrical power users. In order to prevent market players from speculating in the real-time market, the electrical power buying price in the real-time market is usually higher than that in the day-ahead market, while the electrical power selling price is lower than that in the day-ahead market. Thus, because the bidding power of the microgrid participating in market transactions is limited, which is not enough to affect the market price, this paper assumes that the microgrid participates in the spot market transaction as a price-taker, and the transaction price is the unified clearing price. The market bidding strategy contains many complex economic problems, which are solved according to the electricity generation, load, and time-of-use electricity price. The detailed steps for signing the bilateral contracts are shown in [37], which are not detailed here.

3. Optimization Model of the Microgrid Participating in Market Transaction Decisions

In this section, the objective function and constraints are described of microgrid optimization, and the process of model solving is illustrated.

3.1. Objective Function

In the actual operation process of the microgrid with distributed energy, due to the uncertainty of the renewable energy power, a variety of energy equipment had to be dispatched. At the same time, because the small-scale energy of the microgrid itself does not meet the large-scale energy input and output, it needs energy transactions with the grid to ensure the safe and stable operation of the system. Therefore, the following key factors related to microgrid revenue need to be considered: uncertainty of wind and PV power, the coordinated operation of multiple energy equipment, and maximizing the expected revenue of microgrid.
Microgrid operators apply for bidding power in the day-ahead market, and dispatch gas turbines, battery storage, and demand response in the real-time market to make up for the unbalanced power deviations of the entire microgrid. This paper takes day-ahead and real-time transaction sequence as two stages to optimize the unit commitment, and the objective function is to maximize the total revenue of the spot market, as shown below:
f = m a x t = 1 T i = 1 m ρ ( S i , m w ) j = 1 n ρ ( S j , n p v ) { I l o a d t + I D A t + I R T t , S i , m w ,     S j , n p v C C G T t C E s s t C I B t }
where I l o a d t is the income of microgrid selling electricity to users, I D A t and I R T t , S i , m w ,     S j , n p v are the income of the microgrid in the day-ahead market and real-time markets in USD, respectively. C C G T t represents the cost of the gas turbine, C E s s t is the charge and discharge cost of the battery storage, and C I B t represents the demand response cost in USD.
(1)
The I l o a d t is calculated as:
I l o a d t = P s t ε D A t Δ t
The main source of income of the microgrid is the sale of electric energy to users where ε D A t is the electricity price in the day-ahead market obtained by clustering in USD/kWh, and ε D A t is less than the electricity purchase price of users in the market, so that users choose to buy electricity on the microgrid.
(2)
The I D A t is calculated as:
I D A t = [ ( 1 μ ) ε D A t P D A t , s e l l ( 1 + μ ) ε D A t P D A t , b u y ] Δ t
P D A t , s e l l = max P D A t , 0 P D A t , b u y = max P D A t , 0
Equation (19) represents the income of microgrid participating in the day-ahead market. Equation (20) is used to obtain the power of purchase and sale in the day-ahead market, respectively, where P D A t , s e l l refers to the sale of surplus electrical power to the market, P D A t , b u y refers to the purchase of shortages electrical power from the market in kW, and μ is the price coefficient.
(3)
The I R T t , S i , m w ,     S j , n p v is formulated as:
I R T t , S i , m w ,     S j , n p v = ρ ( S i , m w ) ρ ( S j , n p v ) [ ( 1 δ ) ε R T t P R T , s e l l t ( 1 + δ ) ε R T t P R T , b u y t ] Δ t
P R T , s e l l t = m a x { P R T t ,     S i , m w ,     S j , n p v , 0 } ,     P R T , b u y t = m a x { P R T t ,     S i , m w ,     S j , n p v , 0 }
Equation (21) represents the income in real-time market. Equation (22) is used to obtain the power of purchase and sale in the real-time market, respectively, where P R T t ,     S i , m w ,     S j , n p v is the transaction power of the microgrid under different scenarios in kW, P R T , s e l l t represents the sale of electrical power to the market in period t , and P R T , b u y t represents the purchase of electrical power from the market in kW. δ is the electricity price coefficient of purchase and sale, ρ ( S i , m w ) and ρ ( S j , n p v ) are the probability of different simulated scenarios of wind and PV power, respectively, and ε R T t is the electricity price in the real-time market in USD/kWh.
(4)
The calculation of C C G T t is given in Equations (23)–(25):
C C G T t = C C G T t , s s + C C G T t , p g
C C G T t , s s = g C G T u C G T t + 1 ( 1 - u C G T t ) + u C G T t ( 1 - u C G T t + 1 )
C C G T t , p g = γ C G T P C G T t Δ t
where C C G T t , s s and C C G T t , p g are the start-stop operating cost of a gas turbine in USD, g C G T (USD/time) and γ C G T (USD/kWh) represent the start-stop and operating cost coefficients of a gas turbine, respectively.
(5)
The calculation of C E s s t is given in Equation (26):
C E s s t = E s s ( P c h t + P d i s t ) Δ t
where E s s is the charge and discharge cost coefficient of battery storage in USD/kWh.
(6)
The calculation of C I B t is given in Equation (27):
C I B t = ϑ I B P I B t Δ t
where ϑ I B is the cost coefficient of the IBDR in USD/kWh.

3.2. Constraints

(1)
Power balance constraints:
P D A t = P W T , D A t + P P V , D A t + P C G T t P P B t
Equation (28) represents the power balance constraint in the day-ahead market, where P W T , D A t and P P V , D A t represent the forecasted power of wind and PV, respectively, P P B t is the load value after the implementation of the PBDR, and P D A t is the bidding power of microgrid in kW.
P R T t ,     S i , m w ,     S j , n p v = P S i , m w t + P S j , n p v t + P C G T t + P d i s t P c h t + P I B t P P B t P D A t
Equation (29) represents the power balance constraint in the real-time market. Among them, P R T t ,     S i , m w ,     S j , n p v is the transaction power of microgrid in different scenarios, P S i , m w t and P S j , n p v t represent the wind and PV power in different scenarios in kW, respectively.
(2)
Wind constraints:
0 P S i , m w t P r
Equation (30) represents the wind power constraints, where P S i , m w t represents the actual wind power in period t and P r is the rated power, which is assumed to be the maximum power in kW.
(3)
PV constraint:
0 P S j , n p v t P S T C
Equation (31) is the PV’s power constraints, where P S j , n p v t represents the actual PV power in period t and P S T C is the rated power, which is presumed to be the maximum power in kW.
(4)
Gas turbine constraints:
Q C G T o n R C G T t 1 , o n u C G T t u C G T t 1 0
Q C G T o f f R C G T t 1 , o f f u C G T t 1 u C G T t 0
u C G T t P C G T min P C G T t u C G T t P C G T m a x ,     u C G T , t 0 , 1
P C G T t P C G T t 1 R U C G T Δ t P C G T t 1 P C G T t R D C G T Δ t
Equations (32) and (33) limit the start-up and shut-down time of gas turbine, and it cannot be started up and shut down simultaneously at any time. Among them, u C G T t is a binary variable, which represents the operating state of the gas turbine in period t . When u C G T t is equal to 1, the gas turbine is in the operating state, otherwise it is in the shutdown state. Q C G T o n and Q C G T o f f represent the minimum start-up time and shutdown time, respectively. R C G T t 1 , o n and R C G T t 1 , o f f respectively represent the continuous operation time and continuous shutdown time of gas turbines. Equation (34) is the power constraints, and Equation (35) is the ramp rate limits, where R D g and R U g represent the landslide rate and ramp rate in kW/h, respectively, and Δ t represents an operating period.
(5)
Battery storage constraints:
E b S O C min E b t E b S O C max
ϖ c h t P c h m i n P c h t ϖ c h t P c h m a x
ϖ d i s t P d i s m i n P d i s t ϖ d i s t P d i s m a x
0 ϖ c h t + ϖ d i s t 1 ,     ϖ c h t , ϖ d i s t   { 0 , 1 }
Equation (36) expresses the capacity constraints of the battery storage. Equations (37) and (38) express the power limits of charging and discharging, respectively. Equation (39) ensures that the battery storage cannot be charged and discharged at the same time, where S O C min and S O C max represent the minimum and maximum state of charge, respectively. ϖ c h t and ϖ d i s t are binary variables, which represent the charge and discharge state of battery storage in period t , respectively.

3.3. Model Solution

Thus far, the decision-making model is constructed. This paper develops a YALMIP-based binary mixed integer linear programming microgrid optimization model. YALMIP is a solution toolbox written in MATLAB language, which optimizes the objective function by calling a variety of commercial optimization solvers, such as LPSOLVE, CPLEX, and GRUOBI, etc. This article is programmed in the Matlab2016a environment and calls the CPLEX college edition solver to optimize the problem. The decision model solving process is shown in Figure 3.
In MATLAB programming, decision variables and zero one variables related to gas turbine, battery storage, demand response, and other components are input by “>> x = sdpvar (1,24)” and >> ”x = binvar (1,24)”, then, the end cycle functions of gas turbine and energy storage are input, then the output power constraints and the system power balance constraints of each unit are input by “>> F = set (constraint)”, and then input “>> ops = sdpsettings (‘solver’, ‘cplex’, ‘verbose’, 2)”, call the CPLEX solver, and finally, input “result = optimize (F,f,ops)” to solve the minimization problem of the mathematical programming. Since we want to solve the problem of maximizing the expected return, we only need to add a negative sign before f.

4. Case Study

This section mainly presents basic data, gives the optimization results, and analyzes the impact of the demand response, meteorological factors, market price, and cost coefficients on the expected revenue of microgrid.

4.1. Data and Description

In this section, taking into account the time characteristics of wind power, PV, and load, as well as the volatility of electricity prices, the bidding strategy of the microgrid in spot transactions is presented. This paper selects the historical output power data of wind power, PV, and user load in a residential area in Beijing, China. The electricity price data is obtained by fuzzy clustering, and the day-ahead market and real-time market electricity price curve is demonstrated in Figure 4. A typical daily load curve is shown in Figure 5. One thousand sets of wind speed and solar irradiance scenarios are generated by Latin hypercube sampling, respectively, and then reduced by the synchronous back substitution reduction technique. Finally, 10 sets of wind speed scenarios and 5 sets of solar irradiance scenarios with weights are obtained, and the wind and PV power are then calculated according to the formula, which constitute 50 sets of wind and PV power scenes with weights. The 10 sets of wind power and 5 sets of PV power scenarios are denoted in Figure 6 and Figure 7, respectively.
Figure 4 denotes that the real-time market electricity price is generally higher than the day-ahead market, and both of them are in the low electricity price period from 1:00 to 6:00, and reached the peak electricity price period between 18:00 and 22:00.
As shown in Figure 5, the low period of power consumption is between 1:00 and 6:00, and the peak period of power consumption is between 17:00 and 22:00, which are generally consistent with the changing trend of the electricity price, indicating the validity of the data.
For Figure 6, the wind power shows a certain degree of uncertainty at each time, and fluctuates greatly in a short period of time. As clearly observed from Figure 7, PV power has a certain periodicity in a day. With the change of solar irradiance, PV power is in an upward trend in the morning, and downward in the afternoon, and peaks at noon. The PV power in different dates has certain similarities.
Finally, the main parameters involved in the microgrid system are shown in Table 2 and Table A2, Table A3 and Table A4.

4.2. Results and Discussion

4.2.1. Operation Analysis of Microgrid

Figure 8 shows the power of each component of the microgrid, including load, PV, wind turbine, gas turbine, battery, IBDR, and transaction power in the day-ahead market and the real-time market.
As shown in Figure 8, since the user load is greater than the wind and solar output, the microgrid needs to predict the wind and PV output power in the day-ahead market and use lower-cost gas turbines to meet part of the load. The unsatisfied part is obtained through day-ahead market transactions. Because the cost of battery storage and demand response is higher than the electricity purchase price in the day-ahead market and the output power is relatively small, they are used to balance the volatility of wind and PV output power in the real-time market. The unbalanced part needs to be balanced by real-time market transactions.
Compared with the real-time market, the electricity selling price is higher and the buying price is lower in the day-ahead market. Thus, microgrid operators can trade more electrical power in the day-ahead market to maximize the expected revenue. Figure 8 shows that the day-ahead market transaction electrical power occupies the vast majority of the spot market, which is similar to the general transaction model in the spot market.
The power scheduling results of battery storage, gas turbines, and IBDR are denoted in Figure 8. Battery storage works in charging mode from 0:00–4:00 and 7:00–10:00, when the wind and PV power is sufficient, or electricity prices are relatively lower. Battery storage is discharging between 12:00–15:00 and 19:00–21:00, when electricity prices are comparatively higher. Therefore, the revenue of battery storage is derived from the difference between the on-peak and off-peak periods. Gas turbines provide power between 2:00 and 24:00. There is a certain difference between wind and PV output power and user load, and the cost of gas turbines is lower than the electricity purchase price in the day-ahead market and the rated power is larger, but the start and stop costs are higher, therefore, it is in the state of power generation within a day. The IBDR mainly provides “negative power” to microgrid from 12:00 to 15:00, when the cost of load reduction is lower than the electricity price in the real-time market. It can not only enable users participating in IBDR to obtain additional benefits, but also enable the microgrid operators to get part of the output power at a lower price.
From the perspective of the microgrid, the model calls gas turbine and the PBDR in the day-ahead market, and battery storage and the IBDR in the real-time market to minimize the transaction volume in the market, so that the microgrid achieves a power balance and maximizes its expected revenue, which has important reference significance for microgrids to participate in spot market transactions.

4.2.2. Analysis of Influencing Factors

Based on the above optimization results, this section further analyzes the impact of demand response, meteorological factors, electricity price coefficients, and cost coefficients on the expected revenue of microgrid.
(1)
Demand response
This paper introduces the PBDR and the IBDR to participate in the optimal dispatch of the microgrid. In order to further research the impact of the PBDR and the IBDR on the microgrid, four cases are compared: (i) case 1: with PBDR and IBDR; (ii) case 2: with IBDR only; (iii) case 3: with PBDR only; and (iv) case 4: without DR.
Figure 9 demonstrates the load reduction in different cases. After the application of PBDR, the power demand is increased between 12:00 and 18:00, and reduced between 19:00 and 23:00 due to changes in electricity prices. Users will reduce power consumption during periods of high electricity prices and shift their load to periods of low electricity prices. After the operation of the IBDR, users reduced power demand between 18:00 and 22:00, when the load reduction cost of the microgrid is lower than the electricity price in the real-time market. After implementing PBDR and IBDR, the peak load can be shifted to the trough period, and part of the peak load can also be decreased, which can promote the consumption of renewable energy and increase the revenue of microgrid. It can be observed that the market transactions that include both the IBDR and the PBDR have great social and economic benefits.
The expected revenue of the microgrid in different cases is tabulated in Table 3. It can be found that the revenue in case 1 is USD 962.21, which higher than the other cases. The revenue of case 4 is reduced by 0.97% compared with case 1. In case 4, the microgrid cannot adjust the load flexibly, and can only purchase electrical power at a high price when there is a power shortage. Therefore, more revenue can be made by the intended method and the economic superiority is confirmed.
Therefore, the microgrid should implement the PBDR and the IBDR, which can not only shift or reduce load peaks in the day-ahead market, but also reduce the power consumption of users through certain incentives in the real-time market and improve the revenue of microgrid operators while also ensure the stable operation of the system.
(2)
Meteorological factors
Considering the rapid development of environmental issues such as pollution and climate change, there is a higher probability of extreme weather occurring more frequently, which brings huge economic losses and adverse social impacts. At this stage, wind power is developing rapidly, and the installed capacity is gradually increasing. With the level of wind power connected to the microgrid becoming higher and higher, the impact of its power output on the system is becoming ever more obvious. The stable operation of microgrid under extreme weather is of great significance to guarantee people’s daily production and life, ensure the revenue of the microgrid, and promote economic and social development. As the wind speed is extremely high or low in extreme weather, and the wind speed is closely related to the wind power, in order to avoid the greater impact of wind power fluctuations on the microgrid, and to ensure power quality and safety, this section simulates the change of wind power under extreme weather to determine if the model behaves as expected.
In Figure 10, 10 sets of wind power scenes under weak wind, normal wind, and fierce wind are simulated, respectively. In addition, suppose that under weak wind and fierce wind conditions, the value of wind power fluctuates near the minimum and maximum value of the normal power, respectively.
It can be seen in Figure 11 that different wind speeds have different effects on the expected revenue, and as the wind speed increases, the expected revenue also gradually increases. This is because the larger the wind speed, the larger the wind power output, which makes microgrid operators able to trade more electrical power in the market and then obtain more expected revenue. In addition, under weak wind conditions, the microgrid can still make a profit, which demonstrates that the model can ensure the safe and economic operation of the microgrid and has excellent resistance to extreme weather interference.
(3)
Sensitivity analysis
Due to the randomness and uncontrollability of renewable energy power, higher requirements are put forward for the transaction decisions of the microgrid. Therefore, it is necessary to study critical operational indicators related to spot market transactions in order to promote microgrid operators to make the best decisions and maximize the expected revenue. The expected revenue of the microgrid is affected by operating income and cost. Operating income is influenced by the day-ahead market price coefficients μ and real-time market price coefficients δ , and operating cost is mainly affected by the cost coefficient of each unit. To obtain the influence of various factors on the expected revenue, a sensitivity analysis was conducted based on the above research. The value of the six coefficients is changed by decreasing and increasing 10%, 20%, 30%, 40%, and 50%, respectively, based on the original data. Figure 12 gives principal factors that affect the expected revenue of the microgrid. Figure 13 and Figure 14 denote the sensitivity analysis of the impact of the operating incomes and the operating cost on the expected revenue, respectively.
As shown in Figure 13, the changes of μ (price coefficient in the DA market) has a slight effect on the result, and the fluctuations of δ (price coefficient in RT market) has a more obvious effect on the result. This is due to the fact that the real-time market electricity price is relatively higher. With the decrease of δ , electricity selling prices will gradually increase to be even larger than the day-ahead market. Therefore, δ is one of the sensitive factors during the optimization model. Nevertheless, it can also be learned that the change of δ cannot notably affect the revenue. No matter how the price coefficient fluctuates, the revenue will not decrease significantly, which can verify the effectiveness of the model to a certain degree.
With respect to the cost coefficient aspect, it can be seen from Figure 14 that no matter how E s s (cost coefficient of battery) and ϑ I B (cost coefficient of IBDR) change, the expected revenue still experiences little fluctuations. When g C G T (start and stop cost coefficient of GT) changes, the expected revenue fluctuates slightly. When γ C G T fluctuates, the result fluctuates more obviously. The battery storage and IBDR have a small impact on the results due to lower power relatively. The start and stop cost of gas turbines is relatively high, but it only starts and stops once, therefore its change has a certain degree of effect on the results. The gas turbine provides the maximum output power to cover the constant load within 24 h, therefore the change in γ C G T has the most obvious impact on the result. However, no matter how each cost coefficient changes, the impact on the expected revenue of the microgrid remains within a specified range, which verifies the stability of the model to a certain extent.
Depending on the above analysis, δ and g C G T have the greatest impact on the expected revenue. As δ decreases, although it will increase the expected revenue of the microgrid, it will make the electricity selling price in the real-time market larger than the day-ahead market, disrupting market rules, and making the market entities speculate. Thus, it is necessary to control the change range of δ between −10% and 50% to ensure the effective operation of electricity market. For gas turbines, due to the large amount of power generation, the cost has a greater impact on the results. On the one hand, the start-up and shutdown costs are high, and microgrid operators should control the start-up and shutdown of the units. On the other hand, they should strive to improve the efficiency and reduce the energy loss, which can greatly improve the income of the microgrid.

4.3. Operational Strategy

In this paper, we assume that the microgrid system is consistent with the interests of users, and analyzes the impact of various factors of the microgrid system on its expected return, and then maximizes its expected return in the spot market. First, it analyzes the impact of the four demand response modes on the expected return of the microgrid. When the PBDR and IBDR are implemented at the same time, it can not only maximize the expected return of the microgrid, but also reduce the peak–valley difference and ensure the stable operation of the microgrid system. Therefore, implementing both the PBDR and IBDR at the same time is the best option of the microgrid. Secondly, the impact of extreme weather on expected revenue is analyzed. When the wind power generation level is low, the microgrid can still maintain high profitability, which shows that the model has good stability and is suitable for microgrid systems in various regions. Finally, a sensitivity analysis is made on the factors affecting the expected return of the microgrid system. On the one hand, the microgrid can maintain a high expected return when various factors change. On the other hand, it provides a reference for the selection of units for the microgrid, and also provides a reference interval for the formulation of market price coefficients. In summary, the bidding strategy of the microgrid in the spot market is a complex project, which not only maximizes the expected revenue but also considers various factors within the system (e.g., unit output constraints, power balance constraints) and the external environment (e.g., weather conditions, operation behavior).

5. Conclusions

This paper is based on the background that the microgrid can participate in market transactions as a subject under the China’s latest spot market reforms and establishes a two-step optimization model considering the uncertainties of wind power and PV power. Moreover, this paper optimizes the bidding electrical power of the microgrid in the day-ahead and real-time markets as well as the power output of the battery storage, micro gas turbine, and demand response. It also maximizes the expected revenue of the microgrid. Simulations are delivered to demonstrate the advantages of the decision-making model.
The major conclusions of this paper are as follows: (1) By constructing the decision-making model of microgrid participating in spot market, the transaction power of microgrid is obtained, which provides quantitative analysis tool for the microgrid to participate in spot market transaction decisions; (2) Through the comparative analysis of various demand responses, the PBDR and IBDR play an important role in peak cutting and valley filling, which can transfer peak load to low period and provide a partial “negative output”, promote the consumption of renewable energy, and improve the expected revenue of the microgrid; (3) In extreme weather, the microgrid can still maintain revenue, which indicates that the stability of the microgrid is good; and (4) Through the comparison and analysis of various economic coefficients, the stability of the model is verified, and the reference interval for the setting of market price coefficient is provided.
The work is of great significance for small microgrids to participate in spot market transactions, especially for the areas with high renewable energy penetration. The application of the decision-making model can be referred to, but considering that there may be different types of problems when it is extended to a large-scale microgrid, more verification simulations need to be completed. The future work is to integrate electric vehicles into the microgrid, and consider carbon emission constraints. At the same time, using machine learning or neural network and other advanced algorithms to more accurately predict renewable energy generation is also an important research direction, in order to further pursue the best benefit. On the other hand, the intraday market optimization stage is expected to be included in the future work.

Author Contributions

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

Funding

This research received no external funding.

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.

Appendix A

Table A1. Abbreviations and Acronyms.
Table A1. Abbreviations and Acronyms.
AbbreviationsWord
PVphotovoltaic
WTwind turbine
GTgas turbine
DRdemand response
IBDRincentive-based demand response
PBDRprice-based demand response
MILPmixed integer linear programming
DAday-ahead
RTreal-time
LHSLatin hypercube sampling
Table A2. Relevant parameters for components in microgrid system.
Table A2. Relevant parameters for components in microgrid system.
TimeLoad (kW)Day-Ahead Electricity Price/(USD/kWh)Real-Time Electricity Price/(USD/kWh)
1657.8170.05770.0768
2640.7510.05640.0737
3615.2840.04930.0729
4499.4500.04790.0710
5519.8890.04670.0673
6530.3610.05470.0726
7708.0960.06270.0752
8792.7610.06580.0768
9867.9850.06590.0774
10870.2080.06250.0789
11910.6710.06050.0760
12940.3820.05920.0731
13920.8510.05820.0732
14900.0460.05720.0666
15849.9330.05730.0700
16751.5630.05810.0708
17881.1360.05940.0757
18952.0000.06940.1018
191040.4490.08630.1394
20981.2220.09420.1476
21674.3220.08950.1266
22674.8120.08160.0936
23665.6470.08010.0895
24687.8130.06130.0777
Table A3. Wind power output scenario.
Table A3. Wind power output scenario.
Time12345678910
1583.63555.83575575546.25603.75570.89575575579.11
2594.51617.42597.5587.54604.14597.5580.43622.4587.54610.3
3504.96507.5507.5515.96504.68507.5496.63515.96515.96518.38
4429.68421.25421.25421.25414.23421.25427.27421.25400.19418.24
5488.81504.52496.25487.98493.49496.25499.79496.25496.25492.71
6370.64372.5372.5366.29376.64372.5375.16366.29384.92364.52
7410.79408.75408.75415.56413.29388.31399.99405.34415.56408.75
8443.75451.15443.75458.54428.96465.94450.09447.45451.15440.58
9557.2541.33588560563.11476560550.67550.67556
10494.96508.92492.5500.71478.82492.5488.98500.71500.71488.98
11577.88565.42488.75565.42575546.25570.89560.63565.42583.21
12400.49402.5422.63402.5398.03402.5408.25402.5402.5402.5
13453.51451.25451.25466.29453.76451.25431.91451.25473.81448.03
14478.98472.46488.75488.75486.03513.19506.21488.75505.04495.73
15467.65446.5470477.83464.78470466.64458.25477.83470
16528.88526.25499.94526.25537.94526.25526.25508.71508.71530.01
17595.9590649590576.89590585.79580.17590594.21
18643.25640640630.83646.39648645.36644.58650654.64
19643.25643.33640620646.39585644.64631.42639.17636.07
20605.63583.85593.75554.17573.96593.75589.51593.75583.85597.99
21577.88565.42517.5565.42565.42575575579.79584.58554.46
22564.28578.75578.75540.17585.18578.75578.75602.86578.75574.62
23624.36606.58627.5627.5620.53658.88627.5627.5637.96636.46
24637641.7650650643.6649.1644.6630.8623.3614.6
Table A4. PV power output scenario.
Table A4. PV power output scenario.
Time12345
100000
200000
300000
400000
500000
600000
724.2324.2324.2324.5923.02
888.385.587.6987.2589.15
9150.67154.05156.6151.25152.78
10172.18165.21170.98172.14167.13
11233.38234.26183.17248.85230.61
12295.16264.27297.13299.42289.99
13213.42205.78219.42207.14175.09
14173.06176.04179.12153.23194.53
15144.36140.84130.64145.94140.84
16101.5105.4898.88102.18102.18
1756.6156.2459.5456.1456.71
187.647.597.467.737.78
190.090.090.090.090.08
2000000
2100000
2200000
2300000
2400000

References

  1. Nojavan, S.; Dibavar, A.A.; Farahmand-Zahed, A.; Zare, K. Risk-constrained scheduling of a CHP-based microgrid including hydrogen energy storage using robust optimization approach. Int. J. Hydrog. Energy 2020, 45, 32269–32284. [Google Scholar] [CrossRef]
  2. Lanz, U.Y.; Patric, U.Y.; Siy, J.; Chiu, A.; Charlle, S.Y. Target-oriented robust optimization of a microgrid system investment model. Front. Energy 2018, 12, 440–455. [Google Scholar]
  3. State Council. Opinions on Further Deepening the Reform of Power System. Available online: https://news.ncepu.edu.cn/xxyd/llxx/52826.htm (accessed on 15 March 2015).
  4. Peng, X.; Tao, X. Cooperative game of electricity retailers in China’s spot electricity market. Energy 2018, 145, 152–170. [Google Scholar] [CrossRef]
  5. Gildenhuys, T.; Zhang, L.; Ye, X.; Xia, X. Optimization of the Operational Cost and Environmental Impact of a Multi-Microgrid System. Energy Procedia 2019, 158, 3827–3832. [Google Scholar] [CrossRef]
  6. Akhtar, H.; Van-Hai, B.; Hak-Man, K. Robust Optimization-Based Scheduling of Multi-Microgrids Considering Uncertainties. Energies 2016, 9, 1–21. [Google Scholar]
  7. Wang, L.; Li, Q.; Ding, R.; Sun, M.; Wang, G. Integrated scheduling of energy supply and demand in microgrids under uncertainty: A robust multi-objective optimization approach. Energy 2017, 130, 1–14. [Google Scholar] [CrossRef]
  8. Li, W.; Wang, R.; Zhang, T.; Ming, M.; Lei, H. Multi-scenario microgrid optimization using an evolutionary multi-objective algorithm. Swarm Evol. Comput. 2019, 50, 100570. [Google Scholar] [CrossRef]
  9. Luo, Z.; Wu, Z.; Li, Z.; Cai, H.Y.; Li, B.J.; Gu, W. A two-stage optimization and control for CCHP microgrid energy management. Appl. Therm. Eng. 2017, 125, 513–522. [Google Scholar] [CrossRef]
  10. Wu, F.; Huang, S.; Li, R.; Guo, Q.; Sun, H.; Pan, Z. Research on the Collaborative Optimization of Multi-Energy Flow Microgrids. Energy Procedia 2016, 103, 345–350. [Google Scholar] [CrossRef]
  11. Li, Z.; Xu, Y. Optimal coordinated energy dispatch of a multi-energy microgrid in grid-connected and islanded modes. Appl. Energy 2018, 210, 974–986. [Google Scholar] [CrossRef]
  12. Liang, L.; Abdulkareem, S.S.; Rezvani, A.; Miveh, M.R.; Pazhoohesh, M. Optimal scheduling of a renewable based microgrid considering photovoltaic system and battery energy storage under uncertainty. J. Energy Chem. 2020, 28, 101306. [Google Scholar]
  13. Rezaei, N.; Khazali, A.; Mazidi, M.; Ahmadi, A. Economic energy and reserve management of renewable-based microgrids in the presence of electric vehicle aggregators: A robust optimization approach. Energy 2020, 201, 117629. [Google Scholar] [CrossRef]
  14. Mohammadi-Ivatloo, B.; Alipour, M.; Zare, K. Stochastic scheduling of renewable and CHP-based microgrids. IEEE Trans. Ind. Informat. 2015, 11, 1049–1058. [Google Scholar]
  15. Parhizi, S.; Khodaei, A.; Shahidehpour, M. Market-based versus price-based microgrid optimal scheduling. IEEE Trans. Smart Grid 2018, 9, 615–623. [Google Scholar] [CrossRef] [Green Version]
  16. Liu, G.; Xu, Y.; Tomsovic, K. Bidding strategy for microgrid in day-ahead market based on hybrid stochastic/robust optimization. IEEE Trans. Smart Grid 2015, 7, 227–237. [Google Scholar] [CrossRef]
  17. Gomes, I.; Pousinho, H.; Melicio, R.; Mendes, V. Stochastic Coordination of Joint Wind and Photovoltaic Systems with Energy Storage in Day-Ahead Market. Energy 2017, 124, 310–320. [Google Scholar] [CrossRef]
  18. Mehdizadeh, A.; Taghizadegan, N. Robust optimization approach for bidding strategy of renewable generation-based microgrid under demand side management. IET Renew. Power Gen. 2017, 11, 1446–1455. [Google Scholar] [CrossRef]
  19. Shayeghi, H.; Sobhani, B. Integrated offering strategy for profit enhancement of distributed resources and demand response in microgrids considering system uncertainties. Energy Convers. Manag. 2014, 87, 765–777. [Google Scholar] [CrossRef]
  20. Davatgaran, V.; Saniei, M.; Mortazavi, S.S. Optimal bidding strategy for an energy hub in energy market. Energy 2018, 148, 482–493. [Google Scholar] [CrossRef]
  21. Franke, G.; Schneider, M.; Weitzel, T.; Rinderknecht, S. Stochastic Optimization Model for Energy Management of a Hybrid Microgrid using Mixed Integer Linear Programming. IFAC-Papers OnLine 2020, 53, 12948–12955. [Google Scholar] [CrossRef]
  22. Chen, L.; Zhu, X.; Cai, J.; Xu, X.; Liu, H. Multi-time scale coordinated optimal dispatch of microgrid cluster based on MAS. Electr. Power Syst. Res. 2019, 177, 105976. [Google Scholar] [CrossRef]
  23. Das, S.; Basu, M. Day-ahead optimal bidding strategy of microgrid with demand response program considering uncertainties and outages of renewable energy resources. Energy 2020, 190, 116441. [Google Scholar] [CrossRef]
  24. Aboli, R.; Ramezani, M.; Falaghi, H. Joint optimization of day-ahead and uncertain near real-time operation of microgrids. Int. J. Electr. Power Energy Syst. 2019, 107, 34–46. [Google Scholar] [CrossRef]
  25. Zhang, B.; Li, Q.; Wang, L.; Feng, W. Robust optimization for energy transactions in multi-microgrids under uncertainty. Appl. Energy 2018, 217, 346–360. [Google Scholar] [CrossRef]
  26. Ottesen, S.Ø.; Tomasgard, A.; Fleten, S.E. Prosumer bidding and scheduling in electricity markets. Energy 2016, 94, 828–843. [Google Scholar] [CrossRef]
  27. Nguyen, D.T.; Le, L.B. Optimal bidding strategy for microgrids considering renewable energy and building thermal dynamics. IEEE Trans. Smart Grid 2014, 5, 1608–1620. [Google Scholar] [CrossRef]
  28. An, D.; Yang, Q.; Yu, W.; Yang, X.; Fu, X.; Zhao, W. Sto2Auc: A Stochastic Optimal Bidding Strategy for Microgrids. IEEE Internet Things 2017, 4, 2260–2274. [Google Scholar] [CrossRef]
  29. Shi, L.; Luo, Y.; Tu, G.Y. Bidding strategy of microgrid with consideration of uncertainty for participating in power market. Int. J. Electr. Power Energy Syst. 2014, 59, 1–13. [Google Scholar] [CrossRef]
  30. Fazlalipour, P.; Ehsan, M.; Mohammadi-Ivatloo, B. Risk-aware stochastic bidding strategy of renewable micro-grids in day-ahead and real-time markets. Energy 2019, 171, 689–700. [Google Scholar] [CrossRef]
  31. Ding, H.; Pinson, P.; Hu, Z.; Song, Y. Optimal Offering and Operating Strategies for Wind-Storage Systems with Linear Decision Rules. IEEE Trans. Power Syst. 2016, 31, 4755–4764. [Google Scholar] [CrossRef] [Green Version]
  32. Xiao, Q.; Chen, J.; Yang, X.; Zhu, L.; Zhang, M. Dynamic economic dispatch of microgrid with different types of distributed generations. Proc. CSU-EPSA 2013, 25, 22–28. [Google Scholar]
  33. Nikmehr, N.; Najafi-Ravadanegh, S. Optimal operation of distributed generations in micro-grids under uncertainties in load and renewable power generation using heuristic algorithm. IET Renew. Power Gen. 2015, 9, 982–990. [Google Scholar] [CrossRef]
  34. Asabin, V.; Kurmanova, L.; Petukhov, S.; Letyagin, P. Operation indicators of diesel locomotive engines using natural gas. Trans. Res. Procedia 2021, 54, 530–537. [Google Scholar] [CrossRef]
  35. Zhang, Y.; He, Y.; Yan, M.; Guo, C.; Song, D. Optimal dispatch of integrated electricity-natural gas system considering demand response and dynamic natural gas flow. Dianli Xitong Zidonghua (Autom. Electr. Power Sys.) 2018, 42, 7–14. [Google Scholar]
  36. Khanabadi, M.; Fu, Y.; Gong, L. A fully parallel stochastic multi-area power system operation considering large-scale wind power integration. IEEE Trans. Sustain. Energy 2018, 9, 138–147. [Google Scholar] [CrossRef]
  37. Tian, P.; Xiao, X.; Wang, K.; Ding, R. A hierarchical energy management system based on hierarchical optimization for microgrid community economic operation. IEEE Trans. Smart Grid 2016, 7, 2230–2241. [Google Scholar] [CrossRef]
Figure 1. Spot market trading strategy (DA: day-ahead, RT: real-time, PV: Photovoltaic, WT: wind turbine, GT: gas turbine, IBDR: incentive-based demand response, PBDR: price-based demand response).
Figure 1. Spot market trading strategy (DA: day-ahead, RT: real-time, PV: Photovoltaic, WT: wind turbine, GT: gas turbine, IBDR: incentive-based demand response, PBDR: price-based demand response).
Sustainability 13 06577 g001
Figure 2. Relationship between wind speed and wind power.
Figure 2. Relationship between wind speed and wind power.
Sustainability 13 06577 g002
Figure 3. Integrated solution framework.
Figure 3. Integrated solution framework.
Sustainability 13 06577 g003
Figure 4. Profile of changes in the day-ahead and real-time market prices.
Figure 4. Profile of changes in the day-ahead and real-time market prices.
Sustainability 13 06577 g004
Figure 5. Load in a typical day.
Figure 5. Load in a typical day.
Sustainability 13 06577 g005
Figure 6. The scenes of wind power.
Figure 6. The scenes of wind power.
Sustainability 13 06577 g006
Figure 7. The scenes of PV power.
Figure 7. The scenes of PV power.
Sustainability 13 06577 g007
Figure 8. Operating status of microgrid system components.
Figure 8. Operating status of microgrid system components.
Sustainability 13 06577 g008
Figure 9. Load reduction after demand response.
Figure 9. Load reduction after demand response.
Sustainability 13 06577 g009
Figure 10. Wind power scenarios in different climatic conditions.
Figure 10. Wind power scenarios in different climatic conditions.
Sustainability 13 06577 g010
Figure 11. Expected revenue of microgrid under different climatic conditions.
Figure 11. Expected revenue of microgrid under different climatic conditions.
Sustainability 13 06577 g011
Figure 12. Main influencing factors of expected revenue.
Figure 12. Main influencing factors of expected revenue.
Sustainability 13 06577 g012
Figure 13. Fluctuation of electricity price coefficients.
Figure 13. Fluctuation of electricity price coefficients.
Sustainability 13 06577 g013
Figure 14. Fluctuation of cost coefficient of each unit.
Figure 14. Fluctuation of cost coefficient of each unit.
Sustainability 13 06577 g014
Table 1. The price of electricity and load response rate.
Table 1. The price of electricity and load response rate.
GearElectricity Price/(USD/kWh)Load Response Rate/(%)
1<0.051107.9
20.051~0.059104.8
30.059~0.066102.3
40.051~0.059100.0
50.059~0.06698.0
60.066~0.07396.2
70.073~0.08094.6
80.080~0.08793.1
90.087~0.09491.8
10>0.09490.5
Table 2. Technical parameters of the microgrid system.
Table 2. Technical parameters of the microgrid system.
ParametersValueParametersValue
P S T C 300 kW Q C G T o f f 1 h
G S T C 1 kW/m2 P C G T min 10 kW
T S T C 25 °C P C G T m a x 100 kW
P r 650 kW η c h , η d i s 0.95
v i n 3 m/s P c h m a x 15 kW
v o u t 20 m/s P d i s m a x 20 kW
v r 11 m/s E b 100 kWh
η C G T 0.8 S O C min 10%
R D g , R U g 20 kW/h S O C max 90%
ς 0.2 γ C G T USD0.05/kWh
ε D A t 0.2 g C G T USD45/time
ε R T t 0.6 E s s USD0.10/kWh
Q C G T o n 2 h ϑ I B USD0.11/kWh
Table 3. Expected revenue of microgrid in different cases.
Table 3. Expected revenue of microgrid in different cases.
CaseCase1Case2Case3Case4
Expected revenue (USD)962.21957.11957.99952.80
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Dong, J.; Wang, Y.; Dou, X.; Chen, Z.; Zhang, Y.; Liu, Y. Research on Decision Optimization Model of Microgrid Participating in Spot Market Transaction. Sustainability 2021, 13, 6577. https://doi.org/10.3390/su13126577

AMA Style

Dong J, Wang Y, Dou X, Chen Z, Zhang Y, Liu Y. Research on Decision Optimization Model of Microgrid Participating in Spot Market Transaction. Sustainability. 2021; 13(12):6577. https://doi.org/10.3390/su13126577

Chicago/Turabian Style

Dong, Jun, Yuanyuan Wang, Xihao Dou, Zhengpeng Chen, Yaoyu Zhang, and Yao Liu. 2021. "Research on Decision Optimization Model of Microgrid Participating in Spot Market Transaction" Sustainability 13, no. 12: 6577. https://doi.org/10.3390/su13126577

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