SlideShare une entreprise Scribd logo
1  sur  50
State Space Representation of
System
Dr.Ziad Saeed Mohammed
E .T .C-N.T.U
2019-2020
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
Modeling
3
Derive mathematical models for
• Electrical systems
• Mechanical systems
• Electromechanical system
Electrical Systems:
• Kirchhoff’s voltage & current laws
Mechanical systems:
• Newton’s laws
4
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.
5
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
State space model composed of 2 equations;
1. State equation
State
Space Model
2. Output equation
6
• A is called the state matrix,
• B the input matrix,
• C the output matrix, and
• D the direct transmission matrix.
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 to.
• 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:
• 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=to 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
• 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.
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
Example
26
Find state model of
System shown in the Fig.
Solution
• A practical approach is to assign the current in the inductor L, i(t), and
the voltage across the capacitor C, ec(t), as the state variables.
• The reason for this choice is because the state variables are directly
related to the energy-storage element of a system. The inductor stores
kinetic energy, and the capacitor stores electric potential energy.
• By assigning i(t) and ec(t) as state variables, we have a complete
description of the past history (via the initial states) and the present and
future states of the network.
Example
The state equation:
27
This format is also known as the state form if we set
OR
Example
28
write the state equations of the electric network shown in the Fig.
Solution: The state equations of the network are obtained by writing the
voltages across the inductors and the currents in the capacitor in terms of the three
state variables. The state equations are
Example
In vector-matrix form, the state equations are written as
29
Where
Example 3.1 P.138
PROBLEM: Given the electrical network of Figure shown, find
a state-space representation if the output is the current through
the resistor.
30
Solution
Select the state variables by writing the derivative equation for all energy storage
elements, that is, the inductor and the capacitor. Thus,
1
2
Example 3.1
Apply network theory, such as Kirchhoffs voltage and current
laws, to obtain ic and vL in terms of the state variables, vc and iL.
At Node 1,
31
which yields ic in terms of the state variables, vc and iL . Around the outer
loop,
3
4
Example 3.1
Substitute the results of Eqs. (3) and (4) into Eqs. (1) and (2) to
obtain the following state equations:
32
OR
Find the output eq. since the output is iR(t)
The final result for the state-space representation is
Example
33
Find the state eq. of the
mechanical system shown
Solution
Example 3.3 P.142
PROBLEM: Find the state equations for the translational
mechanical system shown in Figure.
34
Example 3.3 P.142
SOLUTION: First write the differential equations for the
network in Figure, using the methods of Chapter 2 to find the
Laplace-transformed equations of motion.
35
Example 3.3 P.142
36
In Vector Matrix
3.5 Converting a Transfer Function to State
Space
In the last section, we applied the state-space representation to
electrical and mechanical systems. We learn how to convert a
transfer function representation to a state-space representation in
this section.
One advantage of the state-space representation is that it can be
used for the simulation of physical systems on the digital
computer. Thus, if we want to simulate a system that is
represented by a transfer function, we must first convert the
transfer function representation to state space.
37
Converting T.F to S.S
• System modeling in state space can take on many
representations
• Although each of these models yields the same output for a
given input, an engineer may prefer a particular one for
several reasons.
• Another motive for choosing a particular set of state
variables and state-space model is ease of solution.
38
3.6 Converting from State Space to a
Transfer Function
•
39
Converting From S.S to T.F
•
40
CONTROLLABILITY:
Full-state feedback design commonly relies on pole-placement
techniques. It is important to note that a system must be completely
controllable and completely observable to allow the flexibility to place all
the closed-loop system poles arbitrarily. The concepts of controllability and
observability were introduced by Kalman in the 1960s.
A system is completely controllable if there exists an unconstrained
control u(t) that can transfer any initial state x(t0) to any other desired
location x(t) in a finite time, t0≤t≤T.
For the system
Bu
Ax
x 


we can determine whether the system is controllable by examining the
algebraic condition
  n
B
A
B
A
AB
B
rank 1
n
2



The matrix A is an nxn matrix an B is an nx1 matrix. For multi input systems,
B can be nxm, where m is the number of inputs.
For a single-input, single-output system, the controllability matrix Pc is
described in terms of A and B as
 
