Professional Documents
Culture Documents
use different techniques to assure that the reduced model is stable, with
to speed up the process and to guarantee convergence. Examples
i
ln (A + iωI)(A − iωI)−1 .
of these algorithms are Yan and Lam [15], Fulcheri and Olivi [14] Sω = (6)
and Huang et al. [17]. 2π
The interpolation based H2 model reduction techniques try In [7] they continue by creating a balanced system and per-
to find a model whose transfer function interpolates the transfer forming a balanced truncation using the newly defined frequency-
function of the full-order system (and its derivative) at selected in- limited Gramians. A drawback of this method is that since the
terpolation points. These methods often use computationally ef- terms Sω BBT + BBT S∗ω and S∗ω CT C + CT CSω are not guaranteed to be
fective Krylov-based algorithms which makes these techniques positive semi-definite, stability of the reduced order model cannot
suitable for large-scale problems. Examples of these algorithms be guaranteed. There exists a modification to this in [2] where they
are Xu and Zeng [18], Beattie and Gugercin [12] and Poussot- propose a remedy to this.
Vassal [19]. Recently two variants of these methods have been
published. The first one is a frequency-weighted version that is
Remark 1. By using addition/subtraction of two or more different
applicable on siso systems, see [20], and the second one is a
frequency-limited Gramians it is possible to focus on one or more
frequency-limited version with the same goal as the method pre-
arbitrary frequency ranges, e.g., you can construct the frequency-
sented in this article, but using a different technique, see [21].
limited controllability Gramian, PΩ , for the interval ω ∈ Ω =
One of the main contributions in this paper is a method which
[ω1 , ω2 ] ∪ [ω3 , ω4 ] as
uses optimization, and not truncation, to find an H2 -optimal re-
duced order model, and, where this optimization is only performed APΩ + PΩ AT + SΩ BBT + BBT S∗Ω = 0, (7)
over a limited frequency interval. Another important contribution
is the derivation of the gradient for the cost function. The fact that with SΩ = Sω2 − Sω1 + Sω4 − Sω3 .
we have a closed form expression for the gradient and that con-
siderations have been taken to make the gradient computationally
3. Frequency limited model reduction using optimization
efficient to compute enables us to efficiently use off-the-shelf op-
timization software to solve the optimization problem.
The H2 -norm of G, in (1), assuming that D = 0 so that the
system becomes strictly proper, can be expressed as
2. Frequency limited Gramians
∞
CeAτ BBT eA τ CT dτ
T
2
The method proposed in this paper uses the idea presented ∥G∥H2 = tr (8a)
0
in [7], in which they introduce frequency-limited Gramians. Before ∞
presenting the frequency-limited Gramians we define the standard 1
= tr G(iν)G∗ (iν)dν (8b)
Gramians, see, e.g., [22], in time and frequency domain, for 2π −∞
reference. For a system G, that is stable and described by ∞
1
= tr CH(ν)BBT H∗ (ν)CT dν = tr CPCT (8c)
ẋ(t ) = Ax(t ) + Bu(t )
G: (1) 2π −∞
y(t ) = Cx(t ) + Du(t ) ∞
BT eA τ CT CeAτ Bdτ
T
= tr (8d)
A B 0
and denoted as G : , the observability and
C D ∞
1
controllability Gramians are defined as = tr BT H∗ (ν)CT CH(ν)Bdν = tr BT QB. (8e)
2π −∞
∞ ∞
1
eAτ BBT eA τ dτ =
T
P= H(ν)BBT H∗ (ν)dν, (2a) In this paper we introduce a new frequency-limited H2 -like
0 2π −∞ norm that uses the frequency-limited Gramians presented in the
∞ ∞
previous section, and we denote the new measure by ∥G∥H2 ,ω , with
1
eA τ CT CeAτ dτ =
T
Q= H∗ (ν)CT CH(ν)dν, (2b)
0 2π −∞ ω
1
where H(ν) = (iν I − A)−1 and H∗ (ν) denotes the conjugate trans-
∥G∥2H2 ,ω = tr G(iν)G∗ (iν)dν (9)
2π −ω
pose of H(ν). The controllability and observability Gramians sat- ω
isfy, respectively, the Lyapunov equations 1
(CH(ν)B + D) BT H∗ (ν)CT + DT dν
= tr (10)
2π −ω
AP + PAT + BBT = 0, (3a) ω T
AT Q + QA + CT C = 0. (3b) = tr CPω CT + 2 tr CSω B + D D . (11)
2π
Now we narrow the frequency band, from (−∞, ∞) to (−ω, ω) One thing that differs from the ordinary H2 -norm is that, if we do
where ω < ∞. We define the frequency-limited Gramians, see [7], not include an infinite interval in Ω , i.e., include ω = ∞ as the end
as frequency, then the system does not need to be strictly proper. This
ω means that we can, in this case, have D ̸= 0.
1
Pω = H(ν)BBT H∗ (ν)dν, (4a) The method proposed in this paper is a model reduction method
2π −ω
ω that, given a model G, finds a reduced order model, Ĝ, that is a good
1 approximation on a given frequency interval, e.g. [0, ω]. The ob-
Qω = H∗ (ν)CT CH(ν)dν. (4b)
2π −ω jective is to minimize the error between the given model and the
sought reduced order model in a frequency-limited H2 -norm, us-
These Gramians can be shown to satisfy the following Lyapunov
ing the frequency-limited Gramians. We formulate the optimiza-
equations, see [7],
tion problem
APω + Pω AT + Sω BBT + BBT S∗ω = 0, (5a) 2
minimize G − Ĝ = minimize ∥E ∥2H2 ,ω , (12)
T
A Qω + Qω A + S∗ω CT C + C CSω = 0,
T
(5b) Ĝ H2 ,ω Ĝ
34 D. Petersson, J. Löfberg / Systems & Control Letters 67 (2014) 32–39
where Since the principal branch of the logarithm is used, Theorem 1.18
ω in [23] can be used. Which for this case means that given a matrix
1
∥E ∥2H2 ,ω = tr E (iν)E ∗ (iν)dν. (13) C ∈ Cn×n it holds that ln C = ln C. Sω becomes
2π −ω
i i
Assume that the system E is stable and described by Sω = ln(−A − iωI) +
ln(−A − iωI)
2π
2π
i
AE BE ln(−A − iωI) .
E: . (14) = Re
π
CE DE
Given G and Ĝ, represented as Now, we want to rewrite the cost function (17) to a more com-
putationally tractable form. This is done by using the realization
A B Â B̂ given in (16) and by partitioning the Gramians PE ,ω and QE ,ω as
G: , Ĝ : , (15)
C D Ĉ D̂
Pω Xω Qω Yω
PE ,ω = , QE ,ω = , (22)
the error system can be realized, in state space form, as XTω P̂ω YTω Q̂ω
and SE ,ω as
A 0 B
AE BE .
E: = 0 Â B̂ (16) Sω 0
CE DE SE ,ω = . (23)
C −Ĉ D − D̂ 0 Ŝω
This realization of the error system will later prove beneficial when Pω , Qω , P̂ω , Q̂ω , Xω and Yω satisfy, due to (18), the Sylvester and
rewriting the optimization problem. Throughout the paper we will Lyapunov equations
assume that the given model is stable.
The cost function for the optimization problem (12) can be APω + Pω AT + Sω BBT + BBT S∗ω = 0, (24a)
written as
AXω + Xω Â + Sω BB̂ + BB̂ Ŝω = 0,
T T T ∗
(24b)
ω T
∥E ∥2H2 ,ω = tr CE PE ,ω CTE + 2 tr CE SE ,ω BE + DE DE (17a) ÂP̂ω + P̂ω ÂT + Ŝω B̂B̂T + B̂B̂T Ŝ∗ω = 0, (24c)
2π
ω T
A Qω + Qω A + S∗ω CT C + C CSω = 0,
T
(24d)
= tr BTE QE ,ω BE + 2 tr CE SE ,ω BE + DE DTE (17b)
2π
AT Yω + Yω Â − S∗ω CT Ĉ − CT ĈŜω = 0, (24e)
where
T
 Q̂ω + Q̂ω  + Ŝ∗ω ĈT Ĉ + Ĉ ĈŜω = 0,
