# Chinese National Condition Based Power Dispatching Optimization in Microgrids

Authors: Gang Chen; Jian-Ming Wang; Xiao-Dong Yuan; Liang Chen; Lu-Jia Zhao; Yu-Ling He
Journal: Journal of Control Science and Engineering
 (2018)

---

## Abstract

This paper proposed a study on the power dispatching optimization in the microgrid aiming at Chinese national condition based on PSO algorithm. The whole work is on the basis of the weighted factor variation of the objective function due to different weather conditions. Three cases including the good contamination-diffusing weather condition, the smog weather condition, and the normal condition are considered, respectively. In the case of smog weather, the new energy generation and the battery system will be all out to use as less power as possible from the primary grid so that the pollution produced by coal consumption in the thermal power plants can be upmost reduced. However, in the case of perfect contamination-diffusing weather, the battery is not used to reserve its lifetime, while a large amount of exchanged power from the primary grid is used to obtain a most economic-efficient effect. In normal condition, the power dispatching is performed in a most balanced way considering not only the cost but also the environmental management. The case study in Suzhou Industrial Part confirms the effectiveness of the proposed method in this paper.


---

## Body

## 1. Introduction

As the rapid economic development, the electric power requirement is increasing. However, the primary energy source has become a serious problem as well as the environmental pollution [1, 2]. It is significant to develop the sustainable energy based power generation technologies such as wind generation and photovoltaic (PV) generation [3].Typically, as the wind generation and the photovoltaic generation are connected to the power grid with a larger and larger capacity, the voltage and frequency stability of the grid has become a serious problem. To solve this problem, the active distribution network (ADN) [4] and the optimal allocation of dispersed energy storage systems in AND [5] are employed. Hereafter, many effective methods, such as the generalized model of VSC-based energy storage systems [6] and the deployment strategy taking the two-stage solar photovoltaic-based stand-alone scheme and having battery as energy storage element [7], are proposed to secure the transient stability and the stationary stability. Moreover, the construction of smart grid which contains the microgrids and the distributed network is being carried out powerfully all over the world [8, 9], and the demand response management [10], the maximum power point tracking of the photovoltaic systems for fast changing environmental conditions [11], the power loss [12], and especially the scientific power dispatch [13] inside the microgrids have been great challenges.By far, both the AC microgrids and the DC microgrids have found the significance of optimization-based energy management (EM) [14–17]. It is shown that the bilevel control scheme (BLCS) with primary and secondary controllers is an effective method in achieving optimal dispatch of generation resources in systems with multiple microgrids [18]. Since microgrid’s economic load dispatch normally does not support distributed networks, especially when they belong to different companies and share different interests, it is significant to consider a dynamic electricity pricing policy to achieve optimal operation of distributed network with multimicrogrids [19]. This kind of policy now has been carried out in many countries as well as China. Then the further problem is how to dispatch the power output of the new energy in the microgrid as well as the exchanged power from the main grid in different time periods to not only satisfy the consumption request but also get a minimum cost.Usually, the power dispatch is considered within 24 hours as a typical cycle which can be classified into critical peak demand period, normal demand period, and valley demand period, of which the electricity prices are pretty different [20]. Nikmehr et al. have found that PSO algorithm is qualified to minimize the cost function and regulate the power demand and power transaction between each microgrid and the main grid [21], while Liao employed the chaotic quantum genetic algorithm to solve the environmental economic dispatch problem [22]. Koller et al. defined a degradation cost function to optimally control the battery energy storage system [23], and Su et al. discussed how to scientifically use the renewable sources in the microgrids for an optimal energy scheduling [24].However, most of the researches set up only one objective function aiming at getting the minimum cost as well as the balance among the consumption demand, the economic-efficiency, and the environmental management, while they rarely considered the impact of the special regional condition such as the local policy and the weather condition for contamination-diffusing on the power dispatching scheme. Unfortunately, the reality may request more than one optimization scheme due to different running conditions [25]. This multicondition requested situation now is very common in China, especially in the North area in winter [26, 27]. For example, when there is smog weather during the winter, the new energy based power generation is requested to be fully used while thermal power plant is expected to restrain its output to protect the environment, regardless of the cost under the guidance of the national and local policies [28, 29]. On the contrary, when there is perfect contamination-diffusing weather, it is permitted that the microgrid consumes more energy from the main grid produced by thermal power plants [30], which may lead to a restrain to the new energy generation due to its higher cost.As an improvement, this paper investigates the power dispatching optimization in microgrids aiming at Chinese national conditions based on PSO algorithm. The work takes the Suzhou Industrial Part as the study object and generally considers three conditions, that is, the good contamination-diffusing weather condition, the smog weather condition, and the normal condition. The construction of the whole paper is as follows. In Section2, the PSO algorithm for a special use under the Chinese national condition for the power dispatching optimization will be proposed. In Section 3, PSO-based power dispatching realizations for three performing conditions in Suzhou Industrial Part will be carried out, respectively. Comparison and discussion will be taken as well in this section to obtain a useful qualitative result. Finally, the main conclusions will be drawn in Section 4.


## 2. Optimization Scheme Based on PSO Algorithm

### 2.1. Boundary Condition and Limitation

For the battery, neither overcharge nor overdischarge is permitted. Instead, the state-of-charge (SOS) of the battery should meet(1)Smin≤St≤Smax,where St is the SOC at period t, while Smin and Smax are the minimum value and the maximum value of SOC, respectively. Usually, Smin is set to 0.3 while Smax is set to 0.95.During the unit periodΔt, the charge and discharge power of the battery should be balanced, and the value of SOC is defined as(2)St=S0+∑t=1TPcha,tXtΔt-∑t=1TPdis,tYtΔtEbXt·Yt=0,where S0 is the initial state of SOC, Pcha,t and Pdis,t are the charge power and the discharge power at period t, respectively, Xt and Yt stand for the charge and discharge status, respectively, Xt∈{0,1},Yt∈{0,1}, and T is the total period number.Meanwhile, considering that the charge-discharge power and the charge-discharge frequency are sensitively related to the battery lifetime, the maximum charge and discharge power each time is set no more than 20% of the rated capacityEb, while the charge-discharge frequency is restrained by the upper thresholds indicated in(3)0≤Pcha,t≤0.2EbXt0≤Pdis,t≤0.2EbYt∑t=1TXt+1-Xt≤N1∑t=1TYt+1-Yt≤N2.Besides the previously mentioned constrain conditions, the load and the power should still meet(4)Pload=Pexc+Ppho+Pwin+PbatPexc≤Plim,where Pexc is the exchanging power between the micro and the primary grid, Pload is the consuming power of the load in the microgrid, Ppho is the photovoltaic generation power, Pwin is the wind generation power, and Pbat is the power provided by the battery, and Plim is the utmost power that the microgrid can obtain from the primary grid.


### 2.2. Special PSO Algorithm for Chinese National Condition

#### 2.2.1. PSO Algorithm Application

