Lecture#4 State Space Model

download Lecture#4 State Space Model

of 31

Transcript of Lecture#4 State Space Model

  • 7/27/2019 Lecture#4 State Space Model

    1/31

    Prof. Wahied GHARIEB

    EE455: Applied Control

    Lecture# 4

    State Space Model

  • 7/27/2019 Lecture#4 State Space Model

    2/31

    2 EE455: Applied Control

    Advantages of State Space Approach

    Classical Approach Modern Control Approach

    Transfer Function

    Linear Time Invariant

    System, SISO Laplace Transform,

    Frequency domain

    Only Input-output

    Description: Less DetailDescription on SystemDynamics

    State Variable Approach

    Linear Time Varying,

    Nonlinear, TimeInvariant, MIMO

    Time domain

    Detailed description of

    Internal behavior in

    addition to I-O

    properties

  • 7/27/2019 Lecture#4 State Space Model

    3/31

    3 EE455: Applied Control

    State Space Representation

    Select a particular subset of all possible independent

    system variables and call them state variables.

    For an nth-order system, write n simultaneous first-order differential equations in terms of state

    variables.

    If we know the initial conditions of all state variablesat t0 and the system input for tt0, we can solve the

    simultaneous differential equations for the state

    variables for tt0.

  • 7/27/2019 Lecture#4 State Space Model

    4/31

    4 EE455: Applied Control

    Concept of State Variable

    System variable: Any variable that responds to an input or initialconditions in a system.

    State variables: The smallest set of linearly independent system

    Variables.

    Sate vector: A vector whose elements are the state variables.

    State space: The n-dimensional space whose axes are the state variables.

    State equations: A set of n simultaneous, first-order differential equations

    with n variables, where the n variables to be solved are the state variables.

    Output equation: The algebraic equation that expresses the output

    variables of a system as linear combinations of the state variables and the

    inputs.

  • 7/27/2019 Lecture#4 State Space Model

    5/31

    5 EE455: Applied Control

    Dynamic System must involve elements that memorize

    the values of the input

    Integrators in CT serve as memory devices

    Outputs of integrators are considered as internal state

    variables of the dynamic system

    Number of state variables to completely define thedynamics of the system=number of integrators involved

    Concept of State Variable

  • 7/27/2019 Lecture#4 State Space Model

    6/31

    6 EE455: Applied Control

    State Space Model

    Input equation

    Output equation

  • 7/27/2019 Lecture#4 State Space Model

    7/31

    7 EE455: Applied Control

    State Space Model

    Most linear systems encountered are time-invariant: A, B,

    C, D are constant, i.e., dont depend on t

    Example: DC motor with constant coefficients

    when u(t) and y(t) are scalar, system is called single-

    input, single-output (SISO)

    when input & output signal dimensions are vectors,MIMO

    Example: Aircraft , Electrical power station

  • 7/27/2019 Lecture#4 State Space Model

    8/31

    8 EE455: Applied Control

    Mass-Spring-damper system

    Therefore, we define variable x1 andx2.

    )()()()(

    2

    2

    trtkydt

    tdyb

    dt

    tydM

    yx 1yx 2

    Dynamic equation of thesystem:

  • 7/27/2019 Lecture#4 State Space Model

    9/31

    9 EE455: Applied Control

    If the measured output of the system

    is position, then we have:

    In matrix form:

    General State-Space

    Model:

    Mass-Spring-damper system

  • 7/27/2019 Lecture#4 State Space Model

    10/31

    10 EE455: Applied Control

    Electrical System

  • 7/27/2019 Lecture#4 State Space Model

    11/31

    11 EE455: Applied Control

    RLC Circuit

  • 7/27/2019 Lecture#4 State Space Model

    12/31

    12 EE455: Applied Control

    RLC Circuit

  • 7/27/2019 Lecture#4 State Space Model

    13/31

    13 EE455: Applied Control

    RLC Circuit

    Example: Given the electric network, find a state-spacerepresentation. (Hint: state variables Vc and iL , output iR )

    )(/1

    0

    0/1

    /1)/(1

    tvLi

    v

    L

    CRC

    i

    v

    L

    C

    L

    C

    L

    C

    Ri

    vRi 0/1

  • 7/27/2019 Lecture#4 State Space Model

    14/31

    14 EE455: Applied Control

    Block Diagram of State Space model

    Time Invariant System

    A(t)= State MatrixB(t)= Input Matrix

    C(t)=Output Matrix

    D(t)=Direct Transmission Matrix

  • 7/27/2019 Lecture#4 State Space Model

    15/31

    15 EE455: Applied Control

    cx

    cx

    cx

    3

    2

    1

    1

    3213

    32

    21

    2492624

    xy

    rxxxx

    xx

    xx

    Transfer Function to State Space

  • 7/27/2019 Lecture#4 State Space Model

    16/31

    16 EE455: Applied Control

    Decomposed Transfer Function

  • 7/27/2019 Lecture#4 State Space Model

    17/31

    17 EE455: Applied Control

    Decomposed Transfer Function

  • 7/27/2019 Lecture#4 State Space Model

    18/31

    18 EE455: Applied Control

    State Space to Transfer Function

    DuCxy

    BuAxx

    Given the state and output equations

    Take the Laplace transform assuming zero initial conditions:

    (1)

    (2)

    Solving for in Eq. (1),

    or

    (3)Substituting Eq. (3) into Eq. (2) yields

    The transfer function is

    )()()(

    )()()(

    sss

    ssss

    DUCXY

    BUAXX

    )(sX

    )()()( sss BUXAI

    )()()(

    1

    sss BUAIX

    )()()()( 1 ssss DUBUAICY )(])([ 1 ss UDBAIC

    DBAICU

    Y 1)(

    )(

    )(s

    s

    s

  • 7/27/2019 Lecture#4 State Space Model

    19/31

    19 EE455: Applied Control

    Eigen Values

    Roots of Characteristics

    Equation

    Example

  • 7/27/2019 Lecture#4 State Space Model

    20/31

    20 EE455: Applied Control

    Diagonalization of nxn matrix

  • 7/27/2019 Lecture#4 State Space Model

    21/31

    21 EE455: Applied Control

    Diagonalization of nxn matrix

  • 7/27/2019 Lecture#4 State Space Model

    22/31

    22 EE455: Applied Control

    Diagonalization of nxn matrix

  • 7/27/2019 Lecture#4 State Space Model

    23/31

    23 EE455: Applied Control

    Diagonalization of nxn matrix

  • 7/27/2019 Lecture#4 State Space Model

    24/31

    24 EE455: Applied Control

    Diagonalization of nxn matrix

    Another approach using the eigenvectors:For distinct eigenvalues solve the equation

    Where i is the eigenvalues index

    iii PPA

    ]P......P[Pmatrixnnsformatiolinear traThe n21

  • 7/27/2019 Lecture#4 State Space Model

    25/31

    25 EE455: Applied Control

    Invariance of Eigenvalues

  • 7/27/2019 Lecture#4 State Space Model

    26/31

    26 EE455: Applied Control

    Free Response of State Space Model

    )()( tAxtxdtd

    By taking Laplace transform

    )0()()0()()(

    )()0()(

    1 xsxAsIsx

    sAxxsxs

    )()(

    )0()()(

    nxnmatrixtransitionstatet

    xttx

    By taking inverse Laplace transform

  • 7/27/2019 Lecture#4 State Space Model

    27/31

    27 EE455: Applied Control

    Free Response of State Space Model

    (t)compute,4-3-

    10

    A

    1)()( AsIs

    1

    4-3-

    10

    s0

    0)(

    ss

    1

    4s3

    1-)(

    ss

  • 7/27/2019 Lecture#4 State Space Model

    28/31

    28 EE455: Applied Control

    Free Response of State Space Model

    s3-

    14

    3)4(

    1)( s

    sss

    (s))(

    (s))(

    2221

    1211

    s

    s

    3

    5.0

    1

    5.1

    )1)(3(

    4)(

    11

    ssss

    ss

    3

    5.0

    1

    5.0

    )1)(3(

    1)(12

    sssss

  • 7/27/2019 Lecture#4 State Space Model

    29/31

    29 EE455: Applied Control

    Free Response of State Space Model

    35.1

    15.1

    )1)(3(3)(21

    ssss

    s

    3

    5.1

    1

    5.0

    )1)(3()(22

    ssss

    ss

    )e1.55.0()e1.55.1(

    )e0.5-5.0()e0.5-5.1()(

    3t-3t-

    -3t-3t

    tt

    tt

    ee

    eet

    )0()()( xttx

  • 7/27/2019 Lecture#4 State Space Model

    30/31

    30 EE455: Applied Control

    Forced Response of state space model

    )()()( tButAxtxdtd

    By taking Laplace transform

    )()()0()()(

    )()()0()()(

    )()()0()(

    11

    sBusxssx

    sBuAsIxAsIsx

    sBusAxxsxs

    t

    t

    dButxttx

    dtBuxttx

    0

    0

    )()()0()()(

    )()()0()()(

    By taking inverse

    Laplace transform

  • 7/27/2019 Lecture#4 State Space Model

    31/31

    31 EE455: Applied Control

    Forced Response of state space model

    1

    0

    (0)x

    (0)x,

    1

    0B,

    4-3-

    10

    2

    1A

    Free response

    tt

    tt

    eetx

    eetx

    32

    3

    1

    5.15.0)(

    5.05.0)(

    Forced response

    t

    t

    tt

    t

    t

    tt

    edeetx

    edeetx

    3

    0

    )(3)(

    2

    3

    0

    )(3)(

    1

    ]5.15.0[)(

    )1(3

    1]5.05.0[)(

    Complete response = free response + forced response