Misplaced Pages

Control theory: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 12:09, 10 June 2004 edit210.49.213.135 (talk) Try again for better link← Previous edit Revision as of 13:32, 10 June 2004 edit undo210.49.213.135 (talk) Not sure if this is of any use.Next edit →
Line 53: Line 53:
The ] of the ] representation is: The ] of the ] representation is:
: <math>a(s) = \operatorname{det}(sI - A)</math> : <math>a(s) = \operatorname{det}(sI - A)</math>

== Simple example of state space representation ==
Let's take the simplest possible example of the state space representation. Here we have a single input variable and a single output variable. Also the internal state of the system is only represented by a single variable.

<math>y(t)\,\!</math> <i>is the output variable</i>
<math>u(t)\,\!</math> <i>is the input variable</i>
<math>x(t)\,\!</math> <i>is the internal state variable</i>

Here the output <math>y(t)\,\!</math> is the result of a linear addition of the internal state <math>x(t)\,\!</math> with the linear addition of value of the input <math>u(t)\,\!</math>

<math>y(t) = C x(t) + D u(t)\,\!</math>

The internal state can have the following relationship with the input.

<math> {dx \over dt} = A x(t) + B u(t)</math>

Putting it together we have.

<math>\dot x(t) = A x(t) + B u(t)\,\!</math>
<math>y(t) = C x(t) + D u(t)\,\!</math>



== Controllability and observability == == Controllability and observability ==

Revision as of 13:32, 10 June 2004


This article is about an engineering theory called control theory. There is also a sociological theory of deviant behavior that is also called control theory.

In engineering, control theory deals with the behaviour of dynamical systems over time. The desired output of a system is called the reference variable. When one or more output variables of a system need to show a certain behaviour over time, a controller tries to manipulate the inputs of the system to realize this behaviour at the output of the system. See also process control.

Take for example cruise control. In this case, the system is a car. The goal of the cruise control is to keep it at a constant speed. So, the output variable of the system is the speed of the car. The primary means to control the speed of the car is the amount of gas being fed into the engine.

A simple way to implement cruise control is to lock the position of the gas pedal the moment the driver engages cruise control. This is fine if the car is driving on perfectly flat terrain. On hilly terrain, the car will accelerate when going downhill and slow down when going uphill; something its driver may find highly undesirable.

This type of controller is called an open-loop controller because there is no direct connection between the output of the system and its input. One of the main disadvantages of this type of controller is the sensitivity to the dynamics of the system under control.


Classical control theory

To avoid the problems of the open-loop controller, control theory introduces feedback. The output of the system y {\displaystyle y} is fed back to the reference value r {\displaystyle r} . The controller C {\displaystyle C} then takes the difference between the reference and the output, the error e {\displaystyle e} , to change the inputs u {\displaystyle u} to the system under control P {\displaystyle P} . This is shown in the figure. This kind of controller is a closed-loop controller or feedback controller.


A simple feedback control loop

If we assume the controller C {\displaystyle C} and the plant P {\displaystyle P} are linear, time-invariant and all single input, single output, we can analyse the system above by using the Laplace transform on the variables. This gives us the following relations:

Y ( s ) = P ( s ) U ( s ) {\displaystyle Y(s)=P(s)U(s)}
U ( s ) = C ( s ) E ( s ) {\displaystyle U(s)=C(s)E(s)}
E ( s ) = R ( s ) Y ( s ) {\displaystyle E(s)=R(s)-Y(s)}

Solving for Y ( s ) {\displaystyle Y(s)} in function of R ( s ) {\displaystyle R(s)} , we obtain:

Y ( s ) = P C 1 + P C R ( s ) {\displaystyle Y(s)={\frac {PC}{1+PC}}R(s)}

The term P C 1 + P C {\displaystyle {\frac {PC}{1+PC}}} is referred to as the transfer function of the system.

If we can ensure P C > > 1 {\displaystyle PC>\!\!>1} , then Y ( s ) R ( s ) {\displaystyle Y(s)\approx R(s)} .

