You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/328130695

A new continuous approximation of sign function for sliding mode control

Conference Paper · October 2018

CITATIONS READS

2 634

2 authors:

Farbood Shokouhi Amir H. Davaie Markazi


Iran University of Science and Technology Iran University of Science and Technology
3 PUBLICATIONS   2 CITATIONS    84 PUBLICATIONS   842 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Internet-based control systems View project

Ball on Beam System View project

All content following this page was uploaded by Farbood Shokouhi on 07 October 2018.

The user has requested enhancement of the downloaded file.


Shokouhi, Farbood, and Davaie Markazi, Amir-Hossein. "A new continuous approximation of sign function for sliding mode
control", International Conference on Robotics and Mechantronics (ICRoM 2018). Tehran. Iran.2018.

A new continuous approximation of sign function


for sliding mode control
Farbood Shokouhi1 Amir Hossein Davaie-Markazi
School of Mechanical Engineering School of Mechanical Engineering
Iran University of Science and Technology (IUST) Iran University of Science and Technology (IUST)
Tehran, Iran Tehran, Iran
shokuhi@gmail.com Markazi@iust.ac.ir

Abstract— In the sliding mode control, the control law with This paper is organized as follows: The paper has four
the sign function creates a discontinuous control input resulting sections. In section I, we stated a brief introduction to the work
from a limited switching around the sliding surface. In this way, done by researchers on VSS. In section II, we introduce the
the trajectories of motion are maintained in the vicinity of a SMC approach. In Section III, we express the discontinuous
prescribed absorbent sliding surface. On the other hand, due to sign function in control law. In Section IV, we sum up the
the existence of such a control law, an unwanted problem in the necessary conclusion and discussion.
control of the sliding , i.e., the "chattering phenomenon" occurs
which ought to be reduced or eliminated in some ways. Various
approaches have been suggested in the literature, mostly based II. SLIDING MODE CONTROL
on the continuous approximation of the discontinuous sign One of the key points in the designing controllers is that
function. In this paper, a new continuous approximation for sign controlling must be done in the presence of bounded external
function is proposed and compared to the previous ones. It is
disturbances as well as perturbation-uncertainties. For this
shown that a parameter of the new approximation function
affects the performance including the convergence rate towards cause, in the recent years, there has been a lot of researches
the sliding surface. Such a design parameter can be further on systems that have such conditions. In these extensive
employed for optimization of sliding mode control for various studies, the authors of these researches have been able to
applications. develop robust control methods for such conditions, which
SMC is the most important of these methods. Sliding mode
Keywords— Sign function, Signum, Sliding Mode Control, controllers are based upon one of the control methods for the
SMC, Chattering. system of "Variable Control System (VCS)". [1].

I. INTRODUCTION A. Conventional SMC (CSMC)


CSMC contains a lot of notes and practical applications.
To begin with, the Russian authors proposed the theory of
"Variable Structure Systems (VSS)" that was suggested from The reason for this popularity is the attractive features of the
Philippov mathematical work in the early 1950s, and since sliding mode, which is simultaneously robust to
then this theory have been expanded with the invention of "perturbation-model uncertainties" and "bounded external
high-speed control devices everywhere. This is a systemic disturbances". It also provides a "fast-convergence
solution for the problem of "stability" and "Consistent characteristic for a nonlinear system by following a reduced
performance" against "bounded external disturbances". More order system" [2]. However, there are two problems in this
of the operational programs in relation to "Variable Structure method: The first problem is “reaching phase" and the second
Systems (VSS)" is known as "SMC”. This method is a "high- one is the "input chattering problem" (chattering
speed nonlinear control and nonlinear feedback” that in phenomenon). In addition to these problems, the CSMC
limited time, switches discontinuous discontinuously on a controller becomes much more conservative in its use than
prescribed absorbent sliding surface. other design methods. Because the trajectories of motion are
SMC creates a discontinuous control law and causes a obtained by sliding mode dynamics, they cannot have
limited switching around this sliding surface. Thus, the dynamics as the main system [3]. In other words, the
trajectory of motion of the state variables and system following factors cause the unwanted problem of "chattering
dynamics must inevitably be oriented towards this sliding phenomenon":
surface. On the other hand, the existence of such a control law 1) Not being robust at the reaching phase.
creates an unwanted problem in the control of the sliding, i.e., 2) Stimulate high frequency oscillations (with limited
the "chattering phenomenon" occurs which ought to be range) of system; sensors or actuators.
reduced or eliminated in some ways. Various approaches have 3) Using the large gain in the controller.
been suggested in the literature, mostly based on the 4) Input control signal switching.
continuous approximation of the discontinuous sign function.
Some of these methods are presented. In addition to these problems, not guarantying asymptotic
stability is also troublesome, which causes the system

