design and veri cation of nonlinear optimal …design and veri cation of nonlinear optimal...

4
Design and Verification of Nonlinear Optimal Controller Considering Acceleration Constraints based on Invariant Manifold Calculation M2015SC016 Shogo SUZUKI Supervisor : Isao TAKAMI 1 Introduction The ISO 2631-1[1] states that there is a relationship between ride comfort and acceleration of vehicles. The smaller vehicle acceleration is the better ride comfort be- comes. Therefore, in vehicle industry, it is necessary to impose acceleration constraints to acquire a reasonable ride comfort. Conventionally, a control design that satisfies acceler- ation constraints by tuning weight matrices and gains has been done. However, this often leads to a degrada- tion on control performance. In this paper, we consider the optimal control prob- lem of the nonlinear system satisfying acceleration con- straints. We propose a nonlinear optimal control design method and a nonlinear servo control design method via stable and center-stable manifold methods[2], [3] intro- ducing Lagrange multiplier to handle acceleration con- straints. The stable and center-stable manifold meth- ods are recently proposed, which are iterative calcu- lation methods to calculate the approximated solu- tion of a Hamilton-Jacobi equation subject to some constraints[4]. We verify the effectiveness of the pro- posed methods on a magnetic levitation system and a numerical example. 2 Optimal Regulation Problem with Ac- celeration Constraints In this section, we consider the nonlinear optimal reg- ulation problem for nonlinear system subject to acceler- ation constraints based on the stable manifold theory. 2.1 Problem Definition Let us consider a nonlinear system of the physical sys- tem of the form ˙ x = f (x)+ g(x)u, x R n ,u R m ,x(0) = x 0 , (1) where f : R n R n ,g : R n R n×m . We will design a controller that minimize the following cost function J = 0 (x T Qx + u T Ru)dt, Q > 0,R> 0, subject to some constraints on acceleration a min 6 a 6 a max , where a is acceleration of the system (1), a max and a min are upper and lower limit values of acceleration, respec- tively. 2.2 Application of Dynamic Programming In this section, the acceleration constraints are con- sidered as follows h 1 = a - a max = l(f + gu) - a max 6 0, h 2 = a min - a = a min - l(f + gu) 6 0, where a min 6 0 6 a max . l is a vector for extracting acceleration from the state space representation of the system (1). There are 3 possible cases that might hap- pen at a time t, which are Case 1: all constraints are inactive. Case 2: h 1 is active, which is a = a max . Case 3: h 2 is active, which is a = a min . The optimal control problem considering acceleration constraints can be handled as the conditional minimiza- tion problem by using Lagrange multiplier. Therefore, the pre Hamiltonian H i , the optimal input ¯ u i and the value of the Lagrange multiplier λ i (i =1, ··· , 3) for each case are calculated. Case 1: all constraints are inactive. H 1 = p T (f + gu)+ x T Qx + u T Ru, ¯ u 1 = - 1 2 R -1 g T p, λ 1 =0. Case 2: h 1 is active, which is a = a max . H 2 = H 1 + λ 2 (l(f + gu) - a max ), ¯ u 2 u 1 - 1 2 λ 2 R -1 g T l T , λ 2 = -2(a max - l(f + g ¯ u 1 )) lgR -1 g T l T . Case 3: h 2 is active, which is a = a min . H 3 = H 1 + λ 3 (a min - l(f + gu)), ¯ u 3 u 1 + 1 2 λ 3 R -1 g T l T , λ 3 = 2(a min - l(f + g ¯ u 1 )) lgR -1 g T l T . Next, we substitute ¯ u i into the pre Hamiltonian H i to obtain Hamilton-Jacobi equation ¯ H i = 0(i =1, ··· , 3). Then, an associated Hamiltonian system is derived. And we apply the stable manifold method using Case- choosing algorithm[4] for Hamilton’s canonical equation and obtain an optimal feedback controller u(x). 2.3 Application for Magnetic Levitation Sys- tem We verify the effectiveness of the proposed method by application for a magnetic levitation system. 2.3.1 Modeling The schematic diagram of the magnetic levitation sys- tem is shown Figure. 1. x b is position of the ball and i c is input of the system. The equation of motion of the system can be derived via Newton’s second law. Con- sidering a new variable x * b := x b - x b0 ,u * := u 2 - u 2 0

Upload: others

Post on 08-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Design and Veri cation of Nonlinear Optimal …Design and Veri cation of Nonlinear Optimal Controller Considering Acceleration Constraints based on Invariant Manifold Calculation M2015SC016

