Control System Toolbox Previous page   Next Page
modred

Model order reduction

Syntax

Description

modred reduces the order of a continuous or discrete state-space model sys by eliminating the states found in the vector elim. The full state vector X is partitioned as X = [X1;X2] where X2 is to be discarded, and the reduced state is set to Xr = X1+T*X2 where T is chosen to enforce matching DC gains (steady-state response) between sys and rsys.

elim can be a vector of indices or a logical vector commensurate with X where true values mark states to be discarded. This function is usually used in conjunction with balreal. Use balreal to first isolate states with negligible contribution to the I/O response. If sys has been balanced with balreal and the vector g of Hankel singular values has M small entries, you can use modred to eliminate the corresponding M states. For example:

rsys = modred(sys,elim,'method') also specifies the state elimination method. Choices for 'method' include

The 'Truncate' option tends to produces a better approximation in the frequency domain, but the DC gains are not guaranteed to match.

If the state-space model sys has been balanced with balreal and the grammians have small diagonal entries, you can reduce the model order by eliminating the last states with modred.

Example1

Consider the continuous fourth-order model

To reduce its order, first compute a balanced state-space realization with balreal by typing

MATLAB returns

The last three diagonal entries of the balanced grammians are small, so eliminate the last three states with modred using both matched DC gain and direct deletion methods.

Both hmdc and hdel are first-order models. Compare their Bode responses against that of the original model .

The reduced-order model hdel is clearly a better frequency-domain approximation of . Now compare the step responses.

While hdel accurately reflects the transient behavior, only hmdc gives the true steady-state response.

Algorithm

The algorithm for the matched DC gain method is as follows. For continuous-time models

the state vector is partitioned into , to be kept, and , to be eliminated.

Next, the derivative of is set to zero and the resulting equation is solved for . The reduced-order model is given by

The discrete-time case is treated similarly by setting

Limitations

With the matched DC gain method, must be invertible in continuous time, and must be invertible in discrete time.

See Also
balreal     Input/output balancing of state-space models

minreal     Minimal state-space realizations


Previous page  minreal modsep Next page

© 1994-2005 The MathWorks, Inc.