Professional Documents
Culture Documents
IPQSData
IPQSData
Initial condition of
x t0 x 0 x t0
state variables
The vector of differential
f:
t [t0 , t f ] equations
g: The vector of algebraic
equations
2
Problem definition
NK :
Number of
measurement points
3
Large-scale NLP problem
Collocation method:
6
Large-scale NLP problem
NLP
NS
Upper stage
min F
θl
F
j 1
j
NS
F Fj
j 1
s.t .
F NS Fj
θ L θl θU
θl θ j 1 θ
min F1 min FNS
u1,l
u NS ,l
s.t. s.t.
h1 x
1,l ,i , u1,l , θl 0 h NS x NS ,l ,i , u NS ,l , θl 0
l 1, , NL l 1, , NL
i 1, , NC i 1, , NC
dx 1 u NS ,l dx NS
u1,l
du1 du NS
MOD SIM 1
Lower stage
MOD SIM NS
g 1,l x 1,l ,i , u1,l , θl 0 g NS ,l x NS ,l ,i , u NS ,l , θl 0
l 1, , NL l 1, , NL
i 1, , NC i 1, , NC
8
Quasi-squential parameter estimation
approach
Upper stage:
NS NS NL NC
min Fj y j .l ,i θl y j ,l ,i Vy y j .l ,i θl y j ,l ,i u j ,l θl u j ,l Vu-1 u j ,l θl u Mj ,l
T M T
M -1 M
j 1 l 1 i 1
θl
j 1
s.t
θ L θl θU (5)
9
Quasi-sequential parameter estimation
approach
NL NC
min Fj y j.l ,i y j ,l ,i Vy y j .l ,i y j ,l ,i u j ,l u j ,l Vu-1 u j ,l u Mj ,l
T M T
M -1 M
l 1 i 1
u j ,l , y j ,l ,i , x j ,l ,i
s.t.
g j x j ,l ,i , y j ,l ,i , u j ,l ,i , l 0 6
h j x j , l , i , y j , l ,i , u j , l ,i , l 0
Controls
11
Quasi-Sequential approaches
12
Quasi-Sequential approaches
l 1 i 1
u j ,l
Using a SQP solver to solve above reduced optimization problem, the following QP
sub-problem will be solved at each iteration k.
T
d
x
k
1 d
x
k
d
x
k
k k k k k k k k k
min x Fj du j ,l u Fj du j ,l du j ,l du j ,l B du j ,l du j ,l
u j ,l
du j 2 du j du j
k
s.t. x h j ,l ,i du kj ,l uh kj ,l ,i du lk h kj ,l ,i 0
k dx
du j
10
i 1, , NC l 1, , NL
13
Quasi-Sequential approaches
T
dx
Calculation of sensitivity matrix :
du
The model equations in the k iteration of NLP and the in the each
element can be described as :
14
Sensitivity matrix for Quasi-sequential method
dF NS F j u j Fj y j u j y j
14
d j 1 u j y j u j
Rearrange it
dF NS Fj F j y j u j F j y j
15
d j 1 u j y j u j x j
16
Quasi-Sequential parameter estimation
approach
According to optimality condition of Sub NLP (KKT condition),
we have
F j Fj y j
j u ,
*
j 0 16
u j y j u j
du j
Therefore, the value of are not required, and computation
dθ
expense will be significantly reduced
17
Quasi-Sequential approaches
T
dx
Calculation of sensitivity matrix :
dθ
x j ,l x j ,l
D j , l C j ,l
1
D j ,l E j , l
1
l x j ,l ,0
18
Discretization with collocation on finite elements
r1
r r
2,1 2
dx
T
20
dθ r r
j l ,1 l
ri , j
rNL ,1 rNL ,2 rNL ,l rNL
where
x l x i l 1, , NL
rl ri , j
θl θ j i, j 1, , NL, i j
19
Flowsheet of Quasi-sequential estimation
approach
20
Parameter estimation of a CSTR
r
Cooling Jacket
T c
C
A h
T Reaction
A B
Product
F
dh F0 F
dt πr 2
dc F0 (c0 c)
2
k1.c (***)
dt πr h
dT F0 (T0 T ) H 2.U
2
k1.c Tc T
dt πr h ρC p rρC p
• The controlled (state) variables are h, c and T.
• The manipulate (control) variables are F and Tc;
• F0 and c0 are considered as disturbances.
Parameter estimation of a CSTR
s.t.
model equation (* * *)
0.5 h 2.5 m ; 0.87 c 1.0 mol / l ; 290 T 350 K
85 F 115 l / min ; 290 Tc 310 K
θ L θl θU
Where : [1 , 2 ]T
u [ F , Tc ]T
x [T ]T
y [h, c]T
NS 5; NL 50
Numerical Experiment
1.6
1.4
1.2
0.8
0 5 10 15 20 25 30 35 40 45 50
Time (minute)
0.9
0.85
0 5 10 15 20 25 30 35 40 45 50
Time (minute)
324
Reactor Temperature T (K)
322
320
318
316
314
estimates by Optimizer
312
simulations with true parameters
simulations with estimate parameters
310
0 5 10 15 20 25 30 35 40 45 50
Time (minute)
102
101
100
99
0 5 10 15 20 25 30 35 40 45 50
Time (minute)
300.08
300.06
300.04
300.02
300
299.98
299.96
299.94
0 5 10 15 20 25 30 35 40 45 50
Time (minute)
• Further study:
• Compare Quasi-sequential Interior point method with
simultaneous method.
• Study the case of time dependent parameters estimation.
Thank you
for your attention!