Open access peer-reviewed chapter

Perspective Chapter: Cascaded-Resonator-Based Recursive Harmonic Analysis

Written By

Miodrag D. Kušljević

Submitted: 12 September 2022 Reviewed: 01 October 2022 Published: 02 November 2022

DOI: 10.5772/intechopen.108402

From the Edited Volume

Time Frequency Analysis of Some Generalized Fourier Transforms

Edited by Mohammad Younus Bhat

Chapter metrics overview

78 Chapter Downloads

View Full Metrics

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].

Advertisement

2. Cascaded-resonator-based structure harmonic analysis

Figure 1 shows the block diagram of the K-type CR-based harmonic analyzer. The structure includes K+12M+2 resonators with poles zm,km=M0M+1k=02K, placed in the 2M+2 cascades each of them having K+1 cascaded complex poles on the unit circle around related harmonic frequency [13, 15, 16]. Each resonator has its belonging complex gains gm,k. A complete set of resonator cascades is connected in parallel in a common feedback loop. The gains of the transfer functions at the resonator frequencies are equal to unity due to the infinite loop gain at these frequencies. The number of cascades (for the coherent sampling) is 2M+2 (M is a number of harmonics) and depends on ω1, because the condition Mω1<π has to be satisfied. The ω1=2πf1/fS, f1 and fS are the nominal fundamental frequency and sampling rate. The overall system order is K+12M+2.

Figure 1.

Block diagram of the K-type CR-based harmonic analyzer.

We have in every mth channel of the structure, as an internal transfer function

Hmz=VmFzEz=z1k=0Kgm,ki=0k11zm,iz1,gm,k=i=kKgm,iE1

where m=M,,0,,M+1, k=0,1,,K, and i=0k11zm,iz1=1 for k=0. VmFz is the total feedback signal corresponding to mth channel, composed as the linear combination of the output of each resonator, i.e., each channel contributes to the filter output with K+1 complex weights gm,kk=01K.

The closed transfer function for every channel m has the form of [15, 16].

Tm,0z=Vm,0zV1z=gm,0z1PmzAz,Pmz=n=MnmM+1i=0K1zn,iz1,E2
Tm,kz=Vm,kzV1z=gm,kz1Pmzi=0k11zm,iz1AzE3
Az=n=MM+1i=0K1zn,iz1+z1n=MM+1Pnzk=0Kgn,ki=0k11zn,iz1E4

It can be seen that all poles of the resonators are mapped to the zeros of the transfer function Tm,0z due to the common feedback, with the exception of the poles belonging to the cascade of the harmonic m, which are automatically canceled by the poles that generated them. In differentiators transfer functions Tm,kzk=1K, k0, zeros zm,ii=0k1, originated from poles in mth channel, exist providing zero gain.

From Eq. (2), it is obvious that the filter corresponding to mth-channel provides the maximally flatness property in the stop band around the remaining harmonic frequencies. For small pole displacements, f frequency response reshaping is negligible in comparison to the multiple-resonator case [16]. It is important to mention that the lower border of f is limited by the computational accuracy. On the other hand, avoiding of the multiple poles allows design by the direct usage of the classical Lagrange interpolation formula rather than the Hermite one.

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 K+12M+2 samples. This is provided by what is called a dead-beat observer, for which the coefficients are calculated from the condition that the observer has deadbeat settling, i.e., it finds the unknown state within at most K+12M+2 steps. That leads to FIR filters (with Az=1) in each channel. This way, although the structure is realized by resonators, which are IIR filters, the resulting filters in each channel are FIR type. Figure 2 shows frequency responses of T1,0z=g1,0z1P1z (corresponding to the fundamental component) of the dead-beat observer for the first up to the sixth order of resonator multiplicity (K=0,1,,5). It is observed that (quasi) MR structures with a higher order multiplicity of poles provide smaller sidelobes and thus ensure a lower sensitivity to noise and to harmonic and interharmonic disturbances. The negative effect is the increase in the order of the filter, which increases the group delay and response time of the filter, as well as the numerical complexity. Due to this feature, large values of the resonator multiplicity could be inconvenient in the control application. The case K=0 corresponds to a classic DFT estimator, while the cases K>0 correspond to the TFT.

Figure 2.

