SlideShare a Scribd company logo
Caribbean Maritime University
Advanced Control – M60AC
Dr. Milton T. Richardson
Email: dr.mtrichardson@gmail.com
Mobile: 469-5940
State Space Representation
Outline
• How to find mathematical model, called a state-
space representation, for a linear, time-invariant
system
• How to convert between transfer function and
state space models
State Variables
• Definition: State variables are variables that collectively
describe the internal state of a dynamic system. They
encapsulate all relevant information needed to predict the
future behavior of the system.
• Examples: In mechanical systems, state variables could
include position, velocity, and acceleration. In electrical
circuits, they might represent voltage and current across
different components.
• Significance: State variables are essential for modeling and
understanding the behavior of dynamic systems. They serve
as the foundation for state space representation.
State Equations:
• Definition: State equations are mathematical equations that
describe how the state variables of a system evolve over time.
They capture the system's dynamics in terms of its state
variables and inputs.
• Formulation: State equations are typically expressed as a set
of first-order ordinary differential equations for continuous-
time systems or difference equations for discrete-time
systems.
• Example: For a simple mechanical system, state equations
might describe how position, velocity, and acceleration
change over time in response to applied forces.
Components of State Space
Representation:
• State Vector (x): A column vector containing all the state variables
of the system. It represents the system's current state at any given
time.
• State Equation (x˙=f(x,u)): Describes the time rate of change of the
state vector. It's a function of the state vector x and the input
vector u.
• Input (u): Represents the external influences or control inputs
applied to the system. Inputs can affect the system's state
evolution.
• Output (y): The measurable quantities or signals produced by the
system. Outputs are often related to the state variables through
output equations.
Advantages of State Space
Representation:
• Unified Framework: State space provides a unified framework
for modeling diverse systems, including linear and nonlinear
systems, discrete-time and continuous-time systems, and SISO
and MIMO systems.
• Flexibility: It can handle complex systems with multiple inputs,
outputs, and state variables, making it suitable for a wide
range of engineering applications.
• System Analysis and Control Design: State space
representation facilitates system analysis, stability analysis, and
control design, enabling engineers to design advanced
controllers.
• Insight into System Dynamics: State space representation
offers insights into the dynamic behavior of systems, including
stability, controllability, observability, and transient response.
Applications of State Space
Representation:
• Control Systems: Widely used in designing and analyzing
feedback control systems, including PID controllers, state
feedback controllers, and observers.
• Robotics: Employed in modeling the dynamics of robotic
systems, such as robot arms, manipulators, and mobile
robots, enabling precise control and motion planning.
• Aerospace: Crucial for modeling and controlling aircraft,
spacecraft, and satellites, ensuring stable flight and
precise maneuvering.
• Electrical Engineering: Used in modeling electrical
circuits, power systems, and electronic control systems,
facilitating efficient energy management and control.
9
State-Space Modeling
• Alternative method of modeling a system than
▫ Differential / difference equations
▫ Transfer functions
• Uses matrices and vectors to represent the system
parameters and variables
• In control engineering, a state space
representation is a mathematical model of a
physical system as a set of input, output and state
variables related by first-order differential equations.
To abstract from the number of inputs, outputs and
states, the variables are expressed as vectors.
10
Motivation for State-Space Modeling
• Easier for computers to perform matrix algebra
▫ e.g. MATLAB does all computations as matrix math
• Handles multiple inputs and outputs
• Provides more information about the system
▫ Provides knowledge of internal variables (states)
Primarily used in complicated, large-scale
systems
Definitions
• State- The state of a dynamic system is the
smallest set of variables (called state variables)
such that knowledge of these variables at t=t0 ,
together with knowledge of the input for t ≥ t0 ,
completely determines the behavior of the
system for any time t to t0 .
• Note that the concept of state is by no means
limited to physical systems. It is applicable to
biological systems, economic systems, social
systems, and others.
State Variables or Phase Variables:
• The state variables of a dynamic system are the
variables making up the smallest set of variables
that determine the state of the dynamic system.
• If at least n variables x1, x2, …… , xn are needed
to completely describe the behavior of a
dynamic system (so that once the input is given
for t ≥ t0 and the initial state at t=t0 is specified,
the future state of the system is completely
determined), then such n variables are a set of
state variables.
State Vector:
• A vector whose elements are the state variables.
• If n state variables are needed to completely
describe the behavior of a given system, then
these n state variables can be considered the n
components of a vector x. Such a vector is called
a state vector.
• A state vector is thus a vector that determines
uniquely the system state x(t) for any time t≥ t0,
once the state at t=t0 is given and the input u(t)
for t ≥ t0 is specified.
State Space:
• The n-dimensional space whose coordinate axes
consist of the x1 axis, x2 axis, ….., xn axis, where
x1, x2,…… , xn are state variables, is called a
state space.
• "State space" refers to the space whose axes are
the state variables. The state of the system can
be represented as a vector within that space.
• State-Space Equations. In state-space analysis
we are concerned with three types of variables
that are involved in the modeling of dynamic
systems: input variables, output variables, and
state variables.
• The number of state variables to completely
define the dynamics of the system is equal to the
number of integrators involved in the system.
• Assume that a multiple-input, multiple-output
system involves n integrators. Assume also that
there are r inputs u1(t), u2(t),……. ur(t) and m
outputs y1(t), y2(t), …….. ym(t).
• Define n outputs of the integrators as state variables:
x1(t), x2(t), ……… xn(t). Then the system may be
described by
• The outputs y1(t), y2(t), ……… ym(t) of the
system may be given by
• If we define
• then Equations (2–8) and (2–9) become
• where Equation (2–10) is the state equation and
Equation (2–11) is the output equation. If vector
functions f and/or g involve time t explicitly, then the
system is called a time varying system.
• If Equations (2–10) and (2–11) are linearized
about the operating state, then we have the
following linearized state equation and output
equation:
• A(t) is called the state matrix,
• B(t) the input matrix,
• C(t) the output matrix, and
• D(t) the direct transmission matrix.
• A block diagram representation of Equations (2–12) and (2–
13) is shown in Figure
Multivariable linear system (MIMO)
Representation of Bu
Ax
x 




