The Chattering Problem in Sliding Mode Systems
The Chattering Problem in Sliding Mode Systems
J. Guldner V. I. Utkin
BMW Technik GmbH Dept. Of Electrical Eng., The Ohio State Univ.
Hanauer Strasse 46 205 Dreese Lab, 2015 Neil Ave.
D-80788 München Columbus, OH 43210-1272
Germany USA
juergen.guldner@bmw.de utkin@ee.eng.ohio-state.edu
Keywords: Sliding mode control, chattering, observers ing, in the terminology used here, describes undesired sys-
tem oscillations with finite frequency caused by system
Abstract imperfections.
Almost ever since sliding mode ideas have been put for-
ward, the audible noise some sliding mode controllers ex- 2 Problem Analysis
hibit has irritated control engineers and often has led to
An ideal sliding mode system is depicted in Figure 1. For
resentments and even rejection of the technique. The phe-
this example, a simulation is depicted in Figure 2.
nomenon is best known as “chattering”. Two main causes
have been identified: First, fast dynamics in the control loop M
which were neglected in the system model, are often excited xd ( t ) s( t ) w(t ) x (t )
-M
by the fast switching of sliding mode controllers. Second,
digital implementations in micro-controllers with fixed
x& =...
-
sampling rates may lead to discretization chatter. The latter
was discussed e.g. in [Utkin 1993]. In this paper, the first Controller d (t ) Plant
section, analyses the chattering phenomenon due to the first
cause in detail. The subsequent sections discuss four solu-
tions. Mathematical details can be found in [Utkin et al. Figure 1: Block diagram of ideal sliding mode con-
1999] trol loop. A discontinuous controller forces the out-
put x ( t ) of the plant to exactly track the desired
1 Introduction trajectory xd ( t ) . No chattering occurs since the
The term “chattering” describes the phenomenon of finite- control loop is free of unmodeled dynamics.
frequency, finite-amplitude oscillations appearing in many (a) Output and desired output
sliding mode implementations. These oscillations are 1
0.6
‘Unmodeled dynamics’ may be those of sensors and actua-
0.4
tors neglected in the principal modeling process since they
x d(t)
are generally significantly faster than the main system dy- 0.2
1 ueq(t)
mode controller may be first designed under idealized as- 0 s(t)
sumptions of no unmodeled dynamics. In a second design −1
u(t)
step, possible chattering is to be prevented by one of the −2
methods discussed Section 3 of this contribution. The solu- −3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
tion of the chattering problem is of great importance when Time t
exploiting the benefits of a sliding mode controller in a real-
life system. To some extend, chattering, without proper Figure 2: Ideal sliding mode in first order system.
treatment in the control design, has been a major obstacle State x ( t ) converges to desired xd ( t ) in finite time,
i.e. s( t ) = 0 after t ≈ 0.45 sec . Thereafter, control
for implementation of sliding mode to a wide range of ap-
plications. It should be noted that the switching action itself
as the core of a continuous-time sliding mode system is not
u(t ) switches with infinite frequency and shows as a
referred to as chattering since in the ideal case, the switch- black area. Equivalent control ueq ( t ) , the average of
ing is intended and its frequency tends to infinity; chatter- discontinuous control, is drawn as a dashed line.
In practical applications, unmodeled dynamics in the closed 2 1 1
loop like actuators often prevent ideal sliding mode to occur V& = x(− v − 2 w + 2 u ) (3)
and cause fast, finite amplitude oscillations. Figure 3 shows µ µ µ
a block diagram of the closed control loop including the for small magnitudes of v and w . This means that the
previously neglected actuator dynamics. An example simu-
lation is shown in Figure 4. motion is unstable in an ε(µ) -order vicinity of the mani-
fold s ( x ) = x = 0.
xd (t ) s( t ) M u (t ) w(t ) x (t ) The motion equations (1) may also be written as
µ2w
&& = (..) x& =...
-
-M
x& * = − M sign( x)
(4)
Controller Actuator d (t ) Plant
µ 2 &x& + 2µx& + x = x * .
Figure 3: Control loop with actuator dynamics neglected in Sliding mode can not occur in the systems since the time
ideal control design. Sliding mode does not occur since the derivative x& is a continuous time function and can not have
actuator dynamics are excited by the fast switching of the its sign opposite to x in the vicinity of the point x = 0
discontinuous controller, leading to chattering in the loop. where the control undergoes discontinuities.
1 x(t)
lar perturbation theory (see e.g. [Kokotovic et al. 1976] or
[Kokotovic 1984]), the difference between x and x* is of
State space
0.5
µ -order. The signs of x and x* coincide beyond the
ε(µ) -vicinity of s ( x) = x = 0 , hence the magnitudes of
x (t)
d
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x* and x decrease, i.e. the state trajectories converge to
Time t
(b) Control inputs and sliding variable
this vicinity and after a finite time interval t1 the state re-
4
mains in the vicinity. According to the analysis of the equa-
2 u(t) tions (1)-(3), the motion in the vicinity of x = 0 is unsta-
Control space
s(t)
ble.
0
State space
which approximates the sign(s) term in a boundary layer of
the sliding manifold s(t ) = 0. Numerous types of saturation
0.5
x (t)
d
functions sat(s) have been proposed in the literature.
“In the large”, i.e. for s( t ) > ε , sat( s) = sign( s) . How-
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time t
ever, in a small ε -vicinity of the origin, the so-called (b) Control inputs and sliding variable
Control space
1 u(t)
function s(t)
0
−1
M
Time t
^x(t) - - d (t )
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time t
(b) Control inputs and sliding variable
2
Figure 9: Cascaded controller with continuous auxiliary
Control space
1
^s(t)
0 control and discontinuous actuator control loop.
−1 w(t)
w(t) s(t)
−2
u(t)
−3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 (a) Output and desired output
Time t
x(t)
1
s(t)
Both the boundary layer approach and the observer-based
−1
solution to the chattering problem assume that the ‘unmod- u(t) w(t)
State space
continuous controller to achieve tracking of the desired
trajectory xd ( t ) by the output x ( t ) of the plant. The linear
0.5
controller usually is augmented by an estimate of the distur- x (t)
d
bance. Often, such an estimate is not readily accessible. The
disturbance rejection approach discussed in this section 0
0 0.1 0.2 0.3 0.4
0.5 0.6 0.7 0.8 0.9 1
provides means to obtain an accurate disturbance estimate Time t
(b) Auxilliary sliding variable and disturbance/uncertainty estimation
while avoiding chattering in the main control loop. This 1.5
approach can be viewed as a special case of so-called inte- f(x,t)
J Jv J e.g. [Guldner et al. 1994, Ackermann et al. 1995]. Intro-
(5) ducing auxiliary variable z = β + ψ e , an observer is de-
signed as
& . For a detailed
with states side slip angle β and yaw rate ψ
derivation of (5) see e.g. [Peng 1992]. Parameters are vehi- yˆ& e 0 v yˆ eS l S c
cle mass M and yaw inertia J, distances l f and lr of front &S = + ψ& + 1 y eS , (8)
zˆ 0 0 zˆ 0 c 2
and rear axles from the center of gravity (CG), front and
rear tire cornering stiffness c f and cr , and road adhesion with feedback of the observation error yeS = yeS − y$eS via
factor µ . All parameters are uncertain within known gains c1>0 and c2 >0, chosen faster than the vehicle dy-
− +
bounds, e.g. 0 < µ ≤ µ ≤ µ ≤ 1 . namics in (5). With the help of the observed auxiliary vari-
dT dS able z$ = β$ + ψ$ e , a desired yaw rate is defined as
`r `f
Tail sensor
v
Front
sensor
ψ& d = −
1 ˆ
lS
(
v (β + ψˆ e ) + Cy eS . ) (9)
CG f
yeT yeCG
_ y eS The second step of control design uses the steering angle
Lane reference δ f as the input to (5) to drive yaw rate error
ψ& e = ψ
&d −ψ
& to zero, e.g. by purely discontinuous sliding
mode control
Figure 13: Single track model of a vehicle following a lane & e.
δ f = δ 0signψ (10)
reference. Sensors at the front and tail bumpers measure
lateral displacements yeS and yeT , respectively. Also The stability analysis follows the previously discussed Ly-
shown are vehicle states, side slip angle β and yaw rate
apunov approach and is omitted here for brevity. Alterna-
tively to (10), a combination of continuous feed-
ψ& , input steering angle δ f , and various distances from back/feedforward and a discontinuity term could be em-
center of gravity CG. ployed, i.e.
When following a reference path with curvature ρ ref as
depicted in Figure 13, lateral vehicle displacement yeS ,
δ f = δ 1signψ& e +
1
ˆc f lˆf (
ˆ
) ( )
ˆ
µ
ˆ
cˆ f l f − cˆr lˆr βˆ + 1 cˆ f lˆf2 + cˆr lˆr2 ψ& + J ψ&&d
v
measured at some sensor position d S ahead of CG, and (11)
angular error ψ e can be described by linearized dynamic where estimates of vehicle parameters are denoted with
model $ , stems from an
‘hats’ ( $⋅ ) , the estimate of side slip angle, β
y& eS = v (β + ψ e ) + d S ψ& , observer similar to (8) and the derivative of the desired yaw
(6) && d , can be derived from (9) by virtue of known ob-
rate, ψ
ψ& e = ψ& − vρ ref . server dynamics. Due to the continuous feed-
back/feedforward terms in (11), the gain of the discontinuity
Given (5) and (6), various control design options are possi-
ble. As an example, we present a cascaded control design term can be reduced as compared to (10), i.e. δ 1 < δ 0 .
under the assumption that vehicle yaw rate ψ & is measurable The above control design neglects the dynamics of the
by a gyroscope. The control design follows the regular form steering actuator, which will lead to chattering in practical
methodology (see Section 3.3) and considers subsystem (5) implementations. In addition to the chattering prevention
as the input to subsystem (6). Hence, the first design step methods discussed above, the introduction of an integrator
assumes yaw rate ψ & to be a direct input to (6) and derives a in the control loop proved to be a promising approach.
&
desired yaw rate ψ d . The second step then ensures that the Originally, the integrator was a physical model of the ac-
actual, measured vehicle yaw rate ψ & follows ψ & d exactly tuator dynamics (see e.g. [Ackermann et al. 1993]) with the
steering rate u being the system input as
via appropriate control design for steering angle δ f in (5),
the true system input. A suitable continuous feed-
δ& f = u , (12) 5 Discussion
In applications of sliding mode control, unmodeled dynam-
rather than the steering angle δ f itself. The additional inte-
ics in the control loop are often excited by the discontinuous
grator only requires to alter the outer control loop (10/11). switching action of a sliding mode controller, leading to
Define a second order sliding variable oscillations in the motion trajectory. Due to the acoustic
& e +ψ
s = C3 ψ && e , (13) noise such oscillations may cause in mechanical systems,
this phenomenon is also referred to as ‘chattering’. This
leading to a control law paper studied the chattering problem and presented four
solutions. All four discussed solutions to the chattering
δ f = δ 0 sign s (14)
problem reliably eliminate chattering in the control loop. In
instead of (10). The alternative feedback/feedforward con- order to successfully prevent chattering, all methods require
troller term in (11) has to be adjusted accordingly. If the some estimate of the time constant or the bandwidth of the
real steering actuator is not an integrator as in (12), but unmodeled dynamics. Instead of achieving exact tracking
features more complex dynamics e.g. of an electro- performance as in ideal sliding mode, small tracking error
hydraulic actuator, two design alternatives are left to the are tolerated.
control engineer. Either, a sliding mode controller is de- In general, the achievable performance of a control system
signed according to (10/11) with appropriate measures to depends on the performance of sensors and actuators, avail-
prevent chattering as discussed above, or an integrator like ability of knowledge about the system, i.e. the quality of the
(12) is introduced as part of the controller, i.e. realized in system model, and the availability of measurements of sys-
the controller software. The latter case follows the ideas of tem variables. For example, a system with a slow actuator
integral sliding mode by implementing sliding motion in an can not fully reject fast disturbances, regardless of the con-
integral manifold rather than directly in the control input trol design methodology used. A sliding mode controller
variable δ f . Hence the switching action of the sliding mode under ideal conditions is able to fully exploit the system
discontinuity is first filtered by integrator (12) and thus does capabilities. Under realistic conditions, a chattering preven-
not directly reach the input δ f , which inherently prevents tion scheme should be selected depending on the system
specifications to ensure good system performance.
chattering. A different integrator location in the control loop
was proposed by [Pham et al. 1994], before rather than after The first of the discussed method substitutes the discontinu-
the switching discontinuity. The interested reader is referred ity of a sliding mode controller by a saturation function and
to [Hingwe and Tomizuka 1995] for a comparison of differ- yields motion in a boundary layer of the sliding manifold
ent integrator locations in the controller loop. Experimental instead of true sliding along the manifold. Effectively,
results from this work are displayed in Figure 141. sliding mode methodology is utilized to design a continuous
0.1 5
high-gain controller which respects bounds on the control
resources.
Lateral error [m]
0.05
Steering angle [deg]
0
4
tinuous controller in a system with discontinuous inputs
−0.5
2
generally requires pulse-width modulation (PWM), whereas
−1
0 15 30 45
0
0 15 30 45
direct implementation of sliding mode control with an ob-
Time [s] Time [s] server avoids the detour via PWM.
Figure 14: Experimental results of an automatic steering The third method is mainly designed for systems where
controller based on sliding mode design. some knowledge of the unmodeled dynamic and intermedi-
ate measurements are available, e.g. known actuator dy-
namics. Such systems consisting of separated blocks may be
controlled with a cascaded control structure which avoids
chattering by explicitly taking the unmodeled dynamics into
account for the control design. In this sense, they are no
longer “unmodeled”, but rather part of the overall system
model.
1
Courtesy Dr. Hingwe and Prof. Tomizuka.
The last method combines a continuous and a discontinuous Krstic, M., I. Kanellakopoulos, P. Kokotovic, Nonlinear
controller to achieved good performance without chattering. and Adaptive Control Design, Wiley-Interscience, New
The continuous part controls the overall motion whereas the York, NY, USA, 1995.
task of the discontinuous part is to reject the influence of
Leitmann, G., “On the Efficacy of Nonlinear Control in
parametric uncertainty and disturbances. This method is a
Uncertain Systems”, ASME Journal of Dynamic Systems,
special case of integral sliding mode and is especially useful
Measurement and Control, vol. 102, pp. 95-102, 1981.
for systems with large uncertainties and/or disturbances.
Patwardhan S., H.-S. Tan and J. Guldner,“A General
All four methods possess their advantages and disadvan-
Framework for Automatic Steering Control”, in Proc.
tages which depend on the system specifications. When
American Control Conf., Albuquerque, NM, USA, pp.
designing a sliding mode controller for a given system, the
1598-1602, 1997.
choice of which method to employ to prevent chattering
usually requires careful consideration of all details; unfortu- Peng, H., Vehicle Lateral Control for Highway Automation,
nately, no textbook solution exists to cope with all system in Ph.D. Dissertation, University of California (Dept. of Me-
a general manner. chanical Engineering), Berkeley, CA, USA, 1992
Pham, H., K. Hedrick, and M. Tomizuka, “Combined Lat-
eral and Longitudinal Control of Vehicles for IVHS”, in
References Proc. American Control Conference, Baltimore, MA, USA,
pp. 1205-1206, 1994
Ackermann, J., A. Bartlett, D. Kaesbauer, W. Sienel, and R.
Steinhauser, Robust Control: Analysis and Design of Linear Slotine, J.-J. and S. S. Sastry, “Tracking Control of Nonlin-
Control Systems with Uncertain Physical Parameters. Lon- ear Systems using Sliding Surfaces, with Application to
don, UK: Springer-Verlag, 1993. Robot Manipulators”, Int. Journal of Control, vol. 38, no.
2, pp. 465-492, 1983.
Ackermann J., Guldner J., Sienel W., Steinhauser R., und
Utkin V.I., “Linear and Nonlinear Control Design for Slotine, J.-J., “Sliding Controller Design for Nonlinear
Automatic Steering”, IEEE Trans. on Control Systems Systems”, Int. Journal of Control, vol. 40, no. 2, pp 421-
Technology, vol. 3, no. 1, pp. 132-143, 1995. 434, 1984.
Bondarev A.G., S. A. Bondarev, N. E. Kostyleva and V. I. Stevens, W., “The Automated Highway Systems Program:
Utkin, ”Sliding Modes in Systems with Asymptotic State A Progress Report”, in Preprints of the 13th IFAC World
Observers”, Automation and Remote Control, vol. 46, no. 6 Congress (plenary volume), San Francisco, CA, USA, pp.
(P. 1), pp. 49-64. 1985. 25-34, 1996.
Drakunov, S.V., D.B. Izosimov, A.G. Luk’yanov, V.A. Tsugawa, S., M. Aoki, A. Hosaka, and K. Seki, “A Survey
Utkin and V.I. Utkin, “Block Control Principle I, II“, Auto- of Present IVHS Activities in Japan”, in Preprints of the
mation and Remote Control, vol. 51, pp. 601-609 and vol. 13th IFAC World Congress (Vol. Q), San Francisco, CA,
52, pp. 737-746, 1990. USA, pp. 147-152, 1996.
Guldner, J., V.I. Utkin, and J. Ackermann, “A Sliding Mode Utkin, V. I., “Sliding mode control in discrete-time and
Approach to Automatic Car Steering”, in Proc. American difference systems”, in Variable Structure and Lyapunow
Control Conf., (Baltimore, MA, USA), pp. 1969-1973, Control (A. Zinober, editor), London, UK: Springer-Verlag,
1994. 1993
Hedrick, J.K, M. Tomizuka, and P. Varaiya, “Control Issues Utkin, V. I., and J. Shi, “Integral sliding mode in systems
in Automated Highway Systems", IEEE Control Systems, operating under uncertainly conditions” in Proc IEEE Conf.
1994. On Decision and Control, Kobe (Japan), pp. 4591-4596,
1996.
Hingwe, P., and M. Tomizuka, “Two Alternative Ap-
proaches to the Design of Lateral Controllers for Commuter Utkin, V.I., J. Guldner and J. Shi, Sliding mode control in
Buses based on Sliding Mode Control”, in Advanced Auto- electro-mechanical systems, Taylor&Francis, London, 1999
motive Technologies, presented at ASME Int. Mech. Eng.
Congress and Exposition, pp. 99-104, 1995.
Kokotovic, P.V., R.B. O’Malley and P. Sannuti, “Singular
Perturbations and Order Reduction in Control Theory”,
Automatica, vol. 12, pp. 123-132, 1976
Kokotovic, P.V., “Applications of Singular Perturbation
Techniques to Control Problems”, SIAM Review, vol. 6, no.
4, pp. 501-550, Oct. 1984.