Frequency responses for T1,0z (the zeroth differentiator of the first harmonic) for K=0,1,,5 (the first- to sixth-order resonator structure).

Frequency responses of zeroth-, first-, and second-order differentiator discrete FIR filters corresponding to the transfer functions Tm,kz related to the fundamental component (m=1, k=0,1,2), for K=2 and K=3 (the third- and forth-order resonator structure) are given in Figure 3.

Figure 3.

Frequency response of the zeroth-, first-, and second-order discrete FIR filters corresponding to Tm,kz, (m=1 and k=0,1,2), related to the fundamental component, for fs=800Hz and f1=50Hz, for (a) K=2 estimator (the third-order resonator structure) and (b) K=3 estimator (the fourth-order resonator structure).

In order to obtain wider flatness intervals in the pass band, the feedback signals VmFz could be used for harmonic estimation instead of Vm,0z [13]. The global transfer function of the feedback loop is a sum of the transfer functions of all K+1 differentiators TmFz=VmFz/Vz=k=0KTm,kz. The frequency responses of the estimation of the fundamental component obtained by Vm,0z and estimation obtained by VmFz are given together in Figure 4a. The good properties of the filters corresponding to the transfer functions TmFz are related to the phase responses. Frequency responses have a zero phase response in the frequency bands around the harmonic frequencies, which means that in those frequencies the group delay is equal to zero. Bad properties are high resonant gains at the edges of bandwidths and high sidelobes. The zero flat gains in the stop band are preserved, although their intervals are narrowed. It should be mentioned that the peaks of the interharmonic gains and the side lobes increase by the multiplicity of the resonators (Figure 4b).

Figure 4.

Frequency responses of (a) T1,0z and T1Fz for K=2 estimator (the third-order cascade) and (b) T1Fz for K=1, K=2 and K=3, related to the fundamental component, for fs=800Hz and f1=50Hz.

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 Bz, for the mth component channel is as follows:

Tm,0ABz=Vm,0zV1z=BzTm,0z=gm,0z1PmzBzAz=gm,0z1PmzqBxB1+qAxAE5

where

Bz=b0+b1z1++bNB1zNB1+bNBzNB,Az=1+a1z1++aNA1zNA1+aNAzNA,
xB=b0b1bNB1bNBT,xA=a1a2aNA1aNAT,x=xBTxATT,
qB=1z1z2zNB1zNB,qA=z1z2zNA1zNA.

The polynomial Az does not cause any additional computation and only the polynomial Bz represents an additional numerical burden. Even more, in some cases, it is possible to choose Bz=b0 which causes only one additional multiplication. Nevertheless, for the purposes of design, we will consider the IIR filter Bz/Az as a common compensation for the total set of FIR filters Pmz, m=M,,0,,M+1.

With a given weighting function Wω, the weighted Chebyshev error between the desired and actual frequency responses is defined as follows:

J1x=maxωΩWωTABeHdeE6

where Hde is the desired frequency response in angular frequency ω specified in the frequency region Ω (or a union of several compact frequency bands) of the interests and 0 ≤ ω ≤ π.

The sum of squares of absolute values of errors in NF angular frequencies as follows:

J2x=i=1NFWziTABziHdziE7

where zi=ejωi.

In order to minimize the error J1x defined in Eq. (6), a new variable δ can be introduced and the problem reformulated as follows:

minimizeδsubject toEωiδ,ωiΩ,i=1,2,,NFE8

where Ezi=WziTABziHdzi, zi=expjωi, for the total number NF of points defined in Ω.

Further, it is:

WziAziTziBziAziHdziδE9

In Ref. [18], a suitable method has been described to linearize the error function J1x such that the design problem can be solved by the linear programming (LP) method. However, this method neglects the denominator part Azi. In Ref. [19], the performance of the LP method was improved by eliminating the above drawback by using the following iterative constraints scheme:

WziAk1ziTziBziAkziHdziδE10

For the sake of notational simplicity, we denote

WziAk1ziTziqBz=ziHdziqAz=zixHdziδE11

The vector of unknown coefficients x is expanded with an additional variable δ, so that the expanded vector of unknowns is obtained:

xδ=xδT.E12

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:

1Ak1ziTziqBz=ziHdziqAz=zixHdziliE13

zi=expjωi, i=1,2,,NG

