remove_algebraic.m
SYNTAX: [A1,B1,C1,D1,E1,T,K] = remove_algebraic(A,B,C,D,E,condn)
PURPOSE: Remove algebraic relationships from a system in descriptor form:
E dx/dt = Ax + Bu
y = Cx + Du
for 2 cases:
(1) where a row of E is identically 0.
(2) where E = identity
INPUT:
A,B,C,D,E = descriptor system with (possible) algebraic relation
(E is optional, default = identity)
condn = set = 1 to improve system condition as well as remove algebraic,
set = 0 to only remove algebraic (optional, default=1)
OUTPUT:
A1,B1,C1,D1,E1 = descriptor system with algebraic relation removed
T = state transformation matrix: x = T*x1, where x1 is new state vector
K = If E~=identity, matrix describing algebraic relationship:
states removed = K * (remaining states)
If E==identity, K = indices of states deleted from x1
RESTRICTIONS: This routine is not truly general purpose yet. Needs to be
extended to the case where a row of E can be brought to 0 using
elementary operations.
Dependencies