• Tidak ada hasil yang ditemukan

State space modeling ̇( ) = ( ) + ( )

N/A
N/A
Protected

Academic year: 2024

Membagikan "State space modeling ̇( ) = ( ) + ( )"

Copied!
5
0
0

Teks penuh

(1)

1 | P a g e Umm Al-Qura Universtiy, Makkah

Advanced Control Systems (802607) Term 1: 2021/2022

Solution Homework 10 Dr. Waheed Ahmad Younis

Do not submit this homework. There will be a quiz from this homework on Wednesday, 08 Dec 2021.

Topics covered in this week:

• State space modeling

𝑥̇(𝑡) = 𝐴 𝑥(𝑡) + 𝐵 𝑢(𝑡) 𝑥(𝑡0) = 𝑥0 𝑦(𝑡) = 𝐶 𝑥(𝑡) + 𝐷 𝑢(𝑡)

• Solution of state equation

o Consider a simple (scalar, no input case) 𝑥̇(𝑡) = 𝑎 𝑥(𝑡) 𝑥(𝑡0) = 𝑥0 The solution is:

𝑥(𝑡) = 𝑥0𝑒𝑎(𝑡−𝑡0)

o Now consider (vector, no input case) 𝑥̇(𝑡) = 𝐴 𝑥(𝑡) 𝑥(𝑡0) = 𝑥0 The solution is:

𝑥(𝑡) = 𝑥0𝑒𝐴(𝑡−𝑡0) where 𝑒𝐴𝑡 = ∑ 1

𝑘!𝐴𝑘𝑡𝑘

𝑘=0

o State transition matrix Φ(𝑡, 𝑡0) = 𝑒𝐴(𝑡−𝑡0)

_____________________________________________________________________________________

Q1. Consider a general 3rd order differential equation of the form

𝑦⃛(𝑡) + 𝑎2𝑦̈(𝑡) + 𝑎1𝑦̇(𝑡) + 𝑎0𝑦(𝑡) = 𝑏0 𝑢(𝑡) Write its state-space description.

Solution:

Taking Laplace transform of the given equation

𝑠3𝑌(𝑠) + 𝑎2𝑠2𝑌(𝑠) + 𝑎1𝑠𝑌(𝑠) + 𝑎0𝑌(𝑠) = 𝑏0𝑈(𝑠) [𝑠3+ 𝑎2𝑠2+ 𝑎1𝑠 + 𝑎0]𝑌(𝑠) = 𝑏0𝑈(𝑠)

𝐻(𝑠) =𝑌(𝑠)

𝑈(𝑠)= 𝑏0

𝑠3+ 𝑎2𝑠2+ 𝑎1𝑠 + 𝑎0 Let us define the state vector as

𝑥(𝑡) = [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡) ]

where 𝑥1(𝑡) = 𝑦(𝑡)

𝑥2(𝑡) = 𝑦̇(𝑡) = 𝑥1̇ (𝑡)

𝑥3(𝑡) = 𝑦̈(𝑡) = 𝑥1̈ (𝑡) = 𝑥2̇ (𝑡) ⇒ 𝑥3̇ (𝑡) = 𝑦⃛(𝑡) = −𝑎2𝑦̈(𝑡) − 𝑎1𝑦̇(𝑡) − 𝑎0𝑦(𝑡) + 𝑏0 𝑢(𝑡) = −𝑎2𝑥3(𝑡) − 𝑎1𝑥2(𝑡) − 𝑎0𝑥1(𝑡) + 𝑏0 𝑢(𝑡)

(2)