Design and Verification of Nonlinear Optimal ControllerConsidering Acceleration Constraints based on Invariant

Manifold CalculationM2015SC016 Shogo SUZUKI

Supervisor : Isao TAKAMI

1 Introduction

The ISO 2631-1[1] states that there is a relationshipbetween ride comfort and acceleration of vehicles. Thesmaller vehicle acceleration is the better ride comfort be-comes. Therefore, in vehicle industry, it is necessary toimpose acceleration constraints to acquire a reasonableride comfort.Conventionally, a control design that satisfies acceler-

ation constraints by tuning weight matrices and gainshas been done. However, this often leads to a degrada-tion on control performance.In this paper, we consider the optimal control prob-

lem of the nonlinear system satisfying acceleration con-straints. We propose a nonlinear optimal control designmethod and a nonlinear servo control design method viastable and center-stable manifold methods[2], [3] intro-ducing Lagrange multiplier to handle acceleration con-straints. The stable and center-stable manifold meth-ods are recently proposed, which are iterative calcu-lation methods to calculate the approximated solu-tion of a Hamilton-Jacobi equation subject to someconstraints[4]. We verify the effectiveness of the pro-posed methods on a magnetic levitation system and anumerical example.

2 Optimal Regulation Problem with Ac-celeration Constraints

In this section, we consider the nonlinear optimal reg-ulation problem for nonlinear system subject to acceler-ation constraints based on the stable manifold theory.

2.1 Problem Definition

Let us consider a nonlinear system of the physical sys-tem of the form

x = f(x) + g(x)u, x ∈ Rn, u ∈ Rm, x(0) = x0, (1)

where f : Rn → Rn, g : Rn → Rn×m. We will design acontroller that minimize the following cost function

J =

∫ ∞

0

(xTQx+ uTRu)dt,Q > 0, R > 0,

subject to some constraints on acceleration

amin 6 a 6 amax,

where a is acceleration of the system (1), amax and amin

are upper and lower limit values of acceleration, respec-tively.

2.2 Application of Dynamic Programming

In this section, the acceleration constraints are con-sidered as follows

h1 = a− amax = l(f + gu)− amax 6 0,

h2 = amin − a = amin − l(f + gu) 6 0,

where amin 6 0 6 amax. l is a vector for extractingacceleration from the state space representation of thesystem (1). There are 3 possible cases that might hap-pen at a time t, which are

• Case 1: all constraints are inactive.

• Case 2: h1 is active, which is a = amax.

• Case 3: h2 is active, which is a = amin.

The optimal control problem considering accelerationconstraints can be handled as the conditional minimiza-tion problem by using Lagrange multiplier. Therefore,the pre Hamiltonian Hi, the optimal input ui and thevalue of the Lagrange multiplier λi(i = 1, · · · , 3) for eachcase are calculated.

• Case 1: all constraints are inactive.

H1 = pT (f + gu) + xTQx+ uTRu,

u1 = −1

2R−1gT p,

λ1 = 0.

• Case 2: h1 is active, which is a = amax.

H2 = H1 + λ2(l(f + gu)− amax),

u2 = u1 −1

2λ2R

−1gT lT ,

λ2 =−2(amax − l(f + gu1))

lgR−1gT lT.

• Case 3: h2 is active, which is a = amin.

H3 = H1 + λ3(amin − l(f + gu)),

u3 = u1 +1

2λ3R

−1gT lT ,

λ3 =2(amin − l(f + gu1))

lgR−1gT lT.

Next, we substitute ui into the pre Hamiltonian Hi toobtain Hamilton-Jacobi equation Hi = 0(i = 1, · · · , 3).Then, an associated Hamiltonian system is derived.And we apply the stable manifold method using Case-choosing algorithm[4] for Hamilton’s canonical equationand obtain an optimal feedback controller u(x).

2.3 Application for Magnetic Levitation Sys-tem

We verify the effectiveness of the proposed method byapplication for a magnetic levitation system.

2.3.1 Modeling

The schematic diagram of the magnetic levitation sys-tem is shown Figure. 1. xb is position of the ball and icis input of the system. The equation of motion of thesystem can be derived via Newton’s second law. Con-sidering a new variable x∗

b := xb − xb0, u∗ := u2 − u2

0

Page 2: Design and Veri cation of Nonlinear Optimal …Design and Veri cation of Nonlinear Optimal Controller Considering Acceleration Constraints based on Invariant Manifold Calculation M2015SC016

Figure 1 Schematic Diagram of Magnetic LevitationSystem

based on the equilibrium point and choosing state vari-able x = [x1 x2]

