Main Content

hankelmr

Hankel minimum degree approximation (MDA) without balancing

Syntax

GRED = hankelmr(G) GRED = hankelmr(G,order) [GRED,redinfo] = hankelmr(G,key1,value1,...) [GRED,redinfo] = hankelmr(G,order,key1,value1,...)

Description

hankelmrreturns a reduced order modelGREDofGand a struct arrayredinfocontaining the error bound of the reduced model and Hankel singular values of the original system.

The error bound is computed based onHankel singular values ofG. For a stable system Hankel singular values indicate the respective state energy of the system. Hence, reduced order can be directly determined by examining the system Hankel SV's,σι.

With only one input argumentG, the function will show a Hankel singular value plot of the original model and prompt for model order number to reduce.

This method guarantees an error bound on the infinity norm of theadditive errorG-GRED∥ ∞ for well-conditioned model reduced problems[1]:

G G r e d 2 k + 1 n σ i

Note

It seems this method is similar to the additive model reduction routinesbalancmrandschurmr, but actually it can produce more reliable reduced order model when the desired reduced model has nearly controllable and/or observable states (has Hankel singular values close to machine accuracy).hankelmrwill then select an optimal reduced system to satisfy the error bound criterion regardless the order one might naively select at the beginning.

This table describes input arguments forhankelmr.

Argument

Description

G

LTI model to be reduced (without any other inputs will plot its Hankel singular values and prompt for reduced order)

ORDER

(Optional) an integer for the desired order of the reduced model, or optionally a vector packed with desired orders for batch runs

A batch run of a serial of different reduced order models can be generated by specifyingorder = x:y, or a vector of integers. By default, all the anti-stable part of a system is kept, because from control stability point of view, getting rid of unstable state(s) is dangerous to model a system.

'MaxError'can be specified in the same fashion as an alternative for'ORDER'. In this case, reduced order will be determined when the sum of the tails of the Hankel sv's reaches the 'MaxError'.

Argument

Value

Description

'MaxError'

Real number or vector of different errors

Reduce to achieveHerror.

When present,'MaxError'overridesORDERinput.

“重量”

{Wout,Win}cell array

Optimal 1x2 cell array of LTI weightsWout(output) andWin(input). Default for both is identity. Weights must be invertible.

'Display'

'on'or'off'

Display Hankel singular plots (default'off').

'Order'

Integer, vector or cell array

Order of reduced model. Use only if not specified as 2nd argument.

Weights on the original model input and/or output can make the model reduction algorithm focus on some frequency range of interests. But weights have to be stable, minimum phase and invertible.

This table describes output arguments.

Argument

Description

GRED

LTI reduced order model. Become multi-dimensional array when input is a serial of different model order array.

REDINFO

A STRUCT array with 4 fields:

  • REDINFO.ErrorBound(bound on ∥G-GRED∥∞)

  • REDINFO.StabSV(Hankel SV of stable part of G)

  • REDINFO.UnstabSV(Hankel SV of unstable part of G)

  • REDINFO.Ganticausal(Anti-causal part of Hankel MDA)

Gcan be stable or unstable, continuous or discrete.

Note

Ifsize(GRED)is not equal to the order you specified. The optimal Hankel MDA algorithm has selected the best Minimum Degree Approximate it can find within the allowable machine accuracy.

Examples

Given a continuous or discrete, stable or unstable system,G, the following commands can get a set of reduced order models based on your selections:

rng(1234,'twister'); G = rss(30,5,4); [g1, redinfo1] = hankelmr(G); % display Hankel SV plot % and prompt for order (try 15:20) [g2, redinfo2] = hankelmr(G,20); [g3, redinfo3] = hankelmr(G,[10:2:18]); [g4, redinfo4] = hankelmr(G,'MaxError',[0.01, 0.05]); for i = 1:4 figure(i); eval(['sigma(G,g' num2str(i) ');']); end

奇异值的波德图G(比如说,5 outputs, 4 inputs)shows a singular value Bode plot of a random systemGwith 20 states, 5 output and 4 inputs. The error system betweenGand itsZeroth order Hankel MDAhas it infinity norm equals to an all pass function, as shown inAll-Pass Error System Between G and Zeroth Order G Anticausal.

TheZeroth order Hankel MDAand its error system sigma plot are obtained via commands

[g0,redinfo0] = hankelmr(G,0); sigma(G-redinfo0.Ganticausal)

This interesting all-pass property is unique in Hankel MDA model reduction.

奇异值的波德图G(比如说,5 outputs, 4 inputs)

All-Pass Error System Between G and Zeroth Order G Anticausal

Algorithms

Given a state-space (A,B,C,D) of a system andk, the desired reduced order, the following steps will produce a similarity transformation to truncate the original state-space system to thekthorder reduced model.

  1. Find the controllability and observability GramiansPandQ.

  2. 形成了descriptor

    E = Q P ρ 2 I

    where σ k > ρ σ k + 1 , and descriptor state-space

    Take SVD of descriptorEand partition the result intokthorder truncation form

    [ E s A ¯ B ¯ C ¯ D ¯ ] = [ ρ 2 A T + Q A P Q B C P D ] E = [ U E 1 , U E 2 ] [ Σ E 0 0 0 0 ] [ V E 1 T V E 2 T ]

  3. Apply the transformation to the descriptor state-space system above we have

    [ A 11 A 12 A 21 A 22 ] = [ U E 1 T U E 2 T ] ( ρ 2 A T + Q A P ) [ V E 1 V E 2 ] [ B 1 B 2 ] = [ U E 1 T U E 2 T ] [ Q B C T ] [ C 1 C 2 ] = [ C P ρ B T ] [ V E 1 V E 2 ] D 1 = D

  4. 形成了equivalent state-space model.

    [ A ˜ B ˜ C ˜ D ˜ ] = [ E 1 ( A 11 A 12 A 22 A 21 ) E 1 ( B 1 A 12 A 22 B 2 ) C 1 C 2 A 22 A 21 D 1 C 2 A 22 B 2 ]

    The finalkthorder Hankel MDA is the stable part of the above state-space realization. Its anticausal part is stored inredinfo.Ganticausal.

The proof of the Hankel MDA algorithm can be found in[2]. The error system between the original system G and the零阶汉克尔MDA G0is an all-pass function[1].

References

[1] Glover, K., “All Optimal Hankel Norm Approximation of Linear Multivariable Systems, and Their L-error Bounds,”Int. J. Control, vol. 39, no. 6, pp. 1145-1193, 1984.

[2] Safonov, M.G., R.Y. Chiang, and D.J.N. Limebeer, “Optimal Hankel Model Reduction for Nonminimal Systems,”IEEE Trans. on Automat. Contr., vol. 35, no. 4, April 1990, pp. 496-502.

Version History

Introduced before R2006a