Cooperative Control to Enhance the Frequency Stability of

The issue of frequency stability of microgrids under islanded operation mode and mode transfer has attracted particular attention recently. In this paper, a cooperative frequency control method, which consists of a microgrid central control (MGCC) and microgrid local control (MGLC), is proposed to achieve a seamless transfer from grid-connected to islanded mode, and hence increase the frequency stability of islanded microgrids during both primary and secondary frequency control. A power deficiency prediction and distribution method is proposed in MGCC to effectively distribute and utilize the power and loads, and accomplish the cooperative control of all microgrid units. With regards to MGLC, a Hopfield fuzzy neural network control (HFNNC) is applied to make the corresponding frequency control of DFIG-SMES more adaptive. Meanwhile a state of capacity (SOC) control is utilized in battery energy storage (BES) to extend battery life. Simulation results indicate that the proposed frequency control approach can maintain the frequency stability of islanded microgrids even in emergency conditions.


Introduction
The requirements to alleviate the energy crisis and the concerns over the potentially adverse effects on the environment have led to the rapid expansion of microgrid technology in recent years [1,2].A microgrid including distributed generators [DG, such as double fed wind turbines (DFIGs), photovoltaics (PVs), and microturbines (MTs), etc.], energy storage [ES, such as superconducting magnetic energy storage (SMES), battery energy storage (BES), etc.] and loads, provides a new paradigm for local power supply [3].
Microgrids can be operated in grid-connected mode or islanded mode [4].In grid-connected mode, the frequency is controlled and maintained within a tight range by the main grid.On the other hand, in islanded mode, the frequency control is achieved by the coordination of available DGs and ESs.An islanded microgrid is an autonomous power system with a small equivalent inertia, which makes its frequency control more difficult than for conventional grids.Due to the operation mode transfer and intermittent characteristics of some micro-generators, frequency deviation caused by active power deficiency often occurs in islanded microgrids [5].During the grid-disconnect operation, when a fault occurs the power balance between supply and demand does not match at the moment.As a result, the frequency of the microgrid will fluctuate, and the system frequency may change rapidly due to the low inertia present in the microgrid and even experience a blackout unless there is an adequate available spinning reserve for balancing the microgrid [6][7][8].
Previously, to overcome this limitation the local control strategy of ESs (including BES, SMES, etc.) was considered as one of the main solutions for frequency stabilization of microgrids by absorbing or injecting instantaneous power.Recently, driven by the urgent needs to realize a more efficient smart grid, the SOC index of ES is taken into consideration to reduce the economical costs and extend the service life of ES [9,10].Reference [11] presents a method with additional charging and SOC limits for the dimensioning of a BES to provide primary frequency support.Subsequently, power managements of DGs (including MT, DFIG, etc.) also play an important role in maintaining frequency stability and regulating the microgrid to a new balanced state [12].It has to be noted that DFIG can effectively support system frequency by auxiliary frequency control.Through the auxiliary control DFIG can release rotor kinetic energy to the power system and share sudden changes in power requirements.In addition, DFIG can operate in a power reserved mode when the wind energy is sufficient, hence it can increase the power output and make up for the power shortage as a synchronous generator [13][14][15].Moreover, DFIG operates linked with SMES and not only can achieve a smooth power output for a wind generator, but also can give more effective system frequency support [16,17].Eventually, the two layered frequency control scheme of a microgrid is one of the main issues in islanded operation mode [18,19].In [20], a cooperative control strategy of microsources and an energy storage system during islanded operation is presented and evaluated by simulation and experiment.This scheme utilizes stored energy to make up the power deficiency in primary frequency control.In addition, the secondary control of DGs regulates the power output of ESs back to zero.A hierarchical control system is proposed in [21] based on DG converters for robust microgrid operation and seamless transfer between grid-connected and isolated modes.Microgrida can operate in a stable way during islanded mode even though the load is changed suddenly.In conclusion, the cooperative frequency control scheme with advanced local control of DGs and ESs is needed to effectively achieve the goal in islanded operation.
In this paper, the frequency control of microgrids is implemented by both the primary and secondary frequency control as the conventional power systems [22].The frequency control concepts, including the primary and secondary frequency controls are introduced to stabilize the frequency of microgrid in [23].For the inverter-based distributed unit without speed governor and spinning inertia, the primary and secondary frequency controls are achieved by ESs and DGs which have different response times.The primary frequency control acts in ES is a deviation adjustment, while the secondary frequency control has zero error output adjustment by control of DGs [21,23].Therefore the objectives of the primary and secondary frequency control are set respectively, and the objective of the primary frequency is to maintain the frequency stability of the microgrid quickly using the power stored in ESs and RKE of DFIGs [13,15].Ranked in the secondary frequency control, two objectives are designed through the power outputs control of DGs, one is to predict and distribute the power deficiency during the primary frequency control, and the other is to regulate the frequency to its rated value.
Accordingly this paper addresses a two-layer cooperative control strategy, which consists of a microgrid central control (MGCC) and microgrid local control (MGLC), to achieve a seamless transfer from grid-connected to islanded mode, and increase the frequency stability of islanded microgrids.In MGCC, a power deficiency prediction and distribution method based on rate of change of frequency (ROCOF) and equivalent inertia is proposed to achieve cooperative control and effectively utilize the power and load.With regard to MGLC, a Hopfield fuzzy neural network control (HFNNC) is proposed in a double fed induction generator and superconducting magnetic energy storage (DFIG-SMES) module to make the corresponding frequency control approach more adaptive.Meanwhile a SOC control is utilized for the battery energy system (BES) to extend battery life.To evaluate the proposed control strategy, a dynamic simulation system was developed based on PSCAD/EMTDC.The control strategies, including MGCC and MGLC (HFNNC and SOC), were realized based on PSCAD/EMTDC and MATLAB associated technologies.Simulation results were presented and discussed to illustrate the dynamic performance of the proposed control strategies in islanded operation.
The remainder of the paper is organized as follows: Section 2 gives a brief introduction on the frequency control of islanded microgrids with a DFIG-SMES module and BES; Section 3 introduces the proposed cooperative frequency control strategy for autonomous microgrid; the proposed method is illustrated and investigated with a simulation system in Section 4; finally, the conclusions are duly drawn.

