Abstract

Islanding detection is essential for secure and reliable operation of microgrids. Considering the relationship between the power generation and the load in microgrids, frequency may vary with time when islanding occurs. As a common approach, frequency measurement is widely used to detect islanding condition. In this paper, a novel frequency calculation algorithm based on extended Kalman filter was proposed to track dynamic frequency of the microgrid. Taylor series expansion was introduced to solve nonlinear state equations. In addition, a typical microgrid model was built using MATLAB/SIMULINK. Simulation results demonstrated that the proposed algorithm achieved great stability and strong robustness in of tracking dynamic frequency.

1. Introduction

Distributed generation (DG) using renewable energy sources such as solar energy, wind energy, and hydroenergy has received considerable attention due to environmental pollution and exhaustion of fossil fuel. Many utilities around the world have a significant penetration of DGs in their systems. As a promising developing trend, the concept and techniques of microgrids (MGs) are proposed to improve DG’s utilization [1].

MG is a kind of regional electric power systems which include DGs and power loads. They have the ability to disconnect from or parallel with large electric power systems. MGs offer many potential benefits, such as improving the reliability of power supply by islanding operation during large electric power system outages, relieving overload problems by allowing a part of the power system to intentionally island, and so forth. However, there are also many issues to be solved before MGs become integral part of the utilities, such as how to achieve high power quality, efficiency, and safety. Especially, the most concerned problem is the islanding which refers to a condition that MG has an independent powering to a location even though the MG has been disconnected from the grid [2]. This condition can be dangerous to grid workers who may not realize that the load is still powered. It can also cause adverse effects such as low power quality, grid protection interference, and equipment damage. For these reasons, islanding condition must be detected immediately. Accordingly, islanding condition should be informed to operators and the control strategy must be switched for islanding operation.

The mainly used islanding detection techniques may be broadly classified as remote and local techniques. Local techniques can be divided into passive and active detection methods [3]. Remote islanding detection techniques are based on the communication between utilities and DGs. Supervisory control and data acquisition (SCADA) has been used to determine whether the distribution system is islanded or not. These methods are reliable but not economic to implement for small systems. As for the local techniques, the core of passive method is that some of the system parameters (voltage, frequency, etc.) change greatly with islanding but not much in normal running when connected with grid [4, 5]. This character can be helpful in islanding detection by continuously monitoring the parameters of the system without bringing disturbance. However, this method would cause large nondetection zones because islanding cannot be detected under a perfect match of generations and loads in the island system. Active techniques directly interact with the power system operation by introducing perturbations [6]. These small perturbations will result in a significant change in system parameters when the DG is islanded whereas the change will be negligible when the DG is connected to the grid. It has smaller nondetection zones but disturbs the system. The most commonly used methods are reactive power export error detection method, impedance measurement method, active frequency drift, and automatic phase shift.

For the passive detection method, one of the common passive approaches is based on the measurement of voltage vector and frequency of the common coupling point in real time. Variation in voltage and frequency from its normal value indicates the occurrence of islanding in most conditions. A large number of methods are available for the frequency estimation based on digitized samples of system voltage, methods such as discrete Fourier transforms, conventional Kalman filter, and phase lock loop [7]. For the most commonly used algorithms, discrete Fourier transforms may lead to inaccuracies due to leakage and picket-fence effects. Meanwhile, it is not ideal when the system is nonstationary since it requires large measurement windows and it is sensitive to low signal-to-noise ratio [8]. Kalman filter, which is well known for its small calculating amount and robustness in estimating sinusoids signal with noise, however, is faced with several distortions due to the system’s inherent nonlinearity [9, 10].

In this paper, the necessity and basic methods of islanding detection of the MG are addressed. Considering the importance of frequency estimation, a novel algorithm based on extended Kalman filter is presented to enhance the precision and the speed of frequency tracking in islanding MGs. Simulation tests demonstrate that the proposed algorithm has excellent superiority on islanding detection.

2. Microgrids and Islanding Detection

The MG embedded in distribution systems has evolved overwhelmingly to help meet the load growth in existing networks. The typical topologies of MGs are suggested in IEEE 1547.4 [11], as shown in Figure 1.

