Abstract
A multi-disciplinary laboratory for control education has Tank 3 Tank 4
been developed at the University of Delaware to expose
students to realistic process system applications and ad-
vanced control methods. One of the experiments is level
control of a four-tank system. This paper describes two
model-based methods students can implement for control
Tank 1 Tank 2
of this interacting four-tank system. Sub-space identifica-
tion is used to develop an empirical state space model of
the experimental apparatus. This model is then used for
model based control using Internal Model Control (IMC). Pump 1 Pump 2
This represents an application of inner-outer factorization
for non-minimum phase multivariable IMC design. Mod-
eling is also performed using step tests and Aspen soft-
ware for use with Dynamic Matrix Control (DMC). Figure 1: Schematic of the interacting four-tank process.
Keywords: Predictive Control, Internal Model Con- The two manipulated variables are the pump speeds. The
trol, Process Control Education, Experimental Apparatus two controlled variables are the levels of tanks one and
two. Unmeasured flow disturbances can affect tanks three
and four.
Introduction
spring mass damper system, a virtual boiler, and a four-
Process control courses for chemical engineers often
tank system. The undergraduate experimental control
emphasize complex theoretical and mathematical issues
course is offered every year in the Spring semester. Stu-
while devoting limited time to implementation of applica-
dents from mechanical, electrical, and chemical engineer-
tion of control methods. In order to reinforce and demon-
ing disciplines participate in this class. The students are
strate the concepts presented in a lecture, practical labora-
grouped with students from other majors. This multi-
tory applications can be developed for students. The ex-
disciplinary group facilitates peer learning in that students
perience of working on a laboratory experiment in an aca-
familiar with the principles of a given experiment must
demic setting exposes students to realistic industrial prob-
help other group members. The students enrolled in the
lems. Laboratory work can expose students to process
process control laboratory have all taken the basic pro-
details that are often neglected in computer simulation,
cess control course taught in their individual departments.
including measurement noise, measurement bias, process
The basic knowledge of process control allows the exper-
nonlinearity, equipment failure, actuator constraints, and
imental laboratory course to cover advanced applications
external disturbances.
of process control.
A multi-disciplinary process control laboratory has
been developed at the University of Delaware. Experi- A four-tank level control system has been constructed
ments currently include: an inverted pendulum, an elec- for use in the control laboratory. This paper details the use
tric servo motor, a gyroscope, a distillation column, a of model identification and model-based control methods
for control of this interacting four-tank system. The four-
Author to whom correspondence should be addressed: tank system is based on the system presented by Johans-
fdoyle@che.udel.edu son and Nunes [2]. A schematic of the process is shown in
1
Figure 1. The experiment has two inputs (pump speeds) a1 ; a2 2:3 cm 2
k1 5:51 cm =s
3
+ A
32 k2 k A13d1
(1 )
4
d
2
dt
dh4 =
A3
a4 p2gh 3
+ A
41 k1 k A24d2
(1 )
2
d
model is used explicitly in the control algorithms. The
methods considered in this work include multivariable In-
dt A4 4 1
ternal Model Control (IMC) and Dynamic Matrix Control
Table 1: Nonlinear model equations for the four-tank sys- (DMC). Non-minimum phase behavior of the system re-
tem. quires that inner-outer factorization be used for the multi-
variable IMC design. The right-half plane pole also cre-
A full nonlinear mass balance model of the system is ates performance limitations for the closed-loop system.
given in Table 1. Here, Bernoulli’s law is used for flows Because the system has an adjustable zero, the system
out of the tanks, hi is the level of water in tank i, 1 and can be adjusted to exhibit minimum phase behavior and
2 are the manipulated inputs (pump speeds), and d1 and demonstrate improved control response.
d2 are external disturbances representing flow out of tanks The physical system is constructed so that it appears
three and four. The linearized model is given in Table 2 to emulate elements of an industrial unit operation. Four
and the estimated model parameters for the experimental five-gallon tanks are used in the simulation. The addi-
setup are given in Table 3. Ai is the area of Tank i and tion of submersible pumps in the tanks can simulate a
ai is the area of the pipe flowing out of tank i. The ratio leak disturbance in the tanks. An industrial Distributed
of water diverted to tank one rather than tank three is
1 Control System (DCS) from ABB-Bailey is used for con-
and
2 is the corresponding ratio diverted from tank two trol of the system using the Freelance software package.
to tank four. It can be shown that for the linear system, The operator interface relies on a PC communicating with
a multivariable right half plane zero will be present when the Bailey ProcessStation using TCP/IP on a private LAN.
+
1
2 < . 1 An interface has been developed using Dynamic Data
2 3 Exchange (DDE) that allows controllers developed using
T1
1
0 A3
A1 T3 0 MATLAB and Simulink to be used for simulation runs.
= 64 00 0
6 1 A4 7
dh T2 A2 T4 7 h The apparatus has the flavor of an industrial system while
dt 0 1
T3 0 5 retaining the flexibility needed to quickly implement and
2
0 0 3
0 2
1
T4 3
test advanced control strategies.
1 k1
A1 0 0 0
6 0
2 k2 7 6 0 0 7
+ 664 0 (1
A3
2 )k2 7u+6
7
5
6
4
kd1
0
7
7d
5
Sub-Space Process Modeling
A3 A3
(1
1 )k1
A4 0 0 kd2
A4 Most advanced process control methodologies require the
development of accurate models of the system. For iden-
q tification, the process is typically forced by known in-
Ti = Aaii 2hi (0)
g puts and the resulting output responses are used for de-
velopment of a linear model relating system inputs to out-
Table 2: Linearized model equations for the four-tank sys- puts. Some process data should be used for validation of
tem. new process models. In industrial applications, one must
consider tradeoffs between the need for accurate process
Sub-space identification is used to develop an empiri- models, the disadvantage of large excursions from normal
cal linear state space model of the experimental apparatus. operating conditions during modeling, the problem of ex-
This model is then used for formulation and application of tended periods of process down time, and the desire for
model-based control methods. The identified state-space "plant friendly" input sequences.
2
To effectively balance the process modeling tradeoffs, ceeded +8 cm or -10 cm in relation to the nominal operat-
one may employ a Pseudo-Binary Random Binary Se- ing point. The N4SID algorithm from the Matlab Identi-
quence (PRBS) of inputs. This type of input sequence can fication Toolbox was used to calculate the linear models.
effectively excite a multivariable process for use in iden- Four states are needed to effectively capture the process
tification and provide an accurate process model while character. This result agrees with knowledge of the pro-
avoiding large process excursions and periods of off spec- cess and the existing fundamental model. Figure 2 shows
ification production. The PRBS of inputs can also be con- a comparison of the process and the model, as well as pro-
sidered a "plant friendly" sequence because only two dif- cess residuals.
ferent levels of input are used.
The resulting input and output data are used to create
the linear model. For this task, a sub-space identification Internal Model Control
procedure is used. This procedure is described in [5]. The
method develops an empirical linear state space model Internal Model Control (IMC) is a very effective method
from input and output data. For this type of modeling, of utilizing a process model for feedback control. IMC
no prior process knowledge is used; no assumptions are directly uses the process model and requires very limited
made about the state relationships or number of process on-line computation. For a full discussion of IMC, see
states. Only the number of states used in the resulting the monograph by Morari and Zafiriou [4]. IMC uses a
process model must be determined. process model and "inverts" parts of the model for use
It should be noted again that the sub-space identifica- as a controller for the process. Some portions of a linear
tion method is an empirical method. In many cases, a process model cannot be inverted. These non-invertible
model based on fundamental process knowledge (first- factors include time delays and Right-Half-Plane (RHP)
principles modeling) may be more desirable. This may zeros. In addition, a process model that is not semi-proper
be true for a process with significant nonlinear charac- cannot be inverted. A linear filter can be added to make
teristics and varied operating regimes. For process that the process model invertible. The filter parameters then
operate around a single steady state or have little nonlin- are available for adjusting the aggressiveness of the IMC
ear character, empirical linear modeling can effectively be controller.
used for process control. The following “inner-outer” factorization for the stable
()
process G s follows the procedure described in [4]. The
30 linear process transfer function can be written:
Tank 1 level, cm
Actual
20 Model
0
0 500 1000 1500 2000 2500
Actual
where N s
N (i! )H N (i! ) = I . The non-invertible portion of the
20 Model
10
0
0 500 1000 1500 2000 2500 process, N (s), is given by:
Residual Error, cm
N (s) = (C QF )(sI (A BR 1 F )) 1 BR +Q
Tank 1 error
Tank 2 error
0 1
()
−5
0 500 1000 1500 2000 2500
80
u1
u2
AN = A BR 1 F BN = BR
60
1
CN = C QF DN = Q
40
0 500 1000 1500 2000 2500
Tank Levels, cm
I , with : = 0 0001
. For the factorization method, F is 17
calculated as 16
F = QT C + (BR )T X 1
15
0 100 200 300 400 500 600
100
Pump Inputs, %
80
0 = (A BR 1 QT C )T X + X (A BR 1 QT C )
70
X (BR 1 )(BR 1 )T X
60
50
40
30
0 100 200 300 400 500 600
Time, s
r u y
+ M(s)N(0)-1 F(s)
- Process Figure 4: Closed-loop reference tracking using IMC con-
=7
Controller
troller with sec.
G(s) = N(s)M(s)-1
+
-
Process Model
performance limitation for the system. In [4], it is shown
()
that T s for a nonminimum phase system with a single
Figure 3: Internal Model Control (IMC) block diagram zero can be arbitrarily selected so that only a single row
showing “Inner-Outer” factorization of plant G s into () deviates from identity. This implies that the performance
()
the invertible portion M s 1 and the non-invertible por- degradation caused by the RHP zero can be driven into
() ()
tion N s . F s is a filter used to adjust the aggressive- a single output channel. The complementary sensitivity
ness of the control loop. function for the 2x2 tank system with ideal performance
in the first measurement is:
The controller for the IMC formulation is the inverse
T1 (s) =
1 0
of the invertible portion of the process model. For off- 1 s s+
set free steady state reference tracking in all channels, s+ s+
the product of the controller inverse gain and the pro- and the complementary sensitivity function for the system
cess model gain must be identity. The current process with ideal performance in the second measurement is:
model factorization does not guarantee this. It can con- s+ 2 s
T2 (s) = s+ s+
0 1
veniently be achieved by scaling the non-invertible por-
tion of the plant by N (0) 1
: Now, the noninvertible pro-
cess model is N s N ( ) (0) 1
and the invertible process where 1 and 2 are functions of the terms in the output
(0) ( )
model is N M 1 s . The IMC controller becomes zero direction. Significant interaction can occur when the
( ) (0)
M sN 1
. SISO IMC systems incorporate a scalar values of i are large. For the given system, 1 is : 19
filter for strictly-proper process models so that the result- 21
and 2 is : . This implies that choosing either input for
ing controller is semi-proper. In this multivariable case, ideal tracking in the nominal case will have essentially the
the process model is already semi-proper. Each of the er- same amount of interaction. This result is expected due to
ror signals sent to the MIMO 2x2 IMC controller can be the symmetric nature of the system. For the developed
filtered with a first-order linear filter, Fi s ( )=1
i s+1 . This controller formulation, a first-order realization of T s is ()
filter allows for adjustment of the closed-loop dynamics. given as:
Figure 4 shows closed-loop performance of the IMC 0:039s+1 1s+1
1:2s+1 32s
system for reference changes. In this example, i are se- T (s)= s+0:32 s+0:32 32s+1 32s+1
7 1s 0:039s+1 = 32s 1:2s+1
lected to sec. s+0:32 s+0:32 32s+1 32s+1
The process has zeros at values of : 0 0324
and : . 0 088 This also demonstrates that the system and controller
The input direction corresponding to the RHP (as de-
scribed in [6]) is:[ 0 736 0 677]
: : T and the output direc- formulation is symmetric. Both output channels should
tion is [ 0 693 0 721]
: : T . Multivariable performance lim-
demonstrate equal performance limitations and interac-
tions.
itations related to RHP systems are described in [3]. In the
nominal case, the process is identical to the process model
and the filter time constants are set to 0. The comple- Dynamic Matrix Control
()
mentary sensitivity function, T s , for the nominal IMC
system reduces to N s N ( ) (0) 1
()
. Ideally, T s is identity Dynamic Matrix Control (DMC) refers to the commercial
at all frequencies. The presence of a RHP zero creates a implementation of model predictive control (MPC) pro-
4
vided by Aspen Technology. Aspen is a member of the controller that is the inverse of the process. Since
University of Delaware Process Monitoring and Control the four-tank system can be adjusted to have a right
Consortium and has provided DMCPlus for student use half-plane zero, aggressive controller tuning can lead
in University of Delaware teaching laboratories. to a controller that has a right half-plane pole and
is therefore unstable. Investigations on the lim-
its of controller tuning and ability to track setpoint
changes offer interesting opportunities for student
experiments.
Process Identification: One of the first steps in im-
plementing a DMC controller is the identification of
a step response model for the process. The associ-
ated software tools can be used to store and imple-
ment different process models for different operating
conditions. In this way, students can also investigate
the effects of model mismatch on closed-loop perfor-
mance
Figure 5: Screen shot of the DMC four-tank system mod- Gain scheduled DMC: DMCPlus contains features
eling interface. to permit process gains to vary with operating condi-
tions, thereby incorporating a particular form of non-
Like other MPC algorithms, DMC uses an optimiza- linear model into the DMC algorithm. In the four-
tion criterion to choose control moves. Using an explicit tank system, this permits models to be used over a
process model for prediction of process outputs, DMC wider operating range, and students can compare the
chooses an optimal sequences of control moves based on differences between gain-scheduled DMC to single-
a trade-off between speed of setpoint tracking and avoid- model DMC.
ance of rapid changes in control inputs. Some specific
features of the DMC algorithm include the following:
5
(SISO) regulatory controllers. Industrial DMC then Very good lab, extremely educational.
chooses setpoints to be implemented in these reg- This was the most intuitive control problem for
ulatory controllers to effect process outputs. With me, very easy to see the direct physical results
the simpler experimental process, it is not possible of our control action. My personal favorite.
to implement DMC in a cascade formulation since
the necessary instruments to measure flow are not Real problem using industrial interfaces. Ex-
present. Therefore, the DMC controller directly ma- cellent practical problem, but it takes too long
nipulates pump speed to achieve optimal dynamic due to the time constant.
performance.