Minimax IIR Digital Filter Design using SOCP - IEEE Xplore

5 downloads 0 Views 382KB Size Report
University of Windsor. 401 Sunset Avenue, Windsor, Ontario, Canada N9B 3P4. Emails: [email protected], [email protected]. Abstract—An iterative ...
Minimax IIR Digital Filter Design Using SOCP Aimin Jiang and Hon Keung Kwan Department of Electrical and Computer Engineering University of Windsor 401 Sunset Avenue, Windsor, Ontario, Canada N9B 3P4 Emails: [email protected], [email protected] Abstract—An iterative second-order cone programming (SOCP) approach is proposed in this paper. The original nonconvex design problem is first relaxed into an SOCP problem, which can provide a lower bound on the optimal value of the original problem. For reducing the gap between the original and the convex problem, an iterative procedure is developed. The initial point of the iterative procedure can be chosen as the solution obtained from the relaxed SOCP problem. Unlike other iterative approaches, the convergence of the proposed iterative procedure is definitely guaranteed. Design examples demonstrate the effectiveness of the proposed method.

I.

INTRODUCTION

Large numbers of methods [1]-[10] have been proposed to design IIR digital filters. Two major difficulties need to be resolved in design procedures: 1) Due to the existence of the denominator, either linearization or nonlinear optimization techniques have to be deployed; 2) Stability constraints must be incorporated in the design procedure if the phase response is also concerned. In [1], a linear programming (LP) approach was presented. In order to tackle the first difficulty, the denominator part of the frequency response error is neglected. This makes the design result not to be a truly minimax solution. Some other methods [2]-[6] employ iterative procedures to solve this problem. At each iteration, the denominator obtained from the preceding iteration is treated as a part of the weighting function. This strategy has been applied to design IIR digital filters under different optimization criteria. Unfortunately, so far the convergences of these iterative procedures are not strictly guaranteed. On the other hand, the performance of iterative procedures is greatly dependent on the selection of initial points. Generally speaking, stability criteria can be categorized into two groups, i.e., time-domain stability criteria [7] and frequency-domain stability criteria [1], [6], [8]. Compared with time-domain stability criteria, frequency-domain stability criteria are much more tractable. However, most of stability criteria proposed in frequency domain are only sufficient conditions for stability. This means that some stable filters can be excluded from the admissible solutions. Recently, convex optimization techniques [11] have been widely used in digital filter designs [1]-[6], [9], [10], [12]. When the design problem is cast to a convex form, the global optimum can be attained, if it exists. In an SOCP problem

978-1-4244-1684-4/08/$25.00 ©2008 IEEE

[11], [13], a linear function is minimized with the linear and second-order cone (SOC) constraints. SOCP is a general extension of linear and quadratic programs (QP). Thus, SOCP can be used to formulate more complicated design problems and handle more general types of quadratic constraints. This paper is organized as follows. The minimax IIR digital filter design problem is first formulated in Section II. Then, the original nonconvex problem is relaxed into a convex form and the iterative procedure is developed. In Section III, two examples are presented to illustrate the effectiveness of the proposed method. Finally, conclusions are made in Section IV. II.

MINIMAX DESIGN OF IIR DIGITAL FILTER

A. Problem Formulation The transfer function of an IIR digital filter is defined as N

H (z) =

−n

P( z ) ¦ n=0 pn z = pT ij1 ( z) = Q( z ) 1 + ¦ M qm z − m qT ij2 ( z )

(1)

m =1

where p = [p0, p1, …, pN]T, q = [1, q1, …, qM]T, and ij1(z) = [1, z-1, …, z-N]T, ij2(z) = [1, z-1, …, z-M]T. The design problem of IIR digital filters in the minimax sense can be expressed as (2) min max W (ω ) H (e jω ) − D (e jω ) x

ω∈Ω I

where x = [pT, qT]T, D(ejȦ) is the ideal frequency response, W(Ȧ) • 0 is a given nonnegative weighting function, and ȍI is the union of frequency bands of interest over [0, ʌ]. By introducing an auxiliary variable į, (2) can be further cast as (3) min δ (3a) s.t. q0 = 1 W (ω ) ª¬ P (e jω ) − D(e jω )Q (e jω ) º¼ 2

2

2

