Crowe 1986
Crowe 1986
Crowe 1986
by Matrix Projection
Part II: The Nonlinear Case
Flow rate and concentration measurements in a steady state process are recon- C. M. CROWE
ciled by weighted least squares so that the conservation laws and other constraints
are obeyed. Two projection matrices are constructed in turn, in order to decom- Department of Chemical Engineering
pose the problem into three subproblems to be solved in sequence. The first McMaster University
matrix eliminates all unmeasured component flow rates and concentrations from Hamilton, Ontario, Canada L8S 4L7
the equations; the second then removes the unmeasured total flow rates. The
adjustments to component flow rates are iteratively determined, starting with
guessed values of unmeasured total flow rates.
Chi-squareand normal test statistics are derived by linearizing the equations, to
allow detection of gross errors in imbalances and adjustments of measurements.
SCOPE
The cornerstone for monitoringplant performance is a set of structive method of finding the RBS by a projection matrix that
steady state balances for component and total flow rates. Such effectively blanked out all unmeasured flows in the linear case.
flow rates are normally obtained from measurements of total The approach here is to extend the technique of Crowe et al.
flow rates and of concentrations, which are subject to random to the nonlinear case by constructing two successive projection
and sometimes gross errors, and thus in general violate conser- matrices. The first eliminates all unmeasured component flow
vation laws. The measurements should be reconciled, in some rates and concentrations; the second then eliminates the un-
“best” sense, to obey those laws and any other constraints that measured total flow rates from the balance equations. The
are required to be enforced. original problem is thus divided into three sequentially solved
The linear case, where it is assumed that the total flow rate is subproblems. Guesses of the unmeasured total flow rates are
measured in any stream in which a concentration is measured, used to solve for the adjustments to component flow rates.
was discussed by Crowe et al., (1983). In this paper, that as- These guesses are iteratively updated in the second subprob-
sumption is omitted so that the balance equations contain lem until convergence is achieved. Then those unmeasured
products of unknowns and thus are nonlinear (actually bilin- component flow rates that are determinable are found in the
ear). third subproblem.
Conflict with conservation laws can only arise in sections of Gross errors in the measurements can arise from instrument
the process where measurements have been made in all malfunction or miscalibration, sampling errors, and unsus-
streams in a balance equation. Thus previous work by Vacla- pected leaks or departures from steady state. Measurements
vek (1969), Mah et al. (1976), and Romagnoli and Stephano- that are in gross error should be detected before the data are
poulos (198 1) was directed to devising path-tracing or combin- reconciled so that they can be corrected or eliminated. Since
atorial algorithms for efficiently finding a maximal set of the equations are bilinear, the statistical analysis requires local
sections of the process with redundant measurements -the linearization about the measurement values, in order to find
reduced balance scheme (RBS). Unfortunately, such searches test criteria for the imbalances in component flow rates and for
must be done separately for each component, or each element the adjustments to particular measured values.
in the case of reactions. Crowe et al. (1983) proposed a con-
LTE = p (35)
where 1 is a vector of ones. Then
M = (1=*)/p (36)
and c are found from Eq. 33.
(d) In the absence of any of the above conditions, we can
minimize the weighted sum of squares of the adjustments as
follows:
Min
M
J = [(E - E)%;'(E - i') + (&f- ~l?)~/a2,] (37)
Figure 1. Flow diagram of Vaclavek's example s( j ) : Stream Note that J is a function only of M because c can be eliminated
by Eq. 33.
s(Category j ) .
If we set dJ/dM = 0, we obtain
Then derivatives are taken with respect to a and (NS) and set - M M 3 + ah(n;rZ.- i)%;li= o
M 4 (38)
equal to zero, giving respectively, which can be readily solved using Newton's method, with an
a = P,BpZA (28) initial guess of M = M.
and
NS=P,BaZA (29) APPLICATION TO VACLAVEK'S EXAMPLE
Note that if D has full row rank, Z = 0, a = 0 , and N 6 = 0.
FromEq. 15, The flow scheme of the example of Vaclavek et al. (1976b)is
shown in Figure 1 . In this case, all concentrations were assumed
ZrYTIBla + B&"] =-ZVT[B,k + Blx] (30) to b e measured or none were, so that the streams themselves
From Eqs. 28 and 29, with can be classified according to categories 1-3. The category of
each stream is shown in parentheses. The matrices B1, B , and
H A Y T ( B I Z I B T +B p Z p B ; ) Y (31) B, are shown in Table 1, with Z as the identity matrix of order
we obtain equal to the number of components and the remaining entries
I = -(ZTHZ)-'ZTyTIBok BIZ] + zeroes. The matrix Y can then be defined as:
(32)
This allows computation of I, a, and N S from Eqs. 32, 28, and y'=[. . . .
Z I Z . . l
.] (39)
29. Problem P2(b) can then be solved for n. Now, because 2,
was computed using a guess for N (or n), we can iterate by We note that the remaining balances involve node 4 alone and
updating Zz and solving P2(a) again. This shows a fourth advan- nodes 1, 2 , 3 , and 6 combined.
tage of splitting matrices Z and Y, namely that this iteration Now, the matrix D can b e written as
does not involve variables of category 3.
If we wish to apportion the adjustments aj of component flow
rates x, in streamj among the total flow rate M , and the concen-
trations c,, we will require In Vaclavek's case, there were four components so that D had
full column rank. In that case,
Ej = i j / M j (33)
This then leaves only one further condition to b e specified.
Having suppressed the subscriptj for simplicity, we can list the Thus, adjustments would be zero for the streams incident to
following possible conditions: node 4 and adjustments to flows in streams 1.8, and 9 could be
(a) A particular concentration c, is exactly known. Then found as problem P2(a). Then estimates of the total flows of
streams of category 2 incident to node 4 can be found.
M = x,/c, (34) Now, if there were fewer than four components, one or more
and Eq. 33 gives the other concentrations. total flows in streams 11, 13, 14, and 15 would be indetermin-
(b) Total flow rate M is exactly known. Then c are all calcu- ate but the remainder could b e estimated. If there were more
lated from Eq. 33. than four components, the null matrix in Eq. 41 would be re-
(c) The concentrations must add up to a specified quantity p; placed by -D&' as discussed above. Then, some balance
for example, the mass or mole fractions of all species in the envelope($ around node 4 would b e retained in the reduced
TABLE & ,Be, B,
1, MATRICES FOR VACLAVEK'S EXAMPLE
Stream Number
1 4
I
-I
8
-z
.
. .
. -z
9
.
z
1
:I[: z1r !I
2
Z
5
-I
I
10
-I
11 13 14
-1
I
Z 1
15 2 3
-Z
I
6
-I
I
7
-Z
I
1 6
-I
['I
that only relative flows can be estimated. Thus we define the
feed flow to b e unit mass. The B matrices are then noted that the X-ray analyses for Zn were in error. There is in
[-' :]
fact a second set of data taken six minutes earlier, given in
Stream: 1 2 3 4 5 6 7 Figure 2 of Smith and Lewis (1969). If one repeats the adjust-
I - z. . -I . . ments with the average of these two sets, the faultiness of the
data is even more glaring, since the variances are all halved.
B= ; B, =
'
. I - I . . - I '
. . . I - I .
8 CONCLUSION
D= [ -d,
d, -dg
.
.
d, -d,
. -d,
. d, -d,
.
.
. -d,
ACKNOWLEDGMENT
TABLE
2. SMITH AND ICHIYEN (1973) FLOTATION
CIRCUIT
Stream
1 2 3 4 5 6 7 8
&%
, 1.93 0.45 0.13 0.09 19.86 21.44 0.51 -
&"% 3.81 4.72 5.36 0.41 7.09 4.95 52.10 -
Case 1 dC"% 1.928 0.45 0.128 0.09 19.88 21.43 0.513 35.36"
(all data)
x* = 13.1 0.38 WC"I 0.77 0.38 0.38 0.77 2.01 0.38 -
Ix%.o.95= 7.8) 4.95 dzn% 4.78 4.95 0.41 7.07 4.92 51.88 -14.4'
lLl 3.55 0.77 1.91 0.38 0.77 2.01 0.38 -
Total Flow 1 .o 0.924 0.915 0.835 0.0761 0.0845 0.0808 0.00844
Case 2 dC"% 1.933 0.45 0.13 0.09 19.84 21.44 0.511 36.36'
(dZn.1 unknown) WC"I 0.72 0.72 0.11 0.11 0.72 0.72 0.11 -
xe = 0.52 &"% 5.20" 5.04 5.22 0.41 7.11 4.94 52.03 -15.4'
lG"l - 0.72 0.68 0.11 0.72 0.72 0.11 -
Ix%,o.85= 6.0) Total Flow 1.0 0.923 0.915 0.830 0.0765 0.0846 0.0854 0.00817
Case 3 1.86 0.46 0.129 0.09 21.2 20.13 0.51 16.3'
2.57 2.67 0.19 2.67
0.092 - 2.71
- 0.09 -
5.18" 5.08 5.18 0.41 6.64 5.23 52.04 0.25
nzn.2
xe = 7.83 IGnI - 0.93 0.92 0.09 2.57 2.57 0.09 -
&,85 = 7.8) Total Flow 1 .o 0.932 0.913 0.829 0.0677 0.0867 0.0843 0.019
* Value reauired to satisfv balance.