Professional Documents
Culture Documents
Contents
ELEC-E8101 Digital and Optimal Control
(5 cr), autumn 2015 • Introduction, discrete-time control problem, the z-transform
• Discrete-time systems, properties and analysis
Lectures • Controller design: pole placement by state space methods
Fridays at 12.15-14.00, room AS2 • PID-controller and its discretized versions, the sampling theorem,
choosing the sampling interval
Lecturer: Kai Zenger, TuAS-house, room 3567,
• Discrete approximations of continuous-time controllers
kai.zenger(at)aalto.fi • Stochastic disturbance models
Exercise hours • Optimal prediction and minimum variance control
Wednesdays at 14.15-16.00 room Tu 1 AND • Dynamic programming
Thursdays at 16.00 – 18.00 room AS3 (problem solving help, • Linear quadratic controllers (LQ, LQG); discrete-time and
continuous-time cases
questions, doing exercises with friends., informal,
”Laskutupa”)
Assistants:
Juho Lindholm, e-mail: juholind(at)mappi.helsinki.fi
Jyrki Parkkinen, jyrki.parkkinen(at)aalto.fi
1
9/17/2015
• Please register to the course (oodi), if you have not done that already.
ELEC-E8101 Introduction
• You do not have to register to intermediate exams. Study material
• Lecture slides (in English, ordinary and print versions) in MyCourses
• You have to register to full exams, starting from the exam 8.2 2016. (mycourses.aalto.fi)
• Exercises with solutions (English) in MyCourses
• Important: Course substitutions: • Web learning environment (in Finnish):
- if you have done the old courses AS-74.2112 Digital control http://autsys.aalto.fi/pub/control.tkk.fi/Kurssit/Verkkokurssit/AS-
74.2112/index.html
AND AS-74.3123 Model-Based Control Systems, you do not have to do
ELEC-E8101 Digital and Optimal Control (it will be substituted by those two Note: The above old web course material is a good introduction, but does not
courses) cover the whole ELEC-E8101. It also contains some material (e.g. polynomial
controllers), which are not discussed in ELEC-E8101.
- if you have done only AS-74.2112 Digital control or only AS-74.3123 Model-
Based Control Systems, you have to do ELEC-E8101 Digital and Optimal • The lectures, lecture slides and exercises with solutions cover the whole
Control in a normal manner. The first part is however very similar to course. It is not absolutely necessary to purchase the book.
Digital Control course. If you know Digital control well, you can relax in • In each lecture, topics to read for the following session are given. Note: not all
the first period; it is suggested however that you do the homework slides are presented during the lectures; some are left for home study.
problems to get bonus points. • Homework assignments (six altogether) are given regularly. They appear in
MyCourses
2
9/17/2015
Department of
Automation and
Systems
Technology
3
9/17/2015
4
9/17/2015
By writing the dynamic equations of the system blocks the A lead/lag compensator has been designed for the process by using
performance can be studied. the Bode diagram as a design tool. The insufficient phase margin
(2 degrees) of the open loop has been improved to (50 degrees).
Stability must always be guaranteed.
1 s 1 l
z s
Gc (s) Gcm
s
1
p
Gcm 33.8, z10681 ( rad/ s)
l 1257 (rad / s), p 91106 (rad / s)
But the compensator can be approximated by a PID-controller: The control algorithm can be discretized directly for computer based
control (details are presented later in the course)
5
9/17/2015
Simulation
Controller design procedure
• To be used: Matlab/Simulink with different
toolboxes....
• Construction of the process model from • Control System Toolbox
physical equations or by identification. • Identification Toolbox
• The model analysis and linearisation when • Optimization Toolbox
needed; construction of the transfer functions • Model Predictive Toolbox
• Formulation of the control problem • Fuzzy Toolbox
• Controller design in time or frequency domain • Neural Networks Toolbox
• Discretization and implementation of the • Symbolic Toolbox
controller e.g. by a digital signal processor • Statistical Toolbox
(DSP)
• Comsol Multiphysics
• Alternatively: discretization of the process
model and controller design directly in discrete
time directly
6
9/17/2015
u(tk) u(t)
e(tk) y(t)
r(tk) +
Controller D/A Process
_
A/D
y(tk) y(t)
7
9/17/2015
b.
Department of
Automation and
Systems
Technology
Multiplying by the Laplace-variable s corresponds to derivation Now t = kh and ∆t = h. Let us further use the shift operator
in time domain (derivation operator p) q (multiplying by q corresponds to moving forward in time;
division by q corresponds to moving backwards in time)
8
9/17/2015
Example: How to design a digital controller Example: How to design a digital controller
based on an analog controller … based on an analog controller …
Example: How to design a digital controller Example: How to design a digital controller
based on an analog controller … based on an analog controller …
9
9/17/2015
Department of
Automation and
Systems
Technology
10
9/17/2015
The sequence
Sequence
In the terms
Z-transformation: Z-transformation:
11
9/17/2015
Example.
Movement in time (”right”=delay,
”left”=prediction)
Pulse sequence
One sample delay thus means multiplication by Compare to the derivative of Laplace-transformation
in the continuous time case.
; correspondingly by when the delay is n steps
12
9/17/2015
Initial conditions e.g. y(0)=0, u(0)=1, u(k)=0, k >0 Take the Z-transformation
Calculation directly from the equation (which is directly
an algorithm)
Result is the pulse sequence Initial conditions are considered to be zero when deriving
the pulse transfer function, leading to
13
9/17/2015
With a unit impulse as input Note the following transformation pairs (the latter
the output (pulse response) is the inverse transformation deviates somewhat from the continuous time analogue)
of the pulse transfer function.
1. ;
or
14
9/17/2015
Stability
We can operate with pulse transfer functions Stability region:
as with transfer functions. E.g. the closed loop pulse
transfer function can be calculated, the denominator of
which is the characteristic polynomial. Its
zeros are the system poles. The zeros of the numerator
are the system zeros.
The pulse transfer function can be divided into a sum
of terms like
A discrete-time system is stable , when the poles
;the inverse transformation stays bounded (b, c, d) are located inside the unit disc. Compare to the
when left half plane for continuous time systems.
If even one term ”explodes”, the system is unstable.
Shift-operators
Example. A difference equation (input-output
representation of a system )
A forward shift operator q (in time)
can be written
A backward shift operator (in time)
in which
Correspondingly
(Compare to the continuous time differential operator p) are operator polynomials. A similar equation can also
be written as a function of
15
9/17/2015
This can sound theoretical. However, in control Let us try to find the pulse transfer function. Take the
engineering there are many design methods, in which Z-transformation and eliminate x. The derivation is quite
either time domain or frequency domain (transfer functions) analogous to the continuous time case.
are used.
Example.
16
9/17/2015
Move q terms to the left side The following state representation is obtained
17
9/17/2015
Grounds and basic building blocks Grounds and basic building blocks …
18