(3b)

= c T (ω ) x ≤ δ Q(e jω ) , ω ∈ Ω I

where ª º Re {ij1 (e jω )} Im {ij1 (e jω )} « » (4) c (ω ) = W (ω ) « − Re {D (e jω )ij2 (e jω )} − Im {D (e jω )ij2 (e jω )}» ¬ ¼

For convenience in the later discussion, the magnitude of weighted frequency response error in (2), i.e., W(Ȧ)|H(ejȦ)D(ejȦ)|, is replaced by |W(Ȧ)[H(ejȦ)-D(ejȦ)]|2 in (3b).

2454

Obviously, these two design problems are equivalent to each other. B. Convex Relaxation Note that only the squared magnitude of the denominator is required on the right hand side of the inequality constraint (3b). Actually, our design method is based on this fact. It is known that [9]

(

)(

M

M

Q( z )Q( z −1 ) = 1 + ¦ m =1 qm z − m 1 + ¦ m =1 qm z m M

= ¦ m =− M d m z

)

(5)

between |Q(ejȦ)|2 and dTs(Ȧ). At each iteration, the filter coefficients are updated by (11) x ( k ) = x ( k −1) + αΔx ( k ) (k) (k)T (k)T T (k) (k) where 0 < Į < 1, ǻx = [v , u ] . Vectors v and u are used to update numerator and denominator coefficients, respectively. Assuming that q0(0) = 1, then the linear equality constraint (10a) is replaced by another constraint u0(k) = 0 for k > 0. At the kth iteration, an error function is first defined as

−m

2

e (d 0 ( k ) , q ( k ) ) = q ( k ) − d 0 ( k )

where

(12)

It can be verified that M −m

d m = d − m = ¦ i = 0 qi qi + m , m = 0,1, 2," , M

(6)

From (6), some important properties can be derived: 1) d0 = ||q||2; 2) dM = qM; 3) |dm| ” ||q||2 = d0. Here, ||·|| denotes the Euclidean norm of a vector. On the unit circle, (5) can be written as 2

M

Q(e jω ) = d0 + ¦ m =1 2d m cos(mω ) = d T s (ω )

(7)

T

where d = [d0, d1, …, dM] , and s(Ȧ) = [1, 2cos(Ȧ), …, 2cos(MȦ)]T. Using (7), the inequality constraint (3b) can be transformed to a hyperbolic constraint, which can be further cast as a standard SOC constraint [13]. Thus, (3) is reformulated as (8) min δ (8a) s.t. q0 − 1 = 0 2

cT (ω ) x ≤ δ d T s (ω ), ω ∈ Ω I

(8b)

Q(e ) = f (ω )q = d s (ω ), ω ∈ [0, π ]

(8c)



2

2

T

T

where f (ω ) = ª¬ Re {ij2 (e jω )} Im {ij2 (e jω )}º¼

(9)

Note that the hyperbolic constraint (8b) needs to be satisfied over ȍI, while (8c) must be satisfied at any Ȧ ∈ [0, ʌ]. Due to the existence of the quadratic equality constraint (8c), the problem (8) is still nonconvex. However, we can relax it into a convex problem by replacing (8c) with another hyperbolic constraint |Q(ejȦ)|2 ” dTs(Ȧ). We then obtain a lower bound on the optimal value of (8) by solving the following convex problem (10) min δ (10a) s.t. q0 − 1 = 0 (10b) d M − qM = 0 (10c) −d 0 + d m ≤ 0, m = 1, 2," , M (10d) −d 0 − d m ≤ 0, m = 1, 2," , M 2

cT (ω ) x ≤ δ d T s (ω ), ω ∈ Ω I

(10e)

(10f) f T (ω )q ≤ d T s (ω ), ω ∈ [ 0, π ] Here linear constraints (10b), (10c) and (10d) are incorporated to restrict d. 2

C. Iterative Method Generally, q and d obtained by solving (10) cannot exactly satisfy the quadratic equality constraint (8c). Here we introduce an iterative procedure, in which a sequence of SOCP problems based on (10) are solved to gradually reduce the gap

e( d 0 ( k ) , q ( k ) ) =

1

π³

π

0

ª Q ( k ) (e jω ) 2 − d ( k )T s (ω ) º dω ¬« ¼»