Particle Swarm Optimization (PSO) simulates the birds’ food seeking behavior. Each bird is a particle [31]. For the power dispatching in the microgrid, each power output scheme, including the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid, is a particle. The particle swarm is a matrix, while the particle structure is actually an array vector which can be indicated as(5)Pi=Pwini,Pphi,Pbati,Pexci.Each particle has a fitness value for the objective function, as well as a speed to determine its forward direction and distance. This algorithm needs iterations to get the optimal power dispatching scheme. During the iteration each particle refreshes its own value according to the boundary condition and limitation described in Section2.1. For each particle, it has two extreme values, that is, the currently individual best solution value which is usually written as pBest, and the currently general best solution value which is usually written as gBest.Generally, the special PSO algorithm for Chinese national condition follows the following steps.(1) Condition Confirmation. Since there are three weather conditions relating to three different objective functions (see Section 2.2.2), the first performance is to check the weather condition mode according to the air quality index (AQI) and wind data from the weather bureau. The weather condition mode criterion taken in this paper is indicated in Table 1.Table 1
Weather condition mode criterion.
AQI and wind data AQI <= 50 & with wind AQI <= 100 & wind speed > 3 m/s 100 < AQI < 150 & with wind 150 < AQI <= 180 & wind speed > 3 m/s 180 < AQI < 250 & wind speed < 3 m/s AQI >= 250 Weather condition Good contamination-diffusing weather condition Normal condition Smog weather conditionAfter the weather condition is confirmed, the corresponding objective function will be distinguished. Then the power supply combination scheme and the weighted factor for each kind of power output will varied. More details will be described in Section2.2.2.(2) Initialization. The initial position of Particle i is(6)xid0=r3xdM-xdm+xdm,where r3 is a random between 0 and 1 and xdM and xdm are the maximum and the minimum values of the dth component of the location variation, respectively. In this paper d = 1, 2, 3, 4, respectively, denoting the four types of the power output, that is, the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid. And the initial velocity of Particle i is(7)vid0=r4vdM,where r4 is a random between 0 and 1 and vdM is the max velocity of the dth component of the particle. Usually, vdM=0.1xdM.In PSO algorithm, the inertia weight factorw is an important parameter that determines the general and the regional search ability. Yuhui Shi proposed the improved PSO in 1998 by optimizing w. It is shown that PSO can get a rapid convergence under a descending strategy when w is in the range of [0.4, 0.9], while the algorithm may fall into a regional optimization when w > 1.2. w can be calculated via(8)w=wstart-twstart-wendT,where wstart=0.9, wend=0.4, t is the current iterating value, and T is the maximum value of the iteration.Besidesw, there are still another two parameters, that is, c1 and c2, which, respectively, determine the effects of the individual history and the influence of the general swarm’s experience, on the particle motion trial. During the optimization calculation, usually c1 = c2 = 2. In this paper, we use the self-adapted method proposed by Ratnaweera et al., to solve the over-early convergence problem for a better optimizing effect. c1 and c2 can be obtained by(9)c1=c1f-c1etT+c1ec2=c2f-c2etT+c2e,where c1e and c1f are the beginning and final value of c1, respectively, while c2e and c2f are the beginning and final value of c2, respectively. In this paper, we wet c1e = 2.5, c1f = 0.5, c2e = 0.5, and c2f = 2.5.(3) Particle Fitness Judgment. If the current fitness value of the particle is better than its former value, the velocity and the location of the particle will be updated. Then, the general optimized values of the whole swarm will be searched and updated as the latest velocity and location.(4) Iteration Monitoring. The iteration will not stop and turn to step (3) for the further calculation until the interval number reaches the setting threshold or the result obtains a better accuracy than the setting one.


#### 2.2.2. Objective Functions and Optimization Scheme

The general idea for the power dispatching optimization is as follows.Typically, due to different running conditions, the objective function varies among the three cases. Case 1: there is no battery and no power exchange limit between the microgrid and the primary grid, while the minimum average unit power cost is set as the objective function. Case 2: the battery is taken into action, and the power exchange between the microgrid and the primary grid is 45 MW. Meanwhile, the wind generation and the photovoltaic generation are fully used. The objective function is still the minimum average unit power cost. Case 3: the battery is on work and the power exchange limit is also 45 MW, while the objective function is the minimum total generation cost.Correspondingly, case 1 is for the perfect contamination-diffusing weather condition, case 2 is for the smog weather condition, and case 3 is for the normal condition. The flowchart for normal condition is indicated in Figure1, while the working process logics for the other two conditions are generally similar, with the differences in the storage system use and the exchanged power limitation between the microgrid and the primary grid.(10)minCL=w1N·Cpho+w2N·Cwin+w3N·Cbat+w4N·∑t=1TRexcPexct+w5N·Cenvnormalw4S·∑t=1TRtPexct+w5S·Cenvsmogweatherw1G·Cpho+w2G·Cwin+w3G·Cbat+w4G·∑t=1TRtPexct+w5G·Cenvgoodweather,where(11)Cpho=∑t=1TRphotPphotCwin=∑t=1TRwintPwintCbat=∑t=1TRbattPbattCenv=∑t=1TRenvtPexctT=24×60nT.And w1N to w5N are the weighted factors for normal condition, w4S and w5S are the weighted factors for smog weather, and w1G to w5G are the weighted factors for good contamination-diffusion weather. In different cases, the weighted factors are assigned with different values. For example, w5G is smaller than w5N and much smaller than w5S. Cpho,Cwin,Cbat, and Cenv are the costs of the photovoltaic generation, the wind generation, the battery charge and discharge, and the environmental protection, respectively, R(t) and Pexc(t) are the unit price to buy the power from the primary and the power the microgrid absorbs from the primary grid at period t. Rpho(t) and Ppho(t), Rwin(t) and Pwin(t), Rbat(t) and Pbat(t), and Renv(t) and Penv(t) are the unit prices and consumed power at period t for the photovoltaic generation, the wind generation, the battery charge-discharge, the environmental governmental cost, respectively. T is the total number of the periods, while nT is the lasting time that each period contains.Figure 1
The general flow chart of the scheme for normal condition.To obtain the accurate value of each weighted factor, we employ the Analytic Hierarchy Process (AHP) method to get the weighted factors for the three conditions. For normal condition, the five weighted factors are treated generally equal, while in the haze weather condition the environmental management cost factor is treated as the most primary one which is followed with the power exchange cost between the microgrid and the primary grid. In this case the cost of the new energy generation and battery system is ignored due to the government policy. However, in the case of perfect contamination-diffusion weather, the priority orders arew3G,w4G,w2G,w1G, and w5G.To better dispatch the power inside the microgrid, the 24 hours are divided into 96 periods in general and each period is 15 minutes. These 96 periods are further classified into three sections, namely, the peak section, the valley section, and the stable section. According to the historical power consuming data, the load and the generation output in the microgrid are predicted, and the battery SOC is monitored.During the peak sections, when the wind generation and the photovoltaic generation are sufficient, the tactic is set to sell the power generated by the microgrid as much as possible. If the sold power is less than the maximum capacityPmax of the new energy, make the battery discharge preferentially and then dispatch the power generated by the wind and solar. If the wind and photovoltaic generation power is still redundant, use the surplus power to charge the battery.During the valley and stable sections, if the wind and the photovoltaic generation power is sufficient, charge the battery in advance and then sell the power to the primary grid.During the valley sections, if the wind and photovoltaic generation power is not sufficient, buy power from the primary grid with priority, and dispatch the power generated by the wind and solar energy if the bought power is more thanPmax. Meanwhile, charge the battery.During the stable sections, if the wind and photovoltaic generation is not sufficient, dispatch the new energy power firstly and then buy power from the primary grid when the consumed new energy power is more thanPmax. Meanwhile, the battery is under the charge state as well.


