home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 7.ddi / ROBUST.DI$ / RESCHML.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  1.6 KB  |  33 lines

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