Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
15 views

Multivariable Control

Uploaded by

hamdy nabawy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Multivariable Control

Uploaded by

hamdy nabawy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 85

Engineering Encyclopedia

Saudi Aramco DeskTop Standards

Multivariable Control
And Solutions To Interaction

Note: The source of the technical material in this volume is the Professional
Engineering Development Program (PEDP) of Engineering Services.
Warning: The material contained in this document was developed for Saudi
Aramco and is intended for the exclusive use of Saudi Aramco’s
employees. Any material contained in this document which is not
already in the public domain may not be copied, reproduced, sold, given,
or disclosed to third parties, or otherwise used in whole, or in part,
without the written permission of the Vice President, Engineering
Services, Saudi Aramco.

Chapter : Instrumentation For additional information on this subject, contact


File Reference: PCI10211 E.W. Reah on 875-0426
Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

CONTENT PAGE

DESCRIBE INTERACTION IN PROCESS LOOPS............................................................ 1


Single Loop Versus Multivariable Loop.................................................................... 1
Multivariable process ..................................................................................... 2
Examples of Interacting Processes............................................................................. 5
Simultaneous Control of Pressure and Flow.............................................................. 5
Blending System Example ......................................................................................... 6
Flow and Pressure Control Example.......................................................................... 7
Level and Pressure Control Example......................................................................... 8
Distillation Control Example ..................................................................................... 9
RELATIVE GAIN ANALYSIS ............................................................................................ 10
Steady State Open Loop Gain for a Single Loop....................................................... 10
Steady State Open Loop Gain for Multiple Loops..................................................... 10
Closed Loop Gain ...................................................................................................... 11
Relative Gain ............................................................................................................. 11
Relative-Gain Array (RGA) ....................................................................................... 13
Properties of RGA .......................................................................................... 13
CALCULATING RELATIVE GAINS.................................................................................. 15
Process Test Method .................................................................................................. 15
Math Model or Ratio Method .................................................................................... 19
All Loops Open Method ............................................................................................ 25
The Matrix Method .................................................................................................... 27
3 x 3 systems .................................................................................................. 30
ASSIGNING LOOPS TO MINIMIZE INTERACTION....................................................... 31
Loop Assignments ..................................................................................................... 31
Example of λ in the 0 to 1 Range .................................................................. 32
Example of Process with λ Outside the 0 to 1 Range..................................... 34
Dynamic Considerations in Interacting Loops........................................................... 36
Tuning ............................................................................................................ 38
Designing the Process to Minimize Interaction.............................................. 38

Saudi Aramco DeskTop Standards


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

DETERMINE WHERE DECOUPLING IS APPLICABLE.................................................. 40


Definition of Decoupling ........................................................................................... 40
Decoupling Examples ................................................................................................ 40
Full Decoupling Example............................................................................... 40
Partial Decoupling .......................................................................................... 45
DETERMINE APPLICABILITY OF DYNAMIC MATRIX CONTROL
(DMC) TO MULTIVARIABLE CONTROL PROBLEMS .................................................. 46
Introduction To DMC ................................................................................................ 46
Definition Of DMC ........................................................................................ 46
Historical Perspective ..................................................................................... 46
Why Is DMC An Attractive Alternative? ....................................................... 47
Different Commercial Versions ................................................................................. 48
DMCC Version............................................................................................... 48
Honeywell Version......................................................................................... 48
IDCOM Version ............................................................................................. 49
Other Versions Of DMC................................................................................. 49
DMC Theory.............................................................................................................. 50
Link To Classical Control Theory .................................................................. 50
The General DMC Model Equations.............................................................. 55
Calculating the Correct Control Response...................................................... 57
How The DMC Controller Algorithm/Optimizer Functions .......................... 58
Application Of DMC Technology ............................................................................. 60
Planning The DMC Application..................................................................... 61
The Pre-Test ................................................................................................... 62
Tuning, Fix up, Economic Justification.......................................................... 63
The Full Plant Test ......................................................................................... 63
Model Development, Controller Development, Initial Controller Tuning ..... 65
Implementation, Final Tuning, Operator Training ......................................... 66

Saudi Aramco DeskTop Standards


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Applicability Criteria ................................................................................................. 66


You Must Have A Good DCS In Place .......................................................... 67
Linear Or Linearizable Processes ................................................................... 67
Multiple Manipulated Variables..................................................................... 67
Interactions Between Controlled And/Or Constraint Variables...................... 68
Constraints...................................................................................................... 68
"Slow" Processes ............................................................................................ 68
Binary Distillation Process ............................................................................. 69
Three-Product Distillation Process ................................................................. 72
WORK AID 1: PROCEDURE FOR CALCULATING RELATIVE GAINS
USING OPEN-LOOP GAIN INFORMATION........................................ 75
Case 1: Procedure for a 2 x 2 System ....................................................................... 75
Case 2: Procedure for a 3 x 3 Systems...................................................................... 76
WORK AID 2: LOOP ASSIGNMENT RULES TO MINIMIZE INTERACTION........... 78
Summary of the Significance of the Relative Gain Number λ................................... 78
GLOSSARY .......................................................................................................................... 80

Saudi Aramco DeskTop Standards


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

DESCRIBE INTERACTION IN PROCESS LOOPS

Single Loop Versus Multivariable Loop


The feedback control loops discussed so far in PCI 102 were applied to single input and
single output processes. In these applications when the input to the process was changed by
moving the manipulated variable (the valve) the entire effect of this input change was directed
to the single output of the process. The process just described, single input single output, is
free of interaction and relatively easy to control.

m PROCESS C
MANIPULATED VARIABLE CONTROLLED VARIABLE

Single input single output process - Entire effect of the change in the manipulated variable is
sensed by the controlled variable.

Saudi Aramco DeskTop Standards 1


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

In some applications however it is necessary to control more than one variable. This is
especially true in processes where the products are refined. In these processes, in addition to
the production or flow rate, we need to control various aspects of the purity of one or more
products. This type of process requires multiple inputs to, and therefore multiple outputs
from, the process.

MANIPULATED CONTROLLED
VARIABLES VARIABLES
m1 C1

m2 C2

mj Cj

mn Cn

PROCESS

Where: C1 = f1 (m1, ----- mn, t)


Cn = fn (m1, ----- mn, t)
C = f (m, t)

Multivariable process
A change of a manipulated variable can affect several controller variables through interactive
paths.
If there are interactions between the various inputs and outputs in a multivariable process, the
possibility exists that a given input change may affect all the outputs in varying amounts.
Consider a 2 x 2 multivariable process (two inputs, two outputs) and compare it to a single
input single output loop.

Saudi Aramco DeskTop Standards 2


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

A block diagram of the single loop made up of the two elements, the process and the
controller, is shown below:

SINGLE LOOP - NO INTERACTION

r m1
CTRL k11 g11 C1
1

The process equation can be written as:


C1 = K11g11m1
Where K11 and g11 are the steady state and dynamic gains of the process.
This is an isolated single loop with no interaction with other loops. The entire effect of
changing m1 is on C1 or C1 = f(m1).
Consider the following 2 by 2 multivariable process.
C1

T
m1
C2

T
m2

PROCESS

Saudi Aramco DeskTop Standards 3


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

In this process there is interaction between the two loops. Each manipulated variable affects
or interacts with both controlled variables. A representation of this process is shown in block
diagram below:

C1 LOOP 1

CTRL m1 +
r1 k11 g 11 • C1
1
+
k21 g 21

k12 g 12
+
m2 +
r2 CTRL g 22
2
k22 • C2
C2 LOOP 2

Process Equations: C1 = K11g11m1 + K12g12m2


C2 = K21g21m1 + K22g22m2
Loops 1 and 2 are single feedback loops. The third loop (dashed lines) is the loop that
interacts between them.
Changing m1 affects both C1 and C2. Changing m2 affects both C2 and C1. The amount by
which C1 and C2 are affected depends on the gain of the interacting paths K21g21 and
K12g12. Interaction will diminish and the loops will act as isolated loops as K21g21 and
K12g12 approach zero in value. Notice that interaction can be eliminated either from the
dynamic or the steady state gain.

Saudi Aramco DeskTop Standards 4


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Examples of Interacting Processes


Multivariable control describes those applications where there are more than a single input
and single output on a process. Multivariable schemes have to address to a new problem
described as, interaction in the particular control loops. Interaction can be described as a
condition where the changing of one manipulated variable affects not only its own controlled
variable but through interacting paths affects one or more controlled variables in other loops.
Simultaneous Control of Pressure and Flow
Consider the following application as an example of the interaction problem:

PC FC

P h

PT PdT

PIN POUT

m1 m2
This particular application involves the simultaneous control of pressure and flow in a single-
pipe line. There are two manipulated variables and two controlled variables on the pipeline
forming a 2 by 2 system. The interaction problem results from the fact that both valves affect
both the flow and the pressure to some degree. The first consideration in dealing with this
problem is to decide which valve should be assigned to control a particular variable. The
second consideration is whether a control system can be designed to cancel the interaction
that may exist between the loops.
Are there other alternatives if the interaction between the control loops cannot be minimized
or eliminated through proper loop assignment or process design? If severe interaction
persists, will it be necessary to apply a decoupling scheme?
A decoupling scheme as we will see later on, attempts to eliminate the interaction and
produce single loop control. This is accomplished through the introduction of a mathematical
expression in the control scheme that cancels out the interaction and allows each loop to
operate as an independent single loop.

Saudi Aramco DeskTop Standards 5


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Blending System Example


As described earlier, production processes generally require the control of at least two
variables. The blending system shown below is an example of such a process. The objective
of the control scheme is not only to blend the two incoming streams to meet the composition
specification of the mixture but also to meet the demand on the rate of production or total
outflow of the process. Thus the process would require at least two control loops and the
consideration regarding particular valve assignments. Which valve should be assigned to
which controlled variable for minimum interaction? Do we need to consider decoupling?

r=F FC AC r=X

m1
FT AT

PRODUCT

F, X
m2

Where: F = total flow


X = composition

Saudi Aramco DeskTop Standards 6


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Flow and Pressure Control Example


In this example, the process vessel is a closed tank. There are two control loops on this
process; each loop has its own set point. The problem of interaction exists since a change to
the set point of either the flow controller or the pressure controller affects the other variable.
The amount of interaction dictates how well this arrangement will work. Our objective
initially is to determine the amount of interaction and arrange the loops in a manner that
minimizes its effects. In this example, the capacity of the tank is not used to isolate and
minimize the interaction between the two loops. Interaction occurs since both loops have
similar, very fast speeds. If we were to increase the set point of the flow loop in order to
increase the flow rate out of the vessel, the immediate effect would be a drop in pressure
which would force more liquid back into the tank.

r r

FC PC

FT PT

Saudi Aramco DeskTop Standards 7


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Level and Pressure Control Example