li, i=1,2,,NG, are fixed borders of the absolute values of the set of complex error Ez along assemblies zi=expjωi, i=1,2,,NG.

If one wants to ensure unity gain in harmonic frequencies, the following condition must be met:

BzAzz=zm=1,i.e.Bzm=Azm.E14

where m=M,,0,,M+1.

In a matrix form, it can be written as follows:

qmx=1.E15

where q=qBqA, qm=qz=zm.

Complex equality constraints (15) can be written as follows

ReqmImqmx=10,m=M,,0,,M+1.E16

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:

Ezi=Ezicos2αi+sin2αi=ReEzicosαi+ImEzisinαiE17

where αi=argEzi.

Since αi is not known a priory, the nonlinear constraints in Eq. (8) can be approximated by the system of linear constraints:

ReEzicosαi,j+ImEzisinαi,jδE18

where i=1,2,,NF. If we choose L equidistantly distributed angles then it is αi,j=αi,0+j12π/L, where j=1,2,,L. Figure 5 shows that approximations by square and octagon (L=4 and L=8, respectively) allow only rough approximations. A higher accuracy is obtained by increasing L. Herein, L=32 is used.

Figure 5.

Approximation of a cycle with a square and an octagon.

Let us define as following for frequency point i:

WAzi=WziAk1zi,gi=TziqBz=ziHdziqAz=zi.E19

Hence, Eq. (13) can be linearized and written in a matrix form

WAziAixWAzibi+li1L×1,i=1,2,,NGE20

where matrix Ai and vector bi are given by

Ai=Regicosαi1+Imgisinαi1Regicosαi2+Imgisinαi2RegicosαiL+ImgisinαiL,bi=ReHdzicosαi1+ImHdzisinαi1ReHdzicosαi2+ImHdzisinαi2ReHdzicosαiL+ImHdzisinαiL.

and li is a constraint limit of the error in the point zi.

Using matrix notation, and collecting inequality linearization systems in all settled frequency points, (20) becomes the following linear form:

AxborA0NGL×1xδbE21

where matrix A and vector b are given by

A=WAz1A1WAz2A2WAzNGANG,b=WAz1b1+l11L×1WAz2b2+l21L×1WAzNGbNG+lNG1L×1.

In case of the (11), we have:

WAziAi1L×1xδWAzibi,i=1,2,,NFE22

or in a matrix notation

A1NFL×1xδbE23

where

A=WAz1A1WAz2A2WAzNFANF,b=WAz1b1WAz2b2WAzNFbNF.

2.3 Design (optimization) approach 1: CLLS minimization

An objective is to find a minimum of the sum of squares of absolute values of hxd in the assembly of the NF selected frequencies subject to the vector x

minxi=1NFhixdi2E24

where hi=Wzigi/Ak1zi and di=WziHdzi/Ak1zi.

If we apply the following equality

hixdi2=Re2hixdi+Im2hixdi=Cixdi22E25

where Ci=RehiImhi, di=RediImdi, (24) can be written in a matrix form:

minxCxd22.E26

where C and d include Ci and di, respectively, i=1,2,,NF.

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:

minx12Cxd22subject toAxbandReqmImqmx=10,m=M,,0,M+1E27

where A and b include A and b, respectively, defined in (21), for all frequency points in which the constraints are defined.

2.4 Design (optimization) approach 2: minimax optimization

The LP optimization problem can be formalized in the following way:

minimizecxδsubject toAxδbandReqm0Imqm0xδ=10,m=M,,0,M+1E28

where c=01×NA+NB+11, and A and b include A and b, respectively, for all frequency points in which the constraints or objective functions are defined in (21) and (23), respectively.

Advertisement

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 Bz/Az where the order of the characteristic polynomial Az is NA=K+12M+2 and the polynomial Bz is of order NB. We seek to find a causal stable rational function Tm,0ABz=gm,0z1PmzBz/Az for m=M,,0,,M+1 that best approximates Hmde.

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 mf1with width of f1, i.e., for fmf1f1/2,mf1+f1/2, it corresponds to the transfer function belonging to the harmonic m. It follows:

TAz=TzAz,Tz=gm,0z1PmzE29

for fmf1f1/2,mf1+f1/2,m=M,,0,,M+1.

