53
arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG Thème NUM INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE Implicit Euler numerical simulations of sliding mode systems Vincent Acary — Bernard Brogliato N° 6886 March 2009

Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

arX

iv:0

904.

1682

v1 [

mat

h.N

A]

10 A

pr 2

009

appor t de r ech er ch e

ISS

N02

49-6

399

ISR

NIN

RIA

/RR

--68

86--

FR

+E

NG

Thème NUM

INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE

Implicit Euler numerical simulations of sliding modesystems

Vincent Acary — Bernard Brogliato

N° 6886

March 2009

Page 2: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 3: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Centre de recherche INRIA Grenoble – Rhône-Alpes655, avenue de l’Europe, 38334 Montbonnot Saint Ismier

Téléphone : +33 4 76 61 52 00 — Télécopie +33 4 76 61 52 52

Impli it Euler numeri al simulations of sliding mode systems

Vin ent A ary

∗, Bernard Brogliato

Thème NUM � Systèmes numériques

Équipe-Projet Bipop

Rapport de re her he n° 6886 � Mar h 2009 � 36 pages

Abstra t: In this report it is shown that the impli it Euler time-dis retization of some lasses

of swit hing systems with sliding modes, yields a very good stabilization of the traje tory and

of its derivative on the sliding surfa e. Therefore the spurious os illations whi h are pointed out

elsewhere when an expli it method is used, are avoided. Moreover the method (an event- apturing,

or time-stepping algorithm) allows for a umulation of events (Zeno phenomena) and for multiple

swit hing surfa es (i.e., a sliding surfa e of odimension > 2). The details of the implementationare given, and numeri al examples illustrate the developments. This method may be an alternative

method for hattering suppression, keeping the intrinsi dis ontinuous nature of the dynami s on

the sliding surfa es. Links with dis rete-time sliding mode ontrollers are studied.

Key-words: Swit hing systems, Filippov's di�erential in lusions, omplementarity problems,

ba kward Euler algorithm, sliding modes, maximal monotone mappings, mixed linear omplemen-

tarity problem, ZOH dis retization.

∗vin ent.a ary�inrialpes.fr

†Bernard.brogliato�inrialpes.fr

Page 4: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Simulations numériques par la méthode d'Euler impli ite des

systèmes à modes glissants

Résumé : Dans e rapport, on montre que la dis rétisation en temps de type Euler impli-

ite onduit à une très bonne stabilisation d'une lasse de systèmes ommutés ave des modes

glissants, et de leurs dérivées sur la surfa e de glissement. Les os illations arti� ielles qui sont

généralement mentionnées pour l'implémentation dis réte de e type de systèmes sont évitées. De

plus, la méthode (de type �event- apturing� ou �time�stepping�) permet de traiter des a umula-

tions d'événements (Phénomène de Zenon) et des surfa es de ommutations multiples (i.e. des

surfa es de glissement de odimension > 2). Dans e rapport, les détails de l'implémentation sont

donnés et des exemples numériques illustrent ses propriétés. Cette méthode peut être une alterna-

tive aux méthodes omplexes de suppression des os illations, en gardant la nature intrinsèquement

dis ontinue de la dynamique sur les surfa es de glissement. Le lien ave les ommandes à modes

glissants en temps dis ret est étudié.

Mots- lés : Systèmes ommutés, In lusion Di�érentielles de Filippov, Problèmes de omplémen-

tarité, Méthode d'Euler impli ite, modes glissants, opérateurs, maximaux monotones, Problème

linéaire de omplémentarité mixte, Dis rétisation Bloqueur d'Ordre Zéro (BOZ)

Page 5: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 3

1 Introdu tion