B
A
B
A
AB
B
P 1
n
2
c

 
which is nxn matrix. Therefore, if the determinant of Pc is nonzero, the system
is controllable.
Example:
Consider the system
   u
0
x
0
0
1
y
,
u
1
0
0
x
a
a
a
1
0
0
0
1
0
x
2
1
0




























 

















































1
2
2
2
2
2
2
1
0 a
a
a
1
B
A
,
a
1
0
AB
,
1
0
0
B
,
a
a
a
1
0
0
0
1
0
A
 
 














1
2
2
2
2
2
c
a
a
a
1
a
1
0
1
0
0
B
A
AB
B
P
The determinant of Pc =1 and ≠0 , hence this system is controllable.
Example.
Consider a system represented by the two state equations
1
2
2
1
1 x
d
x
3
x
,
u
x
2
x 




 

The output of the system is y=x2. Determine the condition of controllability.
   u
0
x
1
0
y
,
u
0
1
x
3
d
0
2
x 























 






























d
0
2
1
P
d
2
0
1
3
d
0
2
AB
and
0
1
B
c The determinant of pc is equal to d, which is
nonzero only when d is nonzero.
Dorf and Bishop, Modern Control Systems
OBSERVABILITY:
All the poles of the closed-loop system can be placed arbitrarily in the complex
plane if and only if the system is observable and controllable. Observability
refers to the ability to estimate a state variable.
A system is completely observable if and only if there exists a finite time T
such that the initial state x(0) can be determined from the
observation history y(t) given the control u(t).
Cx
y
and
Bu
Ax
x 



Consider the single-input, single-output system
where C is a 1xn row vector, and x is an nx1 column vector. This system is
completely observable when the determinant of the observability matrix P0
is nonzero.
The observability matrix, which is an nxn matrix, is written as













1
n
O
A
C
A
C
C
P

Example:
Consider the previously given system
 
0
0
1
C
,
a
a
a
1
0
0
0
1
0
A
2
1
0















Dorf and Bishop, Modern Control Systems
   
1
0
0
CA
,
0
1
0
CA 2


Thus, we obtain











1
0
0
0
1
0
0
0
1
PO
The det P0=1, and the system is completely observable. Note that
determination of observability does not utility the B and C matrices.
Example: Consider the system given by
 x
1
1
y
and
u
1
1
x
1
1
0
2
x 

















We can check the system controllability and observability using the Pc and P0
matrices.
From the system definition, we obtain
















2
2
AB
and
1
1
B
  









2
1
2
1
AB
B
Pc
Therefore, the controllability matrix is determined to be
det Pc=0 and rank(Pc)=1. Thus, the system is not controllable.
  









2
1
2
1
AB
B
Pc
Therefore, the controllability matrix is determined to be
Dorf and Bishop, Modern Control Systems
From the system definition, we obtain
   
1
1
CA
and
1
1
C 















1
1
1
1
CA
C
Po
Therefore, the observability matrix is determined to be
det PO=0 and rank(PO)=1. Thus, the system is not observable.
If we look again at the state model, we note that
2
1 x
x
y 

However,
  2
1
1
2
1
2
1 x
x
u
u
x
x
x
2
x
x 






 

Thus, the system state variables do not depend on u, and the system is not
controllable. Similarly, the output (x1+x2) depends on x1(0) plus x2(0) and does
not allow us to determine x1(0) and x2(0) independently. Consequently, the
system is not observable.
The observability matrix PO can be constructed in Matlab by using obsv
command.
From two-mass system,
Po =
1 1
1 1
rank_Po =
1
det_Po =
0
clc
clear
A=[2 0;-1 1];
C=[1 1];
Po=obsv(A,C)
rank_Po=rank(Po)
det_Po=det(Po) The system is not
observable.
Dorf and Bishop, Modern Control Systems

Contenu connexe

Tendances

state space modeling of electrical system
state space modeling of electrical systemstate space modeling of electrical system
state space modeling of electrical system
Mirza Baig
 
Proportional integral and derivative PID controller
Proportional integral and derivative PID controller Proportional integral and derivative PID controller
Proportional integral and derivative PID controller
Mostafa Ragab
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller Tuning
Ahmad Taan
 

