Chapter 2 Mathematical Modeling of Control System
Chapter 2 Mathematical Modeling of Control System
Bewnet Getachew
Lecturer
Contents
1.1 Introduction
1.2 The Transfer Function of Linear
Systems
1.2.1 Block Diagram Models
1.2.2 Signal-Flow Graph Models
1.3 State space modeling
1.5 Design Examples
1.6 The Simulation of Systems Using
Control Design Software
DESIRED OUTCOMES
Classifications of Controllers
a. By the type of implementation:
-pneumatic controller
-hydraulic controller
-analog electronic controllers
-digital controllers
b. By control law:
- On-off,
- Proportional, P-control
- PD-control (Proportional plus Derivative)
- PID-control (Proportional plus Integral plus Derivative)
Disturbanc p(s)
uc(s) u(s) e
e (s)
Controlle Manipulat
Set-point Error d Signal ed
or Variable
Referenc Actual
e input + + Outpu
+
+ Controller Actuator + Process t
yd(s) -
y (s)
C(s) M(s) S(s)
Sensor
Feedback Signal
y m(s) H(s)
Proportional Control Action
For a controller with proportional control action, the
relationship between the output of the controller u(t)
and the actuating error signal e(t) is
r, in Laplace-transformed quantities,
Proportional-Plus-Integral Control
Action
The control action of a proportional- plus-integral
controller is defined by
or the transfer function of the controller is
X1(t) X2(t)
U1(t) and U2(t) = inputs
X1(t) and X2(t) = state variables
Y1(t) and Y2(t) = outputs
Output Equations
Solution
The state of this system can be described by a set of state
variables {x1,x2), where x1 is the capacitor voltage vc(t) and x2
is the inductor current iL{t).
Utilizing Kirchhoff’s current law at the junction, we obtain a first-order
differential equation by describing the rate of change of capacitor
voltage as
Eq. 1
Kirchhoff’s voltage law for the right-hand loop provides the equation
describing the rate of change of inductor current as
Eq. 2
Eq.3
and
Eq.4
We use Equations (3) and (4) to obtain the state variable differential
equation for the RLC circuit as
and the output as
and
Example-2
Determine the state variable characterization of the RLC circuit shown
in Figure below. Consider two outputs VR and VC
Solution
The state of this system can be described by a set of state
variables {x1,x2), where x1 is the capacitor voltage vc(t) and x2
is the current i{t).
x1 = v c
x2 = i
y1 = vc = x1
y2 = Ri = Rx2
Kirchhoff’s voltage law for the loop provides
U= i(t)R + vL + vC
U = i(t)R + Ldi(t)/dt + vC
di(t)/dt = 1/LU – R/Li(t) – 1/LvC
dvC/dt = 1/Ci(t)
.
x. 2 = 1/LU – R/Lx2 – 1/Lx1
x1 = 1/Cx2
The state-space representation for a given system is not
The dynamic
unique, system
except that must
the number involve
of state elements
variables that
is the same
memorize
for thedifferent
any of the values state-space
of the input for t ≥ t1. of
representations Since
the
same system. in a continuous-time control system
integrators
serve as memory devices, the outputs of such
integrators can be considered as the variables that
define the internal state of the dynamic system.
Thus the outputs of integrators serve as state
variables. The number of state variables to
completely define the dynamics of the system is
Assume that a multiple-input, multiple-output
equal to the number of integrators involved in the
system involves n integrators. Assume also that
system.
there are r inputs u1(t), u2(t), , , ur(t) and m outputs
y1(t), y2(t), , , ym(t).
Define n outputs of the integrators as state
variables: x1(t), x2(t), , , xn(t) Then the system may
be described by
The outputs y1(t), y2(t), , , ym(t) of the system may
be given by
If we define
has to be obtained from the matrix form of state and output equations
by elimination the other variable, the vector x(s).
This requires Laplace transform of these matrix equations for zero
initial conditions.
or
For single input , y(s) = y(s) and single output u(s) = u(s) such
that
Assuming D=0
Such that the poles of the transfer function G(s) are given by
|sI-A|=0
that is actually the equation that permits the calculation of the vector
of eigenvalues λ of the square matrix A
|λ I-A|=0
This indicates that the characteristic equation of the system is
given by (sI-A). That means that the eigenvalues of A is
identical to the poles of G(s) in the Laplace domain.
The poles of the transfer function G(s) can, consequently be
calculated as eigenvalues of the matrix A.
MATLAB Program
num = [2 1 1 2];
den = [1 4 5 2];
[A,B,C,D] = tf2ss(num,den)
Example-2
Consider the system defined by
A = [0 1;-25 -4];
B = [1 1;0 1];
C = [1 0;0 1];
D = [0 0;0 0];
[NUM,den] = ss2tf(A,B,C,D,1)
[NUM,den] = ss2tf(A,B,C,D,2)
Eigen values and Eigen vector
Example-1
Consider the system defined by A matrix
5 4
A =
1 2
1 0 - 5 4
= 0
λ 0 1 1 2
λ 0 - 5 4
= 0
0 λ 1 2
λ-5 -4 = 0
-1 λ-2
(λ-5)(λ-2)-4=0
λ2-2λ-5λ+10-4=0
λ2-7λ+6=0
λ=-6 and λ=-1 Eigen values
x1
|λ I-A| = 0
x2
λ-5 -4 x1
= 0
-1 λ-2 x2
When λ=6
1 -4 x1
= 0
-1 4 x2
-4 -4 x1
= 0
-1 -1 x2