

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















linear convex optimal control
finite horizon approximation
model predictive control
fast MPC implementations
supply chain management
Prof. S. Boyd, EE364b, Stanford University
docsity.com
minimize
∞ t
=
x
t
, u
t
subject to
u
t
x
t
t
x
t
Ax
t
Bu
t
t
x
z.
variables: state and input trajectories
x
, x
n
u
, u
m
problem data: –
dynamics and input matrices
n
×
n
n
×
m
convex stage cost function
n
m
convex state and input constraint sets
, with
initial state
z
1
docsity.com
(Bellman)
value function
z
is optimal value of control problem as a
function of initial state
z
can show
is convex
satisfies Bellman or dynamic programming equation
z
) = inf
z, w
Az
Bw
w
, Az
Bw
optimal
u
given by
u
⋆
t
argmin
w
∈U
, Ax
(
t
)+
Bw
∈X
x
t
, w
Ax
t
Bw
3
docsity.com
intepretation: term
Ax
t
Bw
properly accounts for future costs
due to current action
w
optimal input has ‘state feedback form’
u
⋆
t
φ
x
t
4
docsity.com
use finite horizon
, impose terminal constraint
x
minimize
T
−
1
τ
=
x
t
, u
t
subject to
u
t
x
t
τ
x
t
Ax
t
Bu
t
τ
x
z,
x
apply the input sequence
u
,... , u
a finite dimensional convex problem
gives suboptimal input for original optimal control problem
6
docsity.com
system with
n
states,
m
inputs;
chosen randomly
quadratic stage cost:
v, w
v
2
w
2
v
v
∞
w
w
∞
initial point:
z
optimal cost is
z
7
docsity.com
0
10
20
30
40
50
−
−0.
0
1
0
10
20
30
40
50
−0.
0
T
= 10
x
1
)t( )t(u
t
0
10
20
30
40
50
−
−0.
0
1
0
10
20
30
40
50
−0.
0
T
=
∞
t
Prof. S. Boyd, EE364b, Stanford University
9
docsity.com
at each time
t
solve the (planning) problem
minimize
t
T
τ
=
t
x
τ
, u
τ
subject to
u
τ
x
τ
τ
t,... , t
x
τ
Ax
τ
Bu
τ
τ
t,... , t
x
t
with variables
x
t
,... , x
t
u
t
,... , u
t
and data
x
t
call solution
x
t
x
t
u
t
u
t
we interpret these as
plan of action
for next
steps
we take
u
t
u
t
this gives a complicated state feedback control
u
t
φ
mpc
x
t
10 docsity.com
0
10
20
30
40
50
−
−0.
0
1
0
10
20
30
40
50
−0.
0
MPC,
T
= 10
x
1
)t( u
1
)t(
t
0
10
20
30
40
50
−
−0.
0
1
0
10
20
30
40
50
−0.
0
T
=
∞
t
Prof. S. Boyd, EE364b, Stanford University
12 docsity.com
goes by many other names,
e.g.
, dynamic matrix control, receding
horizon control, dynamic linear programming, rolling horizon planning
widely used in (some) industries, typically for systems with slowdynamics (chemical process plants, supply chain)
MPC typically works very well in practice, even with short
under some conditions, can give performance guarantees for MPC
13 docsity.com
MPC with
quadratic,
and
polyhedral
can show
φ
mpc
is piecewise affine
φ
mpc
z
j
z
g
j
z
j
1
N
is polyhedral partition of
(solution of
any
QP is PWA in righthand sides of constraints)
φ
mpc
i.e.
j
g
j
j
) can be computed explicitly, off-line
on-line controller simply evaluates
φ
mpc
x
t
(effort is dominated by determining which region
x
t
lies in)
15 docsity.com
can work well for (very) small
n
m
, and
number of regions
grows exponentially in
n
m
needs lots of storage
evaluating
φ
mpc
can be slow
simplification methods can be used to reduce the number of regions,while still getting good control
16 docsity.com
can obtain further speedup by solving planning problem approximately –
fix barrier parameter; use warm-start
(sharply) limit the total number of Newton steps
results for simple C implementation
problem size
QP size
run time (ms)
n
m
vars
constr
fast mpc
can run MPC at
kilohertz
rates
18 docsity.com
n
nodes (warehouses/buffers)
m
unidirectional links between nodes, external world
x
i
t
is amount of commodity at node
i
, in period
t
u
j
t
is amount of commodity transported along link
j
incoming and outgoing node incidence matrices:
in(out) ij
link
j
enters (exits) node
i
otherwise
dynamics:
x
t
x
t
in
u
t
out
u
t
19 docsity.com