home *** CD-ROM | disk | FTP | other *** search
- function [ahed,bhed,ched,dhed,aug,hsv] = reschml(A,B,C,D,Type,no,info)
- %
- % [AHED,BHED,CHED,DHED,AUG,HSV]=RESCHML(A,B,C,D,TYPE,NO,INFO) performs
- % relative error Schur model reduction on a SQRARE, STABLE G(s):=
- % (A,B,C,D). The infinity-norm of the relative error is bounded as
- % -1 __
- % |(Gm(s)-G(s))G(s) | <= ( || [(1+si)/(1-si)] ) - 1,
- % inf k+1 to n
- % where si denotes the i-th Hankel singular value of the all-pass
- % "phase matrix" of G(s).
- % The algorithm is based on the Balanced Stochastic Truncation (BST)
- % theory with Relative Error Method (REM).
- % Based on the "TYPE" selected, you have the following options:
- % 1). TYPE = 1 --- no: size "k" of the reduced order model.
- % 2). TYPE = 2 --- find k-th order reduced model that
- % tolerance (db) <= "no".
- % 3). TYPE = 3 --- display all the Hankel SV of phase matrix and
- % prompt for "k" (in this case, no need to specify "no").
- % Input variable: "info" = 'left '(default is also 'left ').
- % Output variable "aug": aug(1,1) = no. of state removed
- % aug(1,2) = relative error bound
- % Note that if D is not full rank, an error will result.
-
- % R. Y. Chiang & M. G. Safonov 2/30/88
- % Copyright (c) 1988 by the MathWorks, Inc.
- % All Rights Reserved.
- % ------------------------------------------------------------------------
- if nargin == 6
- info = 'left '
- end
- [ahed,bhed,ched,dhed,aug,hsv] = reschmr(A,B,C,D,Type,no,info);
- %
- % ------- End of RESCHML.M --- RYC/MGS 9/13/87 %