DATA RECONCILIATION AND INSTRUMENTATION UPGRADE. OVERVIEW AND - - PowerPoint PPT Presentation

data reconciliation and instrumentation upgrade overview
SMART_READER_LITE
LIVE PREVIEW

DATA RECONCILIATION AND INSTRUMENTATION UPGRADE. OVERVIEW AND - - PowerPoint PPT Presentation

DATA RECONCILIATION AND INSTRUMENTATION UPGRADE. OVERVIEW AND CHALLENGES PASI 2005. Cataratas del Iguazu, Argentina Miguel Bagajewicz University of Oklahoma OUTLINE A LARGE NUMBER OF PEOPLE FROM ACADEMIA AND INDUSTRY HAVE CONTRIBUTED TO


slide-1
SLIDE 1

DATA RECONCILIATION AND INSTRUMENTATION

  • UPGRADE. OVERVIEW AND

CHALLENGES

PASI 2005.

Cataratas del Iguazu, Argentina

Miguel Bagajewicz

University of Oklahoma

slide-2
SLIDE 2

OUTLINE

  • A LARGE NUMBER OF PEOPLE FROM ACADEMIA

AND INDUSTRY HAVE CONTRIBUTED TO THE AREA OF DATA RECONCILIATION.

  • HUNDREDS OF ARTICLES AND THREE BOOKS HAVE

BEEN WRITTEN.

  • MORE THAN 5 COMMERCIAL SOFTWARE EXIST.
  • ALTHOUGH A LITTLE YOUNGER, THE AREA OF

INSTRUMENATION UPGRADE IS EQUALLY MATURE

  • ONE BOOK HAS BEEN WRITTEN
slide-3
SLIDE 3

OUTLINE

  • OBSERVABILITY AND REDUNDANCY
  • DIFFERENT TYPES OF DATA RECONCILIATION
  • Steady State vs. Dynamic
  • Linear vs. Nonlinear
  • GROSS ERRORS
  • Biased instrumentation, model mismatch and outliers
  • Detection, identification and size estimation
  • INSTRUMENTATION UPGRADE
  • SOME EXISTING CHALLENGES
  • INDUSTRIAL PRACTICE
slide-4
SLIDE 4

Simple Process Model of Mass Conservation

f1 f6 f7 f3 f5 f9 f11 f2 f4 f8 f10

f1 - f2 - f3 = 0 f2 - f4 = 0 f3 - f5 = 0 f4 + f5 - f6 = 0 f6 - f7 =0 Material Balance Equations f7 - f8 - f9 = 0 f8 - f10 = 0 f9 - f11 = 0

U1 U2 U3 U4 U5

slide-5
SLIDE 5

Variable Classification

Measured (M) Observable (O) Unmeasured (UM) Unobservable (UO) Variables f1 f6 f7 f3 f5 f9 f11 f2 f4 f8 f10

U1 U2 U3 U4 U5

slide-6
SLIDE 6

Variable Classification

Redundant (R) Measured (M) Non-redundant (NR) Observable (O) Unmeasured (UM) Unobservable (UO) Variables f1 f6 f7 f3 f5 f9 f11 f2 f4 f8 f10

U1 U2 U3 U4 U5

slide-7
SLIDE 7

Conflict among Redundant Variables

f1 - f7 =0 Material Balance Equations f1 – f8 – f11= 0

f1 f6 f7 f3 f5 f9 f11 f2 f4 f8 f10

U1 U2 U3 U4 U5

slide-8
SLIDE 8

Conflict Resolution

s.t. ] ~ [ ] ~ [

+ − +

− −

R R R T R R

f f Q f f Min

1

=

R R f

E ~

( )

[ ]

+ −

− =

R R T R R R T R R R

f E E Q E E Q I f

1

~

Analytical Solution Data reconciliation in its simplest form

slide-9
SLIDE 9

Precision of Estimates

+

=

NR NR

f f ~

NR NRO R RO O

f C f C f ~ ~ ~ + = ( )

[ ]

+ −

− =

R R T R R R T R R R

f E E Q E E Q I f

1

~

If , and the variance of x is Q, then the variance

  • f z is given by:

x z Γ =

T

Q Q Γ Γ = ~

( )

F R R T R F R R T R F R F R F R

Q C C Q C C Q Q Q

, 1 , , , ,

~

− =

F NR F NR

Q Q

, ,

~ =

[ ] [ ]

T SRO RO NR R SRO RO O

C C Q Q C C Q ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = ~ ~

slide-10
SLIDE 10

Some Practical Difficulties

  • Variance-Covariance matrix is not Known
  • Process plants have a usually a large number of Tanks
  • Plants are not usually at Steady State
  • How many measurements is enough?
slide-11
SLIDE 11

Estimation of the Variance- Covariance Matrix.

T R R R

E Q E r Cov = ) (

( ) ( )( )

⎪ ⎪ ⎩ ⎪ ⎪ ⎨ ⎧ − − − = =

∑ ∑

= = n k j R k j R i R k i R j R i R n k k i R i R

f f f f n f f Cov f n f

1 , , , , , , 1 , ,

~ ~ 1 1 ~ , ~ ~ 1

  • Direct Approach
  • Indirect Approach

r f E

R R

=

+

1) Obtain r 2) Maximum likelihood estimate QR