Microgrid Modeling
A representative microgrid usually comprises DGs (MT, DFIG, and PV) as well as ESs (BES, SMES etc), in addition to loads.DGs fulfill the stable operation needs of a facility, while the ESs ensure the balance between energy generation and consumption, especially during islanded operation, and analogously act as the spinning reserve of large generators in the conventional grid.The microgrid is connected to the main grid at the point of common coupling (PCC), and operates in parallel with a utility grid under normal situations.When a fault occurs in the upstream grid, the microgrid disconnects from the main grid, however, and transfers into islanded operation mode [24].
The modeling of the distributed energy resources (DERs), including MT, PV, DFIG-SMES, and BES, in addition the inverter control strategy applied in this paper are all discussed as follows: (a) MT: MTs are simple-cycle gas turbines with outputs ranging typically from about 25 kW to 500 kW and designed to operate for long periods with less maintenance.They can be used for load requirements, peak shaving and cogeneration applications.MTs may be single shaft or split-shaft units, the single shaft MT which used in this paper require an AC/DC/AC converter for grid connection [5,6].In considering of the operation characteristics of MT in microgrid and convenience of the simulation, a typical synchronous generator model in PSCAD/EMTDC is applied to represent the MT [21].
(b) PV: PV panels do not require fuel to operate and produce zero noise and pollutant emissions.For grid connection, PVs need DC/AC inverters.The main disadvantage of PVs is that their operation depends on sunlight availability.Usually, a PV is operated in maximum power point tracking (MPPT) mode in order to use the sunlight more efficiently [7,8].
(c) DFIG-SMES: The structure of a DFIG-SMES system is shown in Figure 1.The SMES module is linked to the DFIG bus side, so it can absorb or release power to adjust the output power of DFIG to improve the voltage and frequency stability of the system.The current source control (CSC) topological structure is applied to connect the SMES to DFIG-SMES system [25].As shown in Figure 1, both the resistance and voltage offset of the transformer are ignored, then the modeling of DFIG-SMES system can be described as follows：