Tendances (20)

Class 8 mathematical modeling of interacting and non-interacting level systems
Class 8   mathematical modeling of interacting and non-interacting level systemsClass 8   mathematical modeling of interacting and non-interacting level systems
Class 8 mathematical modeling of interacting and non-interacting level systems
 
Control systems
Control systems Control systems
Control systems
 
state space modeling of electrical system
state space modeling of electrical systemstate space modeling of electrical system
state space modeling of electrical system
 
State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems, State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems,
 
Controllers ppt
Controllers pptControllers ppt
Controllers ppt
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
 
Frequency Response Analysis
Frequency Response AnalysisFrequency Response Analysis
Frequency Response Analysis
 
Proportional integral and derivative PID controller
Proportional integral and derivative PID controller Proportional integral and derivative PID controller
Proportional integral and derivative PID controller
 
“HOT LINE CLEANING ROBOT USED IN TRANSMISSION LINE AND SUBSTATION”
“HOT LINE CLEANING ROBOT USED IN TRANSMISSION LINE AND SUBSTATION”“HOT LINE CLEANING ROBOT USED IN TRANSMISSION LINE AND SUBSTATION”
“HOT LINE CLEANING ROBOT USED IN TRANSMISSION LINE AND SUBSTATION”
 
State feedback control
State feedback controlState feedback control
State feedback control
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller Tuning
 
state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...
 
State space analysis.pptx
State space analysis.pptxState space analysis.pptx
State space analysis.pptx
 
Control system compensator lag lead
Control system compensator lag leadControl system compensator lag lead
Control system compensator lag lead
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
Stability of Control System
Stability of Control SystemStability of Control System
Stability of Control System
 
Control system stability routh hurwitz criterion
Control system stability routh hurwitz criterionControl system stability routh hurwitz criterion
Control system stability routh hurwitz criterion
 
Control chap2
Control chap2Control chap2
Control chap2
 
Optimization for-power-sy-8631549
Optimization for-power-sy-8631549Optimization for-power-sy-8631549
Optimization for-power-sy-8631549
 
Control chap9
Control chap9Control chap9
Control chap9
 

Similaire à lecture1 (9).ppt

Chapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.pptChapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.ppt
khinmuyaraye
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
Ganesh Bhat
 
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
sravan66
 

Similaire à lecture1 (9).ppt (20)

Introduction to mathematical control theory - Dr. Purnima Pandit
Introduction to mathematical control theory - Dr. Purnima PanditIntroduction to mathematical control theory - Dr. Purnima Pandit
Introduction to mathematical control theory - Dr. Purnima Pandit
 
lecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptlecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).ppt
 
Chapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.pptChapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.ppt
 
BEC- 26 control systems_unit-II
BEC- 26 control systems_unit-IIBEC- 26 control systems_unit-II
BEC- 26 control systems_unit-II
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
 
STATE_SPACE_ANALYSIS.pdf
STATE_SPACE_ANALYSIS.pdfSTATE_SPACE_ANALYSIS.pdf
STATE_SPACE_ANALYSIS.pdf
 
Transfer Function Cse ppt
Transfer Function Cse pptTransfer Function Cse ppt
Transfer Function Cse ppt
 
UNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .pptUNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .ppt
 
Introduction
IntroductionIntroduction
Introduction
 
Discrete state space model 9th &10th lecture
Discrete  state space model   9th  &10th  lectureDiscrete  state space model   9th  &10th  lecture
Discrete state space model 9th &10th lecture
 
COEN507 introduction to linear time invariant.pptx
COEN507 introduction to linear time invariant.pptxCOEN507 introduction to linear time invariant.pptx
COEN507 introduction to linear time invariant.pptx
 
solver (1)
solver (1)solver (1)
solver (1)
 
control systems.pdf
control systems.pdfcontrol systems.pdf
control systems.pdf
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
MathematicalModelling.pptxGFYDTUSRYJETDTUYR
MathematicalModelling.pptxGFYDTUSRYJETDTUYRMathematicalModelling.pptxGFYDTUSRYJETDTUYR
MathematicalModelling.pptxGFYDTUSRYJETDTUYR
 
