Академический Документы
Профессиональный Документы
Культура Документы
Module:
Introduction to Data Reconciliation
Program for North American Mobility in Higher Education
Tier 1:
Basic Concepts in Data
Reconciliation
Chapter 1:
General Introduction
(1.1)
Two Components:
Random
Random Error,
Error,
Gross
Gross Error,
Error, eess
y = x + es+
Figure 1.1: Components of measurement errors
North Carolina State University, USA
1
(y- )
P(y) =
exp
2
2
2
(1.2)
Gross error
0
-4
Measurements
True
-8
0
20
40
Time
60
80
100
Measurements
Data bus
North Carolina State University, USA
Estimator or Filter
General
Introduction
Estimates
Data bus
University of Ottawa, Canada, 2003
CWS: Cooling
Water Supply
Plant 3
FI
FI
CWS
Plant 4
FI
1
CWR: Cooling
Water Return
FI
2
FI
6
CWR
FI
Plant 2
General
Introduction
Standard
Deviation,
(kt/h)
110.5
0.82
60.8
0.53
35.0
0.46
68.9
0.71
38.6
0.45
101.4
1.20
Stream
No.
Plant 1
FI
Plant 3
FI
CWS
Plant 4
FI
3
FI
2
FI
6
FI
Plant 2
Figure 1.4
North Carolina State University, USA
CWR
Process models
Measurements
Reconciled data
Data
Data Reconciliation
Reconciliation
Algorithm
Algorithm
Management
Optimization
Modeling
Simulation
Control
Instrument maintenance
Equipment analysis
Data
Reconciliation
General
Introduction
Data
Base
Plant
DCS
Simulation
Set
Points
Optimization
Petrochemical
Metal/Mineral
Chemical
Pulp/Paper
Commercial software specializing in data reconciliation is
available. A demo-version of one commercial software can be
downloaded at: http://www.simsci.com/products/datacon.stm.
(1.3)
subject to f ( y , z ) = 0
g ( y , z ) 0
where
y is an M1 vector of raw measurements for M process
variables,
y is an M1 vector of estimates (reconciled values) for the
M process variables,
z is an N1 vector of estimates for unmeasured process
variables, z,
V is an M M covariance matrix of the measurements,
f is a C1 vector describing the functional form of model
equality constraints,
g is a D1 vector describing the functional form of model
inequality constraints which include simple upper and lower
bounds.
Linear differential
or difference
models
Linear
Dynamic DR
Dynamic DR
Models
Steady state
Nonlinear
Dynamic DR
Steady-State DR
Linear algebraic
models
Nonlinear
Steady-State DR
Nonlinear
algebraic models
Linear
Steady-State DR
Figure 1.6: Subproblems in data reconciliation
North Carolina State University, USA
Process variables
Observable
Unmeasured variables
Nonobservable
Figure 1.7: Classification of process variables
North Carolina State University, USA
Plant 1
Plant 3
FI
FI
CWS
FI
3
Plant 4
Plant 2
CWR
Question 1:
A measurement
(a) may contain random error and/or gross error.
(b) is always perfect.
(c) is a random variable.
(d) is a deterministic variable.
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.
Question 3:
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.
Chapter 2:
Linear Steady-State Data
Reconciliation with All Variables
Measured
F 35.0
y= =
.
F 68.9
F 38.6
F 101.4
1
Plant 1
FI
Plant 3
FI
CWS
Plant 4
FI
3
FI
5
FI
CWR
FI
Plant 2
Figure 1.4
North Carolina State University, USA
Table 1.1
Stream
No.
1
Measured
0
0
0.2116
0
0
0
V=
.
0
0
0.5041
0
0
0
Raw
Standard
0
0
0
0
0.2025 0
Measurement
Deviation,
(kt/h)
(kt/h)
0
0
0
0
1.44
0
110.5
0.82
60.8
0.53
35.0
0.46
68.9
0.71
38.6
0.45
101.4
1.20
F1- F2 - F3 = 0
Plant 2
F2 - F4 = 0
Plant 3
F3 - F5 = 0
Plant 4
F4 + F5 - F6 = 0
y
=
0 0 1 0 1 0
F
0
0
0
1
1
1
F5
F6
and 0 is a zero-vector.
6:
Node
1 -1 -1
0 1 0
A=
0 0 1
0 0 0
0
-1 0 0
0 1 0
1 1 1
0
1
2
3
4
Incidence matrix: A
North Carolina State University, USA
(2.2)
3 4 ].
(2.3)
J
= Ay = 0
(2.5)
University of Ottawa, Canada, 2003
(2.7)
Standard
Deviation,
(kt/h)
Reconciled
Flow
(kt/h)
Adjustment
110.5
0.82
103.24
-7.26
60.8
0.53
65.42
4.62
35.0
0.46
37.82
2.82
68.9
0.71
65.42
-3.48
38.6
0.45
37.82
-0.78
101.4
1.20
103.24
1.84
Stream No.
(kt/h)
(2.9)
(2.10)
(2.11)
y = Wy
(2.13)
(2.14)
Measured
0.1365
Symm.
-0.0251 0.1114
0.0890 0.0693
0.1753
Stream No.
Raw
measurement
(kt/h)
Standard
Deviation,
(kt/h)
Reconciled
Flow
(kt/h)
Standard
Deviation,
(kt/h)
110.5
0.82
103.24
0.42
60.8
0.53
65.42
0.37
35.0
0.46
37.82
0.30
68.9
0.71
65.42
0.37
38.6
0.45
37.82
0.30
101.4
1.20
103.34
0.42
Question 1:
For an nn incidence matrix of a flow sheet, rank(A) must be
(a) a full rank of rank n.
(b) less than n.
(c) either rank n, or less than n.
(d) greater than n.
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 3:
The reconciled data in linear steady-state DR
(a) are biased.
(b) are unbiased.
(c) have a smaller variance than the raw measurements.
(d) have a larger variance than the 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
Plant 3
FI
FI
CWS
FI
3
Plant 4
Plant 2
CWR
(3.1)
University of Ottawa, Canada, 2003
1 1 0
0 0 0
A =
0 1 1
0
0
1
F
y = F
F
1 0
1 1
A =
0 0
0 1
F
z = F
F
FI Plant 1 FI
CWS
Plant 3
FI
5
Plant 4
Plant 2
Figure 3.1
CWR
0
0
(3.2)
minimizing
subject to
J ( y ) = ( y y ) V ( y y )
T
(3.3)
PA y = 0
y
Note: Orthonormal
means QTQ = I
QTQ
R
R
=
= I, and
0
1
R
Q ]
0
1
(3.5)
T
2
Thus Q2TA = 0.
It is clear that the matrix Q2T is the desired projection matrix,
P = Q2T
North Carolina State University, USA
State Data
Q=
0
-0.577
0
0
1
0
0
Reconciliation
with Both
0
0
0.816 0.577 0
0
0
Measured and
Unmeasured
Thus, the matrices Q and R are decomposed as:
Variables
0.707 -0.408 0.577
0.707 -0.408 0.577
Q=
0
0
0
0.816 0.577
0
Q
0
0
0
Q
0
1.414 -0.707
0
1.225 -0.816
R= 0
0
-0.577
0
0
0
1 1 0
0 0 0
= [0 1 1]
PA = [0 0 1 0]
0 1 1
0 0 1
y
Note that the first element in the matrix PAy is zero. This
indicates that the measurement F1 will disappear in the mass
balance of the constraint equations in (3.3). The measurement
F1 is nonredundant. This means it can only be evaluated by its
measurement.
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 )
subject to Ay = 0
T
0
0.2116
F 35.0
where y = =
, A = [1 -1] .
,V= 0
0.2025
F
38.6
Reconciliation
F 36.84
with Both
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:
3
F 110.5
y = F = 36.84
F 36.84
1
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:
(3.8)
Linear SteadyState Data
Reconciliation For the cooling water network problem, putting the values
with Both
1 1 0
73.66
1 0 0
Measured and
110.5
0 0 0
0
1 1 0
Unmeasured
36.84 =
and A y =
=
A
Variables
0 1 1
0
0 0 0
36.84
0
0
1
36.84
0 1 1
z
F 73.66
z = F = 73.66
F 110.5
2
Raw Measurement
(kt/h)
Estimated Flow
(kt/h)
110.5
110.5
Unmeasured
73.66
35.0
36.84
Unmeasured
73.66
38.6
36.84
Unmeasured
110.5
FI
FI
CWR
CWS
1
North Carolina State University, USA
FI
Figure 3.1
6
4
Plant 2
F
F
F
where y = , and z = . The two partitioned matrices are:
F
F
F
2
1 0
1 1 0 0
0 0
1 0 1 0
(42) , A =
(44) .
A =
0 0
0 1 0 1
0
1
0
0
1
1
Q=
0.8165 -0.2887 0.5
0
0
0.8660 0.5
0
0
1.4142 0.7071 -0.7071
0
1.2247 0.4082 -0.8165
R=
0
1.1547 1.1547
0
0
0
0
0
A = QR =
0.8165 -0.2887 0.5 0
0
1.1547 1.1547
0
0
0.8660 0.5 0
0
0
0
0
R R
= [Q Q ]
0 0
1
0 1
T
2
N-r
= 0
(3.10)
z
y
Since Q = [Q
T
Q
= , the term QTAy in (3.10)
Q
T
T
2
Q A
can be written as: Q A =
Q
A
with Both
Measured and Because Q is an orthonormal matrix, Q Q = I , Q Q = 0 ,
Unmeasured
Q Q = 0 , and Q Q = I . Therefore,
Variables
I 0 R R R R
Q A =
=
0 I 0 0 0 0
T
T
2
y
R
z
0
z
2
Nr
=0
(3.11)
N-r
T
2
T
2
z = R Q A y R R z
r
-1
(3.14)
N-r
-1
N-r
N-r
since F5 is nonobservable.
North Carolina State University, USA
RR
-1
N-r
is calculated as:
University of Ottawa, Canada, 2003
0
1.1547
0
1
0.8165 = 1
1.1547 1
-1
FI
CWR
CWS
1
North Carolina State University, USA
Figure 3.2
6
4
Variables
0 0 1 1
z
0
0
1 -1
0
1
0
=
[
]
with Both
0 0
Measured and
Unmeasured
where is a permutation matrix having the property
Variables
T = = -1 . For this example, the permutation is:
1
1
1
0
0
0
A = 1 1 0 0
0
0 0 1 1
0
z
0
0
1
0
0
1
0
0
0
1 0 1 0
0
= 1 0 1 0 .
0
0 1 0 1
1
(Note: T=I)
A y + ( A )( z ) = 0
T
N-r
N-r
I am redundant,
too.
FI
FI
CWR
CWS
1
I am
nonredundant.
North Carolina State University, USA
FI
Figure 3.1
6
4
=
[
]
0 0 .
Measured and
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.
1
-1
Question 1:
If Az has a full rank, then the unmeasured variables
(a) are all observable.
(b) are all nonobservable.
(c) have some that are observable and some that are not.
(d) and measured variables are redundant.
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.
Question 3:
Comparing the two Equations (3.8) and (3.14) ,
(a) they are equivalent.
(b) equation (3.8) is used only when all variables are observable.
(c) equation (3.14) can always be applied whether all variables
are observable or not.
(d) equation (3.14) can never be applied whether all variables are
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
1