T
(24f)
AE PE ,ω + PE ,ω ATE + SE ,ω BE BTE + BE BTE S∗E ,ω = 0, (18a)
with
ATE QE ,ω + QE ,ω AE + S∗E ,ω CTE CE + CTE CE SE ,ω = 0, (18b)
i
Sω = Re ln(−A − iωI) ,
with π
(25)
i i
SE ,ω = ln((AE + iωI)(AE − iωI) −1
). (19) Ŝω = Re ln(−Â − iωI) .
2π π
In this paper we have also derived a simpler expression for the Note that Pω and Qω satisfy the Lyapunov equations for the
matrix SE ,ω , compared to what is presented in [7]. frequency-limited controllability and observability Gramians for
the given model, and P̂ω and Q̂ω satisfy the Lyapunov equations for
Lemma 1. For a matrix A that is Hurwitz it holds that the frequency-limited controllability and observability Gramians
for the sought model.
i
Sω = ln((A + iωI)(A − iωI)−1 ) With the partitioning of PE ,ω and QE ,ω it is possible to rewrite
2π (17) in two alternative forms
i
ln(−A − iωI) ,
= Re (20) ∥E ∥2H2 ,ω = tr BT Qω B + 2BT Yω B̂ + B̂T Q̂ω B̂
π
ω ω
where ln A denotes the matrix complex logarithm using the principal + 2 tr CSω B + D − ĈŜω B̂ + D̂
branch. 2π 2π
× DT − D̂T , (26a)
Proof. Sω can be written as
∥E ∥2H2 ,ω = tr CPω CT − 2CXω ĈT + ĈP̂ω ĈT
i
Sω = ln((−A − iωI)(−A + iωI)−1 ). (21)
ω ω
2π + 2 tr CSω B + D − ĈŜω B̂ + D̂
2π 2π
The matrices (−A − iωI) and (−A + iωI) commute and since
× DT − D̂T . (26b)
A is Hurwitz, both (−A − iωI) and (−A + iωI) will have their
eigenvalues in the right half plane. Now using Theorems 11.2 and
11.3 in [23], yields Remark 2. Note that neither the term BT Qω B nor the term CPω CT ,
i which are included in the cost function (26), depends on the
Sω = ln((−A − iωI)(−A + iωI)−1 ) optimization variables, Â, B̂, Ĉ and D̂. Hence, these terms can be
2π
i i excluded from the optimization. These are the only terms including
= ln(−A − iωI) − ln(−A + iωI). Pω and Qω which are the most costly to compute.
2π 2π
D. Petersson, J. Löfberg / Systems & Control Letters 67 (2014) 32–39 35
Table 1
Numerical results for Example 1.
G−Ĝ
G−Ĝ
H2 ,ω H∞ ,ω
∥G∥H2 ,ω ∥G∥H∞ ,ω
To shorten the names and make the figures more readable we will
denote our proposed method as flh2 nl. The methods that will be
used for comparison, in the different examples, are
• bt—ordinary balanced truncation, the implementation used is
the function schurmr in Robust Control Toolbox in Matlab
• wbt—weighted balanced truncation, an implementation of the
method in [5]
Fig. 1. The true and reduced order models for Example 1. The dashed vertical line
• flbt—frequency limited balanced truncation, an implementa- denotes ω = 2. The reader is referred to the digital version of this paper, for a color
tion of the method in [7] plot.
• mflbt—modified frequency limited balanced truncation, an
implementation of the method in [2]
• flistia—frequency limited iterative tangential interpolation
algorithm (see [21]), the implementation in the more-toolbox
is used
• spanos—weighted H2 -model reduction, an implementation of
the method in [26].
When solving the examples in this section we use the function
fminunc in Matlab, that uses a quasi-Newton algorithm, to
perform the optimization. Since the optimization problem is a non-
convex problem the initialization of the optimization is important.
In the presented examples we have used the model from balanced
truncation to initialize the optimization.
We will start with a small example to illustrate how the fre-
quency limited methods behave and show some bode plots. We
will then continue with two larger examples to show the applica-
bility for more realistic systems.
s2 + 0.2s + 1 s2 + 0.003s + 9
∥G∥H2 ,ω ∥G∥H∞ ,ω
5. Conclusions
Fig. 4. The error models for the different methods for Example 2. The dashed when differentiating (A.1) with respect to Â. Hence,
keep in mind
∂∥E ∥H ,ω
2
vertical lines denote ω = 10 and ω = 10 000. The reader is referred to the digital 2
becomes
version of this paper, for a color plot. ∂ Â
ij
∂ ∥E ∥2H2 ,ω
method wbt with a tenth order Butterworth low-pass filter, with
the cutoff frequency equal to ω. Looking at the left plot of Fig. 5 we ∂ Â ij
see that for small ω, the H2 optimal methods do very well. How-
ever, for ω > 7 we see that flh2 nl, even though optimizing the ∂ Yω T ∂ Q̂ω ∂ Ŝω T
= tr 2B̂B T
+ B̂B̂ − 2Ĉ B̂ D − D̂T
, (A.3)
same cost function, does better than flistia. As in the previous ex- ∂ âij ∂ âij ∂ âij
ample, we see that the relative H∞ -norm still keeps low. Almost
∂ Q̂
for all ω, the H2 optimal methods have better relative H∞ -error where ∂∂Yâω and ∂ âω depend on  via the differentiated versions of
ij ij
than the methods using balanced truncation. the equations in (A.2),
In all three of the above examples we observe that the proposed
method finds an at least as good model as the other methods, but ∂ YTω ∂ YT ∂ ÂT T ∂ Ŝ∗ω T
with the proposed method we can guarantee that the reduced or- ÂT + ωA+ Yω − Ĉ C = 0, (A.4a)
∂ âij ∂ âij ∂ âij ∂ âij
der model is stable and with the possibility to impose structure in
the system matrices. The way that is used to guarantee that the ∂ Q̂ω ∂ Q̂ω ∂ ÂT ∂ Â
ÂT + Â + Q̂ω + Q̂ω
stability of the reduced order model is to use a standard bracket- ∂ âij ∂ âij ∂ âij ∂ âij
ing line-search method and check the eigenvalues of the matrix
 for all the proposed steps and reject steps that render the model ∂ Ŝ∗ω T ∂ Ŝω