#### 2.2.3. Method to Get Weighted Factors

There are generally three steps to obtain the weighted factors(1) Set up the Layer Structure and the Judge Matrix. The layer structure is set up as Figure 2, where the voltage stability of the 3rd layer is ensured by the exchanged power limitation. Generally, the 5 factors in the 3rd layer are the essential ones, whose judge matrix can be indicated as(12)A∗=a11a12⋯a15a21a22⋯a25⋯⋯⋯⋯a51a22⋯a55,where aij is obtained by comparing the importance of factor i with factor j in the same layer. The first row to the last row and the first volume to the last volume, respectively, stand for the relative importance among the wind generation, the photovoltaic generation, the battery system, the power exchange between the microgrid and the primary grid, and the environmental management. For example, a11 to a1n denote the relative importance for the wind generation comparing with the photovoltaic generation, the battery system, the power exchange, and the environmental management. They can be indicated by the indexes of 1 to 9 and their reciprocals, with the meanings in Table 2.Table 2
Forming rules of the judge matrix.
Index Meaning 1 Equally important 3 A bit more important 5 Evidently important 7 Intensively important 9 Extremely important 2, 4, 6, 8 Between the previous two adjacent indexes reciprocals Judgeaij when factor i compares with j, while judge aji=1/aij when factor j compares with iFigure 2
Layer structure diagram.(2) Calculated the Weighted Factors. Firstly compute the element product of each row.(13)Mi=∏j=15aij,i=1,2,…,5.Secondly calculate the fifth root of Mi.(14)ki=Mi5,i=1,2,…,5.Thirdly normalize the vector K=k1,k2,k3,k4,k5T via(15)wi=ki∑i=15ki,i=1,2,…,5.Finally form the weighted factor vector as(16)W=w1,w2,w3,w4,w5.(3) Consistency Verification. The consistency verification is carried out by bringing in an extra index CR which can be written as(17)CR=CIRICI=λmax-nn-1λmax=n,where RI can be found in Table 3.Table 3
Value of RI for different domains.
Domainn 1 2 3 4 5 6 7 8 9 10 11 RI 0 0 0.58 0.9 1.12 1.24 1.32 1.41 1.45 1.49 1.51If CR is equal to or smaller than 0.01, it is thought that the consistency is qualified; otherwise the weighted factors should be recomputed. Usually, to make the consistency better, the domain is set less than 7. In this paper the domainn is 5.


## 2.1. Boundary Condition and Limitation

For the battery, neither overcharge nor overdischarge is permitted. Instead, the state-of-charge (SOS) of the battery should meet(1)Smin≤St≤Smax,where St is the SOC at period t, while Smin and Smax are the minimum value and the maximum value of SOC, respectively. Usually, Smin is set to 0.3 while Smax is set to 0.95.During the unit periodΔt, the charge and discharge power of the battery should be balanced, and the value of SOC is defined as(2)St=S0+∑t=1TPcha,tXtΔt-∑t=1TPdis,tYtΔtEbXt·Yt=0,where S0 is the initial state of SOC, Pcha,t and Pdis,t are the charge power and the discharge power at period t, respectively, Xt and Yt stand for the charge and discharge status, respectively, Xt∈{0,1},Yt∈{0,1}, and T is the total period number.Meanwhile, considering that the charge-discharge power and the charge-discharge frequency are sensitively related to the battery lifetime, the maximum charge and discharge power each time is set no more than 20% of the rated capacityEb, while the charge-discharge frequency is restrained by the upper thresholds indicated in(3)0≤Pcha,t≤0.2EbXt0≤Pdis,t≤0.2EbYt∑t=1TXt+1-Xt≤N1∑t=1TYt+1-Yt≤N2.Besides the previously mentioned constrain conditions, the load and the power should still meet(4)Pload=Pexc+Ppho+Pwin+PbatPexc≤Plim,where Pexc is the exchanging power between the micro and the primary grid, Pload is the consuming power of the load in the microgrid, Ppho is the photovoltaic generation power, Pwin is the wind generation power, and Pbat is the power provided by the battery, and Plim is the utmost power that the microgrid can obtain from the primary grid.


## 2.2. Special PSO Algorithm for Chinese National Condition

### 2.2.1. PSO Algorithm Application

Particle Swarm Optimization (PSO) simulates the birds’ food seeking behavior. Each bird is a particle [31]. For the power dispatching in the microgrid, each power output scheme, including the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid, is a particle. The particle swarm is a matrix, while the particle structure is actually an array vector which can be indicated as(5)Pi=Pwini,Pphi,Pbati,Pexci.Each particle has a fitness value for the objective function, as well as a speed to determine its forward direction and distance. This algorithm needs iterations to get the optimal power dispatching scheme. During the iteration each particle refreshes its own value according to the boundary condition and limitation described in Section2.1. For each particle, it has two extreme values, that is, the currently individual best solution value which is usually written as pBest, and the currently general best solution value which is usually written as gBest.Generally, the special PSO algorithm for Chinese national condition follows the following steps.(1) Condition Confirmation. Since there are three weather conditions relating to three different objective functions (see Section 2.2.2), the first performance is to check the weather condition mode according to the air quality index (AQI) and wind data from the weather bureau. The weather condition mode criterion taken in this paper is indicated in Table 1.Table 1
Weather condition mode criterion.
AQI and wind data AQI <= 50 & with wind AQI <= 100 & wind speed > 3 m/s 100 < AQI < 150 & with wind 150 < AQI <= 180 & wind speed > 3 m/s 180 < AQI < 250 & wind speed < 3 m/s AQI >= 250 Weather condition Good contamination-diffusing weather condition Normal condition Smog weather conditionAfter the weather condition is confirmed, the corresponding objective function will be distinguished. Then the power supply combination scheme and the weighted factor for each kind of power output will varied. More details will be described in Section2.2.2.(2) Initialization. The initial position of Particle i is(6)xid0=r3xdM-xdm+xdm,where r3 is a random between 0 and 1 and xdM and xdm are the maximum and the minimum values of the dth component of the location variation, respectively. In this paper d = 1, 2, 3, 4, respectively, denoting the four types of the power output, that is, the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid. And the initial velocity of Particle i is(7)vid0=r4vdM,where r4 is a random between 0 and 1 and vdM is the max velocity of the dth component of the particle. Usually, vdM=0.1xdM.In PSO algorithm, the inertia weight factorw is an important parameter that determines the general and the regional search ability. Yuhui Shi proposed the improved PSO in 1998 by optimizing w. It is shown that PSO can get a rapid convergence under a descending strategy when w is in the range of [0.4, 0.9], while the algorithm may fall into a regional optimization when w > 1.2. w can be calculated via(8)w=wstart-twstart-wendT,where wstart=0.9, wend=0.4, t is the current iterating value, and T is the maximum value of the iteration.Besidesw, there are still another two parameters, that is, c1 and c2, which, respectively, determine the effects of the individual history and the influence of the general swarm’s experience, on the particle motion trial. During the optimization calculation, usually c1 = c2 = 2. In this paper, we use the self-adapted method proposed by Ratnaweera et al., to solve the over-early convergence problem for a better optimizing effect. c1 and c2 can be obtained by(9)c1=c1f-c1etT+c1ec2=c2f-c2etT+c2e,where c1e and c1f are the beginning and final value of c1, respectively, while c2e and c2f are the beginning and final value of c2, respectively. In this paper, we wet c1e = 2.5, c1f = 0.5, c2e = 0.5, and c2f = 2.5.(3) Particle Fitness Judgment. If the current fitness value of the particle is better than its former value, the velocity and the location of the particle will be updated. Then, the general optimized values of the whole swarm will be searched and updated as the latest velocity and location.(4) Iteration Monitoring. The iteration will not stop and turn to step (3) for the further calculation until the interval number reaches the setting threshold or the result obtains a better accuracy than the setting one.


