Академический Документы
Профессиональный Документы
Культура Документы
a1 p
2gh1 +
A1
a2 p
=
2gh2 +
A2
a3 p
=
2gh3 +
A3
a4 p
=
2gh4 +
A4
=
a3 p
2gh3 +
A1
a4 p
2gh4 +
A2
(1 b )
qb
A3
(1 a )
qa
A4
a
qa
A1
b
qb
A2
(1)
The plant parameters, estimated on the real plant are shown in the following
table:
H1max
H2max
H3max
H4max
Hmin
Qamax
Qbmax
Qmin
Q0a
Q0b
a1
a2
a3
a4
A
a
b
h01
h02
h03
h04
Tm
Value
1.36
1.36
1.30
1.30
0.2
3.26
4
0
1.63
2.0000
1.310e-4
1.507e-4
9.267e-5
8.816e-5
0.06
0.3
0.4
0.6534
0.6521
0.6594
0.6587
5
Unit
m
m
m
m
m
m3 /h
m3 /h
m3 /h
m3 /h
m3 /h
m2
m2
m2
m2
m2
m
m
m
m
s
Description
Maximum level of the tank 1
Maximum level of the tank 2
Maximum level of the tank 3
Maximum level of the tank 4
Minimum level in all cases
Maximal flow of pump A
Maximal flow of pump B
Minimal flow
Equilibrium flow
Equilibrium flow
Discharge constant of tank 1
Discharge constant of tank 2
Discharge constant of tank 3
Discharge constant of tank 4
Cross-section of all tanks
Parameter of the 3-ways valve
Parameter of the 3-ways valve
Equilibrium level of tank 1
Equilibrium level of tank 2
Equilibrium level of tank 3
Equilibrium level of tank 4
Sample time
The minimum level of the tanks has been taken greater than zero to prevent
eddy effects in the discharge of the tank. One important property of this plant is
that the dynamics present multivariable transmission zeros which can be located in
the right hand side of the s plane for some operating conditions. Hence, the values
of a and b have been chosen in order to obtain a system with non-minimum phase
multivariable zeros.
Linearizing the model at an operating point given by h0i and defining the deviation variables xi = hi hoi and uj = qj qjo where j = a, b and i = 1, , 4 we
have that:
1
1
A3
A1 3
0 1
0
2
=
1
0
0
3
0
0
0
1 0 0 0
y =
x
0 1 0 0
dx
dt
0
A4
A2 4
1
4
x +
a
A1
0
0
(1a )
A4
0
b
A2
(1b )
A3
u.
q 0
2hi
where i = Aaii
g 0, i = 1, , 4, are the time constants of each tank.
This model has been discretized using the zero-order hold method with a sampling
time of 5 seconds.
A detailed description of the plant can be found in the attached documents.
2 Control Problem
The objective of the benchmark is to test and compare centralized, decentralized,
and distributed predictive controllers under similar operation conditions. To this
end the following experiment is defined in which the controllers must regulate the
levels of tanks 1 and 2 to follow a set of reference changes by manipulating the
inlet flows qa and qb based on the measured levels of the four tanks:
The first set-points are set to s1 = 0.65 m and s2 = 0.65 m. This first
reference is aimed to steer the plant to the operation point. Once the plant is
in the operation point the test begins maintaining the operation point during
300 seconds.
In the first step, the reference is changed to s1 = 0.3 m and s2 = 0.3 m
during 3000 seconds.
Then, the reference is changed to s1 = 0.5 m and s2 = 0.75 m during 3000
seconds.
N
sim
X
(h1 (i)s1 (i))2 +(h2 (i)s2 (i))2 +0.01(qa (i)qas (i))2 +0.01(qb (i)qbs (i))2
i=0
where qas and qbs are the steady manipulable variables of the plant for the set-points
s1 and s2 calculated from steady conditions of the proposed model of the plant.
The proposed sampling times is 5 seconds, that is, Nsim = 1860 samples.
4000
5000
6000
7000
8000
9000
10000
11000
12000
4000
5000
6000
7000
8000
9000
10000
11000
12000
time [s]
At the end of any simulation you can run the file graficas.m to plot your
results.
0.65
h4
h3
Step4
Step3
MATLAB
Function
Step5
References Manager
Step2
Step1
Constant
y_eq
plant.yl
x_eq
plant.xl
h1
h2
h1ref
To Workspace11
h2ref
To Workspace10
Href
MATLAB
Function
MPC Control
Tank1
qb_o
qa_o
plant.ul
u_eq
Flows
Pulse
Generator1
Demux
v1
v2
Modelo4Tanques
Terminator1
To Workspace5
qb
qa
To Workspace4
h4
h3
h2
h1
h4
h3
h2
h1
h1
To Workspace3
h4
To Workspace2
h3
To Workspace1
h2
To Workspace
With the simulink model, we provide you an example with a centralized MPC
controller designed with the parameters mentioned above.