This means we control the output by simply setting the reference.

State space representation

To get a coherent model for systems with multiple inputs and multiple outputs, we need a way to record every relation between any input variable and any output variable. With n {\displaystyle n} inputs and m {\displaystyle m} outputs, we have to write down m n {\displaystyle mn} Laplace transforms to encode all the information about a system. A more compact representation of a system is its state space representation using p {\displaystyle p} internal states:

x ˙ ( t ) = A x ( t ) + B u ( t ) {\displaystyle {\dot {\mathbf {x} }}(t)=A\mathbf {x} (t)+B\mathbf {u} (t)}
y ( t ) = C x ( t ) + D u ( t ) {\displaystyle \mathbf {y} (t)=C\mathbf {x} (t)+D\mathbf {u} (t)}

where

dim [ A ] = p × p {\displaystyle \operatorname {dim} =p\times p}
dim [ B ] = p × n {\displaystyle \operatorname {dim} =p\times n}
dim [ C ] = m × p {\displaystyle \operatorname {dim} =m\times p}
dim [ D ] = m × n {\displaystyle \operatorname {dim} =m\times n}
x ˙ ( t ) = d x ( t ) d t {\displaystyle {\dot {\mathbf {x} }}(t)={d\mathbf {x} (t) \over dt}} .

For simplicity, D {\displaystyle D} is often chosen to be the zero matrix.

The same representation Laplace transformed is:

s X ( s ) = A X ( s ) + B U ( s ) {\displaystyle sX(s)=AX(s)+BU(s)}
Y ( s ) = C X ( s ) + D U ( s ) {\displaystyle Y(s)=CX(s)+DU(s)}

The characteristic polynomial of the state space representation is:

a ( s ) = det ( s I A ) {\displaystyle a(s)=\operatorname {det} (sI-A)}

Simple example of state space representation

Let's take the simplest possible example of the state space representation. Here we have a single input variable and a single output variable. Also the internal state of the system is only represented by a single variable.


  
    
      
        y
        (
        t
        )
        
        
      
    
    {\displaystyle y(t)\,\!}
  
 is the output variable

  
    
      
        u
        (
        t
        )
        
        
      
    
    {\displaystyle u(t)\,\!}
  
 is the input variable

  
    
      
        x
        (
        t
        )
        
        
      
    
    {\displaystyle x(t)\,\!}
  
 is the internal state variable

Here the output y ( t ) {\displaystyle y(t)\,\!} is the result of a linear addition of the internal state x ( t ) {\displaystyle x(t)\,\!} with the linear addition of value of the input u ( t ) {\displaystyle u(t)\,\!}


  
    
      
        y
        (
        t
        )
        =
        C
        x
        (
        t
        )
        +
        D
        u
        (
        t
        )
        
        
      
    
    {\displaystyle y(t)=Cx(t)+Du(t)\,\!}
  

The internal state can have the following relationship with the input.


  
    
      
        
          
            
              d
              x
            
            
              d
              t
            
          
        
        =
        A
        x
        (
        t
        )
        +
        B
        u
        (
        t
        )
      
    
    {\displaystyle {dx \over dt}=Ax(t)+Bu(t)}
  

Putting it together we have.


  
    
      
        
          
            
              x
              ˙

            
          
        
        (
        t
        )
        =
        A
        x
        (
        t
        )
        +
        B
        u
        (
        t
        )
        
        
      
    
    {\displaystyle {\dot {x}}(t)=Ax(t)+Bu(t)\,\!}
  


  
    
      
        y
        (
        t
        )
        =
        C
        x
        (
        t
        )
        +
        D
        u
        (
        t
        )
        
        
      
    
    {\displaystyle y(t)=Cx(t)+Du(t)\,\!}
  


Controllability and observability

Controllability is a measure for the ability to use a system's external inputs to manipulate its internal state. Observability is a measure for how well internal states of a system can be inferred by knowledge of its external outputs. The observability and controllability of a system are mathematical duals.

See also: