Three Tank (5)
Three Tank (5)
http://dx.doi.org/10.1007/s12555-018-0895-y http://www.springer.com/12555
Abstract: In this paper, a liquid level tracking controller composed of a feedforward controller and a feedback con-
troller is proposed for three-tank systems. Firstly, the flat property of three-tank systems is verified and a feedforward
controller is designed accordingly to track the ideal trajectories. Secondly, in order to eliminate the tracking errors
introduced by model uncertainties or unknown disturbances, a nonlinear model predictive controller is designed in
which a terminal equality constraint is added for ensuring asymptotic convergence. In addition, an improved cuckoo
search algorithm is adopted to solve the optimization problem involved in the nonlinear model predictive control.
Finally, the control performance is confirmed by both simulation and experiment results.
Keywords: Cuckoo search algorithm, flat system, liquid level tracking, model predictive control.
1. INTRODUCTION locally linearizing the model at each time instant [16]. But
the control accuracy is reduced inevitably due to the model
Liquid level control is important in modern process error caused by linearization at each time instant.
control since it can potentially improve product quality In order to enhance the tracking accuracy and avoid the
and enhance economic benefits [1]. Three-tank systems model error caused by linearization, a controller with a
are typical multi-input multi-output (MIMO) systems with feedforward control based on the property of flatness and
the features of strong coupling and nonlinearity, which a model predictive control is proposed in [17]. Through
make it of great research value in the study of liquid level the ideal flat outputs, the ideal state trajectory and con-
control [2, 3]. trol input trajectory can be obtained [18], and the ideal
Many efforts have been made to solve the liquid level control input could be served as a feedforward in order to
tracking control problem. A neural network based PID achieve fast tracking. A nonlinear model predictive con-
controller is proposed in [4], which shows that the stan- troller of the error system is used as the feedback control
dard digital PID controller has faster response and a larger to eliminate tracking errors. This two degrees of freedom
overshoot while the neural network based PID controller control structure makes full use of not only the flatness of
can achieve better performance with the price of a rela- the system itself, but also the advantages of the NMPC.
tively slow response. The liquid level control problem of However, the designed nonlinear model predictive con-
three-tank systems is described as the disturbance attenu- troller is solved using fmincon [17], which can only per-
ation problem of constrained linear systems in [5], which form one-step prediction in sampling time of 1 second due
can guarantee both the disturbance attenuation and the to the heavily computational burden. It is worth noting that
time-domain constraint satisfaction. a research has realized multi-step prediction of Tp = 10
Nonlinear model predictive control (NMPC) can deal and achieved good control performance for the three-tank
with constraints of MIMO systems [6–9], and can achieve systems using fmincon [19]. However, only a simulation
faster response without overshoot compared to PID con- rather than an experiment is carried out and its compu-
troller [10–12]. However, its application has been limited tational time is much longer than 1 second. In order to
due to the heavily computational burden [13,14]. A model make multi-step prediction possible in sampling time of
predictive control scheme based on bees algorithm is pro- 1 second and make the system response smoother, an im-
posed to reduce the computational burden in [15], how- proved cuckoo search algorithm is proposed in this paper
ever, the computational burden is still too heavy to imple- to solve the optimization problem of nonlinear model pre-
ment. A RBF-ARX model-based predictive control strat- dictive control.
egy is proposed to reduce the computational burden by The rest of this paper is organized as follows: Section 2
Manuscript received December 16, 2018; revised April 28, 2019, September 30, 2019, and January 15, 2020; accepted January 19, 2020.
Recommended by Associate Editor Niket Kaisare under the direction of Editor Jay H. Lee. This work was supported by the National Natural
Science Foundation of China (No.U1964202, No.61711540307, No.61703176, No.61703178, No.61520106008).
Shuyou Yu, Ting Qu, and Hong Chen are with State Key Laboratory of Automotive Simulation and Control, Jilin University, Changchun
130012, P. R. China (e-mails: {shuyou, quting, chenh}@jlu.edu.cn). Xinghao Lu, Yu Zhou, and Yangyang Feng are with Department of Con-
trol Science and Engineering, Jilin University, Changchun 130012, P. R. China (e-mails: {luxh19, zhouyu16, fengyy16}@mails.jlu.edu.cn).
* Corresponding author.
introduces the model of three-tank systems and sets up the In terms of Torricelli Rule, Q13 , Q32 and Q20 are de-
control problem. The controller is designed in Section 3. scribed [3]
Section 4 describes the application of improved cuckoo
search algorithm in constrained optimization problems. Q = az1 Sn sgn (h1 − h3 ) (2g |h1 − h3 |)1/2 ,
13
Both the simulation and experiment results are shown in Q32 = az3 Sn sgn (h3 − h2 ) (2g |h3 − h2 |)1/2 , (2)
Section 5. Some conclusions are drawn in Section 6.
1/2
Q20 = az2 Sn (2gh2 ) ,
0 ≤ Q1 , Q2 ≤ Qmax ,
3. CONTROLLER DESIGN
r
−az3 Sn sgn h3 (t)−x2 (t) 2g h∗3 (t)−x2f (t) .
∗ f
fe (xe , ue ) =0 while xe = [0, 0, 0]T and ue = [0, 0]T . That is gi (θ ) and h j (θ ) are the inequality constraint and equal-
to say, [0, 0, 0]T is the equilibrium of the error system (6). ity constraint that need to be satisfied respectively, qc is
In order to make the tracking errors converge to zero the number of inequality constraints, lc − qc is the number
in the framework of model predictive control [23, 24], the of equality constraints.
following online optimization problem is solved at each
time instant t. 4.1. Basic cuckoo search algorithm
Cuckoo search algorithm (CSA) was first proposed by
Problem 1: Yang and Deb in 2009 as a new type of swarm intelligence
optimization algorithm [26]. Compared with other swarm
x̄˙e (τ) = fe (x̄e (τ), ūe (τ)), intelligence optimization algorithms, such as artificial bee
ūer (τ) + urf (τ) ∈ [0, Qmax ], r = 1, 2 colony algorithm and particle swarm optimization algo-
rithm, CSA has better global search capability. It has been
xqf (τ) − x̄eq (τ) ∈ [0, Hmax ], q = 1, 2, 3, t ≤ τ ≤ t + Tp ,
successfully applied to image processing, deep learning,
x̄e (t) = xe (t), data mining and other optimization problems.
x̄e (t + Tp ) = 0, The cuckoo search algorithm is derived from the unique
R t+Tp nesting and spawning behavior of cuckoos. In the cuckoo
with J (xe (t),Ut ) = t ||x̄e (τ) ||2Q + ||ūe (τ) ||2R dτ. search algorithm, the host bird nest selected by the cuckoo
In Problem 1, xe (t) is the error state at time instant t, represents a solution to the optimization problem. The
Ut := ue (·, xe (t)) denotes the control input trajectory re- essence of the algorithm is to replace the poorer solu-
lated to xe (t). ūe (τ) is the predicted control input for all tions of the previous generation with new and better solu-
τ ∈ [t,t + Tp ] and ūe (τ) = ue (τ, xe (t)). Both Q and R are tions. After the succession of multiple generations of pop-
positive definite weighting matrices with appropriate di- ulations, the highest evaluated nest position is retained as
mensions, Tp is the prediction horizon. Problem 1 is solved the optimal solution. In order to simulate and simplify the
in discrete time with a sampling of δ . cuckoo’s nesting and spawning behavior, three ideal rules
Denote Ut∗ as the optimal solution of Problem 1, i.e., are assumed:
Ut∗ = u∗e (·, xe (t)), then the control input ue (τ) of nonlinear 1) Each cuckoo produces only one egg at a time, and the
model predictive control is choice of the host nest follows a random selection;
ue (τ) = u∗e (τ, xe (t)) , τ ∈ [t,t + δ ]. 2) The best nest remains to the next generation;
3) The number of host nests is fixed as n ∈ N, and the
So, the actual control input implementing to the three-tank probability that the eggs hatched by the cuckoos and
systems is found by the host belongs to pa ∈ [0, 1].
u (τ) =u f (τ) + ue (τ) , τ ∈ [t,t + δ ]. Based on the above three rules, a new solutions xt+1
i gen-
erated by the basic cuckoo search algorithm is
Remark 1: Due to the terminal equality constraint of
x̄e (t + Tp ) = 0 in Problem 1, both recursive feasibility of xt+1
v = xtv + η ⊕ Lévy (β ) , v = 1, 2, ..., n,
Problem 1 and asymptotic trajectory tracking can be guar-
anteed [25]. where the product ⊕ means entry-wise multiplications, η
Remark 2: Terminal equality constraints rather than is the search step size, n is the number of host nests, t is
terminal inequality constraints is considered in this pa- the number of iteration, Lévy (β ) is a random search path
per since path tracking rather than a regulation problem following the Lévy distribution with
is considered and three-tank systems are strong nonlinear. Lévy = t −β , β ∈ (0, 3].
The generation process is shown in Fig. 3. The improved cuckoo search algorithm is Algorithm 1.
Similar to the particle swarm optimization algorithm,
the cuckoo search algorithm is difficult to deal with the Remark 4: The improved cuckoo search algorithm is
constraints of the optimization problem, and the phe- generic in many areas of optimization and computational
nomenon of jumping out of the search boundary may intelligence with promising efficiency. For example, in the
occur during the search process. For this kind of cross- engineering design applications, cuckoo search has supe-
border behavior, the cross-border bird nest is forcibly set rior performance over other algorithms for a range of con-
on the search boundary usually. Although the search re- tinuous optimization problems such as spring design and
sult is guaranteed to be within the boundary constraint, it welded beam design problems [30].
is inevitable to lose some of the bird’s nest search vital-
ity. The constraint optimization problem is transformed 4.3. Solution to constrained optimization problem
into an unconstrained optimization problem by penalty based on improved cuckoo search algorithm
function methods, thus the out-of-bound problem of the Rewrite Problem 1 into the form of (9), and solve it by
cuckoo search algorithm is avoided. the improved cuckoo algorithm. The proposed control law
Choose the penalty function of the following form [31] can be formally obtained by Algorithm 2.
Liquid level of Tank3 [cm] Liquid level of Tank2 [cm] Liquid level of Tank1 [cm]
30
1: while (t ≤ 1500) do
20
2: Calculate x f (t) and u f (t) via (8)-(9) at time instant
t; 10
10
Table 2. Parameters of three-tank systems.
5
Symbol Parameters
0
R diag{1,1} 0 100 200 300 400 500
Time (s)
Q diag{100, 200, 1000}
Tp 5s Fig. 4. The liquid level in simulation (Case 1).
Qmax 130 ml/s
Hmax 60 cm
140
Liquid of pump (ml/s)
0.35
Figs. 4-7 and the experiment results are shown in Figs.8-
9, respectively. Note that, compared with Tp = 1 s in [17], 0.3
×10 4
Liquid Level of Tank3 [cm] Liquid Level of Tank2 [cm] Liquid Level of Tank1 [cm]
10
30
Value function
8
20
6
10
4
0
2 0 100 200 300 400 500
0
0 100 200 300 400 500 12
10
Time (s)
8
6
Fig. 7. The value function in simulation (Case 1). 4
2
0
0 100 200 300 400 500
Liquid level of Tank3 (cm) Liquid level of Tank2 (cm) Liquid level of Tank1 (cm)
40
15
20 10
5
0
0 500 1000 1500 0
0 100 200 300 400 500
20 Time [s]
×10 4
Liquid level of Tank1 (cm)
3
40
Value function
30
2
20
10
0 1
0 500 1000 1500
Liquid level of Tank3 (cm) Liquid level of Tank2 (cm)
0
25 0 500 1000 1500
20 Time (s)
15
10 Fig. 14. The value function in simulation (Case 2).
5
0
0 500 1000 1500
0.45
Q1
130
Liquid level of Tank3 (cm) Liquid level of Tank2 (cm) Liquid level of Tank1 (cm)
Q2
60
100
40
50
20
0 0
0 500 1000 1500 0 500 1000 1500
Time (s) 60
20
0
Error of Tank (cm)
0
-0.02 0 500 1000 1500
-0.04 60
-0.06
Error of Tank1 40
-0.08 Error of Tank2
Error of Tank3 20
-0.1
500 1000 1500
0
Time (s) 0 500 1000 1500
Time (s)
Fig. 13. Tracking errors in simulation (Case 2).
Fig. 16. The liquid level in experiment (Case 2).
[12] A. Bamimore, O. Taiwo, and R. King, “Comparison of two [26] X. S. Yang and S. Deb, “Engineering optimisation by
nonlinear model predictive control methods and implemen- cuckoo search,” International Journal of Mathematical
tation on a laboratory three tank system,” Proc. of 50th Modelling & Numerical Optimisation, vol. 1, no. 4, pp.
IEEE Conference on Decision and Control and European 330-343, 2010.
Control Conference (CDC-ECC), pp. 5242-5247, 2011. [27] L. T. Biegler and V. M. Zavala, “Large-scale nonlin-
[13] J. Zhang, X. Cheng, and J. Zhu, “Control of a laboratory ear programming using IPOPT: an integrating framework
3-DOF helicopter: explicit model predictive approach,” In- for enterprise-wide dynamic optimization,” Computers &
ternational Journal of Control, Automation and Systems, Chemical Engineering, vol. 33, no. 3, pp. 575-582, 2009.
vol. 14, no. 2, pp. 389-399, 2016. [28] L. I. Rong-Yu and D. Rui-Wen, Adaptive Step-size Cuckoo
[14] S. M. Tabatabaei, S. Kamali, and M. R. Jahed-Motlagh, Search Algorithm, Computer Science, 2017.
“Practical explicit model predictive control for a class [29] X. Zhen, Research and Application of Bat Algorithm Based
of noise-embedded chaotic hybrid systems,” International on Levy Flight and Simplex Method, Guangdong Univer-
Journal of Control, Automation and Systems, vol. 17, no. sity of Technology, 2016.
4, pp. 857-866, 2019. [30] X. S. Yang and S. Deb, “Cuckoo search: recent advances
[15] M. Sarailoo, Z. Rahmani, and B. Rezaie, “A novel model and applications,” Neural Computing and Applications,
predictive control scheme based on bees algorithm in a vol. 24, no. 1, pp. 169-174, 2014.
class of nonlinear systems: application to a three tank sys- [31] H. L. Cai, Research and Application of Penalty Function
tem,” Neurocomputing, vol. 152, pp. 294-304, 2015. Method in Constrained Optimization, East China Normal
[16] F. Zhou, H. Peng, Y. Qin, X. Zeng, W. Xie, and J. Wu, University, 2015.
“RBF-ARX model-based MPC strategies with application
to a water tank system,” Journal of Process Control, vol.
34, pp. 97-116, 2015.
Shuyou Yu received his B.S. and M.S.
[17] S. Yu, Y. Zhou, Y. Feng, T. Qu, and H. Chen, “Liquid level degrees in control science and engineer-
tracking control of three-tank systems,” Proc. of 37th Chi- ing from Jilin University, China, in 1997
nese Control Conference (CCC), pp. 3541-3545, 2018. and 2005, respectively, and a Ph.D. de-
[18] M. Fliess, J. Lévine, and P. Martin, “Flatness and defect gree in engineering cybernetics from the
of nonlinear systems: introductory theory and examples,” University of Stuttgart, Germany, in 2011.
International Journal of Control, vol. 61, no. 6, pp. 1327- From 2010 to 2011, he was a Research
1361, 1995. and Teaching Assistant with the Institute
for Systems Theory and Automatic Con-
[19] J. Prakash, S. C. Patwardhan, and S. L. Shah, “State esti- trol, University of Stuttgart. In 2012, he joined the Department
mation and nonlinear predictive control of autonomous hy- of Control Science and Engineering, Jilin University, as a Fac-
brid system using derivative free state estimators,” Journal ulty Member, where he is currently a Full Professor. His main
of Process Control, vol. 20, no. 7, pp. 787-799, 2010. research interests include model predictive control, robust con-
[20] C. M. Torres, L. Lavigne, and F. Cazaurang, “Fault detec- trol, and its applications in mechatronic systems.
tion and isolation on a three tank system using differential
flatness,” Proc. of Control Conference, 2013.
Xinghao Lu received his B.E. degree from
[21] R. M. Murray, “Trajectory generation for a towed cable
the College of Communication Engineer-
system using differential flatness,” Proc. of IFAC World
ing, Jilin University, in 2019. He is cur-
Congress, pp. 395-400, 1996.
rently pursuing a master’s degree with the
[22] C. M. Torres, L. Lavigne, F. Cazaurang, E. A. Garcia, and Department of Control Science and En-
D. D. Romero, “Fault tolerant control of a three tank sys- gineering, Jilin University. His research
tem: a flatness based approach,” IEEE Control and Fault- interests include model predictive control
Tolerant Systems, pp. 529-534, 2014. and machine learning.
[23] Y. Liu, S. Yu, Y. Guo, B. Gao, and H. Chen, “Receding
horizon control for path following problems of wheeled
mobile robots,” Control Theory and Applications, vol. 34,
no. 4, pp. 424-432, 2017. Yu Zhou received her B.E. degree from
the Jilin Jianzhu University, China, in
[24] S. Yu, X. Li, H. Chen, and F. Allgöwer, “Nonlinear model 2016, and an M.S. degree in control sci-
predictive control for path following problems,” Interna- ence and engineering from Jilin Univer-
tional Journal of Robust and Nonlinear Control, vol. 25, sity, China, in 2019. During the master’s
no. 8, pp. 1168-1182, 2015. degree, she mainly studied nonlinear con-
[25] J. B. Rawlings and D. Q. Mayne, Model Predictive Con- trol strategies of three-tank systems.
trol: Theory and Design, Nob Hill Pub., Madison, Wiscon-
sin, 2009.
2640 Shuyou Yu, Xinghao Lu, Yu Zhou, Yangyang Feng, Ting Qu, and Hong Chen
Yangyang Feng received his B.E. de- Hong Chen received her B.S. and M.S.
gree from the Jilin Agricultural University, degrees in process control from Zhejiang
China, in 2016, and an M.S. degree in the University, Zhejiang, China, in 1983 and
control science and engineering from Jilin 1986, respectively, and a Ph.D. degree
University, China, in 2019. He is currently in system dynamics and control engi-
pursuing a Ph.D. degree with the Depart- neering from the University of Stuttgart,
ment of Control Science and Engineering, Stuttgart, Germany, in 1997. Since 1999,
Jilin University, China. His research in- she has been a professor at Jilin Univer-
terests include nonlinear control, adaptive sity, Changchun, China, where she cur-
control, and system identification. rently serves as Tang Aoqing Professor and as the director of
the State Key Laboratory of Automotive Simulation and Control.
Her current research interests include model predictive control,
Ting Qu received her B.S. and M.S. de-
optimal and robust control, nonlinear control and applications in
grees from the Northeast Normal Univer-
mechatronic systems focusing on automotive systems.
sity, Changchun, China, in 2006 and 2008,
respectively, and a Ph.D. in control science
Publisher’s Note Springer Nature remains neutral with regard
and engineering from the Jilin University
to jurisdictional claims in published maps and institutional affil-
of China in 2015. Since 2015, she is a
iations.
lecturer with the State Key Laboratory of
Automotive Simulation and Control at the
Jilin University, China. Her research inter-
ests include model predictive control and driver modeling.