Professional Documents
Culture Documents
M11 Tier1 Chap1-3 PDF
M11 Tier1 Chap1-3 PDF
Module:
Introduction to Data Reconciliation
Tier 1:
Basic Concepts in Data
Reconciliation
Chapter 1:
General Introduction
y=x+e (1.1)
Two Components:
Random Error,
Random Error,
Gross
Gross Error,
Error, eess
y = x + es+
Gaussian
distribution
(y- )
2
1
P(y) = exp (1.2)
2 2
2
4
Gross error
0
-4 Measurements
True
-8
0 20 40 60 80 100
Time
Figure 1.3: Gross error in measurements
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
1.2 Measurement Error
CHAPTER 1
Unlike random errors, gross errors tend to be consistently
General either positive or negative. Because of this, it is sometimes
Introduction considered to be a bias in the measurement.
Estimator or Filter
Measurements Estimates
For example,
CWS: Cooling FI FI FI FI
Water Supply CWS CWR
1 3 5 6
CWR: Cooling FI FI
Water Return
2 4
Plant 2
The estimation of the true values for the flows in this network
can be solved by Date Reconciliation (DR).
Process models
Monitoring Management
Optimization Modeling
Simulation Control
Instrument maintenance Equipment analysis
Optimization
Refinery Petrochemical
Metal/Mineral Chemical
Pulp/Paper
minimizing J ( y , z ) = ( y y ) V ( y y )
T 1
(1.3)
subject to f ( y , z ) = 0
g ( y , z ) 0
Nonlinear
Linear algebraic Nonlinear
Steady-State DR
models algebraic models
Linear
Steady-State DR
Data
Reconciliation
Techniques
In Figure 1.4, all six flows are measured, and any one of them
can be estimated by mass balances using other measured
flows, so they are all redundant variables.
General
Introduction Plant 1 Plant 3 Plant 4
FI FI FI
CWS CWR
1 3 5 6
2 4
Plant 2
Question 2:
The effects of a systematic measurement bias on the
estimation of a process
(a) is more significant than that of random error.
(b) can be negligible compared with that of random error.
(c) is compatible to a random error.
(d) can be eliminated provided that it is detected.
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
1.6 Quiz
CHAPTER 1
Question 3:
General
Introduction Data reconciliation uses information from
(a) process models.
(b) process measurements.
(c) human common sense.
(d) redundancy in measurements.
Question 4:
If a process variable is measured, then
(a) it is observable.
(b) it is unobservable.
(c) it is maybe redundant.
(d) it is maybe nonredundant.
http://www.ris-resolution.com/reconciliation.shtml
http://www.thp.be/reconciliation_nl.html
http://btbjansky.com/prozessdat_e.html
http://www.simsci.com/products/datacon.stm
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
Chapter 2:
Linear Steady-State Data
Reconciliation with All Variables
Measured
F 60.8
Plant 1 Plant 3 Plant 4
2
F 35.0
FI FI FI FI y= =
3
.
CWS CWR F 68.9
4
1 3 5 6 F 38.6
5
FI FI
F 101.4
6
2 Plant 2 4
Figure 1.4
Plant 1 F1- F2 - F3 = 0
Plant 2 F2 - F4 = 0
Plant 3 F3 - F5 = 0
Plant 4 F4 + F5 - F6 = 0
and 0 is a zero-vector.
1 -1 -1 0 00 1
0 1 0 -1 0 0 2
A=
0 0 1 0 1 0 3
0 0 0 1 1 1 4
Incidence matrix: A
Variables
Measured subject to Ay = 0.
minimizing J ( y ) = ( y y )T V 1( y y ) 2 T Ay . (2.2)
where T = [1 2 3 4 ].
Ay + AVA T = 0 (2.5)
Reconciliation
with All Since E() = 0, and x is a deterministic variable, E(x) = x, thus:
Variables
E( y ) = x VA ( AVA ) Ax
T T 1
Measured
And since Ax = 0 (the true values of the flows satisfy mass
balances), VAT(AVAT)-1Ax = 0. Therefore:
E( y ) = x (2.11)
Question 2:
The reconciled data in linear steady-state DR are
(a) more consistent, but less accurate than raw measurements.
(b) more accurate, but less consistent than raw measurements.
(c) more accurate and consistent than raw measurements.
(d) less accurate and consistent than raw measurements.
Question 4:
The incidence matrix of a flow sheet
(a) is unique.
(b) is not unique.
(c) contains topological information about a flow sheet.
(d) contains the measurement information of a flow sheet.
Chapter 3:
Linear Steady-State Data
Reconciliation with Both Measured
and Unmeasured Variables
A y + A z = 0
y z
(3.1)
A = y = F
0 1 1
y 3
F
5
0 0 1
FI Plant 1 FI Plant 3
FI Plant 4
CWS CWR 1 0 0
F
1 3 5 6 1 1 0
2
A = z = F
0 0 0
4
Plant 2 z
F
2 4
1
6
Figure 3.1 0 1
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
3.1 Solutions to Estimates of Measured Variables
CHAPTER 3
Now we can rewrite the data reconciliation problem as:
Linear Steady-
State Data
Reconciliation minimizing J ( y , z ) = ( y y ) V ( y y )
T 1
(3.2)
with Both subject to A y + A z = 0
y z
Measured and
Unmeasured The solution to the data reconciliation problem (3.2) can be
Variables solved by first eliminating the unmeasured flows, z , in the
constraint equations by pre-multiplying both sides by a
projection matrix , P, such that PA = 0 . Then the data z
minimizing J ( y ) = ( y y ) V ( y y )
T 1
(3.3)
subject to PA y = 0
y
Measured and
Unmeasured The construction of the projection matrix, P, can be performed
Variables efficiently using Q-R factorization of matrix Az.
Linear Steady- 0
State Data
Reconciliation R1 is an upper triangular and nonsingular matrix with
with Both dimension (nn). 0 is a zero matrix with the dimension
Measured and (m-nn). I is an identity matrix.
Unmeasured
Variables After the Q-R factorization of matrix Az, the matrix Q can be
partitioned into two parts as:
R
A = [Q Q ]
1
0 (3.5)
z 1 2
Reconciliation 0
2 2 1 2
with Both
Measured and Since Q is orthonormal, the matrix Q has the property:
2
Unmeasured
Variables R R
Q [Q Q ] = [0 I] = 0
T 1 1
0 0
2 1 2
Thus Q2TA = 0.
P = Q2T
Q 1
Q 2
P = Q2T = [0 0 1 0]
and we have: 1 1 0
0 0 0
PA = [0 0 1 0] = [0 1 1]
0 1 1
y
0 0 1
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
3.1 Solutions to Estimates of Measured Variables
CHAPTER 3
Note that the first element in the matrix PAy is zero. This
Linear Steady- indicates that the measurement F1 will disappear in the mass
State Data balance of the constraint equations in (3.3). The measurement
Reconciliation F1 is nonredundant. This means it can only be evaluated by its
with Both measurement.
Measured and
Unmeasured
Variables Now, the data reconciliation becomes to reconcile the two
redundant measurements, F3 and F5. Rewrite the problem as:
minimizing J ( y ) = ( y y ) V ( y y )
T 1
subject to Ay = 0
F 35.0 0.2116 0
where y = = ,V= 0 , A = [1 -1] .
3
F 5
38.6 0.2025
Measured and Note that the reconciled values satisfy the mass balance at
Unmeasured plant 3. The estimates for the three measured flows by the DR
Variables algorithm are:
F 110.5
1
y = F = 36.84
3
F 36.84
5
The quantities on the right side of (3.7) are known, so now the
problem is to solve the linear equations on the left side.
Usually, the number of equations is greater than the number of
unmeasured flows. The least-squares technique can then be
applied and give the solution of the observable unmeasured
flows as:
State Data
Reconciliation For the cooling water network problem, putting the values
with Both
Measured and 1 0 0 1 1 0 73.66
1 1 0 0 0 0 110.5 0
Unmeasured 36.84 =
A = and A y =
Variables 0 0 0
z
0 1 1 y
0
36.84
0 1 1 0 0 1 36.84
z = F = 73.66
4
F 110.5
6
FI FI FI
CWS CWR
1 3 5 6
2 4
Plant 2
Measured and
Unmeasured F 2
F
Variables F
where y = , and z = . The two partitioned matrices are:
1 3
F F
6 4
F 5
1 0 1 1 0 0
0 0 1 0 1 0
A = (42) , A = (44) .
0 0 0 1 0 1
y z
0 1 0 0 1 1
0 0
1 2
with Both 2
Measured and
Unmeasured Then we have:
Variables 1 0
0 0
PA y = [0.5 0.5 0.5 0.5 ] F = F F = 0
1
0 0 F
y 1 6
0 1
z
N-r
with Both
Measured and Premultiplying by matrix QT on both sides of (3.9) gives;
Unmeasured
Variables y
Q A Q A = 0
T T
(3.10)
z
y z
Q
T
Q
1 2 T
2
Q A
T
Q A
y T
2 y
Reconciliation Q A = Q [Q Q ] 0 0 = Q Q Q Q 0 0
T 1 1 2 1 1 1 2 1 2
z 1 2
T T T
2 2 1 2 2
with Both
Measured and Because Q is an orthonormal matrix, Q Q = I , Q Q = 0 , T T
Unmeasured
1 1 1 2
Q Q = 0 , and Q Q = I . Therefore,
T T
Variables 2 1 2 2
I 0 R R R R
Q A = =
T
1 2 1 2
0 I 0 0 0 0
z
y
Q A R R
T
1 y 1 2
z =0 (3.11)
Q A 0
T
0
r
2 y
z
Nr
Reconciliation
with Both Q A y = 0 T
2 y (3.13)
Measured and Note that equation (3.13) is the reduced form of the mass
Unmeasured balances by the projection matrix, Q . T
2
Variables
We can rewrite equation (3.12) in terms of z as: r
z = R Q A y R R z
r
1
1
T
1 y
-1
1 2 N-r (3.14)
unknown (nonobservable).
Reconciliation zeroes.
1 2
with Both
Measured and
Unmeasured For the example of the cooling water network shown in Figure
Variables 3.2, the vector of the unmeasured flows is decomposed as:
F 2
z
z F r
z= = r 3
z F
N-r 4
F 5 z N-r
since F5 is nonobservable. RR
-1
1 2
is calculated as:
Unmeasured
1 2
0 0
z 1 2
Measured and
Unmeasured where is a permutation matrix having the property
Variables
T = = -1 . For this example, the permutation is:
1 0 0 0
1 1 0 0 1 0 1 0
A = 1 1 0 0 = 1 0 1 0 .
0 0 1 0
z
0 1 0 0
0 0 1 1 0 1 0 1
0 0 0 1
A y + A z = 0
y z
T
(Note: T=I)
A y + ( A )( z ) = 0
y z
T
z
Measured and
N-r
Unmeasured where the variables in the subset z are the minimum number
N-r
I am redundant.
I am redundant,
too.
FI FI FI
CWS CWR
1 3 5 6
I am
nonredundant. 2 4
Figure 3.1
Unmeasured
Variables Step 5: Get the projection matrix, P = Q2T. Proceed with the
data reconciliation using Equation (3.3). Only redundant
measured variables participate in the data reconciliation. The
nonredundant measurements are identified by the matrix
Q2TAy . Obtain the estimates for the measured variables.
Question 2:
If the rank of Az is r < N, where N is the total number of
unmeasured variables, then
(a) at least (N-r) variables are nonobservable.
(b) there are exactly (N-r) variables nonobservable.
(c) there are r variables observable.
(d) there are r variables nonobservable.
North Carolina State University, USA University of Ottawa, Canada, 2003
Basic Concepts in Data Reconciliation
3.4 Quiz
CHAPTER 3
Question 3:
Linear
Steady-State Comparing the two Equations (3.8) and (3.14) ,
Data (a) they are equivalent.
Reconciliatio (b) equation (3.8) is used only when all variables are observable.
n with Both (c) equation (3.14) can always be applied whether all variables
Measured and are observable or not.
Unmeasured (d) equation (3.14) can never be applied whether all variables are
Variables observable or not.
Question 4:
For the case where the unmeasured variables can be calculated
by Equation (3.8), show that the expected values of the estimates
are
E(z ) = ( A A ) A A x
T
z z
1 T
z y y