In this example, the process vessel is also a closed tank. There are two control loops: pressure
and level. A change in the set point of either loop affects the other loop. When the level set
point increases, this causes not only an increase in the level as intended, but also increases the
pressure which causes the pressure loop to open its valve and brings the pressure back to set
point. Thus, the interaction between the two loops caused the level to come down again. We
need to develop some tools to analyze the interaction between these loops in order to make
the proper assignments that would minimize or eliminate the interaction.
When we compare this example to the previous example (flow and pressure) we see that the
capacity of the tank, with its low dynamic gain, isolates the two loops and helps minimize the
interaction between them.

r
r

LC
PC

LT
PT

Saudi Aramco DeskTop Standards 8


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Distillation Control Example


Distillation is by far the best example of a multivariable process with a high degree of
interaction between the controlled variables. Depending on the type of distillation tower
there are a number of manipulated variables and controlled variables to deal with. Any tools
that are used to assist the engineer to improve the design of the process and allow better loop
assignments to minimize the interaction problem can be extremely valuable. The payback, in
addition to better control strategies, results in energy savings since the distillation process
consumes a significant amount of energy to produce the various products.
The example below shows the control loops for a typical distillation tower. There are five
variables that can be controlled. These are top and bottom product composition, accumulator
and reboiler levels and column pressure. The manipulated variables are steam and coolant
flow rates and distillate, reflux and bottoms flow rates. The challenge is to assign the five
manipulated variables to the five controlled variables for optimum control with minimum
interaction.

PC AC

COOLANT
FLOW

REFLUX
FLOW LC

FEED

STEAM FLOW DISTILLATE


FLOW

LC AC

BOTTOMS FLOW

TYPICAL DISTILLATION TOWER

Saudi Aramco DeskTop Standards 9


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

RELATIVE GAIN ANALYSIS


To properly develop the tools used to analyze the interaction problem it is necessary to define
the terminology used in this analysis.
Steady State Open Loop Gain for a Single Loop

²m ²C
INPUT OUTPUT
m C

∆C C
K = =
∆m m
Steady State Open Loop Gain for Multiple Loops

²m 1 = 0 m1 C1

²m 2 = 0 m2 C2

²m j mj Ci ²c i

²m n = 0 mn Cn

∆ ∂C i
K ij = C i =
∆m j
∆ mk = 0 ∂mj m
K≠j
In the multivariable process each open-loop gain is evaluated with all the other loops open
(their manipulated variables held constant).

Saudi Aramco DeskTop Standards 10


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

We can see from the above relationship that there are several open loop gains for
multivariable processes. The steady state open loop gain is for a particular operating point or
load. If the loop is linear the gain value is constant. If the loop is not linear the gain varies
with the operating point.
Closed Loop Gain

m1 C1 ²c 1 = 0

m2 C2 ²c 2 = 0

²m j
mj Ci ²c i

mn Cn ²c n= 0

∆C i ∂C
Closed Loop Gain = = ∂ mi
∆m j ∆C k = 0 j C
K≠i
The closed loop gain above is also known as:
• The open loop gain with all other controlled variables held constant.

• The open loop gain with all other loops closed.

Relative Gain
Relative gain was introduced in 1966 by E. H. Bristol in a paper titled "On a New Measure of
Interaction for Multivariable Process Control." It is a measure of interaction. Relative gain is
defined as the ratio of the open loop gain and the closed loop gain, lij. It is one of the most
widely used techniques to analyze interaction problems.

Open Loop Gain


λij = Closed Loop Gain

Saudi Aramco DeskTop Standards 11


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

∆Ci
∆mj ∆mk = 0 ∂Ci
K ≠ j ∂mj m
= =
∆Ci ∂Ci
∆m j ∆Ck = 0 ∂mj C
K ≠ i
Relative gain is a measure of steady state interaction. To determine the relative gain we need
to find both the open loop and the closed loop gain as shown by the equation. Since a
multivariable process may consist of several manipulated variables and their corresponding
controlled variables, it may be necessary to find several relative gain numbers in order to
make appropriate assignments.
There are two concerns regarding the use of relative gain analysis.
1. The relative gains as defined relate only to the steady state gains. The dynamics of the
loops work to minimize the interaction problem. This is especially true when the gains
are of different magnitude per each interacting path. Examples of dynamic interaction
effects will be discussed later in this module.

2. The analysis assumes linear equations. Any nonlinearities in the loop are sources of
error and may affect loop stability. The effects of the nonlinearities can be minimized
to some degree if the loop operating point is fixed. Also if the the same nonlinearity
appears in the numerator and the denominator their effect may cancel out.

To help with the analysis it is useful to arrange the relative-gain terms in a matrix type array
known as the relative-gain array, or RGA.

Saudi Aramco DeskTop Standards 12


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Relative-Gain Array (RGA)

m1 m2 - - - mj --- mn ∑
C  λ11 λ12
1
--- λ 1j --- λ 1 n 1.0

C 2  λ 21 λ22 --- λ 2j --- λ 2n 1.0
=  - - - - - - − − - - 
 
C i  λ i1 λ i2 --- λ ij --- λ in 1.0

C n λ n1 λ n2 --- λ nj --- λ nm 1.0

∑ 1.0 1.0 1.0 1.0

Properties of RGA
The rows and columns of an RGA must sum up to unity.
Σ rows = 1.0
Σ columns = 1.0
If all of the influences for a given change of a manipulated variable are summed the total
influence on the controlled variable can not exceed 100% (unity.)
The benefit of this property is a reduction of the number of terms that have to be calculated
per given array: in a 2 x 2 system only one relative gain value must be found. In a 3 x 3
system, four relative gain terms are sufficient to produce the entire array. We calculate the
number of relative gain terms required in an array from the relationship (N-1)2 where N is the
size of the array.
To illustrate this rule let us look at the following 2 x 2 array:
m1 m2
C1  11 12 
C2  21 
22 
Since the relative gains of the rows and columns must add up to one, calculation of one
relative gain is sufficient to determine the entire RGA.

Saudi Aramco DeskTop Standards 13


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

m1 m2
C1  11 (1− 11) 
C2 (1− 11) 11  
The ranges and spans of the variables are not a factor in the analysis. The RGA is
independent of scaling and is a dimensionless number since the numerator and the
denominator have the same units.

Saudi Aramco DeskTop Standards 14


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

CALCULATING RELATIVE GAINS


There are various methods that can be used to calculate the relative gains. The best method in
a given application depends on the information available for that particular process. The
following is a list of the various methods that can be used to calculate relative gains.
• Process test method

• Mathematical model or ratio method

• All loops open method

• Matrix method
The following application examples demonstrate the various methods:
Process Test Method
The process test method can be applied to an existing process in a plant in the following
manner.
Examine the following 2 x 2 process in a particular plant. Our objective is to find out how the
two manipulated variables affect the two controlled variables.

C1
m1
T
+
k11 •
+
k21
C2
m2 k12
+ T

+
k22 •

Saudi Aramco DeskTop Standards 15


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The two inputs to this process are m1 and m2 and the two outputs are C1 and C2. We do not
require closed-loop control to perform the test. Manipulate the valves and see how the
measurements react in order to determine the RGA:
m1 m2
C1  11 12 
C2  21 
22 
RGA:

We have already defined:


∆Ci
Open Loop Gain ∆mj m = k
ij
= =
Closed Loop Gain ∆Ci
∆mj C = k

We can write the relative gain terms for this 2 x 2 system as follows:
∆C1 ∆C2
∆m1 m2 = k ∆m1 m2 = k
11 = 21 =
∆C1 ∆C2
∆m1 C2 = k ∆m1 C1 = k
∆C1 ∆C2
∆m2 m1 = k ∆m2 m1 = k
12 = 22 =
∆C1 ∆C2
∆m2 C2 = k ∆m2 C1 = k

Saudi Aramco DeskTop Standards 16


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The determination of one of these l's is sufficient for the determination of the entire RGA
since the array for a 2 x 2 system may be written as follows:
m1 m2

C1 λ11 (1-λ11 )

C 2 (1-λ11 ) λ11

Proceed with the test using the following steps:


1. Change m1 to find DC1. Don't change m2 (m2 = constant.) This allows you to
determine the open loop gain, or the numerator.

∆C
Open Loop Gain = ∆ m1
1
m2 = Constant
Note: A change in m1 because of interaction causes a change in C2. If the
change in m1 did not affect C2, there is no interaction between the loops:
11 = 1 and 22 = 1 and the loops are isolated from each other.
2. Change m2 to bring C2 back to its initial value prior to the change in m1.

This allows you to calculate the closed loop gain, or the denominator.

∆C
Closed Loop Gain = ∆ m1
1
C 2 = Constant

λ11 will be the ratio of these two gains and a measure of the interaction.

Saudi Aramco DeskTop Standards 17


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Example of a test on a process:


Summary of test steps.
1. Change m1 to find DC1 (m2 = Constant).

2. Change m2 to bring C2 back to where it was prior to test Step 1 (C2 = Constant).

²m 1 ²m 1
m1

²c 1 ²c 1
C1

C2

m2

A 2 x 2 process is not only the most common interaction problem, it is also comparatively the
simplest to solve, unless the relative gain is in the 0.5 region where decoupling is required.
The complexity of the plant test increases in higher order systems. Consider a test conducted
in a 3 x 3 system. We require (N-1)2 or 4λ's in this case and a lot of time and effort is
required to analyze the process.

Saudi Aramco DeskTop Standards 18


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Math Model or Ratio Method


Another approach for determining the RGA involves finding the math model for the process.
We will find the math model for the blending example below. Once the model is found the
relative gains can be determined by differentiating the math model.

r=F r=X

FC CC
m1
X

FT CT

m2 PRODUCT
Y F, X

where: F = total flow, X = composition


The process involves mixing the two streams x and y. The product formed must be controlled
for flow F and composition x. How is the loop constructed? Which valve is connected to a
particular controller to minimize interaction?
A mathematical model of this process along with some differentiation provides a solution
regarding the optimum arrangement for minimum interaction. The advantage of this
approach is that results can be obtained prior to the physical design of the process and without
actually testing the process assuming we can devise a mathematical model of the process.
To obtain the math model we will proceed with the mass balance and component mass
balance equations for this process.
Overall Mass Balance: F = m1 + m2
m1
Component Mass Balance x =
m1 + m2
These two equations are the mathematical model of the process.

Saudi Aramco DeskTop Standards 19


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The RGA array for this particular example is as follows:


m1 m2

F λ11 λ12

X λ21 λ22

Where:
λ11 = λFm1 , i.e Control of flow, F, using m1 as the manipulated variable
λ12 = λFm2 , i.e Control of flow, F, using m2 as the manipulated variable
λ21 = λXm1 , i.e Control of composition, x, using m1 as the manipulated variable
λ22 = λXm2 , i.e Control of composition, x, using m2 as the manipulated variable
Since this RGA is 2 x 2 we need to find only one relative gain number to determine the entire
array.
As defined:
Open Loop Gain (∂F / ∂m1)m2 = Constant (∂F / ∂m1)m2
= λFm1 =
Closed Loop Gain (∂F / ∂m1)x = Constant = (∂F / ∂m1)x
The open loop gain of λ can be found by differentiating the overall mass balance equation.
F = m1 + m2
ŽF
=1
Žm1 m2 = Constant
The results show that if we change m1, while m2 is constant, the flow, F, changes the same
amount as the change in m1.