1
- Correspond author
dynamics not to converge to point of equilibrium in a limited 4) Discontinuous control high-gain feedback to increase
time. the speed of the reaching phase [5].
The design of a sliding mode controller includes:
1) Determine a "sliding surface" that represents" desired
stable dynamics", being robust at the reaching phase. C. Sliding phase
2) Describes a "control law" that guarantees" the Park et al. said that system states should be kept at the
reaching condition" and "the sliding condition". slider surface; in other words, "a sliding surface" should be
converted to "an absorbent surface" needed to design the
The "phase trajectory" of a CSMC can be represented in "correct control law”. It is also one of the problems.
two sections: the "reaching phase" (when the state trajectory Therefore, sliding mode controller is very conservative in use
is driven towards the sliding surface) and the “sliding with other controller design methods. Because the state
phase"(when the state trajectory is moving towards the origin trajectory of the CSMC system is determined by sliding mode
along the sliding surface), which will be reviewed in the dynamics which cannot have the same order dynamics of the
following two modes of control (Fig. 1): original system [3].
After designing the first stage (the design of an absorbent
sliding surface), it turns into the second stage of the design of
the controller, which includes the determination of the
"switching control law". This law allows system states to stay
on this surface after reaching this sliding so that the system is
balanced. To do this, the control law must be designed in such
a way that the vectors of their state variables and their
dynamics are tangent to the paths of movement to the surface.
Mendes has noticed that in practice, the variable structure
control (and especially SMC) introduces a problem, and that
is: there is only an "ideal sliding mode" when the state
trajectory without any chattering moves toward the sliding
surface and remains on it and proceeds to the equilibrium
point [5]. To solve this problem, Mendes suggests a
continuous control law 𝑢𝑒𝑞 (𝑡) that approaches the
discontinuous law 𝑢𝑠𝑤 (𝑡) operation close to the switching
Fig. 1 The CSMC in phase plane [4] surface region can be used, obtaining thus a reference
tracking with controlled accuracy. There is a tradeoff
relationship between "the level of chattering in the control
B. Reaching phase signal" and the "the accuracy in reference tracking": the more
In Fig. 1, the "reaching phase" of the desired starting point exact the tracking of references, the higher the level of
of the motion paths 𝑥(𝑡0 ) to the sliding surface in a limited chattering (Fig. 2).
time (i.e., point 𝑥(𝑡1 )) was well demonstrated. The moving
paths that start with a start condition given outside the sliding
surface (𝑥(𝑡0 )) are dragged to the slider surface (𝑥(𝑡1 )). This
is known as the "reaching phase" or "hitting phase"
( ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑥(𝑡0 )𝑥(𝑡10 ) ), and the system of SMC is sensitive to
"perturbation- model uncertainties" and "bounded external
unknown disturbances" in this section of the "phase
trajectory".
A designer must be able to reduce or eliminate this
sensitivity in a variety of ways. The important point here is
that if the initial error states are far from the sliding surface,
the discontinuous control gain (𝐾(𝑿(𝑡), 𝑡)) will increase
rapidly. This increase is due to the largeness of |𝑠(0)| and not Fig. 2 A schematic of the level of chattering in the control signal
due to the perturbations and disturbances in the system. This around the sliding surface [6]
is why the discontinuous control gain (𝐾(𝑿(𝑡), 𝑡)) is
increased to an excessive amount. This incremental
Using the "boundary layer around the sliding surface"
discontinuous control gain (𝐾(𝑿(𝑡), 𝑡)) causes error states to
concept, it can be shown that sliding occurs along a
be forced on the sliding surface. That is why some researchers
neighborhood of size equal to 2𝜙 (twice the thickness of the
are talking about the elimination of "reaching phase".
boundary layer- 𝜙) of the sliding surface and can be defined
So far, various approaches have been proposed to eliminate
as such (Fig. 3):
the reaching phase:
1) Propose an integral sliding mode
 {𝑥| |𝑠| ≤ 𝜙, 0 < 𝜙} 
2) Using the sliding surface of the time-varying (or
sliding surface switching) [2]
3) Entering a larger control law [5]
 𝑓̂(𝑿(𝑡), 𝑡) − 𝑓(𝑿(𝑡), 𝑡) | ≤ 𝐹(𝑿(𝑡), 𝑡) 