State space courses
State space coursesState space courses
State space courses
 
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
Introduction to Hybrid Vehicle System Modeling and Control - 2013 - Liu - App...
 
14599404.ppt
14599404.ppt14599404.ppt
14599404.ppt
 
P73
P73P73
P73
 
Basic System Properties.ppt
Basic System Properties.pptBasic System Properties.ppt
Basic System Properties.ppt
 

Plus de HebaEng

MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdfMATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
HebaEng
 
Estimate the value of the following limits.pptx
Estimate the value of the following limits.pptxEstimate the value of the following limits.pptx
Estimate the value of the following limits.pptx
HebaEng
 
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdflecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
HebaEng
 
LECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptxLECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptx
HebaEng
 
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdflect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
HebaEng
 
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdflect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
HebaEng
 
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptxsensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
HebaEng
 
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdfHomework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
HebaEng
 
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging huggPIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
HebaEng
 
math1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdfmath1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdf
HebaEng
 
PIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdfPIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdf
HebaEng
 
IO and MAX 2.pptx
IO and MAX 2.pptxIO and MAX 2.pptx
IO and MAX 2.pptx
HebaEng
 
BUS DRIVER.pptx
BUS DRIVER.pptxBUS DRIVER.pptx
BUS DRIVER.pptx
HebaEng
 
Instruction 4.pptx
Instruction 4.pptxInstruction 4.pptx
Instruction 4.pptx
HebaEng
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
HebaEng
 

Plus de HebaEng (20)

MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdfMATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
 
Estimate the value of the following limits.pptx
Estimate the value of the following limits.pptxEstimate the value of the following limits.pptx
Estimate the value of the following limits.pptx
 
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdflecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
 
LECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptxLECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptx
 
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdflect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
 
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdflect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
 
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptxsensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
 
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdfHomework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
 
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging huggPIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
 
math6.pdf
math6.pdfmath6.pdf
math6.pdf
 
math1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdfmath1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdf
 
digital10.pdf
digital10.pdfdigital10.pdf
digital10.pdf
 
PIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdfPIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdf
 
Instruction 3.pptx
Instruction 3.pptxInstruction 3.pptx
Instruction 3.pptx
 
IO and MAX 2.pptx
IO and MAX 2.pptxIO and MAX 2.pptx
IO and MAX 2.pptx
 
BUS DRIVER.pptx
BUS DRIVER.pptxBUS DRIVER.pptx
BUS DRIVER.pptx
 
VRAM & DEBUG.pptx
VRAM & DEBUG.pptxVRAM & DEBUG.pptx
VRAM & DEBUG.pptx
 
Instruction 4.pptx
Instruction 4.pptxInstruction 4.pptx
Instruction 4.pptx
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
Opcode 2.pptx
Opcode 2.pptxOpcode 2.pptx
Opcode 2.pptx
 

Dernier

一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
wpkuukw
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
wpkuukw
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
yhavx
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
mark11275
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
ehyxf
 
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
nirzagarg
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
eeanqy
 

Dernier (20)

Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentation
 
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
 
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best ServiceHigh Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
 
TRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxTRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptx
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
 
Abu Dhabi Call girls Service0556255850 Call girls in Abu Dhabi
Abu Dhabi Call girls Service0556255850 Call girls in Abu DhabiAbu Dhabi Call girls Service0556255850 Call girls in Abu Dhabi
Abu Dhabi Call girls Service0556255850 Call girls in Abu Dhabi
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
 
Aminabad * High Profile Escorts Service in Lucknow Phone No 9548273370 Elite ...
Aminabad * High Profile Escorts Service in Lucknow Phone No 9548273370 Elite ...Aminabad * High Profile Escorts Service in Lucknow Phone No 9548273370 Elite ...
Aminabad * High Profile Escorts Service in Lucknow Phone No 9548273370 Elite ...
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
 
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
 
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 
Hackathon evaluation template_latest_uploadpdf
Hackathon evaluation template_latest_uploadpdfHackathon evaluation template_latest_uploadpdf
Hackathon evaluation template_latest_uploadpdf
 
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
 
Gamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad IbrahimGamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad Ibrahim
 