The most important feature of MGs is that they have the ability to disconnect from or parallel with the area electric power system. The planned MG in Figure 1 may be a local electric power system island, circuit island, or substation island. Generally, a transition-to-island mode can be a result of scheduled or unscheduled events. Scheduled transitions are intentional events for which the time and duration of the planned island are agreed upon by all parties involved. Unscheduled transitions are inadvertent events that are typically initiated by loss of area power system or equipment failure, and the MG needs to be automatically sectionalized from the area power system by islanding protective relay.

As shown in Figure 1, for a fault external to the planned island MG-1, it is expected that the DG should be disconnected from the area electric power system as soon as possible. Thus, the fast circuit breaker CB-1 is required to be open for the fault . Obviously, knowledge of the operating conditions of the system prior to islanding and control of those operating conditions will facilitate the smooth transfer to an intentional island, particularly in response to abnormal events [12]. In order to achieve maximum benefit of the DG, the islanding relay should detect islanding condition with high speed and sensitivity to prevent other protective relays from tripping-off islanded DG.

In short, when islanding condition happens, not only the area electric power system operator needs to be aware of this operation, but also the control strategy of the MG needs to be adjusted. Therefore, islanding detection is one of the key issues for protection and control of MGs, as shown in Figure 2.

There are basically two kinds of distributed generators in MGs. The first one, such as photovoltaic, fan, and storage battery, is based on inverter control. The other one, such as synchronous generator and microsteam turbine, is based on the principle of generator.

Assume that the active and reactive power outputs from DGs are and and that the power loads in MGs are represented as , , and . In islanding operation,

So

In (2), is the syntonic angular frequency, and is the quality factor of loads.

It can be known from (2) that the voltage and frequency may deviate from the rated ones when islanding occurs since there is generally an imbalance between the generation and the load in the formed island. Besides, the change of voltage is related to active power imbalance while the frequency shift is mainly based on reactive power imbalance. Consequently, over/undervoltage relay and over/underfrequency relay are often used as the most conventional anti-islanding protection. Furthermore, power imbalance will lead the frequency to change dynamically. So the rate of change of frequency (ROCOF) is also a commonly employed anti-islanding protection [13]. Consider Equation (3) is used to calculate the change rate of frequency, in which is the output of the distributed generator, is the load in the island, is the distributed generator rating, is the inertia constant of generating plant, and is the rated frequency.

The distributed generators in MGs are mainly based on inverter control. Compared with conventional synchronous generators, the inverter-based distributed generators have small equivalent inertia constants and capacities. The frequency varies distinctly in islanding operation. Furthermore, inverter control may produce more harmonics and noises due to dead time of the inverter itself. In sum, the voltage and the frequency of MGs are comparatively stable in parallel operation, while in islanding operation, the variations of electric measurements are complex, so that the accurate frequency tracking must be achieved by reliable and advanced algorithms.

3. Frequency Tracking Using Extended Kalman Filter

Frequency tracking could not be limited in islanding detection. It is needed in many other areas of power system, such as power quality monitoring, automation under frequency load shedding devices, and automatic accurate synchronizers. In theory, the frequency tracking methods can be investigated in all the situations that need frequency measurement.

A number of methods are available on the frequency estimation based on digitized samples of the system voltage. Discrete Fourier transform is one of the most commonly used algorithms due to its good filtering characteristics and strong resistance to disturbance. The main principle of discrete Fourier transforms is to calculate the phase angle difference between two adjacent data windows. Then the frequency can be estimated accordingly. However, discrete Fourier transforms may lead to inaccuracies due to leakage and picket-fence effects. Meanwhile, it is not ideal when the frequency is changing during a complete data window of Fourier transforms. For this reason, adaptive discrete Fourier transforms for frequency tracking are proposed to lock the fundamental frequency of incoming signal [14]. Adaptive discrete Fourier transforms can be described as a feedback model: when the signal frequency is changed, it can be used to redirect the sampling time of next sampling point. Thus, it enhances the accuracy of frequency measurements when the real frequency is not the rated value.

Kalman filter algorithm does well in addressing the general problem of trying to estimate the state of a discrete-time controlled process. The superiority of Kalman filter in frequency tracking lies in many aspects.(1)It is quite easy to make the Kalman filter self-tuned to the fundamental frequency without any hardware modification.(2)Harmonics are eliminated more effectively when the Kalman filter is adaptive with respect to the fundamental frequency.(3)The Kalman filter allows filtering preselected resonant nonharmonic frequencies, which is not possible with the adaptive discrete Fourier transforms.(4)Kalman filter is often adopted due to its low computation cost and robustness in estimating sinusoids signal embedded in an unknown measurement noise [15].