In addition, we define a unique transfer function

TABz=BzTAz=BzTzAzE30

Similarly, a virtual unique desired transfer function in an angular frequency ω has the following form [27]:

Hde=ej2πτfmf1/fS,forfmf1fPB,mf1+fPB0,forfmf1f1/2,mf1fSBmf1+fSB,mf1+f1/2E31

where pass and stop bands are defined by fPB and fSB, respectively. A desired group delay in the passband is denoted as τ.

3.2 Stability constraint

To obtain a stable IIR filter Tz, stability constraint must be imposed on the coefficient vector xA. In [30], the more convenient stability condition which is based on Rouche’s theorem was proposed.

Rouche’s Theorem. Iffzandgzare analytic inside and on a closed contourC, andgz<fzonC, thenfzandgz+fzhave the same number of zeros insideC.

Let

fz=zNAAz=zNA+a1zNA1++aNA1z+aNA,E32
gz=zNAz=δ0zNA+δ1zNA1++δNA1z+δNA,E33

where z is the update of the characteristic polynomial Az of the transfer function at each iteration step. Since the functions fz and gz are analytic, except at z = ∞, and have the same zeros as Az and z, according to Rouche’s theorem, if the polynomial Ak1z in the iteration step, k1 has all its zeros inside a circle of radius ρ0<ρ<1 with the center at the origin of the complex plane, then also the polynomial in the iteration step k given by [30]

Akz=Ak1z+αkz,0<α<1E34

will retain the zeros within this circle provided that in step k the following condition satisfied

kzAk1z,z=ρ.E35

If (34) is included in (35), we get

A¯kzA¯k1zαAk1zE36

where A¯kz=Akz1, A¯k1z=Ak1z1, or in a matrix notation:

01×NB+1qAz=zixA¯k1ziαAk1ziE37

As for the initial value of the vector x, it is simplest to take x0=0, when all the roots of the polynomial A0z lie within the circle of radius ρ (0< ρ <1).

If constraint (37) is applied to a sufficiently dense set of points lying on a circle of radius ρz=ρ, of total length NS, we get

ASxbSE38

where matrix AiS and vector biS are given by

AiS=01×NB+1,ReqAz=zicosαi1+ImqAz=zisinαi101×NB+1,ReqAz=zicosαi2+ImqAz=zisinαi201×NB+1,ReqAz=zicosαiL+ImqAz=zisinαiL,
biS=ReA¯k1zicosαi1+ImA¯k1zisinαi1+αAk1ziReA¯k1zicosαi2+ImA¯k1zisinαi2+αAk1ziReA¯k1zicosαiL+ImA¯k1zisinαiL+αAk1zi.

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 α can be used, while a gradual decrease (e.g., exponential) can help the convergence of the solution.

3.3 Resonators’ gains calculation

After the polynomial Az having been determined, the direct usage of the Lagrange interpolation formula provides the closed-form formulas [26]. It should be taken into account that these formulas are valid only in the case of single resonators. If a quasi-MR-based analyzer is designed, the resonator poles connected to the same harmonic should be arranged close enough to each other with a minimum distance that is limited by numerical precision. Its lower border depends on the resonator multiplicity and the sampling rate. A chosen displacement of 0.1Hz allows a fair approximation for sampling frequencies up to 6.4 kHz (M=63 for f1=50Hz) and K=5 [16].

A generalized closed-form formula for gains calculation for any K for previously chosen polynomial Az is given as follows:

gm,k=Azz1Pmzj=0k1gm,ji=0j11zm,iz1z1Pmzi=0k11zm,iz1z=zm,kE39

As a final result, the designed resonator gains are as follows:

gm,k=gm,k/gm,k+1,gm,K+1=1,m=M,,0,,M+1,k=0,1,,K.

It should be mentioned that polynomial Bz can be conveniently implemented by adding its roots as poles in additional parallel channels to the basic structure (see Figure 1). In this case, the existing formulas for gains calculation are valid only for the identical structure of the extension cascades (they have to consist K+1 resonators). Otherwise, the formulas are not valid and need a completely new derivation.

3.4 Design example