where 𝜂 is a strictly positive constant.


III. DISCONTINUOUS SIGN FUNCTION IN CONTROL LAW

The control law (u) with the discontinuous sign function


(𝑠𝑖𝑔𝑛(𝑠)) creates a discontinuous control law that requires
infinite switching around the sliding surface. In this way, the
trajectory of the system states must incline toward the
attractive sliding surface. On the other hand, due to the
existence of such a control law, an unwanted problem in
SMC, i.e., the "chattering phenomenon" occurs which ought
Fig. 3 The boundary layer covers the sliding surface.[5] to be reduced or eliminated in some ways. The systems states
being kept on the sliding surface is very crucial, but the
In Fig. 3, we show the behavior of the system states when existence of perturbation and disturbance causes the system
the boundary layer is used around the linear sliding surface states to be unable to stay put on the sliding surface, as a
(𝑠 = 0). It has been seen that around this surface, a radius result, the “chattering phenomenon” takes place. In Fig. 4, the
with a fixed boundary layer thickness (𝜙 ) is created and schematic represents the "chattering phenomenon" along
surrounds the surface. The trajectory of the system states after with the "reaching phase".
reaching this sliding surface; within this cylinder to the radius
( 𝜙 ), continue their irregular sliding motion until they
converge to the point of equilibrium on 𝑠 = 0.
We consider a second-order nonlinear dynamic system with
Single-Input Single-Output (SISO):

 𝑥̈ (𝑡) = 𝑓(𝑿(𝑡), 𝑡) + 𝑔(𝑿(𝑡), 𝑡). 𝑢(𝑡) + 𝑑(𝑡) 

where 𝑥(𝑡) is the state vector, 𝑑(𝑡) is a time-varying


disturbance with known upper bound, 𝑢(𝑡) is the control law.
𝑓(𝑿(𝑡), 𝑡) and 𝑔(𝑿(𝑡), 𝑡) are generally nonlinear functions
of time and states. The approximation of 𝑓(𝑿(𝑡), 𝑡) →
𝑓̂(𝑿(𝑡), 𝑡) and 𝑔(𝑿(𝑡), 𝑡) → 𝑔̂(𝑿(𝑡), 𝑡) to achieve 𝑠̇ (𝑡) = 0.
Therefore, the discontinuous control law as follows [7]:

Fig. 4 A schematic of the around the sliding surface


 𝑢(𝑡) = 𝑢𝑒𝑞 (𝑡) + 𝑢𝑠𝑤 (𝑡) 

1
A. Methods for solving the problem of chattering
 𝑢𝑒𝑞 (𝑡) = ̂ (𝑿(𝑡), 𝑡) − 𝑑(𝑡) + 𝑥̈ 𝑑 (𝑡) − 𝜆𝑒̇ )
(−𝑓  phenomena
̂(𝑿(𝑡),𝑡)
𝑔
So far, researchers have proposed varieties of methods to
solve the problem of unwanted chattering phenomena. For
 𝑢𝑠𝑤 (𝑡) = −𝐾(𝑿(𝑡), 𝑡). 𝑠𝑖𝑔𝑛(𝑠(𝑡))  instance:
1) Using the tangent hyperbolic function (𝑡𝑎𝑛ℎ(𝑠/𝜙))
In the equation (3) discontinuous sign function (𝑠𝑖𝑔𝑛(𝑠))
and the deployment of a boundary layer
has covered up and down part of the sliding surface. 𝜆 is a
strictly positive constant, taken to be the bandwidth of the 2) Using the continuous approximations of the sign
system, and 𝑒(𝑡) = 𝑥(𝑡) − 𝑥𝑑 (𝑡) is the tracking error in the function (𝑠𝑖𝑔𝑛(𝑠)) instead of the discontinuous sign function
output state and 𝑒̇ (𝑡) = 𝑥̇ (𝑡) − 𝑥̇ 𝑑 (𝑡) is the tracking 3) Using the saturation function (𝑠𝑎𝑡(𝑠, 𝜙)) instead of
derivative error in the output state and 𝑥𝑑 (𝑡) is the desired the sign function (𝑠𝑖𝑔𝑛(𝑠))and deployment of a boundary
state. Coefficient of the discontinuous sign function layer
(𝐾(𝑿(𝑡), 𝑡)) is the discontinuous control gain. This 4) Using the reduction of the sign function domain
coefficient specifies the convergence speed. For choosing algorithm
𝐾(𝑿(𝑡), 𝑡) the following is suggested: 5) Using Integral Sliding Mode Control (ISMC)
algorithm
 𝐾(𝑿(𝑡), 𝑡) = 𝐹(𝑿(𝑡), 𝑡) + 𝜂  6) Using the High-Order Sliding Mode Control