L
The power exchange of SMES-DFIG system can be expressed as： where P S is the output active power of SMES; and Q S is the reactive power of SMES; I s is the injection current; V D is the export voltage of DFIG.
Based on the power exchange of DFIG and SMES which is expressed as Equation ( 2), the main control strategies of DFIG-SMES for frequency support are rotor kinetic energy control (RKEC) and reserved power control (RPC) of DFIG, respectively, as well as the active power control of SMES.The principles of these three control strategies are briefly introduced as follows.
RKEC takes advantages of RKE of DFIG to optimize the system frequency control characteristics.Through RKEC the DFIG can release the RKE to alleviate a reduced frequency rate and improve the frequency control ability of the DFIG during the frequency decrease.Moreover RPC of DFIG is essentially a pitch angle control strategy, which aims at providing frequency support by releasing the reserved power during frequency deviation.The reserved power is released by changing the pitch angle of the system [13][14][15]25].
SMES can further improve DFIG-SMES system frequency control ability.The active power output of SMES is controlled during frequency deviation, then the energy stored in SMES can be released to alleviate the system pressure when the frequency is offset from frequency rating [16,17,26,27].
(d) BES: The BES model is presented based on the double-well model, the right side well is used to mark the available charge, while the left is for bound charge [28].Among them, the available charge provides electric power to system, and the bound charges transfer into the available charge at a certain speed.The process can be described as follows: where c is the proportion of available charge of BES; y 1 , y 2 are the capacities of available charge and bound charge, respectively; k is the rate of bound charge change into available charge.The equations above are differential equations expressing the transformation from y 1 to y 2 , when i(t) is constant, that is i(t) = I, Equation (3) can be derived by Laplace transformation as: where, k' = k/[c(1−c)]; y 1,0 and y 2,0 are the available charge and bound charge at the initial time t = 0; and y 0 = y 1,0 + y 2,0 .SOC is defined as the available capacity in a BES, which is expressed as a percentage of the estimated rated capacity [29].Assume that the terminal voltage of battery bank V(V) and the maximum capacity of battery C BES_max (mostly expressed in ampere-hour, Ah) are constant, so once the power of the battery is determined, the current and charge in the battery also can be calculated.Then the SOC can be calculated by Equation ( 5): (e) Inverter Control: There are two kinds of control strategies applied in this paper for operating an inverter, separately named PQ control and VF control [7,8].The mode transfer between PQ and VF is controlled by the MGCC.For PQ control, the inverter is utilized to supply a preset active and reactive power according to the power references distributed by MGCC.In VF control mode, the inverter is controlled to feed the load with pre-defined values for maintaining the frequency and voltage of the islanded microgrid at the rated value.

Frequency Control Structure of Microgrid
Typically, the microgrid has a two-layered hierarchical control structure, as shown in Figure 2. The mentioned two layers are MGCC (microgrid central control) and MGLC (microgrid local control), respectively.It can be seen from the above Figure 2 that, as a centralized controller, the MGCC of the microgrid captures the global information and deals with management functions, such as disconnection and resynchronization of the microgrid.In addition, the MGCC is responsible for the supervisory control of DGs and ESs.Based on the collected global information, the MGCC generates power output references and provides them to the MGLCs.The MGLCs which locate at each DGs and ESs and loads, are responsible for controlling the power outputs of distributed units according to both local information and the power commands received from the MGCC.
Frequency control globally consists of primary frequency control and secondary frequency control.The controller of the inverter in the ESs responds in milliseconds during frequency control.Similarly the release of rotor kinetic energy (RKE) of a DFIG can also act in milliseconds.Otherwise, the According to the differences on response time, the frequency control in islanded operation mode can be divided into two parts, the ESs and RKE act in the primary frequency control, and the others act in the secondary frequency control.

Cooperative Frequency Control
On the basis of the microgrid control structure, the major innovations of the proposed cooperative frequency control strategy cover both the MGCC and MGLC.In MGCC, the power deficiency prediction and distribution strategy are proposed to achieve the cooperative control of all microgrid units, moreover the HFNNC of DFIG-SMES as well as the SOC control of BES is proposed in MGLC to effectively utilize the corresponding units.