In the next section, three demonstration examples, with frequency responses and pole-zeros maps, of the designed K=2 type CR-based harmonic analyzer are shown, for fS=800Hz and f1=50Hz. For a clear readability, lower values of fS=800Hz and M=7 are selected. The following parameters are prescribed in all three examples: fSB=17Hz, lTB=1.005,Wz=1,α0=0.5,ρ=0.95,NA=K+12M+2. x0=0. Other parameters were variated, depending on the chosen optimization criteria. It should mention that a large variety of optimization scenarios is possible, allowing design spectrum analyzers for a wide scope of different applications.

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 NB=K+12M+2 is settled. The desired group delay (in samples) in the passband is τ=0.9K+12M+2.fPB=1.7Hz.lPB=0.01. Obtained frequency responses (Figure 6) show that the passband flatness is not derogated, while the selectivity and attenuation in the stopbands are increased thanks to the zeros of the polynomial Bz which are located between the existing multiple zeros of the resonator structure that had been obtained through the common feedback. A cost is an increased total group delay which causes higher latency.

Figure 6.

(a) Frequency responses of g3,0z1P3z, Bz/Az and T3,0ABzand (b) Pole-zero map of T3,0z and Bz (for the third harmonic), for NA=K+12M+2, NB=K+12M+2, and ρ=0.95,fPB=1.7Hz and τ=0.9K+12M+2.

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, NB=K+12M+2 is kept. The obtained frequency responses (see Figure 7) show that selectivity and attenuation in the stopbands are increased. This is achieved thanks to the poles of the transfer function located on a circle of radius 0.95 (z=0.95) very close to the zeros located in the harmonic frequencies, as well as the additional zeros of the polynomial Bz. Such high selectivity caused a large increase in a group delay.

Figure 7.

(a) Frequency responses of g3,0z1P3z, Bz/Az and T3,0ABzand (b) Pole-zero map of T3,0z and Bz (for the third harmonic), for NA=K+12M+2, NB=K+12M+2, and ρ=0.95,fPB=0Hz.

3.4.3 Example 3: numerically cost-effective solution

This example is very similar to the previous one with different that now is NB=0, which means that there is no extension to the existing resonator structure with common feedback. Obtained frequency responses (see Figure 8) show that selectivity and attenuation in the stopbands are smaller than in the previous case, however, with a smaller group delay too.

Figure 8.

(a) Frequency responses of g3,0z1P3z, Bz/Az and T3,0ABzand (b) Pole-zero map of T3,0z and Bz (for the third harmonic), for NA=K+12M+2, NB=0, and ρ=0.95,fPB=0Hz.

Advertisement

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 Bz placed in the front of the parallel resonator structure, a more flexible solution is shown in Figure 9 with postprocessing by the set of compensators Qmz designed particularly for each harmonic m. In this case, Az=1 is chosen to allow the use of linear optimization techniques such as LP and CLLS.

Figure 9.

Block diagram of the K-type CR-based harmonic analyzer with postprocessing.

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 mth channel has the form of

Tm,0Qz=Vm,0QzVz=Tm,0zQmz=gm,0z1PmzqQxQ.E40

where Qmz=qm,0+qm,1z1++qm,NQ1zNQ1+bm,NQzNQ. qQ=1z1z2zNQ1zNQ, xQ=q0q1qNQ1qNQT.

Eq (40) has the same form as Eq. (5) with the following constraints: Az=1, NA=0,xA=, qA=, x=xQ, q=qQ. qB is replaced by qQ, and xB by xQ. Since NA=0, the stability constraints are not present. The desired frequency response is related only to the actual harmonic m and does not consider the frequency responses of the other ones.

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 dTm,0Qz/dz, which is called the total vector gradient (TVG) here. In a flat range with small amplitude changes, TVG and GD are proportional, and optimization of one leads to optimization of the other. The first derivative of the transfer function Tm,0Qz is as follows:

dTm,0Qz/dz=gm,0z2QmzPmz+z1PmzdQmz/dz+z1QmzdPmz/dz=gm,0z1PmzdQmz/dz+ΨmzQmzE41

where

dQmzdz=qm,1z22qm,2z3NQqm,NQzNQ+1
Ψmz=z1Pmz+dPmz/dz
dPmzdz=Pmzi=MimM+1k=0Kzi,kz21zi,kz1.

Eq. (41) can be written in a matrix form as follows:

