MATLAB Reconciliation
MATLAB Reconciliation
Felipe Aristizbal
Montral, Qubec
July 31, 2013
Objectives
We will cover:
The basic fundamentals of data reconciliation.
Linear and Bilinear systems.
MATLAB implementation.
Problem Description
FI FI FI FI
101 103 105 106
1 3 5 6
Minimize: y ) =(y y )T V 1 (y y )
J(
Subject to: A
y =0
Where:
y : m by 1 vector of raw measurements.
y : m by 1 vector of estimates.
V : m by m covariance matrix.
A: Incidence matrix - mass balances.
Analytical Solution: Linear Data Reconciliation
Using Lagrange multipliers ....
... the estimates, y , can be calculated from:
W = I VAT (AVAT )1 A
y = Wy
y ) = WVW T
Cov(
Procedure (MATLAB)
1 Create y from measurements
2 Obtain V from measurement standard deviations (V = diag(i2 ))
3 Use mass balances to obtain A
4 Calculate W , y
5 Extra: what are estimates standard deviations,
i ?
p
i = diag(Cov(
y ))
Example: Linear DR
1 3 5 6
2 4
F2 F2
x2,1 f2,1
x2,2 f2,2
Transform to
F1 component flow F1
x1,1 F3 fij = Fi xij f1,1 F3
x1,2 x3,1 f1,2 f3,1
x3,2 f3,2