| Contents | Index |
GRED = balancmr(G) GRED = balancmr(G,order) [GRED,redinfo] = balancmr(G,key1,value1,...) [GRED,redinfo] = balancmr(G,order,key1,value1,...)
balancmr returns a reduced order model GRED of G and a struct array redinfo containing the error bound of the reduced model and Hankel singular values of the original system.
The error bound is computed based on Hankel singular values of G. For a stable system these values indicate the respective state energy of the system. Hence, reduced order can be directly determined by examining the system Hankel singular values, σι.
With only one input argument G, 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 the additive error ∥ G-GRED ∥ ∞ for well-conditioned model reduced problems [1]:
![]()
This table describes input arguments for balancmr.
Argument | Description |
|---|---|
| G | LTI model to be reduced. Without any other inputs, balancmr will plot the Hankel singular values of G and prompt for reduced order |
| ORDER | (Optional) 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 specifying order = x:y, or a vector of positive 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 singular values reaches the 'MaxError'.
This table lists the input arguments 'key' and its 'value'.
Argument | Value | Description |
|---|---|---|
'MaxError' | Real number or vector of different errors | Reduce to achieve H∞ error. When present, 'MaxError'overides ORDER input. |
'Weights' | {Wout,Win} cell array | Optimal 1-by-2 cell array of LTI weights Wout (output) and Win (input). Defaults are both 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. Becomes multidimensional array when input is a serial of different model order array |
| REDINFO | A STRUCT array with three fields:
|
G can be stable or unstable, continuous or discrete.
Given a state space (A,B,C,D) of a system and k, the desired reduced order, the following steps will produce a similarity transformation to truncate the original state space system to the kth order reduced model.
Find the SVD of the controllability and observability grammians
P = Up Σp VpT
Q = UqΣq VqT
Find the square root of the grammians (left/right eigenvectors)
Lp = Up Σp½
Lo = Uq Σq½
LoT Lp = U Σ VT
Then the left and right transformation for the final kth order reduced model is
SL,BIG = Lo U(:,1:k) Σ(1;k,1:k))–½
SR,BIG = Lp V(:,1:k) Σ(1;k,1:k))–½

The proof of the square root balance truncation algorithm can be found in [2].
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:
rand('state',1234); randn('state',5678);G = rss(30,5,4);
[g1, redinfo1] = balancmr(G); % display Hankel SV plot
% and prompt for order (try 15:20)
[g2, redinfo2] = balancmr(G,20);
[g3, redinfo3] = balancmr(G,[10:2:18]);
[g4, redinfo4] = balancmr(G,'MaxError',[0.01, 0.05]);
rand('state',12345); randn('state',6789);
wt1 = rss(6,5,5); wt1.d = eye(5)*2;
wt2 = rss(6,4,4); wt2.d = 2*eye(4);
[g5, redinfo5] = balancmr(G, [10:2:18], 'weight',{wt1,wt2});
for i = 1:5
figure(i); eval(['sigma(G,g' num2str(i) ');']);
end
[1] Glover, K., "All Optimal Hankel Norm Approximation of Linear Multivariable Systems, and Their Lµ-error Bounds," Int. J. Control, Vol. 39, No. 6, 1984, p. 1145-1193
[2] Safonov, M.G., and R.Y. Chiang, "A Schur Method for Balanced Model Reduction," IEEE Trans. on Automat. Contr., Vol. 34, No. 7, July 1989, p.729-733
bstmr | hankelmr | hankelsv | ncfmr | reduce | schurmr

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |