Research Article  Open Access
Fayiz Abu Khadra, Jaber Abu Qudeiri, "Second Order Sliding Mode Control of the Coupled Tanks System", Mathematical Problems in Engineering, vol. 2015, Article ID 167852, 9 pages, 2015. https://doi.org/10.1155/2015/167852
Second Order Sliding Mode Control of the Coupled Tanks System
Abstract
Four classes of second order sliding mode controllers (2SMC) have been successfully applied to regulate the liquid level in the second tank of a coupled tanks system. The robustness of these classes of 2SMC is investigated and their performances are compared with a first order controller to show the merits of these controllers. The effectiveness of these controllers is verified through computer simulations. Comparison between the controllers is based on the time domain performance measures such as rise time, settling time, and the integral absolute error. Results showed that controllers are able to regulate the liquid level with small differences in their performance.
1. Introduction
The control of liquid level in multiple connected tanks by controlling the liquid flow is a typical nonlinear control problem in the field of process control. It is present in many industrial processes. Many researchers around the world have attempted the design and implementation of controllers for the liquid level of a coupled tanks system. Some of the controllers used to control coupled tanks systems include ProportionalIntegralDerivative (PID) type controllers [1], a parallel structure of fuzzy PID control systems [2], a nonlinear constrained predictive algorithms based on feedback linearization control [3], and fractional PID controller [4].
Sliding mode control is an efficient method for robust control of uncertain systems [5–7]. The basic idea of the first order sliding mode control (1SMC) is to let the system converge towards a selected surface and then to stay there in spite of uncertainties and disturbances. The 1SMC method can be designed by performing two steps. The first step is to select an appropriate sliding surface to constrain the state trajectory on it. The second step includes designing of a discontinuous control law to force the system state to reach the designed surface preferably in finite time. 1SMC requires sliding variable relative degree (the relative degree is defined as the order of the derivative of the controlled variable, in which the control input appears explicitly) to be equal to one with respect to the control input which limits the choice of the sliding variable. The 1SMC is also used to regulate the liquid level. An inputdependent sliding surface has been used in [8] to regulate the liquid level in a coupled tanks system. A sliding mode controller, which has a state varying sliding surface parameter, has been designed in [9]. A neurofuzzysliding mode controller using nonlinear sliding surface has been proposed in [10].
In addition to the restriction regarding the relative degree, 1SMC also has the drawback of chattering due to high switching frequency of the control. The drawbacks of 1SMC can be successfully eliminated by the use of higher order sliding mode controllers (HOSMC). HOSMC force the sliding variable and its successive derivatives to zero. There is no restriction on the relative degrees. As the high frequency control switching is pushed in the higher derivative of the sliding variable, chattering is significantly reduced. Another feature of HOSMC is that the detailed mathematical model of the plant is not required. The most widely used HOSMC are second order sliding mode controllers (2SMC). Examples of 2SMC are widely used twisting controllers and its modified variant the super twisting controllers, the quasicontinuous controllers, the suboptimal control algorithm, and the control algorithm with prescribed convergence law.
Khan and Spurgeon [11] applied a second order sliding mode control idea to control a coupled tank system.
The super twisting and adaptive super twisting control algorithms are developed for the twospacecraft formation flying system in [12]. A 2SMC is proposed for second order uncertain plants using equivalent control approach to improve the performance of control systems in [13]. A discrete integral sliding mode controller based on composite nonlinear feedback method to improve the transient performance of uncertain systems is proposed in [14]. A second order sliding mode controller using nonlinear sliding surface to guarantee stability as well as to enhance the transient performance of uncertain linear systems with parametric uncertainty has been proposed in [15]. An adaptive second order sliding mode controller with a nonlinear sliding surface that consists of a gain matrix having a variable damping ratio has been presented in [16]. A higher order sliding mode control algorithm is described for a class of uncertain multiinput multioutput nonlinear systems and the developed algorithm was applied on a hovercraft vessel control [17].
Despite the many existing publications related to the 2SMC, there is a lack of articles that compare performance of different types of 2SMC in water level of the second tank in the coupled tanks system from one side and between them and the first order controller from the other side. Moreover, to the best of authors’ knowledge, there is no published work concerning the 2SMC especially, which contains the detailed analysis of the time domain control measures and the tracking performance of the wellknown controller.
In this paper, robustness of four classes of 2SMC, namely, twisting (TA), the super twisting (STC), prescribed convergence law controller (PCL), and the quasicontinuous controller (QCC), to regulate the water level of the second tank in the coupled tanks system is introduced and their performances are compared. Moreover, the performances of the four controllers mentioned above are compared with a first order controller to show the merits of these controllers.
The remaining structure of this paper is as follows. In the next section, the dynamic model of the coupled tank system will be explained. Section 3 briefly provides the basics of the 1SMC controller and the 2SMC. In Section 4, 2SMC will be described briefly. In Section 5, the simulation results from the application of the controller will be presented and discussed. Finally, Section 6 includes the concluding remarks based on the results obtained.
2. Mathematical Modeling of the Coupled Tanks System
Figure 1 shows a schematic diagram of the twocoupled tanks system. The tanks system consists of two connected tanks. A pump supplies the water into the first tank. The second tank is filled from the first tank via a connecting pipe. An outlet is located at the bottom of the second tank to change the output flow . The mathematical model of the coupled tanks system is nonlinear and can be derived as follows.
Applying the flow balance equation for Tanks 1 and 2,
In (1) and are defined aswhere and are the water level in Tank 1 and Tank 2, respectively. is the inlet flow rate; is the flow rate from Tank 1 to Tank 2. is the cross section area for both tanks, is the area of pipe connecting the two tanks, is the area of the outlet, and is the constant of gravity. If the inlet flow is selected as input and the liquid level in the second tank as output, the system can be considered as a single input single output system (SISO). The two tanks system can be modeled by the following two differential equations:
The parameters and are defined by
Note that is always positive, which means that the pump can pump water into the tank . At equilibrium, for constant water level set point, the derivatives of the water levels with respect to time in the two tanks must be zero so that the following condition can be written:
Therefore, using (6) in (3) and (4), the following algebraic relationships hold:
The equilibrium flow rate can be calculated as
To satisfy the constraint on the input flow rate, the term , which implies . Then the dynamics model can be written as
Using the following transformation,(9) can be written as
It can be easily checked that and in (11) have the following form:
3. Sliding Mode Control
3.1. 1SMC
The dynamics of a second order nonlinear system can be written aswhere is the state and is the control input vectors, respectively. and are unknown nonlinear functions of time and states. The functions and are not exactly known with upper bounded uncertainties. The control problem let the state track a specified timevarying state . The required sliding surface to control this system can be defined as is an error vector and is a constant parameter, which dictated the slope of the sliding surface. Differentiating (16), and inserting (15), and then putting and solving for result in the following control law:and define the control lawwhere and are strictly positive constant. can be selected high to cope with uncertainty. A sufficient condition for the convergence to a sliding mode is is a positive constant. Equation (18) is called reaching or sliding condition. The signum function in (17) is defined as
Commonly in 1SMC, to avoid chattering, the signum function is replaced by a smooth function to create a boundary layer around the sliding surface. For example, a saturation function can be used and is given byIn (22) is a positive constant which defines the thickness of the boundary layer.
3.2. 2SMC
2SMC control is a subset of HOSMC. It differs from the 1SMC by including the first order derivative of the sliding variable while maintaining the same robustness and performance as that of the 1SMC. in an output of (15) to be exactly stabilized in finite time at , is the control input, and is the state. If the output has a fixed and known relative degree , then, for the positive constants , , and , the following inequalities hold globally:
2SMC may be considered as controllers for the following differential inclusion [18]:
2SM controllers allow solving the problem of finitetime stabilization of a black box system as shown in Figure 2. The only information needed from the system is the output.
The required derivative can be obtained by using HOSMC arbitrary order differentiator [19]. The real time differentiator has the general form as in the following set of equations. In (24) represents signal to be differentiated, times. ConsiderA first order differentiator can be obtained by setting and has the following form:where and are the estimation of and , respectively. The parameters , , and are a positive constant to be selected via simulation as recommended in [19].
4. Controllers Design
4.1. 1SM
The procedure described in Section 3.1 will be applied to regulate the output to a desired value for the coupled tanks system. The sliding surface is selected as
By taking the time derivative of (25), (26) is obtained as follows:
Substituting (10) and (11) in (26) yields
On putting and solving for ,
Finally using (18) the control law for is computed as
4.2. Twisting Controller
Historically, the first proposed 2SM controller was the twisting controller. It is defined by the following formula
This controller guarantees the appearance of a 2sliding mode attracting the trajectories of the sliding variable dynamics in finite time if and satisfy the following conditions:
4.3. Super Twisting Controller
The STC has the advantage over another algorithm in that it does not require the time derivatives of the sliding variables. The algorithm has been developed for the case of a system with relative degree one, in order to avoid chattering and its trajectories on the sliding plane are characterized by twisting around the origin. The merits of the STC are rejection of smooth disturbances of arbitrary shape, tracking of smooth references of arbitrary shape, and the finitetime convergence to the set point. A STC for system, which has relative degree of two, was proposed in [20]. The control law consists of two terms. The first term is its discontinuous time derivative and the second is a continuous function of the available sliding variable as given below
As stated in [19] for and a sufficiently large the controller guarantees the appearance of a 2SMC in system given in (23), which attracts the trajectories in finite time to zero. A sufficient condition for finite time convergence is as follows [19]:
4.4. QuasiContinuous Controller (QCC)
The homogeneous quasicontinuous (QCC) controller [21] requires the first order derivative of the sliding surface . With the use of differentiator in (25), the second order quasicontinuous sliding mode controller can be written as
The parameters and in (35) are positive constant to be selected via computer simulation.
4.5. Prescribed Convergence Law Controller
The controller with prescribed convergence law [19] is defined aswhere is a continuous function smooth everywhere except at . It is assumed that the solution of the differential equation converges to 0 in finite time. Choosing yields the controller
A sufficient condition for convergence is given as
5. Simulation Results and Discussion
The characteristics of dynamic model of the coupled tanks system are presented in Table 1 [8]. The control input is restricted to be between and [cm^{3}/s]. The computer simulations are performed using a time interval of s. The parameters of the controller are optimized using a step input with a final value of 6 cm for the water level. For the other tested water levels no more adjustment of the controllers parameters is performed. Through extensive simulation runs, the optimum controllers’ parameters for the different controllers tested in this study are reported in Table 2.


Figure 3 shows the regulation performance for the tested controllers for a desired level of 6 cm. Based on the figure, it can be concluded that the controllers regulate the water level successfully with approximately the same performance. Note that the controllers are able to regulate any desired water levels without adjustments of any parameter.
The behaviors of sliding surfaces/error are represented in Figure 4 for the desired level of 6 cm. Based on the figure it can be seen that, in all cases, the controllers show typical sliding mode behavior; that is, the error reaches 0 in finite time and stays 0 afterwards. The derivative of error with respect to time is also shown for the TA, QCC, and PLC controllers. The error derivative also converges to zero. Note that in the case of the 1SMC and STC the error derivatives are not shown because the error derivatives do not play a major role in the design of the controller.
Figure 5 shows the control signal of the five controllers. The controllers have the same control signal until they reach the sliding surface. The difference between the signals of the 2SM controllers is the increase of the onoff control in the order STC and TA, for the QCC and PCL, respectively.
To compare the performance of the controllers, the time domain performance measures such as the settling time, the rise time, the percentage overshoot, and the integral absolute error (IAE) are used. The settling time is defined as the time required for the response to settle within 1% of the steady state value. The rise time is defined as the time required for the output to change from 10% to 90% of its final value. The IAE is given by the following equation:
The performance measures have been computed for three different specified levels of 3, 6, and 8 cm as listed in Table 3. It can be seen from the table that all the used controllers have approximately the same rise time in all the cases. The QCC controller has a slightly less settling, overshoot, and IAE.

The results of the tracking test of the five controllers using a square signal reference input are shown in Figure 6. Based on the figure, it can be observed that the tracking performance for the all the controller is good. In terms of the IAE, the values obtained are listed in Table 4. From the values given in the Table 4, it can be seen that the smallest IAE is for the 1SM controller; the 2SMC have approximately the same IAE. From the comparison, it can be reported that the 1SM controller slightly outperforms the 2SM controller in all aspects but the controller requires more information than the 2SM controllers as can be observed from Section 4.

6. Conclusions
In this paper, four second order sliding mode controllers, namely, the twisting, the super twisting, the quasicontinuous, and the prescribed convergence law controller, have been successfully designed to regulate the water level in the second tank of a coupled tanks system. The efficacy and usability of the proposed controllers are verified through computer simulation tests. Comparison between the controllers is based on the time domain performance measures. Results showed that all the controllers are able to regulate the water level without major differences in their performance. Comparison of the 2SM controllers against 1SM controller showed that less information is required in the case of the 2SM controller than the 1SMC.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgment
This project was financially supported by King Saud University, Vice Deanship of Research Chairs.
References
 S. K. Singh, N. Katal, and S. G. Modani, “Multiobjective optimization of PID controller for coupledtank liquidlevel control system using genetic algorithm,” in Proceedings of the Second International Conference on Soft Computing for Problem Solving (SocProS 2012), December 28–30, 2012, vol. 236 of Advances in Intelligent Systems and Computing, pp. 59–66, Springer, New Delhi, India, 2014. View at: Publisher Site  Google Scholar
 J.X. Xu, C.C. Hang, and C. Liu, “Parallel structure and tuning of a fuzzy PID controller,” Automatica, vol. 36, no. 5, pp. 673–684, 2000. View at: Publisher Site  Google Scholar  MathSciNet
 N. K. Poulsen, B. Kouvaritakis, and M. Cannon, “Nonlinear constrained predictive control applied to a coupledtanks apparatus,” IEE Proceedings: Control Theory and Applications, vol. 148, no. 1, pp. 17–24, 2001. View at: Publisher Site  Google Scholar
 A. Kumar, M. Vashishth, and L. Rai, “Liquid level control of coupled tank system using fractional PID controller,” International Journal of Emerging Trends in Electrical and Electronics, vol. 3, no. 1, 2013. View at: Google Scholar
 V. Utkin, J. Guldner, and M. Shijun, Sliding Mode Control in ElectroMechanical Systems, vol. 34, CRC Press, 1999.
 C. Edwards and S. Spurgeon, Sliding Mode Control: Theory and Applications, CRC Press, 1998.
 K. D. Young, V. I. Utkin, and Ü. Özgüner, “A control engineer's guide to sliding mode control,” IEEE Transactions on Control Systems Technology, vol. 7, no. 3, pp. 328–342, 1999. View at: Publisher Site  Google Scholar
 N. B. Almutairi and M. Zribi, “Sliding mode control of coupled tanks,” Mechatronics, vol. 16, no. 7, pp. 427–441, 2006. View at: Publisher Site  Google Scholar
 S. Aydin and S. Tokat, “Sliding mode control of a coupled tank system with a state varying sliding surface parameter,” in Proceedings of the IEEE International Workshop on Variable Structure Systems (VSS '08), pp. 355–360, IEEE, Antalya, Turkey, June 2008. View at: Publisher Site  Google Scholar
 A. Boubakir, F. Boudjema, and S. Labiod, “A neurofuzzysliding mode controller using nonlinear sliding surface applied to the coupled tanks system,” International Journal of Automation and Computing, vol. 6, no. 1, pp. 72–80, 2009. View at: Publisher Site  Google Scholar
 M. K. Khan and S. K. Spurgeon, “Robust MIMO water level control in interconnected twintanks using second order sliding mode control,” Control Engineering Practice, vol. 14, no. 4, pp. 375–386, 2006. View at: Publisher Site  Google Scholar
 C. Pukdeboon, “Secondorder sliding mode controllers for spacecraft relative translation,” Applied Mathematical Sciences, vol. 6, no. 100, pp. 4965–4979, 2012. View at: Google Scholar
 İ. Eker, “Secondorder sliding mode control with experimental application,” ISA Transactions, vol. 49, no. 3, pp. 394–405, 2010. View at: Publisher Site  Google Scholar
 S. Mondal and C. Mahanta, “Composite nonlinear feedback based discrete integral sliding mode controller for uncertain systems,” Communications in Nonlinear Science and Numerical Simulation, vol. 17, no. 3, pp. 1320–1331, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 S. Mondal and C. Mahanta, “Nonlinear sliding surface based second order sliding mode controller for uncertain linear systems,” Communications in Nonlinear Science and Numerical Simulation, vol. 16, no. 9, pp. 3760–3769, 2011. View at: Publisher Site  Google Scholar  MathSciNet
 S. Mondal and C. Mahanta, “A fast converging robust controller using adaptive second order sliding mode,” ISA Transactions, vol. 51, no. 6, pp. 713–721, 2012. View at: Google Scholar
 M. Defoort, T. Floquet, A. Kokosy, and W. Perruquetti, “A novel higher order sliding mode control scheme,” Systems & Control Letters, vol. 58, no. 2, pp. 102–108, 2009. View at: Publisher Site  Google Scholar
 A. Levant, “Higherorder sliding modes, differentiation and outputfeedback control,” International Journal of Control, vol. 76, no. 910, pp. 924–941, 2003. View at: Publisher Site  Google Scholar  MathSciNet
 Y. Shtessel, C. Edwards, L. Fridman, and A. Levant, Sliding Mode Control and Observation, Birkhäuser, 1st edition, 2014. View at: Publisher Site  MathSciNet
 M. K. Khan, S. K. Spurgeon, and A. Levant, “Simple output feedback 2sliding controller for systems of relative degree two,” in Proceedings of the European Control Conference (ECC '03), vol. 3, September 2003. View at: Google Scholar
 A. Levant, “Quasicontinuous highorder slidingmode controllers,” IEEE Transactions on Automatic Control, vol. 50, no. 11, pp. 1812–1816, 2005. View at: Publisher Site  Google Scholar  MathSciNet
Copyright
Copyright © 2015 Fayiz Abu Khadra and Jaber Abu Qudeiri. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.