Lecture 4 - Simple Design Problems: K. J. Åström
Lecture 4 - Simple Design Problems: K. J. Åström
Lecture 4 - Simple Design Problems: K. J. Åström
1. Introduction
The role of abstractions
K. J. strm
1. Introduction
2. Control of First Order Systems
3. Control of Second Order Systems
4. Matlab
5. Summary
Theme: Solve simple design problems in a unified way.
Dynamics of simple closed loop systems. Matlab.
d
r
C ( s)
P ( s)
1
Design controllers for the processes
P ( s) =
b
,
s+a
P ( s) =
s2
b1 s + b2
+ a1 s + a2
A Simple Recipe
b
s+a
P ( s) =
b
s+a
C ( s) = k +
ki
s
PC
b( ks + ki)
Y ( s)
=
= 2
R( s )
1 + PC
s + (a + bk)s + bki
Interpretation
Rewrite it as
(s2 + (a + bk)s + bki) Y (s) = b( ks + ki) R(s)
Interpret in time-domain
d2 y
dy
dr
+ (a + bk)
+ bki y = bk + bkir
2
dt
dt
dt
G ( s) =
02
s2 + 2 0 s + 02
d2 y
dy
m 2 +d
+ ky = 0
dt
dt
Mass-spring-damper equation
p
0 1 2
1.5
0.5
0
s + 0
s2 + 2 0 s + 02
G ( s) =
12
10
15
3
2.5
has the step response = 0.2, 0.5, 1 (dashed), 2, 5 and .
3
2
1.5
1
0.5
2.5
2
1.5
0t
5
10
0.5
0
0t
0t
5
10
Process
P ( s) =
b1 s + b2
+ a1 s + a2
Controller
ki
s
Closed loop transfer function from reference r to output y
C ( s) = k +
( ks + ki)(b1 s + b2)
PC
Y ( s)
=
= 3
R( s )
1 + PC
s + (a1 + b1 k)s2 + (a2 + b1 ki + b2 k)s + b1 ki
Closed loop system of third order, controller has only two
parameters. Not enough degrees of freedom. A more complex
controller is required to choose closed loop characteristic
polynomial.
Process
b
+ a1 s + a2
Notice that polynomial B is of zero degree. Controller
P ( s) =
03
G ( s) = 2
(s + 2 0 s + 02 )(s + 0 )
has the step response = 0.2, 0.5, 1 (dashed), 2, 5 and .
1.2
s2
C ( s) = k + k d s
Y ( s)
PC
b( kd s + k)
=
= 2
R( s )
1 + PC
s + a1 s + a2 + b( kd s + k)
b( kd s + k)
= 2
s + ( a1 + bkd ) s + a2 + bk
0.8
0.6
0.4
0.2
0
s2
0t
5
10
Closed loop system of second order, controller has two parameters. All closed loop poles can be chosen.
Solution
The controller with error feedback
Y ( s)
PC
b( kds + k)
=
= 2
R( s )
1 + PC
s + a1 s + a2 + b( kds + k)
gives
Y ( s)
PC
b( kds + k)
=
= 2
R( s )
1 + PC
s + a1 s + a2 + b( kds + k)
gives
k + kd s
Y ( s)
k
= 2
R( s )
s + ( a1 + k d ) s + a2 + k
y
P
1
Controller with two degrees of freedom
r
e
u
k
kds
1
c K. J. strm August, 2001
&
s2
b
+ a1 s + a2
ki
+ kd s
s
Closed loop transfer function from reference r to output y
Controller: C(s) = k +
Y ( s)
PC
b( kd s2 + ks + ki )
=
=
2
R( s )
1 + PC
s( s + a1 s + a2 ) + b( kd s2 + ks + ki )
s3
4. Computational Tools
b( kd s2 + ks + ki )
+ ( a1 + bkd ) s2 + ( a2 + bk) s + bki
Closed loop system of third order, controller has three parameters. All closed loop poles can be chosen arbitrarily. Since the
zeros comes from the controller they can also be chosen arbitrarily by choosing a structure with two degrees of freedom!
Matlab
Polynomials
is represented as
M=[1 2 3;4 5 6]
There are many operations for matrices. Use the command
help matrices to find out more about them.
Transfer Functions
t=0:0.1:6.5*pi;
z=0;
sys=tf(1,[1 2*z 1]);
y0=step(sys,t);
z=0.1;
sys=tf(1,[1 2*z 1]);
y1=step(sys,t);
...
plot(t,y0,r--,t,y1,b-)
axis([0 15 0 2])
xlabel(x)
ylabel(y)
Summary
s=tf([1 0],1)
P=1/(s*(s+2))
C=2+1/s
T=P*C/(1+P*C)
step(T)
tzero
pole(T)