Saudi Aramco DeskTop Standards 20


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The closed loop gain of λ can be found by differentiating the component mass balance
equation.
m1
x=
m1 + m2
(m1 + m2)x = m1
m1
m1 + m2 =
x
or
m1
F=
x
ŽF
= 1
Žm1 x = Constant x
The results show that if we change m1, keeping the composition, x, constant, the flow will
1
change by a factor of .
x
Solving for the relative gain λ11:
_F/_m1) m2 = Constant
λ11 = λFm1 = (
( _F/_m1) x = Constant
1
l11 = =x
1/x

Saudi Aramco DeskTop Standards 21


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

We can write the RGA:


m1 m2

F x 1-x

X 1-x x

The entire array is easily established by calculating one of the λ's, (λ11 in this case.) The
model could have been solved by calculating any of the other l's in the array.
( _F/_m2) m1 = K
i.e.: λ12 = λFm2 =
( _F/_m2) x = K
_x/_m1) m2 = K
λ21 = λxm1 = (
( _x/_m1) F = K
_x/_m2) m1 = K
λ22 = λxm2 = (
( _x/_m2) F = K
Now that we have determined the RGA, what do we do with the information? The numbers
in the array will help us connect the loops in order to minimize interaction.
Connectivity Rule. When pairing variables first consider positive λ's as close to 1 as possible.
To apply the connectivity rule let us look at the following three RGA's for the blending
example.
Case 1 - Suppose the value of λ11 = 0.7:
m1 m2

F 0.7 0.3
=
X 0.3 0.7

Saudi Aramco DeskTop Standards 22


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This means the flow, F, should be controlled with m1 and the composition, x, should be
controlled by m2.

m1 FC CC
X
r
FT CT
m2
Y F, X

Saudi Aramco DeskTop Standards 23


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Case 2 - Suppose the value of λ11 = 0.2:


m1 m2

F 0.2 0.8
=
X 0.8 0.2

Selecting relative gains as close to 1 as possible in this case the flow, F, is controlled with m2
and the composition x is controlled with m1.

m1 CC FC
X
r
CT FT

Y F, X
m2

Case 3 - Suppose the value of λ11 = 0.5:


m1 m2

F 0.5 0.5
=
X 0.5 0.5

In this case either pairing is equally poor as either m1 or m2 has the same effect on F or X.
Case 3 produced the maximum interaction according to relative gain analysis.

Saudi Aramco DeskTop Standards 24


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Solutions to severe interaction problems such as seen in Case 3 are available and will be
discussed later. Solutions involve:

• Solve the problem dynamically.

• Use a decoupling scheme to minimize the interaction.

All Loops Open Method

It is possible to evaluate the relative gain from a set of open-loop gains with all the loops
open. Consider the block diagram for the following 2 x 2 process:

CTR C1

m1 T
+
k11 • C1

k21 +

k12 +
+
k22 • C2

CTR C2

If we ignore the dynamic gains, the process equations can be written as follows:
C1 = K11 m1 + K12 m2
C2 = K21 m1 + K22 m2
As defined already:
ŽC1
Open Loop Gain Žm1 m2 = K
λ11 = =
Closed Loop Gain
ŽC1
Žm1 C2 = K

Saudi Aramco DeskTop Standards 25


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

So the steady state open loop gain or the numerator of λ11 is:

ŽC1
= K11
Žm1 m2

The closed loop gain or the denominator of λ11 can be found as follows:
C2 = K21 m1 + K22 m2
C2 - K21 m1
m2 =
K22
Substituting the m2 relationship we get:
C2 - K21 m1
C1 = K11 m1 + K12  
 K22 
We can now find the closed loop gain as follows:
ŽC1
Žm1 C2
- K21 _m1 K22
∂C1 = K11 ∂m1 +   K12
2
 K22 
 
K21 _m1
∂C1 = ∂m1 K11 - K12
K22

_C1 K21 K12


= K11 - Denominator of λ11
_m1 K22

Saudi Aramco DeskTop Standards 26


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Combining the two gain terms


K11 K11 K22
λ11 = =
K21 K12 K11 K22 - K12K21
K11 -
K22

or

1
l11 =
K21 K12
1-
K11 K22

The equation shows that the relative gain can be calculated, strictly from the open loop gain
K11, K12, K21 and K22.
This equation also allows a prediction of the range of l11 based on the signs of the open loop
gains. If the K terms have an odd number of positive signs, then l must fall between 0 and 1.

0 < λ11 < 1


If there are an even number of positive signs then l must fall outside the 0 to 1 range.

λ11 < 0

or

λ11 > 1

The Matrix Method


Beyond a 2 x 2 system it may be useful to apply matrix inversion techniques to determine the
relative gains.
Looking at the process equations for a 2 x 2 system:
C1 = K11 m1 + K12 m2
C2 = K21 m1 + K22 m2
∂Ci
Where = K ij is the open loop gain.
∂mj m

Saudi Aramco DeskTop Standards 27


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

These equations can be written in matrix form as follows:


C1 K11 K12m1
  =  
C2 K21 K22m2
i.e.
[C] = [K][m]
The process equations can also be written in an inverse form expressing the manipulated
variable m, in terms of the controlled variable C.
i.e. m1 = H11 C1 + H12 C2
m2 = H21 C1 + H22 C2
Žmj
Where: = H ji
ŽCi C
∂C i
Comparing H ji to the closed loop gain we see a reciprocal (inverse)
Žm j C
relationship.
ŽCi
Thus the closed loop gain = 1 .
Žmj C H ji
These equations can also be written in matrix form:
m1 H11 H12C1
  =  
m2 H21 H22C2
[m] = [H][C]
Writing the matrix equations in shorthand form we get:
[C] = [K][m] ; [m] = [H][C]

Saudi Aramco DeskTop Standards 28


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Manipulating these two equations we get:


[m]
[H][C] = [m] ; [C] = = [H-1][m]
[H]

[C]
Also: [m] = = [K-1][C]
[K]

[C] = [K][m] = [H-1][m] ;


So: [K] = [H-1] or [H] = [K-1]
This means that Hij is the reciprocal of the open loop gain Kij.
The relative gain can now be written in terms of K and H.
Open Loop Gain Kij
lij = = = Kij Hji
Closed Loop Gain 1
Hji

also from above, since:


[ Hij] = [ Kij-1]
then:
[H ji ] = [K ij -1]
T

We can now express the entire relative gain array Λ as follows:

= [K][K-1 ]T = [K][H]

X =

K11 K12 H11 H12 λ11 λ12


= =
K21 K22 H21 H22 λ21 λ22

Note: For a 2 x 2 system the matrix approach does not provide a big benefit since we
already have an expression of l from the open loop gains.

Saudi Aramco DeskTop Standards 29


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

3 x 3 systems
Beyond 2 x 2 systems the relative gain analysis becomes more complicated. The matrix
approach has distinct advantages and can be used for 3 x 3 systems, and beyond, more
effectively.
To evaluate a 3 x 3 system by the matrix approach we need to get the open loop gains by
testing the process.
A summary of the procedure is given below. (Work Aid # 1, Procedure for Relative Gain
Analysis - Matrix Method has more detailed procedure information.)
Summary of 3 x 3 matrix method:
1. Arrange the terms of the open loop gain in matrix form as follows:

K11 K12 K13 


K = K21 K22 K23 

K31 K32 K33 
2. Calculate the inverse of the gain matrix K-1.

3. Determine the (k-1)T transpose of K-1.

4. Determine the relative gains l's by multiplying each element in the matrix by its
corresponding (K-1)T term.

Saudi Aramco DeskTop Standards 30


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

ASSIGNING LOOPS TO MINIMIZE INTERACTION


The objective of our analysis of the various methods used to find a measure of interaction
between loops is to allow us to improve the control strategies used by either minimizing or
eliminating the interaction effects. These can be accomplished with varying degrees of
success by the following:
• Relative gain analysis can help us decide which manipulated variable should connect
to a controlled variable.

• Understand the role that dynamic gains can play in interacting control loops and use
this knowledge to design processes less prone to interaction.

• Tuning can be used to minimize interaction. Much like the process, the controller has
built-in dynamic and steady state gain adjustments (PID). These can be used in some
cases to minimize the problem.

Loop Assignments
Assign the control loops according to the connectivity rule: Pair loops so that lij is positive
and as close to one as possible.
The following table is designed to show the various possible values (and their significance)
for a particular relative gain.
SIGNIFICANCE OF THE RELATIVE GAIN NUMBER, l
1. λ = 1. Open loop gain = Closed loop gain. Either no interaction with other loops, or
else interactive effects cancel out. This is a good number to have. Loops with this
connection should have no problem.

2. λ = 0. This happens when the open loop gain = 0. Control of this loop depends on
other loops. This loop cannot be controlled if all other loops are open. (It may be
controlled due to dynamic coupling, if other loops are closed.) Avoid making this
connection.

3. 0 < λ < 1. There is interaction with other loops. Interaction extends period and raises
gain. Severity depends on actual gain of λij, the worst case being 0.5. At around 0.5,
decoupling is recommended unless the dynamics of the two loops minimize the
problem.

Saudi Aramco DeskTop Standards 31


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

4. λ > 1. Open loop gain > closed loop gain. When other loops are closed, they partially
offset control action of this loop.

5. λ < 0. Open loop gain is opposite in sign to closed loop gain. If mj is used to control
Ci, controller action would have to be reversed when other loops are placed in auto.

• Poor dynamic response

• Possible positive feedback and instability

6. λ >> 1. Closed loop gain approaching 0. Loops are completely dependent. This loop
cannot be controlled if other loops are on control.

Look at the 2 x 2 relative gain equation:

1
λ11 =
K21 K12
1-
K11 K22

We see that λ11 falls between 0 and 1 when the K terms have an odd number of positive
signs.

If on the other hand the K terms have an even number of positive signs λ falls outside the 0 to
1 range.

Example of λ in the 0 to 1 Range


An example of such a process is the simultaneous control of pressure and flow shown below:

PC FC

P h

PT FT

PIN POUT
m1 m2

Saudi Aramco DeskTop Standards 32


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

In this process both valves control both controlled variables as follows:


•` Increasing m1, increases both P and h.

• Increasing m2, increases h, decreases P.


i.e. P = K11 m1 - K12 m2
h = K21 m1 + K22 m2
Note: K11, K21, K22 are positive while K12 is negative.
This process is shown in block diagram form below:

LOOP 1
+ -
m1 p +
r=P • k11 = + •
+
Ι / D CONTROLLER
(-) k21 = +

k12 = -
+
+ m2 h
r=h • k22 = + •
- +
Ι / D CONTROLLER LOOP 2
(-)

All three loops, the two individual and one interacting loop, have an odd number of reverse
acting (-) elements and thus satisfy the requirement for negative feedback. The amount of
interaction will depend on the magnitude of the relative gains.
1
λ11 =
K12 K21
1-
K11 K22

Saudi Aramco DeskTop Standards 33


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

1
=
(-)(+)
1-
(+)(+)
λ11 must be between 0 and 1.
Example of Process with λ Outside the 0 to 1 Range
The process in this example consists of parallel streams from a single source.

FT
m1
F1

FT
m2
F2

For this process:


• Increasing m1, increases F1, but decreases F2.

• Increasing m2, decreases F1, increases F2.

i.e. F1 = K11 m1 - K12 m2

F2 = -K21 m1 + K22 m2

Saudi Aramco DeskTop Standards 34


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This process is shown in block diagram form below:

-
m1 F1 +
r = F1 • k11 + •
+ +
Ι / D CONTROLLER
(-) k21 -

Ι / D CONTROLLER k12 -
(-)

+ F2 +
r = F2 • k22 + •
m 2 +
-
C2

Individually each loop forms a negative feedback loop (odd number of positive elements.)
The third feedback loop in the interacting path, however, forms a positive feedback loop due
to an even number of positive signs.
1 1
λ11 = = >1
K12 K21 (-)(-)
1- 1-
K11 K22 (+)(+)
This implies that in a 2 x 2 process λ12 will be a negative number to complement for
λ11 being > 1.
Where the two interacting loops are identical λ11 will usually fall in a range of 1 to 2.
1 < λ11 < 2
To summarize all the λ possibilities we can state:

1. If all the steady state gains have an odd number of positive signs as in the example for
simultaneous control of pressure and flow, λ will fall between 0 and 1:

0<λ<1

Saudi Aramco DeskTop Standards 35


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

2. If all the steady state gains have an even number of positive signs λ will be either
greater than 1 or a negative number as seen in the parallel stream from a single source
example:

λ>1
or
λ<0
Dynamic Considerations in Interacting Loops
The relative gain analysis that we have applied so far is strictly from the steady state point of
view. The assumption was made that all the dynamic gains had equal magnitudes and
effectively canceled each other. It is unlikely that in a given 2 x 2 system, all four dynamic
gain vectors, g11, g12, g22, g21 will have the same values and therefore no interaction factor.
The dynamic gains have to be considered for interaction possibilities. The interaction
concerns are further complicated beyond the 2 x 2 systems, making loop assignments more
difficult.
The dynamic gain of a process as you recall from PCI 102.3 depends on the process
characteristics of dead time and capacity. The dead time ideally has a fixed gain value of one
while the gain of the capacity element varies with to/2pt. The dynamic gain of a controller as
discussed in PCI 102.4 is primarily a function of the integral and derivative gain adjustments.

Saudi Aramco DeskTop Standards 36


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The effect of dynamic gains on interaction was illustrated in the Blending System Example.

r= F FC AC r= X

m1
FT AT

PRODUCT
F, X

m2

WHERE F = TOTAL FLOW


X = COMPOSITION

Where: F = Total Flow


X = Composition
The worst case from the steady state point of view occurs when there is a relative gain λ11 of
0.5. This implies an RGA where all the values are 0.5 and severe interaction.
With this array each manipulated variable has the same effect on the total flow rate and
product composition. This results in strong interaction specially if the loops are tuned tightly
for similar types of responses. Instability develops when both loops are placed in automatic,
since each loop upsets the other. The interaction can be minimized or eliminated through one
of the following approaches.

Saudi Aramco DeskTop Standards 37


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Tuning
Tuning adjustments affect the speed of response of a loop. It is possible to make the loops
less interactive by tuning each loop to a different criterion. The objective here is to minimize
an existing interaction problem as much as possible with dynamic tuning adjustments. This
approach, although commonly practiced, is rarely an ideal solution and is effective only in
limited cases. Generally, dynamic tuning adjustments are effective in those cases where the
interaction was not very serious to start with. I. e., interaction between two loops of different
dynamic gains and speeds of response. The approach taken to make the loops less interactive,
is to exaggerate the existing difference in loop responses, by detuning the slower loop. This is
done by decreasing the dynamic gain of the slower loop, through its integral and derivative
adjustments. The advantage of this approach is the relative ease with which it provides a
quick solution to an existing interaction problem by making it less severe. One disadvantage
is that it is successful in only those cases where the interaction was relatively mild to start
with. A second disadvantage is that the detuning of the slower loop is a compromise and may
not always be acceptable, since it decreases its performance. If the loops have similar
dynamic gains and the relative gains show severe interaction possibility, detuning one of the
loops would not, in most cases, break the interaction. If the loops are extremely different
dynamically to start with, it may not be necessary to detune the slower loop since most likely
the dynamics do not allow interaction between these loops. Generally it is not necessary to
decouple a fast loop from a slow loop. Even when the steady state gain analysis shows strong
interaction possibility because of dynamic differences
(g12 ≠ g21) a fast loop will not upset a slow loop.
Designing the Process to Minimize Interaction
In some cases it is possible to design the process in such a way that the dynamic gains of the
loops' interacting paths are significantly different. In these cases the interaction potential as
calculated through the relative gain analysis (steady state gains) may be canceled
dynamically.
Since the dynamic gain of the process is a function of to/2pt, the process can be designed so
that one of the loops has a relatively large capacity compared to the other. Process design,
with the correct dynamic difference potentially eliminates the interaction problem.
Look at the Blending System Example. We see how the process can be redesigned and
dynamics can reduce the interaction problem. An analysis of this process shows a significant
difference between the two dynamic gains g12 and g21 effectively breaking the interaction
problem at any relative gain value.

Saudi Aramco DeskTop Standards 38


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

FC r

FT

CC r

CT

The dynamic response of the two loops now are significantly different. The large capacity of
the composition loop makes the composition loop much slower than the small capacity, fast-
flow loop. Even if the relative gain numbers are unfavorable (≈ 0.5) the dynamic gains
eliminate the interaction since slow loops can not upset fast loops.

Saudi Aramco DeskTop Standards 39


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

DETERMINE WHERE DECOUPLING IS APPLICABLE

Definition of Decoupling
We have seen that it is possible to minimize interaction through relative gain analysis and
proper connection of the manipulated variable to the controlled variable by application of the
connectivity rule for minimum interaction. We also have seen that in some cases the dynamic
gain of the controller can be adjusted by detuning the slower loop and dynamically breaking,
or minimizing, the interaction. A third alternative used process dynamics to design the
process so that the dynamic gain of the interactive paths canceled the steady state interaction.
What happens when the steady state interactions are large and the dynamic gains of the
interactive paths can not be used to break the interaction? When both loops approximate the
same dynamic and steady state gains the resulting interaction can be very severe and in some
cases drive the loop to instability. In these situations it is necessary to apply decoupling.
Decoupler A decoupler is a device (calculation) that is added to the control scheme to
eliminate the interaction between the manipulated and controlled variables in a multivariable
process. In effect a perfect decoupler produces single-loop control.
Decoupling Examples

Full Decoupling Example


Look at the Blending System Example once more and apply a decoupling calculation to break
the interaction.
Assume in this example a desired composition of 0.5. This would produce an unfavorable
relative gain array, where all the λ's are 0.5. Assuming that the dynamic gains are
approximately the same value we could consider a decoupling scheme.
m1 m2
F .5 .5
=
X .5 .5

Saudi Aramco DeskTop Standards 40


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

r= F FC AC r= X

m1
FT AT

PRODUCT
F, X
m2

Where: F = Total Flow


X = Composition
The process equations: F = λ11 m1 + λ12 m2
X = λ21 m1 + λ22 m2
To find the decoupler: F = λ11 m1 + λ12 m2
F l12 m2
Solving for m1: m1 = -
l11 l11
To eliminate interaction we would like to have the entire effect of changing m1 on F so that:
F = m1 λ11
or
F
m1 =
l11

Saudi Aramco DeskTop Standards 41


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Looking at the process equation:

F l12 m2
m1 = -
l11 l11

λ12 m2 λ m λ m
If we add to the above expression, we get m1 = F _ 12 2 + 12 2 .
λ11 λ11 λ11 λ11

The circled term is the decoupler.

Similarly: x = l21 m1 + l22 m2

and
x λ m
m2 = - 21 1
λ22 λ 22

To eliminate interaction we would like to have the entire effect of changing m2 on x so that:

x = m2 l22

or
x
m2 =
λ22

Looking at the process equation:


x λ m
m2 = - 21 1
λ22 λ 22

λ21 m1 λ m λ m
If we add to the above expression, we get m2 = x _ 21 1 + 21 1 .
λ22 λ22 λ22 λ22

The circled term is the decoupler.

Saudi Aramco DeskTop Standards 42


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Adding the decoupler to the control scheme eliminates the interaction between the loops.


m'1 m1
r FC • λ 11 • F
+ + +
– +

λ 12 λ 21
λ 11

λ 21
λ 22 λ 12

– +
+ m2' m2
r CC • λ 22 • X
+ +

Checking the effect of the decouplers:


Process equation: F = λ11 m1 + λ12 m2
λ12 m2
m1 = m'1 -
Decoupler equation: λ11

Combining the two equations:


 λ m 
F = λ11 m1' - 12 2  + λ12 m2
 λ11 

F = λ11 m'1

Saudi Aramco DeskTop Standards 43


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

For the second loop:


Process equation: x = m2 λ22 + m1 λ21
λ m
m2 = m'2 - 21 1
λ 22
Decoupler equation:
Combining the two equations:
 λ m
x =  m' - 21 1 λ22 + m1 λ 21
 2 λ 22 

x = m'1 λ22

As we can see the decouplers effectively produce another variable which is free of interaction.
There are various problems in applying a full decoupler as shown in the example. The
problems in applying decouplers can be summarized as follows:
• The decoupling network loses its effectiveness if process conditions change.

• The decoupler gain should not be constant if the process is nonlinear.

• The decoupler gain should have adaptive capabilities if the process is time-variant.

The risks involved in full decoupling are considerable. An inaccurate decoupler can degrade
control and cause potential instability. Decoupler errors can increase as process conditions
change and create serious control problems.
Avoid full decoupling systems except as a last choice.

Saudi Aramco DeskTop Standards 44


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Partial Decoupling
Interaction can be minimized or eliminated by a partial decoupling technique. Effectively,
only one of the interactive paths is eliminated in this approach. The question to be addressed
in implementing a partial decoupler is to choose which path to decouple in a 2 x 2 system.
The decision depends on factors such as:

• Speed of loops. Since slow loops can not upset fast loops decouple the effects of the
fast loop from the slow loop.

• For loops with similar response speed decouple the more important loop.
Example of Partial Decoupling - Blending System



m2
+ m1 + m2
m1
FC AC

m1
FT AT

F F, X

m2

Partial decoupling is used much more frequently than full decoupling in order to minimize
interaction problems.
The advantages can be summarized as follows:

• Ease of implementation.

• Less affected by decoupler errors.

• Sufficient for most applications.

Saudi Aramco DeskTop Standards 45


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

DETERMINE APPLICABILITY OF DYNAMIC MATRIX CONTROL (DMC)


TO MULTIVARIABLE CONTROL PROBLEMS

Introduction To DMC

Definition Of DMC
The letters D-M-C stand for Dynamic Matrix Control. Dynamic Matrix Control is a modern
control technology that is used to solve the larger multivariable control problems that we
encounter in refineries, gas plants, and other hydrocarbon processing plants. DMC control
technology is composed of the following component parts:

• Model Identification Utility Software

• Controller Development Utility Software

• On Line Controller Software, Consisting Of:

- Constraint Pushing, Optimizing Linear Program (LP)

- A De-coupling Controller

Each of these component parts will be discussed in more detail in later sections of this
module.
Historical Perspective
Multivariable control is a problem that has been looking for a good solution for many years.
Interactions between major control variables and their corresponding manipulated variables
have been studied and modeled. Solutions to the multivariable control problem have been
approached in piecemeal fashion. The appropriate hardware (computer and instrument
systems) to deal with these complex control problems effectively has only become widely
available to control engineers in the last ten to fifteen years. Prior to the advent of flexible,
powerful computer and instrument systems, the approach to designing control systems for
multivariable processes was as follows:
• Try to tune the interacting loops so that the interactions are less of a problem.
Typically, tune one loop tightly and the other(s) loosely. This approach often results
in poor control on one or more of the interacting loops. This technique is applicable
only to very small multivariable problems.

• Design and install de-couplers to minimize the effect of interactions on the controlled
variables. This approach also is practically feasible only for very small multivariable
control problems.

Saudi Aramco DeskTop Standards 46


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Neither of these approaches deals effectively with the many process constraints that occur in
most multivariable processes, nor do they help push the process to its constraints, nor do they
help determine the optimum operating conditions for the equipment being controlled. Also,
many of today's multivariable control problems have so many variables that neither of the two
above approaches is practical in the field.
Today, these approximate solutions to the multivariable control problem can be improved
upon significantly by utilizing DMC technology where warranted. Technical publications
describing DMC began appearing in the control literature in the early 1970's. Today, these
techniques have been applied widely to solve some of the petroleum industry's toughest
multivariable control problems.
Why Is DMC An Attractive Alternative?
Most of the DMC control packages available commercially have the following general
characteristics and features, which tend to provide the user with a control system that is
significantly superior to the classical approaches to multivariable control:
• They all address the large multivariable control problems found in industry.

• They encourage thorough plant tests and therefore a good dynamic model results.

• All interactions are taken into account.

• Anti-windup and initialization are handled correctly.

• An optimal controller is designed and installed.

• All pertinent constraints are taken into account.

• An LP, SQP, or other optimizing algorithm is included to maximize benefits.

• All of the above are included in a single software product.

Saudi Aramco DeskTop Standards 47


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Different Commercial Versions

DMC is offered by a number of control software vendors. The license costs are similar, and
are normally available for a single application, for a complete site, or for all facilities owned
by a company. This section will identify a few of the DMC software packages available on
the market today.
DMCC Version
The version of DMC technology to be described in this module is the version sold
commercially by Dynamic Matrix Control Company (DMCC). This DMC version is among
the oldest and most thoroughly proven implementations available today. It was developed by
the inventor of DMC, Dr. Charles Cutler of Houston, Texas. It has been applied many
hundreds of times, and today is virtually free of bugs. It has been applied successfully to the
full spectrum of multivariable control problems, from the very small 2x2 multivariable control
problems, to the very large problems having 20 or more manipulated variables and 40 or more
control variables. DMCC's version of DMC can be run on most of the upper-level processors
that can be attached to modern Distributed Control Systems (DCS's), such as the DEC VAX
or Hewlett Packard (HP) computers. DMC has also been implemented on Honeywell PMX
control computers. One of the strong points of DMCC's version of DMC is the model
identification utility software known as Dynamic Matrix Identification (DMI). The DMI
software is considered by many advanced control practitioners to be the best multivariable
model identification tool on the market today.
Honeywell Version
This version of DMC, called Horizon Multivariable Predictive Controller (HMPC) is of
particular interest to users of Honeywell TDC-3000 since it was designed to run on
Application Modules (AM's) that are directly connected to the Local Control Network (LCN)
of Honeywell's DCS. This arrangement makes it unnecessary to purchase, install and
maintain a higher level processor (such as the DEC VAX) in order to perform multivariable
control. Also, the AM can easily be made fully redundant, so that reliability can be increased
through the avenue of redundant hardware. HMPC is based upon mathematics that are
similar to that in DMCC's version, but implementation details differ.

Saudi Aramco DeskTop Standards 48


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

IDCOM Version
Another version of DMC, called IDCOM by its developers, has achieved some degree of
success in the marketplace, and is offered by several control software vendors. This version
of DMC utilizes a slightly different approach to the mathematics of plant representation and
control. For reasons not to be discussed here, it has not developed the following that DMCC's
commercial product has developed, and therefore will not be described in detail.
Other Versions Of DMC
There are many other versions of DMC available commercially. The mathematics of DMC
are so simple that many people have developed their own versions. This is an exercise often
attempted by graduate students as part of their thesis work in multivariable control. These
little known versions should be avoided until they command a significant share of the market,
because the process of bringing a new control software to maturity will take several years.
Only proven, mature control software should be used for on line control purposes.

Saudi Aramco DeskTop Standards 49


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

DMC Theory

Link To Classical Control Theory


The mathematical theory behind DMC is relatively simple. It will be described in this section
very briefly.
Consider the classical first order process with dead time, and its response to a step change in
its input at time equals zero:

RESPONSE VARIABLE

X
∆y ∆y

θ τ
ΚSS = ∆ y/∆X

∆X INPUT, FORCING, OR
∆X
INDEPENDENT VARIABLE

0 TIME

WHERE:
θ = DEAD TIME
τ = TIME CONSTANT
ΚSS = STEADY STATE GAIN

FIGURE 1. RESPONSE OF FIRST ORDER PROCESS WITH DEAD TIME

Saudi Aramco DeskTop Standards 50


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The response curve shows no reaction until the dead time has been exceeded, and then the
response approaches its steady state value in an exponential manner as shown in Figure 1,
above. This response curve is a model of a first order process with dead time. The process
can be described by three model parameters; dead time, time constant, and steady state gain.
From these three model parameters, the value of the response of the process can be calculated
at any time in the future if the step change in input is known. Also, from a knowledge of this
three parameter model, a good single input, single output (SISO) PID control system can be
designed.
Another important term will be defined using Figure 1. This term is the Time To Steady State
(TTSS). The TTSS is defined to be the time required for the process to settle out completely
after a step change to its input. TTSS can be estimated for first order processes using the
following equation:
TTSS = θ + (3 * τ )
where: = process dead time
= process time constant
Now consider the following response curve in Figure 2 below:

12

10
Y, MOLE PERCENT

8
RESPONSE TO UNIT
STEP CHANGE
6

4
RESPONSE TO STEP
CHANGE OF 0.5
2

0
0 1 2 3 4 5
TIME, MINUTES

FIGURE 2. DISCRETE RESPONSE TO STEP CHANGES AT TIME = 0.0

Saudi Aramco DeskTop Standards 51


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This response curve also is the result of a step change in the input to the process. This
response curve is not continuous, but rather is described by a series of five points. The
numerical values of these points is shown below:
Time Delta Mole Percent
1 1.5
2 5.0
3 8.3
4 9.5
5 10.0
Future values of the process output can be calculated from the above numbers, as will be
demonstrated momentarily. Therefore, this series of numbers can be viewed as a five-
parameter model. The extension to ten, fifteen, thirty, or even 100 parameters (or points) can
be visualized. The obvious advantage of such numerical models is that there is no restriction
on the shape of the response curve. It could be a well-behaved first order response like those
shown in Figures 1 and 2 above, or the response could be of a more complex shape, as shown
in Figure 3:

+3

+2

+1
ΚSS
0

–1

–2

–3

TIME,

FIGURE 3. A RESPONSE CURVE OF MORE COMPLEX SHAPE


(FROM A DISTILLATION COLUMN)

Saudi Aramco DeskTop Standards 52


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Figure 3 shows a shape that is encountered often on complex processes, especially when
feedback control loops are included inside the process model. The response curve in Figure 3
was taken from a distillation process. It represents the response of reflux flow to a step
increase in overhead pressure, where the top tray temperature was on control by manipulation
of the reflux flow. Figure 3 is a 20-parameter model.
Step Changes To The Discrete Model
In this section, refer to Figure 2, and to the five-parameter model that was derived from
Figure 2. Consider the response that would result if a step change (Dx) of magnitude +1.0
were applied to the five-parameter process model:
Dy1 = 1.5 * 1.0 = 1.5
Dy2 = 5.0 * 1.0 = 5.0
Dy3 = 8.3 * 1.0 = 8.3
Dy4 = 9.5 * 1.0 = 9.5
Dy5 = 10.0 * 1.0 = 10.0
See the top curve of Figure 2 for this response curve. If the step change were of magnitude
+0.5, the response would be as follows:
Dy1 = 1.5 * 0.5 = 0.75
Dy2 = 5.0 * 0.5 = 2.50
Dy3 = 8.3 * 0.5 = 4.15
Dy4 = 9.5 * 0.5 = 4.75
Dy5 = 10.0 * 0.5 = 5.00

Saudi Aramco DeskTop Standards 53


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This response curve is shown in the bottom curve of Figure 2. This response is algebraically
one half of the top response curve in that figure. This result demonstrates the linearity of this
modeling technique. In general, the response equations can be written as follows for an "n"
parameter numerical model, where the disturbance step is given by Dx at time equals zero:
Dy1 = a1 * Dx
Dy2 = a2 * Dx
Dy3 = a3 * Dx
Dy4 = a4 * Dx
Dy5 = a5 * Dx
Dyn = an * Dx
To further demonstrate the forward calculation capabilities afforded by this kind of numerical
model, consider the case in which two step changes are applied to the above model; the first
of size Dx = +1.0 at time equals zero, and the second of size Dx = -0.5 at time equals 1
interval.
At time interval 0 Dy1 = 1.5 * 1.0 = 1.50
At time interval 1 Dy2 = 5.0 * 1.0 + 1.5 * -0.5 = 4.25
At time interval 2 Dy3 = 8.3 * 1.0 + 5.0 * -0.5 = 5.80
At time interval 3 Dy4 = 9.5 * 1.0 + 8.3 * -0.5 = 5.35
At time interval 4 Dy5 = 10.0 * 1.0 + 9.5 * -0.5 = 5.25
At time interval 5 Dy6 = 10.0 * 1.0 + 10.0 * -0.5 = 5.00
At time interval 6 Dy7 = 10.0 * 1.0 + 10.0 * -0.5 = 5.00
Dx = +1.0 at time = 0.0 Dx = -0.5 at time = 1.0

Saudi Aramco DeskTop Standards 54


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This combined response, which demonstrates the additive nature of multiple changes in the
input Dx, can be shown graphically in the Figure 4 below. Notice that the steady state value
of the combined response is 5.0.

10

8 RESPONSE TO STEP
CHANGE OF
6 +1.0 AT TIME = 0

4
COMBINED RESPONSE
2
(SUM OF THE OTHER TWO CURVES)
0

-2

-4

-6 RESPONSE TO STEP
CHANGE OF - 0.5 AT TIME = 1
-8

-10
0 1 2 3 4 5 6

TIME, MINUTES

FIGURE 4. ILLUSTRATION OF LINEARITY OF RESPONSES

The General DMC Model Equations


This section will generalize the examples given above. The following are the general
equations that can be used to calculate the output(s) of a linear process with one independent
variable:
Dy1 = a1 Dx1
Dy2 = a2 Dx1 + a1 Dx2
Dy3 = a3 Dx1 + a2 Dx2 + a1 Dx3
Dyi = ai Dx1 + ai-1 Dx2 + ai-2 Dx3 +

Saudi Aramco DeskTop Standards 55


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

These equations can be written in matrix notation as follows:


Dy = A Dx
where the capital boldface letter A indicates a matrix, and the underscore indicates a vector.
These equations, when expanded, look like those in Figure 5 below:

∆ y1 a1 0 0 ----- 0 ∆ X1
∆ y2 a2 a1 0 ----- 0 ∆ X2
∆ y3 a3 a2 a1 ----- 0 ∆ X3
l l l l ----- 0 ∆ X4
l l l l ----- 0 l
l an a n-1 a n-2 ----- a1 l
l = an an a n-1 ----- a2 * l
l an a n-1 an ----- a3 l
l l l l ----- l l
l l l l ----- l l
l an l l ----- l l
l an an l ----- l l
∆ ym an an an ----- an ∆ Xn

FIGURE 5. EXPANDED GENERAL DMC MODEL EQUATIONS


The general equation for several independent (manipulated plus feed forward) variables can
be written as follows:
Dy = A Dx1 + B Dx2 + C Dx3 + ...
where the superscripts 1, 2, 3, etc., indicate separate manipulated or feed forward variables 1,
2, 3,...etc.

Saudi Aramco DeskTop Standards 56


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Calculating the Correct Control Response


Now that the response of any linear multivariable process can be calculated, the proper
control, or compensating response can be calculated. From this compensating response, the
actual controller outputs, or manipulated variable moves, can be calculated. Consider the
response in Figure 6 below:

PREDICTED
RESPONSE

SETPOINT

DESIRED RESPONSE
FROM CONTROLLER

FIGURE 6. OPTIMUM CONTROL IS OBTAINED BY FINDING A RESPONSE FROM


MANIPULATED INPUT THAT IS MIRROR IMAGE OF PREDICTED
RESPONSE ABOUT SETPOINT
Keep the above figure in mind. Our goal now is to calculate the optimum values of the
manipulated variables x. These optimum control values will result in the controlled, or
dependent, variables responding in the manner shown in Figure 6 above, completely
canceling any future deviations from set point. Note that if the two curves in Figure 6 are
added together algebraically, the result is a response exactly equal to the set point. This is
perfect control! Use the following derivation to solve the single input, single output (SISO)
control case using DMC. Extension to the multi-input, multi-output (MIMO) case is beyond
the scope of this training module.
The error in the control system at any time interval j into the future can be written:
ej = yj - SPj

Saudi Aramco DeskTop Standards 57


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

If we deal only with perturbation variables and let the set point be zero, the above equation
can be written in vector-matrix notation as follows:
e = A Dx
Keep in mind that the matrix A represents a set of step responses, as was shown in Figure 5
above. Now the task becomes one of simply solving for the Dx vector, which is the sequence
of future control moves of variable x that will produce the totally compensating response
shown in Figure 6 above. The solution is as follows:
ATe = ATA Dx
(ATA)-1 AT e = (ATA)-1(ATA) Dx
(ATA)-1 AT e = Dx
The right hand side vector, Dx, is the vector, or set, of best controller moves for n control
intervals into the future. The matrix A is the dynamic matrix for the process, which we
already know. Also, keep in mind that this solution is for the one independent variable case;
extensions to many independent variables is beyond the scope of this training module.
How The DMC Controller Algorithm/Optimizer Functions
The DMCC's DMC is normally implemented on an upper level processor, such as a DEC
VAX. The DMC program is a FORTRAN source program that is custom-configured by the
user as he chooses options during the controller implementation phase of installation. When
all configuration choices have been made (such as defining tag names, etc.), the FORTRAN
program is fully defined and its working version is generated by the utility. The user actually
does not have to understand or write any FORTRAN code. This FORTRAN program is then
compiled and begins executing on command from the user. In simple terms, the actual
operation of the controller algorithm with its accompanying optimizing LP can be described
as follows:

• Read all current PV's and validate them versus user-set validation limits and system
good/bad PV indicators. User-set validation limits are set through the DCS tags, and
are changeable by the user or by DCS programs.

• Read all LP costs, constraint limits, LP step sizes, etc.

• Set all y0 equal to y measured. This is the model-correcting feed back step, that
corrects future predictions to compensate for any error in the individual response
curves.

Saudi Aramco DeskTop Standards 58


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

• Execute the LP to calculate the optimum set points which are sent to the DMC
controller module..

• Calculate control outputs. All control calculations are done by the FORTRAN
program. No FORTRAN code, equations or algorithms need be written by the user.
All necessary code is delivered with the DMC license.

• Calculate manipulated variable trajectories for user plots of future predicted moves.
This allows the operator to see where the DMC controller is planning to move his
manipulated variables during the next the time to steady state (TTSS) window, such as
30 minutes, one hour, two hours, etc.

• Calculate control variable trajectories for user plots of future process responses. This
allows the operator to see where the DMC controller is predicting that the PV's of the
control problem, the "controlled variables" will go during the next time to steady state
window. This display usually gives the operator confidence that the controller "knows
what it is doing". See Figure 7 below for an example of this prediction into the future.

410

400 THIS CURVE FROM DCS THIS CURVE PREDICTED


HISTORY DATA BASE BY DMC CONTROLLER

390

380

FINAL GOAL
370 388°F

360

350
-2 -1 0 1 2
PAST HISTORY, HOURS CURRENT TIME FUTURE TIME, HOURS

FIGURE 7. OPERATOR DISPLAY SHOWING PAST HISTORY


AND FUTURE PREDICTED TRAJECTORY

Saudi Aramco DeskTop Standards 59


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

• Update all controller performance indicators for user monitoring. These values are
stored into the DCS and allow the user to determine, for example, which manipulated
and controlled variables are at constraints.

• Apply only the first control move (x1) to the manipulated variables. This store of set
points to the manipulated tags can be either automatic (usually the case), or it can be
forced to go through user-written validation logic prior to storing the set points. Only
the first control move is actually implemented. The remaining moves are tested during
the controller calculations to ensure that constraints are not violated.

• Wait until next control interval. The FORTRAN controller program then goes into a
"hibernate" mode on the VAX (or similar state on other computing platforms) until
time to run again. Normally controllers will run every one to five minutes.

Application Of DMC Technology


Utilization of DMC control technology in the field is a six-step process. These steps are:
1. Planning the DMC application

2. Conducting the plant pre-test

3. Tuning, plant fix up, economic justification

4. Conducting the full plant test

5. Model development, controller development, and initial controller tuning

6. Implementation, final tuning, operator training

These steps will be discussed in detail in the next paragraphs in this section.

Saudi Aramco DeskTop Standards 60


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Planning The DMC Application


The DMC application should be planned carefully. All interested parties, including the
Proponent representative, should attend a DMC application planning meeting. The primary
goal of this meeting is to obtain buy-in from all affected organizations. The attendees for the
first DMC planning meeting should include at least the following:
• The control engineer(s)

• Any consultants retained by the control engineer

• The process operator(s) who will be affected

• The supervisor of the process operators

• The technical support engineer

• Anyone who is concerned with scheduling, plant throughput, etc., such as OSPAS.

This introductory meeting will last about a day. During this time, a brief introduction to DMC
is presented. Areas of potential benefit to Saudi Aramco are discussed, and possible impacts
on the operation of the plant are outlined. The total duration of the plant test is predicted by
the control engineer. Once these items are discussed and agreed to by all present, a detailed
discussion of the operation of the plant begins. All normal operating modes, special kinds of
operations, and especially constraints on the operations are discussed in great detail. All
variables that could possibly impact control or operation of the plant should be included in the
plant test. Any special instrumentation problems are noted and discussed, and any special
laboratory work is identified at this time. Normally, the operations department will assign an
experienced process operator or supervisor to be a permanent part of the testing and
implementation team for the duration of the entire DMC implementation effort, which could
last from two to eight weeks, depending upon the size and complexity of the plant and the
planned controller. This person will be operations' "owner" and champion of the new DMC
application. His power of persuasion and his close ties with his fellow workers at the console
will greatly facilitate "selling" this application to operations.

Saudi Aramco DeskTop Standards 61


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The Pre-Test
The plant test is normally conducted in two parts; a preliminary plant test, and the full plant
test. The full plant test will be discussed later. The preliminary plant test will last for two to
four days. The purpose of the preliminary plant test is to identify any excessively noisy
signals and filter them properly, to identify any tuning problems on control loops at the
regulatory level, and to identify any problems with valves and/or transmitters that should be
repaired prior to conducting the full plant test. Depending upon the scope of tuning and/or
valve and transmitter repairs, it may be necessary to bring the team back together to plan
solutions to these problems as a group. Typically, numerous problems are identified and must
be repaired. A week or more may be required to bring tuning and other factors up to an
acceptable level of performance. Another benefit of the preliminary plant test is that the
proposed move size for the manipulated variables can be tested to make sure that they are
large enough to generate significant (above the noise level) responses in the dependent
variables.
The pre-test gives an excellent opportunity to ensure that the data collector software is
working flawlessly. Test it by collecting data for several hours and then dump the data to
diskettes to check for correctness, etc. Collect data at least once per minute, snapshot data
only; no averages. Collect data every 15 seconds if possible. Actual data collection
frequency required depends on the process and its dynamics. Be prepared to collect data for
up to a week at a time without interruption. Often, 10,000 to 20,000 individual data values
for each tag may be used in model identification. The data collector may be a separate DCS
function from the historical data collection facility. Unless you know beyond a shadow of a
doubt that the historical data are snapshots and not averages, and you prove to yourself that
you can access and dump the data to a floppy disk at any time, do not rely on the historical
data collector.
Collect data on every tag that could in any way affect the process. Be sure to include ambient
temperature, cooling tower water temperature, fuel gas quality, steam pressure and
temperature, and the positions of all valves on the process. Collect data on the set points
(SP's) of the manipulated variable tags.

Saudi Aramco DeskTop Standards 62


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Tuning, Fix up, Economic Justification


As mentioned above, the purpose of the preliminary plant test is to identify any excessively
noisy signals and filter them properly, to identify any tuning problems on control loops at the
regulatory level, and to identify any problems with valves and/or transmitters that should be
repaired prior to conducting the full plant test. If any major repairs and/or changes to the
plant are required, they should be started as soon as possible after completion of the pre-test.
Do not be alarmed if numerous control loops are found to be in need of re-tuning; this is quite
normal. Use scientific tuning methods to do the best possible job of tuning. Try to filter any
particularly noisy tags at the DCS scanning level at a high frequency, where filtering is most
effective with minimum phase lag.
This is a good time to look for malfunctioning valves. These should be repaired before
proceeding with the full plant test. A week or more may be required to bring tuning and other
factors up to an acceptable level of performance.
A parallel effort can be made at this time to do the initial model building using the pre-test
process data. The complete job of model building will be done later, but the pre-test data can
be submitted to the model identification program DMI, which will yield results that are not
good enough for control, but which may allow some estimates to be made of economic
justification for the DMC application. The estimates are made using the LP feature of DMC.
The Full Plant Test
The success or failure of a model based controller, like DMC, obviously depends upon the
quality of the model used in the controller. A poor model will result in a poor controller, no
matter how much tuning the user does, and no matter how frequently the controller is run.
The keys to obtaining a good model of the process to use in the controller are, first to conduct
a good, thorough plant test, and second, to have access to a good model development tool.
The second key, the model identification tool, comes as a completed, documented software
package with the DMC license. Therefore, the plant test will be the focus of the remainder of
this discussion.
The plant test should be well planned, with all interested parties in attendance for the planning
session. This usually includes the control engineer and any consultants that he has retained,
the process operator(s) who will be affected, the supervisor of the process operators, and
perhaps the technical support engineer. There are specific guidelines for producing a good set
of test data from which a good set of response curves (the plant model) can be obtained.
Those guidelines are outlined briefly in the following paragraphs.

Saudi Aramco DeskTop Standards 63


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The full plant test is conducted on a 24 hours per day basis, and may last for several days, and
perhaps as much as two weeks. Coverage of the full plant test on a around the clock basis by
technical personnel should be arranged during the planning phase of the test. The actual
duration of the full plant test depends upon two factors; the time to steady state (TTSS), and
the number of independent variables (manipulated plus feed forward variables) involved. The
guidelines for good results generally require that each manipulated and feed forward variable
be moved about 20 times during the test. The moves should be large enough to cause
responses in the dependent variables to be at least five times the normal noise level. Moves of
various time duration are desirable, for example, some moves at a duration of one half TTSS,
some moves at a duration equal to the TTSS, and some moves of twice the TTSS in duration.
Normal practice is to make a move on only one manipulated variable at a time. A move
consists of, for example, a step in the upward direction, then after the proper time has passed,
a move in the downward direction of the same magnitude is made. Then the next variable is
moved. The sequence of variables to be moved should be somewhat random in order.
Variables may have to be moved in a single step (or a series of small steps) in a single
direction to keep the process under control. The movement rules are somewhat flexible, but
the user should not stray too far afield here, in order to guarantee a good model. The
minimum length of the entire test therefore can be estimated from the following equation:
Test period = 20 * TTSS * (Number of Manipulated Variables)
Any delays caused by equipment or other problems will add to the minimum time for the test.
During the plant test, it is a very good idea to begin running the DMI software on all data that
has been accumulated up to that time in the test. The purpose of this is to allow the test team
to revise its estimate of TTSS if necessary, to enhance the latter phases of the test period, and
to allow visual inspection to help determine when enough data have been collected for a good
model. Also, important interactions that are expected to make themselves known are
checked. If any are missing in the response curves, the affected variables can be re-tested to
insure that the appropriate interactions are clearly defined in the model. And finally, if the
size of the moves is insufficient to generate significant responses in the dependent variables,
this will become evident at this time, and the move size can be increased as necessary.

Saudi Aramco DeskTop Standards 64


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Model Development, Controller Development, Initial Controller Tuning


Once the plant testing phase has been completed, the DMI software is used to develop
families of response curves for different proposed TTSS's. Multiple runs of the DMI program
regresses each dependent variable against all possible independent variables. Empirical rules
are used to choose the best overall TTSS based on these families of curves. Each response
curve must be proven logically before being accepted into the model. A logical test would be
a series of questions such as "The temperature was increased. Should this analyzer have
increased or decreased?" When the response has passed this engineering logic test, it is added
to the aggregate model of the process. At the completion of this model development exercise,
an aggregate model will be obtained which could theoretically contain D x (M + F) possible
response curves, where D is the number of dependent variables, M is the number of
manipulated variables, and F is the number of feed forward variables. However, the model
matrix is almost never fully populated with response curves, since often there will be no effect
of certain manipulated variables on certain dependent variables. A normal population density
in the model matrix would be perhaps 25 to 30 percent non-zero response curves.
When a satisfactory model is in hand, the actual development of the controller can begin.
DMCC's utility software again is used during this phase of the job. The dynamic matrix build
utility is used to create the controller dynamic matrix. This utility will require that tuning
information be entered as part of the matrix build procedure. The utility software asks a series
of questions, such as the identity of the file containing the model response curves, the desired
control frequency, and the names of the tags involved in the controller, by type. When all of
this information has been entered, the controller builder utility will generate a FORTRAN
source file that can be compiled and used later to control the process. Controller tuning is
normally done in two phases, the off line phase and the on line phase. If careful attention to
detail is given to the off line phase, little or no tuning will be required on line. The DMCC
software includes an off line simulation utility that allows repeated runs of the controller with
different tuning parameters in a trial and error manner. This simulation work is normally
done on a PC. Usually, several hours of off line tuning work are sufficient to produce a
controller that is tuned adequately well to justify an on line test run.

Saudi Aramco DeskTop Standards 65


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Implementation, Final Tuning, Operator Training


Implementation involves actually installing the controller on the process control computer,
building associated tags, and building operator displays to support the control application. It
is customary to install this control program with the on line/off line switch (under engineering
control) set to "off line". This will allow the operator to see the newly developed controller
predicting the future for him and will help build confidence that the controller is going to
work correctly. This "on line but open loop" phase of implementation will give the control
engineer time to build and/or modify control schematics that apply to this new DMC
application. The on line open loop phase of controller implementation typically lasts from
one to two weeks, depending upon the total time spent in off line tuning, operator training,
and control schematic preparation.
The on line test run should be conducted only under tight supervision of the operator and
control engineer. The on line test run should be made only after the controller has been
running in the open loop mode on the upper level processor and DCS for at least week for the
reasons described above. Even before closing the loop (allowing the controller to change set
points), the controller's proposed future control adjustments can be seen on the operator
display. These future adjustments are often enough to allow "on line" tuning without ever
placing the controller "on line"! Assuming that the open loop responses and controller
adjustments look reasonable, the next step is to actually close the loop. Constant observation
is required in case the controller does something unexpected. The controller should be taken
off line at the end of the daily on line test period. Tuning adjustments, when necessary, are
made through the controller matrix build utility described above. Tests for adequate tuning
should include changing the upper and lower control limits, and changes to the feed forward
variables, if possible. Only long term (several weeks) observation will really demonstrate
whether or not tuning is adequate.
Applicability Criteria
Developing and installing a DMC controller looks like, and is, a lot of work. How do you
know when DMC technology is the correct technology to use on a control and/or optimization
problem? There are several criteria that can be used to determine the suitability of DMC in
your plant. These criteria are listed below, and are discussed in more detail in following
paragraphs.
1. A good DCS

2. Multiple manipulated variables

3. Process must have interactions between the major control and/or constraint variables

Saudi Aramco DeskTop Standards 66


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

4. A process with many constraints

5. A relatively slow process

6. Linear or linearizable process

You Must Have A Good DCS In Place


A good, reliable DCS forms the basis for measuring process variables and for implementing
changes to set points that are calculated by a DMC controller. DMC can be made to work
with old board-mounted instruments and "supervisory" computers, but the chances for long
term success are not good. A fairly recent DCS with a VAX or HP upper level computer
attached to the DCS should be considered to be the minimum hardware requirement.
Linear Or Linearizable Processes
The mathematics of DMC are linear. In the real world, there are few processes that are
perfectly linear. However, many processes are approximately linear, and therefore DMC is
applicable to these processes. Many processes that are not linear can be linearized by simple
mathematical transformations. A well-known example of this is the use of the logarithm of
composition rather than straight composition for linearization of the quality control of certain
light ends towers. There are many other linearizing relationships, e.g. ratios, that will remove
much of the non-linearities from common processes. Therefore, DMC is much more widely
applicable to non-linear processes than would appear to be the case.
Another factor relating to linearity that allows DMC to work for processes that are not
perfectly linear is that the mathematics produce a robust controller which will work
acceptably well, if not very well, for significant amounts of certain types of non-linearity. An
example of this is that the controller works very well at significantly turned-down feed rates
on processes for which the controller was designed at maximum feed rates.
Multiple Manipulated Variables
The basic concept of multivariable control is rooted in the fact that there is more than one
manipulated variable. If a control problem has only one manipulated variable, other
techniques would be adequate and a lot simpler to use as well. There would be no incentive
for using DMC.

Saudi Aramco DeskTop Standards 67


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Interactions Between Controlled And/Or Constraint Variables


A multivariable process that has no interactions between controlled variables is essentially a
series of SISO processes grouped together. If your process has no significant interactions
between manipulated variables and the several dependent variables, the control problem can
be treated as a set of single-loop controls. Again, there would be no incentive for using DMC.
Constraints
The existence of multiple constraints is also an indicator that DMC might be of use in
addressing a certain control problem, since DMC handles many constraints in an organized,
packaged way. This is in contrast to the very awkward manner in which constraints must be
handled when implementing multivariable control in the classical way.
"Slow" Processes
The DMC controller is complex, and the FORTRAN program that is executed to perform the
DMC control uses significant computer resources. Because of the current technology
limitations of computing platforms and DCS's, the DMC applications should not be run faster
than about a once per minute. Therefore, control of very fast processes, such as compressors
and liquid-filled systems should not be attempted. The once per minute execution frequency
limits application of DMC to processes with a dominant time constant of about five minutes
or longer. There are occasional exceptions to this rule, however, and a particularly beneficial
application could be run as fast as necessary to accomplish the task, to the limit of the
capabilities of the computing platform.

Saudi Aramco DeskTop Standards 68


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Examples

Binary Distillation Process


Consider the distillation column shown in the figure below:

P T
100 105 L
102
T
101 CW
L
100

REFLUX DRUM
P
101 F
102 F A
101 101

T F T
100 100 102
C 3 PRODUCT

P T
102 103

F
103
L
101
STEAM

F A
104 102

C 4 PRODUCT

FIGURE 8. SIMPLE BINARY DISTILLATION PROCESS

Saudi Aramco DeskTop Standards 69


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

This distillation column separates a binary mixture of propane and butane. The operating
objectives of this column are as follows:
• Produce both butane and propane products on specification if possible. If one
specification must be sacrificed to meet throughput demands, sacrifice the propane
spec.

• Maximize production of butane or propane (choice to be made daily or weekly) to any


or all of the following constraints:

1. Column delta pressure (flooding indication)

2. Reboiler heat input limitation

3. Condenser duty limitation

4. Reflux and bottoms pumping limitations

5. Feed availability limitation

6. Bottoms product rate must not exceed X B/D due to down stream limitation

• Minimize energy consumption.

A classical control system to achieve the above objectives would be very tedious to design,
install, and maintain. However, a DMC controller can be designed rather easily to accomplish
this control task. The controller matrix to accomplish this task could look something like this:

Saudi Aramco DeskTop Standards 70


A101 A102 L102 PV100 FV102 FV101 FV103 LV101 F1O4 P101 P102

T101
Engineering Encyclopedia

F103

Saudi Aramco DeskTop Standards


F100

P100

T100

T105

HIGH

LOW
Multivariable Control and Solutions to Interaction
Instrumentation

71
FIGURE 9. DYNAMIC FOR BINARY DISTILLATION PROCESS
Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Three-Product Distillation Process


An even more difficult problem is the three-product distillation column. The addition of the
third product adds almost geometric complexity to the classical approach to distillation
column control. Fortunately, the increase in complexity in the DMC case is only slight.
Below is a typical three-product distillation column:

P T
100 105 L
102
T
101 CW
L
100

REFLUX DRUM
P
101 F
102 F A
101 101

T F T
100 100 102
OVERHEAD
PRODUCT

T F A
P 106 105 103
104

SIDESTREAM PRODUCT
P C
102 xxx

T
103
F
103
L
101
STEAM

F A
104 102

BOTTOMS
PRODUCT

FIGURE 10. THREE PRODUCT DISTILLATION PROCESS

Saudi Aramco DeskTop Standards 72


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

The operating objectives of this column are:


• Produce all three products on spec. No deviations from specification are allowed in
sales of these products. However, if anything must be produced off-specification, the
priority order for the products is; side stream most valuable, bottoms product next,
overhead product is of least value.

• Maximize production of side stream to the following constraints:

1. Delta pressure in all three sections of the column.

2. Heat input and condenser limits.

3. Pumping limits on all flows.

4. Bottoms product rate limited by down stream constraints

5. Very Important! Do not allow trays below side stream draw tray to run dry

• Overhead can exceed specification, but not violate specification, same with bottoms
product.

• Side stream quality must be between 1.5 and 3.5 mole percent in quality. Anywhere in
that range is OK, outside that range is a violation.

• Minimize energy.

A control matrix for this distillation column might look something like this:

Saudi Aramco DeskTop Standards 73


A101 A102 A103 T106 T103 L102 PV100 FV102 FV103 LV101 F104 P101 P102 P104 Cxxx

T101

F103
Engineering Encyclopedia

Saudi Aramco DeskTop Standards


F100

F105

P100

T100

T105

HIGH
Multivariable Control and Solutions to Interaction

LOW
Instrumentation

74
FIGURE 11. DYNAMIC NATURE FOR A THREE PRODUCT DISTILLATION PROCESS
Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

WORK AID 1: PROCEDURE FOR CAL CULATING RELATIVE GAINS USING


OPEN-LOOP GAIN INFORMATION

Case 1: Procedure for a 2 x 2 System


Given a 2 x 2 system proceed to obtain the open loop gains through the following test. Make
sure you have the required permission/authorization to conduct the test.
1. With both loops in manual and all variables at steady state (drawing straight lines),
change m1 a small amount Å 10% and record the changes in measurements c1 and c2.

Æm1 = Æc1 = Æc2 =

2. Repeat step #1 this time changing m2 Å 10% and record the following:

Æm2 = Æc2 = Æc1 =

3. Calculate the steady state gains k11, k12, K21 and K22 as follows:

∆c1 ∆c 2
K11 = K22 =
∆m1 ∆m2

∆c 2 ∆c1
K21 = K12 =
∆m1 ∆m2

4. Calculate the relative gain according to the following equation.

1
λ11 =
K12 K 21
1-
K11 K22

Saudi Aramco DeskTop Standards 75


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Case 2: Procedure for a 3 x 3 Systems


The open loop steady state gains can be determined using the same method to test the process
as described in the 2 x 2 procedure. Once the steady state gains are determined proceed as
follows:
1. Arrange the open-loop gains as shown in the following gain matrix.

K11 K12 K13 


K Matrix = K 21 K22 K 23 
K 31 K32 K 33 

2. Calculate the determinant D from the following equation:

D = K11K22K33+K13K21K32+K12K23K31-K13K23K31-K12K21K33 -
K11K23K32

3. Determine the inverse of the gain matrix H = K-1 and arrange it in the following
matrix:

H11 H12 H13 


H = K-1 = H21 H22 H23 
H31 H32 H33 

Saudi Aramco DeskTop Standards 76


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

4. Calculate four of the H values of the inverse matrix according the following equations.
Since the sum of the rows and columns has to equal one, we need only four relative
gain values to complete a 3 x 3 relative gain array.

K22K33 - K 23K32
H11 =
D
K11K 33 - K13K 31
H22 =
D
K11K22 - K12K 21
H33 =
D
K13K 32 - K12K33
H12 =
D

5. Calculate the required relative gains according to the following equations.

λ11 = K11H11

λ22 = K22H22

λ33 = K33H33

λ21 = K21H12

6. Complete the RGA using the sums of rows and sum of the columns equal to one rule.

λ11 λ12 λ13 


= λ 21 λ 22 λ23 
λ 31 λ 32 λ33 

Saudi Aramco DeskTop Standards 77


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

WORK AID 2: LOOP ASSIGNMENT RULES TO MINIMIZE INTERACTION


Connectivity Rule
When pairing variables first consider positive l's as close to 1 as possible. Avoid using
negative λ's.
Summary of the Significance of the Relative Gain Number λ
Case 1: Range of : 0 < < 1
When l falls in this range the degree of interaction depends on the value:
• λ = 1. No interaction (or interactive effects have canceled out) open loop gain =
closed loop gain. This is a good number to make connections.

• λ = 0. This loop can not be controlled when other loop(s) are in manual. Open loop
gain = 0. Control of this loop depends on other loops being in automatic. Avoid
making this connection.

• λ = 0.5. Severe interaction unless the dynamic differences between the two loops
minimize the problem. Requires some form of decoupling. Avoid making this
connection.

Saudi Aramco DeskTop Standards 78


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

Case 2: Range of : > 1 or <0


When l falls in this range we would get positive λ's greater than one along with some
negative λ's.
• λ > 1. Open loop gain of this loop > closed loop gain. Interaction reduces control
effectiveness of this loop. Controller gain can be increased to increase its
effectiveness. This connection can be made assuming λ is close to 1.

• λ >> 1. Closed loop gain approaches 0. Loops are completely dependent. Avoid
making this connection.

• λ < 0. Open loop gain opposite in sign to closed loop gain. This loop is only
conditionally stable due to possible positive feedback problems.* It produces poor
dynamic response. This connection should not be made.

* Positive feedback occurs in the third loop (in the interactive path) of a 2 x 2 system. The
positive feedback loop, assuming it has a large enough gain can dominate the two negative
feedback loops driving them to instability. Conditional stability can be achieved if the action
of one of the controllers is reversed.

Saudi Aramco DeskTop Standards 79


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

GLOSSARY
binary distillation A distillation process that separates only two components.
process
blending The mixing of ingredients so that they are indistinguishable from
each other in a mixture.
bottoms The higher boiling product streams usually taken from the
bottom of a distillation column.
closed loop A control loop where there is feedback type corrective action,
usually to bring measurement to the set point. Controller is in
automatic mode.
composition A product of mixing or combining various elements or
ingredients.
condenser The heat exchanger, located at the top of the column, that
condenses overhead vapors.
conditional stability The property of a controlled process by which it can function in
either a stable or unstable mode, depending on the conditions
imposed.
controlled variable A process variable which is to be controlled at some desired
value by means of manipulating another variable.
DCS Acronym for Distributed Control System. Distributed Control
Systems involve a supervisory (master) process computer
located in a centralized control room. This supervisory
computer communicates with several subordinate (slave) small
process computers located in various parts of the plant that are
assigned to control a few loops (typically 10 to 30.)
decoupling The technique of reducing process interaction through
coordination of control loops.
distillation A unit operation used to separate a mixture into its individual
components through vaporization of the substance and
subsequent condensation of the vapors.
DMC Acronym for Dynamic Matrix Control. A linear multivariable
system using an internal-model control algorithm, based on the
results of tests conducted on the process under closed-loop
control.
full decoupling The imposition of a computing network which will cancel the
interaction naturally occurring in the process and allow each
loop to operate as an independent single loop.
interaction A phenomenon, characteristic of a multivariable process in
which the effect of a manipulative variable change in one control
loop not only affects its own controlled variable, but also the
controlled variable in another loop.
manipulated variable A quantity or condition which is varied so as to change the value
of the controlled variable.
matrix In mathematics, an n dimensional rectangular array of quantities.

Saudi Aramco DeskTop Standards 80


Engineering Encyclopedia Instrumentation
Multivariable Control and Solutions to Interaction

They are manipulated in accordance of the rules of matrix


algebra.
multivariable control A control system involving several (more than one) controlled
variables and manipulated variables.
open loop A control loop where there is no corrective action. Controller is
in manual mode.
partial decoupling A computing network that in a 2 x 2 system cancels the
interaction either partially or in one direction.
positive feedback A closed loop in which any change is reinforced until a limit is
eventually reached.
reboiler A heat exchanger at the bottom of a distillation column. The
reboiler generates vapors by boiling a portion of the liquid that
leaves the column.
reflux A recycle stream that is returned to the top of the column. This
stream supplies a liquid flow for the rectifying section that
enriches the vapor stream moving up the column. Material in
the stream is condensate from the overhead condenser. Reflux
closes the energy balance by removing heat introduced in the
reboiler.
relative gain An open loop gain determined with all other manipulated
variables constant, divided by the same gain determined when
all other controlled variables are constant.

Saudi Aramco DeskTop Standards 81

You might also like