lecture1 (9).ppt

  • 1. State Space Representation of System Dr.Ziad Saeed Mohammed E .T .C-N.T.U 2019-2020
  • 2. 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
  • 3. Modeling 3 Derive mathematical models for • Electrical systems • Mechanical systems • Electromechanical system Electrical Systems: • Kirchhoff’s voltage & current laws Mechanical systems: • Newton’s laws
  • 4. 4 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.
  • 5. 5 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
  • 6. State space model composed of 2 equations; 1. State equation State Space Model 2. Output equation 6 • A is called the state matrix, • B the input matrix, • C the output matrix, and • D the direct transmission matrix.
  • 7. 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 to. • 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.
  • 8. State 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=to is specified, the future state of the system is completely determined), then such n variables are a set of state variables.
  • 9. 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.
  • 10. 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.
  • 11. • 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).
  • 12. • Define n outputs of the integrators as state variables: x1(t), x2(t), ……… xn(t). Then the system may be described by:
  • 13. • The outputs y1(t), y2(t), ……… ym(t) of the system may be given by
  • 14. • If we define
  • 15. • 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.
  • 16. • If Equations (2–10) and (2–11) are linearized about the operating state, then we have the following linearized state equation and output equation:
  • 17. • 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
  • 18. • 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.
  • 19. 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
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Example 26 Find state model of System shown in the Fig. Solution • A practical approach is to assign the current in the inductor L, i(t), and the voltage across the capacitor C, ec(t), as the state variables. • The reason for this choice is because the state variables are directly related to the energy-storage element of a system. The inductor stores kinetic energy, and the capacitor stores electric potential energy. • By assigning i(t) and ec(t) as state variables, we have a complete description of the past history (via the initial states) and the present and future states of the network.
  • 27. Example The state equation: 27 This format is also known as the state form if we set OR
  • 28. Example 28 write the state equations of the electric network shown in the Fig. Solution: The state equations of the network are obtained by writing the voltages across the inductors and the currents in the capacitor in terms of the three state variables. The state equations are
  • 29. Example In vector-matrix form, the state equations are written as 29 Where
  • 30. Example 3.1 P.138 PROBLEM: Given the electrical network of Figure shown, find a state-space representation if the output is the current through the resistor. 30 Solution Select the state variables by writing the derivative equation for all energy storage elements, that is, the inductor and the capacitor. Thus, 1 2
  • 31. Example 3.1 Apply network theory, such as Kirchhoffs voltage and current laws, to obtain ic and vL in terms of the state variables, vc and iL. At Node 1, 31 which yields ic in terms of the state variables, vc and iL . Around the outer loop, 3 4
  • 32. Example 3.1 Substitute the results of Eqs. (3) and (4) into Eqs. (1) and (2) to obtain the following state equations: 32 OR Find the output eq. since the output is iR(t) The final result for the state-space representation is
  • 33. Example 33 Find the state eq. of the mechanical system shown Solution
  • 34. Example 3.3 P.142 PROBLEM: Find the state equations for the translational mechanical system shown in Figure. 34
  • 35. Example 3.3 P.142 SOLUTION: First write the differential equations for the network in Figure, using the methods of Chapter 2 to find the Laplace-transformed equations of motion. 35
  • 36. Example 3.3 P.142 36 In Vector Matrix
  • 37. 3.5 Converting a Transfer Function to State Space In the last section, we applied the state-space representation to electrical and mechanical systems. We learn how to convert a transfer function representation to a state-space representation in this section. One advantage of the state-space representation is that it can be used for the simulation of physical systems on the digital computer. Thus, if we want to simulate a system that is represented by a transfer function, we must first convert the transfer function representation to state space. 37
  • 38. Converting T.F to S.S • System modeling in state space can take on many representations • Although each of these models yields the same output for a given input, an engineer may prefer a particular one for several reasons. • Another motive for choosing a particular set of state variables and state-space model is ease of solution. 38
  • 39. 3.6 Converting from State Space to a Transfer Function • 39
  • 40. Converting From S.S to T.F • 40
  • 41. CONTROLLABILITY: Full-state feedback design commonly relies on pole-placement techniques. It is important to note that a system must be completely controllable and completely observable to allow the flexibility to place all the closed-loop system poles arbitrarily. The concepts of controllability and observability were introduced by Kalman in the 1960s. A system is completely controllable if there exists an unconstrained control u(t) that can transfer any initial state x(t0) to any other desired location x(t) in a finite time, t0≤t≤T.
  • 42. For the system Bu Ax x    we can determine whether the system is controllable by examining the algebraic condition   n B A B A AB B rank 1 n 2    The matrix A is an nxn matrix an B is an nx1 matrix. For multi input systems, B can be nxm, where m is the number of inputs. For a single-input, single-output system, the controllability matrix Pc is described in terms of A and B as   B A B A AB B P 1 n 2 c    which is nxn matrix. Therefore, if the determinant of Pc is nonzero, the system is controllable.
  • 43. Example: Consider the system    u 0 x 0 0 1 y , u 1 0 0 x a a a 1 0 0 0 1 0 x 2 1 0                                                                                1 2 2 2 2 2 2 1 0 a a a 1 B A , a 1 0 AB , 1 0 0 B , a a a 1 0 0 0 1 0 A                   1 2 2 2 2 2 c a a a 1 a 1 0 1 0 0 B A AB B P The determinant of Pc =1 and ≠0 , hence this system is controllable.
  • 44. Example. Consider a system represented by the two state equations 1 2 2 1 1 x d x 3 x , u x 2 x         The output of the system is y=x2. Determine the condition of controllability.    u 0 x 1 0 y , u 0 1 x 3 d 0 2 x                                                         d 0 2 1 P d 2 0 1 3 d 0 2 AB and 0 1 B c The determinant of pc is equal to d, which is nonzero only when d is nonzero. Dorf and Bishop, Modern Control Systems
  • 45. OBSERVABILITY: All the poles of the closed-loop system can be placed arbitrarily in the complex plane if and only if the system is observable and controllable. Observability refers to the ability to estimate a state variable. A system is completely observable if and only if there exists a finite time T such that the initial state x(0) can be determined from the observation history y(t) given the control u(t). Cx y and Bu Ax x     Consider the single-input, single-output system where C is a 1xn row vector, and x is an nx1 column vector. This system is completely observable when the determinant of the observability matrix P0 is nonzero.
  • 46. The observability matrix, which is an nxn matrix, is written as              1 n O A C A C C P  Example: Consider the previously given system   0 0 1 C , a a a 1 0 0 0 1 0 A 2 1 0                Dorf and Bishop, Modern Control Systems
  • 47.     1 0 0 CA , 0 1 0 CA 2   Thus, we obtain            1 0 0 0 1 0 0 0 1 PO The det P0=1, and the system is completely observable. Note that determination of observability does not utility the B and C matrices. Example: Consider the system given by  x 1 1 y and u 1 1 x 1 1 0 2 x                  
  • 48. We can check the system controllability and observability using the Pc and P0 matrices. From the system definition, we obtain                 2 2 AB and 1 1 B             2 1 2 1 AB B Pc Therefore, the controllability matrix is determined to be det Pc=0 and rank(Pc)=1. Thus, the system is not controllable.             2 1 2 1 AB B Pc Therefore, the controllability matrix is determined to be Dorf and Bishop, Modern Control Systems
  • 49. From the system definition, we obtain     1 1 CA and 1 1 C                 1 1 1 1 CA C Po Therefore, the observability matrix is determined to be det PO=0 and rank(PO)=1. Thus, the system is not observable. If we look again at the state model, we note that 2 1 x x y   However,   2 1 1 2 1 2 1 x x u u x x x 2 x x          
  • 50. Thus, the system state variables do not depend on u, and the system is not controllable. Similarly, the output (x1+x2) depends on x1(0) plus x2(0) and does not allow us to determine x1(0) and x2(0) independently. Consequently, the system is not observable. The observability matrix PO can be constructed in Matlab by using obsv command. From two-mass system, Po = 1 1 1 1 rank_Po = 1 det_Po = 0 clc clear A=[2 0;-1 1]; C=[1 1]; Po=obsv(A,C) rank_Po=rank(Po) det_Po=det(Po) The system is not observable. Dorf and Bishop, Modern Control Systems