Code covered by the BSD License  

Highlights from
Balanced Truncation

2.0

2.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 2.27 KB File ID: #21393

Balanced Truncation

by Janardhanan Sivaramakrishnan

 

10 Sep 2008 (Updated 11 Sep 2008)

Script for obtaining balanced truncation for a given system

| Watch this File

File Information
Description

The script computes the reduced order model of a given system using Balanced Truncation technique. Both stable and unstable systems can be handled here.

NewR=BalanceTrunc(A,B,C,D,orders)
Where A,B,C,D are the system matrices of the state space representation and orders is the order of the reduced order model.

In addition to matrices, state space object is also accepted by the script.

NewR=BalanceTrun(sys,orders)
In this format, the state space model sys is reduced to a 'orders'-order model.

It may also be noted that the function can also be used as BalanceTrunc(A,B,C,D) OR BalanceTrunc(sys), i.e., without specifying the desired reduced order. In which case, all feasible
reduced order realizations are presented as a cell array of state space objects.

Required Products Control System Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Sep 2008 Stefan Behrendt

No documentation of the code and error

??? Undefined function or variable "ips".

Error in ==> balancetrunc at 119
   Pb1=P.b(:,1:ips);

for

>> AD

AD =

   -3.2247 -1.7331 -0.6210
    2.0000 0 0
         0 1.0000 0

>> BD

BD =

     1
     0
     0

>> CD

CD =

         0 0 0.5988

>> DD

DD =

     0

Please login to add a comment or rating.
Updates
11 Sep 2008

Errors regarding variable 'ips' corrected. Code improved slightly.

Tag Activity for this File
Tag Applied By Date/Time
balanced Janardhanan Sivaramakrishnan 22 Oct 2008 10:18:38
model reduction Janardhanan Sivaramakrishnan 22 Oct 2008 10:18:38
singular value decomposition Janardhanan Sivaramakrishnan 22 Oct 2008 10:18:38

Contact us at files@mathworks.com