However, the calculation of conventional Kalman filter is based on the assumption that the measured system is linear in its mathematical model. Thus, it has to face several distortions for coping with the nonlinear signals. As for the frequency tracking of power system, the input signal is sampling voltage values generally. If the input signal is assumed to be an ideal sinusoid with constant amplitude, the mathematical model can be represented as where is the measured signal and and are the two state variables of Kalman filter, .

Conventional Kalman filter supposes that and vary with time in linear way. However, as the mathematical model shows, the input signal and output signal are changed nonlinearly. It is hard for the conventional Kalman filter to achieve excellent calculation accuracy. With the interconnection of MGs, the system frequency is not as stable as the large power grid. When islanding occurs, the frequency of the MG might be irregular. Therefore, extended Kalman filter which is established in nonlinear way is recommended to be applied in order to achieve better accuracy and faster speed in frequency tracking of MGs.

The nonlinear stochastic difference equation can be written as where is state variables, is the observed signal, is the controlled variable, and subscript is the sampling time stamp. The nonlinear function in (5) describes nonlinear recursion relationship among state variables. The nonlinear function in (6) relates the state to the observed signal. and represent the process and measurement noise, respectively. It is assumed that and are both zero-mean uncorrected white noises, with respect to variances and . Consider .

To calculate state variables in nonlinear system, Taylor series is used to expand (5) and (6) and transform them into approximate linear equations [16, 17]. For an input signal , it can be represented by

Generally, two-order Taylor series is adopted as an approximation solution in field calculation. This approximation is established based on three considerations: higher-order components are so marginal that they can be omitted; calculation of higher orders of Taylor series will result in heavy computing burden which influence the tracking speed; the bigger Jacobian matrix is, the more memory is used, and it would be unsuitable in field application.

By using two-order Taylor series (7), (5), and (6) can be rewritten as where and represent the values of and in step , respectively, and and represent the approximate values of and in Taylor series expansion. represents the posterior estimation value of the state variable in step . is called measurement matrix. and are Jacobian matrixes of and , respectively. is the Jacobian matrix of and represents the partial derivatives on . Consider

For the extended Kalman filter, is not a constant matrix during iteration calculation since is a nonlinear function. It is one of the main differences between conventional Kalman filter and extended Kalman filter.

The initial stage of extended Kalman filter design is to model the signal and derivation of state variables of it. This is because the signal model dynamics describe a mechanism for how the process may evolve. Considering the electric measurements (voltages, currents, and frequencies) in MGs may change irregularly, or nonlinearly in most cases, Taylor series is used to nonlinear calculation. The voltage at the point of common coupling in MGs can be described approximately as follows: where and represent the amplitudes and initial phase.

Using the cosine expansion, we can obtain the discrete expression of the following:

The amplitude and frequency of voltage at the point of common coupling are changing when islanding occurs. Therefore,

In (12), represents the rate of frequency variation. Since the frequency variation between two sampling steps is very small, . is the coefficient of amplitude variation and it can be considered as a new state variable in mathematical modeling. Accordingly, (11) can be rewritten as

In this paper, four state variables are defined as in-phase signal, quadrature signal, time-varying frequency, and time-varying amplitude, which are all changing in nonlinear way as proceeded.

Consider

Based on the relationship of and , we can get the expression of nonlinear function and the Jacobian matrix . Consequently, the detailed calculation steps are as follows.(1)Predict the state with initials: (2)Compute the error covariance: (3)Compute the Kalman gain: (4)Update the state estimate: (5)Update the error covariance:

4. Case Studies

Compared with the other two common frequency tracking methods, adaptive discrete Fourier transforms (i.e., adaptive Fourier filter) and conventional Kalman filter, the performance of extended Kalman filter-based frequency calculation algorithm is experimentally evaluated. For the following simulation tests, the fundamental frequency and amplitude are assumed to be 50 Hz and 1p.u., respectively. The sampling frequency is set to be 1200 Hz, which is the conventional choice for protective relays.

Firstly, the observed signal is a voltage waveform with time-varying frequency; that is, . The angular frequency changes from 50 Hz down to 48 Hz and then climbs to 51 Hz linearly. The actual voltage is shown in Figure 3.

Accordingly, frequency tracking performance of different algorithms is shown in Figure 4.