Active Power Control
Figure 3 illustrates the flowchart of the proposed two layered MGCC strategy.The corresponding steps of the two-layer MGCC, including power deficiency prediction and distribution, can be described as follows: Step 1: Firstly MGCC starts course 1 after the accident simultaneously; meanwhile MGCC monitors and collects the ROCOF and local information from all MGLCs; Step 2: Ranked second, the power deficiency of the accident is made up by the RKE of DFIGs and ESs during primary frequency control; Step 3: MGCC predicts the power deficiency ΔP according to Equation ( 6), and distributes the power deficiency to DGs and RPC of DFIG as well as loads in secondary frequency control; Step 4: The active power references calculated by MGCC is distributed to the DGs and controllable loads, then the power deficiency is balanced by the above control strategies, hence the power outputs of the ESs could be restored to secure the maximum emergency reserved power.
Firstly a prediction method to quickly estimate the power deficiency during operation mode transfer or frequency faults is proposed.If ROCOF and equivalent inertial constant (H) are already known, the active power ahh-no get itdeficiency can be derived as: where H is the equivalent inertial constant of microgrid (s), based on the method proposed in [30], the equivalent inertial constant of the islanded microgrid can be determined.The term f n is the rate frequency (Hz), f is the real-time frequency of the system; and ΔP is the active power deficiency in the whole microgrid during the incident.In emergency conditions or islanding operation, MGCC firstly orders the ESs and RKE of DFIG which react quickly to increase the output in order to restore the system in milliseconds.All MGLCs collect and report the operation status to the MGCC in real time.However, the control capabilities of the ESs are limited by their available capacity, meanwhile the SOC control strategy is applied to optimize the ESs lifetimes.Therefore in the primary frequency control, by proper power-balancing action of the ESs and RKE, the frequency of the microgrid can be regulated to the normal values in milliseconds, while in the secondary frequency control, the power output of the ESs should be brought back as soon as possible by the MGCC power distribution to secure the maximum emergency reserve.Depending on the calculated active power deficiency (ΔP), MGCC coordinates the DGs to increase power outputs to make up the power deficiency instead of ESs and the power output changes of DGs are calculated as follows considering capacity: where i is the ith DFIG unit, i=1, 2, …; and j is the jth DG unit, j=1, 2, …; l is the ith controllable load unit, l=1, 2, …; K i DFIG is the DFIG participation factor, which is determined based on the ability of the power support in the particular conditions; K j DG is the DG participation factor; K l L is the controllable load participation factor, when f < 49.5Hz, K l L > 0; ξ i C , ξ j C , ξ l C are respectively the capacity upper limit determination coefficient of DFIG, DG and controllable load, the capacity judge coefficient is equal to 1 unless it reaches the capacity limit.

Reactive Power Control
As illustrated in the previous section, the corresponding reactive power control under the two-layer frequency control structure is shown in Figure 4. Firstly during the primary frequency control, MGCC starts the reactive power control of ESs immediately after the incident by PQ to VF control; than in the secondary frequency control, MGCC distributes the reactive power deficiency to DGs as the active power control.Based on the above power distribution strategy, the reactive power references can be calculated and distributed to the available DGs by the MGCC, hence the power output of the ESs could be brought back to secure the maximum emergency spinning power.

DFIG-SMES Local Control
For the DFIG-SMES module, the proposed cooperative control strategy involves rotor kinetic energy control (RKEC) and reserved power control (RPC) of DFIG and energy control of SMES.Meanwhile Hopfield fuzzy neural network control (HFNNC) method is utilized to get more reasonable control reference values for the corresponding local controls [31,32].Compared with the traditional PID control approach, the proposed HFNNC can not only execute the function of controller without an accurate mathematical model, but also can improve the robustness of the controller according to the operation characteristics of the microgrid.
The core of the cooperative control design is the Hopfield fuzzy neural network control scheme.The HFNNC A gets more reasonable torque T ref reference by optimization of the Hopfield method.Through HFNNC A, the DFIG releases the rotor kinetic energy in milliseconds to support the primary frequency modulation.Secondly, the HFNNC B increases the power output by adjustment of pitch angle to provide the frequency support.Finally, the HFNNC C controls the active power output of SMES, and SMES releases stored power to improve frequency control ability of DFIG-SMES, as shown in Figure 5.The control object of HFNNC A, B and C can be identified as follows: where where e(t) is the system frequency error; r(t) is the rated frequency which is a constant value; and y(t) is the current frequency value, so the objective function of control system can be described as: With the parameters P and D of the controller proposed in this paper, a Hopfield neural network with two neurons is designed for the optimization of HFNNC.The output of HFNNC can be derived as: (11) Assume that the input resistance is infinite, then we substitute V 1 = k p , V 2 = k d , so the standard energy function can be expressed as: By matching the target function to the energy function of Hopfield networks, the matrix W and I are constructed in the following format: The two parameters k p , k d which are under a particular optimal control law can be found by solving differential Equations (15,16).

