Considered design criteria.
Abstract
It is well known that recursive algorithms for harmonic analysis have better characteristics in terms of monitoring the change of the spectrum in comparison to methods based on the processing of blocks of consecutive samples, such as, for example, discrete Fourier transform (DFT). This property is particularly important when applying spectral estimation in real-time systems. One of the recursive algorithms is the resonator-based one. The approach of the parallel cascades of multiple resonators (MR) with the common feedback has been generalized as the cascaded-resonator (CR)-based structure for recursive harmonic analysis. The resulting filters of the CR structure can be finite impulse response (FIR) type or the infinite impulse response (IIR) ones as a computationally more efficient solution, optimizing the frequency responses of all harmonics simultaneously. In the case of the IIR filter, the unit characteristic polynomial present in the FIR filter is replaced with an optimized characteristic polynomial of the transfer function. Such a change does not lead to an increase in computing requirements and changes only the resonator gain values. By using a conveniently linearized iterative algorithm for stability control purpose, based on the Rouche’s theorem, the iterative linear-programming-based or the constrained linear least-squares (CLLS) optimization techniques can be used.
Keywords
- cascaded-resonator (CR)-based filter
- constrained linear least squares (CLLS)
- discrete Fourier transformation (DFT)
- Taylor-Fourier transformation (TFT)
- harmonic analysis
- IIR filter
- linear programming (LP)
- multiple-resonator (MR)-based filter
1. Introduction
In recent years, a lot of various algorithms for harmonic analysis have been proposed in the literature. Good surveys of some techniques are presented in Refs. [1, 2]. The discrete Fourier transform (DFT)-based method, as a mainstream approach, is widely used for harmonic analysis, thanks to its low computational burden, especially with the fast Fourier transform (FFT). However, errors arise when the power system is operating at off-nominal frequency, especially under dynamic conditions. Harmonic estimates under oscillating conditions were recently proposed in several studies. A huge volume of papers has been written on harmonics tracking in power systems. The focus of recent literature has been on preprocessing and postprocessing methods for fixed-sample-rate algorithms surrounding a core DFT (or similar) analysis with a fixed number of samples [3, 4].
Idea of considering a dynamic model to better estimate the fundamental and harmonic phasors has been emerging in Refs. [4, 5, 6, 7, 8, 9], and its importance has been pointed out in Ref. [10]. In Ref. [9], the discrete Taylor-Fourier transform (TFT) was proposed as an extension of the full DFT. The TFT by using a dynamic model of the signal extends and improves estimations obtained by DFT [9, 11]. This transformation corresponds to an FIR filter bank with a maximally flat frequency response. Each filter in the bank has maximum flat gain around the harmonic frequency and near-ideal attenuation around the other harmonics. This results in less distortion of the signal and less influence of disturbances present in the signal. In this way, the periodicity restriction assumed by the Fourier analysis is mitigated. As result, so obtained reconstruction is more accurate than the reconstruction obtained through DFT. When harmonics are narrow-band pass signals with spectral density confined into the flat-gain harmonic intervals, the coefficients of the TFT provide good estimates of the first derivatives of their complex envelopes. The digital TFT formulation in a matrix form that facilitates its implementation with the FFT to reduce the computational complexity of its straightforward implementation has been given in [11].
The multiple-resonator (MR)-based recursive estimators have been introduced in Ref. [12]. In Ref. [13], the MR-based observer structure is proposed for the implementation of TFT. Their good properties are provided by their parallel form, a recursive implementation, and good sensitivity properties assured by the infinite loop gain at the resonator frequencies [14]. Multiple zeros also provide reinforcing of the required attenuations and zero-gain flatness at the harmonic components with a high overall attenuation in the stopbands. For the known frequency of the periodic signal, the estimator based on resonators with common feedback enables the estimation of Fourier components even in cases when the sampling rate is not synchronized with the signal frequency. Also, this harmonic analyzer shows robustness in real conditions where there is noise and nonlinearity of the analog part of the equipment. MR-based harmonic analysis provides better performances of the spectral estimation than the single-resonator-based observer that corresponds to the classical DFT estimator.
This approach has been generalized as the cascaded-resonator (CR)-based structure for harmonic analysis. In Ref. [15], the cascaded-dispersed-resonator-based (CDR-based) structure for harmonic analysis is proposed. Although the design objectives in Refs. [15, 16] are different, the design technique is the same in both cases. In Ref. [16], the task is to replace multiple resonators with a cascade of single resonators. In this way, for the design purpose, it is possible to use the classic Lagrange interpolation technique instead of the more complex Hermitian interpolation. The condition that the poles are distributed in a narrow band around the resonant frequencies, as close as possible to each other, which is however limited by numerical accuracy. In Ref. [15], the task is to arrange the poles in the cascade in such a way as to enable optimal attenuation in the entire range around the harmonic frequencies. Practically, the only difference is in the arrangement of the resonator poles around the harmonic frequencies. The frequency deviation issue can be resolved by adaptive estimators based on the actual frequency feedback. This approach has drawbacks as a stability issue, due to an internal delay. Instead of that, usage of the external module for the fundamental frequency estimation is proposed in Ref. [17].
2. Cascaded-resonator-based structure harmonic analysis
Figure 1 shows the block diagram of the
We have in every
where
The closed transfer function for every channel
It can be seen that all poles of the resonators are mapped to the zeros of the transfer function
From Eq. (2), it is obvious that the filter corresponding to
Although the characteristic polynomial of the transfer functions can be chosen in different ways, under some conditions it is possible to choose one so that the error is driven to zero in exactly
Frequency responses of zeroth-, first-, and second-order differentiator discrete FIR filters corresponding to the transfer functions
In order to obtain wider flatness intervals in the pass band, the feedback signals
2.1 Optimization problem statement
In order to adapt the achieved digital differentiators to their ideal frequency responses around the harmonic frequencies, it is possible to modify the filters transfer functions. An optimization technique is utilized to reshape frequency responses of the filters transfer functions, avoiding resonant frequency peaks and reducing a group delay simultaneously, that can be rather important in control applications. The optimization task can also be different, e.g., maximization of the selectivity.
The transfer function of the extended structure, including the compensation FIR filter
where
The polynomial
With a given weighting function
where
The sum of squares of absolute values of errors in
where
In order to minimize the error
where
Further, it is:
In Ref. [18], a suitable method has been described to linearize the error function
For the sake of notational simplicity, we denote
The vector of unknown coefficients
The constraints defined by inequality (11) refer to the frequency ranges in which the error optimization is performed. In addition, sometimes it is necessary to keep the error within predefined limits, such as for example the gains in the stopbands and/or the transition bands:
If one wants to ensure unity gain in harmonic frequencies, the following condition must be met:
where
In a matrix form, it can be written as follows:
where
Complex equality constraints (15) can be written as follows
2.2 Linearization of constraints
The inequalities (11) and (13) are nonlinear. The convex semi-infinite programming can be applied [20], thanks to the quadratic property of the functions. Furthermore, a convenient approximation of these inequalities by the system of the linear ones [21, 22, 23, 24, 25] allows us to solve this constrained optimization problem through the LP or the constrained linear least-squares (CLLS) optimization technique.
It is valid:
where
Since
where
Let us define as following for frequency point
Hence, Eq. (13) can be linearized and written in a matrix form
where matrix
and
Using matrix notation, and collecting inequality linearization systems in all settled frequency points, (20) becomes the following linear form:
where matrix
In case of the (11), we have:
or in a matrix notation
where
2.3 Design (optimization) approach 1: CLLS minimization
An objective is to find a minimum of the sum of squares of absolute values of
where
If we apply the following equality
where
where
The constrained linear least squares (CLLS) is an optimization problem that deals with the maximization or minimization of a linear function called the objective function subject to linear constraints. Summarizing (16), (21), and (26), the CLLS problem is formalized as follows:
where
2.4 Design (optimization) approach 2: minimax optimization
The LP optimization problem can be formalized in the following way:
where
3. IIR cascaded-resonator-based harmonic analysis
In accordance with the prevailing trends in works dealing with this issue, in the initial works [13, 16, 22, 23, 25, 26] the resulting filters of CR structures were of the FIR type. Later, in [27], IIR filters were used, which represent a computationally more efficient solution [28, 29]. The unit characteristic polynomial of the transfer function is replaced by the optimized one. Such a change does not lead to an increase in the volume of numerical calculations and only requires a change in the gain values associated with the resonators. Since the optimization of frequency characteristics for all harmonics is carried out at the same time, it is possible to obtain frequency responses of the same shape. By using a linearized iterative scheme [30] based on Rouche’s theorem with the aim of stability control, it is possible to use iterative optimization techniques based on LP or CLLS.
3.1 Problem statement
The task of optimization is to design a filter
In order to make the notation as simple and short as possible, let us form a virtual transfer function so that in each bandwidth centered in
for
In addition, we define a unique transfer function
Similarly, a virtual unique desired transfer function in an angular frequency
where pass and stop bands are defined by
3.2 Stability constraint
To obtain a stable IIR filter
Let
where
will retain the zeros within this circle provided that in step
If (34) is included in (35), we get
where
As for the initial value of the vector
If constraint (37) is applied to a sufficiently dense set of points lying on a circle of radius
where matrix
Thus, the set of constraints (38) is added to the set of the above constraint conditions. In this way, the iterative methods mentioned above solve the LP or CLLS problem by taking into account constraints (38) in each iteration step. A fixed step size
3.3 Resonators’ gains calculation
After the polynomial
A generalized closed-form formula for gains calculation for any
As a final result, the designed resonator gains are as follows:
It should be mentioned that polynomial
3.4 Design example
In the next section, three demonstration examples, with frequency responses and pole-zeros maps, of the designed
3.4.1 Example 1: flat-top passbands
The filters with a wider flatness in the pass band allow better signal tracking in the dynamic conditions. Since it is difficult task to provide the tracking of the parameters changes together with good attenuation in the stopband, a relatively high order of
3.4.2 Example 2: narrow selective passbands
In this example, the requests for passband and transition bands are omitted, which decrease a numerical burden. To obtain high selectivity,
3.4.3 Example 3: numerically cost-effective solution
This example is very similar to the previous one with different that now is
4. FIR cascaded-resonator-based harmonic phasor estimation
Instead of the common simultaneous compensation of the frequency responses for all harmonics through the compensating filter
In order to obtain an algorithm that can be utilized in a wide range of signal dynamics in a unified way and improve the frequency response, a linear combination of the differentiators’ outputs in the cascade can be used [22, 25, 26]. The goal of this compromised solution was to propose a tracking-mode harmonic estimation technique. In Ref. [31], it is shown that this estimation technique exhibiting maximally flat frequency responses can be efficiently used for implementation of P-Class Compliant PMU in accordance with IEC/IEEE Standard 60255-118-1:2018 for harmonic phasors estimation. In this approach, the order of the resulted compensation filter was low and equals to the pole multiplicity. In Refs. [21, 23, 24], the proposed approach was generalized to any necessary order through the postprocessing compensation FIR filters applied to the output signals obtained by the CR structure. The drawback of this approach is that we have to use as many postprocessing FIR filters as there are harmonic phasors that we need to estimate (one estimator per one harmonic phasor). On the other hand, the advantage is that it is possible to obtain a filter bank, surrounding the core CR structure, with a set of different compensation filters corresponding to different signal dynamics.
The transfer function for every
where
Eq (40) has the same form as Eq. (5) with the following constraints:
4.1 Total vector gradient (TVG) calculation
The response time and delay of the estimator are directly correlated with the group delay (GD) of the filter. Due to the more complex calculation of GD, it is possible to use the gradient of the transfer function
where
Eq. (41) can be written in a matrix form as follows:
where
4.2 Optimization criteria
Selections of the object and functions and constraints can be very different depending on the optimization criteria scenario. Herein will be considered three criteria summarized in Table 1 [21, 24]. In the first Criterion 1, the cost function in which absolute values are minimized is the transfer function
Criteria | Object function | Desired values | Frequency range | Constrained functions | Reference values | Frequency range |
---|---|---|---|---|---|---|
Criterion 1 | 0 | Stopbands | Passband | |||
0 | Transition band | |||||
Criterion 2 | 0 | Stopbands | 0 | Harmonic frequency | ||
0 | Transition band | |||||
Criterion 3 | 0 | Harmonic frequency | 0 | Stopband | ||
0 | Transition band |
Criterion 2 is similar with Criterion 1 with the difference that the absolute value of the TVG in the harmonic frequency is limited, that is
Criterion 3 minimizes the absolute value of the TVG in the harmonic frequency subject to the limitation of the gain in the stopband. Similarly with the previous cases, the limitation of overshoots in the transition bands is necessary.
4.3 Design example
In order to illustrate the described algorithms, examples overtaken from [21] are shown for Criteria 2 and 3 defined in Table 1. Figures 10 and 11 show the frequency responses of the transfer function of the third harmonic
Figure 12 shows the frequency responses of the transmission functions
5. Conclusions
CR-based algorithms for harmonic analysis and estimation of harmonic phasors are described in this chapter. The resulting filters for extracting harmonic signals can be of the FIR or IIR type. Algorithms for the optimization of frequency responses are presented and corresponding examples of synthesis are given. Linearized mathematical models were used, which enabled the use of linear optimization methods such as LP and CLLS. When designing the IIR analyzers, a linearized iteration scheme based on the Rouche’s theorem was used to control the stability of the system. As for the optimization algorithms, they can potentially be improved by various modifications such as, for example, by nesting optimization loops related to different constraint conditions and/or objectives, and adaptation of iteration steps. It is notable that approximating result could be obtained heuristically thanks to the characteristic position of the pole and zeros. In addition, it seems that closed-form calculation expressions derivation could be possible. On the other hand, the FIR-type algorithm particularly optimizes frequency responses through the postprocessing compensation FIR filters applied to the output signals obtained by the CR structure. This approach allows the usage of a set of compensation filters corresponding to different signal dynamics.
References
- 1.
Jain SK, Singh SN. Harmonics estimation in emerging power system: Key issues and challenges. Electric Power Systems Research. 2011; 81 :1754-1766. DOI: 10.1016/j.epsr.2011.05.004 - 2.
Chen CI, Chen YC. Comparative study of harmonic and interharmonic estimation methods for stationary and time-varying signals. IEEE Transactions on Industrial Electronics. 2014; 61 :397-404. DOI: 10.1109/TIE.2013.2242419 - 3.
Phadke AG, Kasztenny B. Synchronized phasor and frequency measurement under transient conditions. IEEE Transactions on Power Delivery. 2009; 24 :89-95 - 4.
Mai RK, He ZY, Fu L, Kirby B, Bo ZQ. A dynamic synchrophasor estimation algorithm for online application. IEEE Transactions on Power Delivery. 2010; 25 :570-578 - 5.
de la O Serna JA. Dynamic phasor estimates for power system oscillations. IEEE Transactions on Instrumentation and Measurement. 2007; 56 :1648-1657 - 6.
Platas-Garza MA, de La O Serna JA. Dynamic phasor and frequency estimates through maximally flat differentiators. IEEE Transactions on Instrumentation and Measurement. 2010; 59 :1803-1811 - 7.
Barchi G, MacIi D, Petri D. Synchrophasor estimators accuracy: A comparative analysis. IEEE Transactions on Instrumentation and Measurement. 2013; 62 :963-973 - 8.
Belega D, MacIi D, Petri D. Fast synchrophasor estimation by means of frequency-domain and time-domain algorithms. IEEE Transactions on Instrumentation and Measurement. 2014; 63 :388-401 - 9.
Platas-Garza MA, de La O Serna JA. Dynamic harmonic analysis through Taylor-Fourier transform. IEEE Transactions on Instrumentation and Measurement. 2011; 60 :804-813 - 10.
Castello P, Lixia M, Muscas C, Pegoraro PA. Impact of the model on the accuracy of synchrophasor measurement. IEEE Transactions on Instrumentation and Measurement. 2012; 61 :2179-2188. DOI: 10.1109/TIM.2012.2193699 - 11.
de La O Serna JA. Taylor-fourier analysis of blood pressure oscillometric waveforms. IEEE Transactions on Instrumentation and Measurement. 2013; 62 :2511-2518. DOI: 10.1109/TIM.2013.2258245 - 12.
Peceli G, Simon G. Generalization of the frequency sampling method. IEEE Instrumentation and Measurement Technology Conference. 1996:339-343 - 13.
Kušljević MD, Tomić JJ. Multiple-resonator-based power system Taylor-Fourier harmonic analysis. IEEE Transactions on Instrumentation and Measurement. 2015; 64 :554-563 - 14.
Péceli G. Resonator-Based Digital Filters. IEEE Transactions on Circuits and Systems. 1989; 36 :156-159 - 15.
Korać VZ, Kušljević MD. Cascaded-dispersed-resonator-based off-nominal-frequency harmonics filtering. IEEE Transactions on Instrumentation and Measurement. 2021; 70 :Art. no. 1501203. DOI: 10.1109/TIM.2020.3035396 - 16.
Kušljević MD. Quasi multiple-resonator-based harmonic analysis. Measurement (Lond). 2016; 94 :471-473 - 17.
Kušljević MD. Adaptive resonator-based method for power system harmonic analysis. IET Science, Measurement and Technology. 2008; 2 :177-185. DOI: 10.1049/iet-smt:20070068 - 18.
Chottera AT, Jullien GA. A linear programming approach to recursive digital filter design with linear phase. IEEE Transactions on Circuits and Systems. 1982; 29 :139-149. DOI: 10.1109/TCS.1982.1085123 - 19.
Tseng CC, Lee SL. Minimax design of stable IIR digital filter with prescribed magnitude and phase responses. IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications. 2002; 49 :547-551. DOI: 10.1109/81.995676 - 20.
Messina F, Vega LR, Marchi P, Galarza CG. Optimal differentiator filter banks for PMUs and their feasibility limits. IEEE Transactions on Instrumentation and Measurement. 2017; 66 :2948-2956. DOI: 10.1109/TIM.2017.2728378 - 21.
Kušljević MD, Vujičić VV. Design of digital constrained linear least-squares multiple-resonator-based harmonic filtering. Acoustics. 2022; 2022 :111-122 - 22.
Kušljević MD, Tomić JJ, Poljak PD. Constrained-group-delay-optimized multiple-resonator-based harmonic analysis. Tehnicki Vjesnik. 2021; 28 :1244-1252. DOI: 10.17559/TV-20180327173716 - 23.
Tomić JJ, Poljak PD, Kušljević MD. Frequency-response-controlled multiple-resonator-based harmonic analysis. Electronics Letters. 2018; 54 :202-204. DOI: 10.1049/el.2017.4180 - 24.
Kušljević MD. Determination of minimax design of multiple-resonator-based harmonic estimators through linear programming. Research Trends and Challenges in Physical Science. 2021; 5 :46-62. DOI: 10.9734/bpi/rtcps/v5/5333f - 25.
Kušljević MD. Multiple-resonator-based harmonic analysis. Proceedings of 2nd International Conference on Electrical, Electronic and Computing Engineering IcETRAN. Silver Lake: Serbia; 2015. p. MLI1.1.1-12 - 26.
Kušljević MD, Tomić JJ, Poljak PD. Maximally flat-frequency-response multiple-resonator-based harmonic analysis. IEEE Transactions on Instrumentation and Measurement. 2017; 66 :3387-3398 - 27.
Kušljević MD. IIR cascaded-resonator-based filter design for recursive frequency analysis. IEEE Transactions on Circuits and Systems II: Express Briefs. 2022; 69 :3939-3943 - 28.
Kennedy HL. Digital filter designs for recursive frequency analysis. Journal of Circuits, Systems and Computers. 2016; 25 :Art. no. 1630001. DOI: 10.1142/S0218126616300014 - 29.
Vârkonyi-Koczy AR. Efficient polyphase DFT filter banks with fading memory. IEEE Transactions on Circuits and Systems II: Analog and Digital Signal Processing. 1997; 44 :670-673. DOI: 10.1109/82.618043 - 30.
Lang MC. Least-squares design of IIR filters with prescribed magnitude and phase responses and a pole radius constraint. IEEE Transactions on Signal Processing. 2000; 48 :3109-3121. DOI: 10.1109/78.875468 - 31.
Kušljević MD, Tomić JJ, Poljak PD. On multiple-resonator-based implementation of IEC/IEEE standard P-class compliant PMUs. Energies (Basel). 2021; 14 :198. DOI: 10.3390/en14010198