View metadata, citation and similar papers at core.ac.uk brought to you by CORE
provided by Archivio istituzionale della ricerca - Politecnico di Milano 1
Sliding Mode Control of Constrained Nonlinear Systems chattering reduction is not the only possible purpose of HOSM, since this latter allows the use of a relative degree greater than one between Gian Paolo Incremona, Matteo Rubagotti, and Antonella Ferrara the discontinuous control input and the sliding variable. In the first-order SMC formulation, input saturations are imme- diately satisfied if the control variable switches between values Abstract—This technical note introduces the design of sliding mode control algorithms for nonlinear systems in the presence of hard inequal- that are inside the imposed boundaries. When HOSM is used for ity constraints on both control and state variables. Relying on general chattering reduction, specific solutions have been proposed to achieve results on minimum-time higher-order sliding mode for unconstrained the satisfaction of saturation constraints (see, e.g., [19], [20] for the systems, a general order control law is formulated to robustly steer the second-order case). On the other hand, the possible presence of state state to the origin, while satisfying all the imposed constraints. Results on minimum-time convergence to the sliding manifold, as well as on the constraints is usually not taken into account in SMC formulations. maximization of the domain of attraction, are analytically proved for Recently, few solutions have been proposed in order to merge SMC the first-order and second-order sliding mode cases. A general result is and MPC, and combine the constraints satisfaction property of MPC presented regarding the domain of attraction in the general order case, with the robustness of SMC [21]–[25]. As an alternative, in order to while numerical results on the estimation of the domain of attraction and on minimum-time convergence are discussed for the third-order avoid the additional computational burden of MPC, the presence of case, following a procedure applicable to a sliding mode of any order. state constraints has been directly inserted in the SMC law in [26]– [28] for the first-order sliding mode case, in [29]–[32] for the second Index Terms—Sliding mode control, second order sliding mode, higher order sliding mode (HOSM), uncertain systems, constrained control. order sliding mode case, and in [33] for third-order sliding mode with box constraints. In this technical note, an HOSM control law of general order r I.INTRODUCTION is proposed, aimed at guaranteeing the minimum-time convergence Input constraints are present in all practical control implementa- of the state onto the sliding manifold, and, at the same time, tions, mainly in the form of saturations. In order to guarantee an satisfying the imposed hard inequality constraints on input and acceptable performance of the controlled system in their presence, states, in the presence of matched disturbances. More specifically, different solutions have been proposed, mainly in the field of anti- the main contributions of the present work are the following: first windup control (see, e.g., [1], [2]). In addition, in order to avoid of all, the formulation of a control law capable of solving an r- failures or critical conditions of the controlled system, certain regions th order SMC problem for uncertain nonlinear affine systems with of the state space need to be avoided during the execution of many inequality constraints on both input and state variables (note that tasks. In some cases, a conservative tuning of the control laws can this was an open problem, to the best of the authors’ knowledge); lead to the avoidance of these regions. On the other hand, control second, a procedure to select the sliding variable in order to satisfy laws that directly consider the presence of state constraints can reduce the constraints, including two different sufficient conditions which conservativity and improve the overall system performance. The most provide guidance in the choice of the sliding variable; third, the well-known control methodology able to manage both input and state proof of the minimum-time convergence with constraint satisfaction constraints is Model Predictive Control (MPC), for which the reader and maximization of the domain of attraction for the first and second- is referred to [3] and the references therein. order cases (a preliminary result on this aspect, limited to the second- A control technique that naturally handles the presence of some order case, was presented in [30], without proof of the minimum-time classes of uncertainties and disturbances is Sliding Mode Control convergence); fourth, a general result on the domain of attraction (SMC), in which a discontinuous control law steers the state onto a for the r-th order case, along with the specific numerical study of suitably-defined hyper-surface (the so-called sliding manifold), and, the domain of attraction and of the minimum-time convergence for under suitable design conditions, makes the origin of the state space the third-order case. Note that preliminary results on the numerical an asymptotically stable equilibrium point for the closed-loop system. evaluation of the domain of attraction for a third-order sliding mode The convergence to the sliding manifold is guaranteed in a finite- controller (only for the case of box state constraints) were described time interval if the control action is large enough to counteract the in [33], and can be considered now as particular cases of the proposed effect of the uncertain terms. After reaching the sliding manifold, general formulation. the evolution of the state variables is insensitive to the so-called This technical note is organized as follows. After formulating the matched disturbances, i.e., those acting in the same channel as the regulation problem in Section II, Section III describes the design of control variable [4], [5]. The main drawback of SMC is the so-called the proposed control law. Theoretical results are proved in Section chattering [6], [7], which is the high-frequency oscillatory motion IV for the first and second-order cases, while more general results around the sliding manifold due to the discontinuity of the control and possible developments are discussed in Section V. Conclusions law. Higher Order Sliding Mode (HOSM) is a possible solution for are finally drawn in Section VI. For the sake of readability, most of chattering reduction (see, e.g., [8]–[17], and the references therein the theoretical proofs are reported in the Appendix. included). In particular, [16] proposes an algorithm that guarantees a time-optimal reaching of the sliding manifold for arbitrary order II.PROBLEM FORMULATION (i.e., dimension of the sliding manifold, see, e.g., [18]). Note that In this technical note, we consider a class of uncertain nonlinear This is the final version of the accepted paper submitted dynamical systems, defined by to IEEE Transactions on Automatic Control. G.P. Incremona is with the Dipartimento di Ingegneria Civile ed Architettura, x˙(t) = φ(x(t), t) + γ(x(t), t)u(t) (1) University of Pavia, Via Ferrata 3, 27100 Pavia, Italy (e-mail: n [email protected]). where x ∈ R is the state vector, u ∈ R is the control input, n+1 n n+1 n M. Rubagotti is with the Department of Engineering, University φ : R → R and γ : R → R are uncertain smooth of Leicester, University Rd, Leicester LE1 7RH, United Kingdom vector fields, and the whole state vector is assumed to be available for [email protected] ( ). x A. Ferrara is with the Dipartimento di Ingegneria Industriale e feedback. The control objective is the regulation of the state to the dell’Informazione, University of Pavia, Via Ferrata 5, 27100 Pavia, Italy (e- origin. Differently from classical SMC formulations, a set of (possibly mail: [email protected]). mixed) hard input and state inequality constraints is introduced. More 2 specifically, it is required that where X is, in general, a closed set, while α > 0 is the same fixed parameter as in (4), which defines the maximum amplitude of the x¯ ∈ X¯, x¯ x0 u0 ∈ n+1, , R (2) control variable. In order to consider (5) as the general formulation, 0 n+1 where denotes the transposition operator. X¯ ⊆ R is a closed the case m = 0 can be formulated as a particular case of (5), with (possibly unbounded) set that includes the origin in its interior, and xa = x, Φ(·, ·) = φ(·, ·), Γ(·, ·) = γ(·, ·), and Xa = X . is formulated as a system of (possibly nonlinear) algebraic equations. B. Definition of the sliding manifold III.THEPROPOSED HOSM CONTROL LAW After defining the augmented system (5) and the related constraint A. Definition of the augmented system sets in (6), the next step consists of defining a suitable output variable The control law can either be defined as a discontinuous control σ1(t) ∈ R, as a (in general, nonlinear) function of xa. Following the law (classical SMC), or as the result of an m-fold time integration of standard design procedure of HOSM control [10], a vector of time a discontinuous signal w(t) (HOSM aimed at chattering reduction). derivatives of σ1 is defined as 0 The case m > 0, m being an integer number, is considered first. 0 h (r−1)i r σ = σ1 σ2 . . . σr σ σ˙ . . . σ ∈ (8) An integrator-chain dynamics is added to the system, starting from , 1 1 1 R xn+1 , u, as where r ∈ [0 , n+m] is the well defined, uniform and time-invariant x˙ (t) = x (t) n+1 n+2 relative degree of the system (assuming w as input and σ1 as output). x˙ n+2(t) = xn+3(t) In the (n + m)-dimensional space defined by the components of (3) . xa, the manifold Σ , {xa : σ(xa) = 0} is referred to as sliding . manifold. The control variable will be defined in order to ensure x˙ n+m(t) = w(t). the finite-time convergence of xa on the sliding manifold, which σ Note that the chain of integrators will be an element of the closed (assuming a correct definition of ) will in turn imply the asymptotic x loop control system for which the stability results proved in Sections convergence of a to zero. With reference to [38, Theorem 13.1], a Ω: n+m → n+m−r × r IV and V hold. diffeomorphism R R R is defined, such that
In order to provide bounds on the derivatives of the actual control (ζ, σ) = Ω(xa) (9) variable u, and recalling that the constraints on u = xn+1 are already n+m−r imposed in (2), a set of box constraints is defined, as where ζ ∈ R is the internal state vector. The diffeomorphism allows one to transform system (5) into the normal form w ∈ [−α, α], xn+i ∈ [−βi, βi], i = 2, . . . , m, (4) ζ˙(t) = ψ(ζ(t), σ(t), t) (10a) α, βi > 0 being fixed parameters. The overall augmented system 0 n+m σ˙ i(t) = σi+1(t), i = 1, . . . , r − 1 (10b) dynamics, with state xa , x1 . . . xn+m ∈ R is now represented by σ˙ r(t) = f(ζ(t), σ(t), t) + g(ζ(t), σ(t), t)w(t) (10c) n+m+1 n+m−r n+m+1 n+m+1 x˙ a(t) = Φ(xa(t), t) + Γ(xa(t), t)w(t) (5) with ψ : R →R , f : R →R, g : R →R. The dynamics of system (5) includes uncertain terms, as specified n+m+1 n+m n+m+1 n+m where Φ: R → R and Γ: R → R are when defining the vector fields φ and γ in (1). As a consequence, ψ, smooth vector fields immediately obtainable from (1) and (3). For f and g in (10) also contain uncertain terms, but some information the sake of compactness, the sets of disjoint constraints in (2) and about them is available, as stated in the following assumption. (4) can be merged as Assumption 1: There exist positive constants F , G1, G2, such that
xa ∈ Xa, w ∈ [−α, α], (6) |f(ζ(t), σ(t), t)| ≤ F, (11) with implicit definition of Xa. 0 < G1 ≤ g(ζ(t), σ(t), t) ≤ G2, (12) Remark 1: As m increases, the smoothness of the control signal u also increases [12], together with the number of states of system (5), αr , G1α − F > 0. (13) with a consequent increase in the complexity of the controller. On the other hand, the chattering amplitude does not necessarily decrease as Moreover, the following two hypotheses are valid for the internal m increases [34]. Thus, there is not a “best value” for m in general: dynamics (10a). Firstly, for all initial conditions (ζ(0), σ(0)) ∈ n+m we propose an approach valid for any value of m, and leave the R , for all realizations of the uncertain terms satisfying (11)- decision on its value, for each specific application, to the designer of (12), the internal dynamics (10a) does not present finite time escape phenomena. Secondly, the zero dynamics the control law. Remark 2: The analysis of chattering is outside the scope of this ζ˙(t) = ψ(ζ(t), 0, t). (14) paper. Yet, it is an interesting topic that the reader may deepen making reference to [6], [34]–[37]. Indeed, in systems with chains is globally asymptotically stable. of integrators and certain dynamics of lag type in series, chattering These are typical assumptions in SMC: (11)-(12) require the may exist or not depending on the type of the discontinuous control boundedness of the uncertain terms, (13) ensures that the control law (ideal relay or relay with hysteresis) and the effect of parasitic amplitude is large enough to counteract their effect, the assumption dynamics. on the internal dynamics and on the zero dynamics (14) imply In the particular case when u is directly defined as the discontinuous that, during the reaching phase the internal states remain bounded, control variable (i.e., m = 0 and therefore w = u) the constraints while, once σ has been steered to zero, ζ will also converge to zero in (2) are required to be formulated as disjoint input and state asymptotically. By means of the diffeomorphism Ω(xa) in (9), the constraints, and precisely set Xa can be in general mapped into a new set S, i.e., ¯ n X = {(x, u) ∈ R × R : x ∈ X , u ∈ [−α, α]} , (7) xa ∈ Xa ⇐⇒ (ζ, σ) ∈ S (15) 3 which will be used to enforce the constraints in the coordinate influence the dynamics of σ. Again, by substituting the expression of system defined by (10). The presence of these constraints requires σ into the expression of Xa, the set S will be obtained as a function an additional hypothesis. of σ only. Assumption 2: The diffeomorphism Ω(xa) is defined such that Example 2: Consider as augmented system S = S(σ) ⊂ r, i.e., the expression of the constraint set does not R x˙ (t) = −x (t)e−x1(t) + x5(t) depend on the internal state ζ. 1 1 2 3 Assumption 2 is required by the fact that, in SMC, the control x˙ 2(t) = −x2(t) + w(t) law is defined as a function of σ. As a consequence, it would not with constraint set X = {(x , x ): x ∈ [−1, 3]}. In this case, the be possible to enforce constraint satisfaction on the internal state ζ a 1 2 2 state vector can be divided into two scalar components x = x and during the reaching phase. For this reason, the constraints have to be b 1 x = x . expressed in the r-dimensional space defined by σ. c 2 Choosing ζ = x and σ = x , we obtain a scalar σ ∈ , and the An explicit expression for Ω(x ) is not available in general. 1 1 2 R a dynamics of the system in form (10) is described by However, in the following we provide two different sufficient condi- ˙ −ζ(t) 5 tions, for which Ω(xa) can be immediately defined. We also show ζ(t) = −ζ(t)e + σ1 (t) an example in which neither of these conditions are satisfied, but 3 σ˙ 1(t) = −σ1 (t) + w(t) nonetheless Ω(xa) can be easily found. For the general case, the solution to this problem has to be considered by the designer of the with control system as a specific step of the design process. ζ x1 −1 ζ = Ω(xa) = , xa = Ω (ζ, σ) = . σ1 x2 σ1 C. Design of the sliding manifold The constraint set is defined as S = {σ1 : σ1 ∈ [−1, 3]}, which is The definition of Ω(xa) (or, equivalently, of σ1) such that σ a function of σ only. satisfies Assumption 2 requires, in general, some attention. Guidelines In the general case, Assumption 2 is not straightforwardly verified are provided in the following. Let us start by describing two particular so that a careful choice of σ1 must be made for each case. A simple cases in which Assumption 2 can be easily satisfied. example is shown next. Lemma 1: Consider a given augmented dynamics (5) with asso- Example 3: The augmented system dynamics is given by ciated constraints (6). If σ is defined such that r = n + m, then x˙ 1(t) = −x1(t) + x2(t) + w(t) Assumption 2 is satisfied. Proof: Since r = n + m, Ω(xa) defines a mapping from xa x˙ 2(t) = −x2(t) + w(t) to σ, and no internal state ζ exists. Therefore, each element of xa with associated constraint set Xa = {(x1, x2): |x1 + x2| ≤ 1}. can be expressed as a function of the elements of σ. Substituting the Since Xa depends on both state variables, it is not possible to use corresponding expressions of σ in the formulation of X , the set S a the result in Lemma 2. The constraint set S has to be a function of is obtained, which is a function of σ only. σ only, so we choose σ1 = x1 +x2. The internal state can be chosen Example 1: Consider the augmented system given by as ζ = x1 − x2.
x˙ 1(t) = sin(x2(t)) + u(t) As in the previous example, we obtain a scalar σ ∈ R, and the dynamics of the system in form (10) is x˙ 2(t) = u(t) ˙ 3 1 with constraint set Xa = {(x1, x2): |x1| ≤ 1, |x2| ≤ 1}. Choosing ζ(t) = − ζ(t) + σ1(t) 2 2 2 σ1 = x1 − x2, we obtain a vector σ ∈ R , the dynamics of which 1 1 σ˙ (t) = ζ(t) + σ (t) + 2w(t) is defined by 1 2 2 1
σ˙ 1(t) = σ2(t) with σ˙ 2(t) = cos(x2(t))w(t) ζ x1 − x2 −1 1 ζ + σ1 = Ω(xa) = , xa = Ω (ζ, σ) = . σ1 x1 + x2 2 ζ − σ1 with −1 The constraint set is defined as S = {σ1 : |σ1| ≤ 1}, which is a x1 − x2 −1 σ1 + sin (σ2) σ = Ω(xa) = xa = Ω (σ) = −1 . function of σ only. sin(x2(t)) sin (σ2)
−1 The constraint set is defined as S = {(σ1, σ2): |σ1 + sin (σ2)| ≤ D. Definition of the control law 1, |σ2| ≤ sin(1)}, which is a function of σ only. n+m The control law w(t) has to be defined as a discontinuous function Lemma 2: Assume that the state vector xa ∈ R of the aug- 0 of σ. In [16, Sec. III.C], an HOSM control law for a system mented system is composed of two subvectors, as x = x0 x0 , a b c in form (10b)-(10c) was proposed (i.e., for arbitrary value of r), with x ∈ n+m−p, x ∈ p, p ∈ {1, 2, . . . , n − m}. As a b R c R which guaranteed the reaching of the sliding manifold in minimum consequence, (5) takes the form time, for the worst-case realization of the uncertain terms (i.e.,
x˙ b(t) = Φb(xb(t), xc(t), t) (16) f(ζ(t), σ(t), t) ≡ −F · sgn(w(t)) and g(ζ(t), σ(t), t) ≡ G1). In this worst-case formulation, αr in (13) can be interpreted as x˙ c(t) = Φc(xc(t), t) + Γc(xc(t), t)w(t) (17) a reduced control amplitude (however, notice that αr and α have with implicit definition of Φb, Φc, and Γc. In addition, assume that different units of measure). We denote the control law proposed in the constraint set Xa is a function of xc only. Then, if σ = σ(xc) [16], which did not take into account the presence of constraints, as r+1 r with r = p, Assumption 2 is satisfied. win(σ) , (−1) ·α·c(σ), where function c(σ): R → {−1, +1} Proof: Since r = p, the same development of the proof of is determined as reported in [16]. In general, one obtains an (r − 1)- Lemma 1 can be followed, for subsystem (17). Ω−1(σ) will map dimensional manifold in the r-dimensional space generated by vector σ to xc, and the evolution of the internal state variables ζ will not σ, described by the nonlinear equation s(σ) = 0. This manifold, 4 which includes the origin, divides the σ-space into two half-spaces. constraint set S˜ ⊂ S, so as to prevent the original constraints from By imposing a constant value of c (either −1 or +1) in each half- being violated. space, the control law can be written as
win(σ) = −α · sgn(s). (18) IV. ANALYTICAL RESULTS ON FIRSTAND SECOND-ORDER SLIDING MODESWITH BOX CONSTRAINTS As mentioned in [16], the complexity of the expression of s(σ) grows very fast with the order r, and the derivation of efficient methods In this section, the convergence in a finite (minimum) time of (numerical or exact-algebraic) in order to define it, is still an open the sliding variable associated with the proposed closed-loop control problem. A method for determining the expression of s(σ) for generic system is discussed. Note that this result directly implies asymptotic order is proposed in [39]. For relatively low-dimensional cases, the stability of the origin of the closed-loop system since, by assumption, analytical expression of s(σ) is given by the zero dynamics (14) of system (1) transformed via the diffeomor- phism Ω(xa) is globally asymptotically stable. 1 σ ∈ R ⇒ s(σ) = σ1 (19) 2 σ2|σ2| σ ∈ ⇒ s(σ) = σ1 + (20) R 2αr A. First-Order Sliding Mode Control 3 2 3 σ3 σ3 sgn(σ3) σ ∈ ⇒ s(σ) = σ1 + 2 + sgn σ2 + × The formulation of the control law (22) for r = 1, using (19), R 3αr 2αr 3 becomes 2 2 2 1 σ3 sgn(σ3) σ3 σ2σ3 × √ sgn σ2 + σ2 + + . (21) αr 2αr 2αr αr w(σ) = −α sgn(σ1) (23)
To be precise, in the problem defined in [16], the expression of win is which coincides with the “unconstrained” control law win in (18). found also in the different sub-cases when σ = 0, which would make The constraint set in this simple case can only take the form the formulation of the control law more complicated. However, as pointed out also in [16], being s(σ) a null-measure set, the definition S = {σ1 : σ1 ∈ [σ1, σ1]}. (24) of the control law for σ = 0 has no practical relevance. For this with σ < 0 and σ1 > 0. Then, the following result can be proved. reason, the value of w (σ) when s(σ) = 0 will not be explicitly 1 in Theorem 1: Given system (10) with r = 1, assuming that Assump- defined, and, when needed in the proofs, will be determined as the tion 1 holds, if the control law (23) is applied, then σ is steered to Filippov solution of the given discontinuous vector field at σ (see 1 the origin with domain of attraction S coinciding with S in (24). [40]). I The set SI is the maximum obtainable domain of attraction for the In order to take the presence of constraints into account, the control given set of constraints, and the convergence takes place in minimum law proposed in this technical note coincides with w (σ) when σ ∈ in time for the worst possible realization of the disturbance terms (i.e., S, while for σ∈ / S is defined as wout(σ) , −α · sgn(σr). Overall, f(ζ(t), σ1(t), t) ≡ −F · sgn(w(t)) and g(ζ(t), σ1(t), t) ≡ G1).. ( −α · sgn(s(σ)), σ ∈ S Proof: See Appendix A. w(σ) = (22) −α · sgn(σr), σ∈ / S. B. Second-Order Sliding Mode Control which is an extremely simple law, yet capable of solving a rather complex nonlinear constrained control problem for uncertain systems. In the case r = 2, the second-order SMC law, according to (20) After the introduction of the proposed control law (22), three and (22), is defined as interesting issues regarding the closed-loop system are addressed ( σ2|σ2| −α sgn σ1 + if (σ1, σ2) ∈ S in the following. The first is the determination of the domain of w(σ) = 2αr (25) attraction SI of the origin for the closed-loop system, i.e., all the −α sgn(σ2) if (σ1, σ2) ∈/ S initial conditions σ(0) for which σ(t) converges to the origin in a finite time without violating the constraints. The second is the while the box constraints can be expressed as problem of determining if the obtained domain of attraction can S = {σ ∈ 2 : σ ∈ [σ , σ ], σ ∈ [σ , σ ]} (26) be enlarged by using a different control law w(t), with the same R 1 1 1 2 2 2 system dynamics, the same bounds on the uncertain terms and on with σ1, σ2 < 0 and σ1, σ2 > 0. A graphical representation of the the control amplitude, and the same state constraints. The third issue switching regions is reported in Figure 1. is related to investigating if w(σ) in (22) still leads to minimum-time Theorem 2: Given system (10) with r = 2, assuming that convergence to σ = 0 for the constrained case, as it was in [16] for Assumption 1 holds, if the control law (25) is applied, then σ is the unconstrained case. In the next section, the cases r = 1 and r = 2 steered to the origin with domain of attraction with box constraints on σ will be considered. For such cases, formal results will be presented. The general case will be tackled in Section SI , S \ {M0 ∪ M1} (27) V. Remark 3: In many practical applications, SMC laws are imple- where mented using a finite sampling time, or one of the so-called pseudo- n σ2|σ2| o M0 , (σ1, σ2): σ1 > − + σ1, σ2 > 0 , (28) sliding techniques (typically, employing a saturation function instead 2αr n σ2|σ2| o of the sign function, or low-pass filtering the discontinuous control M1 (σ1, σ2): σ1 < − + σ , σ2 < 0 . (29) , 2αr 1 signal). All of these techniques typically lead to the convergence to a boundary layer of the sliding manifold, rather than on the The set SI is the maximum obtainable domain of attraction for the sliding manifold itself [41]. If such techniques are directly applied to given set of constraints, and the convergence takes place in minimum approximate the proposed control law, the imposed constraints can time for the worst possible realization of the disturbance terms (i.e., be slightly violated, as the state evolves on a boundary layer around f(ζ(t), σ(t), t) ≡ −F · sgn(w(t)) and g(ζ(t), σ(t), t) ≡ G1). them. The typical solution consists in defining more conservative Proof: See Appendix B. 5
1. 5
1