(13)

Since |Q(k)(ejȦ)|2 ” d(k)Ts(Ȧ) which is induced from (10f), we have e(d0(k), q(k)) ” 0. Therefore, if e(d0(k), q(k)) approaches 0 as k ĺ ’, or equivalently speaking, at each iteration step e(d0(k), q(k)) • e(d0(k-1), q(k-1)), the integrand in (13) will approach 0 at any Ȧ ∈ [0, ʌ], which is the goal of the iterative procedure. Using (11), (12) can be expanded as e (d 0 ( k ) , q ( k ) ) (14) = e(d 0 ( k −1) , q ( k −1) ) − ( d 0( k ) − d0 ( k −1) ) + 2α q ( k −1)T u( k ) + α 2 u( k )

2

Since ||u(k)||2 • 0, here we introduce a linear inequality constraint to ensure e(d0(k), q(k)) • e(d0(k-1), q(k-1)) (15) − ( d 0 ( k ) − d0 ( k −1) ) + 2α q ( k −1)T u( k ) ≥ 0 Incorporating (15) into (10), then at the kth iteration the design problem can be formulated as (16) min δ (16a) s.t. u0 ( k ) = 0 (16b) d M ( k ) − qM ( k ) = 0 (k) (k ) (16c) − d 0 + d m ≤ 0, m = 1, 2," , M (k ) (k ) (16d) − d0 − d m ≤ 0, m = 1, 2," , M (16e) d 0 ( k ) − 2α q ( k −1)T u( k ) − d 0 (k −1) ≤ 0 g (k −1) (ω ) + α cT (ω )Δx ( k ) t ( k −1) (ω ) + α f T (ω ) u

(k ) 2

2

≤ δ d ( k )T s (ω ), ω ∈ Ω I

(16f)

≤ d ( k )T s (ω ), ω ∈ [ 0, π ]

(16g)

where g ( k −1) (ω ) = cT (ω ) x ( k −1) t ( k −1) (ω ) = f T (ω )q ( k −1)

(17) (18)

For the SOCP problem (16), the variables are į, ǻx(k) (or v(k) and u(k)), and d(k). The iteration procedure will stop when the following condition is satisfied: (19) e( d 0 ( k ) , q ( k ) ) ≤ ε where İ is a prescribed small positive tolerance. When k is large enough, e(d0(k), q(k)) § e(d0(k-1), q(k-1)) § 0. Coupled with (14) and (15), it follows that ||u(k)||2 § 0, which means there is no significant change on q(k). Then the design problem can be equivalently stated as: Given a denominator q(k), find an optimal numerator in the following iterations. The optimal point can be easily obtained, since |W(Ȧ)[H(ejȦ)-D(ejȦ)]|2 with

2455

a fixed denominator q(k) is essentially a quadratic function of p(k). D. Stability Constraint It is well-known that at the kth iteration step the positiverealness based stability constraint [7] can be formulated as a linear inequality constraint: (20) Re {ϕ 2T (e jω )} ⋅ q ( k ) ≥ μ , ω ∈ [0, π ] where µ is a small and positive number. Another less conservative stability constraint is based on the Rouché’s theorem [8], which is stated as: If all zeros of Q(k-1)(z) lie inside the circle C = {z| |z| < ȡ, ȡ ” 1} and |Q(k)(z)Q(k-1)(z)| < |Q(k-1)(z)|, all zeros of Q(k)(z) will lie inside C. In order to incorporate this constraint into (16), the initial denominator must be chosen with all zeros inside C. Then the Rouché’s theorem based stability constraint can be written as (21) f T (ω )u ( k ) ≤ Q ( k −1) (e jω ) , ω ∈ [0, π ] which is an SOC constraint. Some remarks are made here: 1) Although only the lower bound on the optimal value of the original nonconvex problem (8) can be obtained by solving (10), in practice, the corresponding x and d can be chosen as the initial point, i.e., x(0) and d(0), for the iterative procedure. 2) In practice, the constraints (16c) and (16d) can be removed from (16). Large numbers of simulations show that their contributions to restricting d(k) are negligible. 3) In order to guarantee the convergence, we incorporate (15) into the iterative procedure. However, it should be noted that this constraint is only a sufficient condition for the convergence. Therefore, the proposed method cannot be guaranteed to achieve the globally optimum. 4) In order to increase the convergence speed, the constraint (15) can be modified as (22) − ( d0 ( k ) − d 0 ( k −1) ) + 2α q ( k −1)T u( k ) ≥ λ ( k −1) where Ȝ(k-1) is a positive number, whose value depends on the previous iteration. In our designs, Ȝ(k-1) is set as ­°−0.5 ⋅ e( k −1) − α 2 u( k −1)

