Professional Documents
Culture Documents
Ariel Uribe
Universidad Industrial de Santander, Bucaramanga, Colombia
DOI 10.1002/aic.10279
Published online in Wiley InterScience (www.interscience.wiley.com).
A mixed-integer linear programming formulation for the design of sensor networks for
simultaneous process monitoring and fault detection/resolution is presented. The objective
is to find a cost-optimal sensor set for a chemical process that provides a good estimate
of the state of the system and detects as well as locate a preestablished set of faults. A
continuously stirred tank reactor example is provided and extensions are discussed. ©
2004 American Institute of Chemical Engineers AIChE J, 50: 1870 –1880, 2004
Keywords: sensors, sensor systems, fault detection, instrumentation upgrade
冘 cq
冘B ⫽0 3 F
Min i i (1) m
冘B ⱖ1 3 F
m
sensor maximum connectivity matrix (A), which will contain
the same information as the bipartite graph. In this matrix, the If ij j is observable (6)
i⫽1
columns represent the faults and the rows represent the sensors.
When Aij ⫽ 1, then we say that there is a path from fault Fj to
the potential sensor location Si. For the case of Figure 1, this We are now in a position to present our model for cost-
matrix is the following optimal sensor network design for fault observability
F1 F2 F3 F4 F5
冘 cq
冧
1 1 0 0 0 S1 P1 ⫽ Min i i
A⫽ 1 1 1 1 0 S (2) i僆M 1
2
s.t.
冘 b 共q 兲 ⱖ 1
0 0 0 1 1 S3
(7)
k i ᭙ k 僆 Mo
We now define a fault-sensor connectivity matrix B(q) ⫽ i僆M 1
冘 关d 共q兲 丢 d 共q兲兴
that one cannot incorporate Eq. 8 for these two sensors in the
model because it will become infeasible. jk pr i
Thus the final model for fault observability and single fault i僆M1
再冘 冘 关d 共q兲兴 冎 ⫺ 1
resolution is
冘 cq
ⱕ Max 关djk 共q兲兴i , ᭙ j, k, p, r 僆 MS2
冧
pr i
P2 ⫽ Min i i i僆M 1 i僆M 1
i僆M 1
(12)
s.t.
冘 a q ⱖ1 ᭙k僆M ki i O
where ( j, k) and (p, r) belong to MS2, the set of all combina-
冘 a a q ⱕ C ⫺ 1 ᭙ j, p 僆 M ; j ⫽ p
i僆M 1
tions of two faults that one wants to resolve. In addition j ⫽ k ⫽
ji pi i jp S
p ⫽ r. This equation can be replaced by a set of mixed integer
C ⫽ Max再 冘 a q , 冘 a q 冎
i僆M 1
linear equations using Eq. 10. In a similar fashion, one can
jp ᭙ j, p 僆 M ; j ⫽ p
ji i pi i S distinguish double faults from single faults by using the fol-
i僆M 1 i僆M 1 lowing expression
qj 僆 兵0, 1其 ᭙ j 僆 MS
(9)
冘 关d 共q兲 丢 b 共q兲兴
i僆M1
jk p i
再冘 冘 关b 共q兲兴 冎 ⫺ 1
where MS is the set of faults that one wants to be able to
observe and resolve. Note that MS should be included in MO. ⱕ Max 关djk 共q兲兴i , p i
The Max operator in Eq. 8 is not amenable to be used in i僆M 1 i僆M 1
MILP models. To convert it to a linear set of inequalities,
consider the following equivalency ᭙ j, k 僆 MS2 , ᭙ p 僆 MS (13)
P3 ⫽ Min 冘 cq
i僆M 1
i i
s.t.
冘 a q ⱖ1 ᭙k僆Mki i O
冘 a a q ⱕ C ⫺ 1 ᭙ j, p 僆 M ; j ⫽ p
i僆M 1
ji pi i jp S
C ⫽ Max再 冘 a q , 冘 a q 冎
i僆M 1
jp ᭙ j, p 僆 M ; j ⫽ p
ji i pi i S
冘 关共a 丣 a 兲 䡠 共a 丣 a 兲 䡠 q 兴 ⱕ G ᭙ j, n, p, r 僆 M ; j ⫽ n ⫽ p ⫽ r (14)
i僆M 1 i僆M 1
冧
ji ni pi ri i jnpr S2
jnpr ji ᭙ j, n, p 僆 M ; j ⫽ n ⫽ p ⫽ r
ni i pi ri i S
冘 关共a 丣 a 兲 䡠 a 䡠 q 兴 ⱕ Q ᭙ j, n 僆 M , ᭙ p 僆 M ; j ⫽ n ⫽ p
i僆M 1 i僆M 1
ji ni pi i jnp S2 S
Q ⫽ Max再 冘 关共a 丣 a 兲q 兴, 冘 关a q 兴冎
i僆M 1
jnp ᭙ j, p 僆 M ; j ⫽ n ⫽ p
ji ni i pi i S
i僆M 1 i僆M 1
where MS and MS2 are the sets of faults that one wants to be where qi is the binary vector indicating that a sensor stan-
able to observe and resolve individually and simultaneously dard deviation sii is located in variable i, ci is the cost of
and MO is the set of faults that one wants to be able to simply such sensor. The precision constraint states that the variance
observe, respectively. Note, that MS as well as MS2 should be of estimates ŝii (after reconciliation) has to be strictly
included in MO. smaller than a certain threshold s*ii. The constraint is written
Our methodology, requires the identification of pseudofaults only for the set of variables of interest (MP). When the
(Eq. 10) for the double-fault resolution problem, but this can be equations of the system correspond to material balances,
done automatically. An alternative methodology was presented they are linear and they can be expressed by A 䡠 x ⫽ 0, where
by Bushan and Rengaswamy (2001). In their work, the number A is the matrix of coefficients and x represents the mass
of constraints for the resolution problem is four times lower, flows. The variance of the estimates of measured and redun-
but identification of pseudofaults is required for any resolution dant variables obtained after data reconciliation is per-
problem considered. formed is given by
Ŝ R ⫽ S R ⫺ S R 䡠 E TR 䡠 共E R 䡠 S 䡠 E TR兲 ⫺1 䡠 E R 䡠 S R (16)
MILP Model for Variable Precision
We now briefly review the model developed by Bagajew-
icz and Cabrera (2001) for the design of instrumentation
where ER is the matrix reflecting the material balance equations
networks, with the objective of regular monitoring/parame-
of measured and redundant variables. The diagonal elements of
ter estimation. The model includes several constraints (pre-
Ŝ R are the values of interest ŝ ii , whereas the diagonal elements
cision, residual precision, error detectability, and resil-
of SR are the variances of the sensors installed in the redundant
ience).
variables.
The cost-optimal sensor network of a system with accuracy
The MILP model developed by Bagajewicz and Cabrera
constraints is obtained by solving the following optimization
(2001) considers that all variables are measured, some with real
problem (Bagajewicz, 1997)
instruments and others with fake instruments of very high
standard deviation, high enough so that they do not have an
冧
Min i i model also includes hardware redundancy, and considers many
i
(15) sensor candidates for each variable. When such an approach is
s.t. used, ER ⫽ A, and SR ⫽ S. The complete model without
ŝii ⬍ s*ii ᭙ i 僆 MP hardware redundancy is
冧
Now, defining z ⫽ x ⫺ ␣, where ␣ is such that
冘 冘c
l im
Min
冋 册 冋 册
ij ij
i僆M 1 j⫽1 ⭸F共 x兲 ⭸F共 x兲
s.t. ␣ ⫽ F共 x 0兲 ⫺ x0 (19)
⭸x x⫽x0
⭸x x⫽x0
冘 ⫽1
l im
ij ᭙ i 僆 M1
j⫽1 The system of Eq. 18 becomes
冘 ⫺ 冘 冘 冘 a p a
l im l im n n
t⫽1
it
2
it
t⫽1 k⫽1 d⫽1
it
4
it ki kd di ⱕ ŝii ᭙ i 僆 Mp
冋 册 ⭸F共 x兲
⭸x
z⫽0
x⫽x0
(20)
冘 冘 冘p a a ⫽␦
n m l im
ih hk
2
kt kt jk ij ᭙ i 僆 M1 , j ⫽ 1, . . . , n
h⫽1 k⫽1 t⫽1
which has the required form. To avoid numerical problems the
new variables (z) are scaled so that Max@j 兩 Aij 兩 ⫽ 1, @ i.
(17)
Case Study
where it is a binary variable indicating that a sensor standard
deviation sit is located in variable i, and 2ii are the variances of We considered the CSTR example introduced by Bhushan et
sensor t installed in variable i. The last two equations of the al. (2000) (Figure 2). The equations were implemented in
above model represent Eq. 16. They are the result of introduc- GAMS and solved using CPLEX. First, the problem of fault
ing a new matrix as follows: P ⫽ (A 䡠 S 䡠 AT)⫺1, which is detection/resolution and the precision-constrained problem
summarized in the last equation. Thus, aki are elements of were solved separately. Next, all constraints are used simulta-
matrix A, pkd are the elements of P, and ␦ij is the identity neously to show how the synergism between the two con-
matrix. Finally, l mi is the number of different alternative can-
straints forces solutions different from the simple superposition
didates of measurement devices for variable i, n is the number of separate solutions.
of material balance equations, and m is the number of variables. The CSTR model equation and the correspondent DG are
The model contains products of integers and continuous vari- presented in the Appendix. Following the strategy of Bhushan
ables (pkd and it), which are further linearized using a trans- et al. (2000), the corresponding sensor nodes for each fault
formation proposed by Glover (1975). were identified. Figure 3 shows the bipartite graph for observ-
This model can be extended to nonlinear systems by simple ability when control-loop faults are excluded. Table A2 can be
linearization. Indeed, when F(x) ⫽ 0 is the nonlinear system of used to generate the graphs including control-loop faults.
equations representing the model, using a Taylor series expan- The model was first run minimizing the number of sensors
sion that ignores terms of order ⬎ 1 gives (that is, using the same cost for all sensors). Sensors TS, PS,
and VS are installed for control purposes and can be used for
冋 册 冋 册
⭸F共 x兲 ⭸F共 x兲 fault detection. They are assigned zero cost. When only ob-
x ⫽ F共 x 0兲 ⫺ x0 (18) servability and single- as well as double-fault resolution are
⭸x x⫽x0
⭸x x⫽x0 requested (but no precision on variables is imposed), the results
obtained are shown in Table 1, Case 1. A cross symbol (⫻) sufficient for fault detection and the estimation of the desired
indicates that the corresponding node should be measured. variables, although the sensors are different. Note that the
Table 1 also shows that an alternative arrangement of sensors simple superposition of solutions for fault detection and preci-
can be obtained using the same cost for all measurements. sion requires 7 and 10 sensors as minimum and maximum,
These four solutions are different from the one obtained by respectively. Table 3 illustrates that this synergism does not
Bhushan et al. (2000), which is also shown in Table 1. We also always reduce the number of sensors. Indeed, 9 sensors are
modified the problem costs (Case 2). For this last case we required to achieve both goals, whereas the superposition of
consider that the cost of measuring concentration is too high solutions requires 10 and 11 sensors as minimum and maxi-
and the node N (number of mol in gaseous phase) is unmea- mum, respectively.
surable, thus precluding it. Furthermore, we assign high costs
to the use of controllers and valves for detecting faults. Conclusions
A few observations are appropriate: An MILP formulation for the location of sensors for fault
● For this small example, we found four alternative solu-
detection was presented. The technique provides a very useful
tions that feature a minimum number of sensors (seven). tool to design and upgrade instrumentation networks for fault
● If costs are considered, fewer alternative solutions featur-
observability and resolution. This formulation of the problem
ing the same cost are likely, but one could expect to identify allows the introduction of cost as one more element of consid-
suboptimal solutions with costs close to the optimal. eration in the design of these systems.
● Some nodes are essential and will be part of all solutions,
Results show that the model can be used to identify alterna-
no matter what cost is assigned to measure them. This is the tive solutions. The example chosen is very revealing because it
case of Tc, Fc, and F. In the work of Bushan et al. (2000) node shows that many solutions with the same fault observability
Fc is the node where the sensor should be placed to observe all and resolution properties feature the same low number of
the faults (except control-loop failures) under the single-fault sensors. The use of the model also reveals that one can identify
assumption. For observability under the double-fault assump- solutions with a larger number of sensors, which could be of
tion (control loop–noncontrol-loop faults and noncontrol–non- interest for other reasons. Extensions of this work consist of the
control faults), node Tc has been selected to observe such pairs. addition of reliability and robustness constraints, the addition
Finally, node F is the node where the sensor should be placed of residual precision, and gross error robustness goals used for
for solving the single-fault resolution problem. monitoring of normal operations and the treatment of this
● Those faults that affect the same set of nodes are not
problem as a multiobjective case.
distinguished.
Next, the problem was run requiring only precision in key Acknowledgments
variables (CA ⫽ 2%, T ⫽ 1%, and F ⫽ 2%). For each
variable from the precision group (Fi, CAi, CA, T, Ti, Tc, Fc, Tci, Financial support from the National Science Foundation through Grant
CTS-0075814 and the University of Oklahoma for matching funds is
Fvg, F, F2, F3, F4) sensors of 1 ⫽ 1% are available at a cost gratefully acknowledged.
of 100. Consider also that for each node not considered in the Parts of this article were presented at the 4th IFAC Workshop on
precision problem the cost of locating a sensor is 100 (as in On-Line Fault Detection and Supervision in the Chemical Process Indus-
Case 1). The optimal set of sensors for this problem is shown tries (Bagajewicz and Fuxman, 2001).
in Table 2. The results for higher precision are shown in Table 3.
Consider first the case of Table 2. Although 7 sensors are Notation
enough for fault detection, the same number of sensors is A ⫽ maximum connectivity matrix
Table A2. Corresponding Nodes for Control Loop Faults (Valve Failures)
CA i – CA i – CA i – T i– T i– T i– F i– F i– F i– T ci – T ci – T ci – C d– C d– C d– U– U– U–
VfL VfP VfT VfL VfP VfT VfL VfP VfT VfL VfP VfT VfL VfP VfT VfL VfP VfT
CA x x x x x x x x x x x x
Tc x x x x x x x x x x x x x x x
Fc x x x x x x x x x x x x
F g x x x x x x x x x x x x
F x x
F2 x x
F3 x x
F4 x x x x x x x x x x x x
TC x x x x x x x x x x x x x x x x x x
VT x x x x x x x x x x x x
N x x x x x x x x x x
PC x x x x x x x x x x x x
VP x x x x x x x x x
VC x x x
VL x x
TS x x x x x x
PS x x x x
VS x
Elemental Mass Balances in Valves and Pumps. Assuming Using Eqs. A1 through A8, the DG diagram (Figure A1) is
no accumulation: generated. In this diagram, PfS, TfS, and VfS correspond to
冎
sensor fault nodes and VfP, VfT, and VfL, to valve fault nodes.
F3 ⫺ F2 ⫽ 0 Table A1 shows the nodes for faults that do not correspond
F2 ⫺ F ⫽ 0 (A7) to the control loop. Table A2 shows the nodes for faults in the
F4 ⫺ Fc ⫽ 0 control loop (valve faults) associated with changes in CAi, Fi,
Pressure in the Reactor. Assuming ideal behavior: Ti, Tci, Cd, and U. The corresponding nodes for sensors failures
are omitted. For the single-fault resolution problem, faults in
PV g ⫽ nRT (A8) Table A1 are considered. For the double-fault resolution, faults
in Tables A1 and A2 are used.
where Vg is the vapor space and is assumed constant. The Jacobian (matrix ER in Eq. 16) is the following:
冋 册
⭸F共 x兲
⭸x x⫽x0
冤 冥
Fi C Ai CA T Ti Tc Fc T ci F g F F2 F3 F4
⫺5.312E-3 ⫺0.8333 1.7763 9.2287E-3 0 0 0 0 0 0 0 0 0
1.4583 0 ⫺75440 5.9503 ⫺0.8333 ⫺125 0 0 0 0 0 0 0
0 0 0 ⫺93.8067 0 1085147 15.7169 ⫺14.708 0 0 0 0 0
⫽ 0 0 ⫺45.2612 ⫺0.443 0 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 0 0 ⫺1 0 0 0
0 0 0 0 0 0 0 0 0 0 1 ⫺1 0
0 0 0 0 0 0 0 0 0 1 ⫺1 0 0
0 0 0 0 0 0 ⫺1 0 0 0 0 0 1
Note that V, Vg, U, A, Cd, densities, and heat capacities are Manuscript received Aug. 7, 2001, and revision received Dec. 1, 2003.
considered constants. The values of the variables used in the
equations are shown in Table A3.