dt
x

x x
Bu
+

A
+
State representation of a linear system
D


A
B
x
u

x
Bu
Ax
x 


C 
y
Du
Cx
y 

A= System Matrix(n,n)
B= Input Matrix (n,m)
x= State Vector (n,1)
u= Input Vector (m,1)
C= Output Matrix (r,n)
D= Direct Transmission Matrix (r,m)
y= Output Vector (r,1)
• If vector functions f and g do not involve time t
explicitly then the system is called a time-
invariant system. In this case, Equations (2–12)
and (2–13) can be simplified to
•Equation (2–14) is the state equation of the
linear, time-invariant system and
•Equation (2–15) is the output equation for the
same system.
State-space Representation
• One advantage of the state-space representation
is that it can be used for the simulation of
physical systems on the digital computer,
25
Consider the differential
equation
CHOOSING STATE VARIABLES
26
DIFFERENTIATING BOTH SIDES
• Differentiating both sides yields :
27
STATE EQUATIONS
• The state equations are evaluated as :
28
VECTOR MATRIX FORM
• The state equations are evaluated as :
29
Mechanical System
 For mechanical system, the basic building block
are springs, dashpots and masses.
Mechanical System
1. Example: Spring-Mass-Damper
State Space
Representation
Differential Equations
• Example: Springer-mass-damper system
• Assumption: Wall friction is a viscous force.
The time function of
r(t) sometimes
called forcing
function
Linearly proportional
to the velocity
)
(
)
( t
bv
t
f 

Differential Equations
• Example: Springer-mass-damper system
• Newton’s 2nd
Law:
)
(
)
(
)
(
)
( t
Ma
t
r
t
ky
t
bv 



)
(
)
(
)
(
)
(
2
2
t
r
t
ky
dt
t
dy
b
dt
t
y
d
M 


Correlation Between Transfer
Functions and State-Space Equations
• The "transfer function" of a continuous time-
invariant linear state-space model can be derived
in the following way:
First, taking the Laplace transform of
Yields
CMU Advanced Controls M60AC Lesson #2.ppt
CMU Advanced Controls M60AC Lesson #2.ppt
Transition matrix Bu
Ax
x 


Assuming that the system is continuous and linear
that A and B are time-invariant and
Using Laplace transform
)
s
(
BU
)
s
(
AX
)
0
(
x
)
s
(
sX 


)
s
(
BU
)
0
(
x
)
s
(
X
)
A
sI
( 


)]
s
(
BU
)
0
(
x
[
)
A
sI
(
)
s
(
X 1


 
Taking the inverse Laplace transform of resolvent matrix
]
)
A
sI
[(
L
)
t
( 1
1 




Transition matrix
Transition matrix
The state vector will take the following form (convolution)
 


t
0
d
)
(
Bu
)
t
(
)
0
(
x
)
t
(
)
t
(
x 




Or more generally
 



t
t
0
0
d
)
(
Bu
)
t
(
)
0
(
x
)
t
t
(
)
t
(
x 




The output vector will take the following form
Assuming that C and D are time-invariant
)
t
(
Du
)
t
(
Cx
)
t
(
y 

Transition matrix
Properties of the transition matrix
n
Akt
k
At
k
I
)
0
(
)
kt
(
e
)
e
(
)
t
(







]
)
A
sI
[(
L
)
t
( 1
1 


































nn
ni
2
n
1
n
in
ii
2
i
1
i
n
2
i
2
22
21
n
1
i
1
12
11
a
s
a
a
a
a
a
s
a
a
a
a
a
s
a
a
a
a
a
s
)
A
sI
(
The resolvent matrix
EXAMPLE
Convert the state and output equations shown
below to a transfer function.
40
SOLUTION
41
SOLUTION
42
Therefore, the transfer function is
EXERCISE
Convert the state and output equations shown
below to a transfer function.
43
EXERCISE
Convert the state and output equations shown
below to a transfer function.
44
EXAMPLE
SOLUTION
46
SOLUTION (CONT.)
Thank you very much for your
attention
48

More Related Content

PPT
State Space Representation of Mechanical System
PPT
lecture1 (9).ppt
PPT
lecture19-2xwwdver21119095256-7ef20eb1.ppt
PPSX
linear algebra in control systems
PPTX
State_Space_Analysis_1619594468768 (1).pptx
PPTX
lecture_11-12_modern_control_theory.pptx
PPT
UNIT-V-PPT state space of system model .ppt
PPT
Introduction
State Space Representation of Mechanical System
lecture1 (9).ppt
lecture19-2xwwdver21119095256-7ef20eb1.ppt
linear algebra in control systems
State_Space_Analysis_1619594468768 (1).pptx
lecture_11-12_modern_control_theory.pptx
UNIT-V-PPT state space of system model .ppt
Introduction

Similar to CMU Advanced Controls M60AC Lesson #2.ppt (20)

PPTX
INTRODUCTION TO STATE SPACE ANALYSIS basic
PPTX
State space analysis.pptx
PDF
State space analysis-1-43.pdf state space
PPTX
Introduction to mathematical control theory - Dr. Purnima Pandit
PPT
14599404.ppt
PDF
State space courses
PPTX
STATE_SPACE_ANALYSIS.final.pptx FOR ENGINEERING STUDENTS
PDF
BEC- 26 control systems_unit-II
PDF
STATE_SPACE_ANALYSIS.pdf
PDF
STATE_SPACE_ANALYSIs STATE_SPACE_ANALYSIs
PPTX
PPT on STATE VARIABLE ANALYSIS for Engineering.pptx
PDF
ACAFT_L02_Control System Analysis in StateSpace.pdf
PPT
lecture1ddddgggggggggggghhhhhhh (11).ppt
PPTX
Unit-6.pptx of control system and engineering
PDF
Week_2.pdf State Variable Modeling, State Space Equations
PDF
2.time domain analysis of lti systems
PPTX
lecture_1__2-introduction to Control Systems.pptx
PPTX
State equations for physical systems
PDF
solver (1)
PPT
Chapter_3_State_Variable_Models.ppt
INTRODUCTION TO STATE SPACE ANALYSIS basic
State space analysis.pptx
State space analysis-1-43.pdf state space
Introduction to mathematical control theory - Dr. Purnima Pandit
14599404.ppt
State space courses
STATE_SPACE_ANALYSIS.final.pptx FOR ENGINEERING STUDENTS
BEC- 26 control systems_unit-II
STATE_SPACE_ANALYSIS.pdf
STATE_SPACE_ANALYSIs STATE_SPACE_ANALYSIs
PPT on STATE VARIABLE ANALYSIS for Engineering.pptx
ACAFT_L02_Control System Analysis in StateSpace.pdf
lecture1ddddgggggggggggghhhhhhh (11).ppt
Unit-6.pptx of control system and engineering
Week_2.pdf State Variable Modeling, State Space Equations
2.time domain analysis of lti systems
lecture_1__2-introduction to Control Systems.pptx
State equations for physical systems
solver (1)
Chapter_3_State_Variable_Models.ppt
Ad

Recently uploaded (20)

PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Digital Logic Computer Design lecture notes
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
composite construction of structures.pdf
PPTX
Welding lecture in detail for understanding
PPT
Mechanical Engineering MATERIALS Selection
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CYBER-CRIMES AND SECURITY A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
OOP with Java - Java Introduction (Basics)
Digital Logic Computer Design lecture notes
CH1 Production IntroductoryConcepts.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Foundation to blockchain - A guide to Blockchain Tech
R24 SURVEYING LAB MANUAL for civil enggi
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
composite construction of structures.pdf
Welding lecture in detail for understanding
Mechanical Engineering MATERIALS Selection
bas. eng. economics group 4 presentation 1.pptx
Geodesy 1.pptx...............................................
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Ad

CMU Advanced Controls M60AC Lesson #2.ppt

  • 1. Caribbean Maritime University Advanced Control – M60AC Dr. Milton T. Richardson Email: dr.mtrichardson@gmail.com Mobile: 469-5940
  • 3. Outline • How to find mathematical model, called a state- space representation, for a linear, time-invariant system • How to convert between transfer function and state space models
  • 4. State Variables • Definition: State variables are variables that collectively describe the internal state of a dynamic system. They encapsulate all relevant information needed to predict the future behavior of the system. • Examples: In mechanical systems, state variables could include position, velocity, and acceleration. In electrical circuits, they might represent voltage and current across different components. • Significance: State variables are essential for modeling and understanding the behavior of dynamic systems. They serve as the foundation for state space representation.
  • 5. State Equations: • Definition: State equations are mathematical equations that describe how the state variables of a system evolve over time. They capture the system's dynamics in terms of its state variables and inputs. • Formulation: State equations are typically expressed as a set of first-order ordinary differential equations for continuous- time systems or difference equations for discrete-time systems. • Example: For a simple mechanical system, state equations might describe how position, velocity, and acceleration change over time in response to applied forces.
  • 6. Components of State Space Representation: • State Vector (x): A column vector containing all the state variables of the system. It represents the system's current state at any given time. • State Equation (x˙=f(x,u)): Describes the time rate of change of the state vector. It's a function of the state vector x and the input vector u. • Input (u): Represents the external influences or control inputs applied to the system. Inputs can affect the system's state evolution. • Output (y): The measurable quantities or signals produced by the system. Outputs are often related to the state variables through output equations.
  • 7. Advantages of State Space Representation: • Unified Framework: State space provides a unified framework for modeling diverse systems, including linear and nonlinear systems, discrete-time and continuous-time systems, and SISO and MIMO systems. • Flexibility: It can handle complex systems with multiple inputs, outputs, and state variables, making it suitable for a wide range of engineering applications. • System Analysis and Control Design: State space representation facilitates system analysis, stability analysis, and control design, enabling engineers to design advanced controllers. • Insight into System Dynamics: State space representation offers insights into the dynamic behavior of systems, including stability, controllability, observability, and transient response.
  • 8. Applications of State Space Representation: • Control Systems: Widely used in designing and analyzing feedback control systems, including PID controllers, state feedback controllers, and observers. • Robotics: Employed in modeling the dynamics of robotic systems, such as robot arms, manipulators, and mobile robots, enabling precise control and motion planning. • Aerospace: Crucial for modeling and controlling aircraft, spacecraft, and satellites, ensuring stable flight and precise maneuvering. • Electrical Engineering: Used in modeling electrical circuits, power systems, and electronic control systems, facilitating efficient energy management and control.
  • 9. 9 State-Space Modeling • Alternative method of modeling a system than ▫ Differential / difference equations ▫ Transfer functions • Uses matrices and vectors to represent the system parameters and variables • In control engineering, a state space representation is a mathematical model of a physical system as a set of input, output and state variables related by first-order differential equations. To abstract from the number of inputs, outputs and states, the variables are expressed as vectors.
  • 10. 10 Motivation for State-Space Modeling • Easier for computers to perform matrix algebra ▫ e.g. MATLAB does all computations as matrix math • Handles multiple inputs and outputs • Provides more information about the system ▫ Provides knowledge of internal variables (states) Primarily used in complicated, large-scale systems
  • 11. Definitions • State- The state of a dynamic system is the smallest set of variables (called state variables) such that knowledge of these variables at t=t0 , together with knowledge of the input for t ≥ t0 , completely determines the behavior of the system for any time t to t0 . • Note that the concept of state is by no means limited to physical systems. It is applicable to biological systems, economic systems, social systems, and others.
  • 12. State Variables or Phase Variables: • The state variables of a dynamic system are the variables making up the smallest set of variables that determine the state of the dynamic system. • If at least n variables x1, x2, …… , xn are needed to completely describe the behavior of a dynamic system (so that once the input is given for t ≥ t0 and the initial state at t=t0 is specified, the future state of the system is completely determined), then such n variables are a set of state variables.
  • 13. State Vector: • A vector whose elements are the state variables. • If n state variables are needed to completely describe the behavior of a given system, then these n state variables can be considered the n components of a vector x. Such a vector is called a state vector. • A state vector is thus a vector that determines uniquely the system state x(t) for any time t≥ t0, once the state at t=t0 is given and the input u(t) for t ≥ t0 is specified.
  • 14. State Space: • The n-dimensional space whose coordinate axes consist of the x1 axis, x2 axis, ….., xn axis, where x1, x2,…… , xn are state variables, is called a state space. • "State space" refers to the space whose axes are the state variables. The state of the system can be represented as a vector within that space.
  • 15. • State-Space Equations. In state-space analysis we are concerned with three types of variables that are involved in the modeling of dynamic systems: input variables, output variables, and state variables. • The number of state variables to completely define the dynamics of the system is equal to the number of integrators involved in the system. • Assume that a multiple-input, multiple-output system involves n integrators. Assume also that there are r inputs u1(t), u2(t),……. ur(t) and m outputs y1(t), y2(t), …….. ym(t).
  • 16. • Define n outputs of the integrators as state variables: x1(t), x2(t), ……… xn(t). Then the system may be described by
  • 17. • The outputs y1(t), y2(t), ……… ym(t) of the system may be given by
  • 18. • If we define
  • 19. • then Equations (2–8) and (2–9) become • where Equation (2–10) is the state equation and Equation (2–11) is the output equation. If vector functions f and/or g involve time t explicitly, then the system is called a time varying system.
  • 20. • If Equations (2–10) and (2–11) are linearized about the operating state, then we have the following linearized state equation and output equation:
  • 21. • A(t) is called the state matrix, • B(t) the input matrix, • C(t) the output matrix, and • D(t) the direct transmission matrix. • A block diagram representation of Equations (2–12) and (2– 13) is shown in Figure
  • 22. Multivariable linear system (MIMO) Representation of Bu Ax x      dt x  x x Bu +  A +
  • 23. State representation of a linear system D   A B x u  x Bu Ax x    C  y Du Cx y   A= System Matrix(n,n) B= Input Matrix (n,m) x= State Vector (n,1) u= Input Vector (m,1) C= Output Matrix (r,n) D= Direct Transmission Matrix (r,m) y= Output Vector (r,1)
  • 24. • If vector functions f and g do not involve time t explicitly then the system is called a time- invariant system. In this case, Equations (2–12) and (2–13) can be simplified to •Equation (2–14) is the state equation of the linear, time-invariant system and •Equation (2–15) is the output equation for the same system.
  • 25. State-space Representation • One advantage of the state-space representation is that it can be used for the simulation of physical systems on the digital computer, 25 Consider the differential equation
  • 27. DIFFERENTIATING BOTH SIDES • Differentiating both sides yields : 27
  • 28. STATE EQUATIONS • The state equations are evaluated as : 28
  • 29. VECTOR MATRIX FORM • The state equations are evaluated as : 29
  • 30. Mechanical System  For mechanical system, the basic building block are springs, dashpots and masses.
  • 31. Mechanical System 1. Example: Spring-Mass-Damper State Space Representation
  • 32. Differential Equations • Example: Springer-mass-damper system • Assumption: Wall friction is a viscous force. The time function of r(t) sometimes called forcing function Linearly proportional to the velocity ) ( ) ( t bv t f  
  • 33. Differential Equations • Example: Springer-mass-damper system • Newton’s 2nd Law: ) ( ) ( ) ( ) ( t Ma t r t ky t bv     ) ( ) ( ) ( ) ( 2 2 t r t ky dt t dy b dt t y d M   
  • 34. Correlation Between Transfer Functions and State-Space Equations • The "transfer function" of a continuous time- invariant linear state-space model can be derived in the following way: First, taking the Laplace transform of Yields
  • 37. Transition matrix Bu Ax x    Assuming that the system is continuous and linear that A and B are time-invariant and Using Laplace transform ) s ( BU ) s ( AX ) 0 ( x ) s ( sX    ) s ( BU ) 0 ( x ) s ( X ) A sI (    )] s ( BU ) 0 ( x [ ) A sI ( ) s ( X 1     Taking the inverse Laplace transform of resolvent matrix ] ) A sI [( L ) t ( 1 1      Transition matrix
  • 38. Transition matrix The state vector will take the following form (convolution)     t 0 d ) ( Bu ) t ( ) 0 ( x ) t ( ) t ( x      Or more generally      t t 0 0 d ) ( Bu ) t ( ) 0 ( x ) t t ( ) t ( x      The output vector will take the following form Assuming that C and D are time-invariant ) t ( Du ) t ( Cx ) t ( y  
  • 39. Transition matrix Properties of the transition matrix n Akt k At k I ) 0 ( ) kt ( e ) e ( ) t (        ] ) A sI [( L ) t ( 1 1                                    nn ni 2 n 1 n in ii 2 i 1 i n 2 i 2 22 21 n 1 i 1 12 11 a s a a a a a s a a a a a s a a a a a s ) A sI ( The resolvent matrix
  • 40. EXAMPLE Convert the state and output equations shown below to a transfer function. 40
  • 43. EXERCISE Convert the state and output equations shown below to a transfer function. 43
  • 44. EXERCISE Convert the state and output equations shown below to a transfer function. 44
  • 48. Thank you very much for your attention 48