Sliding mode ontrollers are widely used be ause of their intrinsi robustness properties [41, 23,

8, 51℄. Some important �elds of appli ation are indu tion motors [43, 53, 7℄, air raft ontrol

[44, 32, 54, 35℄, hard disk drives [33, 31℄, solar energy systems [28℄. However they are known to

generate hattering whi h renders their appli ation deli ate. Solutions to ope with hattering

or redu e its e�e ts have been proposed, see e.g. [4, 5, 12, 15, 51, 55℄, whi h also have their

own limitations [55℄. One drawba k of these solutions is that they usually destroy the intrinsi

dis ontinuous nature of sliding mode ontrol. Fundamentally, these ontrol s hemes are of the

swit hing dis ontinuous type and they yield losed-loop systems that an be re ast into Filippov's

di�erential in lusions. The numeri al simulation of su h nonsmooth dynami al systems is non

trivial and it has re eived a lot of attention, see e.g. [50, 49, 16, 34, 22, 37, 20℄, to ite a few.

Both event-driven methods and time-stepping methods have been developed, see e.g. [1℄ for a

survey. In this paper we fo us on time-stepping methods, whi h have an interest not only for the

sake of numeri al simulation, but also for the real implementations of sliding mode ontrollers on

dis rete-time systems [52℄. Re ently it has been shown that the expli it Euler method generates

unwanted e�e ts like spurious os illations (also alled hattering e�e ts) around the swit hing

surfa e [25, 26, 52, 57℄. In parallel, the digital implementation of sliding mode ontrollers has been

studied thoroughly in [27, 36℄, where the Zero�Order Holder (ZOH) dis retization is used.

The purpose of this paper is to analyze the impli it (ba kward) Euler method for some parti ular

lasses of di�erential in lusions, that in lude sliding mode ontrollers. It is shown that, besides

onvergen e and order results, the advantage of the impli it method is that it allows one to get a

very a urate and smooth stabilization on the swit hing surfa e (of odimension one or larger than

one). Roughly speaking, this is due to the fa t that the swit hes are no longer monitored by the

state at step k, but by a multiplier (a sla k variable in a nonlinear programming language). The

multivalued part of the sgn(·) fun tion, i.e. a multifun tion, is then orre tly taken into a ount,

avoiding sti� problems. The advantage of su h �dual� methods in terms of their a ura y on the

sliding surfa e has already been noti ed in [49, 50℄ in an event-driven ontext, where the motivation

was the simulation of me hani al systems with Coulomb fri tion. From a numeri al point of view,

our study shows that onvergen e and order results may not be su� ient to guarantee that the

derivative of the state is orre tly approximated on the swit hing surfa e. The impli it method

adapts naturally to an arbitrary large number of swit hing surfa es, that is not the ase of most of

the other methods whi h be ome quite umbersome as soon as more than two swit hing surfa es

are onsidered. A further advantage of the proposed method is that ontrary to other methods that

have been studied and whi h destroy the intrinsi dis ontinuous nature of sliding mode systems

1

(like the so- alled boundary layer ontrol, or various �ltering te hniques), our method keeps

the multivalued dis ontinuity and onsequently the fundamental aspe ts and properties of sliding

mode ontrol from a Filippov's systems point of view. Moreover, sampling rates need not be high

to redu e hattering, ontrary to other dis rete sliding mode ontrollers. A se ond ontribution

of this paper is to show that the results that hold for the ba kward Euler s heme, extend to ZOH

dis retizations of sliding mode systems.

The paper is organized as follows: Se tion 2 presents a motivating example for using an impli it

Euler implementation of the simplest sliding mode system. In Se tion 3, a lass of di�erential in lu-

sions is introdu ed and existen e and uniqueness results are given under the maximal monotoni -

ity assumption. Through several examples, the Equivalent�Control�Based Sliding�Mode�Control

(ECB-SMC) and the Lyapunov�based dis ontinuous robust ontrol are shown to �t well within

this lass of di�erential in lusion. In Se tion 4, some onvergen e and hattering free �nite�time

stabilization results are given. These entral results of the paper show that the impli it Euler

implementation of the di�erential in lusion yields a hattering free onvergen e in �nite time on

the sliding surfa e. Se tion 5 is devoted the study of Dis rete�time Sliding Mode Control and the

extension to ZOH dis retization. Some hints on the numeri al implementation of the impli it Euler

s heme are given in Se tion 6 and the paper ends with some numeri al experiments in Se tion 9.

1

see [55℄ for a dis ussion on this point.

RR n° 6886

Page 6: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

4 A ary & Brogliato

Notations and de�nitions: Let A ∈ IRn×m, then A•i is the ith olumn and Ai• is the ith

row. The open ball of radius r > 0 entered at a point x ∈ IRnis denoted by Br(x). For a set

of indi es α ⊂ {1, . . . , n} and a olumn ve tor x ∈ IRn, the olumn ve tor xα will denoted the

sub-ve tor of orresponding indi es in α, that is xα = [xi, i ∈ α]T .

2 A simple example

To start with we onsider the simplest ase:

x(t) ∈ −sgn(x(t)) =

1 if x(t) < 0−1 if x(t) > 0[-1,1℄ if x(t) = 0

, x(0) = x0 (1)

with x(t) ∈ IR. This system possesses a unique Lips hitz ontinuous solution for any x0. The

ba kward Euler dis retization of (1) reads as:

xk+1 − xk = −hsk+1

sk+1 ∈ sgn(xk+1)(2)

This method onverges with at least order

12 (see Proposition 2 below). Let us now state a result

whi h shows that on e the iterate xk has rea hed a value inside some threshold around zero for

some k, then the dual variable sk+1 keeps its value and so does xk+n for all n > 1.

Lemma 1 For all h > 0 and x0 ∈ IR, there exists k0 su h that xk0+n = 0 and

xk0+n+1 − xk0+n

h=

0 for all n > 1.

Proof: The value k0 is de�ned as the �rst time step su h that xk0∈ [−h, h]. If x0 ∈ [−h, h],

then k0 = 0. Otherwise, the solution of the time-dis retization (2) is given by xk = x0 −sgn(x0)kh, sk = sgn(xo) while xk /∈ [−h, h] for k < k0, and k0 = ⌈ |x(0)|h ⌉ − 1. The symbol

⌈x⌉ is the eiling fun tion whi h gives the smallest integer greater than or equal to x.Let us now onsider that xk0

∈ [−h, h]. The only possible solution for

xk0+1 − xk0= −hsk0+1

sk0+1 ∈ sgn(xk0+1)(3)

is xk0+1 = 0 and sk0+1 =xk0

h. For the next iteration, we have to solve

xk0+2 = −hsk0+2

sk0+2 ∈ sgn(xk0+2)(4)

and we obtain xk0+2 = 0 and sk0+2 = 0. The same holds for all xk0+n,sk0+n, n > 3, redoing the

same reasoning. Clearly then the terms

xk0+n+1 − xk0+n

happroximating the derivative, are zero

for any h > 0. �

This result is robust with respe t to the numeri al threshold that an be en ountered in �oating

point operations. Indeed, let us assume that xk0−h = ε≪ 1, that is, ε > 0 is zero at the ma hine

pre ision. We obtain sk0+1 = −1 and xk0+1 = ε that is zero at the ma hine pre ision. For n = 2,

we obtain xk0+2 = 0 and sk0=

ε

h. This robustness stems from the fa t that the dynami s is not

only monitored by the sign of xk but also by the fa t that the �dual� variable sk+1 belongs to

[−1, 1].

INRIA

Page 7: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 5

xi

−h

h

xk xk+1 xk+2xk−1

si

Figure 1: Iterations of the ba kward Euler method.

Consequently this result shows that there are no spurious os illations around the swit hing

surfa e, ontrary to other time-stepping s hemes like the expli it Euler method [25, 26℄. Remark-

ably Lemma 1 holds for any h > 0, whi h means that even a large time step assures a smooth

stabilization on the sliding surfa e. It is noteworthy that solving the system (2) with unknown

xk+1 and sk+1 is equivalent to al ulate the interse tion between the graph of the multivalued

mapping xk+1 7→ −hsgn(xk+1) and the straight line xk+1 7→ xk+1 − xk. This is illustrated on

Figure 1, where few iterations are depi ted until the state rea hes zero.

From a ontrol perspe tive the input is implemented on [tk, tk+1) as uk = −sgn(xk+1) as afun tion of xk and h, where h is the sampling time. There is no problem of ausality in su h

an implementation. It is noteworthy that in the impli it method there is absolutely no issue

related to al ulating sgn(0), or more exa tly sgn(ǫ) where ǫ is a very small quantity whose sign is

un ertain. The impli it method automati ally omputes a value inside the multivalued part of the

sign multifun tion and may be onsidered as the time-dis retization of the multifun tion sgn(·).It is easy to show that the expli it method yields an os illation around x = 0, as shown in more

general situations in [25, 26℄. Other time-stepping methods exist, like the so- alled swit hed model

[1, 37℄, however it fails to orre tly solve the integration problem when the number of swit hed

surfa es is too large (see also [4℄ for similar issues when the so- alled sigmoid blending me hanism

is implemented). Moreover this method may yield a sti� system, and from a ontrol point of view

it introdu es a high-gain feedba k that may not be desirable in pra ti al appli ations.

On Figure 2(a)-( ), the dis rete state xk and the ontrol sk are displayed for x0 = 1.01 at t0 = 0and for various values of the time�step h that are su� iently large to illustrate the behavior of

the time�stepping s heme and its onvergen e.

Let us de�ne two dis rete fun tion norms to measure the onvergen e:

‖ef‖∞ =∑N

i=0 |fk − f(tk)|

‖ef‖p = (h∑N

i=0 |fk − f(tk)|p)1/p.(5)

We an ompute that

‖es‖∞ = 1 for all h > 0 (6)

and therefore there is no onvergen e in in�nite norm ‖.‖∞ for s = sgn(x). In ‖.‖1 and ‖.‖2, we an respe tively observe the onvergen e with order 1 on Figure 2(d).

Complementarity framework Let us end this se tion by restating the systems (1) and (2)

into the omplementarity framework. Let us introdu e equivalent formulations of the in lusion

RR n° 6886

Page 8: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

6 A ary & Brogliato

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

herro

rs

x(t)−s(t)

(i)(ii)

(iii)

(a) State and Control vs. Time h = 0.2

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

th

erro

rs

x(t)−s(t)

(i)(ii)

(iii)

(b) State and Control vs. Time h = 0.02

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

herro

rs

x(t)−s(t)

(i)(ii)

(iii)

( ) State and Control vs. Time h = 0.01

1e-05

0.0001

0.001

0.01

0.1

1

10

1e-05 0.0001 0.001 0.01 0.1 1

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

h

errors

x(t)−s(t)

(i)(ii)

(iii)

(d) Numeri al error ‖es‖∞ (solid line (i)), ‖es‖1 (dashed line (ii)), ‖es‖2 (dotted line (iii)),

with respe t to h in logs ale

Figure 2: A simple example for x0 = 1.01 at t0 = 0.

INRIA

Page 9: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 7

s(t) ∈ sgn(x(t)) su h that

s(t) ∈ sgn(x(t))⇔ x(t) ∈ N[−1,1](s(t))⇔ s(t) ∈ [−1, 1] and

x(t) = 0 if s(t) ∈]− 1, 1[

x(t) 6 0 if x(t) = −1x(t) > 0 if x(t) = 1

(7)

where N[−1,1] is the normal one in the sense of Convex Analysis to the interval [−1, 1]. The

de�nition of the normal one in the present ase,

N[−1,1](s) = {−v1 + v2, 0 6 v1 ⊥ s+ 1 > 0, 0 6 v2 ⊥ 1− s > 0} (8)

yields the following omplementarity representation of the sign multi-valued fun tion

x(t) ∈ N[−1,1](s(t))⇔

x(t) = −v1(t) + v2(t)

0 6 v1(t) ⊥ s(t) + 1 > 0

0 6 v2(t) ⊥ 1− s(t) > 0

(9)

In order to dire tly substitute the value of s(t) into the dynami s x(t) = −s(t), a other omple-

mentarity formulation an be de�ned. By setting λ1(t) =12 (1 − s(t)) and λ2(t) = v1(t), one gets

x(t) ∈ N[−1,1](s(t))⇔

s(t) = 1− 2λ1(t)

0 6 λ1(t) ⊥ x(t) + λ2(t) > 0

0 6 λ2(t) ⊥ 1− λ1(t) > 0

(10)

3 A lass of di�erential in lusions

Let us now introdu e the following lass of di�erential in lusions, where x(t) ∈ IRn:

x(t) ∈ −A(x(t)) + f(t, x(t)), a.e. on (0, T )

x(0) = x0

(11)

The following assumption is made:

Assumption 1 The following hold:

� (i) A(·) is a multivalued maximal monotone operator from IRninto IRn

, with domain D(A),i.e., for all x ∈ D(A), y ∈ D(A) and all x′ ∈ A(x), y′ ∈ A(y), one has

(x′ − y′)T (x− y) > 0 (12)

� (ii) There exists L > 0 su h that for all t ∈ [0, T ], for all x1, x2 ∈ IRn, one has ||f(t, x1)−

f(t, x2)|| 6 L||x1 − x2||.

� (iii) There exists a fun tion Φ(·) su h that for all R > 0:

Φ(R) = sup

{

‖ ∂f

∂t(·, v) ‖L2((0,T );IRn

) | ‖ v ‖L2((0,T );IRn)6 R

}

< +∞

.

The following is proved in [10, 9℄.

Proposition 1 Let Assumption 1 hold, and let x0 ∈ D(A). Then the di�erential in lusion (11)

has a unique solution x : (0, T )→ IRnthat is Lips hitz ontinuous.

RR n° 6886

Page 10: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

8 A ary & Brogliato

In this paper we shall fo us on in lusions of the form:

x(t) ∈ f(t, x(t)) −BSgn(Cx(t) +D), a.e. on (0, T )

x(0) = x0

(13)

with B ∈ IRn×m, and Sgn(Cx(t) +D)

∆= (sgn(C1x+D1), ..., sgn(Cmx+Dm))T ∈ IRm

. It will be

shown how to re ast (13) into (11).

Example 1 (Equivalent- ontrol-based sliding-mode- ontrol (ECB-SMC)) Consider a sys-

tem x(t) = Fx(t) +Gu, with an equivalent- ontrol-based sliding-mode- ontrol (ECB-SMC) of the

form u(x) = −(HG)−1HFx − α(HG)−1Sgn(Hx), α > 0 (see e.g. [57℄). Then the losed-loop

system x(t) = (F −G(HG)−1HF )x(t)− αG(HG)−1Sgn(Hx(t)) �ts within (13).

Let us now state a well-posedness result whi h is a onsequen e of Proposition 1.

Corollary 1 Consider the di�erential in lusion in (13). Suppose that (ii) and (iii) of Assumption

1) hold. If there exists an n× n matrix P = PT > 0 su h that

PB•i = CTi• (14)

for all 1 6 i 6 m, then for any initial data the di�erential in lusion (13) has a unique solution

x : (0, T )→ IRnthat is Lips hitz ontinuous.

Proof: The proof uses a state variable hange introdu ed in [13℄. Let R be the symmetri

square root of P , i.e. R2 = P . Let us perform the state transformation z = Rx. Then we get

z(t) ∈ Rf(t, R−1z(t))−RBSgn(CR−1z(t) +D) (15)

Noti e that BSgn(CR−1z(t)+D) =∑m

i=1 B•isgn(Ci•R−1z+Di). Therefore RBSgn(CR−1z(t)+D) =

∑mi=1 RB•isgn(Ci•R−1z + Di) =

∑mi=1 R

−1CTi•sgn(C•iR−1z + Di). We an rewrite the

system as

z(t) ∈ Rf(t, R−1z(t))−m∑

i=1

R−1CTi•sgn(Ci•R

−1z(t) +Di) (16)

The multivalued mapping ξ 7→ sgn(ξ) is monotone. By [46, Exer ise 12.4℄ it follows that ea h

multivalued mapping z 7→ R−1CTi•sgn(Ci•R−1z(t) + Di) is monotone. From [29, Proposition

1.3.11℄ it follows that R−1CTi•sgn(Ci•R−1z(t) +Di) = ∂fi(z) with fi(z) = |Ci•R−1z(t) +Di|. By

[45, Theorem 5.7℄ it follows that fi(·) is onvex. Being the subdi�erential of a onvex fun tion,

the multivalued mapping z 7→ ∂fi(z) is maximal (monotone) [45, Corollary 31.5.2℄. Therefore by

Proposition 1 the in lusion in (16) possesses a unique Lips hitz solution on (0, T ) for any T > 0and sin e R is full�rank so does (13). �

Example 2 Consider the sliding mode system in [25, Equ.(1)�(4)℄. One has B = (0 1)T ,

C = (c1 1), D = 0. Then the ondition in (14) holds with P =

(

p11 c1c1 1

)

and p11 > (c1)2

assures that P > 0.

Example 3 Consider B =

(

1 22 −1

)

, Sgn(Cx+D) = (sgn(x1 +2x2), sgn(2x1−x2))T. Traje -

tories may slide on odimension one surfa es x1+2x2 = 0 or 2x1−x2 = 0 and on the odimension

2 surfa e (x1 + 2x2 = 0 and 2x1 − x2 = 0).

Example 4 One solution to redu e hattering is the observer based SMC. Let us onsider the

following example taken from [55℄, whose losed-loop dynami s is given by:

x(t)e(t)xs(t)xs(t)

=

0 0 0 0k −k −k 00 0 0 11τ2 0 − 1

τ2 − 2τ

x(t)e(t)xs(t)xs(t)

1000

sgn(Cx(t)) (17)

INRIA

Page 11: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 9

with C = (1 − 1 0 0). For the notations see [55, �II.C℄. This system satis�es the ondition (14)

with P =

1 −1 0 0−1 p22 0 00 0 p33 00 0 0 p44

, p22 > 1, p33 > 0, p22 > 0.

Noti e that the ondition (14) implies that BT•iPB•i = BT

•iCTi• = Bi•C•i > 0. When m = 1

this is a relative degree one ondition. It is noteworthy that (14) does not imply that B has full

olumn rank. In parti ular it does not pre lude m > n. Dissipative systems with no feedthrough

matrix satisfy an input-output onstraint similar to (14) [14℄.

Example 5 (Lyapunov-based dis ontinuous robust ontrol) Let us show how the above ma-

terial adapts to this type of feedba k ontroller. The lass of dynami al systems is

x(t) = f(x(t)) +Bu(t) +Bγ(t), x(0) = x0 (18)

where x(t) ∈ IRn, B ∈ IRn×m

, f(·) satis�es assumption 1, and γ(·) ∈ IRmis a bounded disturban e

satisfying |γi(t)| < ρi for all 1 6 i 6 m, all t > 0 and some �nite ρi. The problem is the

stabilization of the system at the origin x = 0, knowing that there exists a fun tion V (·) su h

that the un ontrolled undisturbed system x(t) = f(x(t)) admits V (·) as a Lyapunov fun tion. In

parti ular, one has V (x(t)) = ∇V (x(t))T f(x(t)) 6 0 along the traje tories of the free system. Let

us rewrite the system in (18) as

x(t) = f(x(t)) +m∑

i=1

B•iui +m∑

i=1

B•iγi(t) (19)

Let us propose the ontrol input ui(x) = −ρisgn(∇V T (x)B•i). We obtain:

x(t) ∈ f(x(t)) −m∑

i=1

ρiB•isgn(∇V (x)TB•i) +m∑

i=1

B•iγi(t) (20)

We an state the following result.

Corollary 2 Suppose that V (x) = 12x

TPx, P = PT > 0. The system in (20) has a unique

Lips hitz ontinuous solution on [0,+∞) for any x0.

Proof: We have ∇V (x)TB•i = BT•,iPx. Let z = Rx, where R > 0 is the symmetri square

root of P . We may rewrite (20) as

z(t) ∈ Rf(R−1z(t))−m∑

i=1

ρiRB•isgn(BT•iRz) +

m∑

i=1

RB•iγi(t)

Then following the same steps as for the proof of Corollary 1 we on lude that Proposition 1 applies

to this system, hen e to (20). �

Su h a ontroller assures the global asymptoti stability of the equilibrium x = 0. This is

made possible be ause of the multivalued hara teristi of the dis ontinuous input. The losed-loop

system possesses the origin as its unique equilibrium, be ause of the multivaluedness property. The

restri tion to quadrati Lyapunov fun tions stems from monotoni ity preserving onditions, and

is not straightforwardly avoided.

4 Convergen e results and Chattering Free Finite�time Sta-

bilization

The di�erential in lusion (11) is time-dis retized on [0, T ] with a ba kward Euler s heme as follows:

xk+1 − xk

h+A(xk+1) ∋ f(tk, xk), for all k ∈ {0, ..., N − 1}

x0 = x(0)

(21)

RR n° 6886

Page 12: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

10 A ary & Brogliato

where h = TN . The fully impli it method uses f(tk+1, xk+1) instead of f(tk, xk). The onvergen e

and order results stated in Proposition 2 below have been derived for the semi-impli it s heme

(21) in [10℄. So the analysis in this se tion is based on su h a dis retization. However this is only

a parti ular ase of a more general θ−method whi h is used in pra ti al implementations. The

next result is proved in [10℄.

Proposition 2 Under assumption 1, there exists η su h that for all h > 0 one has

For all t ∈ [0, T ], ||x(t) − xN (t)|| 6 η√h (22)

Moreover limh→0+ maxt∈[0,T ] ||x(t)− xN (t)||2 +∫ t

0||x(s)− xN (s)||2ds = 0.

Thus the numeri al s heme in (21) has at least order

12 , and onvergen e holds. The onditions

of Assumption 1 for the existen e and uniqueness results of Proposition 1 are su� ient only. Other

riteria exist, like Filippov's riterion for uniqueness of solutions [18, Proposition 5℄. Similarly it

is possible that time-stepping methods onverge for systems that satisfy su h a riterion, despite

no result seems to be available in the literature. As seen in Lemma 1, the pre ision of the method

may be mu h better than what is to be expe ted from (22) on large portions of the traje tories.

The di�erential in lusion in (13) is therefore dis retized as follows:

xk+1 − xk

h∈ f(tk, xk)−BSgn(Cxk+1 +D), a.e. on (0, T )

x(0) = x0

(23)

One sees that advan ing the impli it method from step k to step k+1 involves solving generalizedequations with unknown xk+1, of the form 0 ∈ Fs(xk+1) + Fm(xk+1) where Fs(·) is singlevaluedwhile Fm(·) is multivalued. h, tk and xk appear as parameters of the generalized equations. Solving

su h generalized equations thus boils down to omputing the interse tion between the graph of

Fs(·) and the graph of Fm(·) as illustrated in se tion 2. The result of Proposition 2 applies to

(23). As we shall see next, su h an impli it method also assures a good estimate of the derivative

x and a smooth stabilization of the dis rete-time solution on the sliding surfa e.

Before stating the smooth stabilization result, let us onsider a preliminary result. Let us

denote the output of the dynami al as:

y(t)∆= Cx(t) +D (24)

Lemma 2 Let us assume that a sliding mode exists for some indi es i ∈ α ⊂ {1 . . .m} su h that

∃t∗ > 0, yα(t) = Cα•x(t) +Dα = 0, for all t > t∗. (25)

Then there exists ρ > 0 su h that for all t > t∗ and for all x(t) su h that Cα•x(t) +Dα = 0, onehas

‖(Cα•f(x(t), t))‖ 6 ρ (26)

Furthermore, let Assumption 1.(ii) holds, then the following bound is satis�ed in the neighborhood

of the sliding subspa e,

∃r > 0, ∃κ > 0, ∃ρ > 0 su h that ∀t > t∗, ∀x ∈ Br(x), ‖(Cα•f(x, t))‖ 6 κr + ρ (27)

for all x(t) su h that Cα•x(t) +Dα = 0.

Proof: From (25), we have yα(t) ∈ Cα•f(x(t), t) − hCα•BSgn(y(t)). For t > t∗, the slidingmode yα(t) = 0 implies that yα(t) = Cα•x(t) = 0 for all t > t∗ and therefore

Cα•f(x(t), t) ∈ Cα•BSgn(y(t)) (28)

INRIA

Page 13: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 11

The in lusion (28) yields

∃ρ > 0, ‖(Cα•f(x(t), t))‖ 6 ρ (29)

for all x(t) su h that Cα•x(t) + Dα = 0. By the assumption 1.(ii), the Lips hitz ontinuity of

f(·, ·) allows us to write for some κ > 0

∀x(t) ∈ Br(x(t)), ‖Cα•(f(x(t), t)− f(x(t), t))‖ 6 ‖Cα•‖Lr ∆= κr. (30)

Combining (29) and (30) ends the proof. �

Lemma 1 extends to (23) as follows when the sliding surfa e of odimension |α| is attained.Lemma 3 Let us assume that a sliding mode o urs for the index α ⊂ {1 . . .m}, that is yα(t) =0, t > t∗. Let C and B be su h that (14) holds and Cα•B•α > 0. Then there exists hc > 0 su h

that ∀h < hc, there exists k0 ∈ IN su h that yk0+n = Cxk0+n+1 +D = 0 for all integers n > 1.

Proof: At ea h time�step, we have to solve for yk+1 = Cxk+1 +D and sk+1 the generalized

equation

{

yk+1 = yk + hCf(tk, xk)− hCBsk+1

sk+1 ∈ Sgn(yk+1)(31)

Under ondition (14), the onvergen e of the time�stepping s heme is ensured by Proposition 2.

The onvergen e and the existen e of the sliding mode ensure that

∃k0, ∃K1 > 0, ∃K2 > 0, ∃t1 > t∗ su h that ‖yα,k0‖ 6 K1

√h and ‖xk0

− x(t1)‖ 6 K2

√h (32)

for Cα•x(t1) +Dα = 0. Using (27) for x(t1) and a su� iently small h su h that r = K2

√h, we

have the following bound

‖yα,k0+ hCα,•f(tk0

, xk0)‖ 6

√h(K1 + hκK2 +

√hρ) (33)

Introdu ing the omplementary index set β = {i, yi(t) = Ci•x(t) + Di 6= 0}, for t > t∗ almost

everywhere and using (33) we obtain that there exists ρ1 > 0 su h that

‖yα,k0+ hCα,•f(tk0

, xk0)− hCα•B•βSgn(yβ,k0+1)‖ 6

√h(K1 + hκK2 +

√h(ρ+ ρ1)) (34)

and therefore it is possible to hoose h1 su h that for all h < h1∣

[

−h(Cα•B•α)−1 [yα,k0

+ hCα,•f(tk0, xk0

)− hCα•B•βSgn(yβ,k0+1)]]

i

∣ 6 1, for all i ∈ α. (35)

If (35) is satis�ed, the unique solution of (31) at the iteration k0 + 1 is given by

yα,k0+1 = 0; sα,k0+1 = −h(Cα•B•α)−1 [yα,k0

+ hCα,•f(tk0, xk0

)− hCα•B•βSgn(yβ,k0+1)] (36)

The next iterate will by given by the solution of the generalized equation,

{

yk0+2 = hCf(tk0+1, xk0+1)− hCBsk0+2

sk0+2 ∈ Sgn(yk0+2). (37)

Using the fa t that yα,k0+1 = Cα•xk0+1 +Dα = 0, we an use (29) to on lude that there exists

h2 su h that for all h < h2∣

[

−h(Cα•B•α)−1 [hCα,•f(tk0+1, xk0+1)− hCα•B•βSgn(yβ,k0+2)]

]

i

∣ 6 1, for all i ∈ α, (38)

and therefore the solution of (37) is

yα,k0+2 = 0; sα,k0+2 = −h(Cα•B•α)−1 [hCα,•f(tk0+1, xk0+1)− hCα•B•βSgn(yβ,k0+2)] (39)

The bound (29) is uniform and an be applied for the next steps. Choosing hc as the minimum

of the onsidered time steps h1, h2, . . ., the proof is obtained for yα,k0+n, n > 1. �

The �nite-time onvergen e of the time-dis retization of similar nonsmooth dynami al systems

(essentially me hani al systems with dry fri tion) is proved in [6℄. Our results may therefore

be onsidered as the ontinuation of studies on the �nite-time onvergen e for algorithms of the

proximal type.

RR n° 6886

Page 14: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

12 A ary & Brogliato

5 Dis rete�time Sliding Mode Control (SMC)

This se tion is devoted to show how the above dis retizations may be used in a digital ontrol

framework.

5.1 Example of an impli it Euler ontroller (IEC)

Let us ome ba k to the in lusion in (1). For this simple system, the ZOH and the Euler dis retiza-

tion yield the same�dis rete system. Assume the integrator x(t) = u(t) is sampled with sampling

period h > 0. On the time interval [tk, tk+1) one has x(t) = xk + htuk, where ht = t − tk. The

ontroller u(x) = −sgn(x) is known as the equivalent ontrol-based SMC [57℄. Let us implement

a �ba kward� ontroller uk = −sgn(xk+1) at time tk, following the above lines. Suppose that

xk ∈ [−h, h]. Then following the same al ulations as in the proof of Lemma 1, we obtain that

sk+1 = xk

h . Therefore on [tk, tk+1):

x(t) = xk −ht

hxk (40)

and it follows that x(tk+1) = xk+1 = 0. On the next sampling interval [tk+1, tk+2) one obtainssk+2 = 0

x(t) = xk+1 −ht

hxk+1 = 0− ht

h0 = 0 (41)

and so on on the next intervals, where the zero value is obviously some small value at the ma hine

a ura y. if we suppose that xk /∈ [−h, h], the value of sk+1 is 1 or −1 a ording to the sign of xk.

To summarize the ontrol is given expli itly in terms of xk and h by

uk = −proj[−1,1](xk

h) (42)

where projC denotes the Eu lidean proje tion operator onto the set C.As alluded to above, su h an �impli it� input is ausal and an be omputed at tk with the

values of the state at tk by (42). It requires at ea h step to solve a rather simple multivalued

problem whi h a Mixed Linear Complementarity Problem (MLCP, see Se tion 6 below). It is not

of the high gain type.

Remark 1 The fa t that the fun tion sgn(·) generates only binary values (+1 or −1) does not

hamper the above method to work. Indeed the impli it Euler method allows us to ompute values

of the sign multifun tion inside its multivalued part at xk = 0.

5.2 Extension to ZOH dis retized systems

The ZOH dis retization of linear time invariant systems x(t) = Fx(t) +Gu(t) with an ECB-SMC

ontroller, u(x) = −(CG)−1(CFx + αSgn(Cx)), α > 0 results in a dis rete-time system of the

form:

xk+1 = Φxk − Γsk for all t ∈ [kh, (k + 1)h) (43)

where h > 0 is the sampling period, and

Φ = exp(Fh)−∫ h

0

exp(Fτ)dτG(CG)−1CF (44)

Γ =

∫ h

0

exp(Fτ)G(CG)−1dτ (45)

with G ∈ IRn×m, C ∈ IRm×n

, when a expli it Euler implementation of the ontrol is performed

[52, 56℄. For an impli it Euler implementation, let us set

{

uk = −(CG)−1(CFxk + sk+1)

sk+1 = Sgn(Cxk+1),(46)

INRIA

Page 15: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 13

whi h orresponds to the impli it dis rete time version of the ECB-SMC ontroller. We therefore

get on ea h sampling period:

xk+1 = Φxk − Γsk+1 for all t ∈ [kh, (k + 1)h) (47)

At ea h time�step, one has to solve

xk+1 = Φxk − Γsk+1

yk+1 = Cxk+1 +D

sk+1 ∈ Sgn(yk+1)

. (48)

Inserting the �rst line of (48) into the se ond line we obtain the following one�step system

{

yk+1 = CΦxk +D − CΓsk+1

sk+1 ∈ Sgn(yk+1). (49)

Comparing with the time�dis retized systems in (23) and (31) one sees that the term hCB is

repla ed in ase of a ZOH method by the term CΓ. Provided the problem has a unique solution

one an ompute the ontroller in (46) with the knowledge of xk, h, F , G and C. We will see in

the next Se tion how the omputation an be arried out in pra ti e.

6 Implementation of Dis rete�Time Systems

Let us onsider in this se tion the following dis rete�time system:

xk+1 = Rxk + p− Ssk+1

yk+1 = Cxk+1 +D

sk+1 ∈ Sgn(yk+1)

(50)

where k > 0 is an integer, xk the dis rete state, yk the dis rete output and sk the dis rete input.

The dis rete system (50) is a ommon representative for the dis retization given by (23), (21) or

(48) and the matri es R ∈ IRn×n, S ∈ IRn×m

and the ve tor p ∈ IRnare determined by the hosen

time�dis retization method and detailed in Se tion 6.2. The matri es C and D are given by their

de�nition in (13).

6.1 Mixed Linear Complementarity Problem (MLCP)

The time�dis retized system (50) appears to be a Mixed Linear Complementarity Problem (MLCP)

that we have to solve at ea h time�step. Let us de�ne what is a MLCP in its general form with

bounds onstraints as it has been proposed in [21℄:

De�nition 1 (MLCP) Given a matrix M ∈ IRm×m, a ve tor q ∈ IRm

and lower and upper

bounds l, u ∈ IRm, �nd z ∈ IRm

, w, v ∈ IRm+ su h that

Mz + q = w − v

l 6 z 6 u

(z − l)Tw = 0

(u− z)T v = 0

(51)

where IR = IR ∪ {+∞,−∞}.

RR n° 6886

Page 16: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

14 A ary & Brogliato

Note that the problem (51) implies that

−(Mz + q) ∈ N[l,u](z). (52)

where the notation NC(x) is used for the normal one in the Convex Analysis sense to a onvex

set C at the point x. The box [l, u] ⊂ IRmis de�ned by the Cartesian produ t of the intervals

[li, ui], i ∈ {1, . . . ,m}. The normal one to a onvex set is a standard instan e of a multi�valued

mapping [45℄. The relation (52) is equivalent to the MCP (51) if we assume that w is the positive

part of Mz + q, that is w = (Mz + q)+ = max(0,Mz + q)) and v is the negative part of Mz + q,that is v = (Mz + q)− = max(0,−(Mz + q)).

In order to state the problem (50) as a MLCP, the variable xk+1 is ondensed into the se ond

line su h that

{

yk+1 = CRxk + Cp− CSsk+1 +D

sk+1 ∈ Sgn(yk+1)(53)

and the following variable and parameters are de�ned as follows

z = sk+1; yk+1 = w − v

M = CS, q = −(CRxk + Cp+D)

li = −1, ui = 1, i = 1 . . .m.

(54)

Finally, the problem (50) an be re ast into a MLCP by observing that

sk+1 ∈ Sgn(yk+1)m

yk+1 ∈ N[−1,1]m(sk+1)m

sk+1 ∈ [−1, 1]m and

yj,k+1 = 0 if sj,k+1 ∈]− 1, 1[

yj,k+1 6 0 if sj,k+1 = −1yj,k+1 > 0 if sj,k+1 = 1

, j ∈ {1, . . . ,m}

(55)

The MLCP (51) is a well-known problem in the mathemati al programming theory arising

for instan e from the Karush�Kuhn�Tu ker optimality onditions of a quadrati program or from

the primal/dual optimality onditions of a linear program. The MCLP enjoys a large number

of numeri al algorithms and several reliable solvers have been implemented. Several families

of solvers may be ited: a) extensions of Lemke and prin ipal pivotal te hniques for LCP to

MLCP [48, 47, 21, 17℄ b) extensions of proje tion/splitting te hniques for MLCP [24, 19℄ and )

semi�smooth Newton methods [40℄. In this paper, the omputations are done with the help the

Si onos/Numeri s open sour e Library [3℄ and/or the PATH solver [21℄. The results of existen e

and uniqueness of solutions of (51) are related to the properties of M (P-properties or oherent

orientations of the asso iated a�ne map (normal map) for parti ular ases of bounds onstraints).

Without entering into further details, we refer to [30, 24℄ for the main results. The assumptions

on the matrix M drives the hoi e of parti ular solvers that an be in polynomial time rather than

standard exponential time for brute for e enumerative solvers.

6.2 Some Time�Dis retization Methods

In this Se tion, the formulation of the dis rete�time system (50) is related to the ontinuous time

system (13) through a given dis retization method.

Expli it Euler dis retization of f(·, ·) Let us start with the expli it Euler dis retization

method of the term f(t, x(t)) as it has been given in (21). At ea h time step, the matri es in (50)

and in the MLCP (51) an be identi�ed as

R = I, p = hf(tk, xk), S = hB, M = hCB, q = −(hCf(tk, xk) + Cxk +D) (56)

INRIA

Page 17: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 15

MLCP solver

−CFxk (CG)−1

uk xk

sk+1

Dis rete-time Plant

Figure 3: Control system s hema with impli it Euler implementation.

Let the assumptions of Corollary 1 be satis�ed with B full� olumn rank (CB = BTPB > 0). Thisresult ensures the existen e and uniqueness of a solution of the MCLP. Furthermore, standard

pivotal te hniques su h as Lemke's method or proje tion/splitting su h as Proje ted Su essive

Over-Relation (PSOR) ompute the solution.

Impli it Euler and θ- method In a more general way, we an hoose to time�dis retize the

term f(t, x(t)) by a impli it Euler s heme or a θ-method. The main motivation for doing in this

way is the higher a ura y and stability that we an obtain for su h a numeri al integration s heme

(see [2℄ for an example of instability with the Expli it Euler method). Let us onsider �rst that the

mapping f(·, ·) is a�ne, that is f(t, x(t)) = Fx(t)+g. The matri es in (50) and in the MLCP (51)

an be identi�ed as

{

R = (I − hθF )−1(I + h(1− θ)F ), p = (I − hθF )−1g, S = h(I − hθF )−1B,

M = hC(I − hθF )−1B, q = −((I − hθF )−1(I + h(1− θ)F )xk + (I − hθF )−1g +D)(57)

for θ ∈ [0, 1]. For θ = 0, the expli it Euler ase is retrieved. For θ = 1, the impli it Euler s hemeis used to dis retize f . If the mapping f(·, ·) is nonlinear, a newton linearization an be invoked.

In this ase, the solution at ea h time step is sought as a limit of solutions of su essive MLCPs.

We refer to [2℄ for a detailed presentation of these developments.

Zero�Order Holder (ZOH) method The ZOH dis retization presented in Se tion 5.2 an be

also formalized into the form (50) and then (51) with

R = Φ, p = 0, S = Γ, M = CΓ, q = −(CΦxk) (58)

In pra ti e, numerous methods are available to ompute the ZOH dis retization, i.e., Φ and Γwhi h amounts to ompute the matrix exponential and its time integral [39℄. In this work, the

numeri al omputation is performed using an expli it Runge�Kutta method with high order of

a ura y and a numeri al toleran e near the ma hine pre ision threshold. On the Figure 3, the

ontrol s heme is depi ted showing that the ontroller is ausal and omputed form xk.

7 Two other lasses of di�erential in lusions

In this se tion, we introdu e other lasses of di�erential in lusions whi h extend (13). The se ond

lass of di�erential in lusions is:

x(t) ∈ f(t, x(t)) −∑mi=1(Aix(t) +Bi)sgn(Cix(t) +Di), a.e. on (0, T )

x(0) = x0

(59)

with Ai ∈ IRn×n, Bi ∈ IRn×1

, Ci ∈ IR1×n, Di is a s alar.

RR n° 6886

Page 18: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

16 A ary & Brogliato

The third lass that we shall analyze is:

x(t) ∈ f(t, x(t)) − g(x(t))Sgn(h(x(t)), a.e. on (0, T )

x(0) = x0

(60)

where g : IRn → IRn×mand h : IRn → IRm

are smooth fun tions, Sgn(h(x)) = [sgn(h1(x), ..., sgn(hm(x)]T ∈IRm

.

Corollary 3 Consider the di�erential in lusion in (59). Suppose that (ii) and (iii) of Assumption

1) hold. Suppose that the multivalued mappings x 7→ (Aix + Bi)sgn(Cix + Di), 1 6 i 6 m, are

hypomonotone. Then for any initial data the di�erential in lusion (59) has a unique solution

x : (0, T )→ IRnthat is Lips hitz ontinuous.

The proof is straightforward and is omitted.

Example 6 The mapping IR→ IR, x 7→ (x+ 1)sgn(x) is hypomonotone. Indeed (x+ 1)sgn(x) =|x|+ sgn(x) and x 7→ |x|+ kx is monotone for any k > 1.

Example 7 Let k1, k2 be reals. The mapping F : IR → IR, x 7→

−k1x+ 1 if x > 0−k2x− 1 if x 6 0[−1, 1] if x = 0

, is

hypomonotone with onstant k for any k > max(|k1|, |k2|). Let k1 = −k2 = k. Then F (x) =(kx + 1)sgn(x). The linearized Stribe k fri tion model (with multivalued part at zero tangential

velo ity) [38℄ is hypomonotone.

Let us state other ases where (59) �ts within Proposition 1.

Lemma 4 Let Bi = αCTi for some α > 0, Di = 0 and Ker(Ci) ⊆ Ker(Ai). Then for any

initial data the di�erential in lusion (59) has a unique solution x : (0, T )→ IRnthat is Lips hitz

ontinuous..

Proof: First noti e that the set-valued mapping x 7→ αCTi sgn(Cix+Di) is maximal monotone

[46, Exer ise 12.4℄. Under the lemma's onditions, one sees that x 7→ Aixsgn(Cix) is ontinuouson the surfa e Σi = {x ∈ IRn | Cix = 0}. Indeed the jump of the ve tor �eld is equal to 2Aix = 0on Σi. Moreover it is Lips hitz ontinuous as it is pie e ewise linear. Hen e Proposition 1 applies.

Corollary 4 Consider the di�erential in lusion in (60). Suppose that (ii) and (iii) of Assump-

tion 1) hold. Suppose that the multivalued mappings x 7→ g•i(x)sgn(hi(x)), 1 6 i 6 m, are

hypomonotone. Then for any initial data the di�erential in lusion (60) has a unique solution

x : (0, T )→ IRnthat is Lips hitz ontinuous.

The proof is straightforward and is omitted.

Example 8 The mapping F : IR → IR, x 7→ 11+x2 sgn(arctan(x)), is hypomonotone with any

k > 98√3.

Remark 2 As noted in [55℄ hattering may be due in sliding mode ontrol apppli ations to the

presen e of parasiti dynami s. Simple modelling of these yield when inserted in (1) the di�erential

in lusion (see [55, (7) (8)℄)

x(t)xs(t)xs(t)

=

0 0 00 0 11τ2 − 1

τ2 − 2τ

x(t)xs(t)xs(t)

100

sgn(Cx(t)) (61)

INRIA

Page 19: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 17

with C = (0 1 0). The relative degree of the triplet (A,B,C) of this system is r = 3, where

B = (1 0 0)T and A =

0 0 00 0 11τ2 − 1

τ2 − 2τ

. This system does not �t within the above lasses

of in lusions. Similar on lusions hold for the other form of parasiti s in [55, (3) (4)℄. Su h

parasiti s may be seen as a non ollo ation issue, that is known to greatly in�uen e the stability

of systems and usually may yield instability. The mere existen e and uniqueness of solutions

for su h relative degree 3 systems is not trivial. In [42℄ an example is given that possesses an

in�nity of absolutely ontinuous Filippov's solutions, but a unique so- alled forward solution. One

interesting question is to determine what kind of solution is approximated by the ba kward Euler

method applied to (61) whi h, a ording to [42, Theorem 1℄ has a unique forward solution sin e its

leading Markov parameter is CA2B = 1τ2 > 0. A possible solution for this non ollo ation issue is

the observer design of Example 4.

The di�erential in lusions in (59)�(60) are therefore dis retized as follows:

xk+1−xk

h ∈ f(tk, xk)− ρxk −∑m

i=1(Aixk+1 +Bi)sgn(Cixk+1 +Di) + ρixk+1, a.e. on (0, T )

x(0) = x0

(62)

and

xk+1−xk

h ∈ f(tk, xk)− ρxk − g(xk+1)Sgn(h(xk+1) + ρxk+1, a.e. on (0, T )

x(0) = x0

(63)

where the ρi are the hypomonotoni ity onstants and

∑mi=1 ρi = ρ. The result of Proposition 2

applies to (62) and (63).

7.1 A simple hypomonotone ase

As shown in Se tion 2 on a simple monotone example, in pra ti e the interse tion may be omputed

as follows. Let us now illustrate this on the following system with hypomonotone multivalued part:

x(t) ∈ −(x(t) + 1)sgn(x(t)) + u(t) (64)

with x(t) ∈ IR. We may dis retize it as:

−(xk+1 − xk − huk − hρxk) ∈ h(xk+1 + 1)sgn(xk+1) + hρxk+1, k > 0, x0 = x(0) (65)

Noti e that we may rewrite (65) as

0 ∈ xk+1 − (xk + huk + hρxk) + h(xk+1 + 1)sgn(xk+1) + hρxk+1 (66)

Let us denote the mapping in the right-hand-side of (66) as F (xk+1). The set-valued mapping

F (·) is strongly monotone [24, De�nition 2.3.1℄ for all ρ > 1. It follows from [24, Theorem 2.3.3℄

that the generalized equation 0 ∈ F (xk+1) has a unique solution.For u(t) = 0, the following Lemma extends the Lemma 1.

Lemma 5 For all 1 > h > 0 and x0 ∈ IR, there exists k0 su h that xk0+n = 0 andxk0+n+1 − xk0+n

h=

0 for all n > 1.

Proof:If x0 ∈ [−h, h], then k0 = 0. Otherwise, for k < k0 and xk /∈ [−h, h], the solution is

given by :

xk+1 =xk − hsgn(xk)

1 + hsgn(xk); sk+1 = sgn(xk) (67)

RR n° 6886

Page 20: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

18 A ary & Brogliato

From the solution (67), the step k0 for whi h xk0∈ [−h, h] an be easily found. Let us now

onsider that xk0∈ [−h, h]. The only possible solution for

xk0+1 − xk0= −h(xk0+1 + 1)sk0+1

sk0+1 ∈ sgn(xk0+1)(68)

is xk0+1 = 0 and sk0+1 =xk0

h. For the next iteration, we have to solve

xk0+2 = −hsk0+2

sk0+2 ∈ sgn(xk0+2)(69)

and we obtain xk0+2 = 0 and sk0+2 = 0. The same holds for all xk0+n,sk0+n, n > 3, redoing the

same reasoning. Clearly then the terms

xk0+n+1 − xk0+n

happroximating the derivative, are zero

for any h > 0. �

We on lude that in this ase also the system and its derivative are orre tly approximated at

the zero value on the sliding surfa e. There is no spurious os illation around the swit hing surfa e.

8 Detailed Implementation of Impli it Euler Dis retization

of the general ase (60)

This se tion is devoted to the implementation and the study of the numeri al algorithm. The

interval of integration is [0, T ], T > 0, and a grid t0 = 0, tk+1 = tk + h, k > 0, tN = T is

onstru ted. The approximation of a fun tion f(·) on [0, T ] is denoted as fN(·), and is a pie ewise onstant fun tion, onstant on the intervals [tk, tk+1). We denote fN (tk) as fk. The time-step is

h > 0.

8.1 Time�dis retization

Starting from (60), let us introdu e a new notation,

x(t) = f(x(t), t) − g(x(t))s(t)

y(t) = h(x(t))

s(t) ∈ Sgn(y(t))

(70)

where s(t) ∈ IRmand y(t) ∈ IRm

are omplementary variables related through the Sgn(·) multi�valued mapping. A ording to the lass of systems (13), (59) or (60) that we are studying the

fun tions f(·) and g(·) are de�ned either in a fully nonlinear framework or by a�ne fun tions. We

present the time-dis retization in its full generality and spe ialize the algorithms for ea h ase in

Se tion 8.4.

Let us now pro eed with the time dis retization of (70) by a fully impli it s heme :

xk+1 = xk + hf(xk+θ, tk+θ)− hg(xk+γ)sk+1

yk+1 = h(xk+1)

sk+1 ∈ Sgn(yk+1)

(71)

where xk+θ = θxk+1 +(1− θ)xk, xk+γ = γxk+1 + (1− γ)xk, and tk+θ = θtk+1 + (1− θ)tk+1, with

θ = [0, 1] and γ ∈ [0, 1]. As in [1℄, we all the problem (71) the �one�step nonsmooth problem�.

This time-dis retization is slightly more general than a standard impli it Euler s heme. The

main dis repan y lies in the hoi e of a θ-method to integrate the nonlinear term. For θ = 0, we

INRIA

Page 21: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 19

retrieve the expli it integration of the smooth and single valued term f(·). Moreover for γ = 0, theterm g(·) is expli itly evaluated. The �exibility in the hoi e of θ and γ allows the user to improve

and ontrol the a ura y, the stability and the numeri al damping of the proposed method. For

instan e, if the smooth dynami s given by f(·) is sti�, or if we have to use large step sizes for

pra ti al reasons, the hoi e of θ > 1/2 o�ers better stability properties with respe t to h.

8.2 Mixed Complementarity Problem

The so- alled "one�step nonsmooth problem� (71) appears to be a Mixed Complementarity Prob-

lem (MCP) that we have to solve at ea h time�step. Let us de�ne what is a MCP :

De�nition 2 (MCP) Given a fun tion f : IRq → IRqand lower and upper bounds l, u ∈ IR

q,

�nd z ∈ IRq, w, v ∈ IRq

+ su h that

F (z) = w − v

l 6 z 6 u

(z − l)Tw = 0

(u− z)T v = 0

(72)

where IR = IR ∪ {+∞,−∞}.

Note that the problem (72) implies that

−F (z) ∈ N[l,u](z). (73)

The relation (73) is equivalent to the MCP (72) if we assume that w is the positive part of F (z),that is w = F+(z) = max(0, F (z)) and v is the negative part of F (z), that is v = F−(z) =max(0,−F (z)).

The One�step nonsmooth problem as a MCP Let us de�ne the MCP by

z =

[

xk+1

sk+1

]

F (z) =

[

xk+1 − xk − hf(xk+θ , tk+θ) + hg(xk+γ)sk+1

−h(xk+1)

]

li =

{

−∞, i = 1 . . . n

−1, i = n+ 1 . . .m, ui =

{

+∞, i = 1 . . . n

+1, i = n+ 1 . . .m

(74)

If z solves the MCP (74), the bounds u and l and the ondition (z− l)Tw = 0, (u−z)Tv = 0 implythat

wi =

{

0, i = 1 . . . n

y−i > 0, i = n+ 1 . . .m, vi =

{

0, i = 1 . . . n

y+i > 0, i = n+ 1 . . .m(75)

The MCP is then given by

[

xk+1 − xk − hf(xk+θ) + hg(xk+γ)sk+1

−h(xk+1)

]

=

[

0y−(xk+1)− y+(xk+1) = −y(xk+1)

]

−1 < sk+1 < 1

(sk+1 + 1)T y−(xk+1) = 0

(1− sk+1)T y+(xk+1) = 0

(76)

It is lear that the problem (71) is equivalent to the MCP de�ned by (74). The results of existen e

and uniqueness of solution of (72) or equivalently (73) are related to the monotoni ity properties

RR n° 6886

Page 22: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

20 A ary & Brogliato

of F (P-properties or oherent orientations of the asso iated a�ne map for parti ular ases of

bounds and a�ne fun tion F (·). Without entering into further details, we refer to [30, 24℄ for the

main results.

Numeri al Solvers The MCP (72) an be solved by a large family of solvers based on Newton�

type Methods and interior-points te hniques. We refer to [11℄ for a omparison of several solvers

based on Newton's method. The numeri al implementation of the MCP solvers are often based

on the omputation of the Ja obian matrix of the fun tion F (·) with respe t to z. The Ja obianmatrix is expli itly given in the ase de�ned in (74) by

∇zF (z) =

I − hθ∇xf(xk+θ, tk+θ) + hγ∇xg(xk+γ) ⊗ sk+1 hg(xk+γ)

∇xh(xk+1) 0

, (77)

where ⊗ denotes the simple ontra ted tensor produ t and the third�order tensor ∇xg(x) is theJa obian of g with the respe t x given by the following omponent:

(∇xg(x))klp =∂gkl(x)

∂xp. (78)

8.3 Newton's linearization and Mixed Linear Complementarity Prob-

lems

Due to the fa t that two of the systems that are studied in this paper involve a�ne fun tions f(·)and g(·), we propose to solve the "one�step nonsmooth problem� (71) by performing an external

Newton linearization, whi h yields a Mixed Linear Complementarity Problems (MLCP).

Newton's linearization The �rst line of the problem (71) an be written under the form of a

residue R depending only on xk+1 and sk+1 su h that

R(xk+1, sk+1) = 0 (79)

with R(x, s) = x−xk−hf(θx+(1−θ)xk, tk+θ)+hg(γx+(1−γ)xk)s. The solution of this systemof nonlinear equations is sought as a limit of the sequen e {xα

k+1, sαk+1}α∈IN su h that

x0k+1 = xk

RL(xα+1k+1 , s

α+1k+1 ) = xα

k+1 − xk − hf(xαk+θ) +∇xR(xα

k+1, sαk+1)(x

α+1k+1 − xα

k+1) + hg(xαk+γ)s

α+1k+1 = 0

(80)

The omputation of the Ja obian of R with respe t to x, denoted by M(x, s) leads to

M(x, s) = ∇xR(x, s) = I − hθ∇xf(θx+ (1− θ)xk, tk+θ) + hγ∇xg(γx+ (1 − γ)xk) ⊗ s.(81)

At ea h time�step, we have to solve the following linearized problem,

xαk+1 − xk − hf(xα

k+θ, tk+θ) +M(xαk+1, s

αk+1)(x

α+1k+1 − xα

k+1) + hg(xαk+γ)s

α+1k+1 = 0, (82)

that is

xα+1k+1 = xα

k+1 +M−1(xαk+1, s

αk+1)

[

xk − xαk+1 + hf(xα

k+θ, tk+θ)− hg(xαk+γ)s

α+1k+1

]

. (83)

The matrix M is learly non singular for small h. The same operation is performed with the

se ond equation of (71) leading to the following linearized equation

yα+1k+1 = yαk+1 +∇xh(x

αk+1)

[

xα+1k+1 − xα

k+1

]

(84)

Inserting (83), we get the following linear relation between yα+1k+1 and sα+1

k+1 ,

yα+1k+1 = yαk+1 +∇xh(x

αk+1)

[

M−1(xαk+1, s

αk+1)(xk − xα

k+1 + hf(xαk+θ, tk+θ)− hg(xα

k+γ)sα+1k+1 )

]

(85)

INRIA

Page 23: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 21

Mixed linear omplementarity problem (MLCP) To summarize, the problem to be solved

in ea h Newton iteration is:

yα+1k+1 = −Wα+1

k+1 sα+1k+1 + bα+1

k+1

sα+1k+1 ∈ Sgn(yα+1

k+1 )(86)

with W ∈ IRm×mand b ∈ IRm

de�ned by

Wα+1k+1 = h∇xh(x

αk+1)M

−1(xαk+1, s

αk+1)g(x

αk+γ)

bα+1k+1 = yαk+1 +∇xh(x

αk+1)

[

M−1(xαk+1, s

αk+1)(xk − xα

k+1 + hf(xαk+θ , tk+θ))

]

(87)

The problem (86) is equivalent to a MLCP whi h an be solved under suitable assumptions

by many linear omplementarity solvers su h as pivoting te hniques, interior point te hniques and

splitting/proje tion strategies. The reformulation into a standard MLCP follows the same line as

for the MCP in the previous se tion. One obtains,

yα+1,+k+1 − yα+1

k+1 = −Wα+1k+1 s

α+1k+1 + bα+1

k+1

0 6 (sα+1k+1 + 1) ⊥ yα+1,−

k+1 > 0

0 6 (1− sα+1k+1 ) ⊥ yα+1,+

k+1 > 0

(88)

As for the MCP, there exists numerous methods to numeri ally solve MLCP. In the worst ase

when the matrix Wα+1k+1 has no spe ial properties, the MCLP an be always solved by enumerative

solvers for whi h various implementations an be found. With some positiveness properties [24℄,

standard methods for LCP[19℄ an be straightforwardly extended. Among these methods, we an

ite the family of proje tion/splitting methods, interior point methods and semi-smooth Newton

methods (see [1℄ for an overview).

8.4 The spe ial ases of the a�ne systems

In this se tion, we spe ify the time�dis retization to the two other lasses of systems (13) and

(59) and for parti ular value of θ and γ.

8.4.1 Time�dis retization of the system (13)

For the system (13), the fun tion g(x) is redu ed to the matrix B and the fun tion h(x) is a�ne,that is h(x) = Cx+D. The matrix Wα+1

k+1 and bα+1k+1 are then given by

Wα+1k+1 = hCM−1(xα

k+1, sαk+1, tk+1)B

bα+1k+1 = yαk+1 + C

[

M−1(xαk+1, tk+1)(xk − xα

k+1 + hf(xαk+θ, tk+θ))

]

(89)

with

M(x, t) = I − hθ∇xf(θx+ (1− θ)xk, θt+ (1− θ)tk) (90)

If CB > 0 then the matrix Wα+1k+1 is also positive de�nite for su� iently small h. This result

ensures the existen e and uniqueness of a solution of the MCLP. Furthermore, standard pivoting

te hniques su h as Lemke's method or proje tion/splitting su h as Proje ted Su essive Over-

Relation (PSOR) ompute the solution.

Semi-impli it dis retization with θ = 0 The matrix M is then redu ed to

M(x, t) = I (91)

RR n° 6886

Page 24: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

22 A ary & Brogliato

and

W = hCB

bk+1 = yk + hCf(xk, tk)(92)

In this parti ular ase, there is no need to perform some Newton iterations be ause the system to

be solved at ea h time�step is linear. Furthermore, the MLCP has a solution for any h > 0 underthe assumptions that CB > 0.

Fully impli it dis retization with an a�ne fun tion The same on lusion an be drawn

if ∇xf(θx + (1 − θ)xk, θt + (1 − θ)tk) is equal to a onstant matrix E that is when f(·) is lineartime-invariant and given by f(x, t) = Ex(t) + F . In this ase, the matrix M redu es to

M(x, t) = I − hθE (93)

and

W = hC(I − hθE)−1B

bk+1 = yk + hC(I − hθE)−1 [Exk + a](94)

8.4.2 Time�dis retization of the system (59)

For the system (59), we re all that g(·) and h(·) are given by

g(x) = [g•j(x) = Ajx+Bj , j = 1 . . .m] ∈ IRn×m,h(x) = [hi(x) = Cix+Di, i = 1 . . .m] ∈ IRm.

(95)

The omponents of g(·) an be expli itly expressed by

gkl(x) =

n∑

p=1

Al,kpxp +Bl, (96)

and therefore, the Ja obian of g(·) is given by

(∇xg(x))klp =∂gkl(x)

∂xp= Al,kp. (97)

The Ja obian of h takes the following simple form:

∇h(x) = C = [Ci, i = 1 . . .m] ∈ IRm×n. (98)

After the newton linearization, we have to solve at ea h Newton's loop the MLCP (86) with

Wα+1k+1 = hCM−1(xα

k+1, sαk+1, tk+1)g(x

αk+γ)

bα+1k+1 = yαk+1 + C

[

M−1(xαk+1, tk+1)(xk − xα

k+1 + hf(xαk+θ, tk+θ))

]

(99)

Semi�impli it dis retization with θ = γ = 0 If γ and θ vanish, the residue R given by

R(x, s) = x− xk − hf(xk, tk) + hg(xk)s (100)

is linear in x and s. In this parti ular ase, there is no need to perform Newton's iterations. The

MCLP de�ned by (99) an be simpli�ed to

Wk+1 = hCg(xk)bk+1 = yk + C [hf(xk, tk))] (101)

INRIA

Page 25: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 23

Algorithm 1 Impli it Euler time-dis retization with a generi MCP solver

Require: System de�nition: f, g, hRequire: x(0) the initial ondition

Require: t0,T time�integration interval

Require: h time�step

Require: θ, γ numeri al integration parameters

Ensure: ({xk}, {sk}, {yk}), k ∈ {1, 2, . . .}

k← 0; x0 ← x(0); y0 ← y(0) = h(x(0)); tau0 ← 0

// Time integration loop

while tk < T do

Solve the MCP (76) for xk+1, sk+1, yk+1 with F, l and u given by (74) and the Ja obian ∇zF (z)given by (77).

//Update

xk ← xk+1; sk ← sk+1; yk ← yk+1

//time iteration

tk ← tk+1; k← k+ 1

end while

Algorithm 2 Impli it Euler time-dis retization with an external Newton loop and a MLCP solver

Require: System de�nition: f, g, hRequire: x(0) the initial ondition

Require: t0,T time�integration interval

Require: h time�step

Require: θ, γ numeri al integration parameters

Require: ε Newton's method toleran e

Ensure: ({xk}, {sk}, {yk}), k ∈ {1, 2, . . .}

k← 0; x0 ← x(0); y0 ← y(0) = h(x(0)); tau0 ← 0

// Time integration loop

while tk < T do

α← 0; x0k+1← x0

k; s0

k+1← s0

k; y0

k+1← y0

k

//Newton's loop

while ‖R(xαk+1

, sαk+1

)‖ > ε do

M−1(xαk+1

, sαk+1

)← (I− hθ∇xf(xαk+θ , tk+1)− hγ∇xg(x

αk+θ) ⊗ sα

k+1)−1

.

Wα+1

k+1← h∇xh(x

αk+1

)M−1(sαk+1

, sαk+1

)g(xαk+1

)

bα+1

k+1← yα

k+1+∇xh(x

αk+1

)M−1(sαk+1

)[

xk − xαk+1

+ hf(xαk+1

)]

Solve the MLCP (88) for yα+1

k+1, sα+1

k+1

sαk+1← sα+1

k+1; yα

k+1← xα+1

k+1

xαk+1← xα

k+1+M−1(sα

k+1)[

xk − xαk+1

+ hf(xαk+1

) + hg(xαk+1

)sα+1

k+1

]

α← α+ 1

end while

//Update

xk+1 ← xαk+1

; sk+1 ← sα+1

k+1; yk+1 ← yα+1

k+1

//time iteration

tk ← tk+1; k← k+ 1

end while

RR n° 6886

Page 26: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

24 A ary & Brogliato

8.5 Algorithms

We propose in this se tion two algorithms to sum-up the numeri al implementation of the impli it

Euler time�stepping s heme. The Algorithm 1 des ribes the implementation with a generi MCP

solver and the Algorithm 2 des ribes the numeri al implementation of the algorithm with an

external Newton linearization and a MCLP solver.

In the ase of the system (13) with an a�ne fun tion f(·) or θ = 0, the MLCP matrix W an

be omputed before the beginning of the time loop, saving a lot of omputing e�ort. In the ase

of the system (59) with θ = γ = 0, the MLCP matrix W an be omputed before the beginning

of the Newton loop.

INRIA

Page 27: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 25

9 Numeri al experiments

Let us illustrate the above developments with numeri al integrations performed with the si onos

software platform of the INRIA

2

[1, 3℄ whi h is designed for the simulation of multivalued nons-

mooth systems.

9.1 Chattering free stabilization

Let us onsider the following ontinuous�time losed loop system from [26℄ given by

x =

[

0 10 −c1

]

x−[

]

sgn([

c1 1]

x). (102)

As it is shown in [26℄ the traje tories obtained by an expli it Euler dis retization exhibit spurious

os illations whi h are des ribed by period-2 y le around the sliding manifold. On Figure 4, the

traje tories obtained by impli it dis retization are shown using the impli it Euler dis retization

with h = 1, h = 0.3, h = 0.1 and h = 0.01 and with c1 = 1 and α = 1. As it has been predi ted

by theoreti al dis ussions of Se tion 4, the sliding manifold is rea hed in �nite time and without

any hattering. Indeed, the matrix CB = α = 1 satis�es the assumptions of Lemma 3. Note that

the algorithm is also very robust in the sense that the simulation an be performed with relatively

large time�steps.

9.2 Example 3: Multiple sliding surfa es

Let us onsider the example 3. The system an be de�ned in the form (13) with

B =

[

1 22 −1

]

, C =

[

1 22 −1

]

, D = 0, f(x(t), t) = 0 (103)

This example illustrates Lemma 3 sin e CB =

[

5 00 5

]

. The results displayed on Figure 5 show

that the system rea hes �rstly the sliding surfa e 2x2+x1 = 0 without any hattering, The systemthen slides on the surfa e up to rea hing the se ond sliding surfa e 2x1−x2 = 0 and omes to rest

at the origin.

9.3 Extensions to ZOH dis retized systems

The extension to ZOH dis retized systems is illustrated on a �rst example taken from [27℄. In the

notation of Se tion 5.2, the LTI system with an ECB-SMC ontroller is de�ned by the following

data,

F =

[

0 1−a1 −a2

]

, G =

[

01

]

, C =[

c1 1]

. (104)

Starting from the initial data, x0 = [0.55, 0, 55]T , Galias and Yu [27℄ have shown that the Expli it

ZOH dis retization of the system with a1 = −2, a2 = 2, c1 = 1 and h = 0.3 exhibits a period�2

orbit. The results are reprodu ed on Figure 6(a). On Figure 6(b), the Impli it ZOH dis retization

as proposed in Se tion 5.2 is free of hattering. On Figure 7, a omparison is given between the

ZOH and the Euler dis retization of the ve tor �eld f(·, ·). Another example taken from [57℄ in

the MIMO ase is given by the following parameters,

F =

0 0 11 1 1−1 −3 1

, G =

0 01 00 1

, C =

[

1 0 10 1 1

]

. (105)

Similar results are depi ted on Figure 8.

2

http://si onos.gforge.inria.fr/

RR n° 6886

Page 28: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

26 A ary & Brogliato

-1

-0.5

0

0.5

1

1.5

2

2.5

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(a) h = 0.3. Expli it Euler

-1

-0.5

0

0.5

1

1.5

2

2.5

-0.2 0 0.2 0.4 0.6 0.8 1

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

tx1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(b) h = 0.1. Expli it Euler

-1

-0.5

0

0.5

1

1.5

2

2.5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

( ) h = 1. Impli it Euler

-1

-0.5

0

0.5

1

1.5

2

2.5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(d) h = 0.3. Impli it Euler

-1

-0.5

0

0.5

1

1.5

2

2.5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(e) h = 0.1. Impli it Euler

-1.5

-1

-0.5

0

0.5

1

1.5

2

2.5

0 0.2 0.4 0.6 0.8 1 1.2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(f) h = 0.05. Impli it Euler

Figure 4: Equivalent ontrol based SMC, c1 = 1, α = 1 and x0 = [0, 2.21]T . State x1(t) versusx2(t).

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

x1(t)x2(t)

s1 (t)s2 (t)

s

v

a

l

u

e

s

s

t

a

t

e

x1(t)

a

n

d

x2(t)

(a) state x1(t) and x2(t) versus time

-1

-0.8

-0.6

-0.4

-0.2

0

0 0.2 0.4 0.6 0.8 1

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

v

a

l

u

e

s

s

t

a

t

e

x1 (t)

a

n

d

x2 (t)

(b) phase portrait x2(t) versus x1(t)

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

x1 (t)x2 (t)

s1(t)s2(t)

s

v

a

l

u

e

s

s

t

a

t

e

x1 (t)

a

n

d

x2 (t)

( ) sgn fun tion s1(t) and s2(t)

Figure 5: Multiple Sliding surfa e. h = 0.02, x(0) = [1.0,−1.0]T

INRIA

Page 29: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 27

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(a) h = 0.3. Expli it ZOH

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(b) h = 0.3. Impli it ZOH

Figure 6: Equivalent ontrol based SMC, a1 = −2, a2 = 2, c1 = 1 and h = 0.3. x0 = [0.55, 0, 55]T

State x1(t) versus x2(t).

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8

SlidingSurfaceExplicitZOHExplicitEuler

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)s

t

a

t

e

(a) Expli it implementation

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8

SlidingSurfaceImplicitZOHImplicitEuler

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)s

t

a

t

e

(b) Impli it implementation

Figure 7: Comparison of Euler and ZOH dis retizations of ECB-SMC system, a1 = −2, a2 = 2,c1 = 1 and h = 0.3. x0 = [0.55, 0, 55]T State x1(t) versus x2(t).

-0.5-0.4

-0.3-0.2

-0.1 0

0.1-0.01 0

0.01 0.02

0.03 0.04

0.05 0.06

-0.06-0.05-0.04-0.03-0.02-0.01

0 0.01 0.02

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

x1(t)

x2(t)

x3(t)x3(t)

(a) h = 0.3. Expli it ZOH

-0.5-0.4

-0.3-0.2

-0.1 0

0.1 0 0.01

0.02 0.03

0.04 0.05

0.06

-0.05

-0.04

-0.03

-0.02

-0.01

0

0.01

0.02

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

x1(t)

x2(t)

x3(t)x3(t)

(b) h = 0.3. Impli it ZOH

Figure 8: Equivalent ontrol based SMC, Traje tory with initial point x0 = [0.05,−0.5, 0.02]

RR n° 6886

Page 30: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

28 A ary & Brogliato

9.4 Lyapunov-based robust ontrol

We propose in this se tion to give an numeri al example whi h �ts with the example (18) of a

Lyapunov-based dis ontinuous robust ontrol. Let us onsider the following system

x(t) = −x(t)− u(t) + γ(t) (106)

with γ(t) = α sin(t) and u(t) = sgn(x(t)). Is is obvious that, as expe ted, the impli it method

yields a smooth stabilization at x = 0 whereas the expli it Euler has signi� ant hattering. Fig-

ure 9( ) illustrates the fa t that the ontroller varies inside the multivalued part of the sgn fun tion

in order to assure the existen e of an equilibrium point.

-0.2

0

0.2

0.4

0.6

0.8

1

0 2 4 6 8 10

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

s

t

a

t

e

x1(t)

o

n

t

r

o

l

u(t)s

t

a

t

e

(a) State x1(t) vs. time. h = 0.1. Impli it

Euler

-0.2

0

0.2

0.4

0.6

0.8

1

0 2 4 6 8 10

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

s

t

a

t

e

x1(t)

o

n

t

r

o

l

u(t)s

t

a

t

e

(b) State x1(t) vs. time. h = 0.1. Expli it

Euler

-0.2

0

0.2

0.4

0.6

0.8

1

0 2 4 6 8 10

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

s

t

a

t

e

x1 (t)

o

n

t

r

o

l

u(t)

s

t

a

t

e

( ) Control u(t) vs. time. h = 0.1. Impli it

Euler

-1

-0.5

0

0.5

1

0 2 4 6 8 10

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

s

t

a

t

e

x1 (t)

o

n

t

r

o

l

u(t)

s

t

a

t

e

(d) Control u(t) vs. time. h = 0.1. Expli it

Euler

Figure 9: Lyapunov-based dis ontinuous robust ontrol. h = 0.1 α = 0.1

9.5 The Filippov example

Example 9 Let us onsider now the well known Filippov example whi h an be de�ned in the

form (13) with

B =

[

1 −22 1

]

, C =

[

1 00 1

]

, D = 0, f(x(t), t) = 0. (107)

The traje tories may slide on the odimension 2 surfa e given by Cx = 0, that x = 0.

The results displayed on Figure 9.5 show that the system rea hes the origin without any

hattering. The su� ient onditions of the Lemma 3 are not satis�ed when seems to indi ated

that these onditions has to be improved.

9.6 Example 4: Observer based SMC

Let us illustrate the performan e of our implementation on the observer based SMC des ribed by

the Example 4. The dynami s is given by (17) with k = 1 and τ = 0.001. The initial onditions

INRIA

Page 31: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 29

-1.5

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(a) state x1(t) and x2(t) versus time

-1.4

-1.2

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

-0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

t

i

m

e

t

x1(t)

x2(t)

s1 (t)s2 (t)

s

t

a

t

e

(b) phase portrait x2(t) versus x1(t)

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

s va

lues

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

time t

x1 (t)x2 (t)

s1(t)

s2(t)

s

t

a

t

e

( ) sgn fun tion s1(t) and s2(t)

Figure 10: Multiple Sliding surfa e. Filippov Example. h = 0.002, x(0) = [1.0,−1.0]T

RR n° 6886

Page 32: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

30 A ary & Brogliato

are hosen as [2.0, 0, 0, 0]T . The numeri al parameters are given by h = 0.1 that is a sampling of

10Hz and θ = 1, γ = 1. On Figure 11, the error between the referen e ommand and the observer

state is given. On Figure 12, we an observe the behavior of the ommand without any hattering.

-0.0015

-0.001

-0.0005

0

0.0005

0.001

0.0015

0.002

0.0025

0.003

0.0035

0 2 4 6 8 10

Err

or

time

Figure 11: Observer based SMC: Error e(t). k = 1 and τ = 0.001. h = 0.1 θ = 1, γ = 1

-0.2

0

0.2

0.4

0.6

0.8

1

0 2 4 6 8 10

Con

trol

time

(a) ontrol u(t) = Sgn(Cx(t))

-0.001

-0.0005

0

0.0005

0.001

0 2 4 6 8 10

Con

trol

time

(b) Zoom on ontrol u(t) = Sgn(Cx(t))

Figure 12: Observer based SMC: Control. k = 1 and τ = 0.001. h = 0.1 θ = 1, γ = 1

On the three previous examples, one sees a very a urate and smooth stabilization on the

sliding surfa e, even for values of h not so small.

In�uen e of the integration parameters θ and γ In the following numeri al experiments,

we dis uss the role of the numeri al parameters θ and γ. Due to the fa t that the fun tion

g(·) is linear and redu ed to a matrix B = [1, 0, 0, 0]T , the parameter γ has no in�uen e on

the numeri al time�integration. On the ontrary, the parameter θ has a huge in�uen e on the

stability of the integration. Indeed, the impli it Euler integration (θ = 1) of the smooth term

f(·) is un onditionally stable. This is not the ase for the expli it Euler θ = 0 and for the

hosen parameters k and τ , the instability of the s heme for h = 0.1 does not allow to pro eed to

integration. On Figure 13, the instability of the s heme is illustrated and appears as a hattering

on the state x. The stability is retrieved for h < 0.005.Other hoi es of θ an be made to improve the numeri al time�integration of the smooth dy-

nami s. For instan e, θ = 1/2 yields a se ond order s heme for the integration of f . Unfortunately,the s heme is not of se ond order due to the fully impli it integration of the multi-valued part.

INRIA

Page 33: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 31

1.3

1.4

1.5

1.6

1.7

1.8

1.9

2

0 0.5 1 1.5 2

x1

time

(a) state x1(t)

-1.5

-1

-0.5

0

0.5

1

0 2 4 6 8 10

Con

trol

time

(b) ontrol u(t) = Sgn(Cx(t))

-80

-60

-40

-20

0

20

40

60

80

0 2 4 6 8 10

Err

or

time

( ) error e(t)

Figure 13: Observer based SMC. k = 1 and τ = 0.001. h = 0.01 θ = 0, γ = 1

RR n° 6886

Page 34: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

32 A ary & Brogliato

Nevertheless, it an be interested to use of θ = 1/2 to de rease the numeri al damping of the

s heme on the smooth term. On the Figure 14, two simulations of the observer based SMC are

presented for θ = 1 and θ = 1/2. The parameter τ has been modi�ed to 0.5 to orre tly integratethe parasiti dynami s with the same time�step h = 0.1.

-0.5

0

0.5

1

1.5

2

0 5 10 15 20

stat

e

time

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

θ = 1

θ = 1/2

(a) state x1(t)

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

0 5 10 15 20

cont

rol

time

P

S

f

r

a

g

r

e

p

l

a

e

m

e

n

t

s

θ = 1

θ = 1/2

(b) ontrol u(t) = Sgn(Cx(t))

Figure 14: Observer based SMC with θ = 1 and θ = 1/2. k = 1 and τ = 0.5. h = 0.01, γ = 1

10 Con lusions

In this paper the ba kward Euler method is studied on spe i� lasses of Filippov's systems

that en ompass sliding mode ontrol systems. It is shown that su h impli t s hemes allow a

smooth a urate stabilization on the sliding surfa e, even in ase of odimension larger than one.

Despite the ba kward Euler method has been studied and used for a long time in other �elds

like onta t me hani s and ele tri ir uits simulation [1℄, it seems it has not yet been used in

the sliding mode ontrol ommunity. This work therefore onstitutes the introdu tion of a new

dis retization method for EBC-SMC systems. The novelty ompared to numeri al simulation is

that this time one has to onsider not only the numeri al simulation, but also the implementation

on real pro esses. Perhaps one obsta le to the dissemination of the method is that at �rst sight,

the ontroller designed from a ba kward philosophy looks like a non ausal ontroller. However

as shown in this paper this is not the ase. This paper paves the way towards the study of a new

family of dis rete-time sliding mode ontrollers.

Referen es

[1℄ V. A ary and B. Brogliato. Numeri al Methods for Nonsmooth Dynami al Systems: Appli a-

tions in Me hani s and Ele troni s, volume 35 of Le ture Notes in Applied and Computational

Me hani s. Springer Verlag, 2008.

[2℄ V. A ary and B. Brogliato. Impli it Euler numeri al simulation of sliding mode systems.

Te hni al Report RR 1234567890, INRIA, 2009.

[3℄ V. A ary and F. Pérignon. An introdu tion to si onos. Te hni al Report TR-0340, INRIA,

http://hal.inria.fr/inria-00162911/en/, 2007.

[4℄ J.C. Alexander and T.I. Seidman. Sliding modes in interse ting swit hing surfa es. I: Blending.

Houston J. Math., 24(3):545�569, 1998.

[5℄ J.C. Alexander and T.I. Seidman. Sliding modes in interse ting swit hing surfa es. II: Hys-

teresis. Houston J. Math., 25(1):185�211, 1999.

INRIA

Page 35: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 33

[6℄ B. Baji and A. Cabot. An inertial proximal algorithm with dry fri tion: �nite onvergen e

results. Set-Valued Anal., 14(1):1�23, 2006.

[7℄ O. Barambones, P. Alkorta, A.J. Garrido, I. Garrido, and F.J. Maseda. An adaptive slid-

ing mode ontrol s heme for indu tion motor drives. Int. J. Cir uits, Systems and Signal

Pro essing, 1(1):73�78, 2007.

[8℄ G. Bartolini, L. Fridman, A. Pisano, and E. Usai, editors. Modern Sliding Mode Control

Theory. New Perspe tives and Appli ations, volume 375 of LNCIS. Springer Verlag, 2008.

[9℄ J. Bastien and C.H. Lamarque. Persoz' gephyroidal model des ribed by a maximal monotone

di�erential in lusion. Ar h. Appl. Me h., 78(5), 2008.

[10℄ J. Bastien and M. S hatzman. Numeri al pre ision for di�erential in usions with uniqueness.

ESAIM M2AN: Mathemati al Modelling and Numeri al Analysis, 36(3):427�460, 2002.

[11℄ S.C. Billups, S.P. Dirkse, and M.C. Ferris. A omparison of large s ale mixed omplementarity

problem solvers. Computational Optimization and Appli ations, 7:3�25, 1997.

[12℄ I. Boiko, L. Fridman, A. Pisano, and E. Usai. A omprehensive analysis of hattering in

se ond order sliding mode ontrol systems. Bartolini, Giorgio (ed.) et al., Modern sliding

mode ontrol theory. New perspe tives and appli ations. Berlin: Springer. Le ture Notes in

Control and Information S ien es 375, 23-49 (2008)., 2008.

[13℄ B. Brogliato. Absolute stability and the Lagrange-Diri hlet theorem with monotone multi-

valued mappings. Systems and Control Letters, 51:343�353, 2004.

[14℄ B. Brogliato, R. Lozano, B. Mas hke, and O. Egeland. Dissipative Systems Analysis and

Control. Theory and Appli ations. Springer Verlag, London, 2nd edition, 2007.

[15℄ B. Brogliato and A. Tro�no Neto. Pra ti al stabilization of a lass of nonlinear systems with

partially known un ertainties. Automati a, 31(1):145�150, 1995.

[16℄ M. K. Camlibel, W.P.M.H. Heemels, and J.M. S huma her. Consisten y of a time-stepping

method for a lass of pie ewise-linear networks. IEEE Trans. Cir uits and systems I, 49:349�

357, 2002.

[17℄ M. Cao and M.C. Ferris. A pivotal method for a�ne variational inequalities. Mathemati s of

Operations resear h, 21(1):44�64, 1996.

[18℄ J. Cortes. Dis ontinuous dynami al systems. a tutorial on solutions, nonsmooth analysis, and

stability. IEEE Control Systems Magazine, pages 36�73, June 2008.

[19℄ R. W. Cottle, J. Pang, and R. E. Stone. The Linear Complementarity Problem. A ademi

Press, In ., Boston, MA, 1992.

[20℄ M.-F. Dan a. Numeri al approximations of a lass of swit h dynami al systems. Chaos

Solitons Fra tals, 38(1):184�191, 2008.

[21℄ S. P. Dirkse and M. C. Ferris. The PATH solver: A non-monotone stabilization s heme for

mixed omplementarity problems. Optimization Methods and Software, 5:123�156, 1995.

[22℄ A.L. Dont hev and F. Lempio. Di�eren e methods for di�erential in lusions: a survey. SIAM

reviews, 34(2):263�294, 1992.

[23℄ C. Edwards, E. Fossas Colet, and L. Fridman, editors. Advan es in Variable Stru ture and

Sliding Mode Control, volume 334 of LNCIS. Springer Verlag, 2006.

[24℄ F. Fa hinei and J. S. Pang. Finite-dimensional Variational Inequalities and Complementarity

Problems, volume I & II of Springer Series in Operations Resear h. Springer Verlag NY. In .,

2003.

RR n° 6886

Page 36: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

34 A ary & Brogliato

[25℄ Z. Galias and X. Yu. Complex dis retization behaviors of a simple sliding-mode ontrol

system. IEEE Transa tions on Cir uits and Systems � II: Express Briefs, 53(8):652�656,

August 2006.

[26℄ Z. Galias and X. Yu. Euler's dis retization of single input sliding-mode ontrol systems. IEEE

Transa tions on Automati Control, 52(9), September 2007.

[27℄ Z. Galias and X. Yu. Analysis of zero�order holder dis retiation of two�dimensional sliding�

mode ontrol systems. IEEE Transa tions on Cir uits and Systems � II: Express Briefs,

55(12), De ember 2008.

[28℄ W. Gar ia-Gabin, D. Zambrano, and E.F. Cama ho. Sliding mode predi tive ontrol of a

solar air onditioning plant. Control Engineering Pra ti e, 2009. in press.

[29℄ D. Goeleven, D. Motreanu, Y. Dumont, and M. Ro hdi. Variational and Hemivariational

Inequalities: Theory, Methods and Appli ations; Volume I: Unilateral Analysis and Unilateral

Me hani s. Non onvex Optimization and its Appli ations. Kluwer A ademi Publishers, 2003.

[30℄ P.T. Harker and J.-S. Pang. Finite-dimensional variational inequality and omplementar-

ity problems: a survey of theory, algorithms and appli ations. Mathemati al Programming,

48:160�220, 1990.

[31℄ G. Herrmann, S.S. Ge, and G. Guo. Pra ti al implementation of a neural network ontroller

in a hard disk drive. IEEE Transa tions on Control Systems Te hnology, 13(1):146�154,

January 2005.

[32℄ R.A. Hess and S.R. Wells. Sliding mode ontrol applied to re on�gurable �ight ontrol design.

J. of Guidan e, Control, and Dynami s, 26(3):452�462, May�June 2003.

[33℄ Q. Hu, C. Du, L. Xie, and Y. Wang. Dis rete-time sliding mode ontrol with time-varying

surfa e for hard disk drives. IEEE Transa tions on Control Systems Te hnology, 17(1):175�

183, January 2009.

[34℄ A.E. Kastner-Mares h. The impli it midpoint rule applied to dis ontinuous di�erential equa-

tions. Computing, 49:45�62, 1992.

[35℄ A. Koren and M. Idan. Integrated sliding mode guidan e and ontrol for a missile with on-o�

a tuators. J. of Guidan e, Control, and Dynami s, 31(1):204�214, January�February 2008.

[36℄ A.J. Koshkouei and A.S.I. Zinober. Sliding mode ontrol of dis rete-time systems. Journal

of Dynami Systems, Measurement, and Control, 122:793�802, De ember 2000.

[37℄ R. Leine and H. Nijmeijer. Dynami s and Bifur ations of Non-Smooth Me hani al Systems.

Springer Verlag, Le ture Notes in Applied and Computational Me hani s 18, 2004.

[38℄ L. Marton and B. Lantos. Control of me hani al systems with stribe k fri tion and ba klash.

Systems and Control Letters, in press. doi:10.1016/j_sys onle.2008.10.001.

[39℄ C. Moler and C. Van Loan. Nineteen dubious ways to ompute the exponential of a matrix,

twenty-�ve years later. SIAM Rev., 45(1):3�49, 2003.

[40℄ T. S. Munson, F. Fa hinei, M. C. Ferris, A. Fis her, and C. Kanzow. The semismooth algo-

rithm for large s ale omplementarity problems. INFORMS Journal on Computing, 13:294�

311, 2001.

[41℄ Y. V. Orlov. Dis ontinuous Systems. Lyapunov Analysis and Robust Synthesis under Un-

ertainty Conditions. Communi ations and Control Engineering. Springer verlag, London,

2009.

INRIA

Page 37: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Impli it Euler numeri al simulations of sliding mode systems 35

[42℄ A. Y. Pogromski, W.P.M.H. Heemels, and H. Nijmeijer. On solution on epts and well-

posedness of linear relay systems. Automati a, 39:2139�2147, 2003.

[43℄ A.B. Pro a, A. Keyhani, and J.M. Miller. Sensorless sliding-mode ontrol of indu tion motors

using operating ondition dependent models. IEEE Transa tions on Energy Conversion,

18(2):205�212, June 2003.

[44℄ E. Promtun and S. Seshagiri. Sliding mode ontrol of a pit h-rate of an f-16 air raft. Int. J.

of Applied S ien e, Eng. and Te hnology, 5(1):1�7, 2009.

[45℄ R.T. Ro kafellar. Convex Analysis. Prin eton University Press, 1970.

[46℄ R.T. Ro kafellar and R.J.-B. Wets. Variational Analysis, volume 317. Springer Verlag, New

York, 1997.

[47℄ T. Rutherford. Miles: A mixed inequality and nonlinear equation solver, 1993.

[48℄ R. W. H. Sargent. An e� ient implementation of the Lemke algorithm and its extension to

deal with upper and lower bounds. Mathemati al Programming Study, 7:36�54, 1978.

[49℄ D. Stewart. A high a ura y method for solving ODEs with dis ontinuous rigth�hand�side.

Numeris he Mathematik, 58:299�328, 1990.

[50℄ D. Stewart. A numeri al method for fri tion problems with multiple onta ts. J. Austral.

Math. So . Ser. B, 37:288�308, 1996.

[51℄ Y.C. Tsai and A.C. Huang. Multiple-surfa e sliding ontroller design for pneumati servo

systems. Me hatroni s, 18(9):506�512, November 2008.

[52℄ B. Wang, X. Yu, and G. Chen. ZOH dis retization e�e t on single-input sliding mode ontrol

systems with mat hed un ertainties. Automati a, 45:118�125, 2009.

[53℄ W.J. Wang and J.Y. Chen. Passivity-based sliding mode position ontrol for indu tion motor

drives. IEEE Transa tions on Energy Conversion, 20(2):316�321, June 2005.

[54℄ S.R. Wells and R.A. Hess. Multi-input/multi-output sliding mode ontrol for a tailles �ghter

air raft. J. of Guidan e, Control, and Dynami s, 26(3):463�473, May�June 2003.

[55℄ K.D. Young, V.I. Utkin, and U. Ozguner. A ontrol engineer's guide to sliding mode ontrol.

IEEE Transa tions on Control Systems Te hnology, 7(3):328�342, May 1999.

[56℄ X. Yu and G. Chen. Dis retization behaviors of equivalent ontrol based sliding-mode ontrol

systems. IEEE Transa tions on Automati Control, 48(9):1641�1646, September 2003.

[57℄ X. Yu, B. Wang, Z. Galias, and G. Chen. Dis retization e�e t on equivalent ontrol-

based multi-input sliding-mode ontrol systems. IEEE Transa tions on Automati Control,

53(6):1563�1569, July 2008.

Contents

1 Introdu tion 3

2 A simple example 4

3 A lass of di�erential in lusions 7

4 Convergen e results and Chattering Free Finite�time Stabilization 9

RR n° 6886

Page 38: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

36 A ary & Brogliato

5 Dis rete�time Sliding Mode Control (SMC) 12

5.1 Example of an impli it Euler ontroller (IEC) . . . . . . . . . . . . . . . . . . . . . 12

5.2 Extension to ZOH dis retized systems . . . . . . . . . . . . . . . . . . . . . . . . . 12

6 Implementation of Dis rete�Time Systems 13

6.1 Mixed Linear Complementarity Problem (MLCP) . . . . . . . . . . . . . . . . . . . 13

6.2 Some Time�Dis retization Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7 Two other lasses of di�erential in lusions 15

7.1 A simple hypomonotone ase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

8 Detailed Implementation of Impli it Euler Dis retization of the general ase (60)

18

8.1 Time�dis retization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

8.2 Mixed Complementarity Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

8.3 Newton's linearization and Mixed Linear Complementarity Problems . . . . . . . . 20

8.4 The spe ial ases of the a�ne systems . . . . . . . . . . . . . . . . . . . . . . . . . 21

8.4.1 Time�dis retization of the system (13) . . . . . . . . . . . . . . . . . . . . . 21

8.4.2 Time�dis retization of the system (59) . . . . . . . . . . . . . . . . . . . . . 22

8.5 Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

9 Numeri al experiments 25

9.1 Chattering free stabilization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

9.2 Example 3: Multiple sliding surfa es . . . . . . . . . . . . . . . . . . . . . . . . . . 25

9.3 Extensions to ZOH dis retized systems . . . . . . . . . . . . . . . . . . . . . . . . . 25

9.4 Lyapunov-based robust ontrol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

9.5 The Filippov example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

9.6 Example 4: Observer based SMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

10 Con lusions 32

INRIA

Page 39: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

Centre de recherche INRIA Grenoble – Rhône-Alpes655, avenue de l’Europe - 38334 Montbonnot Saint-Ismier (France)

Centre de recherche INRIA Bordeaux – Sud Ouest : Domaine Universitaire - 351, cours de la Libération - 33405 Talence CedexCentre de recherche INRIA Lille – Nord Europe : Parc Scientifique de la Haute Borne - 40, avenue Halley - 59650 Villeneuve d’Ascq

Centre de recherche INRIA Nancy – Grand Est : LORIA, Technopôle de Nancy-Brabois - Campus scientifique615, rue du Jardin Botanique - BP 101 - 54602 Villers-lès-Nancy Cedex

Centre de recherche INRIA Paris – Rocquencourt : Domaine de Voluceau - Rocquencourt - BP 105 - 78153 Le Chesnay CedexCentre de recherche INRIA Rennes – Bretagne Atlantique : IRISA, Campus universitaire de Beaulieu - 35042 Rennes Cedex

Centre de recherche INRIA Saclay – Île-de-France : Parc Orsay Université - ZAC des Vignes : 4, rue Jacques Monod - 91893 Orsay CedexCentre de recherche INRIA Sophia Antipolis – Méditerranée :2004, route des Lucioles - BP 93 - 06902 Sophia Antipolis Cedex

ÉditeurINRIA - Domaine de Voluceau - Rocquencourt, BP 105 - 78153 Le Chesnay Cedex (France)

http://www.inria.fr

ISSN 0249-6399

Page 40: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

xv

time

Ex1Ev1

Page 41: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

xv

time

Ex1Ev1

Page 42: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

-1

-0.5

0

0.5

1

0 0.5 1 1.5 2

xv

time

Ex1Ev1

Page 43: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8

x2

x1

SlidingSurfaceImplicitZOHExplicitZOHImplicitEulerExplicitEuler

Page 44: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

-0.5-0.4

-0.3-0.2

-0.1 0

0.1 0 0.01

0.02 0.03

0.04 0.05

0.06

-0.05

-0.04

-0.03

-0.02

-0.01

0

0.01

0.02

x3

x2

x1

x3

Page 45: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 46: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 47: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 48: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 49: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 50: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 51: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 52: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG
Page 53: Implicit Euler numerical simulations of sliding mode systems … · 2018-11-21 · arXiv:0904.1682v1 [math.NA] 10 Apr 2009 apport de recherche ISSN 0249-6399 ISRN INRIA/RR--6886--FR+ENG

appor t t e ch n i qu e