Beruflich Dokumente
Kultur Dokumente
A Parametric Programming
Approach
Vivek Dua
You
Y ou Only
Only Solve
Solve
Parametric Programming
Given:
a performance criterion to minimize/maximize
a vector of constraints
a vector of parameters
Obtain:
the performance criterion and the optimization
variables as a function of the parameters
the regions in the space of parameters where
these functions remain valid
Parametric Optimization (POP)
x( )
z ( ) min f ( x, )
x
s.t. g ( x, ) 0
x n
s
Critical Region
x( ) Obtain optimal
Obtain optimal solution
solution as
as
aa function
function of
of parameters
parameters
An Example Linear Model
(Edgar and Himmelblau, 1989) Current Max. Prod.
Crude Oil # 1 Gasoline 24,000 bbl/day
Kerosene 2,000 bbl/day
REFINERY
Fuel Oil 6,000 bbl/day
Crude Oil # 2 Residual
KPE
Objective: Maximize Profit
Parameters:
Gasoline Prod. Expansion (GPE)
Kerosene Prod. Expansion (KPE) GPE
Solve optimization
Solve optimization problems
problems at
at many
many
Parametric Solution
KPE KPE Region
#1
Region
GPE #2 GPE
Profit = 4.66 GPE + 87.5 KPE + 286759 -0.14 GPE + 4.21 KPE < 896.55
Crude#1 = 1.72 GPE 7.59 KPE + 26207 if 0 < GPE < 6000
Crude#2 = -0.86 GPE + 13.79 KPE + 6897 0 < KPE (REGION #1)
Profit = 7.53 GPE + 30541 -0.14 GPE + 4.21 KPE > 896.55
Crude#1 = 1.48 GPE + 24590 if 0 < GPE < 6000
Crude#2 = -0.41GPE + 9836 KPE < 500 (REGION #2)
Only 22 optimization
Only optimization problems
problems
Real Time Optimization
OPTIMIZER
Control Actions
System State
SYSTEM
Model Predictive Control (MPC)
target
past future
output
manipulated
variable
k k+1 k+p
Prediction Horizon
Model Predictive Control
Ny Nu
s.t. x ( k 1) f ( x ( k ), u ( k ))
x min
x ( k 1) x x , k 0,1,..., N
max c
u min
u ( k ) u , k 0,1,..., N
max c
Solve aa QP
Solve QP at
at each
each time
time
interval
interval
Parametric Programming
Approach
State variables Parameters
Control variables Optimization
variables
MPC Parametric Optimization problem
Control variables = F(State variables)
Multi-parametric Quadratic
Programs
Theorem 1:
z ( ) min c T x 12 x T Qx
x
x and are linear function of
s.t. Ax b F
Theorem 2:
x n
z ( ) is continuous, convex
m
and quadratic
x continuous variables ; parameters ; Lagrange multipliers
PARAMETRIC
OPTIMIZER PROFILE
CONTROL ACTIONS
SYSTEM STATE
Control Actions System State
SYSTEMS
SYSTEM
Function
Function
Example
1
[x
T T T
J ( xt ) min xt 2 Pxt 2
1
2
1
2 t k Qxt k ut k Rut k ]
ut ,ut 1
k 0
s.t.
0.7326 0.0861 0.0609
xt 1 xt ut
0.1722 0.9909 0.0064
yt 0 1.4142 xt
2 ut k 2, k 0,1
Explicit Solution
5.9220 6.8883 2
5.9220 6.8883 x 2
5.9220 6.8883 x if 1.5379 6.8291 2 1
1.5379 6.8291 2
3.4155 4.6452 2.6341
u
2 if 0.1044
0.1259
0.1215 x 0.0353 2,4
0.0922 0.0267
.
.
x2
x1
Explicit Solution
5.9220 6.8883 2
5.9220 6.8883 2
5.9220 6.8883 x if 1.5379 6.8291 x 2 1
1.5379 6.8291 2
3.4155 4.6452 2.6341
2 if 0.1044 0.1215 x 0.0353 2,4
0.1259 0.0922 0.0267
2 if 0.0679 0.0924 x 0.0524
0.1259 0.0922 0.0519 3
0.1259 0.0922 0.0519
u 2 if 0.0679 0.0924 x 0.0524 5
6.4159 4.6953 1.3577
6.4159 4.6953 x 0.6423 if 0.0275 0.1220 x 0.0357
6.4159 4.6953 2.6423 6
3.4155 4.6452 2.6341
2 if 0.1044 0.1215 x 0.0353
0.1259 0.0922 0.0267 7,8
6.4159 4.6953 1.3577
6.4159 4.6953 x 0.6423 if 0.0275 0.1220 x 0.0357 9
6.4159 4.6953 2.6423
Parametric Programming Approach
Model Predictive Control
Real Time Optimization Problem
x2
Obtain Explicit Control Law
(a) Explicit functions of measurements
(b) Critical Regions where these functions are valid
x1
State-of-the-art Performance
on a simple computational hardware
Blood Glucose Control
Exogenous
Insulin U(t) dG
P1G X (G Gb ) D (t )
Clearance dt
Plasma Effective
Insulin I(t) Insulin X(t)
dI
n( I I b ) U (t ) V1
dt
Liver Plasma
Glucose G(t)
dX
P2 X P3 I
Exercise, Meals D(t) Tissue dt
State variables: G(t), I(t), X(t)
Control variable: U(t) (Bergman et al., 1981)
Parameters: Pi, n
Parametric Control of Blood
Glucose
Meals, Exercise
Parametric
Reference
Glucose Glucose
Mechanical
Control Insulin Patient Sensor
Pump
(Off-line)
2 5
Pharmacokinetic aspect
Pharmacodynamic aspect 3 4
Surgery under Anesthesia
100 120
0.6% Isoflurane
90
0.3 g/kg/min SNP 4.5 g/kg/min DP 100
80
60
BIS
50 Isoflurane, 60
40
SNP stopped
DP stopped 40
30
20
20
10
0 0
0 100 200 300 400 500 600 700 800 900 1000
time (min)
MAP BIS
Control of Pilot Plant Reactor
Ff
Product
Controller Ca
Tr
Feed
Tj
Reactor
Cooling &
Water Cooling Jacket
Control of Catalytic Converter
(Balenovic and Backx, 2001
CATALYTIC
CONVERTE
R MODEL
Air CATALYTIC
CAR Exhaust Clean
ENGIN Gas CONVERTE Gas
Fuel E R
EMF
M
E
OC
OC: (Fractional) Oxygen
Coverage
EMF: Exhaust Mass Flowrate
OC
(kg/hr)
Concluding Remarks
Real Time Optimization
Solve optimization problem at regular time
intervals
Parametric Programming Approach
Obtain optimal solution as a set of functions of
state variables
Optimality and satisfaction of constraints are
guaranteed
Function Evaluations!
PAROS plc: www.parostech.com
References
Dua, P., Doyle III, F.J., Pistikopoulos, E.N. (2006) Model based blood glucose
control for type 1 diabetes via parametric programming, accepted for publication in
IEEE Transactions on Biomedical Engineering.
Dua, P., Dua, V., Pistikopoulos, E.N. (2005) Model based drug delivery for
anesthesia, Proceedings of the 16th IFAC World Congress, Prague, 2005.
Sakizlis, V., Kakalis, N.M.P., Dua, V., Perkins, J.D., Pistikopoulos, E.N. (2004)
Design of robust model-based controllers via parametric programming,
Automatica, 40, 189-201.
Dua, V., Bozinis, N. A., Pistikopoulos, E.N. (2002) A multiparametric programming
approach for mixed-integer and quadratic process engineering problems,
Computers & Chemical Engineering, 26, 715-733.
Pistikopoulos, E.N., Dua, V., Bozinis, N. A., Bemporad, A., Morari, M. (2002) On-
line optimization via off-line parametric optimization tools, Computers & Chemical
Engineering, 26, 175-185.
Bemporad, A., Morari, M., Dua, V., Pistikopoulos, E.N. (2002) The explicit linear
quadratic regulator for constrained systems, Automatica, 38, 3-20.