### 2.2.2. Objective Functions and Optimization Scheme

The general idea for the power dispatching optimization is as follows.Typically, due to different running conditions, the objective function varies among the three cases. Case 1: there is no battery and no power exchange limit between the microgrid and the primary grid, while the minimum average unit power cost is set as the objective function. Case 2: the battery is taken into action, and the power exchange between the microgrid and the primary grid is 45 MW. Meanwhile, the wind generation and the photovoltaic generation are fully used. The objective function is still the minimum average unit power cost. Case 3: the battery is on work and the power exchange limit is also 45 MW, while the objective function is the minimum total generation cost.Correspondingly, case 1 is for the perfect contamination-diffusing weather condition, case 2 is for the smog weather condition, and case 3 is for the normal condition. The flowchart for normal condition is indicated in Figure1, while the working process logics for the other two conditions are generally similar, with the differences in the storage system use and the exchanged power limitation between the microgrid and the primary grid.(10)minCL=w1N·Cpho+w2N·Cwin+w3N·Cbat+w4N·∑t=1TRexcPexct+w5N·Cenvnormalw4S·∑t=1TRtPexct+w5S·Cenvsmogweatherw1G·Cpho+w2G·Cwin+w3G·Cbat+w4G·∑t=1TRtPexct+w5G·Cenvgoodweather,where(11)Cpho=∑t=1TRphotPphotCwin=∑t=1TRwintPwintCbat=∑t=1TRbattPbattCenv=∑t=1TRenvtPexctT=24×60nT.And w1N to w5N are the weighted factors for normal condition, w4S and w5S are the weighted factors for smog weather, and w1G to w5G are the weighted factors for good contamination-diffusion weather. In different cases, the weighted factors are assigned with different values. For example, w5G is smaller than w5N and much smaller than w5S. Cpho,Cwin,Cbat, and Cenv are the costs of the photovoltaic generation, the wind generation, the battery charge and discharge, and the environmental protection, respectively, R(t) and Pexc(t) are the unit price to buy the power from the primary and the power the microgrid absorbs from the primary grid at period t. Rpho(t) and Ppho(t), Rwin(t) and Pwin(t), Rbat(t) and Pbat(t), and Renv(t) and Penv(t) are the unit prices and consumed power at period t for the photovoltaic generation, the wind generation, the battery charge-discharge, the environmental governmental cost, respectively. T is the total number of the periods, while nT is the lasting time that each period contains.Figure 1
The general flow chart of the scheme for normal condition.To obtain the accurate value of each weighted factor, we employ the Analytic Hierarchy Process (AHP) method to get the weighted factors for the three conditions. For normal condition, the five weighted factors are treated generally equal, while in the haze weather condition the environmental management cost factor is treated as the most primary one which is followed with the power exchange cost between the microgrid and the primary grid. In this case the cost of the new energy generation and battery system is ignored due to the government policy. However, in the case of perfect contamination-diffusion weather, the priority orders arew3G,w4G,w2G,w1G, and w5G.To better dispatch the power inside the microgrid, the 24 hours are divided into 96 periods in general and each period is 15 minutes. These 96 periods are further classified into three sections, namely, the peak section, the valley section, and the stable section. According to the historical power consuming data, the load and the generation output in the microgrid are predicted, and the battery SOC is monitored.During the peak sections, when the wind generation and the photovoltaic generation are sufficient, the tactic is set to sell the power generated by the microgrid as much as possible. If the sold power is less than the maximum capacityPmax of the new energy, make the battery discharge preferentially and then dispatch the power generated by the wind and solar. If the wind and photovoltaic generation power is still redundant, use the surplus power to charge the battery.During the valley and stable sections, if the wind and the photovoltaic generation power is sufficient, charge the battery in advance and then sell the power to the primary grid.During the valley sections, if the wind and photovoltaic generation power is not sufficient, buy power from the primary grid with priority, and dispatch the power generated by the wind and solar energy if the bought power is more thanPmax. Meanwhile, charge the battery.During the stable sections, if the wind and photovoltaic generation is not sufficient, dispatch the new energy power firstly and then buy power from the primary grid when the consumed new energy power is more thanPmax. Meanwhile, the battery is under the charge state as well.


### 2.2.3. Method to Get Weighted Factors

There are generally three steps to obtain the weighted factors(1) Set up the Layer Structure and the Judge Matrix. The layer structure is set up as Figure 2, where the voltage stability of the 3rd layer is ensured by the exchanged power limitation. Generally, the 5 factors in the 3rd layer are the essential ones, whose judge matrix can be indicated as(12)A∗=a11a12⋯a15a21a22⋯a25⋯⋯⋯⋯a51a22⋯a55,where aij is obtained by comparing the importance of factor i with factor j in the same layer. The first row to the last row and the first volume to the last volume, respectively, stand for the relative importance among the wind generation, the photovoltaic generation, the battery system, the power exchange between the microgrid and the primary grid, and the environmental management. For example, a11 to a1n denote the relative importance for the wind generation comparing with the photovoltaic generation, the battery system, the power exchange, and the environmental management. They can be indicated by the indexes of 1 to 9 and their reciprocals, with the meanings in Table 2.Table 2
Forming rules of the judge matrix.
Index Meaning 1 Equally important 3 A bit more important 5 Evidently important 7 Intensively important 9 Extremely important 2, 4, 6, 8 Between the previous two adjacent indexes reciprocals Judgeaij when factor i compares with j, while judge aji=1/aij when factor j compares with iFigure 2
Layer structure diagram.(2) Calculated the Weighted Factors. Firstly compute the element product of each row.(13)Mi=∏j=15aij,i=1,2,…,5.Secondly calculate the fifth root of Mi.(14)ki=Mi5,i=1,2,…,5.Thirdly normalize the vector K=k1,k2,k3,k4,k5T via(15)wi=ki∑i=15ki,i=1,2,…,5.Finally form the weighted factor vector as(16)W=w1,w2,w3,w4,w5.(3) Consistency Verification. The consistency verification is carried out by bringing in an extra index CR which can be written as(17)CR=CIRICI=λmax-nn-1λmax=n,where RI can be found in Table 3.Table 3
Value of RI for different domains.
Domainn 1 2 3 4 5 6 7 8 9 10 11 RI 0 0 0.58 0.9 1.12 1.24 1.32 1.41 1.45 1.49 1.51If CR is equal to or smaller than 0.01, it is thought that the consistency is qualified; otherwise the weighted factors should be recomputed. Usually, to make the consistency better, the domain is set less than 7. In this paper the domainn is 5.