BES Local Control
The SOC control in order to extend the service life of BES is presented in this section.Real time information of each BES is monitored and fed back to the battery control, hence the control command of discharge/charge would be sent according to the SOC control rules shown in Table 1.

SOC ≤ SOC min SOC min < SOC ≤ SOC max SOC > SOC max
Δf According to Table 1, the main operation rules of the battery can be described as follows:  Discharge the battery when Δf < Δf min and SOC > SOC min ;  Discharge the battery when SOC > SOC max and Δf > 0;  ς SOC becomes to 0 when SOC ≤ SOC min ;  Idle the battery when |Δf| < 15 mHz and SOC min < SOC ≤ SOC max .
The participation factor coefficient of SOC is the key issue for the BES charging and discharging management.The control structure of the BES local control scheme considering the SOC participation factor is presented in Figure 6.
At first, the SOC of each BES is defined and calculated by the Equation ( 6) in real time in Section 2, and accordingly the SOC control strategy described in Table 1 is utilized to make the necessary decisions for BES control.Based on the participation factors and the current SOC value, the charging or discharging capacity can be determined.

Simulation Results
The simulation microgrid is a grid-connected comprehensive planning demonstration project located on an offshore island in China.The programming microgrid can operate in the grid-connected and islanded modes and realize flexible transfer between these two modes after completion.The wind power penetration of the microgrid is high due to the rich available wind energy resource along the shoreline.Therefore, more attention is paid to the frequency control ability of the DFIG, hence the auxiliary control is utilized to release rotor kinetic energy of DFIG to support the system frequency stability.Meanwhile, the DFIG operates in power reserve mode and increases the power output and makes up the power shortage during sizeable frequency deviations.
The configuration of the simulated microgrid used in this paper is shown in  In order to demonstrate the efficiency of the proposed approach for frequency stabilization, the above microgrid with DFIG-SMES module was developed based on the PSCAD/EMTDC platform.The proposed control strategies including MGCC and MGLC (HFNNC and SOC) are compiled in MATLAB, taking advantages of the mathematical treatment possibilities of this software.Then the PSCAD model and MATLAB programs are connected together through a Fortran language-based interface procedure.The proposed control strategies are illustrated and studied in this paper with this coordinated PSCAD and MATLAB simulation technology.

