Beruflich Dokumente
Kultur Dokumente
By
Inno Odira
c Copyright by Inno Odira, 2018
Table of Contents
1 Modelling Systems 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Types Of Mathematical Models . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2.1 Differential equations and difference equations . . . . . . . . . . . . . 4
1.2.2 Transfer Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.3 State space representation . . . . . . . . . . . . . . . . . . . . . . . . 8
iii
Chapter 1
Modelling Systems
1.1 Introduction
The first step in the control design process is to develop appropriate mathematical models
of the system derived either from physical laws or experimental data
Definition 1
System description by mathematical expression that appropriately relates the physical sys-
tem quantities to the system components. This mathematical relation constitutes the math-
ematical model of the system.
As an example, consider a resistor whose voltage v, current i, and resistance R are related in
the well-known equation v = Ri. This expression relates the physical quantities (variables) v
and i with the component R and constitutes a description; i.e., it constitutes a mathematical
model of this simple (one-component) system.
1
2
As another example, consider a circuit composed of a resistor and an inductor connected in
series. In this case, the voltage v across the circuit, the current i, the resistance R of the
resistor, and the self-inductance L of the inductor are related with the well-known relation
di
v = L( dt ) + Ri. This expression relates the physical quantities v and i with the components
R and L and constitutes a mathematical model of the system.
Based on three-fold element concept (input, system, and output), a more strict definition of
the mathematical model of a system can be given.
Definition 2
The mathematical model of a system is a mathematical expression which relates the input,
the system, and the output. This relation must be such as to guarantee that one can deter-
mine the systems output for any given input.(Important)
• Offers the capability of system analysis, i.e.,the capability to determine the systems
response under any excitation.
• useful for other purposes, as for example to study the systems stability and other
properties, to improve the systems performance by applying control techniques, etc.
The problem of deriving the mathematical model of a system usually appears as one of the
following two cases.
3
Derivation of Systems Equations
In this case, the system is considered known: for example, the network shown in Figure 1.1 a.
Here, we know the components R, L, C1, and C2 and their interconnections. To determine
a mathematical model of the network, one may apply Kirchhoffs laws and write down that
particular system of equations which will constitute the mathematical model. From network
theory, it is well known that the system of equations sought are the linearly independent
loop or node equations.
System Identification In this case the system is not known. By not known, we mean that
we do not know either the systems components or their interconnections. The system is
just a black box. In certain cases, we may have available some a priori (in advance) useful
information about the system, e.g., that the system is time-invariant or that it has lumped
parameters, etc. Based on this limited information about the system, we are asked to deter-
mine a mathematical model which describes the given system satisfactorily. A well-known
technique for dealing with this problem is depicted in Figure 1.1b. Here, both the physical
system and the mathematical model are excited by the same input u(t). Subsequently, the
difference e(t) of the respective responses y1 (t) and y2 (t) is measured. If the error e(t) is
within acceptable bounds, then the mathematical model is a satisfactory description of the
system. The acceptable bounds depend on the desired degree of accuracy of the model, and
they are usually stated in terms of the minimum value of the following cost function:
4
Note, however, that there are other ways of describing a system, aiming to give a schematic
overview of the system. Two such popular schematic system descriptions are
These diagrams and graphs are particularly useful in giving a simplified overall picture of a
system.
dy
+ a0 y = b0 u(t) (1.2.1)
dt
If the system dynamics produced a second-order differential equation, it would be repre-
sented by
d2 y dy
2
+ a1 + a0 y = b0 u(t) (1.2.2)
dt dt
If the dynamics produced a third order differential equation, its representation would be
d3 y d2 y dy
+ a 2 + a1 + a0 y = b0 u(t) (1.2.3)
dt3 dt2 dt
These are linear differential equations with constant coefficients. The order of the differ-
ential is the order of the highest derivative.
Example 1 Consider the network shown in Figure 1.2.1. Derive the networks differential
equation mathematical model.
Solution 1
Applying Kirchhoffs voltage law,
Z
di 1
v=L + idt + Ri
dt C
When rearranged gives Z
di 1
L + Ri + idt = v
dt C
To eliminate the integral, both sides of the equation are differentiated with respect to
time,resulting in the desired differential equation
d2 i di i dv
L 2
+R + =
dt dt c dt
The above integrodifferential equation constitutes a mathematical description of the net-
work. To complete this description, two appropriate initial conditions must be given, since
6
the above mathematical model is essentially a second-order differential equation. As initial
conditions, we usually consider the inductors current iL (t) and the capacitors voltage vC (t)
at the moment the switch S closes, which is usually at t0 . Therefore, the initial conditions
are iL (t) = I0 and vC (t0 ) = V0 ; where I0 and V0 are given constants. The integrodifferential
equation and the two initial conditions constitute a complete description of the network
shown in Figure 1.2.1.
• A transfer function may be defined only for a linear, time invariant (stationary or
constant parameter) system with all initial conditions assumed to be zero. . A non-
stationary system often called a time-varying system, has one or more time-varying
parameters, and the Laplace transformation may not be utilized.
The transfer function G(s) of a linear, time-invariant system with zero initial conditions
is the ratio of the Laplace transform of the output y(t) to the Laplace transform of the input
u(t), i.e.,
L(y(t)) Y (s)
G(s) = =
L(u(t)) U (s)]
In practice, the input-output relation of a linear time-invariant system with continuous-
data input is often described by the differential equation, so it is more convenient to derive
the transfer function directly from the differential equation.
Let us consider that the input-output relation of a linear time-invariant system is de-
scribed by the following nth-order differential equation with constant real coefficients:
7
The applicability of the concept of the Transfer Function (TF) is limited to LTI differential
equation systems. The following list gives some important comments concerning the TF of
a system described by a LTI differential equation:
1. The TF of a system is a mathematical model of that system, in that it is an operational
method of expressing the differential equation that relates the output variable to the
input variable.
2. The TF is a property of a system itself, unrelated to the magnitude and nature of the
input or driving function.
3. The TF includes the units necessary to relate the input to the output; however it does
not provide any information concerning the physical structure of the system. (The TF
of many physically different systems can be identified).
4. if the TF of a system is known , the output or response can be studied for various
forms of inputs with a view toward understanding the nature of the system.
5. If the TF of a system is unknown, it may be established experimentally by introducing
known inputs and studying the output of the system. Once established, a TF gives
a full description of the dynamic characteristics of the system, as distinct from its
physical description
6. The transfer function is said to be strictly proper if m < n. If m ≤ n then the transfer
function is proper. If m = n then the transfer function is Biproper. It is improper if
m > n.
Example 2 Consider the network shown in Figure 1.2.1. Derive the transfer function
G(s) = VI(s)
(s)
.
8
solution 2
I(s)
Ls2 I(s) + RsI(s) + = sV (s)
C
Rearranging we obtain
I(s) s Cs
G(s) = = 1 =
V (s) [Ls2 + Rs + C ]Is LCs2 + RCs + 1
• To address the multiple input and output system a convenient matrix based system
is used in representing the state space. They may be applied to a very wide category
of systems, such as linear and nonlinear systems, time-invariant and time-varying sys-
tems, systems with nonzero initial conditions, and others. In addition, the state space
approach is also attractive because of the availability of numerous state-space software
packages for the personal computer
From the mathematical point of view, the state of a system is expressed by its state
variables. Usually, a system is described by a finite number of state variables, which are
designated by x1 (t); x2 (t); ...; xn (t) and are defined as follows:
We begin our state space equation with selection of state variables. The number of state
variables for any individual differential equation will be equal to the order of the differential
9
equation.
Example 1
For a first order system
dy
+ a0 y = b0 u(t)
dt
There is only one state variable
x1 (t) = y
Generate first order differential equations from the state variables
ẋ1 (t) = ẏ
ẏ = −a0 y + b0 u(t)
Substitute the state variables in the previous equation to obtained state equation
ẋ1 (t) = ẏ
ẋ2 (t) = ÿ
From the differential equation make ÿ the subject
ÿ = −a0 y − a1 ẏ + b0 u(t)
10
Substitute the state variables in the first order differential equations to obtain state
equations
ẋ1 (t) = x2 (t)
State equations (1.2.6)
ẋ2 (t) = −a0 x1 (t) − a1 x2 (t) + b0 u(t),
The output equation is given by
y = x1 (t) (1.2.7)
State space model
We begin our state space equation with a state equation. A state equation consist of the
state equation and output equation as follows: