Docsity

Lecture 14: Input-State Feedback Linearization - Notes | AOE 5344, Study notes of Aerospace Engineering

Toggle sidebar
bg1
Lecture 14: Input-State Feedback Linearization
Definition. A given nonlinear control system in the form
˙
x=f(x) + G(x)u,(1)
where fand Gare defined on a domain Dx⊂Rand are sufficiently smooth, is input-state linearizable if
there exists a diffeomorphism T(·) such that the change of coordinates z=T(x) converts the system (1)
into the form
˙
z=Acz+Bcβ−1(z) (u−α(z))
with (Ac,Bc) a controller canonical pair and β−1(z) nonsingular for all z∈Dz:= T(Dx).
Comparing the z-dynamics with the original system dynamics, we find that
∂T
∂x(f(x) + G(x)u) = AcT(x) + Bcβ−1(x) (u−α(x)) (2)
where, for convenience, we have defined
β(x) := β(T(x)) and α(x) := α(T(x)).
Now, the input ucan be chosen freely. For example, choosing u=0and substituting into (2) gives
∂T
∂xf(x) = AcT(x)−Bcβ−1(x)α(x).(3)
Equation (3) is an identity; it must hold always, even when u6=0. Subtracting (3) from (2) gives
∂T
∂xG(x)u=Bcβ−1(x)u.
Noting, once again, that uis arbitrary, one finds
∂T
∂xG(x) = Bcβ−1(x).(4)
Thus, a necessary and sufficient condition for the original nonlinear system to be input-state linearizable
is that there exist a function α(x), a nonsingular function β(x), and a transformation z=T(x) satisfying
the n(m+ 1) partial differential equations (3) and (4).
For the purpose of exposition, we will consider only the special case of single-input systems. Because of the
pole placement theorem, there exists linear state feedback which makes the last row of Aczero, thus moving
all of the characteristic values to zero. Because controllability is invariant under linear state feedback, the
control law which effects this shift in the characteristic values can be absorbed into the feedback linearizing
control law. Thus, without loss of generality, we may consider the special case where
Ac=
0 1 0 ··· 0
0 0 1 ··· 0
.
.
..
.
..
.
.··· .
.
.
0 0 0 ··· 1
0 0 0 ··· 0
and Bc=
0
0
.
.
.
0
1
.
We will assume that the given nonlinear system is input-state linearizable. That is, there exists a nonlinear
transformation z=T(x) which gives the transformed nonlinear dynamics
˙
z=Acz+Bc
1
β(z)(u−α(z)) .(5)
1
pf3
pf4
pf5

Partial preview of the text

Download Lecture 14: Input-State Feedback Linearization - Notes | AOE 5344 and more Study notes Aerospace Engineering in PDF only on Docsity!

Lecture 14: Input-State Feedback Linearization

Definition. A given nonlinear control system in the form

x˙ = f (x) + G(x)u, (1)

where f and G are defined on a domain Dx ⊂ R and are sufficiently smooth, is input-state linearizable if there exists a diffeomorphism T (·) such that the change of coordinates z = T (x) converts the system (1) into the form z˙ = Acz + Bcβ−^1 (z) (u − α(z))

with (Ac, Bc) a controller canonical pair and β−^1 (z) nonsingular for all z ∈ Dz := T (Dx).

Comparing the z-dynamics with the original system dynamics, we find that

∂T ∂x (f (x) + G(x)u) = AcT (x) + Bcβ−^1 (x) (u − α(x)) (2)

where, for convenience, we have defined

β(x) := β(T (x)) and α(x) := α(T (x)).

Now, the input u can be chosen freely. For example, choosing u = 0 and substituting into (2) gives

∂T ∂x

f (x) = AcT (x) − Bcβ−^1 (x)α(x). (3)

Equation (3) is an identity; it must hold always, even when u 6 = 0. Subtracting (3) from (2) gives

∂T ∂x G(x)u = Bcβ−^1 (x)u.

Noting, once again, that u is arbitrary, one finds

∂T ∂x

G(x) = Bcβ−^1 (x). (4)

Thus, a necessary and sufficient condition for the original nonlinear system to be input-state linearizable is that there exist a function α(x), a nonsingular function β(x), and a transformation z = T (x) satisfying the n(m + 1) partial differential equations (3) and (4).