However, this procedure is not good if outliers are present. Robust estimators have been proposed (Chen et al, 1997)

Almasy and Mah (1984), Darouach et al., (1989) and Keller et al (1992)

slide-12
SLIDE 12

Tank Hold Up Measurements

Steady State formulations are used

Pseudo-Stream Level at t=t0 Level at t=t1

slide-13
SLIDE 13

The procedure is based on the following assumptions:

a) A normal distribution of measurement errors. b) A single value per variable. c) A “steady-state” system. a) Substantiated by the central limit theorem. b) Also valid for means. c) No plant is truly at “steady-state”. Process oscillations occur. Therefore, it is said that it is valid for a “pseudo-steady state” system”

] ~ [ ] ~ [

+ − +

− −

R R R T R R

f f Q f f Min

1

=

R R f

E ~

90 95 100 105 110 1 250 Time 90 95 100 105 110 1 250 Time 90 95 100 105 110 1 250 Time

slide-14
SLIDE 14

Reconciliation of averages is equal to the average of reconciled values using dynamic data reconciliation (Bagajewicz and Jiang, 2000; Bagajewicz and Gonzales,2001). That is, there is no need to adjust the variance-covariance matrix for process variations.

slide-15
SLIDE 15

Dynamic Data Reconciliation

Linear Case(after cooptation):

{ }

] ~ [ ] ~ [ ] ~ [ ] ~ [

1 1 + − + + − + ∀

− − + − −

Ri Ri RV T Ri Ri Ri Ri Rf T Ri Ri i

V V Q V V f f Q f f Min ~ ~ ~ = =

R R R

f C f A dt V d B

When B=I, the Kalman filter can be used.

slide-16
SLIDE 16

Dynamic Data Reconciliation

Difference Approach: Darouach, M. and M. Zasadzinski, 1991, Rollins, D. K.

and S. Devanathan, 1993. An algebraic system of equations follows.

Integral Approach: Jiang and Bagajewicz, 1997.

The technique estimates the coefficients of polynomials.

( )

~ ~ ~ ~

, , , ,

= = −

i R i R i R i R

F C F A V V B

{ }

] ~ [ ] ~ [ ] ~ [ ] ~ [

1 1 + − + + − + ∀

− − + − −

Ri Ri RV T Ri Ri Ri Ri Rf T Ri Ri i

V V Q V V f f Q f f Min

~ ~ ~ = =

R R R

f C f A dt V d B

f t

R k R k s k

=

∑α

[ ]

1 1 1

1

+ = = + +

∑ ∑

+ = = −

k s k R k R s k k R k R R R R

t k A t B V V B α ω

slide-17
SLIDE 17

Nonlinear Data Reconciliation

] ) ( ~ [ ] ) ( ~ [

, 1 , k M k M T k M k M N k

z t x Q z t x Min − −

− =

) ~ , ~ ( ~

2 1 1 1

x x g dt x d =

) ~ , ~ (

2 1 2

= x x g

Applied in practice to steady state models with material, component and energy balances. In the dynamic case, orthogonal collocation was used (Liebmann et al, 1992) or linearization (Ramamurthi et al.,1993) or use of DAE (Albuquerque and Biegler, 1996).

slide-18
SLIDE 18

Gross Errors

slide-19
SLIDE 19

Types of Gross Errors

Biases Leaks (Model departures) True outliers

95 96 97 98 99 100 101 102 103 104 105 1 250 Ti me

96 97 98 99 100 101 102 103 104 250 Time Temperature

slide-20
SLIDE 20

Hypothesis Testing

Global Test (Detection) Nodal Test (Detection and Identification)

Maximum Power versions of this test were also developed. Rollins et al (1996) proposed an intelligent combination of nodes technique

r E Q E r

T R R R 1

) (

= γ

ii T R R R i N i

E Q E r n Z ) (

2 / 1

=

Normal

  • n

Distributi H H

r r

: : :

1

⎪ ⎩ ⎪ ⎨ ⎧ ≠ = µ µ Squared Chi

  • n

Distributi E Q E H E Q E H

R T R R R T R R T R R R T R

− ⎪ ⎩ ⎪ ⎨ ⎧ ≠ = : ) ( : ) ( :

1

µ µ µ µ

slide-21
SLIDE 21

Hypothesis Testing

Principal Component (Tong and Crowe, 1995)

r W p

T r =

) ( :

T R R R r

E Q E

  • f

rs eigenvecto

  • f

matrix W

Normal

  • n

Distributi W H W H

r T r T

: : :

1

⎪ ⎩ ⎪ ⎨ ⎧ ≠ = µ µ

) ( :

T R R R r

E Q E

  • f

s eigenvalue

  • f

matrix Λ ) , ( ~ I N pr

slide-22
SLIDE 22

Hypothesis Testing

Measurement Test This test is inadmissible. Under deterministic conditions it may point to the wrong location.

ii R i i LCT

Q f f Z ) ~ ( ~

+

− =

χ

Normal

  • n

Distributi f H f H

i i i i

: : :

1

⎪ ⎩ ⎪ ⎨ ⎧ ≠ − = − φ φ

slide-23
SLIDE 23

Hypothesis Testing

Generalized Likelihood ratio Leaks can also be tested.

Squared Chi

  • n

Distributi bAe H H

i r r

− ⎪ ⎩ ⎪ ⎨ ⎧ = = : : :

1

µ µ

{ } { }

1

Pr Pr sup H r H r

i ∀

= λ

} ) ( 5 . exp{ )} ( ) ( ) ( 5 . exp{ sup

1 1 ,

r QE E r bAe r QE E bAe r

T R R T i T R R T i i b − − ∀

− − − − = λ

slide-24
SLIDE 24

Multiple Error Detection

Serial Elimination

Apply recursively the test and eliminate the measurement

Serial Compensation

Apply recursively the test, determine the size of the gross error and adjust the measurement

Serial Collective Compensation

Apply recursively the test, determine the sizes of all gross error and adjust the measurements

slide-25
SLIDE 25

Multiple Error Detection

Unbiased Estimation

One shot collective information of all possible errors followed by hypothesis testing. Bagajewicz and Jiang, 2000, proposed an MILP strategy based on this.

Two distributions approach

Assume that gross error have a distribution with larger variance and use maximum likelihood methods (Romagnoli et al., 1981) (Tjoa and Biegler, 1991) (Ragot et al., 1992)

Multiscale Bayesian approach. Bakshi et al (2001).

slide-26
SLIDE 26

EQUIVALENCY THEORY

EXACT LOCATION DETERMINATION IS NOT

ALWAYS POSSIBLE, REGARDLESS OF THE METHOD USED.

MANY SETS OF GROSS ERRORS ARE EQUIVALENT,

THAT IS, THEY HAVE THE SAME EFFECT IN DATA RECONCILIATION WHEN THEY ARE COMPENSATED.

slide-27
SLIDE 27

BASIC EQUIVALENCIES

In a single unit a bias in an inlet stream is equivalent to a bias in an output stream. S1 S2

S1 S2 Measurement 4 3 Reconciled data 3 3 Case 1 Estimated bias 1 Reconciled data 4 4 Case 2 Estimated bias

  • 1
slide-28
SLIDE 28

BASIC EQUIVALENCIES

In a single unit a bias in a stream is equivalent to a leak S1 S2 Leak

S1 S2 Leak Measurement 4 3 Reconciled data 4 3 Case1 Estimated bias/leak 1 Reconciled data 4 4 Case2 Estimated bias/leak

  • 1
slide-29
SLIDE 29

EQUIVALENCY THEORY

For the set Λ={S3, S6} a gross error in one of them can be alternatively placed in the other without change in the result of the reconciliation. We say that this set has Gross Error Cardinality Γ(Λ)=1. ONE GROSS ERROR CAN REPRESENT ALL POSSIBLE GROSS ERRORS IN THE SET.

6

S

1

S

2

S

3

S

5

S

4

S

slide-30
SLIDE 30

GROSS ERROR DETECTION

TWO SUCCESFUL IDENTIFICATIONS:

Exact location Equivalent location

THIS MEANS THAT THE CONCEPT OF POWER IN LINEAR DATA RECONCILIATION SHOULD BE REVISITED TO INCLUDE EQUIVALENCIES

slide-31
SLIDE 31

COMMERCIAL CODES

Package Nature Offered by IOO (Interactive On-Line Opt.) Academic Louisiana State University (USA) DATACON Commercial Simulation Sciences (USA) SIGMAFINE Commercial OSI (USA) VALI Commercial Belsim (Belgium) ADVISOR Commercial Aspentech (USA) RECONCILER Commercial Resolution Integration Solutions (USA) PRODUCTION BALANCE Commercial Honeywell (USA) RECON Commercial Chemplant Technologies (Czech Republic)

While the data reconciliation in all these packages is good, gross error detection has not caught with developments in the last 10 years. Global test and Serial Elimination using the measurement test seem to be the gross error detection and identification of choice.

slide-32
SLIDE 32

INSTRUMENTATION UPGRADE (The inverse engineering problem)

Given

Data Reconciliation (or other) monitoring Objectives

Obtain:

Sensor Locations (number and type)

slide-33
SLIDE 33

INSTRUMENTATION DESIGN

Minimize Cost (Investment + Maintenance) s.t.

  • Desired precision of estimates
  • Desired gross error robustness

Detectability, Residual Precision, Resilience.

  • Desired reliability/availability
slide-34
SLIDE 34

Design of Repairable Networks

EXAMPLE: Ammonia Plant

5 S8 S4 S7 S6 S5 1 6 4 S1 S3 S2 2 3

Table 3: Optimization results for the simplified ammonia process flowsheet Repair Rate Measured Variables Instrument Precision (%) Cost Precision(%) (S2) (S5) Precision Availability(%) (S2) (S5) Availability (S1) (S7) 1 S1 S4 S5 S6 S7 S8 3 1 1 1 3 2 2040.2 0.8067 1.2893 0.9841 1.2937 0.9021 0.9021 2 S4 S5 S6 S7 S8 3 3 1 3 1 1699.8 0.9283 1.9928 1.9712 2.0086 0.9222 0.9062 4 S4 S5 S6 S7 S8 3 3 1 3 3 1683.7 1.2313 1.9963 1.9712 2.0086 0.9636 0.9511 20 S4 S5 S6 S7 S8 3 3 1 3 3 1775.2 1.2313 1.9963 1.9712 2.0086 0.9983 0.9969

  • There is a minimum in cost as a function of the repair rate.

This allows the design of maintenance policies.

slide-35
SLIDE 35

Upgrade

Upgrade consists of any combination of :

Adding instrumentation. Replacing instruments. Relocating instruments (thermocouples,

sampling places, etc).

slide-36
SLIDE 36

Upgrade

Example

S6

S8 S7

S1 U1 S2 U2 S3 U3 S4 S5 S9 S8 Flowmeters 3% Thermocouples 2oF

Reallocation and/or addition of thermocouples as well as a purchase of a new flowmeter improve the precision of heat transfer coefficients

Case

1

U

σ

2

U

σ

3

U

σ

1

U

σ

2

U

σ

3

U

σ c Reallocations New Instruments 1 4.00 4.00 4.00 3.2826 1.9254 2.2168 100

6 1

, 2 , T T

u

  • 2

2.00 2.00 2.00

  • 3

2.00 2.00 2.20 1.3891 1.5148 2.1935 3000

  • T2, T6

4 1.50 1.50 2.20 1.3492 1.3664 2.1125 5250

  • F4, T2, T6

5 2.40 2.30 2.20 2.0587 1.8174 2.1938 1500

  • T6

6 2.20 1.80 2.40 1.7890 1.6827 2.2014 1600

2 1

, 2 , T T

u T6

slide-37
SLIDE 37

Latest Trends

+ Multiobjective Optimization (Narasimhan and Sen, 2001, Sanchez et al, 2000): Pareto optimal solutions (cost vs. precision of estimates are build) + Unconstrained Optimization (Bagajewicz 2002, Bagajewicz and Markowski 2003): Reduce everything to cost, that is find the economic value of precision and accuracy.

slide-38
SLIDE 38

Unconstrained Optimization

Let SN 0 be an existing network, then an upgrade to network SN has a Value defined as:

Value (SN) = Profit (SN) - Profit (SN 0)

Then the upgrade SND problem is defined as:

Maxim ize { Value (SN) - Cost (SN) }

slide-39
SLIDE 39

Integrated Approach

where Vi (SN) are the Value functions from the three perspectives i=1 Control Systems i=2 Material Accounting i=3 Fault Diagnosis

Maxim ize { Vi (SN) } - Cost (SN)

= 3 1 i

slide-40
SLIDE 40

Material Accounting Perspective

Given an distribution

  • ne can calculate the

probability that target production is not met. This is quantified as the Downside Expected Production Loss: The above expression assumes process variability ( )<<<

( )

) ( ˆ ,

,

SN g

m p

σ ξ

p m p * p

ˆ T . d ) ˆ , ( g ) m ( T ) ˆ ( DEPL

*

σ ≈ ξ σ ξ ξ − = σ

∫ ∞

2

p

ˆ σ

p

σ

slide-41
SLIDE 41

Material Accounting Perspective

.... i , i FL DE . i DEFL DEFL DEFL

i , i i , i i i

+ Ψ + Ψ + Ψ =

∑ ∑

2 1

2 2 2 1 2 1 1 1

In the presence of biases we have:

Financial loss when one gross error is present Financial loss when no gross error is present Financial loss when two gross error are present Portion of time in each state

slide-42
SLIDE 42

Control Perspective

MV’s CV’s

Conservative Operating Point

Dynamic Operating Regions

* * *

Backed-off Point Optimal Steady-State Point

slide-43
SLIDE 43

Control Perspective

Dynamic Operating Regions for Different Sensor Networks

*

Minimally Backed-off Points Optimal Steady-State Point

*

slide-44
SLIDE 44

Faults Perspective

  • Consider a set F of possible faults F={ fi }.

Define a set Ai(SN) as the set of sensors in SN that can observe fault fi . If Ai(SN) is not empty then fi can be detected. Assume immediate correction occurs for detected faults. If all faults in F can be detected, then no production losses or safety incidents will be expected.

slide-45
SLIDE 45

Example

Assume the current network (SN 0) consists

  • f 6 sensors located at

CAi, CA, T, V, F, P each having a precision of 2%.

CSTR Process (AB+C)

slide-46
SLIDE 46

Results (Control)

none 7 2,140 4,000 6,150 T, Tc, V, P 6 3,080 5,000 8,090 CA, T, Tc, V, P 5 3,420 2,000 5,420 T, P 4 3,500 1,000 4,500 P 3 4,630 3,000 7,630 CA, Tc, P 2 5,060 2,000 7,060 CA, P 1 Value - Sensor Costs ($/yr) Sensor Costs ($/yr) Value ($/yr) New Sensors No

slide-47
SLIDE 47

Results (Material Accounting)

  • 12,644

13,000 355 All sensors 4

  • 922

1000 77 F2 3

  • 872

1000 127 Fvg 2

  • 868

1000 131 CAi 1 Value

  • Sensor Costs

($/yr) Sensor Costs ($/yr) Value ($/yr) New Sensors No

In all cases the cost of adding sensors far exceeds the profit retuned in the form of Upgrade Value.

slide-48
SLIDE 48

Results (Faults)

2,720 2,000 4,720 Fc, Tc 4 2,720 2,000 4,720 Tc, Tci 3 4,810 3,000 7,810 Fc, Tc, Ti 2 5,810 2,000 7,810 Tci, Ti 1 Value - Sensor Costs ($/yr) Sensor Costs ($/yr) Value ($/yr) New Sensors No

slide-49
SLIDE 49

INTEGRATED PERSPECTIVE

10,525 5,000 15,525 CA, P, Fc, Tc, Ti 2 10,930 4,000 14,930 CA, P, Tci, Ti 1 Value - Sensor Costs ($/yr) Sensor Costs ($/yr) Value ($/yr) New Sensors No

Case 1: union of best networks from individual perspectives. Case 2: union of second best networks.

  • These are the best combinations given the tables presented.
  • Exhaustive enumeration search is underway.
slide-50
SLIDE 50

CHALLENGES

Academic: Multiple Gross Error Identification

Gross Errors for Nonlinear Systems. Unconstrained Methods. Solution Procedures

Industrial: Dynamic data reconciliation.

Gross Error Handling. Sensor Upgrades

slide-51
SLIDE 51

CONCLUSIONS

  • Data Reconciliation is an academically mature field.
  • It is a must when parameter estimation (mainly for on-line
  • ptimization) is desired.
  • Commercial codes are robust but lack of up to date gross

error detection/location techniques.

  • Instrumentation Upgrade methodologies have reach maturity
  • Industry understands the need for upgrading, but academic

efforts have not yet reached commercial status. They will, soon.