(HOSMC) algorithm
The estimation error on 𝑓(𝑿(𝑡), 𝑡) is assumed to be and etc.
bounded by some known function 𝐹 = 𝐹(𝑿(𝑡), 𝑡), so that:
B. Continuous approximation functions of dis-continuous
sign function
Among the drawbacks of the unwanted chattering
phenomenon, one is that it causes "high- frequency control
switching" that may lead to the excitation of "unmodeled
high-frequency system dynamics". Thus "unpredicted
unstable behavior" occurs. It may also cause actuators to
experience unwanted stress and they may crash or their
lifetime be reduced. High-thermal losses in electronic
systems as well as the reduction of lifetime in mechanical
systems can be added to the drawbacks of the unwanted
chattering phenomenon.
One of the recommendations based on eliminating
unwanted chattering phenomena is substituting a Continuous
Approximation of Sign Function (CASF) with the
discontinuous sign function. So far, for this substitution
several functions have been proposed. For instance: Fig. 5 A comparison between CASF and discontinuous sign function

CASF No.1: 2 As it can be seen, the proposed function number (11) is an


appropriate continuous approximation for a discontinuous
2 𝜋 sign function. A designer regarding its own design problem
 𝑠𝑖𝑔𝑛(𝑠) ≈ 𝑔𝑑 ( 𝑠) 
𝜋 2 can choose an appropriate value for the 𝛽 parameter. In Fig.
6, we consider different values for the 𝛽 parameter, and you
CASF No.2:3 can clearly see the different behaviors of our proposed
function (11).
√𝜋
 𝑠𝑖𝑔𝑛(𝑠) ≈ 𝑒𝑟𝑓 ( 𝑠)  Now, by applying the proposed function for the second -
2
order differential equation (12) in the simulation of the
CASF No.3:4 control law (14), we see that the unwanted chattering
phenomena is eliminated (Fig. 7). The result is that at a given
time, the more the value of 𝛽 parameter increases, the more
2 𝜋 convergence speed to the sliding surface increases.
 𝑠𝑖𝑔𝑛(𝑠) ≈ 𝑎𝑟𝑐𝑡𝑎𝑛 ( 𝑠) 
𝜋 2

CASF No.4:5

 𝑠𝑖𝑔𝑛(𝑠) ≈ (1 + 𝑒 −𝑠 )−𝛼 , 0 < 𝛼 

CASF No.5:6

𝑠
 𝑠𝑖𝑔𝑛(𝑠) ≈  
1+|𝑠|

Our CASF proposal as follows:

𝑠
 𝑠𝑖𝑔𝑛(𝑠) ≈ , 0 < 𝛽 
√𝑠 2 +𝛽

