ce-lec06

Embed Size (px)

Citation preview

  • 8/13/2019 ce-lec06

    1/28

    Control Engineering

    Lecture# 629thMarch,2008

  • 8/13/2019 ce-lec06

    2/28

    State Variable Equations Computer-aided analysis and design of state

    variable models are done more easily on computers

    for high-order systems (differential equations of high

    orders.)

    More information (internal variables) are involved

    hence better control when needed.

    Design procedures that give the best control

    system are often based on state variable models.

    State variable models are required for digital

    simulation.

  • 8/13/2019 ce-lec06

    3/28

    State Variable Equations

  • 8/13/2019 ce-lec06

    4/28

    High order D.Eq. => T.F. => Signal Flow Graph

    (Simulation diagram) => State Variable Eqs.

  • 8/13/2019 ce-lec06

    5/28

  • 8/13/2019 ce-lec06

    6/28

  • 8/13/2019 ce-lec06

    7/28

  • 8/13/2019 ce-lec06

    8/28

    Review:

    State Variable Models

    This equation gives the position of y(t)as a function of force f(t).Suppose we

    also want information about the velocity.

  • 8/13/2019 ce-lec06

    9/28

    Review:

  • 8/13/2019 ce-lec06

    10/28

    Review:

    Where X(t) = state vector = (n by 1) vector of the

    states of an n-th order system.

    X(t) is the time derivative of the vector X(t)

    A = (n by n) system matrix

    B = (n by r) input matrix

    u(t) = input vector = (r by 1) vector of the systeminput functions

    Y(t) = output vector = (p by 1) vector of the

    defined outputs C = (p by n) output matrix

    D = (p by r) matrix representing direct coupling

    between input and output.

  • 8/13/2019 ce-lec06

    11/28

    State Diagram

  • 8/13/2019 ce-lec06

    12/28

    Review:

    Simulation diagram:

  • 8/13/2019 ce-lec06

    13/28

    Review:

    Signal flow graph from the above graph:

  • 8/13/2019 ce-lec06

    14/28

    More Example

  • 8/13/2019 ce-lec06

    15/28

    State variable equations:

    CXty

    BuAXX

    xbty

    uxaxaxaxax

    xx

    xxxx

    )(

    '

    )(

    '

    '

    ''

    10

    433221104

    43

    32

    21

  • 8/13/2019 ce-lec06

    16/28

    Review:

  • 8/13/2019 ce-lec06

    17/28

    Solutions of state equations:

  • 8/13/2019 ce-lec06

    18/28

  • 8/13/2019 ce-lec06

    19/28

    23

    1

    )(

    )()(

    2

    sssU

    sYsG

    An example:

    Note 1: The same transfer function can give different signal flowgraphs (see the signal flow graph here and the one 3 slides back.)

    Note 2: Different signal flow graphs may give different differential

    equations (compare the d.eqs. below with the d.eqs. 3 slides back.)

  • 8/13/2019 ce-lec06

    20/28

  • 8/13/2019 ce-lec06

    21/28

  • 8/13/2019 ce-lec06

    22/28

    Note 3: Although with different signal flow graphs anddifferent d.eqs. the final outcome (y(t)) is the same(compare the above solution for y(t)= here with the

    solution for y(t) given before, assuming all initial conditionsare zero.)

    )(1 tx

  • 8/13/2019 ce-lec06

    23/28

    More Examples:

  • 8/13/2019 ce-lec06

    24/28

    4321

    1

    43211

    34321143232

    343213

    1432

    2321

    43211

    )(

    1

    1

    GGGGsG

    GGGGM

    HGGGGHGGHGG

    HGGGGL

    HGGL

    HGGL

    GGGGP

  • 8/13/2019 ce-lec06

    25/28

    Another Example:

    N i l S l ti f th St t

  • 8/13/2019 ce-lec06

    26/28

    Numerical Solutions of the State

    Equations

    State equation: x(t) = Ax(t) + Bu(t)

    Let h= integration increment (or time-step)

    x(kh) = x[(k-1)h] + hx[(k-1)h] (1)

    x[(k-1)h] = Ax[(k-1)h] + Bu [(k-1)h] (2)

    Algorithm:

    1. k= 1

    2. Evaluate x[(k-1)h] as in (2)

    3. Evaluate x(kh) as in (1)

    4. k = k+1

    5. Go to step 2.

  • 8/13/2019 ce-lec06

    27/28

  • 8/13/2019 ce-lec06

    28/28