2 | P a g e [

𝑥1̇ (𝑡) 𝑥2̇ (𝑡) 𝑥3̇ (𝑡)

] = [

0 1 0

0 0 1

−𝑎0 −𝑎1 −𝑎2 ] [

𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [ 0 0 𝑏0

] 𝑢(𝑡)

𝑦(𝑡) = [1 0 0] [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [0]𝑢(𝑡)

Q2. Consider a more general case

𝑦⃛(𝑡) + 𝑎2𝑦̈(𝑡) + 𝑎1𝑦̇(𝑡) + 𝑎0𝑦(𝑡) = 𝑏2𝑢̈(𝑡) + 𝑏1𝑢̇(𝑡) + 𝑏0 𝑢(𝑡) Write its state-space description.

Solution:

Taking Laplace transform of the given equation

𝑠3𝑌(𝑠) + 𝑎2𝑠2𝑌(𝑠) + 𝑎1𝑠𝑌(𝑠) + 𝑎0𝑌(𝑠) = 𝑏2𝑠2𝑈(𝑠) + 𝑏1𝑠𝑈(𝑠) + 𝑏0𝑈(𝑠) [𝑠3+ 𝑎2𝑠2+ 𝑎1𝑠 + +𝑎0]𝑌(𝑠) = [𝑏2𝑠2+ 𝑏1𝑠 + 𝑏0]𝑈(𝑠)

𝐻(𝑠) =𝑌(𝑠)

𝑈(𝑠)= 𝑏2𝑠2+ 𝑏1𝑠 + 𝑏0 𝑠3+ 𝑎2𝑠2+ 𝑎1𝑠 + 𝑎0

Let us factor out the transfer function: 𝐻(𝑠) = 𝐻1(𝑠) 𝐻2(𝑠). Where 𝐻1(𝑠) =𝑊(𝑠)

𝑈(𝑠) = 1

𝑠3+𝑎2𝑠2+𝑎1𝑠++𝑎0 and 𝐻2(𝑠) = 𝑌(𝑠)

𝑊(𝑠)= 𝑏2𝑠2+ 𝑏1𝑠 + 𝑏0

[𝑠3+ 𝑎2𝑠2+ 𝑎1𝑠 + +𝑎0]𝑊(𝑠) = 𝑈(𝑠) and 𝑌(𝑠) = [𝑏2𝑠2+ 𝑏1𝑠 + 𝑏0]𝑊(𝑠)

𝑤⃛ (𝑡) + 𝑎2𝑤̈(𝑡) + 𝑎1𝑤̇(𝑡) + 𝑎0𝑤(𝑡) = 𝑢(𝑡) and 𝑦(𝑡) = 𝑏2𝑤̈(𝑡) + 𝑏1𝑤̇(𝑡) + 𝑏0 𝑤(𝑡) For the first system, let us define the state variables as

𝑥1(𝑡) = 𝑤(𝑡)

𝑥2(𝑡) = 𝑤̇(𝑡) = 𝑥1̇ (𝑡)

𝑥3(𝑡) = 𝑤̈(𝑡) = 𝑥1̈ (𝑡) = 𝑥2̇ (𝑡) ⇒ 𝑥3̇ (𝑡) = 𝑤⃛ (𝑡) = −𝑎2𝑤̈(𝑡) − 𝑎1𝑤̇(𝑡) − 𝑎0𝑤(𝑡) + 𝑢(𝑡) = −𝑎2𝑥3(𝑡) − 𝑎1𝑥2(𝑡) − 𝑎0𝑥1(𝑡) + 𝑢(𝑡)

[ 𝑥1̇ (𝑡) 𝑥2̇ (𝑡) 𝑥3̇ (𝑡)

] = [

0 1 0

0 0 1

−𝑎0 −𝑎1 −𝑎2 ] [

𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [ 0 0 1

] 𝑢(𝑡)

𝑤(𝑡) = [1 0 0] [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [0]𝑢(𝑡)

For the second system,

𝑦(𝑡) = 𝑏2𝑤̈(𝑡) + 𝑏1𝑤̇(𝑡) + 𝑏0 𝑤(𝑡) = 𝑏2𝑥3(𝑡) + 𝑏1𝑥2(𝑡) + 𝑏0 𝑥1(𝑡)

𝑦(𝑡) = [𝑏0 𝑏1 𝑏2] [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [0]𝑢(𝑡)

Hence, our final state-space model would be

(3)

3 | P a g e [

𝑥1̇ (𝑡) 𝑥2̇ (𝑡) 𝑥3̇ (𝑡)

] = [

0 1 0

0 0 1

−𝑎0 −𝑎1 −𝑎2 ] [

𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [ 0 0 1

] 𝑢(𝑡)

𝑦(𝑡) = [𝑏0 𝑏1 𝑏2] [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [0]𝑢(𝑡)

Q3. Write the state-space equations for the following transfer function a. 𝑌(𝑠)

𝑈(𝑠)= 1

𝑠2+2𝑠+6

b. 𝑈(𝑠)𝑌(𝑠)= 𝑠+3

𝑠2+2𝑠+6

c. 𝑈(𝑠)𝑌(𝑠)= 10

𝑠3+𝟒𝑠2+8𝑠+6

d. 𝑌(𝑠)

𝑈(𝑠)= 𝑠2+4𝑠+6

𝑠4+𝟏𝟎𝑠3+𝟏𝟏𝑠2+44𝑠+66

Solution:

a. [𝑥1̇ (𝑡)

𝑥2̇ (𝑡)] = [ 0 1

−6 −2] [𝑥1(𝑡) 𝑥2(𝑡)] + [0

1] 𝑢(𝑡) 𝑦(𝑡) = [1 0] [𝑥1(𝑡)

𝑥2(𝑡)] + [0]𝑢(𝑡) b. [𝑥1̇ (𝑡)

𝑥2̇ (𝑡)] = [ 0 1

−6 −2] [𝑥1(𝑡) 𝑥2(𝑡)] + [0

1] 𝑢(𝑡) 𝑦(𝑡) = [3 1] [𝑥1(𝑡)

𝑥2(𝑡)] + [0]𝑢(𝑡) c. [

𝑥1̇ (𝑡) 𝑥2̇ (𝑡) 𝑥3̇ (𝑡)

] = [

0 1 0

0 0 1

−6 −8 −4 ] [

𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [ 0 0 10

] 𝑢(𝑡)

𝑦(𝑡) = [1 0 0] [ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡)

] + [0]𝑢(𝑡)

d.

[ 𝑥1̇ (𝑡) 𝑥2̇ (𝑡) 𝑥3̇ (𝑡) 𝑥4̇ (𝑡)]

= [

0 1 0 0

0 0 1 0

0 0

−66 −44

0 1

−11 10 ]

[ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡) 𝑥4(𝑡)]

+ [ 0 0 0 1

] 𝑢(𝑡)

𝑦(𝑡) = [6 4 1 0]

[ 𝑥1(𝑡) 𝑥2(𝑡) 𝑥3(𝑡) 𝑥4(𝑡)]

+ [0]𝑢(𝑡)

Q4. Find the transfer function for the following state-space equations

a. [𝑥1̇ (𝑡)

𝑥2̇ (𝑡)] = [ 0 1

−6 −2] [𝑥1(𝑡) 𝑥2(𝑡)] + [0

1] 𝑢(𝑡) 𝑦(𝑡) = [1 0] [𝑥1(𝑡)

𝑥2(𝑡)] + [0]𝑢(𝑡) b. [𝑥1̇ (𝑡)

𝑥2̇ (𝑡)] = [ 0 1

−6 −2] [𝑥1(𝑡) 𝑥2(𝑡)] + [0

1] 𝑢(𝑡)

(4)

4 | P a g e 𝑦(𝑡) = [3 1] [𝑥1(𝑡)

𝑥2(𝑡)] + [0]𝑢(𝑡) Solution:

a. 𝑌(𝑠) = [𝐶(𝑠𝐼 − 𝐴)−1𝐵 + 𝐷]𝑈(𝑠) (𝑠𝐼 − 𝐴)−1= {[𝑠 0

0 𝑠] − [ 0 1

−6 −2]}

−1

= [𝑠 −1 6 𝑠 + 2]

−1

= [

𝑠+2 1

−6 𝑠] 𝑠(𝑠+2)+6= [

𝑠+2 1

−6 𝑠] 𝑠2+2𝑠+6 𝐶(𝑠𝐼 − 𝐴)−1𝐵 = [1 0][

𝑠+2 1

−6 𝑠] 𝑠2+2𝑠+6[0

1] = [𝑠+2 1]

𝑠2+2𝑠+6[0

1] = 1

𝑠2+2𝑠+6

𝑌(𝑠)

𝑈(𝑠)= 𝐶(𝑠𝐼 − 𝐴)−1𝐵 + 𝐷 = 1

𝑠2+2𝑠+6+ 0 = 1

𝑠2+2𝑠+6 b. 𝑌(𝑠) = [𝐶(𝑠𝐼 − 𝐴)−1𝐵 + 𝐷]𝑈(𝑠)

(𝑠𝐼 − 𝐴)−1= {[𝑠 0

0 𝑠] − [ 0 1

−6 −2]}

−1

= [𝑠 −1 6 𝑠 + 2]

−1

= [

𝑠+2 1

−6 𝑠] 𝑠(𝑠+2)+6= [

𝑠+2 1

−6 𝑠] 𝑠2+2𝑠+6 𝐶(𝑠𝐼 − 𝐴)−1𝐵 = [3 1][

𝑠+2 1

−6 𝑠] 𝑠2+2𝑠+6[0

1] = [3(𝑠+2)−6 3+𝑠]

𝑠2+2𝑠+6 [0

1] = 𝑠+3

𝑠2+2𝑠+6

𝑌(𝑠)

𝑈(𝑠)= 𝐶(𝑠𝐼 − 𝐴)−1𝐵 + 𝐷 = 𝑠+3

𝑠2+2𝑠+6+ 0 = 𝑠+3

𝑠2+2𝑠+6

Q5. Consider the 4 x 4 matrix

𝐴 = [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

]. Find 𝑒𝐴𝑡.

Solution:

𝐴2 = [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

] [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

] = [ 0 0 0 0

1 0 0 1 0 0

0 0

0 0 0 0 ]

𝐴3 = [ 0 0 0 0

1 0 0 1 0 0

0 0

0 0 0 0

] [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

] = [ 0 0 0 0

0 1 0 0 0 0

0 0

0 0 0 0 ]

𝐴4 = [ 0 0 0 0

0 1 0 0 0 0

0 0

0 0 0 0

] [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

] = [ 0 0 0 0

0 0 0 0 0 0

0 0

0 0 0 0 ]

𝑒𝐴𝑡 = ∑1 𝑘!𝐴𝑘𝑡𝑘

𝑘=0

= 𝐼 + 𝐴𝑡 +1

2𝐴2𝑡2 +1 6𝐴3𝑡3

= [ 1 0 0 1

0 0 0 0 0 0

0 0

1 0 0 1

] + [ 0 1 0 0

0 0 1 0 0 0

0 0

0 1 0 0

] 𝑡 +1 2[

0 0 0 0

1 0 0 1 0 0

0 0

0 0 0 0

] 𝑡2 +1 6[

0 0 0 0

0 1 0 0 0 0

0 0

0 0 0 0

] 𝑡3

(5)

5 | P a g e

= [ 1 𝑡 0 1

(1 2⁄ )𝑡2 (1 6⁄ )𝑡3 𝑡 (1 2⁄ )𝑡2 0 0

0 0

1 𝑡 0 1

]

Q6. Consider the n x n diagonal matrix

𝐴 = [

𝜆1 ⋯ 0

⋮ ⋱ ⋮

0 ⋯ 𝜆𝑛

]. Find 𝑒𝐴𝑡. Solution:

𝐴𝑘 = [

𝜆1𝑘 ⋯ 0

⋮ ⋱ ⋮

0 ⋯ 𝜆𝑛𝑘 ]

𝑒𝐴𝑡 = ∑1 𝑘!𝐴𝑘𝑡𝑘

𝑘=0

= ∑ 1 𝑘![

𝜆1𝑘 ⋯ 0

⋮ ⋱ ⋮

0 ⋯ 𝜆𝑛𝑘 ] 𝑡𝑘

𝑘=0

Contains infinite number of terms.

𝑒𝐴𝑡 =

[ ∑ 1

𝑘!𝜆1𝑘𝑡𝑘

𝑘=0

⋯ 0

⋮ ⋱ ⋮

0 ⋯ ∑ 1

𝑘!𝜆𝑛𝑘𝑡𝑘

𝑘=0 ]

= [

𝑒𝜆1𝑡 ⋯ 0

⋮ ⋱ ⋮

0 ⋯ 𝑒𝜆𝑛𝑡 ]

Referensi

Dokumen terkait

In this study we develop the program to generate linearized state space model of multimachine power systems that is necessary for the study of both small signal stability analysis,

Following McVittie [1], we write a general solution form, in terms of velocity potential, as a product of a function of time and a function of a similarity variable.. First, we find

A new Linear Time Varying LTV state space model is formulated for PLL to carry out stability analysis in harmonic frequency domain.. The state space model obtained for PLL is periodic

3 1.3 OBJECTIVES  To give a good comfort ride and a good car handling experience  To model quarter car system using state space  To design a suitable controller and for

Keywords: State Space Approach, Takagi-Sugeno Fuzzy Model, Nonlinear Control System, Rotary Inverted Pendulum, Rikitake System 1.. Introduction A fuzzy control system is a control

The consultation mechanism is not sufficient to be used as a media for space debris being more controlled because consultation is not mandatory for any state that will launch space

Write function headers for the following functions and indicate whether the function returns a value: ▪ Computing a sales commission, given the sales amount and the commission rate.. ▪

Keywords: Space; Fault; Responsibility; Liability; Damage INTRODUCTION State implements the activities of exploring and using outer space based on the provision of international