Case A: Operation Mode Transfer
At the beginning of the simulation case, the microgrid works in a well-balanced state.MT operates in VF mode.PV operates in maximum power point tracking (MPPT) mode.DFIG operates in power reserved mode and with RKE in the wind turbine blades.SMES and BES works in PQ mode.The proposed SOC and HFNNC control strategies are applied to restore the frequency of microgrid during frequency incidents.
In the steady state of case A, the output power of MT is 180 kW, the PV is 60 kW, the DFIG is 105 kW, and the speed of wind in the simulated area maintains at 12 m/s, the controllable loads are 185 kW, constant loads are 220 kW.
When t = 2s, the microgrid separates from main grid because of the three-phase short-circuit fault of the main grid, the operation mode transfers from grid-connected mode to islanded mode, consequently the transmission power of the tie-line is lost.The control curves are shown in Figure 8.
SOC Control: Assume that Δf min = −25 mHz, Δf max = 25 mHz; and SOC min = 10%, SOC max = 90%, hence the performances of sthe imulated BESs are described in Figure 8a.The initial SOC of BESs are BES 1 = 75%, BES 2 = 48%, respectively.As seen in Figure 8a, the power output increase of BES 1 is larger than that of BES 2 according to the rules of the Table 1, the available power of BES 1 is C total1 (75%-10%), while that of BES 2 is C total2 (48%-10%).
HFNNC: In this case, HFNNC A, B and C are applied to give support to the frequency control.The local HFNNC A and C are triggered at the primary frequency control, while the HFNNC B is launched after power distribution at the secondary frequency control, as shown in Figure 8b.The effect of HFNNC for frequency stability can be seen in Figure 8d.
MGCC: As MGCC picks the ROCOF and computes the equivalent inertia H of the microgrid in real time, in such an emergency condition, MGCC uses the real-time ROCOF and H value to estimate the magnitude of the active power deficiency.
Firstly, based on the method we proposed in [30], the equivalent inertia H of the simulation microgrid can be calculated in real time, which is 0.00996 in this case.Then, according to the ROCOF monitored by the value of which is −1.5.Based on Equation ( 6), the magnitude of the active power deficiency can be determined, ΔP = −5.976× 10 −4 .The calculated ΔP above is the per-unit value, and the base power is P B = 100 MW, so the active power deficiency of the whole microgrid is 59.76 kW.The MGCC gets to know that it is necessary to increase the output of each distributed generator or energy device to make up the power deficiency at this moment, so MGCC distributes the power commands to the MGLCs which have available power based on the collected local information.
According to the operation information of the simulation system, we set i = 1, j = 2, l=1; and K l L = 0 because the system frequency f > 49.5Hz, K i DFIG = 20%, K j DG = 80%; ξ i C , ξ j C , ξ l C are respectively dependent on the capacity upper limit of each distributed generator and storage unit.We observe from the solid curve of Figure 8c, that the output change of the DG is 48 kW, and the power output of the DFIG is 12 kW (dashed line), which is approximately equal to the power commands calculated from the following equations, so the MGCC power deficiency prediction and distribution method can reasonably distribute the power and loads of a microgrid for cooperative frequency support: 11.95 47.81 Observed from Figure 8d, it is necessary to execute load shedding because the frequency in the solid line is lower than 49.5 Hz.While in the dashed line, the power deficiency is offset by the cooperative control of the microgrid including both MGCC and the HFNNC of DFIG-SMES, the corresponding frequency of the islanded microgrid in this case becomes higher than 49.5 Hz by the proposed cooperative control, which avoids the measure of load shedding and decreases the cost of operation compared with the commonly used PID control strategy.
For the proposed cooperative frequency control method, the reactive power outputs of the DERs can be seen in the Figure 8e.At t = 4s, the outputs of both BES 1 and BES 2 are brought back to zero by the distribution of MGCC as shown in Figure 4.The corresponding voltage response of the proposed control method, which can be observed from the dashed line in Figure 8f, is stable during the islanding operation.Compared with the voltage curve of the PID control, which lowest voltage is higher, the voltage can recover faster because of the quick prediction and reasonable control made by the proposed cooperative control method.