## 2.2.1. PSO Algorithm Application

Particle Swarm Optimization (PSO) simulates the birds’ food seeking behavior. Each bird is a particle [31]. For the power dispatching in the microgrid, each power output scheme, including the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid, is a particle. The particle swarm is a matrix, while the particle structure is actually an array vector which can be indicated as(5)Pi=Pwini,Pphi,Pbati,Pexci.Each particle has a fitness value for the objective function, as well as a speed to determine its forward direction and distance. This algorithm needs iterations to get the optimal power dispatching scheme. During the iteration each particle refreshes its own value according to the boundary condition and limitation described in Section2.1. For each particle, it has two extreme values, that is, the currently individual best solution value which is usually written as pBest, and the currently general best solution value which is usually written as gBest.Generally, the special PSO algorithm for Chinese national condition follows the following steps.(1) Condition Confirmation. Since there are three weather conditions relating to three different objective functions (see Section 2.2.2), the first performance is to check the weather condition mode according to the air quality index (AQI) and wind data from the weather bureau. The weather condition mode criterion taken in this paper is indicated in Table 1.Table 1
Weather condition mode criterion.
AQI and wind data AQI <= 50 & with wind AQI <= 100 & wind speed > 3 m/s 100 < AQI < 150 & with wind 150 < AQI <= 180 & wind speed > 3 m/s 180 < AQI < 250 & wind speed < 3 m/s AQI >= 250 Weather condition Good contamination-diffusing weather condition Normal condition Smog weather conditionAfter the weather condition is confirmed, the corresponding objective function will be distinguished. Then the power supply combination scheme and the weighted factor for each kind of power output will varied. More details will be described in Section2.2.2.(2) Initialization. The initial position of Particle i is(6)xid0=r3xdM-xdm+xdm,where r3 is a random between 0 and 1 and xdM and xdm are the maximum and the minimum values of the dth component of the location variation, respectively. In this paper d = 1, 2, 3, 4, respectively, denoting the four types of the power output, that is, the wind generation output, the PV generation output, the storage output, and the exchanged power from the main grid. And the initial velocity of Particle i is(7)vid0=r4vdM,where r4 is a random between 0 and 1 and vdM is the max velocity of the dth component of the particle. Usually, vdM=0.1xdM.In PSO algorithm, the inertia weight factorw is an important parameter that determines the general and the regional search ability. Yuhui Shi proposed the improved PSO in 1998 by optimizing w. It is shown that PSO can get a rapid convergence under a descending strategy when w is in the range of [0.4, 0.9], while the algorithm may fall into a regional optimization when w > 1.2. w can be calculated via(8)w=wstart-twstart-wendT,where wstart=0.9, wend=0.4, t is the current iterating value, and T is the maximum value of the iteration.Besidesw, there are still another two parameters, that is, c1 and c2, which, respectively, determine the effects of the individual history and the influence of the general swarm’s experience, on the particle motion trial. During the optimization calculation, usually c1 = c2 = 2. In this paper, we use the self-adapted method proposed by Ratnaweera et al., to solve the over-early convergence problem for a better optimizing effect. c1 and c2 can be obtained by(9)c1=c1f-c1etT+c1ec2=c2f-c2etT+c2e,where c1e and c1f are the beginning and final value of c1, respectively, while c2e and c2f are the beginning and final value of c2, respectively. In this paper, we wet c1e = 2.5, c1f = 0.5, c2e = 0.5, and c2f = 2.5.(3) Particle Fitness Judgment. If the current fitness value of the particle is better than its former value, the velocity and the location of the particle will be updated. Then, the general optimized values of the whole swarm will be searched and updated as the latest velocity and location.(4) Iteration Monitoring. The iteration will not stop and turn to step (3) for the further calculation until the interval number reaches the setting threshold or the result obtains a better accuracy than the setting one.


## 2.2.2. Objective Functions and Optimization Scheme

The general idea for the power dispatching optimization is as follows.Typically, due to different running conditions, the objective function varies among the three cases. Case 1: there is no battery and no power exchange limit between the microgrid and the primary grid, while the minimum average unit power cost is set as the objective function. Case 2: the battery is taken into action, and the power exchange between the microgrid and the primary grid is 45 MW. Meanwhile, the wind generation and the photovoltaic generation are fully used. The objective function is still the minimum average unit power cost. Case 3: the battery is on work and the power exchange limit is also 45 MW, while the objective function is the minimum total generation cost.Correspondingly, case 1 is for the perfect contamination-diffusing weather condition, case 2 is for the smog weather condition, and case 3 is for the normal condition. The flowchart for normal condition is indicated in Figure1, while the working process logics for the other two conditions are generally similar, with the differences in the storage system use and the exchanged power limitation between the microgrid and the primary grid.(10)minCL=w1N·Cpho+w2N·Cwin+w3N·Cbat+w4N·∑t=1TRexcPexct+w5N·Cenvnormalw4S·∑t=1TRtPexct+w5S·Cenvsmogweatherw1G·Cpho+w2G·Cwin+w3G·Cbat+w4G·∑t=1TRtPexct+w5G·Cenvgoodweather,where(11)Cpho=∑t=1TRphotPphotCwin=∑t=1TRwintPwintCbat=∑t=1TRbattPbattCenv=∑t=1TRenvtPexctT=24×60nT.And w1N to w5N are the weighted factors for normal condition, w4S and w5S are the weighted factors for smog weather, and w1G to w5G are the weighted factors for good contamination-diffusion weather. In different cases, the weighted factors are assigned with different values. For example, w5G is smaller than w5N and much smaller than w5S. Cpho,Cwin,Cbat, and Cenv are the costs of the photovoltaic generation, the wind generation, the battery charge and discharge, and the environmental protection, respectively, R(t) and Pexc(t) are the unit price to buy the power from the primary and the power the microgrid absorbs from the primary grid at period t. Rpho(t) and Ppho(t), Rwin(t) and Pwin(t), Rbat(t) and Pbat(t), and Renv(t) and Penv(t) are the unit prices and consumed power at period t for the photovoltaic generation, the wind generation, the battery charge-discharge, the environmental governmental cost, respectively. T is the total number of the periods, while nT is the lasting time that each period contains.Figure 1
The general flow chart of the scheme for normal condition.To obtain the accurate value of each weighted factor, we employ the Analytic Hierarchy Process (AHP) method to get the weighted factors for the three conditions. For normal condition, the five weighted factors are treated generally equal, while in the haze weather condition the environmental management cost factor is treated as the most primary one which is followed with the power exchange cost between the microgrid and the primary grid. In this case the cost of the new energy generation and battery system is ignored due to the government policy. However, in the case of perfect contamination-diffusion weather, the priority orders arew3G,w4G,w2G,w1G, and w5G.To better dispatch the power inside the microgrid, the 24 hours are divided into 96 periods in general and each period is 15 minutes. These 96 periods are further classified into three sections, namely, the peak section, the valley section, and the stable section. According to the historical power consuming data, the load and the generation output in the microgrid are predicted, and the battery SOC is monitored.During the peak sections, when the wind generation and the photovoltaic generation are sufficient, the tactic is set to sell the power generated by the microgrid as much as possible. If the sold power is less than the maximum capacityPmax of the new energy, make the battery discharge preferentially and then dispatch the power generated by the wind and solar. If the wind and photovoltaic generation power is still redundant, use the surplus power to charge the battery.During the valley and stable sections, if the wind and the photovoltaic generation power is sufficient, charge the battery in advance and then sell the power to the primary grid.During the valley sections, if the wind and photovoltaic generation power is not sufficient, buy power from the primary grid with priority, and dispatch the power generated by the wind and solar energy if the bought power is more thanPmax. Meanwhile, charge the battery.During the stable sections, if the wind and photovoltaic generation is not sufficient, dispatch the new energy power firstly and then buy power from the primary grid when the consumed new energy power is more thanPmax. Meanwhile, the battery is under the charge state as well.