For the purpose of exposition, we will consider only the special case of single-input systems. Because of the pole placement theorem, there exists linear state feedback which makes the last row of Ac zero, thus moving all of the characteristic values to zero. Because controllability is invariant under linear state feedback, the control law which effects this shift in the characteristic values can be absorbed into the feedback linearizing control law. Thus, without loss of generality, we may consider the special case where

Ac =

and Bc =

We will assume that the given nonlinear system is input-state linearizable. That is, there exists a nonlinear transformation z = T (x) which gives the transformed nonlinear dynamics

z˙ = Acz + Bc

β(z)

(u − α(z)). (5)

Let Ti(x) denote the ith^ component of T (x) for i ∈ { 1 , 2 ,... , n}. Noting the special form of Ac and Bc above, we find that

AcT (x) − Bc

α(x) β(x)

T 2 (x) T 3 (x) .. . Tn(x) − α β((xx))

and

β(x) Bc =

1 β(x)

To be consistent with Khalil’s notation, we also define g(x) as the single-input (1 × n) form of the (m × n) input matrix G(x). Substituting into equations (3) and (4), we obtain

∂T 1

∂x

f (x) = T 2 (x) ∂T 2 ∂x f (x) = T 3 (x) .. . ∂Tn− 1 ∂x

f (x) = Tn(x) ∂Tn ∂x

f (x) = − α(x) β(x)

and

∂T 1

∂x g(x) = 0 ∂T 2 ∂x

g(x) = 0 .. . ∂Tn− 1 ∂x g(x) = 0 ∂Tn ∂x

g(x) =

β(x)

The condition (^) β(^1 x) 6 = 0 corresponds to our assumption that β(x) is an invertible m × m matrix. Notice from the equations on the left that, if we are given a function T 1 (x), then all of the remaining components of T (x) can be determined immediately, with the last equation defining the function α β((xx)). Of course, T 1 is not given, but rather must be derived (if possible) for a given nonlinear system. The problem of determining the transformation T (x) which transforms a given input-state linearizable system into the form (5) reduces to finding a scalar function T 1 (x) which satisfies the PDEs on the right, with Ti+1 defined for i ∈ { 1 , · · · , n − 1 } by the first n − 1 PDEs on the left. Having found such a function, one finds that

α(x) = −

∂Tn ∂x f^ (x) ∂Tn ∂x g(x)^

and β(x) =

∂Tn ∂x g(x)

To answer the question “What are the general conditions on f and g under which such a transformation T (·) exists?” requires the introduction of some concepts from geometric control theory. We will postpone this discussion until later.

To illustrate the idea of input-state linearization, we consider the problem of stabilizing a given nonlinear system about an equilibrium point xe. That is, we assume that f (xe) = 0 and we seek a control law to feedback linearize the dynamics so that we may then use linear state feedback to stabilize the equilib- rium. To simplify matters, we choose T (·) such that the equilibrium at xe is shifted to the origin in the transformed coordinates. We therefore seek a transformation satisfying T (xe) = 0. Note that, because f (xe) = 0 , the equations defining Ti+1 for i ∈ { 1 , · · · , n − 1 } show that T 2 through Tn are zero at x = xe We therefore require only that T 1 (xe) = 0.

Example. Returning to the previous example from Khalil, consider the nonlinear control system

x˙ = f (x) + g(x)u =

a sin x 2 −x^21

u

which has an equilibrium at the origin. We would like to construct a change of variables z = T (x) which transforms this system into a form which can be easily converted to a linear system through feedback. We impose the conditions T 1 ( 0 ) = 0 and

Pendulum Example (Stabilization). Consider the problem of stabilizing an inverted planar pendulum using a motor actuator. The pendulum dynamics can be written

θ¨ + b θ˙ − g l sin(θ) = T