λ ( k −1) = ® where e

(k-1)

°¯0 denotes e(d0(k-1), q(k-1)).

2

if e( k −1) ≥ 10−4

(23)

otherwise

III. SIMULATIONS In this section, two examples are presented to demonstrate the effectiveness of the proposed method. We use the SeDuMi [14] MATLAB toolbox to solve the SOCP problem (16). Besides the peak errors and the L2 errors of magnitude (MAG) and group delay (GD) in passbands and stopbands, the maximum (weighted) magnitude of the frequency response error is also adopted as a measurement: (24) eMM = max W (ω ) H (e jω ) − D(e jω ) ω∈Ω I

The weighting function is always set to 1 over passbands and stopbands, and 0 over other transition bands. All hyperbolic

constraints in (16) and stability constraint (20) or (21) are implemented on a set of dense grid points. The first example is taken from [4]. The desired frequency response in [4] is defined as a smooth function. This smoothtransition-band method serves to reduce the Gibb’s ripple but at a possible cost of design resource at some unimportant frequency band(s). Therefore, the desired frequency response in this design is defined as ­e− j15ω 0 ≤ ω ≤ 0.5π D(e jω ) = ® 0.55π ≤ ω < π ¯0 The filter orders are set to M = N = 18. Like [4], we adopt (20) as the stability constraint used at each iteration, and the initial point is obtained by solving (10). Other parameters are selected as Į = 0.9, İ = 10-7, and µ = 10-6. It takes 29 iterations to stop. The maximal pole radius of the designed filter is 0.970. The design results are shown in Fig. 1. The changes of log10|e(d0(k), q(k))| are shown in Fig. 2. The plot shows nearly linear convergence on log10|e(d0(k), q(k))| especially when k < 20. All measurements are given in Table I. For comparison, we also design the lowpass filter using the method proposed in [4] under the same set of specifications except the initial point chosen as pn(0) = qm(0) = 0 for 0 ” n ” N and 1 ” m ” M. The second example is to design a highpass filter with the following ideal frequency response ­e − j14ω D (e jω ) = ® ¯0

0.75π ≤ ω < π 0 ≤ ω ≤ 0.7π

The filter orders are set as M = N = 15. Other parameters are chosen as the same in Example 1. It takes 27 iterations to find the final solution. Its maximal pole radius is 0.910. The design results are shown in Fig. 3. The changes of log10|e(d0(k), q(k))| are also shown in Fig. 4. All measurements are summarized in Table II. For comparison, we also utilize the method proposed in [4] to design the highpass IIR digital filter under the same specifications. The corresponding measurements are also given in Table II. It is shown that the proposed method can achieve better performances. IV.

CONCLUSIONS

In this paper, we have presented an iterative method for designing IIR digital filters under the minimax sense. Since the design problem is essentially nonconvex, first it is relaxed into a convex problem in an SOCP form. A lower bound on the optimal value of the original problem can be obtained by solving the convex design problem. In order to reduce the gap between these two design problems, an iterative procedure is then applied. In our designs, the initial point of the iterative procedure is obtained by solving the relaxed convex problem. At each iteration, an SOCP problem based on the relaxed convex problem is solved. For stability, some constraint needs to be incorporated to control the maximal pole radius. Unlike some other approaches in which the design problem is formulated as LP or QP forms, stability constraints in quadratic forms can also be incorporated. Compared with other iterative design methods, the obvious advantage of the proposed method is that the convergence can be strictly guaranteed, which has been shown by the analyses in Section II and demonstrated by examples. When Ȝ(k-1) in

2456

Figure 1. Design results of Example 1

Figure 3. Design results of Example 2

Figure 2. Changes of log10|e(d0(k), q(k))| versus iteration number