## 2.2.3. Method to Get Weighted Factors

There are generally three steps to obtain the weighted factors(1) Set up the Layer Structure and the Judge Matrix. The layer structure is set up as Figure 2, where the voltage stability of the 3rd layer is ensured by the exchanged power limitation. Generally, the 5 factors in the 3rd layer are the essential ones, whose judge matrix can be indicated as(12)A∗=a11a12⋯a15a21a22⋯a25⋯⋯⋯⋯a51a22⋯a55,where aij is obtained by comparing the importance of factor i with factor j in the same layer. The first row to the last row and the first volume to the last volume, respectively, stand for the relative importance among the wind generation, the photovoltaic generation, the battery system, the power exchange between the microgrid and the primary grid, and the environmental management. For example, a11 to a1n denote the relative importance for the wind generation comparing with the photovoltaic generation, the battery system, the power exchange, and the environmental management. They can be indicated by the indexes of 1 to 9 and their reciprocals, with the meanings in Table 2.Table 2
Forming rules of the judge matrix.
Index Meaning 1 Equally important 3 A bit more important 5 Evidently important 7 Intensively important 9 Extremely important 2, 4, 6, 8 Between the previous two adjacent indexes reciprocals Judgeaij when factor i compares with j, while judge aji=1/aij when factor j compares with iFigure 2
Layer structure diagram.(2) Calculated the Weighted Factors. Firstly compute the element product of each row.(13)Mi=∏j=15aij,i=1,2,…,5.Secondly calculate the fifth root of Mi.(14)ki=Mi5,i=1,2,…,5.Thirdly normalize the vector K=k1,k2,k3,k4,k5T via(15)wi=ki∑i=15ki,i=1,2,…,5.Finally form the weighted factor vector as(16)W=w1,w2,w3,w4,w5.(3) Consistency Verification. The consistency verification is carried out by bringing in an extra index CR which can be written as(17)CR=CIRICI=λmax-nn-1λmax=n,where RI can be found in Table 3.Table 3
Value of RI for different domains.
Domainn 1 2 3 4 5 6 7 8 9 10 11 RI 0 0 0.58 0.9 1.12 1.24 1.32 1.41 1.45 1.49 1.51If CR is equal to or smaller than 0.01, it is thought that the consistency is qualified; otherwise the weighted factors should be recomputed. Usually, to make the consistency better, the domain is set less than 7. In this paper the domainn is 5.


## 3. Power Dispatching Optimization Case Study

### 3.1. General Introduction to Study Object

Suzhou Industrial Part, which is set up in 1994, is a key cooperative project between China and Singapore, covering 278 square kilometers. Inside the park there are more than 800 financial institutions, more than 30 public technology service platforms and 20 national innovation bases, 28 colleges of China and foreign countries, 480 research-development institutions, and more than 10 national scientific institutes. There are also 156 key projects carried out by 92 of the world top 500 enterprises and 92 headquarters of the city-level organizations.Currently, the park includes an international scientific section, a creative industry section, a Suzhou nanometer section, and a biological industry section which consumes a large amount of electric power. It is shown that Suzhou is one of the cities which consume the most electric power in China.The microgrid of Suzhou Industrial Part consists of different types of loads including 2 charging stations for more than 1000 electric vehicles and 100 distributed generations including 25 MW photovoltaic generation, 50 MW wind generation, and 22 MW storage capacity, as indicated in Figure3. The power output of the wind generation and the photovoltaic generation is indicated in Figure 4, where the typical load distribution in the whole day is illustrated as well. To better demonstrate the amount comparison between the generation output and the consumption power, in Figure 4 the photovoltaic generation output is superimposed to the wind generation output.Figure 3
Constitution of microgrid of Suzhou Industrial Park.Figure 4
New energy power generation output and load distribution.It is suggested from Figure4 that the new energy generation output fluctuates seriously. Therefore, the scientific power dispatching inside the microgrid is significant. The power price for selling and purchasing is indicated in Table 4, while the unit power cost is shown in Table 5.Table 4
Power prices in different times of the whole day (unit: RMB/kWh).
Times 0:00–7:00 7:00–10:00 10:00–15:00 15:00–18:00 18:00–21:00 21:00–24:00 Price to sell power 0.22 0.42 0.65 0.42 0.65 0.42 Price to buy power 0.25 0.53 0.82 0.53 0.82 0.53Table 5
Power cost for different generation type.
Type Wind generation Photovoltaic generation Battery cost for once charge-discharge Cost 0.52 RMB/kWh 0.75 RMB/kWh 0.2 RMB/kWh


### 3.2. Case 1 Study

Under the perfect contamination-diffusing weather condition, the battery is not used in order to reserve its lifetime. In this case, there is no particular restrict to the exchanging power between the microgrid and the primary grid. And the wind generation power, the photovoltaic generation power, and the exchanged power from the primary grid are indicated in Figure5.Figure 5
Power dispatching in good contamination-diffusing weather conditions.In this case, the power consumption for a whole day costs 316724 RMB, with the unit power cost at 0.33 RMB/kWh. Due to the varying price both for power buying and selling, the wind generation output and the photovoltaic generation output are changing during different time periods. It is suggested from Figure5 that the wind generation has a higher use rate than the photovoltaic generation. During 0:00 to 10:00 the wind generation and the photovoltaic generation have almost no power output, while during 10:00 to 23:00 the wind generation keeps exporting power all the time. The photovoltaic generation generally only works during 12:00 to 14:00, in which period the wind generation has the equivalent power output as the photovoltaic generation. The power gap between the load and the new energy generation output will be fulfilled by the exchange power from the primary grid.


### 3.3. Case 2 Study

Under the smog weather condition, the Chinese government has carried out specific policies to improve the air condition, including constraining the thermal power generation due to its smog emission. In this case, there is a restrict requiring less than 45 Mw for the power exchanging between the microgrid and the primary grid. Meanwhile, the new energy generation and the battery are required an utmost use while the cost is put into the secondary position. The power dispatching for each kind of generation is indicated in Figure6.Figure 6
Power dispatching in smog weather condition.The general cost for 24 hours in this case is 405670 RMB, and the unit power cost is 0.427 RMB/kWh. It can be seen that the battery is employed in the two periods during 13:00 to 14:00 and 18:00 to 20:00 when the price for buying power from the primary grid is most expensive. This has somewhat obtained a good economic effect. However, since currently the power generation of the new energy is much inferior in cost to the traditional thermal power generation, the total cost for a whole day in this case is much higher than that in case 1.


### 3.4. Case 3 Study

