Beruflich Dokumente
Kultur Dokumente
EE103
Stanford University
Control
Variations
Examples
I given x1 , u1 , u2 , . . . find x2 , x3 , . . .
I can be done by recursion: for t = 1, 2, . . .,
where
1 0 h 0 0 0
0 1 0 h 0 0
A=
, B=
0 0 1 − hη/m 0 h/m 0
0 0 0 1 − hη/m 0 h/m
Control
Variations
Examples
Control 7
Control
I x1 is given
I choose u1 , u2 , . . . , uT −1 to achieve some goals, e.g.,
– terminal state should have some fixed value: xT = xdes
– u1 , u2 , . . . , uT −1 should be small, say measured as
ku1 k2 + · · · + kuT −1 k2
Control 8
Minimum-energy state transfer
variables are x2 , . . . , xT , u1 , . . . , uT −1
I roughly speaking: find minimum energy inputs that steer the state
to given target state over T periods
Control 9
State transfer example
y
0
-5
0 5 10 15 20 25
Control 10
4
2
u 0 u1
u2
-2
-4
0 50 100
t
30
20
x1
x 10 x2
x3
0
x4
-10
0 50 100
Control 11
Outline
Control
Variations
Examples
Variations 12
Output tracking
should be small
I the output tracking problem is
PT PT −1
minimize t=2kyt − ytdes k2 + ρ t=1 kut k2
subject to xt+1 = Axt + But , t = 1, . . . , T − 1
yt = Cxt , t = 1, . . . , T − 1
variables are x2 , . . . , xT , u1 , . . . , uT −1 , y2 , . . . , yT
I parameter ρ > 0 trades off control ‘energy’ and tracking error
Variations 13
Output tracking example
y 3 p
p desired
2
0
0 1 2 3 4 5 6
Variations 14
50
40
30
u 20 u1
10 u2
0
-10
0 50 100
t
6
5
4
x 3 x1
2 x2
1
0
0 50 100
Variations 15
Waypoints
variables are x2 , . . . , xT , u1 , . . . , uT −1
Variations 16
Waypoints example
I vehicle model
I T = 100, x1 = (10, 10, 20, 0), xdes = 0
I K = 4, t1 = 10, t2 = 30, t3 = 40, t4 = 80
3.5 1.5 4.5 0
I w(1) = , w(2) = , w(3) = , w(4) =
3.5 4 1 0
Variations 17
Waypoints example
2
y
0
-2
-4
0 2 4 6 8
Variations 18
10
5
0
u -5
u1
u2
-10
-15
0 50 100
t
10
5 x1
x x2
0 waypoints
waypoints
-5
0 50 100
Variations 19
Outline
Control
Variations
Examples
Examples 20
Rendezvous
variables are x2 , . . . , xT , u1 , . . . , uT −1 , z2 , . . . , zT , v1 , . . . , vT −1
Examples 21
Rendezvous example
0
y
-5
-10
-15
0 5 10 15 20 25
Examples 22
Formation
Examples 23
Formation example
40
30
20
y
10
-10
-5 0 5 10 15
Examples 24
Outline
Control
Variations
Examples
variables are x2 , . . . , xT , u1 , . . . , uT −1
PT 2
t=2 kxt k is (sum square) regulation
I
minimize kF zk2
subject to Gz = d
I variable z is (x2 , . . . , xT , u1 , . . . , uT −1 )
I F , G depend on A, B, ρ; d depends (linearly) on x1
I solution is ẑ = Hd for some H
I optimal first input û1 is a linear function of x1 , i.e.,
û1 = Kx1
xt+1 = (A + BK)xt
body axis
theta
horiz
for 747, level flight, 40000 ft, 774 ft/sec, dynamics are
xt+1 = Axt + But , where
.99 .03 −.02 −.32 0.01 0.99
.01 .47 4.7 .00 −3.44 1.66
A= .02 −.06 .40 −.00 ,
B= −0.83 0.44
.01 −.04 .72 .99 −0.47 0.25
0.3
0.2
K 0.1
0.0
-0.1
-0.2
0 50 100
I e.g., K14 = −.27 is gain from pitch rate ((xt )4 ) to elevator angle
((ut )1 )
ut = 0 (’open loop’)
u 0
0 50 100
x 0
-5
0 50 100
u 0.1
0.0
-0.1
0 50 100
1
0
x -1
-2
-3
0 50 100