where we have assumed linear damping, with damping constant b. The right-hand term T is the input torque (divided by the pendulum inertia). Define x 1 = θ and x 2 = θ˙. The pendulum dynamics are ( x˙ 1 x ˙ 2

x 2 −bx 2 + g l sin(x 1 )

T.

Suppose that the actuator dynamics are well-described by a simple, first order linear system,

τ x˙ 3 = −x 3 + u T = x 3

where τ > 0 represents the actuator time constant. The smaller the positive scalar τ is, the faster the actuator dynamics are. Note that, in the limit that τ → 0, T = x 3 converges instantaneously to u. The complete system dynamics are

x˙ =

x 2 −bx 2 + g l sin(x 1 ) + x 3 − (^1) τ x 3

1 τ

 (^) u.

We seek a transformation of variables z = T (x), with T 1 ( 0 ) = 0, which satisfies the following requirements

∂T 1

∂x

f (x) = T 2 (x) (10) ∂T 2 ∂x f (x) = T 3 (x) (11) ∂T 3 ∂x f (x) = −

α(x) β(x)

∂T 1

∂x g(x) = 0 (13) ∂T 2 ∂x

g(x) = 0 (14) ∂T 3 ∂x g(x) =

β(x)

Step 1. We first note from (13) that ∂T 1 ∂x

g(x) =

τ

∂T 1

∂x 3

implies T 1 should be chosen independent of x 3.

Step 2. Substituting T 1 (x 1 , x 2 ) into (10) defines T 2 (x):

T 2 =

∂T 1

∂x

f (x) =

∂T 1

∂x 1

x 2 +

∂T 1

∂x 2

−bx 2 + g l

sin(x 1 ) + x 3

Step 3. Condition (14) requires that

∂T 2 ∂x

g(x) =

τ

∂T 2

∂x 3

Substituting the expression for T 2 , and recalling that T 1 must be independent of x 3 , we require

0 =

∂T 1

∂x 2

Thus, T 1 should also be chosen independent of x 2.

Step 4. Substituting T 1 (x 1 ) and

T 2 (x 1 , x 2 ) =

∂T 1

∂x 1

x 2

into (11) defines T 3 (x):

T 3 =

∂T 2

∂x f (x) =

∂T 2

∂x 1 x 2 +

∂T 2

∂x 2 (−bx 2 + g l sin(x 1 ) + x 3 )

∂^2 T 1

∂x^21

x^22 +

∂T 1

∂x 1

(−bx 2 + g l

sin(x 1 ) + x 3 ).

Step 5. Condition (15) requires that

∂T 3

∂x

g(x) =

τ

∂T 3

∂x 3

τ

∂T 1

∂x 1

For example, choosing T 1 = x 1 will satisfy the condition. For this choice of T 1 , the complete transformation is

z =

x 1 x 2 −bx 2 + g l sin(x 1 ) + x 3

Also, note that β(x) = τ.

Step 6. To find α(x), we use equation (12):

α(x) β(x)

∂T 3

∂x f (x)

g l cos(x^1 ) −b 1

x 2 −bx 2 + g l sin(x 1 ) + x 3 − (^1) τ x 3

g l

(x 2 cos(x 1 ) − b sin(x 1 )) + b^2 x 2 −

b +

τ

x 3

In the end, we have

z˙ =

 (^) z +

( (^) a τ

u + τ

g l (x 2 cos(x 1 ) − b sin(x 1 )) + b^2 x 2 −

b +

τ

x 3

Thus, the system is input-state linearizable. Choosing

u(x) = α(x) + βv = −τ

g l (x 2 cos(x 1 ) − b sin(x 1 )) + b^2 x 2 −

b +

τ

x 3

  • τ v

gives, under the transformation of variables (16),

z˙ =

 (^) z +

 (^) v.

To stabilize the origin, we may choose

v = −Kz = −KT (x)

−10 0 1 2 3 4 5 6 7 8 9 10

0

10

20

30

40

50

θ^ and

θd

(degrees)

t (s)

θθ d

Figure 2: Inverted pendulum tracking example.

Note that, because the transformation z = T (x) is globally well-defined, we may track any desired trajec- tory (so long as it satisfies the continuity and boundedness conditions). We are not limited to small angle motions. Figure 2 shows tracking results for a particular choice of parameter values and initial conditions. The Matlab files

  • FeedbackLinearizedInvertedPendulum.m (Script)
  • FeedbackLinearizedInvertedPendulumODE.m (Equations of motion)

are available on the course web page. It is recommended that you play with the simulation, exploring the effect of changes in controller bandwidth, trajectory filter bandwidth, etc.