T = [x∗b x∗

b ]T and input u∗, the equation

of motion of the system is shown as follows

x = f(x) + g(x)u∗, (2)

where

f(x) =

[x2

g − Cmb

(u0

x1+xb0+d

)2] ,g(x) =

[0

− Cmb

(1

x1+xb0+d

)2] .Parameters of the magnetic levitation system are listedin Table. 1.

Table 1 Physical parameters of the magnetic levitationsystem

Gravitational acceleration : g 9.81[m/s2]Mass of ball : mb 66[g]

Electromagnetic force constant : C 1.532×10−4[Nm2/A2]Actuator parameter : d 9.445×10−3[m]

2.3.2 Control Design

In control design, the weighting matrices of the costfunction are Q = diag([1, 1]), R = 1 and accelerationconstraints are amax = 0.1[m/s2], amin = −0.1[m/s2].Applying the stable manifold method algorithm 3 times,the optimal feedback controller u(x) is approximated bylinear interpolation (Figure 2).

2.3.3 Simulation Result

The proposed method is compared with a LQ con-troller using the same weighting matrices Q,R. To sat-isfy the acceleration constraints, the algorithm in Fig-ure. 3 is applied to modify the LQ controller. The simu-lation results can be seen in the Fig. 4, 5 and 6. Here, theinitial conditions are x1(0) = 0.013[m], x2(0) = 0[m/s]and the equilibrium points x1ep = 0.007[m], x2ep(0) =0[m/s]. It is shown in Fig. 4, 5 and 6 that the responseof proposed method satisfies the acceleration constraintsand the nonlinear controller has better convergence tothe origin than the LQ controller with input modifica-tion.

8

×10-3

642

x1

0-2-4-6-8-0.05

0x2

2.5

2

1.5

0

1

0.5

-0.5

-1

-1.5

-2

-2.50.05

inpu

t

Figure 2 The nonlinear controller(red surface) and theLQ controller using the weighting matrices of the samecost function as the nonlinear controller(blue surface).

Figure 3 Input modification algorithm to satisfy accel-eration constraint for LQ controller.

3 Optimal Servo Problem with Acceler-ation Constraints

We consider nonlinear optimal servo problem for non-linear system with acceleration constraints based on thecenter-stable manifold theory and Lagrange multiplier.

3.1 Problem Definition

We consider the optimal servo problem for the nonlin-ear system (1) and an error equation is as follows

e = h(x,w),

where the system has relative degree 2. The referencesignal is generated from the exosystem shown as follows

w = s(w), w ∈ Rp, s(0) = 0, (3)

where s : Rp → Rp, h : Rn×Rp → Rr. Since the systemhas relative degree of 2, the following cost function ischosen

J =1

2

∫ ∞

0

(|e|2 + |e|2 + |e|2)dt. (4)

Page 3: Design and Veri cation of Nonlinear Optimal …Design and Veri cation of Nonlinear Optimal Controller Considering Acceleration Constraints based on Invariant Manifold Calculation M2015SC016

time[s]0 0.5 1 1.5

-0.03

-0.025

-0.02

-0.015

-0.01

-0.005

0

0.005

0.01

0.015

0.02

x1x2input*10-2

Figure 4 Responses of state and input of constrainednonlinear controller

time[s]0 0.5 1 1.5

-0.03

-0.025

-0.02

-0.015

-0.01

-0.005

0

0.005

0.01

0.015

0.02

x1x2input*10-2

Figure 5 Responses of acceleration of constrained linearcontroller

We will design a controller that minimizes the cost func-tion (4). J can be written as

J =1

2

∫ ∞

0

L(x,w, u)dt,

L(x,w, u) = |h(x,w)|2 + |Lfh(x,w) + Lsh(x,w)|2

+ |L2fh(x,w) + LgLfh(x,w)u+ L2

sh(x,w)|2,

where Lfh,Lsh,L2fh, LgLfh,L

2sh are the Lie differenti-

ations and these are defined as follows

Lfh =∂h

∂xf, Lsh =

∂h

∂ws,

L2fh =

∂Lfh

∂xf, LgLfh =

∂Lfh

∂xg, L2

sh =∂Lsh

∂ws.

Then, we consider the control design problem of system(1), (3) subject to acceleration constraints (2).

3.2 Application of Dynamic Programming

The pre Hamiltonian Hi, the optimal input ui andthe value of the Lagrange multiplier λi(i = 1, · · · , 3) foreach case are calculated.

time[s]0 0.5 1 1.5

-0.15

-0.1

-0.05

0

0.05

0.1

0.15

NLORLinearSaturation

Figure 6 Response of acceleration of constrained non-linear and linear controllers

• Case 1: all constraints are inactive.

H1 = pTx (f + gu) + pTws+1

2L(x,w, u),

u1 = −(LgLfh)−1(L2

fh+ L2sh+ (LgLfh)

−T gT px),

λ1 = 0.

• Case 2 : h1 is active, which is a = amax.

H2 = H1 + λ2(l(f + gu)− amax),

u2 = u1 − λ2(LgLfh)−1(LgLfh)

−T gT lT ,

λ2 =−amax + l(f + gu1)

lg(LgLfh)−1(LgLfh)−T gT lT.

• Case 3 : h2 is active, which is a = amin.

H3 = H1 + λ3(amin − l(f + gu)),

u3 = u1 + λ3(LgLfh)−1(LgLfh)

−T gT lT ,

λ3 =amin − l(f + gu1)

lg(LgLfh)−1(LgLfh)−T gT lT.

Next, we apply the center-stable manifold method usingcase-choosing algorithm for Hamilton’s canonical equa-tion and obtain a optimal feedback controller u(x,w).

3.3 Numerical Example

We verify the effectiveness of the proposed method ona nonlinear spring system. The equation of motion ofthe system is given by

mxm + kxm + ϵx3m = u (5)

where k is the spring constant, ϵ is the nonlinear springconstant and m is the mass. For simplicity, all of theseparameters have the value of 1. Then, Eq. (5) is rewrit-ten as follows

[x1

x2

]=

[x2

− kmx1 − ϵ

mx31

]+

[01m

]u

e = x1 − w,(6)

where x = [x1 x2]T = [xm xm]T . Here, the reference is

step signal, is therefore the exosystem is

w = 0.

Page 4: Design and Veri cation of Nonlinear Optimal …Design and Veri cation of Nonlinear Optimal Controller Considering Acceleration Constraints based on Invariant Manifold Calculation M2015SC016

In control design, acceleration constraints are amax =0.1[m/s2], amin = −0.1[m/s2]. Applying the center-stable manifold method algorithm 10 times, the optimalfeedback controller u(x,w) is approximated by linear in-terpolation. The proposed method is compared with anPID controller using the gains KP = 10,KI = 1,KD =15. To satisfy acceleration constraints, the algorithm inFigure. 7 is applied to modify the PID controller.

Figure 7 Input modification algorithm to satisfy accel-eration constraints for PID controller.

The simulation results are shown in Figure. 8, 9 and10. Here, the initial conditions are x1(0) = 0, x2(0) = 0and w(0) = 1 which is the reference value of the state x1.It is shown in Fig. 8, 9 and 10 that the response of pro-

time[s]0 5 10 15

-0.5

0

0.5

1

1.5

2

2.5

x1x2inputreference

Figure 8 Responses of state and input of constrainednonlinear controller

posed method satisfies the acceleration constraints andcorrectly follows the reference and the proposed methodhas no overshoot and better response to the referencethan the PID controller.

4 Conclusion

In this paper, we proposed a nonlinear optimal con-troller and a nonlinear optimal servo controller designsfor systems with acceleration constraints. The nonlinear

time[s]0 5 10 15

-0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4

x1x2input*10-1

reference

Figure 9 Responses of state and input of constrainedPID controller

time [s]0 5 10 15

-0.15

-0.1

-0.05

0

0.05

0.1

0.15NLOSPIDSaturation

Figure 10 Response of acceleration of constrained non-linear and PID controllers

controllers were designed via stable manifold and center-stable manifold methods including Lagrange multiplierto satisfy acceleration constraints. We verified the effec-tiveness of the proposed methods on a magnetic levita-tion system and a numerical example.

References

[1] ISO 2631-1: Mechanical vibration and shock eval-uation of human exposure to whole body vibrationPart 1, General requirements Geneva InternationalOrganization for Standardization (1997)

[2] N. Sakamoto and A. J. van der Schaft: Analyticalapproximation methods for the stabilizing solutionof the Hamilton-Jacobi equation, IEEE Transactionson Automatica Control, 53-10, pp. 2335-2350 (2008)

[3] N. Sakamoto and B. Rehak: Iterative methods tocompute center and center-stable manifolds with ap-plication to the optimal output regulation problem:Proc. of the 50th Conference on Decision and Con-trol, Orlando, December, pp. 4640-4645 (2011)

[4] A. T. Tran and N. Sakamoto: A general frameworkfor constrained optimal control based on stable man-ifold method, 55th IEEE Conference on Decisionand Control (2016)