+ Ĉ Ĉ + ĈT Ĉ = 0. (A.4b)
unstable (effectively using an indicator function as a penalty on the ∂ âij ∂ âij
objective function). Since the algorithm always starts in an initially ∂ Q̂
strictly stable point, there will always exist a non-zero step length To be able to substitute ∂ âω and ∂∂Yâω to something more computa-
ij ij
preserving stability. tionally tractable we use the following lemma.
38 D. Petersson, J. Löfberg / Systems & Control Letters 67 (2014) 32–39
Fig. 5. Reduction of a clamped beam model to 12 states with focus on the frequency interval [0, ω], ω ∈ [2, 40] using flh2 nl, flistia, flbt, mflbt and wbt. The filter used
for the weighted method is a tenth order Butterworth low-pass filter with cutoff frequency ω. To the left we see the relative H2 error and to the right the relative H∞ error.
The reader is referred to the digital version of this paper, for a color plot.
Lemma 2. If M and N satisfy the Sylvester equations where L(A, E) is the Frechét derivative of the matrix logarithm,
see [23], with
AM + MB + C = 0, NA + BN + D = 0, (A.5)
1
then tr CN = tr DM. L(A, E) = (t (A − I) + I)−1 E (t (A − I) + I)−1 dt , (A.10)
0
Proof. Multiplying the left equation in (A.5) with N from the left,
the right equation with M from the right and taking the trace of r (Â) = −Â − iωI. (A.11)
both equations entail
The function L(A, E) can be efficiently evaluated using an algorithm
tr NAM + tr MBN = −tr NC, tr NAM + tr MBN = −tr DM. described in [23].
By substituting (A.9) into (A.7) and using (A.10) with the fact
Hence, tr CN = tr DM. that we can interchange the tr-operator and the integral we obtain
∂ Q̂
Studying Lemma 2, the two factors in front of ∂∂Yâω and ∂ âω ∂ ∥E ∥2H2 ,ω
ij ij
in (A.3) and the structure of the Lyapunov/Sylvester equations in
∂ Â
(A.4), ÂT · + · Â + ⋆ = 0 and ÂT · + · A + ⋆ = 0, brings us to
ij
the conclusion that, to do the substitution, we need to solve two ∂ Â T T ∂ Ŝ∗
ω T T
additional Lyapunov/Sylvester equations, namely = 2 tr Yω X + Q̂ω P̂ + Ĉ ĈP̂ − Ĉ CX
∂ âij ∂ âij
AX + XÂT + BB̂T = 0, (A.6a)
∂ Ŝω T T
− 2 tr B̂ D − D̂ Ĉ
ÂP̂ + P̂Â + B̂B̂ = 0.
T T
(A.6b) ∂ âij
Note that P̂ in (A.6b) is the controllability Gramian for the reduced ∂ ÂT T
order model. = 2 tr Yω X + Q̂ω P̂
∂ âij
Rewriting (A.3) using Lemma 2, (A.4) and (A.6) leads to
∂ Â T
T
i
∂ ∥E ∥2H2 ,ω
− 2 tr Re L r (Â), V
∂ âij π
∂ Â ij
∂ ÂT
,
T
∂ ÂT T ∂ Ŝ∗
ω
= tr 2 Yω X + Q̂ω P̂ − 2W (A.12)
= 2 tr Yω X + Q̂ω P̂ + T T
Ĉ ĈP̂ − Ĉ CX ∂ âij
∂ âij ∂ âij
where
∂ Ŝω T
− 2 tr B̂ D − D̂ Ĉ .
T
(A.7) T
i
∂ âij W = Re L −Â − iωI, V , (A.13)
π
What remains is to rewrite the two last terms in (A.7), which
∂ Ŝ∗ V = ĈT ĈP̂ − ĈT CX − ĈT D − D̂ B̂T . (A.14)
include ∂∂Ŝâω and ∂ âω . Recall the definition of Ŝω ,
ij ij
i i
Ŝω = Re ln(−Â − iωI) = Re ln(r (Â)) (A.8) References
π π
[1] A. Varga, A. Hansson, G. Puyou (Eds.), Optimization Based Clearance of Flight
and differentiate with respect to an element in Â, i.e., aij . This yields Control Laws, in: Lecture Notes in Control and Information Science, Springer,
2012.
∂ Ŝω i ∂ r (Â) [2] S. Gugercin, A.C. Antoulas, A survey of model reduction by balanced truncation
= Re L r (Â), and some new results, Internat. J. Control 77 (8) (2004) 748–766.
∂ aij 2π ∂ aij [3] A. Ghafoor, V. Sreeram, A survey/review of frequency-weighted balanced
model reduction techniques, J. Dyn. Syst. Meas. Control 130 (2008) 061004.
i ∂ Â [4] G. Wang, V. Sreeram, W.Q. Liu, A new frequency-weighted balanced truncation
= Re L r (Â), − (A.9) method and an error bound, IEEE Trans. Automat. Control 44 (9) (1999)
2π ∂ aij 1734–1737.
D. Petersson, J. Löfberg / Systems & Control Letters 67 (2014) 32–39 39
[5] D.F. Enns, Model reduction with balanced realizations: an error bound [18] Y. Xu, T. Zeng, Optimal H2 model reduction for large scale mimo systems via
and a frequency weighted generalization, in: Proceedings of the 23rd IEEE tangential interpolation, Int. J. Numer. Anal. Model. 8 (1) (2011) 174–188.
Conference on Decision and Control, Las Vegas, USA, 1984, pp. 127–132. [19] C. Poussot-Vassal, An iterative SVD-tangential interpolation method for
[6] C.-A. Lin, T.-Y. Chiu, Model reduction via frequency weighted balanced medium-scale mimo systems approximation with application on flexible
realization, Control Theory Adv. Technol. 8 (1992) 341–351. aircraft, in: Proceedings of the 50th IEEE Conference on Decision and Control
[7] W. Gawronski, J.-N. Juang, Model reduction in limited time and frequency and the European Control Conference, Orlando, FL, USA, 2011, pp. 7117–7122.
intervals, Int. J. Syst. Sci. 21 (2) (1990) 349–376. [20] B. Anić, C. Beattie, S. Gugercin, A.C. Antoulas, Interpolatory weighted-H2
[8] S. Sahlan, A. Ghafoor, V. Sreeram, A new method for the model reduction model reduction, Automatica 49 (5) (2013) 1275–1280.
technique via a limited frequency interval impulse response Gramian, Math. [21] P. Vuillemin, C. Poussot-Vassal, D. Alazard, H2 optimal and frequency limited
Comput. Modelling 55 (3–4) (2012) 1034–1040. approximation methods for large-scale lti dynamical systems, in: Proceedings
[9] L. Meier, D.G. Luenberger, Approximation of linear constant systems, IEEE of the 5th IFAC Symposium on System Structure and Control, Grenoble, France,
Trans. Automat. Control 12 (5) (1967) 585–588. 2013, pp. 719–724.
[10] D.A. Wilson, Optimum solution of model reduction problem, Proc. Inst. Electr. [22] K. Zhou, J.C. Doyle, K. Glover, Robust and Optimal Control, Prentice-Hall, Inc.,
Eng. 117 (6) (1970) 1161–1165. 1996.
[23] N.J. Higham, Functions of Matrices: Theory and Computation, SIAM, 2008.
[11] A. Lepschy, G.A. Mian, G. Pinato, U. Viaro, Rational L2 approximation: a non-
[24] T. McKelvey, A. Helmersson, System identification using an over-parametrized
gradient algorithm, in: Proceedings of the 30th IEEE Conference on Decision
model class-improving the optimization algorithm, in: Proceedings of the 36th
and Control, Vol. 3. Brighton, UK, 1991, pp. 2321–2323.
IEEE Conference on Decision and Control, Vol. 3, 1997, pp. 2984–2989. URL
[12] C.A. Beattie, S. Gugercin, Krylov-based minimization for optimal H2 model
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=657905.
reduction, in: Proceedings of the 47th IEEE Conference on Decision and
[25] A.H. Al-Mohy, N.J. Higham, S.D. Relton, Computing the Fréchet derivative of the
Control, New Orleans, USA, 2007, pp. 4385–4390.
matrix logarithm and estimating the condition number. Manchester Institute
[13] S. Gugercin, A.C. Antoulas, C. Beattie, H2 model reduction for large-scale linear for Mathematical Sciences. The University of Manchester, UK MIMS EPrint
dynamical systems, SIAM J. Math. Anal. 30 (2) (2008) 609–638. 2012.72. 2012. URL: http://eprints.ma.man.ac.uk/1852/.
[14] P. Fulcheri, M. Olivi, Matrix rational H2 approximation: a gradient algorithm [26] J. Spanos, M. Milman, D. Mingori, A new algorithm for L2 optimal model
based on schur analysis, SIAM J. Control Optim. 36 (6) (1998) 2103–2127. reduction, Automatica 28 (5) (1992) 897–909.
[15] W.-Y. Yan, J. Lam, An approximate approach to H2 optimal model reduction, [27] F. Leibfritz, W. Lipinski, Description of the Benchmark Examples in COMPLeib
IEEE Trans. Automat. Control 44 (7) (1999) 1341–1358. 1.0, Tech. Rep., University of Trier, Department of Mathematics, Germany,
[16] D.A. Wilson, Model reduction for mutivariable systems, Internat. J. Control 20 2003.
(1) (1974) 57–64. [28] D. Petersson, Nonlinear optimization approaches to H2 -norm based lpv
[17] X.-X. Huang, W.-Y. Yan, K.L. Teo, H2 near-optimal model reduction, IEEE Trans. modelling and control. Licentiate Thesis No. 1453, Department of Electrical
Automat. Control 46 (8) (2001) 1279–1284. Engineering, Linköping University, 2010.