Figure 4. Changes of log10|e(d0(k), q(k))| versus iteration number

TABLE I. Method

(Peak / L2)

Proposed [4]

TABLE II.

MEASUREMENTS OF DESIGN RESULTS IN EXAMPLE 1 Passband Stopband eMM MAG (dB) GD MAG (dB) -33.47/ -40.00 -32.90/ -39.85

(Peak / L2)

2.54/ 0.20 2.57/ 0.21

Method

(Peak / L2)

(Peak / L2)

-33.20/ -38.39 -32.13/ -38.27

Proposed [4]

0.0213 0.0227

(23) is chosen properly, the convergence speed can be improved, which has been demonstrated by the simulation results. By using the well-developed SeDuMi, the design problem can be efficiently solved.

[7]

REFERENCES

[9]

[1]

[2]

[3]

[4]

[5]

[6]

MEASUREMENTS OF DESIGN RESULTS IN EXAMPLE 2 Passband Stopband eMM MAG (dB) GD MAG (dB)

A. T. Chottera and G. A. Jullien, “A linear programming approach to recursive filter design with linear phase,” IEEE Trans. Circuits Syst., vol. CAS-29, pp. 139–149, Mar. 1982. W. S. Lu, S. C. Pei, and C. C. Tseng, “A weighted least-squares method for the design of stable 1-D and 2-D IIR digital filters,” IEEE Trans. Signal Processing, vol. 48, pp. 1–10, Jan. 1998. W. S. Lu, “Design of stable IIR digital filters with equiripple passbands and peak-constrained least-squares stopbands,” IEEE Trans. Circuits Syst. II, vol. 46, pp. 1421–1426, Nov. 1999. C. C. Tseng and S. L. Lee, “Minimax design of stable IIR digital filter with prescribed magnitude and phase responses,” IEEE Trans. Circuits Syst. I, vol. 49, pp. 547–551, Apr. 2002. C. C. Tseng, “Design of stable IIR digital filter based on least P-power error criterion,” IEEE Trans. Circuits Syst. , vol. 51, pp. 1879-1888, Sep. 2004. A. Jiang and H. K. Kwan, “IIR digital filter design with novel stability criterion based on argument principle,” Proc. of Int. Sym. Circuits and Systems, May 2007, pp. 2339-2342.

[8]

[10]

[11] [12]

[13]

[14]

2457

-22.12/ -33.03 -21.88/ -32.69

(Peak / L2)

3.01/ 0.45 3.54/ 0.47

(Peak / L2)

-22.04/ -25.34 -21.42/ -24.61

0.0785 0.0848

Tarczynski, G. D. Cain, E. Hermanowicz, and M. Rojewski, “A WISE method for designing IIR filters,” IEEE Trans. Signal Processing, vol. 49, pp. 1421-1432, Jul. 2001. M. C. Lang, “Least-squares design of IIR filters with prescribed magnitude and phase responses and a pole radius constraint,” IEEE Trans. Signal Process., vol. 48, pp. 3109–3121, Nov. 2000. L. R. Rabiner, N. Y. Graham, and H. D. Helms, “Linear programming design of IIR digital filters with arbitrary magnitude function,” IEEE Trans. Acoust. Speech, Signal Processing, vol. ASSP-22, no. 2, pp. 117-123, Apr. 1974. W. S. Lu, “Design of stable minimax IIR digital filters using semidefinite programming,” Proc. of Int. Sym. Circuits and Systems, vol. 1, May 2000, pp. 355–358. S. Boyd and L. Vandenberghe, Convex Optimizaton, Cambridge University Press, 2004. K. M. Tsui, C. Chan, and K. S. Yeung, “Design of FIR digital filters with prescribed flatness and peak error constraints using second-order cone programming,” IEEE Trans. Circuits Syst. II, vol. 52, pp. 601605, Sep. 2005. M. S. Lobo, L. Vandenberghe, S. Boyd, and H. Lebret, “Applications of second-order cone programming,” Linear Algebra and its Applications, vol. 284, pp. 193-228, Nov. 1998. J. F. Sturm, “Using SeDuMi 1.02, a MATLAB toolbox for optimization over symmetric cones,” Optimization Methods and Software, vol. 1112, pp. 625-653, 1999.

Suggest Documents