C. Comparison between Continuous Approximation of Sign Fig. 6 Behaviors of our proposed functions with different 𝛽 parameter
Functions (CASF) with discontinuous sign function
We consider a second-order nonlinear system as follows:
In Fig. 5, the CASF of the numbers (8), (10), (11) and
discontinuous sign function are represented below. 𝑥̇1 = 𝑥2
 { −𝑥22  
𝑥̇ 2 = 𝑥1 𝑒 + (1.5 sin(𝑡))𝑢

We consider sliding surface as follows:

2 - Gudermannian function 5 - Generalized logistic function


3 - Error function 6 - Softsign function
4
- Arctangent function
 𝑠 = 𝑥2 + 𝜆𝑥1 , 0 < 𝜆 = 4 
The equations of control laws used in Fig. 8 as follows:
We can design control law as follows:

 𝜂 = 2 , 𝜙 = 0.001 ;   𝑢1 = −(𝐹 + 𝜂)𝑠𝑎𝑡(𝑠, 𝜙) 

|𝑥1 |+𝜆|𝑥2 | 𝑠
 𝐹= ;   𝑢2 = −(𝐹 + 𝜂) ( ) 
0.5 1+|𝑠|

 𝑢 = −(𝐹 + 𝜂)𝑠𝑎𝑡(𝑠, 𝜙); (𝑆𝑎𝑡𝑢𝑟𝑎𝑡𝑖𝑜𝑛 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛)  2 𝜋


 𝑢3 = −(𝐹 + 𝜂) ( 𝑎𝑟𝑐𝑡𝑎𝑛 ( 𝑠)) 
𝜋 2

𝑠
𝑢 = −(𝐹 + 𝜂) ( ) , 0 < 𝛽 = 20 (𝑃𝑟𝑜𝑝𝑜𝑠𝑒𝑑 𝑚𝑒𝑡ℎ𝑜𝑑).
√𝑠 2 +𝛽  𝑢4 = −(𝐹 + 𝜂)(1 + 𝑒 −𝑠 )−𝛼 , 0 < 𝛼 = 10 

𝑠
In Fig. 7, two control laws can be seen. The first control  𝑢5 = −(𝐹 + 𝜂) , 0 < 𝛽 = 20 
√𝑠 2 +𝛽
law consists of the saturation function (𝑠𝑎𝑡(𝑠, 𝜙)) with the
boundary layer thickness (𝜙 = 0.001) and the second control
law consists of the proposed method (11) with 0 < 𝛽 = 20. IV. CONCLUSION AND RECOMMENDATIONS
The value (0 < 𝛽) in the function (11) is a very important
factor for system states to converge to a sliding surface. We have already seen that for eliminating or decreasing
The 𝛽 parameter is an appropriate criterion for the unwanted chattering phenomenon in SMC, researchers
optimization that its value depends on its specific design have proposed a variety of methods and are still working in
problem. Researchers can later present various suggestions this field. One of the methods to eliminate or reduce this
based on this ground. phenomenon is a continuous approximation of sign function
(CASF) that can be used to replace the discontinuous sign
function (the main cause of this phenomenon). This replacing
contains two-feature specifications: One simplicity of
computations and second a designer with a particular
parameter in sign function can control the convergence speed
of system states and their dynamics to reach the sliding
surface, so the designer in an appropriate situation can trade-
off this parameter with other parameters in the design
problem for achieving the optimal design. In this paper, we
propose a function, with such property.
In Fig. 5, we compared our proposed method with three
other proposed functions and it is clear that our proposed
function can be a good function for replacing the sign function
like other functions. In Fig. 6, we presented our proposed
method with the values of 𝛽 parameters and it is seen that a
designer can select desired 𝛽 parameter for specific design
Fig. 7 Simulation of the control laws for Second-order differential problem. In Fig. 7, we applied the proposed method for the
equation (10) second - order differential equation (12) in the simulation of
the control law (14) in order to observe the method of
eliminating unwanted chattering phenomena. In this figure,
we presented the results of proposed method with the
saturation function in the same graph, to show their
differences. In here, we have to pay attention that 𝛽
parameters exists in our proposed method and this parameter
obtain the convergence speed of system states and their
dynamics to reach the sliding surface. Hence, designers can
replace the proposed method with sign function. In addition,
this proposed method can act as an alternative function for the
continuous approximation of sign functions and prevent the
occurrence of unwanted chattering phenomena in controller
design.

REFERENCES
Fig. 8 Control law (u)-time (second) graph
[1] W. Perruquetti and J.-P. Barbot, "Sliding mode control in engineering".
CRC Press, 2002.
In Fig. 8, the control laws are presented together.
[2] E. K. S. In, "New Approaches for On-line Tuning of the Linear Sliding
Surface Slope in Sliding Mode Controllers", vol. 11, no. 1, pp. 45–59,
2003.
[3] S. K. Park and H. K. Ahn, “Robust controller design with novel sliding
surface,” IEE Proceedings-Control Theory Appl., vol. 146, no. 3, pp.
242–246, 1999.
[4] Seong, Min-Sang, Seung-Bok Choi, and Kum-Gil Sung. "Control
Strategies for Vehicle Suspension System Featuring
Magnetorheological (MR) Damper". Vibration Analysis and Control-
New Trends and Developments. InTech, 2011.
[5] M. F. Mendes, W. Kraus Jr, and E. R. De Pieri, "Variable structure
position control of an industrial robotic manipulator", J. Brazilian Soc.
Mech. Sci., vol. 24, no. 3, pp. 169–176, 2002.
[6] Jedda, Olfa, Jalel Ghabi, and Ali Douik. "Sliding Mode Control of an
Inverted Pendulum". In Applications of Sliding Mode Control, pp. 105-
118. Springer, Singapore, 2017.
[7] Y. Feng, F. Han, and X. Yu, "Chattering free full-order sliding-mode
control", Automatica, vol. 50, no. 4, pp. 1310–1314, 2014.

View publication stats

You might also like