To explain clearly, the test can be divided into three stages.

(1) Stage 1 (2 Hz step-down change in frequency). The frequency of the signal is suddenly decreased from 50 Hz to 48 Hz. The results reveal that the tracking time of extended Kalman filter is about 10 ms, while the other two algorithms use almost 50 ms. Extended Kalman filter is 4 times faster than the others in frequency tracking.

(2) Stage 2 (tracking the ramp). The proposed extended Kalman filter-based algorithm has the less responding time in tracking frequency variation. As shown in Figure 4, extended Kalman filter and conventional Kalman filter both have good performance in tracking ramping frequency. Their tracking times in this case are 20 ms shorter than adaptive Fourier filter’s.

(3) Stage 3 (back to 51 Hz). Extended Kalman filter-based algorithm provides frequency estimation result with high accuracy and velocity. Still, extended Kalman filter and conventional Kalman filter are better than adaptive Fourier filter and extended Kalman algorithm has the best stability compared with these three methods.

For the tracking time of ramp-changed frequency, extended Kalman filter and conventional Kalman filter are almost the same. However, extended Kalman filter is more stable and has less fluctuation than the conventional one. Besides, as the frequency changes sharply, the proposed method has clear superiority in tracking speed. In sum, it is confirmed that the proposed extended Kalman filter-based algorithm has excellent responding performance for signals with time-varying frequencies.

In addition, it is necessary to study the response of the extended Kalman filter and the other two algorithms in the presence of noise. Random noise is injected to the observed signal to test the stability of the algorithms. Generally, the signal-to-noise ratio, often written as SNR, is the measure of signal strength relative to background noise:

In (21), is the observed signal strength in volts and is the noise level also in volts. The ratio is measured in decibels (dB).

Obviously, the observed signal is more unreadable with the larger noise. Even a little noise can cause a big error in frequency tracking. This is because such comprehensive signal is no longer ideal sine or cosine wave for noise added to pure wave. Based on the observed signal shown in Figure 3, random noise was added in to form signal , in which SNR is set to be 40 dB, as shown in Figures 5(a) and 5(b).

For the signal with time-varying frequency and noise, it is hard to estimate frequency correctly. Figure 6 shows the estimated frequencies by Kalman filter, adaptive Fourier filter, and extended Kalman filter-based algorithms.

Since the linear characteristics of local signal were deteriorated by adding noise, conventional Kalman filter was influenced significantly. Apparently, the proposed algorithm based on extended Kalman filter and the algorithm based on adaptive Fourier filter achieved better performance in antinoise ability. For comparison, the measured frequency variances are 0.187 for adaptive Fourier filter-based algorithm and 0.151 for extended Kalman filter-based algorithm, respectively. Therefore, the proposed algorithm is more effective for frequency tracking under the conditions of islanding operation with time-varying frequency, noise, and so forth.

As shown in Figure 4, the proposed algorithm achieves best tracking performance for the input signal without noise. Adaptive Fourier algorithm has the worst frequency tracking character in this case. Figure 6 demonstrates that when there exists noise, adaptive Fourier filter obtains better antinoise ability than conventional Kalman filter. The proposed algorithm still achieves the best antinoise ability. These results show that adaptive Fourier filter has a better antinoise performance but has the poorest frequency tracking ability, conventional Kalman filter has a better frequency tracking performance but has the poorest antinoise ability, and the proposed algorithm based on extended Kalman filter has the best performance in both frequency tracking and antinoise.

Generally speaking, the most commonly used method in islanding detection of MGs is both over/undervoltage relay and over/underfrequency relay (or ROCOF). Over/undervoltage relay mainly works when there is an active power imbalance, while over/underfrequency is more effective when there is a reactive power imbalance. Thus, frequency tracking ability of the proposed algorithm can be tested in a designed islanding simulation model.

By using MATLAB/SIMULINK, the model of distribution network with MGs is built to simulate various parallel and islanding operation conditions. As shown in Figure 7, the distribution network contains several DGs and energy storage components, transmission line, and load. The parameters of distribution network are listed in Figure 7. To verify the good performance of extended Kalman filter, different topologies of MGs have been formed to build a variety of operation conditions. In this paper, three typical islanding conditions are discussed as follows.