dTm,0Qz/dz=ψmxQ,m.E42

where

ψm=ψm,0zψm,1zψm,NQ1zψm,NQz,
ψm,nz=gm,0zn+1Ψmz1nz1Pmz1,n=0,1,,NQ.

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 Tm,0Qz in the stop bands. Weighting function Wmω is settled to 1. The function which absolute values are kept under settled limits is an error in the passband Emzi=Tm,0Qzz=ziTmdzi where Tmdzi=expωiωm. In addition to this, a control of overshoots in the transition bands is performed.

CriteriaObject functionDesired valuesFrequency rangeConstrained functionsReference valuesFrequency range
Criterion 1Tm,0Qz0StopbandsTm,0QzTmdz=eωωmPassband
Tm,0Qz0Transition band
Criterion 2Tm,0Qz0StopbandsdTm,0Qz/dz0Harmonic frequency
Tm,0Qz0Transition band
Criterion 3dTm,0Qz/dz0Harmonic frequencyTm,0Qz0Stopband
Tm,0Qz0Transition band

Table 1.

Considered design criteria.

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 dTm,0Qz/dzz=zmTVGmax, where TVGmax is a maximally allowed absolute total vector gradient. Like in Criterion 1, the limitation of overshoots in the transition bands is necessary.

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 T3,0Qz in the case of K=2. For Criterion 3, the maximum allowed gains in the stopband was selected as lmSB0.10.010.001, which corresponds to attenuations of 204060dB. For Criterion 2, the maximum value of TVG in the harmonic frequencies zm, TVGmax243248 was selected. Zoomed amplitude and TVG characteristics around the harmonic frequency are shown in the inset figures at the bottom of the figures. It can be seen that the higher value of NQ gives a smaller value of TVG and wider bandwidth. It is also visible that for smaller values TVG sidelobes are larger, which reduces robustness to interharmonics and noise. In addition, the bandwidth increases for smaller values of TVG.

Figure 10.

Frequency responses for the basic (T3,0z) and reshaped (T3,0Qz) transfer function for K=2, for fs=1.6kHz, NQ=16 and (a) l3SB0.10.010.001 and (b) TVGmax243248.

Figure 11.

Frequency responses for the basic (T3,0z) and reshaped (T3,0Qz) transfer function for K=2, for fs=1,6kHz, NQ=32 and (a) l3SB0.10.010.001 and (b) TVGmax243248.

Figure 12 shows the frequency responses of the transmission functions T3,0z and T3,0Qz for different values of given parameters (a) lmSB and (b) TVGmax, in the case of K=1. In this case, the total TVG is smaller than in the case of K=2. The order of the compensation filter NQ=16 is smaller, so the bandwidth is narrower. In the case of l3SB=0.001, the optimization problem has no solution.

Figure 12.

Frequency responses for the basic (T3,0z) and reshaped (T3,0Qz) transfer function for K=1, for fs=1,6kHz, NQ=16 and (a) l3SB0.10.010.001 and (b) TVGmax162432.

Advertisement

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.

Advertisement

Conflict of interest

The author declares no conflict of interest.

References

  1. 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. 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. 3. Phadke AG, Kasztenny B. Synchronized phasor and frequency measurement under transient conditions. IEEE Transactions on Power Delivery. 2009;24:89-95
  4. 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. 5. de la O Serna JA. Dynamic phasor estimates for power system oscillations. IEEE Transactions on Instrumentation and Measurement. 2007;56:1648-1657
  6. 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. 7. Barchi G, MacIi D, Petri D. Synchrophasor estimators accuracy: A comparative analysis. IEEE Transactions on Instrumentation and Measurement. 2013;62:963-973
  8. 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. 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. 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. 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. 12. Peceli G, Simon G. Generalization of the frequency sampling method. IEEE Instrumentation and Measurement Technology Conference. 1996:339-343
  13. 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. 14. Péceli G. Resonator-Based Digital Filters. IEEE Transactions on Circuits and Systems. 1989;36:156-159
  15. 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. 16. Kušljević MD. Quasi multiple-resonator-based harmonic analysis. Measurement (Lond). 2016;94:471-473
  17. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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

Written By

Miodrag D. Kušljević

Submitted: 12 September 2022 Reviewed: 01 October 2022 Published: 02 November 2022