The problem of deriving a linear state space equation from a higher ODE or transfer function is called realization.
we have seen some realization examples from ODEs to the state space equation, we also introduced how to get a transfer function from the state space function.
But now, if we have a transfer function, what is the state space equation?
Nonuniquess of realization, as we have seen previously, the realizations are not unique (we will discuss this shortly).
The dimension of a realization can be any integer greater or equal to n. If α(s) and β(s) are coprime, then the minimal dimension of a realization of a transfer function is equal to n.
The transfer function of a state equation is invariant under a state transformation.
What is a Good Realization?
A realization can be viewed as a modeling method of physical system.
Since realizations are not unique, they can be good and bad realizations.
From the control point of view, we need to determine what makes a good realization.
Controllability and observability are two criterions to determine a good realization.
Controllability Matrix & Observability Matrix
The matrix,
[BcAcBc…Acn−1Bc]
is called the controllability matrix of the system.
The matrix,
CoCoAo⋮CoAon−1
is called the observability matrix of the system.
NB: The elements of these matrices are matrices, for example,
Let A=[1324] and B=[5768], then the matrix [AB] is,
[13245768]
We are not going into the formal proof, but it can be verified that,
rank[BcAcBc…Acn−1Bc]=n
and
rankCoCoAo⋮CoAon−1=n
Remark
One can always transform a given state description to control canonical form if and only if the controllability matrix is nonsingular (i.e., full rank).
Controllability
From the name, it suggests that, to what extent can the input u affect the state x.
Let’s go with this intuition for a moment.
Controllability
Let’s say we have two state variables x1 and x2.
The system is described by the following equations,
x1˙x2˙=x1,x1(0)x10=x2+u,x2(0)=x20
Thus, x1 and x2 in the time domain are,
x1(t)x2(t)=etx10=etx20+et∫0te−τu(τ)dτ
No matter how u(t) is chosen or designed, it cannot affect x1(t).
Note, this doesn’t mean we can specifically design a system as a whole to go from a starting point x0 to a final point xf given the right conditions.
But since this generally doesn’t, hold, meaning we can not go from an arbitrary starting point to an arbitrary final point, we say the system is uncontrollable.
Let’s now properly define controllability.
Definition 1 (Controllability)
The LTI system,
x˙=Fx+Gu,x(0)=0,t≥0
where F∈Rn×n and G∈Rn×1 is controllable on [0,tf] for some tf>0, if given any initial state x0 and final state xf, there exists a pieacewise continuous input u(t) subject to the solutuion of the system, satifies
x(tf)=xfRemark 2
It will be seen later that whether a system is controllable depends on F and G, we also say that the pair {F,G} is controllable or uncontrollable.
Theorem 1 (Criterion for Controllability)
The system is controllable if and only if,
rank[GFG…Fn−1G]=nExample 2
Let’s consider the system,
F=[0−21−1],G=[01]
We can see that this system is of order two, so let’s first calculate FG.
FG=[1−1]
Thus, the controllability matrix is,
[011−1]
For matrices of size 2×2, we can easily calculate the determinant,
det[011−1]=(0⋅−1)−(1⋅1)=−1
Since the determinant is not zero, the controllability matrix is full rank, and the system is controllable.
On the other hamd, if
F=[1001],G=[01]FG=[01]
Then, the controllability matrix is,
[0101]
The determinant of this matrix is zero, so the system is uncontrollable.
Recall (Rank of a matrix)
(This is just a refresher, skip if you are already familiar with this)
Let A=[aij] be a n×m matrix. If n=m, then A has full rank if and only if A is nonsingular if and only if det(A)=0.
If n<m, then A has full rank if and only if A contains a nonsingular n×n submatrix. An n×n submatrix of A can be obtained from A by removing any m−n columns of A.
If n>m then A has full rank if and only if A contains a nonsingular m×m submatrix. An m×m submatrix of A can be obtained from A by removing any n−m rows of A.
Observability
Observability is the dual of controllability. It is the extent to which the state x can be determined from the output y.
The state x may not have any physical meaning and may not be measurable. It is desirable to be able to estimate x(t) from the information of y(t) and u(t).
If this is indeed the case, the state x(t) is said to be observable from the input and output.
Definition 2 (Observability)
The LTI system,
x˙y=Fx+Gux(0)=x0=Hx+Jut≥0
is observable if for any t>0, x(t) can be determined from y(t) and u(t).
Theorem 2 (Criterion for Observability)
The system is observable if and only if,
rankHHF⋮HFn−1=nExample 3
Let’s consider the system,
F=00−2000210,G=100001,H=[100001]
We can see that this system is of order three, so let’s first calculate F2, HF, and HF2.
We can see that we have a zero column in the matrix, which means the columns are not linearly independent which means not full rank, so the system is not observable.
Example 4
Let’s consider the system,
F=[01−0.1−0.2],H=[01]
We can see that this system is of order two, so let’s first calculate HF.
HF=[1−0.2]
Thus, the observability matrix is,
[011−0.2]
Which we can see has a non-zero determinant, so the system is observable.
Properties and Remarks
{Ac,Bc,Cc} is always controllable, but may not be observable. But if Cc(sI−Ac)−1Bc is irreducible, then {Ac,Bc,Cc} is also observable.
{Ao,Bo,Co} is always observable, but may not be controllable. But if Co(sI−Ao)−1Bo is irreducible, then {Ao,Bo,Co} is also controllable.
Define C(F,G)=[GFG…Fn−1G] and call it the controllability matrix, and O(H,F)=HHF⋮HFn−1 and call it the observability matrix.