(Control Engineering) : State Variables and State-Space Representation"
(Control Engineering) : State Variables and State-Space Representation"
(Control Engineering) : State Variables and State-Space Representation"
Report
On State variables and
state-space representation
Fall-2012
Student name & ID:
Nasir Ali Shah
BECS/H/F10/0104
Lab Instructor name:
SYEDA NOOR-UL-AIN
2 Control Engineering Lab Report
Index Page
Part A:
1
State-Space Representation
2
State
3
State Variable
4
Analysis of Feedback System using state variable
Part B:
1
Obtaining the State-Space Equations
Part A
IntroductIon and defInItIon
State-Space Representation:
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. Additionally, if the dynamical system is linear and
time invariant, the differential and algebraic equations may be written
in matrix form. The state space representation (also known as the
"time-domain approach") provides a convenient and compact way to
model and analyze systems with multiple inputs and outputs.
With inputs and outputs, we would otherwise have to write
down Laplace transforms to encode all the information about a
system. Unlike the frequency domain approach, the use of the state
space representation is not limited to systems with linear components
and zero initial conditions. "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:
In a state space system, the internal state of the system is
explicitly accounted for by an equation known as the state equation.
The system output is given in terms of a combination of the current
system state, and the current system input, through the output
equation. These two equations form a system of equations known
collectively as state-space equations. The state-space is the vector
space that consists of all the possible internal states of the system.
4 Control Engineering Lab Report
State:
State Variables:
When modeling a system using a state-space equation, we first
need to define three vectors:
Input variables:
5 Control Engineering Lab Report
A SISO (Single Input Single Output) system will only have a single input
value, but a MIMO system may have multiple inputs. We need to define all the
inputs to the system, and we need to arrange them into a vector.
Output variables:
This is the system output value, and in the case of MIMO systems, we may
have several. Output variables should be independent of one another, and
only dependent on a linear combination of the input vector and the state
vector.
State Variables:
The state variables represent values from inside the system, that can
change over time. In an electric circuit, for instance, the node voltages or the
mesh currents can be state variables. In a mechanical system, the forces
applied by springs, gravity, and dashpots can be state variables.
We denote the input variables with u, the output variables with y, and the state
variables with x. In essence, we have the following relationship:
Where f(x, u) is our system. Also, the state variables can change with respect to the
current state and the system input:
where:
7 Control Engineering Lab Report
Continuous time-variant
Laplace domain of
continuous time-invariant
8 Control Engineering Lab Report
Z-domain of
discrete time-invariant
becomes
solving the output equation for and substituting in the state equation
results in
9 Control Engineering Lab Report
Example:
Part B
10 Control Engineering Lab Report
And with that, we can assemble the state-space equations for the system:
11 Control Engineering Lab Report
MATLAB Representation:
Systems created in this way can be manipulated in the same way that the
transfer function descriptions (described earlier) can be manipulated. To
convert a transfer function to a state-space representation, we can use
the tf2ss function:
References
en.wikipedia.org
www.mathworks.com
Linear Control System Analysis and Design by John J. D. Azzo
Automatic Control System by Benjamin C. Kuo and Farid
Golnaraghi
www.about.com