In normal condition, the wind generation, the photovoltaic generation, and the battery are performed in a most balancing way considering not only the economic factors but also the environmental protection effects. The power dispatching for each kind of generation is indicated in Figure7.Figure 7
Power dispatching in normal condition.In this case, the general power cost for 24 hours is 358866.2 RMB, while the unit power cost is 0.378 RMB/kWh. As indicated in Figure7, the wind generation outputs power during the 40th to the 60th periods (10:00 to 15:00) and the 72nd to 96th periods (18:00–24:00), while the photovoltaic generation generally performs during the 40th to the 60th periods (10:00 to 15:00) only. Similarly, the battery is employed mainly during the 46th to 60th periods (11:30–15:00). It is easy to find that these periods generally cover the most expensive time sessions of power purchasing from the primary grid.


### 3.5. Comparison and Discussion

To obtain more details about the power dispatching of each kind of generation, comparison curves for the wind generation, the photovoltaic generation, the battery discharging, and the exchanged power from the primary grid, are indicated in Figures8(a), 8(b), 8(c), and 8(d), respectively.Figure 8
Power dispatching comparison, respectively, for (a) wind generation, (b) photovoltaic generation, (c) battery discharging, and (d) exchanged power from primary grid.
(a) (b) (c) (d)As indicated in Figure8(a), the wind generation power dispatching for different cases is greatly different during periods 1 to 40 (0 : 00–10:00), while it is very similar for the three cases during periods 44 to 92 (11:00–23:00). Moreover, between 0:00–10:00, only in case 2 (smog weather case) the wind generation outputs the power and fulfills the load, while in other cases it is rarely used due to its higher cost than the traditional thermal power generation.For the photovoltaic generation showing in Figure8(b), it outputs more power during 11:00–15:00 in good contamination-diffusing weather conditions than other cases due to the good weather (usually also with a perfect sunshine) and the relatively low cost. However, in smog weather condition, the power output of the photovoltaic generation will have less fluctuation due to the environmental management request (it will try best to output as much power as possible), though constrained by the sunshine intensity the power output is less than case 1. In normal condition, the photovoltaic generation outputs the minimum power among the three cases.For the battery discharging, it is illustrated in Figure8(c) that the battery outputs more power than in normal condition, particularly between 18:00–20:00 (periods 72–80), while in the good contamination-diffusing weather condition the battery is not used so that its lifetime can be stored for the future use.When it comes to the exchanged power from the primary grid, as indicated in Figure8(d), it confirms the dominant position of the thermal power generation in China (the power from the primary grid generally comes from the thermal power plants). No matter in which case, the exchanged power from the primary grid still occupies the main percentage. This indicates the developing potential for the new energy generation. It is transparent that, in the good contamination-diffusing weather conditions, the power from the primary grid is the most, while in the smog weather condition it will be the least due to the utmost output of new energy generation and battery discharging.It is also suggested by the cost comparison among the three cases that the normal power dispatching will spend a medium cost. It is more expensive than the good contamination-diffusing weather condition while it is relatively more cost-efficient than the smog weather conditions. The general cost in normal condition is 13.3% more expensive than the good contamination-diffusing weather condition, while it is 11.5% cheaper than the smog weather condition.This can be thought as reasonable on the economic and the environmental sides. During the smog weather period, people are suffering the air pollution and the government is supposed to reduce the emission of all kinds of contamination. Consequently, the exchanged power from the primary grid generated by the thermal power plant based on fossil fuel consumption is supposed to be used as less as possible, while the new energy generation and the storage system are supposed to output their utmost capacity. It is easy to understand that in this case the cost will be higher due to the photovoltaic and wind generation performance which has a more expensive price than the traditional thermal power generation. On the contrary, under the good contamination-diffusing weather conditions, the microgrid is able to use as much power from the primary grid as possible to reduce the cost, as long as it meets the environmental management request. Intermediately, the normal condition takes a balanced performance for the power dispatching to boost not only an economic effect but also a qualified environment protecting factor at the same time.Under the guidance of the policy which has strong Chinese national condition features, contaminant emission has been greatly reduced due to the power dispatching optimization in smog weather condition as well as other measurements. Figure9(a) shows the contaminant density developing trend in Suzhou Industrial Part, while Figures 9(b)–9(d) represent the general graphical change of Suzhou Industrial Part in the recent three years. Though the air condition improvement relies on many factors, it still shows the effectiveness of the proposed power dispatching method because many other measures such as using the electrical heating system in winter instead of coal combustion still depend on the electric power output. Therefore, generally, the proposed method in this paper is qualified and can be transferred to other similar cases.Figure 9
Comparison of the smog reduction around the Gate of the Orient.
(a)
Contaminant developing tendency (b)
2015 winter (c)
2016 winter (d)
2017 winter


## 3.1. General Introduction to Study Object

Suzhou Industrial Part, which is set up in 1994, is a key cooperative project between China and Singapore, covering 278 square kilometers. Inside the park there are more than 800 financial institutions, more than 30 public technology service platforms and 20 national innovation bases, 28 colleges of China and foreign countries, 480 research-development institutions, and more than 10 national scientific institutes. There are also 156 key projects carried out by 92 of the world top 500 enterprises and 92 headquarters of the city-level organizations.Currently, the park includes an international scientific section, a creative industry section, a Suzhou nanometer section, and a biological industry section which consumes a large amount of electric power. It is shown that Suzhou is one of the cities which consume the most electric power in China.The microgrid of Suzhou Industrial Part consists of different types of loads including 2 charging stations for more than 1000 electric vehicles and 100 distributed generations including 25 MW photovoltaic generation, 50 MW wind generation, and 22 MW storage capacity, as indicated in Figure3. The power output of the wind generation and the photovoltaic generation is indicated in Figure 4, where the typical load distribution in the whole day is illustrated as well. To better demonstrate the amount comparison between the generation output and the consumption power, in Figure 4 the photovoltaic generation output is superimposed to the wind generation output.Figure 3
Constitution of microgrid of Suzhou Industrial Park.Figure 4
New energy power generation output and load distribution.It is suggested from Figure4 that the new energy generation output fluctuates seriously. Therefore, the scientific power dispatching inside the microgrid is significant. The power price for selling and purchasing is indicated in Table 4, while the unit power cost is shown in Table 5.Table 4
Power prices in different times of the whole day (unit: RMB/kWh).
Times 0:00–7:00 7:00–10:00 10:00–15:00 15:00–18:00 18:00–21:00 21:00–24:00 Price to sell power 0.22 0.42 0.65 0.42 0.65 0.42 Price to buy power 0.25 0.53 0.82 0.53 0.82 0.53Table 5
Power cost for different generation type.
Type Wind generation Photovoltaic generation Battery cost for once charge-discharge Cost 0.52 RMB/kWh 0.75 RMB/kWh 0.2 RMB/kWh


## 3.2. Case 1 Study

Under the perfect contamination-diffusing weather condition, the battery is not used in order to reserve its lifetime. In this case, there is no particular restrict to the exchanging power between the microgrid and the primary grid. And the wind generation power, the photovoltaic generation power, and the exchanged power from the primary grid are indicated in Figure5.Figure 5
Power dispatching in good contamination-diffusing weather conditions.In this case, the power consumption for a whole day costs 316724 RMB, with the unit power cost at 0.33 RMB/kWh. Due to the varying price both for power buying and selling, the wind generation output and the photovoltaic generation output are changing during different time periods. It is suggested from Figure5 that the wind generation has a higher use rate than the photovoltaic generation. During 0:00 to 10:00 the wind generation and the photovoltaic generation have almost no power output, while during 10:00 to 23:00 the wind generation keeps exporting power all the time. The photovoltaic generation generally only works during 12:00 to 14:00, in which period the wind generation has the equivalent power output as the photovoltaic generation. The power gap between the load and the new energy generation output will be fulfilled by the exchange power from the primary grid.


