Computers and Chemical Engineering 24 (2000) 2367 – 2383 www.elsevier.com/locate/compchemeng
Comparison of steady state and integral dynamic data reconciliation Miguel J. Bagajewicz *, Qiyou Jiang School of Chemical Engineering and Material Science, Uni6ersity of Oklahoma, 100 East Boyd Street, T-335, Norman, OK 73019 -0628, USA Received 16 November 1999; received in revised form 27 March 2000; accepted 28 March 2000
Abstract This paper is devoted to the comparison of the performance of integral approach to dynamic data reconciliation and steady state data reconciliation. It is shown that in the absence of biases and leaks, the performance of both approaches is similar. Moreover, it is proven that once the appropriate variance is chosen, both methods are identical in the absence of accumulation terms. Finally, an analysis is made on how large the discrepancies are when there are accumulation terms. © 2000 Elsevier Science Ltd. All rights reserved. Keywords: Integral approach; Dynamic data reconciliation; Steady state data reconciliation
1. Introduction Steady state data reconciliation in process plants was first proposed more than 35 years ago (Kuehn & Davidson, 1961). This seminal paper started a new area of research in process systems engineering that later changed the paradigm of plant monitoring and production accounting. Data reconciliation has been used to adjust the measurements in a process so that they comply with conservation laws. In assuming that the system is at steady state, all process variability was lumped into one single averaged value for each stream. Thus data reconciliation using the steady state assumption uses these averaged values together with some variance matrix. The variance of the measurements comes from the intrinsic nature of the variance of each measurement, and from other covariances that arise from the fact that the instruments are attached to a single power source. In addition, it has been proposed that process variability should also be included in such variance to capture the process dynamics. Although a few papers have addressed the issue of the determination of the variance using field data, it is not known well how effective these methods are in practice. The reason why this is such an elusive issue is because averaged values include process variability. Thus, the variance of these values has contributions from the instruments and from the process unsteady state. The present commercially available technology is based on steady-state data reconciliation. This technology has been successful in improving the accuracy of production accounting. To use this software, it is common practice to use straightforward averages of several measurements of the different plant variables taken throughout a certain period of time. We know of no study investigating the effect of this averaging practice in the accuracy of the resulting estimates. Basically, the system fluctuations are lumped with instrument biases and inherent instrument white noise. Thus, under the assumption that averaged measurements can be used in the context of steady state data reconciliation, several methods have been proposed to perform the detection and elimination of biases and leaks.
* Corresponding author. Tel.: +1-405-3255811; fax: + 1-405-3255813. E-mail address:
[email protected] (M.J. Bagajewicz). 0098-1354/00/$ - see front matter © 2000 Elsevier Science Ltd. All rights reserved. PII: S0098-1354(00)00498-1
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 000 (2000) 000–000
2368
Dynamic data reconciliation models were first presented by Stanley and Mah (1977), who adapted Kalman filtering in a quasi steady state condition; Darouach and Zasadzinski (1991) used a backwards difference approximation and recursive technique to solve the constrained least squares optimization problem. Rollins and Devanathan (1993) improved on the estimation accuracy using a maximum likelihood function and proposing two estimators that are later averaged. Narasimhan and Mah (1988) proposed to apply the generalized likelihood ratio (GLR) to dynamic situations with small departures from steady state values. Kao, Tamhane and Mah (1992) studied the effect of serially correlated data on gross error detection. They proposed composite test procedures based on window averages, pre-whitening procedures and the generalized likelihood ratio. Other methods have been presented for dynamic data reconciliation: Ramamurthi, Sistu and Bequette (1993) proposed a technique based on a successively linearized horizon, Liebman, Edgar and Lasdon (1992) used orthogonal collocation. Karjala and Himmelblau (1996) rely on neural networks and Albuquerque and Biegler (1996) on a discretization of the system of DAE using Runge Kutta methods. Finally, Bagajewicz and Jiang (1997) proposed an integral method for dynamic data reconciliation. As the name describes, the method relies on the integration of the process differential equations, a polynomial representation in time and data reconciliation based on adjusting the polynomial coefficients. We know of no study where a careful comparison of steady state and dynamic data reconciliation is performed. Practitioners, especially software vendors, claim that dynamic data reconciliation is computationally too intensive and the effort implementing it in practice will not produce a meaningful improvement over the current steady state technology. In addition, the power of dynamic data reconciliation and gross error detection methods has not been thoroughly evaluated and concern exists that it might be not better than those based on steady state techniques. To clarify this issue, this paper presents a comparison between the classical steady state reconciliation and the integral dynamic data reconciliation. Dynamic data, subject to averaging and steady state reconciliation will be compared with the average of the results of dynamic data reconciliation and the averages of the true values. This paper focuses on a comparison of the integral approach to dynamic data reconciliation (Bagajewicz & Jiang, 1997, 1998) and the aforementioned steady state techniques to perform data reconciliation. The issue of the proper use of steady state data reconciliation in the context of the current practice of data averaging is explored first. Then, a review of the integral dynamic data reconciliation method is presented. A theoretical comparison between the two is presented next, followed by a discussion on variance determination. Examples are then presented.
2. Average-based steady state reconciliation Let the system of equations for material balances be represented by d6 = Af dt
(1) (2)
Cf =0
where 6 and f are the tank hold-ups and flows, respectively. Let f , i= 1, …, n be the vector of measurements of all stream flows for n instances of time and 6+ i be the vector of tank hold-up measurements for the same times. Steady state data reconciliation, as performed by several commercial packages (Datacon from Simsci and Sigmafine from OSI, among others) is based on 1. The average of the flow measurements f( + 2. A new artificial flowrate f 6i + defined as follows: + i
f 6i + =
+ 6+ i −6 0 (ti −t0)
(3)
3. The average of the artificial flowrates f( 6 + Thus the system equations are now represented by: (4)
Dy =0 where D=
A C
−I 0
n
(5)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
and y=
f f6
2369
(6)
Let R be the variance of all measurements. If all the flows are measured, then the solution to the problem is: y˜ = [I − RD T(DRD T) − 1D]y¯+
(7)
where y¯+ =
f( +
f( 6 +
.
This solution is obtained by posing a problem as a least-squares minimization, assumption that has been proposed by the seminal paper by Kuehn and Davidson (1961) and substantiated by the maximum likelihood concepts (see Mah, 1990), using Bayesian theory (Johnston & Kramer, 1995) and information theory (Crowe, 1996). When not all flows or tank hold-ups are measured, then matrix projection (Crowe, Garcı´a Campos & Hrymak, 1983) or transformation of D to a canonical form (Madron, 1992) have been proposed to identify redundant measurements. These transformations are well known and are omitted here.
3. Integral model for dynamic linear reconciliation The integral model has been presented in a recent paper (Bagajewicz & Jiang, 1997). After reducing D into its canonical form (Madron, 1992) the problem is reduced to BR
d6R = AR fR dt
(8)
CR fR = 0
(9)
The model uses redundant measurements only. For this reason, subscript R is added. The result of cooptation is that linear combinations of hold-up variations need to be used (Bagajewicz & Jiang, 1997), hence matrix BR. The following polynomial representation is proposed next: s
k fR : % a R kt
(10)
k=0 s
k+1 6R : 6R0 + % v R k + 1t
(11)
k=0
where s is the polynomial order chosen. Assuming that there are n measurements with normally distributed errors, a maximum likelihood formulation leads to a least squares problem given by: n  T −1 + + T −1 + Min % {(6Ri −6+ Ri) S V (6Ri −6 Ri) + ( fRi −f Ri) S F ( fRi − f Ri)} à i=0 à s.t. à t Ì Ã BR (6Ri − 6R0)= AR fR (j)dj (i= 0, …, n) 0 à à CR fRi =0 (i =0, …, n) Å
&
(12)
By substituting Eqs. (10) and (11) into Eq. (12), one obtains a linearly constrained quadratic problem. Thus, the procedure to obtain the solution is similar to the procedure used to obtain Eq. (7). The mathematical details are in Bagajewicz and Jiang (1997).
2370
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 000 (2000) 000–000
4. Variance in average-based steady state data reconciliation To establish a comparison between steady state and dynamic data reconciliation in the case of time varying systems the value of variance used in the case of steady state data reconciliation should be discussed. It has been claimed in several papers (Almasy & Mah, 1984; Keller, Zasadzinski & Darouach, 1992; Chen, Bandoni & Romagnoli, 1997) that the variance used in steady state data reconciliation is different than the instrument variance. One of the main reasons stated for such a difference is the departure from steady state. Thus, before any comparison is performed a new variance needs to be determined. This has been for years the major problem for practitioners, as no well-established guidelines exist to determine this variance, except for the aforementioned few papers that recommend some strategies. Let us assume first that the system is at steady state, i.e. the true values y are constant. Assume that the distribution of flow measurements is multivariate normal N(y, RF ). Then: 1. The averages follow a normal distribution N(y, RF /n). Note that the variance of the mean is smaller as the number of measurements increases. 2. As a result of (1), lim y¯ = y, because the variance of the average tends to zero. n Since the system is at steady state, hold-up measurements are ignored. The above findings lead us to the following conclusions: In a system that is at steady state and in the absence of biases and leaks, good estimates of the true values can be obtained from the averaging of a large number of data. Data reconciliation can improve the variance of these estimates and make them satisfy balance equations. An additional important conclusion is also obtained from the above conclusions: Since the error associated with an average of measurements follows a normal distribution around the true value with variance RF /n, steady state data reconciliation (assuming no outliers are present) should he used using a variance Rs =RF /n. Although the above conclusion looks straightforward, this has not been made very clear among practitioners.
5. Comparison between the integral dynamic model and the average-based steady state model based The comparison procedure is as follows. Once Eq. (10) and Eq. (11) have been substituted into Eq. (12), the problem becomes: T −1 R R R + + T −1 + Min{(J6R0 +Twv R − 6+ R ) R V (J6R0 +Tvv −6 R )+ (Taa − f R ) R F (Taa − f R )}  à s.t. Ì R R Dmv =Rma à ŠCaa R =0
where Æa R 0Ç Ãa R Ã aR= Ã 1 Ã Ã Ã Èa R s É ÆBR Ã0 Dm = Ã Ã È0
Æ vR 1 Ç Ã vR Ã vR= Ã 2 Ã Ã Ã Èv R s + 1É 0 ··· 0 Ç BR ··· 0 Ã Ã ··· Ã 0 ··· BR É
Æ6+ R0 Ç Ã6+ Ã R1 6+ Ã R =Ã Ã Ã È6+ Rn É
Æ f+ R0 Ç Ã f+ Ã R1 f+ Ã R =Ã Ã Ã f+ É Èf Rn
0 ÆAR Ã 0 AR /2 Rm = Ã Ã È0 0
··· ··· ·· · ···
0 Ç Ã 0 Ã Ã AR /s+1 É
ÆI Ç ÃI Ã J= Ã Ã ÃÃ ÈI É
(13)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
ÆCR 0 ··· 0 Ç Ã0 B ··· 0 Ã R Ca = Ã Ã ··· Ã Ã È0 0 ··· CR É
1 0 ··· ÆS − V −1 Ã 0 SV ··· 1 R− V =Ã ·· · Ã È 0 0 ···
1 0 ··· 0 Ç ÆS − F −1 Ã 0 Ã S ··· 0 F 1 R− Ã F =Ã · ·· Ã Ã 1 È 0 0 ··· S − F É
ÆI 0 ÃI t I 1 Ta = Ã Ã ÈI tnI
2371
Ç Ã Ã Ã 1 S− V É 0 0
··· 0 Ç ··· t s1I Ã Ã ·· · Ã ··· t snI É
Æ0 Ãt I Tv = Ã 1 Ã ÈtnI
··· 0 Ç ··· t sn+ 1I Ã Ã ·· Ã · ··· t sn+ 1I É
Once this problem is solved analytically (Bagajewicz & Jiang, 1997), the average of the reconciled flowrates is: f( R = Gt f
(14)
where Gt is an averaging (linear) operator. An average equivalent to the artificial flowrates can be obtained from d6R d6R =Gt dt dt
(15)
which will be compared with the result given by Eq. (7).
5.1. Comparison in the absence of accumulation terms Assume there is no tank and only flowrates are involved. The data reconciliation problem at steady state becomes: T −1 + Min( f*R −f( + R ) (n+ 1)S F ( f* R − f( R )
s.t. (16)
CR f R*=0
where f *R stands for the solution of the steady state model using the averages of the measurements. The solution is: f R* =Pf( + R
(17)
where P = [I − SFC TR. (CRSFC TR) − 1CR ]
(18)
This solution can be formalized in a similar way for a dynamic case. The problem is: n
T −1 + Â Min % ( fRi −f+ Ri) S F ( fRi −f Ri) Ã i=0 Ì s.t. Ã CR fRi =0i = 0, …, n Å
(19)
which has as solution the following: fRi = Pf+ Ri
i=0, …, n
(20)
Therefore we can conclude that the following holds f( R = Pf( + R
(21)
and f( R = f R*
(22)
Eq. (23) states that the averages of reconciled data obtained using data reconciliation are equal to the reconciled data using steady state reconciliation based on averages of dynamic measurements. We will now show that this is also true when the integral dynamic data reconciliation model is used.
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2372
5.1.1. Proof First note that under the no hold up assumption the solution of the integral dynamic data reconciliation problem is (See Appendix A) T + 1 fR = Ta [I−ZRFC Ta (CaZRFC Ta ) − 1Ca ]ZRF (R − F Ta ) f R
(23)
where Z is defined in the same appendix. However, the matrix within parenthesis can be expressed in terms of a new matrix P (Appendix B) ÆI − SFC TR(CRSFC TR) − 1Cr à I − ZRF (CaVRFC Ta ) − 1Ca = Ã Ã È ÆP à =à à È
··
Ç Ã Ã Ã I− SFC TR(CRSFC TR) − 1CR É
·
Ç Ã ·· Ã · Ã PÉ
(24)
Therefore Eq. (23) becomes: ÆI 0 ÃI I fR = à à ÈI nI ÆSF à ×à à È
··· ··· ·· · ···
0 ÇÆ P I ÃÃ ÃÃ ÃÃ n sI É È
··
ÇÆI ÃÃ0 ÃÃ Ã SF É Ã È0
·
··
Ç Æz00I Ã Ãz10I ÃÃ Ã PÉÃ È zs1I
·
z01I z11I zs2I
··· z0sI Ç ··· z1sI Ã Ã ·· Ã · ··· zssI É
··· I Ç Æ −1 S ··· nI Ã Ã F ·· Ã Ã · ·· · ÃÃ È ··· n sI É
I I I
Ç Ã+ Ãf R − 1Ã SF É
(25)
Thus
ÆP ÃP fR = Ã Ã ÈP
ÆP Ã =Ã Ã È
Æ Ãz I Ã 00 ··· 0 ÇÃ ··· P Ã Ãz10I ÃÃ ·· ÃÃ · ··· n sP É Ã Ã Ã zs0I È
0 P nP
i
i=0 s
I % z1i i=0
s
I % zsi i=0
Æ Ç s s i + + + à à z00 f R0 + % z0i f R1 + ···+ % n z0i f Rn I à i=0 i=0 Çà s s s s s à à à i + + ·· Ãà % zj 0 f+ à R0 + % % zji f R1 + ···+ % % n zji f Rn I · Ãà j=0 j=0 i=0 j=0 i=0 à PÉ s s s s à s j à j j i + + + à % n zj 0 f R0 + % n % zji f R1 + ···+ % n % n zji f Rn I à j=0 i=0 j=0 i=0 È j=0 É
% fRi =P i=0
s
I % z0i
which finally renders n
Ç Ã ··· I % n z0i à i=0 à s ··· I % n iz1i à + ÃfR i=0 à ·· · à s à i ··· I % n zsi à i=0 É
s
s
s
s
s
s
(26)
s
s
j=0
i=0
z00 + % zj 0 +···+ % n jzj 0 f+ % z0i + % % zji + ···+ % n j % zji f+ R0 + R1 + ··· j=0 s
j=0 s
s
i=0 s
s
j=0
i=0
n
j=0 i=0
+ % n iz0i + % % n izji +···+ % n j % n jzji f+ Rn i=0
j=0 i=0
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383 n
s
s
n
s
s
s
n
s
s
= P z00 + % % k jzj 0 f+ % z0i + % % k j % zji f+ % n iz0i + % % k j % n izji f+ R0 + R 1 + ···+ Rn k=1 j=0
i=0
k=1 j=0
i=0
i=0
k=1 j=0
2373
(27)
i=0
But: n
s
z00 + % % k jzj 0 = I
(28)
k=1 j=0 s
n
s
s
% z0i + % % k j % zji =I i=0
k=1 j=0
(29)
i=0
and s
n
s
s
% m iz0i + % % k j % m izji =I i=0
k=1 j=0
1 Bm5 n
(30)
i=0
as it is shown in Appendices C and D, and from which we conclude that n
+ + % fRi =P[ f+ R0 + f R1 +···+ f Rn]
(31)
i=0
Thus we have f( R = Pf( + R
(32)
and (33)
f( R = f R*
Therefore, the assertion that the averages of reconciled values from dynamic data reconciliation are the same as the reconciled values from steady state data reconciliation based on dynamic data averages is also true when the integral approach is used.
5.2. Comparison in the presence of accumulation terms When tanks with hold-ups are involved, assume one can obtain the artificial flowrate for hold-ups ( f 6 = d6/dt) and the corresponding standard deviation (Sf 6). Then one gets the data reconciliation problem at steady state, which is similar to Eqs. (16) and (17): T −1 Â min(y*R − y¯+ ¯+ R ) (n+1)S y (y* R−y R) Ã Ì s.t. Ã GRy R*=0 Å
where y=
f , f6
GR =
AR CR
n
−I , 0
(34)
Sy =
SF Sf 6
n
For a dynamic system, n
T −1 + Â min % (yRi −y+ Ri) S y (yRi −y Ri) Ã i=0 Ì s.t. Ã GRyRi = 0 i=0, …, n Å
(35)
Obviously, from analyzing Eqs. (34) and (35), one can get the same conclusion as in the case when tanks are absent, that is, y¯R = y R* only if 1. There was a direct measurement of hold-up changes, or
(36)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2374
2. there was a known relation between the variance one needs to use for the artificial flowrates and the hold-up variance. Since
&
V( R = f( 6R dt
(37)
V R* = f R* dt
(38)
&
Thus, when hold-ups are involved, one can certainly expect: f( R = f R*
(39)
V( R = V R*
(40)
In reality, however only the tank hold-ups, rather than the corresponding artificial flowrates, are directly measured. In applying steady state data reconciliation to a system with tank hold-ups, one has to estimate the standard deviations for the artificial flowrates from their hold-ups. This estimation can vary since different methods could be applied. Instead, dynamic data reconciliation has the advantage that makes use of tank hold-ups directly. Therefore, one can expect a difference between the results by applying steady state data reconciliation and dynamic data reconciliation to a system.
5.3. Variance determination We restrict the analysis to systems were one assumes that the variance–covariance matrix is diagonal.
5.3.1. True 6ariance Although more elaborate estimates of the variances RF and RV of a system that is not at steady state can be constructed, we propose to obtain them by using the following procedure: (1) Perform a fitting of the dynamic data. For the case of polynomial fitting of flowrates one obtains (Bagajewicz & Jiang, 1997) a˜ R =[U TF UF ] − 1U TF f+ R
(41)
Similarly, for tank hold-ups one has v ˜ R = [U TVUV ] − 1U TV6+ R
(42)
where ÆI ÃI UF = Ã Ã ÈI
0 t1I tnI
··· 0 Ç ··· t s1I Ã Ã ·· · Ã ··· t snI É
ÆI 0 ÃI t1I UV = Ã Ã ÈI tnI
··· 0 Ç ··· t s1+ 1I Ã Ã ·· Ã · ··· t sn+ 1%I É
(2) Construct the following sets of data
! !
s
k ˜R {pRi }= f+ Ri − % a k ti
"
k=0 s
k+1 ˜R {qRi }= 6+ Ri − 6R0 + % v k + 1t i
"
(43) (44)
k=0
(3) Estimate the variance RFi and RVi as the standard deviation of {pRi } and {qRi }, respectively.
5.3.2. Variance of a6erages One can assess the variance Rs by directly calculating the standard deviation of the time varying sample. Since data reconciliation is performed using the averages, once again, the variance Rs is obtained by dividing the variance of the sample by the number of measurements used.
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2375
5.4. Simple system example To perform an assessment on how large are the discrepancies that one obtains by using a steady state model, the system of Fig. 1 was investigated first. The measured values are shown in Figs. 2–4 and the standard deviation of the dynamic data is shown in Table 1. To enhance the effects a comparatively large variance on hold-up measurement was used. Table 2 shows the calculated standard deviations for the three streams used in averagebased steady state data reconciliation. Final results are shown in Table 3.
6. Results for a more complex system Consider the system introduced by (Bagajewicz & Jiang, 1997) and depicted in Fig. 5. The calculated variances are given in Table 4. Table 5 compares the reconciled flowrates (real and artificial) obtained performing steady state data reconciliation with the average of the results obtained using the integral dynamic data reconciliation. Deviations from true values are shown.
Fig. 1. A simple process.
Fig. 2. Measurements and true values of tank hold-up.
Fig. 3. Measurements and true values of f1.
2376
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
Fig. 4. Measurements and true values of f2. Table 1 Standard deviation used for dynamic state data reconciliation f1
f2
V
0.04
0.08
3.2
Table 2 Standard deviation used for steady state data reconciliation f1
f2
f6
0.04/ 51=0.0056
0.08/ 51= 0.0112
3.2* 2/ 50=0.64
Table 3 Comparison of steady state and dynamic state data reconciliationa
Reconciled at steady state Reconciled dynamic state True value Measured value a
fl
f2
f6
4.6679 4.6671 4.6642 4.6679
4.6595 4.6629 4.6542 4.6595
0.0084 0.0050 0.01 −0.0571
Averages of indicated values.
Fig. 5.
By simply comparing the values of the estimates of the instrument varialices (RF and RV ) to the values of the variances used in steady state data reconciliation, one finds that the relative values from one to another vary. Thus, estimates of variances of flowrates that exhibit larger flow variations are also relatively larger. The importance of picking the proper variance when using data reconciliation is thus highlighted.
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2377
7. Conclusion This paper has presented a comparison of steady, state data reconciliation and the integral dynamic data reconciliation. The theoretical and experimental results show that: When there is no tank and only flowrates are involved, the averages of reconciled values from dynamic data reconciliation are the same as the reconciled values from steady state reconciliation based on dynamic data averages, provided the right variance is used. When tank hold-ups are included in data reconciliation, the averages of reconciled flowrates/tank hold-ups from dynamic data reconciliation could theoretically be the same as the reconciled flowrates/hold-ups from steady state data reconciliation based on dynamic data averages, if a proper assessment of variance existed. Variances of measurements can be assessed using the dynamic data and can be used in steady state data reconciliation when averaged dynamic data is used. The performance comparison of steady state and dynamic data reconciliation on gross error detection will be addressed in the future papers. 8. Notation A AR BR C CR Ca D Dm f GR I J P S s t U RF RV Rm Tv 6 y y˜ Z zij
balance matrix defined by Eq. (1) matrix used to denote linear combinations of redundant flows matrix used to denote the linear combination of tank hold-ups matrix defined by Eq. (2) matrix used to denote balances of redundant flows matrix used in model (13). Defined in the text matrix defined by Eq. (5) matrix used in model (34). Defined in the text vector of flowrates matrix used to denote balances of redundant flows identity matrix matrix used in model (13). Defined in the text matrix defined by Eq. (18) variance–covariance matrix polynomial order in Eqs. (10) and (11) time variable used in Eqs. (41) and (42) variance matrix of all flow measurements variance matrix of all volume measurements matrix used in model (13). Defined in the text matrix used in model (13). Defined in the text vector of unit holdup vector of true values defined by Eq. (6) vector of estimates of y given by Eq. (7) auxiliary matrix element of matrix Z
Greek letters a R vector used in model (13). Defined in the text Gt averaging operator Table 4 Variance of flowrates and holdups Variances of flowrates
Original Estimated
Variances of Holdups
1
2
3
4
5
6
7
8
9
1
2
3
4
0.04 0.045
0.08 0.082
0.2 0.21
0.16 0.18
0.12 0.15
0.2 0.22
0.16 0.16
0.04 0.042
0.08 0.078
3.2 3.85
15.0 19.99
6.0 5.93
3.0 3.04
a
1.469 1.470 1.477
2.467 2.464 2.477
2 3.696 3.701 3.688
3 4.469 4.451 4.477
4 3.369 3.373 3.377
5
Flowrates 10–13 correspond to the artificial flowrates corresponding to tanks 1–3.
Reconciled at steady state Reconciled at dynamic state True value
1
Average flowerets (including real and artificial)a
Table 5 Comparison of steady state and dynamic state data reconciliation
5.136 5.150 5.177
6 4.373 4.388 4.377
7
1.431 1.432 1.431
8
1.938 1.941 1.965
9
4.139 4.164 4.183
10
3.144 3.158 3.173
11
−5.910 −5.909 −5.973
12
−3.273 −3.316 −3.283
13
2378 M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2379
v R vector used in model (13). Defined in the text Subscripts and superscripts F flowrate-related quantities R redundant quantities 6 hold-up-related quantities + measured quantities * estimates obtained using steady state models
Acknowledgements Partial financial support from KBC Advanced Technologies for Q. Jiang is acknowledged.
Appendix A In this appendix, Eq. (23) is derived. In the absence of accumulation terms, Eq. (12) becomes: T R −1 + Â min{(Taa R −f+ R ) R f (Taa −f R )} Ã Ì s.t. Ã Ca a R =0 Å
(A1)
The substitution of Eq. (10) renders R 7i −1 min{(Taa R −f+ R )+R f (Taa −fr )}
Caa R = 0
(A2)
The solution to this problem is analytical and is given by: a R =[I −QC Ta (CaQC Ta ) − 1Ca ]( −1/2Qw)
(A3)
1 However, Q, the inverse of (T Ta , R − F , Ta ) can be performed analytically. Then, according to Bagajewicz and Jiang (1997), −1 1 Q =(T Ta R − = ZRF F Ta )
(A4)
where
ÆS F Ã0 RF = Ã Ã È0
0 SF 0
··· ··· ·· · ···
0Ç 0Ã Ã Ã SF É
Æ Ã(n +1)I à à n ÃI % j Z = à i=1 à à à n s % j à I i= 1 È
n
I % j i=1 n
I % j2 i=1
n
I % j s+1 i=1
Ç−1 n I % js à à i=1 à n ··· I % j s + 1 à à i=1 à ·· · à n 2s à ··· I % j à i=1 É ···
Therefore T + 1 a R[I −ZRFC Ta (CaZRFC Ta ) − 1Ca ]ZRF (R − F Ta ) f R
Since fR =Taa R, we have immediately Eq. (23).
(A5)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2380
Appendix B In this appendix, we derive Eq. (24). Since
ÆSF Ã RFC = Ã Ã È T a
Ç Ã ·· Ã · Ã SF É
ÆC TR Ã Ã Ã È
··
·
Ç ÆSFC TR Ã Ã Ã= Ã Ã TÃ C RÉ È
··
·
Ç Ã Ã TÃ SFC R É
(B1)
To simplify notation, we assume that
Æz00I Ãz10I Z= Ã Ã È zs0I
z01I z11I zs1I
··· z0sI Ç ··· z1sI Ã Ã ·· Ã · ··· zssI É
(B2)
where zij can be easily obtained by inverting the following matrix:
Æ Ã(n + 1) à à n à % j ZR = à i = 1 à à à n s % j à i= 1 È
n
% j
s
i=1 n
% j2
i=1
n
% j s+1 i=1
Ç ··· % j à à i=1 à n ··· % j s + 1 à à i=1 à ·· · à n 2s à ··· % j à i=1 É n
(B3)
Therefore Æz00I Ãz I ZRFC Ta = Ã 10 Ã È zs0I
z01I z11I zs0I
··· z0sI Ç Æ S CT ··· z1sI Ã Ã F R ÃÃ ·· ÃÃ · ··· zssI É È
··
·
Ç Ã Ã Ã SFC TR É
(B4)
which, after operating, results in:
Æz00SFC TR Ãz10SFC TR ZRFC Ta = Ã Ã È zs0SFC TR
z01SFC TR z11SFC TR zs1SFC TR
··· z0sSFC TR Ç ··· z1sSFC TR Ã Ã ·· · Ã ··· zssSFC TR É
Pre-multiplying by Ca, one obtains:
(B5)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
ÆCRz00SFC TR ÃC z S C T CaZRFC Ta = Ã R 10 F R Ã È CRzs0SFC TR
CRz01SFC TR CRz11SFC TR CRzs1SFC TR
ÆCRSFC TR Ã =Ã Ã È
z Ç Æ 00I Ã Ãz10I ·· ÃÃ · TÃ Ã CRSFC R É È zs0I
ÆCRSFC TR Ã =Ã Ã È
··
Ç Ã ÃZ · TÃ CRSFC R É
2381
 ··· CRz0sSFC TR Ç Ã ··· CRz1sSFC TR à à Ãà ·· · Ãà ··· CRzssSFC TR É Ã Ã z01I ··· z0sI Ç Ã Ã z11I ··· z1sI Ã Ì Ã ·· à à · zs1I ··· zssI É Ã Ã Ã Ã Ã Ã Ã Å
(B6)
Inverting:
T −1 a
(CaZRFC )
=Z
−1
ÆCRSFC TR Ã Ã Ã È
··
·
Ç−1 Æ(CRSFC TR) − 1 Ã Ã −1 ·· Ã =Z Ã · Ã Ã CRSFC TR É È
Ç Ã Ã T − 1Ã (CRSFC R) É
(B7)
Similar manipulations lead to the following:
Ç Æ(C S C T ) − 1 Ã − 1Ã R F R ·· ÃZ Ã · Ã TÃ C RÉ È
ÆC TR Ã C Ta (CaZRFC Ta ) − 1Ca = Ã Ã È
··
ÆC TR(CRSFC TR) − 1CR Ã =Ã Ã È
Ç Â Ã − 1Ã ÃZ Ì Ã Ã C TR(CRSFC TR) − 1CR É Å
··
·
·
Ç ÆCR ÃÃ ÃÃ ÃÃ (CRSFC TR) − 1 É È
··
·
Ç Ã Ã Ã CR É
(B8)
Then, ÆSFC TR(CRSFC TR) − 1CR Ã ZRFC Ta (CaZRFC Ta ) − 1Ca = Ã Ã È
··
·
Ç Ã Ã Ã T T −1 SFC R(CRSFC R) CR É
(B9)
and finally,
T a
I − ZRFC (CaZRFC )
ÆP Ã =Ã Ã È
··
Ç Ã Ã · Ã pÉ
ÆI − SFC TR(CRSFC TR) − 1CR Ã Ca = Ã Ã È
T −1 a
··
·
Ç Ã Ã Ã T T −1 I− SFC R(CRSFC R) CR É
(B10)
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2382
Appendix C Here we prove that Eq. (28) holds. Since ZZ − 1 =I
(C1)
Then n
n
j=1
j=1
(n + 1)z00 + % jz10 +···+ % j szs0 =I
(C2)
This can be rewritten as s
n
n
s
(n+ 1)z00 + % % j kzk0 =(n +1)z00 + % % j kzk0
k=1 j=1 n
s
j=1 k=1
= (n+1)z00 + % % j kzk0 −nz00 j=1 k=0 n
s
= z00 + % % j kzk0 =I
(C3)
j=1 k=0
Appendix D Here we prove that Eqs. (29) and (30) hold. Again from Eq. (C1) the following equations hold: s
n
(n+ 1)z00 + % % j kz0k =I
(D1)
k=1 j=1 s
n
(n+1)zi0 + % % j kzik =0
i= 1, …, s
(D2)
k=1 j=1
Add up all equations in Eqs. (D1) and (D2) to obtain: s
s
n
s
s
i=0
i=0
n
s
s
s
(n+ 1) % zi0 + % % j k % zik =(n +1) % zi0 + % % j k % % zik i=0 s
k=1 j=1 n
s
j=1 k=1
i=0 i=0
s
= % zi0 + % % j k % zik =I i=0
j=1 k=0
(D3)
i=0
Multiply by m i both sides of Eq. (D2) s
n
(n+1)m izi0 + % % j km izik =0
i= 1, …, s;
m= 2, …, n
(D4)
k=1 j=1
Add up all equations from Eqs. (D2), (D3) and (D4) to obtain: s
n
s
s
% m izi0 + % % j k % m izik =I i=0
j=0 k=0
(D5)
i=0
Q.E.D.
References Almasy, G. A., & Mah, R. S. H. (1984). Estimation of measurement error variances from process data. Industrial & Engineering Chemistry, Process Design & De6elopment, 23, 779. Albuquerque, J. S., & Biegler, L. T. (1996). Data reconciliation and gross-error detection for dynamic systems. American Institute of Chemical Engineering Journal, 42, 2841. Bagajewicz, M., & Jiang, Q. (1997). Integral approach to plant linear dynamic reconciliation. American Institute of Chemical Engineering Journal, 43, 2546. .
M.J. Bagajewicz, Q. Jiang / Computers and Chemical Engineering 24 (2000) 2367–2383
2383
Bagajewicz, M., & Jiang, Q. (1998). Gross error modeling and detection in plant linear dynamic reconciliation. Computers & Chemical Engineering (submitted). Chen, J., Bandoni, A., & Romagnoli, J. A. (1997). Robust estimation of measurement error variance/covariance from process sampling data. Computers & Chemical Engineering, 21 (6), 593–600. Crowe, C. M. (1996). Formulation of linear data reconciliation using information theory. Computers & Chemical Engineering, 51 (12), 3359–3366. Crowe, C. M., Garcı´a Campos, Y. A., & Hrymak, A. (1983). Reconciliation of process flow rates by matrix projection. Part 1: linear case. American Institute of Chemical Engineering Journal, 29, 881 – 888. Darouach, M., & Zasadzinski, M. (1991). Data reconciliation in generalized linear dynamic systems. American Institute of Chemical Engineering Journal, 37, 193. Johnston, L. P. M., & Kramer, M. A. (1995). Maximum likelihood data rectification. Steady, state systems. American Institute of Chemical Engineering Journal, 41, 11. Kao, C. S., Tamhane, A. C., & Mah, R. S. H. (1992). Gross error detection in serially correlated process data. 2. Dynamic systems. Industrial Engineering & Chemical Research, 31, 254. Karjala, T. W., & Himmelblau, D. M. (1996). Dynamic rectification of data via recurrent neural nets and the extended Kalman filter. American Institute of Chemical Engineering Journal, 42, 2225. Keller, J. Y., Zasadzinski, M., & Darouach, M. (1992). Analytical estimator of measurement error variances in data reconciliation. Computers & Chemical Engineering, 16, 185. Kuehn, D. R., & Davidson, H. (1961). Computer control. II. Mathematics of control. Chemical Engineering Programming, 57, 44. Liebman, M. L, Edgar, T. F., & Lasdon, L. S. (1992). Efficient data reconciliation and estimation for dynamic process using nonlinear programming techniques. CES, 16, 963. Madron, F. (1992). Process plant performance. Measurement and data processing for optimization and retrofits. Chichester, UK: Ellis Horwood. Mah, R. S. H. (1990). Chemical process structures and information flows. London: Butterworths. Narasimhan, S., & Mah, R. S. H. (1988). Generalized likelihood ratios for gross error identification in dynamic processes. American Institute of Chemical Engineering Journal, 34, 1321. Ramamurthi, Y., Sistu, P. B., & Bequette, B. W. (1993). Control-relevant dynamic data reconciliation and parameter estimation. Computers & Chemical Engineering, 17, 41. Rollins, D. K., & Devanathan, S. (1993). Unbiased estimation in dynamic data reconciliation. American Institute of Chemical Engineering Journal, 39, 1330. Stanley, G. M., & Mah, R. S. H. (1977). Estimation of flows and temperatures in process networks. American Institute of Chemical Engineering Journal, 23, 642.
.