Modeling Dynamic Systems 2
Modeling Dynamic Systems 2
MATHEMATICAL MODELING 2
Goal for today’s lecture
Advantage: the availability of a flow graph gain formula, also called Mason’s gain
formula.
It depicts the flow of signals from one point of a system to another and gives the
relationships among the signals.
Fundamentals of Signal Flow Graphs
Consider a simple equation below and draw its signal flow graph:
y ax
a11 x1 a12 x2 r1 x1
a21 x1 a22 x2 r2 x2
Cont’d
• A feedback path or feedback loop is a path which originates and terminates on the same node. i.e.; X2
1. Input node.
2. Output node.
3. Forward paths.
4. Feedback paths (loops).
5. Determine the loop gains of the
feedback loops.
6. Determine the path gains of the forward
paths.
7. Non-touching loops
Cont’d
On the other hand, Mason’s rule for reducing a signal-flow graph to a single transfer
The formula was derived by S. J. Mason when he related the signal-flow graph to
• ∆ is called the signal flow graph determinant or characteristic function. Since ∆=0 is the
system characteristic equation.
Cont’d
n
Pi i
C( s ) i 1
R( s )
• ∆ = 1- (sum of all individual loop gains) + (sum of the products of the gains of all possible
two loops that do not touch each other) – (sum of the products of the gains of all possible three
loops that do not touch each other) + … and so forth with sums of higher number of non-
touching loop gains
• ∆i = value of Δ for the part of the block diagram that does not touch the i-th forward path (Δ i =
1 if there are no non-touching loops to the i-th path.)
Systematic approach
Therefore, C P11 P2 2
R
There are three feedback loops
1 L1 L2 L3
P1
P2
1. Calculate forward path gains for each forward path.
P1 G1G2 G3G4 (path 1) and P2 G5G6G7 G8 (path 2)
None.
1 L1 L2 L3 L4 L1 L3 L1 L4 L2 L3 L2 L4
1 G2 H 2 H 3G3 G6 H 6 G7 H 7
G2 H 2G6 H 6 G2 H 2G7 H 7 H 3G3G6 H 6 H 3G3G7 H 7
Cont’d
Eliminate forward path-1
1 1 L3 L4
1 1 G6 H 6 G7 H 7
2 1 L1 L2
2 1 G2 H 2 G3 H 3
Cont’d
Y ( s ) P11 P2 2
R( s)
Find the transfer function, C(s)/R(s), for the signal-flow graph in figure below.
Cont’d
There is only one forward Path.
P2 A72
Cont’d
L1 L3 L1 L8 L2 L8 L4 L6 L5 L7 L7 L8
L1 L4 L2 L4 L3 L5 L4 L7 L6 L7
L1 L5 L2 L5 L3 L6
L1 L6 L2 L6
Three non-touching loops
L1 L3 L5 L2 L4 L6
L1 L4 L6 L4 L6 L7
L1 L3 L6
State Space Modeling
Introduction
The state of a dynamic system is the smallest set of variables (called state variables)
such that knowledge of these variables at , together with knowledge of the input for ,
completely determines the behavior of the system for any time .
The state variables of a dynamic system are the variables making up the smallest set
n state variables can be considered the n components of a vector x. Such a vector is called state
vector.
A state vector is thus a vector that determines uniquely the system state x(t) for any time , once
The n-dimensional space whose coordinate axes consist of the xis, xis, where , , ……., are
state variables, is called a state space. Any state can be represented by a point in the state space.
In state-space analysis we are concerned with three types of variables that are involved in the
modeling of dynamic systems: input variables, output variables, and state variables.
Cont’d
The number of state variables to completely define the dynamics of the system is
Assume also that there are r inputs (t), (t), ……., (t) and m outputs (t), (t), ……., (t).
, ,…, ; , ,…, ; )
, ,…, ; , ,…, ; )
.
.
.
, ,…, ; , ,…, ; )
Cont’d
The outputs (t), (t), ……., (t) of the system may be given by
, ,…, ; , ,…, ; )
, ,…, ; , ,…, ; )
.
.
.
, ,…, ; , ,…, ; )
Cont’d
If we define
Cont’d
Then is the state equation and is the output equation.
If vector f and/or g involve time t explicitly, then the system is called a time varying system.
Where is called the state matrix, the input matrix, the output matrix, and the direct transmission matrix.
For time-invariant system
Block diagram representation of control system in state space
Example 3: Drive a state equation and output equation
From the diagram, the system equation is
This system is of second order. This means that the system involves two
integrators. Lets us define state variables and as
Then we obtain
Cont’d
In vector-matrix form:
and
In the standard form:
Cont’d
Correlation between transfer function and state space equations
The Laplace transforms of the standard notation of the state space equations (for zero initial
conditions:
Note that;
Thus, we have
Reading assignment