## 3.3. Case 2 Study

Under the smog weather condition, the Chinese government has carried out specific policies to improve the air condition, including constraining the thermal power generation due to its smog emission. In this case, there is a restrict requiring less than 45 Mw for the power exchanging between the microgrid and the primary grid. Meanwhile, the new energy generation and the battery are required an utmost use while the cost is put into the secondary position. The power dispatching for each kind of generation is indicated in Figure6.Figure 6
Power dispatching in smog weather condition.The general cost for 24 hours in this case is 405670 RMB, and the unit power cost is 0.427 RMB/kWh. It can be seen that the battery is employed in the two periods during 13:00 to 14:00 and 18:00 to 20:00 when the price for buying power from the primary grid is most expensive. This has somewhat obtained a good economic effect. However, since currently the power generation of the new energy is much inferior in cost to the traditional thermal power generation, the total cost for a whole day in this case is much higher than that in case 1.


## 3.4. Case 3 Study

In normal condition, the wind generation, the photovoltaic generation, and the battery are performed in a most balancing way considering not only the economic factors but also the environmental protection effects. The power dispatching for each kind of generation is indicated in Figure7.Figure 7
Power dispatching in normal condition.In this case, the general power cost for 24 hours is 358866.2 RMB, while the unit power cost is 0.378 RMB/kWh. As indicated in Figure7, the wind generation outputs power during the 40th to the 60th periods (10:00 to 15:00) and the 72nd to 96th periods (18:00–24:00), while the photovoltaic generation generally performs during the 40th to the 60th periods (10:00 to 15:00) only. Similarly, the battery is employed mainly during the 46th to 60th periods (11:30–15:00). It is easy to find that these periods generally cover the most expensive time sessions of power purchasing from the primary grid.


## 3.5. Comparison and Discussion

To obtain more details about the power dispatching of each kind of generation, comparison curves for the wind generation, the photovoltaic generation, the battery discharging, and the exchanged power from the primary grid, are indicated in Figures8(a), 8(b), 8(c), and 8(d), respectively.Figure 8
Power dispatching comparison, respectively, for (a) wind generation, (b) photovoltaic generation, (c) battery discharging, and (d) exchanged power from primary grid.
(a) (b) (c) (d)As indicated in Figure8(a), the wind generation power dispatching for different cases is greatly different during periods 1 to 40 (0 : 00–10:00), while it is very similar for the three cases during periods 44 to 92 (11:00–23:00). Moreover, between 0:00–10:00, only in case 2 (smog weather case) the wind generation outputs the power and fulfills the load, while in other cases it is rarely used due to its higher cost than the traditional thermal power generation.For the photovoltaic generation showing in Figure8(b), it outputs more power during 11:00–15:00 in good contamination-diffusing weather conditions than other cases due to the good weather (usually also with a perfect sunshine) and the relatively low cost. However, in smog weather condition, the power output of the photovoltaic generation will have less fluctuation due to the environmental management request (it will try best to output as much power as possible), though constrained by the sunshine intensity the power output is less than case 1. In normal condition, the photovoltaic generation outputs the minimum power among the three cases.For the battery discharging, it is illustrated in Figure8(c) that the battery outputs more power than in normal condition, particularly between 18:00–20:00 (periods 72–80), while in the good contamination-diffusing weather condition the battery is not used so that its lifetime can be stored for the future use.When it comes to the exchanged power from the primary grid, as indicated in Figure8(d), it confirms the dominant position of the thermal power generation in China (the power from the primary grid generally comes from the thermal power plants). No matter in which case, the exchanged power from the primary grid still occupies the main percentage. This indicates the developing potential for the new energy generation. It is transparent that, in the good contamination-diffusing weather conditions, the power from the primary grid is the most, while in the smog weather condition it will be the least due to the utmost output of new energy generation and battery discharging.It is also suggested by the cost comparison among the three cases that the normal power dispatching will spend a medium cost. It is more expensive than the good contamination-diffusing weather condition while it is relatively more cost-efficient than the smog weather conditions. The general cost in normal condition is 13.3% more expensive than the good contamination-diffusing weather condition, while it is 11.5% cheaper than the smog weather condition.This can be thought as reasonable on the economic and the environmental sides. During the smog weather period, people are suffering the air pollution and the government is supposed to reduce the emission of all kinds of contamination. Consequently, the exchanged power from the primary grid generated by the thermal power plant based on fossil fuel consumption is supposed to be used as less as possible, while the new energy generation and the storage system are supposed to output their utmost capacity. It is easy to understand that in this case the cost will be higher due to the photovoltaic and wind generation performance which has a more expensive price than the traditional thermal power generation. On the contrary, under the good contamination-diffusing weather conditions, the microgrid is able to use as much power from the primary grid as possible to reduce the cost, as long as it meets the environmental management request. Intermediately, the normal condition takes a balanced performance for the power dispatching to boost not only an economic effect but also a qualified environment protecting factor at the same time.Under the guidance of the policy which has strong Chinese national condition features, contaminant emission has been greatly reduced due to the power dispatching optimization in smog weather condition as well as other measurements. Figure9(a) shows the contaminant density developing trend in Suzhou Industrial Part, while Figures 9(b)–9(d) represent the general graphical change of Suzhou Industrial Part in the recent three years. Though the air condition improvement relies on many factors, it still shows the effectiveness of the proposed power dispatching method because many other measures such as using the electrical heating system in winter instead of coal combustion still depend on the electric power output. Therefore, generally, the proposed method in this paper is qualified and can be transferred to other similar cases.Figure 9
Comparison of the smog reduction around the Gate of the Orient.
(a)
Contaminant developing tendency (b)
2015 winter (c)
2016 winter (d)
2017 winter


## 4. Conclusion

This paper proposed a study on the optimized power dispatching in microgrids based on PSO algorithm. The whole work is on the basis of the weighted factor variation of the objective function due to different weather conditions. Three cases, that is, the good contamination-diffusing weather condition, the smog weather condition, and normal condition, are studied, respectively.The case study on the Suzhou Industrial Part confirms the effectiveness of the proposed method. It is shown that, in the smog weather cases, the photovoltaic generation and the wind generation, as well as the storage system, will output their utmost power to reduce using the exchanged power from the primary grid for the sake of environment protection. In this case, however, the general cost will be the highest due to the power consumption of the new energy generation which has a more expensive price than the traditional coal-based thermal power generation. On the contrary, in the good contamination-diffusing weather cases, the strategy will be opposite. The exchanged power from the primary grid is intensively used to obtain the most economic-efficient effect. Consequently, the cost in this case is the lowest. Typically, in normal condition, the power dispatching is performed focusing on the balance between the economy and the environmental management, and the cost will be the medial one. The proposed method, as well as the case study, is qualified to be transferred to other similar cases.



---

*Source: 8695391-2018-03-14.xml*