Case  1 (islanding operation with imbalanced power (both active and reactive)). The circuit breaker CB opens and the MG is in islanding operation. According to the output of DGs and amounts of power loads, there is an obvious imbalance between the generations and loads in the islanding MG. Based on (1) and (2), the frequency of MG-1 should have a sudden change consequently when the island happens. By applying these three algorithms in frequency tracking, results are shown in Figure 8.

As shown in Figure 8, when there are obvious imbalance between powers and loads in the MG, the frequency raised from fundamental frequency to 60 HZ gradually. Obviously, in the process of the frequency growth, the stability of extended Kalman Filter-based algorithm is much better than the other two algorithms. In such cases, islanding with imbalanced power can be easily detected by over/underfrequency relay. The proposed frequency estimation algorithm can be embedded to improve calculation accuracy and stability with less fluctuation.

The measurements of frequency changing rate and frequency variance are shown in Figures 9 and 10.

As shown in Figure 9, there is a sudden change for all the three algorithms at about 0.3 s (exact islanding time) in the simulation. This sudden change can also be used to exam whether there is an islanding or not. After 0.3 s, is supposed to gradually change to zero and then stabilize. This is because there is no more power imbalance except for some small disturbance to cause frequency change. As for adaptive Fourier filter, remains obviously to fluctuate after 0.05 s of islanding process. fluctuates cyclically in conventional Kalman filter. Extended Kalman filter is found to be stable after islanding process, unlike earlier approaches.

Figure 10 shows the change tendency of frequency covariance when islanding occurs with imbalanced power. Frequency covariance reflects the difference between average value and sample value. In theory, frequency covariance should increase when there is an island and then decrease to zero gradually as the frequency stabilizes. It is obvious in Figure 10 that extended Kalman filter is the most stable one with the least fluctuation.

Simulation results show that extended Kalman filter not only can detect frequency changes effectively but also has less fluctuation after islanding process.

Case  2 (islanding operation with balanced power). In islanding detection, protection relay should act quickly when an island happens, regardless of whether the powers of DGs and local loads are matched or not.

In case 2, switch S-1 is disconnected; network load 1 is out of power consequently. The total numbers of generations are equal to the sum of loads for both active and reactive powers. The circuit breaker CB opens to form an MG at 0.3 s. In theory, the voltage and frequency of the MG will change a little. The measured voltage and frequency are shown in Figures 11 and 12.

As shown in Figures 11 and 12, the measured voltage changes a little right after 0.3 s; the frequency also changes to approximately 49.5 HZ in the islanding process. It is also seen from the simulations that extended Kalman filter changes the fastest with the least fluctuations compared with the other two algorithms.

Figure 13 shows the performance of the three algorithms for detecting in the MG and it is observed from the figure that detected by conventional Kalman filter becomes divergent after islanding, while the other two algorithms can detect the small changes when islanding happens with balanced power. For extended Kalman filter, the tracking time is 0.01 s (approximately) less than adaptive Fourier filter. The variance of the three algorithms is shown in Figure 14.

Case  3 (islanding operation with only imbalanced active power). In case 3, DG-1 is changed to 3 kW and the switch S-1 is kept disconnected. Consequently, there is only a 3 kW shortage of active power in the MG when islanding happens. In theory, voltage of PCC should change a lot but frequency would change a little because frequency shift in MG is mainly influenced by reactive power shortage. Figures 15, 16, and 17 show estimation values of frequency, , and variance of frequency, respectively. Obviously, simulation results verify that the estimated frequency by using the proposed algorithm is more stable than those of the other two algorithms when islanding occurs.

5. Conclusion

This paper presents an extended Kalman filter for the frequency estimation to detect islanding in MGs. The mathematical model of nonlinear system is developed using analytical equations. In order to solve the nonlinear problem, Taylor series are used to linearize state equations, which is the main point of solving the nonlinear problem compared with other algorithms. To show the performance of extended Kalman filter, several tests have been applied. The simulation results show that extended Kalman filter not only has the fastest tracking speed compared with conventional Kalman filter and adaptive Fourier filter in test 1 but also has the best interference immunity in the presence of random noise in test 2. It can stand 40 dB or more noise without much distortion. By using extended Kalman filter, the islanding detection based on frequency is improved significantly in reliability and stability.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This work was supported by the National High Technology Research and Development Program of China (2011AA05A106), Program for New Century Excellent Talents in Education Ministry of China (no. NCET-11-0367), and National Natural Science Foundation of Tianjin City (11JCYBJC07600).