Case B: Fault in Islanded Mode
In case B, the simulation microgrid works in islanded operation mode, and the autonomous microgrid operates in well-balanced state.Similar to the case A, MT works in VF mode.PV operates in maximum power point tracking (MPPT) mode.DFIG operates in power reserved mode and with rotor kinetic energy in the wind turbine blades.Both SMES and BES operate in PQ mode.The proposed SOC and HFNNC control strategies are applied to restore frequency of the microgrid system during frequency incidents.
In the steady state of case B, the output power of MT is 400 kW, the PV is 60 kW, the DFIG is 105 kW, and the speed of wind in the simulated area is 12 m/s, the controllable loads are 225 kW, constant loads are 340 kW.When t = 2 s, the autonomous microgrid undergoes a power disturbance incident, and as a result the power balance between supply and demand does not match at the moment and the frequency starts to fluctuate.The performance of the frequency control is this case is as follows: SOC Control: For case B, assume that Δf min = −30 mHZ, Δf max = 30 mHz because the frequency fluctuation of the islanded microgrid is larger than that of a grid-connected microgrid.In addition, the SOC min = 10%, SOC max = 90% as case A, and the performances of simulated BESs are described in Figure 9a.As seen in Figure 8a, the power output increase of BES 1 is smaller than that of BES 2 opposite to case A, because that the available power of BES 2 is C total2 (98%-10%), larger than that of BES 1 , which is still C total1 (75%-10%).HFNNC: In this case, the HFNNC A and C are put into effect immediately after the prediction of a power deficiency, the HFNNC C and load shedding are triggered after the power distribution of MGCC, as is shown in Figure 9b.The effect of HFNNC for frequency stability can be seen from Figure 10d.
MGCC: In case B the ROCOF is −1.97 and the H value is 0.00996.Based on Equation ( 6), the magnitude of active power deficiency at this moment can be achieved as ΔP = −7.849× 10 −4 .According to the result above, the active power deficiency of the whole microgrid is 78.49kW.After analyzing the information collected from MGLCs, MGCC gets to know that it is impossible for MT to increase the output because of its capacity limit, so the power distribution of other distributed generations and loads are as follows: According to the operation information of the simulation system in this case, we set i = 1, j = 2, l = 1; and K l L = 0 because the system frequency f > 49.5 Hz, K i DFIG = 40%, K l L = 60%; ξ i C , ξ j C , ξ l C are dependent on the available power of each distributed generator and storage, respectively, so the power can be distributed as follows: We observe from the dashed line of Figure 9c, that the power increase of the DFIG is 32 kW, while the load shedding of the controllable load is 48 kW in the solid line, which is approximately consistent with the power references calculated from MGCC, so with the power deficiency prediction and distribution of MGCC, the power and loads of the microgrid are reasonably distributed and effectively utilized.
In addition to displaying the superiority of HFNNC over PID control in Figure 8d, Figure 9d also aims at showing the frequency support contribution of DFIG in an islanded microgrid.It is obvious that the frequency of the islanded microgrid cannot recover to 50Hz because the MT provides no contribution to frequency control because of its capacity limit and lack of HFNNC and load shedding (LS) control.Even deloading the same load as the proposed control strategy, the frequency of the microgrid could not recover to 50 Hz without the RPC of DFIG, as can be seen from the dotted curve in the figure, while in the dashed curve, the frequency can restore to 50 Hz through traditional PID control with the RPC of DFIG, and moreover the proposed cooperative frequency control in the solid curve is more effective than the PID control.
The reactive power outputs of the DERs and the voltage response of the simulation microgrid under the proposed frequency control strategy are shown in Figure 9e,f, respectively.As observed from Figure 9e, the reactive power outputs of BESs are brought back to zero to ensure sufficient power reserves, while in Figure 9f, the voltage response of the microgrid in the dashed line recovers faster than that of the solid line, and the voltage can maintain stable during the frequency control process in islanded operation mode.The simulation results above, which are based on a device-level electromagnetic transient simulation platform, can fully illustrate the feasibility and validity of the proposed method.In order to apply the proposed method in a practical microgrid, experimental tests in a microgrid laboratory considering communication constraints and system topology changes are needed.

Conclusions
A two-layer cooperative frequency control scheme for microgrids has been presented and simulated in this paper.The simulation results have demonstrated that the proposed cooperative frequency control strategy can effectively enhance the frequency stability of a microgrid both during islanding and under islanded operation mode.The centralized MGCC can accurately estimate the power deficiency and accordingly distribute the power commands to achieve cooperative control of all microgrid units.Meanwhile the local HFNNC can effectively improve the robustness of thebcontroller and make frequency control approaches more adaptive then traditional PI control.In addition, the presented SOC control scheme can contribute to extend the battery life of BES.

2 ( 14 )
Take the symmetric nonlinear S function as the nonlinear output characteristics of the neurons, the change rule of parameter k p , k d can be represented by:

Figure 7 .
It is composed of a 0.38 kV distributed subsystem connected to a 10 kV distribution network through a 100 kVA transformer.The microgrid includes 400 kW of MT, 275 kW of DFIG, 60 kW of PV, 20 kW of SMES, 20 kW BES 1 , 25 kW of BES 2 and loads (including controllable loads and uninterruptible loads).

Figure 8 .
Figure 8.Control performance with the proposed control in case A. (a) Active power outputs of BESs by SOC control; (b) Active power outputs of DFIG-SMES by HFNNC contro; (c) Active power outputs of DGs; (d) Frequency responses of different control methods; (e) Reactive power outputs of DERs; (f) Voltage responses of different control methods.

Figure 9 .
Figure 9.Control performance with the proposed control scheme in case B. (a) Active power outputs of BESs by SOC control; (b) Active power outputs of DFIG-SMES by HFNNC control; (c) Active power outputs of DGs; (d) Frequency responses of different control methods; (e) Reactive power outputs of DERs; (f) Voltage responses of different control methods.
ΔT ref Δβ ref ΔP ref are respectively the output of HFNNC A B and C; Δf and df/dt are inputs of controllers; K f1 K f2 K f3 are corresponding proportion coefficients, while K df1 K df2 K df3 are differential coefficients.Assume that the system can expressed as y(t) = C[Ax(t) + Bu(t)].Then the output of PD controller can be derived as follows: