Eed 3016 Control Systems: Assoc - Dr. Güleser K Demir Assist. Dr. Hatice Do Ğan
Eed 3016 Control Systems: Assoc - Dr. Güleser K Demir Assist. Dr. Hatice Do Ğan
Eed 3016 Control Systems: Assoc - Dr. Güleser K Demir Assist. Dr. Hatice Do Ğan
Güleser K Demir
Assist. Dr. Hatice Doğan
CONTROL SYSTEM ENGINEER
Regulates a is a combination of understands and
mechanical or components that act controls the materials
together and and forces of nature
scientific process for the benefit of
perform a certain
objective. humankind
Control system engineers are concerned with understanding and controlling segments of
their environment, often called systems, to provide useful economic products for society.
1. INTRODUCTION
Control applications
are all around us:
´ A self-guided vehicle
´ The rockets fire
´ Robotic arms
´ Air-conditioning systems
´…
´…
Automatically controlled
systems that we can create
1. INTRODUCTION
Control applications
also exist in nature:
´ Regulating blood sugar
by the pancreas
´ Tracking moving objects
by our eyes
´ Adjusting our heart rate
by increasing adrenaline
in time of fight
´…
Automatically controlled
systems in our own bodies
1. INTRODUCTION
Even the nonphysical
world appears to be
automatically
regulated.
´ In quality evaluation
services
´ In environmental systems
such as global carbon
cycle or microbial
ecosystems
´ In financial systems such
as markets, supply and
service chains
´…
CONTROL SYSTEM DEFINITION
A control system consists of subsystems and processes (or plants) assembled for the purpose of controlling the
outputs of the processes.
PLANT: Furnace
Aim: Regulating the temperature of a room by
Flow of fuel Heat controlling the heat output from the furnace
Subsystems: Fuel valves, Fuel-valve actuators,
Thermostats which act as sensors, measure the room
temperature
thermostats furnace
Physical entities cannot change After the transient response, a physical system
their state (such as position or approaches its steady-state response, which is
velocity) instantaneously. Thus, the its approximation to the desired response.
elevator location changes gradually.
OPEN LOOP SYSTEMS Disturbance means the interruption of
a settled and peaceful condition.
Objective: Make
the system output
Closed-loop toaster system
and It is more complex and expensive than
reference(/input) open loop toaster systems. The device
as close as has to measure both color (through
possible, i.e. light reflectivity) and humidity inside
the toaster oven. The heat duration is
make the error as
adjusted automatically for different Morphy Richards Toaster
small as possible type of breads. (The browning control)
Systems that perform measurement and correction are called closed-loop, feedback
control systems.
Systems that do not have this property of measurement and correction are called open-
loop systems.
CLOSED LOOP SYSTEMS VS OPEN LOOP SYSTEMS
qHigher accuracy ´ Simple
qLess sensitive to noise, ´ Inexpensive
disturbances, and changes in the
environment
qTransient response and steady
state error can be controlled
more conveniently
´ Disturbances cause errors, and
the output may be different
from what is desired.
´ Recalibration is necessary from
qMore complex time to time.
qExpensive
ANALYSIS AND DESIGN OBJECTIVES
What are our focal points in analysis and design of control system?
In an elevator example;
• Slow transient response à passengers impatient
• Rapid transient response à passengers uncomfortable
• Oscillation at the 4th floor more than a second à disconcerting feeling
ANALYSIS AND DESIGN OBJECTIVES
2. Reducing steady-state error
In an elevator example;
• The steady state response à An elevator stopped near 4th floor.
• Our concern à The accuracy of the steady-state response
• An adequate accuracy (low error) à easy exit for the passengers
ANALYSIS AND DESIGN OBJECTIVES
3. Achieving Stability
Total response= Natural response + Forced response
In an elevator example; the elevator would crash through the floor or exit through
the ceiling!
ANALYSIS AND DESIGN OBJECTIVES
4. Other considerations
´Finance
Open-loop (without feedback) control of the Closed-loop control of the speed of a rotating disk.
speed of a rotating disk
DRILL QUESTIONS
In a chemical process control system, it is valuable to control the chemical composition of the product. To do so, a measurement
of the composition can be obtained by using an infrared stream analyzer, as shown in the figure below. The valve on the
additive stream may be controlled. Complete the control feedback loop, and sketch a block diagram describing the operation
of the control loop.
Consider the inverted pendulum shown in the figure. Sketch the block diagram
of a feedback control system using the figure below as the model. Identify the
process, sensor, actuator, and controller. The objective is keep the pendulum in
the upright position, that is to keep q = 0, in the presence of disturbances.
1.6 THE DESIGN PROCESS STEPS
MODELING IN THE FREQUENCY
DOMAIN
To understand and control complex systems, one must obtain quantitative mathematical
models.
Develop mathematical models applying the fundamental physical laws of science and
engineering.
Transfer functions in the frequency domain
State equations in the time domain
2.2 LAPLACE TRANSFORM REVIEW
´ Differential equations for modeling ´ Laplace Transform for modeling
´ Difficult to represent as a block diagram ´ Easy to represent as a block diagram
´ Computationally complex ´ Algebraic relationship
𝑁(𝑠)
𝐹 𝑠 =
𝐷(𝑠)
𝑁(𝑠) 𝑁(𝑠)
𝐹 𝑠 = =
𝐷(𝑠) 𝑠 + 𝑝! 𝑠 + 𝑝" … 𝑠 + 𝑝# … (𝑠 + 𝑝$ )
𝐾! 𝐾" 𝐾# 𝐾$
= + + ⋯+ + ⋯+
𝑠 + 𝑝! 𝑠 + 𝑝" 𝑠 + 𝑝# 𝑠 + 𝑝$
𝑁 𝑠 𝑠 + 𝑝#
𝐾# = -
𝑠 + 𝑝! 𝑠 + 𝑝" … 𝑠 + 𝑝# … (𝑠 + 𝑝$ ) %&'(
!
Problem: Given the following differential equation, solve for y(t) if all initial
conditions are zero. Use the Laplace transform.
𝑑"𝑦 𝑑𝑦
" + 12 + 32𝑦 = 32 𝑢(𝑡)
𝑑𝑡 𝑑𝑡
32
𝑠 "𝑌 𝑠 + 12𝑠𝑌 𝑠 + 32𝑌 𝑠 =
𝑠
32 32 𝐾! 𝐾" 𝐾)
𝑌 𝑠 = " = = + +
𝑠(𝑠 + 12𝑠 + 32) 𝑠(𝑠 + 4)(𝑠 + 8) 𝑠 𝑠+4 𝑠+8 )"
𝐾! = : =1
(%.*)(%.,) %&0
1 2 1
𝑌 𝑠 = − + )"
𝑠 𝑠+4 𝑠+8 𝐾" = %(%.,) : =-2
%&'*
𝑁(𝑠) 𝑁(𝑠)
𝐹 𝑠 = =
𝐷(𝑠) (𝑠 + 𝑝!)1 𝑠 + 𝑝" … (𝑠 + 𝑝$ )
𝐾! 𝐾" 𝐾1 𝐾" 𝐾$
= 1 + 1'! + ⋯+ + …+
(𝑠 + 𝑝!) (𝑠 + 𝑝!) 𝑠 + 𝑝! 𝑠 + 𝑝" 𝑠 + 𝑝$
1 𝑑2'!𝐹!(𝑠)
𝐾2 = 2'!
=
𝑖 − 1 ! 𝑑𝑠
%&'("
where 𝐹! 𝑠 = 𝑠 + 𝑝! " 𝐹 𝑠
Problem: Find the inverse Laplace transform of
2
𝐹 𝑠 =
(𝑠 + 2)"(𝑠 + 1)
2 𝐾! 𝐾" 𝐾)
𝐹 𝑠 = " = + " +
(𝑠 + 2) (𝑠 + 1) 𝑠 + 1 (𝑠 + 2) 𝑠+2
"(%.!)
𝐾! = :
(%.")# (%.!) %&'!
=2
"(%.")#
𝐾" = :
(%.")# (%.!) %&'"
=-2
2 2 2
𝐹 𝑠 = − "−𝑠+2
𝑠+1 𝑠+2
'"
𝐾) = : =-2
(%.!)# %&'"
𝑓 𝑡 = 2𝑒 '+ − 2𝑡𝑒 '"+ − 2𝑒 '"+ 𝑢(𝑡)
CASE 3. ROOTS OF DENOMINATOR OF F(S) ARE COMPLEX OR IMAGINARY
𝑁(𝑠) 𝑁(𝑠)
𝐹 𝑠 = =
𝐷(𝑠) 𝑠 + 𝑝! 𝑠 " + 𝑎𝑠 + 𝑏 …
𝐾! 𝐾"𝑠 + 𝐾)
= + " +⋯
(𝑠 + 𝑝!) 𝑠 + 𝑎𝑠 + 𝑏
𝐾! 𝐾"(𝑠 + 𝛼) 𝐵!𝛽
= + " " +
(𝑠 + 𝑝!) (𝑠 + 𝛼) +𝛽 (𝑠 + 𝛼)"+𝛽"
"%.!
Problem: Find the differential equation corresponding to the transfer function 𝐺 𝑠 =
%# .:%."
4# 5 45 41
Answer: # +6 + 2𝑐 = 2 4+ +𝑟
4+ 4+
%
Problem: Find the ramp response for a system whose transfer function is 𝐺 𝑠 =
(%.*)(%.,)
! ! '*+ ! ',+
Answer: 𝑐 𝑡 = − !: 𝑒 + )" 𝑒
)"
2.4 ELECTRIC NETWORK TRANSFER FUNCTIONS
TRANSFER FUNCTION – +
VIA THE DIFFERENTIAL EQUATION 𝑑𝑖(𝑡) 1
𝐿 + 𝑅𝑖 𝑡 + Y 𝑖 𝜏 𝑑𝜏 = 𝑣(𝑡)
𝑑𝑡 𝐶
0
Using 𝑖 𝑡 = 𝑑𝑞(𝑡)/𝑑𝑡
𝑑"𝑞(𝑡) 𝑑𝑞(𝑡) 1
𝐿 " +𝑅 + 𝑞 𝑡 = 𝑣(𝑡)
𝑑𝑡 𝑑𝑡 𝐶
𝒒 𝒕 = 𝑪𝒗𝒄 (𝒕)
𝑑"𝑣5 (𝑡) 𝑑𝑣5 (𝑡)
𝐿𝐶 " + 𝑅𝐶 + 𝑣5 𝑡 = 𝑣(𝑡)
𝑑𝑡 𝑑𝑡
LC𝑠 " + 𝑅𝐶𝑠 + 1 𝑉5 𝑠 = 𝑉(𝑠)
Assume zero initial
conditions to obtain
𝑉5 (𝑠) 1/𝐿𝐶 transfer function !
=
𝑉(𝑠) 𝑠 " + 𝑅 𝑠 + 1
𝐿 𝐿𝐶
TRANSFER FUNCTION –
VIA THE TRANSFORM METHODS
1 𝐼 (𝑠) 1
𝐿𝑠 + 𝑅 + 𝐼 𝑠 = 𝑉(𝑠) ⇒ =
𝐶𝑠 𝑉(𝑠) 𝐿𝑠 + 𝑅 + 1
𝐶𝑠 𝑉5 (𝑠) 1/𝐿𝐶
=
𝑉(𝑠) 𝑠 " + 𝑅 𝑠 + 1
! 𝐿 𝐿𝐶
𝑉5 𝑠 = 𝐼 𝑠 ⇒ 𝐼 𝑠 = 𝐶𝑠𝑉5 (s)
6%
TRANSFER FUNCTION –
VIA THE TRANSFORM METHODS
𝐺" = 1/𝑅"
𝐺! = 1/𝑅!
𝑉< 𝑠 − 𝑉 𝑠 𝑉< 𝑠 𝑉< 𝑠 − 𝑉6 𝑠
+ + =0 𝐺!𝐺"
𝑅! 𝐿𝑠 𝑅" 𝑉6 𝑠 𝑠
= 𝐶
𝑉(𝑠) 𝐺 𝐺 𝐿+𝐶 𝐺
𝑉6 𝑠 − 𝑉< 𝑠 𝐺! + 𝐺" 𝑠 " + ! "𝐿𝐶 𝑠 + 𝐿𝐶"
𝐶𝑠𝑉6 𝑠 + =0
𝑅"
TRANSFER FUNCTION –
VIA THE TRANSFORM METHODS 1 10 8
𝑍" 𝑠 = 𝑅" 𝑠 + = 220 x 10) +
𝐶"𝑠 𝑠
𝑉0 𝑠 𝑍" 𝑠
=
𝑉2 (𝑠) 𝑍!(𝑠)
Force ⟺ Voltage
Velocity ⟺ Current
Displacement ⟺ Charge
Spring ⟺Capacitor
Viscous damper ⟺ Resistor
Mass ⟺ Inductor
TRANSFER FUNCTION
𝑑"𝑥(𝑡)
𝑓$=+ =𝑀
𝑑𝑡 "
𝑑"𝑥(𝑡) 𝑑𝑥(𝑡)
𝑀 " + 𝑓> + 𝐾𝑥 𝑡 = 𝑓(𝑡)
𝑑𝑡 𝑑𝑡
𝑀𝑠 " + 𝑓> 𝑠 + 𝐾 𝑋(𝑠) = 𝐹(𝑠)
𝑋 (𝑠) 1
𝐺 𝑠 = =
𝐹(𝑠) 𝑀𝑠 " + 𝑓> 𝑠 + 𝐾
Problem: Find the transfer function, G(s)=X2(s)/F(s), for the translational
mechanical system shown in below.
Answer:
3𝑠 + 1
𝐺 𝑠 =
𝑠(𝑠 ) + 7𝑠 " + 5𝑠 + 1)
2.5 ROTATIONAL MECHANICAL SYSTEM TRANSFER FUNCTIONS
2.7 TRANSFER FUNCTIONS FOR SYSTEMS WITH GEARS
Gears allow you to match the drive system and the load
---a trade-off between speed and torque.
Rotational mechanical impedances can
be reflected through gear trains by
multiplying the mechanical impedance
by the ratio
"
𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑡𝑒𝑒𝑡ℎ 𝑜𝑓 𝑔𝑒𝑎𝑟
𝑜𝑛 𝑑𝑒𝑠𝑡𝑖𝑛𝑎𝑡𝑖𝑜𝑛 𝑠ℎ𝑎𝑓𝑡
𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑡𝑒𝑒𝑡ℎ 𝑜𝑓 𝑔𝑒𝑎𝑟
𝑜𝑛 𝑠𝑜𝑢𝑟𝑐𝑒 𝑠ℎ𝑎𝑓𝑡
2.8 ELECTROMECHANICAL SYSTEM TRANSFER FUNCTIONS
Motor’s Schematic. 𝑑𝜃#
𝑣? 𝑡 = 𝐾? 𝑉? 𝑠 = 𝐾? 𝑠𝜃# (𝑠)
𝑑𝑡
𝑅@ 𝐼@ 𝑠 + 𝐿@ 𝑠𝐼@ 𝑠 + 𝑉? (𝑠) = 𝐸@ (𝑠)
𝑇# 𝑠 = 𝐾+ 𝐼@ (𝑠)
𝑓 𝑥 ≈ 𝑓 𝑥( + 𝑚) 𝑥 − 𝑥( ≈ 𝑓 𝑥( + 𝑚) 𝛿𝑥 ⟹ 𝒇 𝒙 = −𝟓 𝜹𝒙
𝑑𝑓 𝑑𝑓
= −5 sin 𝑥 ⇒ < = −5
𝜋 𝜋 𝑑𝑥 𝑑𝑥 *+,/'
𝑓 𝑥( =𝑓 = 5 cos = 0
2 2
y = f ( x) = f ( x0 ) + ( x - x0 )
df
+
(x - x )0
2
d2 f
+ ...
dx x = x0 2! dx 2 x = x0
df
y = f ( xo ) + ( x - x0 ) = y0 + m( x - x0 )
dx x = x0
y - y0 = m( x - x0 )
Dy = mDx
LINEARIZING A DIFFERENTIAL EQUATION
&! * &*
Example: Linearize +2 + cos 𝑥 = 0 about 𝑥 = 𝜋/4
&. ! &.
𝑥 = 𝛿𝑥 + 𝜋/4
𝑑 ' (𝛿𝑥 + 𝜋/4 ) 𝑑(𝛿𝑥 + 𝜋/4 ) 𝒅𝟐 𝜹𝒙 𝒅𝜹𝒙 𝟐 𝟐
+2 + cos(𝛿𝑥 + 𝜋/4 ) = 0 ⇒ +𝟐 − 𝜹𝒙 = −
𝑑𝑡 ' 𝑑𝑡 𝒅𝒕𝟐 𝒅𝒕 𝟐 𝟐
1
𝑖3 = 2𝑒 (.!5# ⇒ 𝑣3 = 10 ln 𝑖3 Linearize this diff. equation.
2
(Set small-signal source, v(t), equal to zero and find the steady-
𝑑𝑖 1 state current (/equilibrium point), 𝑖6 . Then linearize non-linear
𝐿 + 10 ln 𝑖 − 20 = v(t)
𝑑𝑡 2 function around 𝑖6 by using 1st order taylor expansion)
𝑑𝛿𝑖 1 1 𝑑𝑖( 1
𝐿 + 10 (ln 𝑖( + 𝛿𝑖) − 20 = v(t) 𝐿 + 10 ln 𝑖( − 20 = 0
𝑑𝑡 2 𝑖( 𝑑𝑡 2
'
⇒ 𝑖( = 2𝑒 ⇒ 𝑖6 = 14.78amps
𝑑𝛿𝑖
+ 0.677δ𝑖 = v(t) 𝑑(𝑖( + 𝛿𝑖) 1
𝑑𝑡 𝐿 + 10 ln (𝑖( + 𝛿𝑖) − 20 = v(t)
𝑑𝑡 2
𝑉(𝑠)
𝛿𝑖 𝑠 = 1 1 𝑑(ln 0.5𝑖)
𝑠 + 0.677 ln (𝑖! + 𝛿𝑖) − ln 𝑖! = J 𝛿𝑖
2 2 𝑑𝑖 "!
𝑑(𝑖( + 𝛿𝑖) 𝑑𝛿𝑖 1 1 1
𝑣7 𝑡 = 𝐿 =𝐿 ln (𝑖! + 𝛿𝑖) − ln 𝑖! = 𝛿𝑖
𝑑𝑡 𝑑𝑡 2 2 𝑖!
𝑉 (𝑠) 𝑠 1 1 1
𝑉7 𝑠 = 𝐿𝑠𝛿𝑖(𝑠) ⇒ 7 = ln 𝑖! + 𝛿𝑖 = ln 𝑖! + 𝛿𝑖
𝑉(𝑠) 𝑠 + 0.677 2 2 𝑖!
MODELING IN THE TIME DOMAIN Assoc.Dr. Güleser K Demir
Assist.Dr. Hatice Doğan
Mathematical Models
3.1 INTRODUCTION
Classical or Frequency Domain Technique Modern or State-Space or Time Domain
Technique
´ Advantages
´ Advantages
´ Converts system’s differential equation into a
transfer function, thus gives a model that ´ Provides a unified method for modeling,
algebraically relates output to input. analyzing, and designing a wide range of
systems using matrix algebra.
´ Rapidly provides stability and transient
response information. ´ Useful to represent nonlinear systems that
have backlash, saturation, and dead zone.
´ Disadvantages
´ Nonlinear, Time-Varying, Multiple-input,
´ Applicable only to Linear, Time-Invariant (LTI) multiple-output systems
systems or their close approximations.
´ Disadvantages
For example, LTI modeling in space ´ Not as intuitive as classical method.
applications is inadequate. Models
´ Calculations required before physical
for time-varying systems (for interpretation is apparent
example, missiles with varying fuel
levels) are necessary.
3.3 STATE SPACE REPRESENTATION
̇
𝒙(𝑡) = 𝑨𝒙(𝑡) + 𝑩𝒖(𝑡)
𝒚(𝑡) = 𝑪𝒙(𝑡) + 𝑫𝒖(𝑡)
Input vector State vector Output vector
𝑢! (𝑡) 𝑥! (𝑡) 𝑦! (𝑡)
𝑢 (𝑡) 𝑥 (𝑡) 𝑦 (𝑡)
𝒖(𝑡) = " 𝒙(𝑡) = " 𝒚= "
⋮ ⋮ ⋮ Output
𝑢$ (𝑡) 𝑥# (𝑡) 𝑦% (𝑡) Feedforward
matrix
matrix
DEFINITIONS
System variables: Any variable that responds to an input or initial conditions.
1
State variables: The smallest set of linearly independent system variables such that knowledge of
these variables at t=t0 , together with knowledge of the input, completely determines the
behavior of the system for any time t≥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.
1
Linear combination: A linear combination of n variables, xi, for i=1 to n, is 𝑆 = 𝐾! 𝑥! +
𝐾!"# 𝑥!"# + ⋯ 𝐾# 𝑥# where eack Ki is a constant.
Linear Independence: A set of variables is linearly independent if none of the variables
can be written as a linear combination of the others.
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 variable-1)
(state variable-2)
State Equations: A set of n simultaneous, first order differential equations with n state
variables.
Output Equation: The algebraic equation that expresses the output variables of a system as
a linear combinations of the state variables and the inputs.
𝑥#
𝑥$
State vector 𝒙 = ⋮
𝑥!
State Equation 𝒙̇ = 𝑨𝒙 + 𝑩𝒖
Output Equation 𝒚 = 𝑪𝒙 + 𝑫𝒖
Input or control vector
𝑢#
𝑢$
𝒖= ⋮
Output vector
𝑦# 𝑢%
𝑦$
𝒚= ⋮
𝑦&
3.4 APPLYING THE STATE-SPACE REPRESENTATION
x1 = y
x2 = y" Þ x"1 = x2 First row of state equations
#
d n -1 y
xn = n -1 Þ x"n -1 = xn
dt
dny
x"n = n = -a0 x1 - a1 x2 ! - an -1 xn + b0u Last row of state equations
dt
Ø Arrange in vector-matrix format.
é x1 ù é 0 1 0 # 0 ù é x1 ù é 0 ù
êx ú ê 0 0 1 # 0 ú ê x2 ú ê 0 ú
d ê 2
ú ê úê ú ê ú
ê ! ú=ê ! ! ! " ! ú ê ! ú + ê ! úu
dt ê ú ê úê ú ê ú
ê xn -1 ú ê 0 0 0 " 1 ú ê xn -1 ú ê 0 ú
êë xn úû êë- a0 - a1 - a2 " - an -1 úû êë xn úû êëb0 úû
é x1 ù
êx ú
ê 2ú
y = [1 0 0 " 0]ê ! ú
ê ú
ê xn -1 ú Note the transfer function
êë xn úû format
Y ( s) b0
= n
U ( s) s + a n -1 s n -1 +!+a1 s1 + a 0
Example: Find the state-space representation for the transfer function given below.
𝑥#̇ 0 1 0 𝑥# 0
𝑥$̇ = 0 0 1 𝑥$ + 0 r
𝑥̇ ' −24 −26 −9 𝑥' 24
𝑥#
𝑦= 1 0 0 𝑥$
𝑥'
TRANSFER FUNCTION WITH NUMERATOR POLYNOMIAL
𝑌 𝑠 = 𝐶 𝑠 = 𝑏$ 𝑠 $ + 𝑏# 𝑠 + 𝑏( 𝑋# 𝑠
X 1 (s) 1 / a3
=
R( s ) s 3 + a2 s 2 + a1 s + a0 𝑑 $ 𝑥# 𝑑𝑥#
𝑦 𝑡 = 𝑏$ $ + 𝑏# + 𝑏( 𝑥#
a3 a3 a3 𝑑𝑡 𝑑𝑡
é ù é ù
é x1 ù ê 0 1 0 ú é x1 ù ê 0 ú 𝑦 𝑡 = 𝑏( 𝑥# + 𝑏# 𝑥$ + 𝑏$ 𝑥'
d ê ú ê
ê x2 ú = 0 0 1 ú êê x2 úú + ê 0 úu 𝑥#
dt ê a a a2 ú ê1ú
êë x3 úû ê- 0 - 1 - ú êë x3 úû ê ú 𝑦 = 𝑏( 𝑏# 𝑏$ 𝑥$
êë a3 a3 a3 úû êë a3 úû 𝑥'
Example: Find the state-space representation for the transfer function given below.
𝑥̇ # = 𝑥$ 𝑥̇ # 0 1 0 𝑥# 0
𝑥̇ $ = 𝑥' 𝑥̇ $ = 0 0 1 𝑥$ + 0 r
𝑥̇ ' = −24𝑥# − 26𝑥$ − 9𝑥' + 𝑟 𝑥̇ ' −24 −26 −9 𝑥' 1
C s = 𝑠 $ + 7𝑠 + 2 𝑋# (s)
𝑥̈ # = 𝑥'
𝑐 = 𝑥̈ # + 7𝑥̇ # + 2𝑥#
𝑥̇ # = 𝑥$ 𝑥!
𝑦 𝑡 = 2𝑥! + 7𝑥" + 𝑥& ⇒ 𝑦= 2 7 1 𝑥"
𝑥&
𝑥̇ # 0 1 0 𝑥# 0
𝑥̇ $ = 0 0 1 𝑥$ + 0 r
𝑥̇ ' −24 −26 −9 𝑥' 1
𝑥!
𝑦= 2 7 1 𝑥"
𝑥&
equivalent
block diagram
Note: y(t) = c(t)
3.6 CONVERTING FROM STATE SPACE TO A TRANSFER FUNCTION
𝒙̇ = 𝑨𝒙 + 𝑩𝒖
𝒚 = 𝑪𝒙 + 𝑫𝒖
𝑦= 1 0 0𝒙
𝑠 0 0 0 1 0 𝑠 −1 0
𝑠𝑰 − 𝑨 = 0 𝑠 0 − 0 0 1 = 0 𝑠 −1
0 0 𝑠 −1 −2 −3 1 2 𝑠+3
𝑠 $ + 3𝑠 + 2 𝑠+3 1
−1 𝑠(𝑠 + 3) 𝑠
"#
𝑎𝑑𝑗 𝑠𝑰 − 𝑨 −𝑠 −(2𝑠 + 1) 𝑠 $
𝑠𝑰 − 𝑨 = = 𝑌(𝑠)
𝑑𝑒𝑡 𝑠𝑰 − 𝑨 𝑠 ' + 3𝑠 $ + 2𝑠 + 1 𝑇 𝑠 = = 𝑪 𝑠𝑰 − 𝑨 "# 𝑩 + 𝑫
𝑈(𝑠)
𝑌(𝑠) 10(𝑠 $ + 3𝑠 + 2)
10 𝑇 𝑠 = =
𝑩= 0 𝑪= 1 0 0 𝑫=0 𝑈(𝑠) 𝑠 ' + 3𝑠 $ + 2𝑠 + 1
0
Example: Find the transfer function for the multiple-input multiple-output (MIMO) system
defined by é x!1 ù é 0 1 0 ù é x1 ù é0 0ù
ê x! ú = ê 0 - 4 3 ú ê x ú + ê1 0 ú é u1 ù
ê 2ú ê úê 2 ú ê ú êëu2 úû
êë x!3 úû êë- 1 - 1 - 2úû êë x3 úû êë 0 1úû
é x1 ù
é y1 ù é1 0 0ù ê ú
ê y ú = ê0 0 1ú ê x2 ú
ë 2û ë ûê ú
adj ( sI - A) ë x3 û
( sI - A) -1 =
sI - A 𝑌# 𝑠+2
=
𝑈# 𝑠 ' + 6𝑠 $ + 11𝑠 + 3
é s 2 + 6 s + 11 s + 2 3 ù
1 ê ú
= - 3 s 2
+ 2 3s 𝑌# 3
s ( s + 4)( s + 2) + 3 + 3s ê ú =
𝑈$ 𝑠 ' + 6𝑠 $ + 11𝑠 + 3
êë s + 4 - s - 1 s + 4 s úû
2
G ( s ) = [C ( sI - A) -1 B + D] 𝑌$ −(𝑠 + 1)
𝑌! 𝑌! =
1 é s+2 3 ù 𝑈# 𝑠 ' + 6𝑠 $ + 11𝑠 + 3
𝑈 𝑈"
= = !
s 3 + 6 s 2 + 11s + 3 êë- ( s + 1) s ( s + 4)úû 𝑌" 𝑌" Transfer 𝑌$
=
𝑠(𝑠 + 4)
𝑈! 𝑈" function matrix 𝑈$ 𝑠 ' + 6𝑠 $ + 11𝑠 + 3
3.7 LINEARIZATION
Ø A prime advantage of the state-space representation over the transfer function representation is the
ability to represent systems with nonlinearities.
Ø We can linearize the state eq. about the equilibrium point and can use only for a limited range of
operation.
Ø Let us represent a nonlinear system by the following vector-matrix formed state equations:
𝜕𝒇 𝜕𝒇
𝒙̇ & + 𝛿 𝒙̇ ≈ 𝒇(𝒙& , 𝒖& ) + @ 𝛿𝒙 + @ 𝛿𝒖
𝜕𝒙 (𝒙 𝜕𝒖 (𝒙
' ,𝒖' ) ' ,𝒖' )
0 0
𝜕𝒇 𝜕𝒇
𝒙̇ A + 𝛿 𝒙̇ ≈̇ 𝑓(𝒙A, 𝒖A) + = 𝛿𝒙 + = 𝛿𝒖
𝜕𝒙 (𝒙 𝜕𝒖 (𝒙
# ,𝒖# ) # ,𝒖# )
𝑨 𝑩
Ø Then drop ′𝛿′ and abusing notation, write the linearized differential equation
𝒙̇ = 𝑨𝒙 + 𝑩𝒖
Example: Find the linearized state equation for the following differential equation of nonlinear
spring.
𝑦̈ = 𝑘Z 𝑦 + 𝑘[ 𝑦 \
𝑓# (𝑥# , 𝑥$ ) 𝑥$
𝐟 𝐱 = = =0
𝑓$ (𝑥# , 𝑥$ ) 𝑘# 𝑥# + 𝑘$ 𝑥# '
Then
𝑓# 𝑥# , 𝑥$ = 0 Þ𝑥($ = 0
"+!
𝑓$ 𝑥# , 𝑥$ = 0 Þ𝑘# 𝑥(# + 𝑘$ 𝑥(# ' = 0 Þ 𝑥(# = 0 or 𝑥(# = ± Y+"
𝜕𝒇 𝜕𝒇
𝛿 𝒙̇ = _ 𝛿𝒙 + _ 𝛿𝒖
𝜕𝒙 (𝒙 𝜕𝒖 (𝒙
# ,𝒖# ) # ,𝒖# )
,-! ,-!
,.! ,." 0 1 0 1
𝐴 = = =
,-" ,-" 𝑘# + 3𝑘$ 𝑥# $ 0 .# 𝑘# + 3𝑘$ 𝑥(# $ 0
,.! ,." .
#
which are the standard dynamics of a system with just a linear spring of stiffness 𝑘!
𝛿 𝑥̇ # 0 1 𝛿𝑥#
=
𝛿 𝑥̇ $ 𝑘# 0 𝛿𝑥$
EXAMPLE
Given nonlinear system below, find linearized model
𝑥̇ C(𝑡)=𝑥L(𝑡)
𝑥̇ L(𝑡)=−𝑥C(𝑡)𝑥L(𝑡) − 𝑥L(𝑡) + 𝑢 𝑡 , 𝑥A = 𝑥AC 𝑥AL = 1 0 , 𝑢A= 0
Solution
𝑥̇ C(𝑡)=𝑥L 𝑡 = 𝑓C 𝑥C 𝑡 , 𝑥L 𝑡 , 𝑢(𝑡)
𝑥̇ L(𝑡)=−𝑥C 𝑡 𝑥L 𝑡 − 𝑥L 𝑡 + 𝑢 𝑡 = 𝑓L 𝑥C 𝑡 , 𝑥L 𝑡 , 𝑢(𝑡)
𝑥̇ C(𝑡)=𝑥L 𝑡 = 𝑓C 𝑥C 𝑡 , 𝑥L 𝑡 , 𝑢(𝑡)
𝑥̇ L(𝑡)=−𝑥C 𝑡 𝑥L 𝑡 − 𝑥L 𝑡 + 𝑢 𝑡 = 𝑓L 𝑥C 𝑡 , 𝑥L 𝑡 , 𝑢(𝑡)
𝜕𝒇 𝜕𝒇
𝛿 𝒙̇ = _ 𝛿𝒙 + _ 𝛿𝒖
𝜕𝒙 (𝒙 𝜕𝒖 (𝒙
# ,𝒖# ) # ,𝒖# )
MN$ MN$
MO$ MO% 0 1 0 1
𝐴 = F = =
MN% MN% −𝑥AL −𝑥AC − 1 0 −2
MO$ MO% O# ,P#
MN$
MP 0
𝐵= MN%
F =
1
linearized system: MP O# ,P#
𝛿 𝒙̇ = 𝑨𝛿𝒙 + 𝑩𝒖
𝜕𝒇 𝜕𝒇
𝛿 𝒙̇ = = 𝛿𝒙 + = 𝛿𝒖
𝜕𝒙 (𝒙 𝜕𝒖 (𝒙
# ,𝒖# ) # ,𝒖# )
,-( ,-(
,.( ,.) 0 1 0 1
𝐴 = J = =
,-) ,-) −𝑐𝑜𝑠𝑥&" −0.1 −0.707 −0.1
,.( ,.) .' ,/'
,-(
,/ 0
𝐵= J = ;
,-) 1
,/ .' ,/'
𝛿 𝒙̇ = 𝑨𝛿𝒙 + 𝑩𝒖
!" !"
𝑠𝑰 − 𝑨 𝑿 𝑠 = 𝒙 𝟎 + 𝑩𝑼 𝑠 ⇒ 𝑿 𝑠 = 𝑠𝑰 − 𝑨 𝒙 0 + 𝑠𝑰 − 𝑨 𝑩𝑼 𝑠
012(3𝑰!𝑨)
𝑿 𝑠 = 𝒙 0 + 𝑩𝑼(𝑠)
678(3𝑰!𝑨)
The roots of the denominator are the poles of the system. Find
poles from
det 𝑠𝑰 − 𝑨 = 0
The system poles equal the eigenvalues of the matrix A!!!
Note that the poles of the transfer function determine the nature
of the transient response of the system.
Example: a)Solve the state equation adj ( sI - A)
( sI - A) =
-1
ê x! ú = ê 0 0 ú ê ú
1 x2 + 0 e ê ú -t
ê 2ú ê úê ú ê ú
êë x!3 úû êë- 24 - 26 - 9úû êë x3 úû êë1úû
𝑠 ' + 10𝑠 $ + 37𝑠 + 29
é x1 ù é x1 (0) ù é1 ù (𝑠 + 1)(𝑠 + 2)(𝑠 + 3)(𝑠 + 4)
y (t ) = [1 1 0]ê x2 ú ê x (0)ú = ê0ú
ê ú ê 2 ú ê ú 𝑋# 𝑠 2𝑠 $ − 21𝑠 − 24
êë x3 úû êë x3 (0) úû êë2úû 𝑿 𝑠 = 𝑋$ 𝑠 = (𝑠 + 1)(𝑠 + 2)(𝑠 + 3)(𝑠 + 4)
𝑋' 𝑠
𝑠(2𝑠 $ − 21𝑠 − 24)
𝑠𝑿 𝑠 − 𝒙 0 = 𝑨𝑿 𝑠 + 𝑩𝑼 𝑠
(𝑠 + 1)(𝑠 + 2)(𝑠 + 3)(𝑠 + 4)
𝒀 𝑠 = 𝑪𝑿 𝑠 + 𝑫𝑼 𝑠
𝑿 𝑠 = 𝑠𝑰 − 𝑨 SC 𝒙 0 + 𝑠𝑰 − 𝑨 SC 𝑩𝑼 𝑠
𝑋C(𝑠)
d ! eZ[d " eZfdeg
𝒀 𝑠 = 𝑪𝑿 𝑠 = 1 1 0 𝑋L(𝑠) = 𝑋C(𝑠)+ 𝑋[ 𝑠 =
(deZ)(de[)(de\)(deh)
𝑋T(𝑠)
Therefore, both the poles of the system and eigenvalues are -2, -3, and -4.
4.11 TIME DOMAIN SOLUTION OF STATE EQUATIONS
𝒙̇ = 𝑨𝒙 + 𝑩𝒖
𝒚 = 𝑪𝒙 + 𝑫𝒖
x(t ) = e x(0) + ò e
At A ( t -t )
B u (t ) dt
0
.
= 𝜱 𝑡 𝒙 0 + ^ 𝜱 𝑡 − 𝜏 𝑩𝒖 𝜏 𝑑𝜏
A
Zero-input response Zero-state response
.
𝒙(t) = 𝜱 𝑡 𝒙 0 + ^ 𝜱 𝑡 − 𝜏 𝑩𝒖 𝜏 𝑑𝜏
A
𝒙(𝑡) = 𝜱 𝑡 𝒙 0
SC 𝒙 U,V W𝑰S𝑨
ℒ𝑥 𝑡 = ℒ[𝜱 𝑡 𝒙 0 ] = 𝑠𝑰 − 𝑨 0 ⟹ ℒ SC 𝑠𝑰 − 𝑨 SC = ℒ SC
YZ[ W𝑰S𝑨
=𝜱 𝑡
Exercise: If u(t) is a unit step find the state-transition matrix and then solve for x(t)
0 1 0
𝒙̇ 𝑡 = 𝒙 𝑡 + 𝑢 𝑡
−8 −6 1
1
𝒙 0 =
0
Represent the system in state space, where the outputs are the amounts of drug in each compartment.
1. Assume dosage is released at a rate proportional to concentration.
d
x1 = - K1 x1
dt
2. Assume input(/output) flow rate into(/out) any given compartment is proportional to the
concentration of the drug in the previous(/its own) compartment. Then,
d
x2 = K1 x1 - K 2 x2
dt
d
x3 = K 2 x2 - K 3 x3 + K 4 x4 - K 5 x3
dt
d
x4 = K 5 x3 - K 4 x4
dt
d
x5 = K 3 x3
dt
3. Define the state vector as the dosage amount in each compartment. Then,
é x1 ù é- K1 0 0 0 0ù é x1 ù
êx ú ê K - K2 0 0 0ú ê x2 ú
d ê 2
ú ê 1
úê ú
ê x3 ú = ê 0 K2 - ( K3 + K5 ) K 4 0ú ê x3 ú
dt ê ú ê úê ú
ê x4 ú ê 0 0 K5 - K4 0ú ê x4 ú
êë x5 úû êë 0 0 K3 0 0úû êë x5 úû
1 0 0 0 0
0 1 0 0 0
𝒚= 0 0 1 0 0 𝒙
0 0 0 1 0
0 0 0 0 1
CHALLANGE: STORAGE OF WATER IN AQUIFERS (UNDERGROUND WATER SUPPLIES)
An aquifer system consists of a number of interconnected natural storage tanks. Natural water
flows through the sand and sandstone, changing the water levels in the tanks on its way to the
sea. A water conservation policy can be established whereby water is pumped between tanks
to prevent its loss to the sea.
Represent the aquifer system
in state space, where the state
variables and the outputs are
the heads of each tank.
Ø Each qn is the natural water flow to the sea and 𝑞! = 𝐺! (ℎ! − ℎ!"# )
Ø q02 , q03 are flows from the tanks for irrigation, industry, and homes
Ø q21 is created by the water conservation policy to prevent loss to the sea
If h1<H1 then water will be pumped from Tank2 to Tank1
If h1>H1 then water will be pumped back to Tank2 to prevent loss to the sea.
Flow is proportional to the difference between 𝐻# 𝑎𝑛𝑑 ℎ# ∶ 𝑞$# = 𝐺$# 𝐻# − ℎ#
Ø The net flow into a tank is proportional to the rate of change of head in each tank. Thus,
𝑑ℎ!
𝐶! = 𝑞4! − 𝑞(! + 𝑞!5# − 𝑞! + 𝑞 !5# ! − 𝑞!(!"#)
𝑑𝑡
TIME RESPONSE
4.1 INTRODUCTION
(1) We would like to
control/evaluate (2) Can be represented
by transfer function
Homogeneous solution.
(If the system is stable, it is also called Particular solution, steady-state response
transient response.) Depends on the input.
Depends only on the system, not the input.
Is there a relationship between the pole/zero locations and time response of a system?
Poles and Zeros of a first-order system: An Example
2 3 −5𝑡
𝑐 𝑡 = + 𝑒
5 5
System 1 System 2
1
When 𝑡 = , → 𝑒 −𝑎𝑡 ȁ𝑡=1/𝑎 = 𝑒 −1 = 0.37
𝑎
𝑐 𝑡 = 𝐾1 𝑒 −𝜎1𝑡 + 𝐾2 𝑒 −𝜎2𝑡
𝑐 𝑡 = 𝐴 cos(𝑤1 𝑡 − 𝜙)
𝑐 𝑡 = 𝐾1 𝑒 −𝜎1𝑡 + 𝐾2 𝑡𝑒 −𝜎2𝑡
4.5 THE GENERAL SECOND-ORDER SYSTEM
Natural Frequency, 𝑤𝑛 : The frequency of oscillation of the system without damping.
𝑏
𝐺 𝑠 = 2
𝑠 + 𝑎𝑠 + 𝑏
𝑤𝑛2
𝐺 𝑠 = 2
𝑠 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2
𝜎 𝑤𝑑
Attenuation Damped frequency
4.6 UNDERDAMPED SECOND-ORDER SYSTEMS
𝑤𝑛2
𝐺 𝑠 = 2
𝑠 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2
𝜁
𝑤𝑛2 𝐾1 𝐾2 𝑠 + 𝐾3 1 𝑠 + 𝜁𝑤𝑛 + 2 𝑤𝑛 1 − 𝜁 2
1−𝜁
𝐶 𝑠 = = + 2 = −
𝑠(𝑠 2 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2 ) 𝑠 𝑠 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2 𝑠 (𝑠 + 𝜁𝑤𝑛 )2 +𝑤𝑛2 (1 − 𝜁 2 )
1
𝑐 𝑡 =1− 𝑒 −𝜁𝑤𝑛𝑡 cos(𝑤𝑛 1 − 𝜁 2 t − ϕ)
1 − 𝜁2
𝜁
ϕ= tan−1 ( )
1− 𝜁2
𝑤𝑛2 𝜋
𝐺 𝑠 = 2 C s = G s R(s) Peak time: 𝑇𝑝 =
𝑠 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2 𝑤𝑛 1−𝜁 2 −𝜁𝜋
൘
1−𝜁2
The poles of a transfer function are Percent overshoot: %𝑂𝑆 = 𝑒 x 100
𝑠1,2 = −𝜁𝑤𝑛 ± 𝑤𝑛 𝜁 2 − 1 4
Settling time: 𝑇𝑠 =
𝜁𝑤𝑛
𝑤𝑛2
𝐺 𝑠 = 2 C s = G s R(s)
𝑠 + 2𝜁𝑤𝑛 𝑠 + 𝑤𝑛2
𝑠1,2 = −𝜁𝑤𝑛 ± 𝑤𝑛 𝜁 2 − 1
Thus, for a desirable transient response of a second-order system, the damping ratio must
be between 0.4 and 0.8.
Note that, fastest response without oscillation is the critically damped response.
Problem: Given the pole plot shown in figure below, find 𝜁, 𝑤𝑛 , 𝑇𝑝 , %𝑂𝑆, 𝑎𝑛𝑑𝑇𝑠 .
𝑠1,2 = −𝜁𝑤𝑛 ± 𝑤𝑛 𝜁 2 − 1 = −3 ± 𝑗7
7
𝜁 = cos 𝜃 = cos[tan−1 ( )] = 0.394
3
𝑤𝑛 = 72 + 32 = 7.616
𝜋 𝜋
𝑇𝑝 = = = 0.449
𝑤𝑛 1−𝜁 2 7
−𝜁𝜋
൘
%𝑂𝑆 = 𝑒 1−𝜁 2 x 100 = 26%
4 4
𝑇𝑠 = = = 1.33 𝑠𝑒𝑐𝑜𝑛𝑑𝑠
𝜁𝑤𝑛 3
Problem: Given the system shown in figure below, find J and D to yield 20%
overshoot and a settling time of 2 seconds for a step input torque T(t).
1ൗ
𝐽
𝐺 𝑠 =
𝐷 𝐾
𝑠2 + 𝑠 +
𝐽 𝐽
𝐷
𝐾 2𝜁𝑤𝑛 =4=
From the transfer function G(s): 𝑤𝑛 = 𝑎𝑛𝑑 𝐽
𝐽
𝐷 𝐽
2𝜁𝑤𝑛 = 𝜁=
4
=2
𝐽 𝜁=2 = 0.456
𝐽 𝐾
2𝑤𝑛 𝐾
𝐽
4 = 0.052 ⟹
From the problem statement : 𝑇𝑠 = =2 𝐾
𝜁𝑤𝑛
−𝜁𝜋
൘
1−𝜁 2 𝜁=0.456
𝐷 = 1.04
%𝑂𝑆 = 𝑒 x 100 = 20%
𝐽 = 0.26
4.7 SYSTEM RESPONSE WITH ADDITIONAL POLES
Up to now, we analyzed systems with one or two poles.
Note that the formulae describing OS%, Ts and Tp are derived only for a system with two
complex poles and no zeros!
What about if a system has more than two poles or has zeros ?
𝐴 𝐵 𝑠 + 𝜁𝑤𝑛 + 𝐶𝑤𝑑 𝐷
𝐶 𝑠 = + +
𝑠 𝑠 + 𝜁𝑤𝑛 2 + 𝑤𝑑 2 𝑠 + 𝛼𝑟
𝐴 𝐵 𝑠 + 𝜁𝑤𝑛 + 𝐶𝑤𝑑 𝐷
𝐶 𝑠 = + +
𝑠 𝑠 + 𝜁𝑤𝑛 2 + 𝑤𝑑 2 𝑠 + 𝛼𝑟
𝐴 𝐵 𝑠 + 𝜁𝑤𝑛 + 𝐶𝑤𝑑 𝐷
𝐶 𝑠 = + +
𝑠 𝑠 + 𝜁𝑤𝑛 2 + 𝑤𝑑 2 𝑠 + 𝛼𝑟
𝐴 𝐵 𝑠 + 𝜁𝑤𝑛 + 𝐶𝑤𝑑 𝐷
𝐶 𝑠 = + +
𝑠 𝑠 + 𝜁𝑤𝑛 2 + 𝑤𝑑 2 𝑠 + 𝛼𝑟
The zero
affects the amplitude of a response
Initially, the response may turn toward the negative direction even though the final value is
positive.
If a motorcycle or airplane was a nonmimimum-phase system, it would initially veer left when
commanded to steer right.
TIME RESPONSE
4.1 INTRODUCTION
(1) We would like to
control/evaluate (2) Can be represented
by transfer function
Homogeneous solution.
(If the system is stable, it is also called Particular solution, steady-state response
transient response.) Depends on the input.
Depends only on the system, not the input.
Is there a relationship between the pole/zero locations and time response of a system?
Poles and Zeros of a first-order system: An Example
System 1 System 2
When /
Rise time: Time for the waveform to go Settling Time: Time for the response to reach, and
from 0.1 to 0.9 of its final value. stay within, 2% of its final value.
Laboratory results of an output
FIRST-ORDER TRANSFER FUNCTIONS VIA TESTING for a step input
What about if it is not possible/practical to obtain a
system’s transfer function analytically?
A possible approach:
• Apply a step input
• Measure the time constant and steady-state
value from the response
• Write the transfer function by using
measured values.
𝑏
𝐺 𝑠 =
𝑠 + 𝑎𝑠 + 𝑏
and
can be used to 𝑤
describe the 𝐺 𝑠 =
𝑠 + 2𝜁𝑤 𝑠 + 𝑤
characteristics
of the response. The poles of a transfer
function are
,
SECOND-ORDER RESPONSE AS A FUNCTION OF DAMPING RATIO
1
𝑐 𝑡 = 1− 𝑒 cos(𝑤 1 − 𝜁 t − ϕ)
1−𝜁
𝜁
ϕ = tan ( )
1−𝜁
Peak time:
The poles of a transfer function are Percent overshoot:
, Settling time:
𝑤
𝐺 𝑠 = C s = G s R(s)
𝑠 + 2𝜁𝑤 𝑠 + 𝑤
,
Thus, for a desirable transient response of a second-order system, the damping ratio must
be between 0.4 and 0.8.
Note that, fastest response without oscillation is the critically damped response.
Problem: Given the pole plot shown in figure below, find
,
Problem: Given the system shown in figure below, find J and D to yield 20%
overshoot and a settling time of 2 seconds for a step input torque T(t).
=4=
From the transfer function G(s):
= =
=
=0.456
4.7 SYSTEM RESPONSE WITH ADDITIONAL POLES
Up to now, we analyzed systems with one or two poles.
Note that the formulae describing OS%, Ts and Tp are derived only for a system with two
complex poles and no zeros!
What about if a system has more than two poles or has zeros ?
𝛼 =𝛼 𝑎𝑛𝑑 𝛼 ≅ 𝜁𝑤 𝛼 =𝛼 𝑎𝑛𝑑 𝛼 ≫ 𝜁𝑤 𝛼 =∞
Consider a three-pole system with complex
poles and a third pole on the real axis. Step
response of a such system is
The zero
affects the amplitude of a response
Initially, the response may turn toward the negative direction even though the final value is
positive.
If a motorcycle or airplane was a nonmimimum-phase system, it would initially veer left when
commanded to steer right.
Block Diagram Algebra
5.1 INTRODUCTION
Many systems are composed
of multiple subsytems, as in the
figure.
We will now
examine some common
topologies for interconnecting
subsytems and
derive the single transfer
function representation.
5.2 BLOCK DIAGRAMS
It represents the mathematical relationships between the elements of the system.
The transfer function of each component is placed in box, and the input-output relationships
between components are indicated by lines and arrows.
New schematic
elements:
Summing junction
and pickoff points.
CASCADE FORM
Cascaded
subsytems :
Equivalent transfer
function :
PARALLEL FORM
Paralle
subsytems :
Equivalent transfer
function :
FEEDBACK FORM
Feedback
control system:
𝐶𝐶 𝑠𝑠 = 𝐸𝐸 𝑠𝑠 𝐺𝐺 𝑠𝑠
𝐸𝐸 𝑠𝑠 = 𝑅𝑅(𝑠𝑠) ∓ 𝐶𝐶 𝑠𝑠 𝐻𝐻(𝑠𝑠)
Simplified model:
𝐶𝐶 𝑠𝑠 = (𝑅𝑅(𝑠𝑠) ∓ 𝐶𝐶 𝑠𝑠 𝐻𝐻(𝑠𝑠)) 𝐺𝐺(𝑠𝑠)
1 ± 𝐻𝐻 𝑠𝑠 𝐺𝐺 𝑠𝑠 𝐶𝐶 𝑠𝑠 = 𝐺𝐺 𝑠𝑠 𝑅𝑅(𝑠𝑠)
Moving a block to
the right past a
summing junction
Moving a block to
the left past a
pickoff point
Moving a block to
the right past a
pickoff point
Problem: Reduce the block diagram to a single transfer function
Problem: Reduce the block diagram to a single transfer function
Y (s)
T (s) =
R( s)
2s + 4
2
T (s) = s
2s + 4 2s + 4 Y
1+
s2
s 2 + 2s + 4
2s + 4
T (s) = 2
s + 2s + 4
Problem: Reduce the block diagram to a single transfer function
Problem:
Reduce the
block diagram
to a single
transfer
function
STABILITY
6.1 INTRODUCTION
Total response= Natural response + Forced response
The pole at s=1 yields pure The pole at s=-1 yields pure
exponentially increasing response. exponential decay.
If the cone is resting on its base and is tipped slightly, it returns to its
original equilibrium position. This response is STABLE.
If the cone rests on its side and is displaced slightly, it rolls with no tendency
to leave the position on its side. This response is NEUTRAL.
If the cone is placed on its tip and released, it falls onto its side. This
response is UNSTABLE.
As oscillation begins
At catastrophic failure
on November 7, 1940.
EXAMPLE: BI-BO CRITERION
Q. If the step function is applied at the input of
continuous system and the output remains below a
certain level for all time, is the system stable?
EXAMPLE: BI-BO CRITERION
Q.If the step function is applied at the input of
continuous system and the output remains below a
certain level for all time, is the system stable?
This means that all the poles are in the left half-plane.
sn : an an2 an4
sn1 : an1 an3 an5
Then add subsequent
rows to complete the sn : an an 2 an 4
Routh table:
s n 1 : an1 an 3 a n 5
s n2 : bn1 bn 3 bn5
s n 3 : cn1 cn 3 cn 5
2
s :
?! s :
1
s :
0
hn 1
Compute elements for the
3rd row: sn : an an2 an4
sn1 : an1 an3 an5
1 an an2 sn2 : bn1 bn3 bn5
bn1 ,
an1 an1 an3 sn3 : c n1 c n3 c n5
1 an an4
bn3 ,
an1 an1 an5 s2 : * *
1 an1 an3 s1 : *
c n1
bn1 bn1 bn3 s0 : *
EXAMPLE 1: MAKE THE ROUTH TABLE
INTERPRETING THE ROUTH TABLE
Answer:
All the coefficients are positive and nonzero.
6
s : 1 3 1 4
s5 : 4 2 4 0
s4 : ? ? ?
s3 : ? ? ?
s2 : ? ?
1
s : ? ?
s0 : ?
a(s) s 4s 3s 2s s 4s 4
6 5 4 3 2
s6 : 1 3 1 4
s5 : 4 2 4 0
1 2 3 4 10 5
s4 : 5 2 0 4 4 4 2
s3 : ? ? ?
2 1 4 1 4 0
s : ? ? 0
1
4 4
s : ? ?
s0 : ? 1 0 4 4 16
4
4 4
a(s) s 6 4s5 3s 4 2s3 s 2 4s 4
6
s : 1 3 1 4
s5 : 4 2 4 0
s4 : 5 2 0 4
4 0 25 2
s 3 : 2 12 5 0
52
(2) 2
s2 : ? ?
1
s : ? ? 4 4 45 2 32 20 12
0 52 5 5
s : ?
a(s) s 4s 3s 2s s 4s 4
6 5 4 3 2
s6 : 1 3 1 4
s5 : 4 2 4 0
The elements of
s4 : 52 0 4 the 1st column
s3 : 2 12 5 0 are not all positive:
s2 : 3 4
the system is unstable
s1 : 76 15 0
s0 : 4
6.3 ROUTH-HURWITZ CRITERION: SPECIAL CASES
Two Special cases:
(1) The Routh table have a zero only in the first column of a row
(2) The Routh table have an entire row that consists of zeros.
If is chosen positive
very small value then
there are 2 sign changes
(from s3 row to s2 row
and from s2 row to s1
row) in the first column.
Whether
𝑑𝑃(𝑠)
𝑃 𝑠 = 𝑠 4 + 3𝑠 2 + 2 ; = 4𝑠 3 + 6𝑠 + 0
𝑑𝑠
Two sign changes in the first column, therefore 2 poles in the RHP.
No sign changes from s4 row to s0 row. All four of the poles on the jw-
axis.
Remaining two poles should be in the LHP.
STABILITY DESIGN VIA ROUTH-HURWITZ
Problem: Find the range of gain, K, that will cause the system to
be stable, unstable, and marginally stable.
1
𝐶(𝑠) 𝐾 𝐾
𝑠(𝑠 + 7)(𝑠 + 11)
𝑇 𝑠 = = = 3
𝑅(𝑠) 1 + 𝐾 1 𝑠 + 18𝑠 2 + 77𝑠 + 𝐾
𝑠(𝑠 + 7)(𝑠 + 11)
𝑄 𝑠 = 𝑠 3 + 18𝑠 2 + 77𝑠 + 𝐾 = 0
Characteristic Equation
(denominator of the closed-loop
transfer function)
𝑄 𝑠 = 𝑠 3 + 18𝑠 2 + 77𝑠 + 𝐾 = 0
𝑠+1
𝑌(𝑠) 𝐾 𝐾(𝑠 + 1)
𝑠(𝑠 − 1)(𝑠 + 6)
𝑇 𝑠 = = = 3
𝑅(𝑠) 1 + 𝐾 𝑠 + 1 𝑠 + 5𝑠 2 + 𝐾 − 6 𝑠 + 𝐾
𝑠(𝑠 − 1)(𝑠 + 6)
𝑄 𝑠 = 𝑠 3 + 5𝑠 2 + 𝐾 − 6 𝑠 + 𝐾 = 0
Characteristic Equation
(denominator of the closed-loop
transfer function)
Q( s ) s 3 5s 2 ( K 6) s K
s0 : K
K 7.5
STABILITY VERSUS TWO PARAMETER RANGE
Problem: Consider a Proportional-Integral (PI) control such as:
Characteristic equation
K1 1
Q( s) 1 K 0
s ( s 1)( s 2)
Q( s ) s 3 3s 2 (2 K ) s K1 0
s 3s ( 2 K )s K1 0
3 2
s3 : 1 2 K
s2 : 3 K1
K1
s : ( 6 3K K1 ) 3
1 K1 0 and K 2
3
s0 : K1
STEADY-STATE ERRORS Assoc.Dr. Güleser K Demir
Assist.Dr. Hatice Doğan
7.1 INTRODUCTION
Error Signal
Reference Input Output
(Set point) Controller Plant
Definition:
Steady-state error is the difference between the input and the output as 𝑡 → ∞.
Consider a position control system where the outout position follows the input
commanded position. Inputs vary with target type (/application).
Inputs
Application to Stable Systems
For a Step Output 1 has zero steady- For a Output 1 has zero steady-state
input state error, and ramp error,
input
Output 2 has a finite steady- Output 2 has a finite steady-
state error,𝑒2 ∞ . state error,𝑒2 ∞ .
𝐶(𝑠) 𝐺(𝑠)
𝑇 𝑠 = =
𝑅(𝑠) 1 + 𝐺(𝑠)
𝐶 𝑠 = 𝑅 𝑠 𝑇(𝑠)
𝑒 ∞ = lim𝑠 𝑅 𝑠 [1 − 𝑇 𝑠 ]
𝑠→0
Example: Find the steady-state error if 𝑇 𝑠 = 𝐶(𝑠) = 5
and the input is a unit step.
𝑅(𝑠) 𝑠 2 + 7𝑠 + 10
𝐶 𝑠 = 𝑅 𝑠 𝑇(𝑠)
𝑠 2 + 7𝑠 + 5
𝐸 𝑠 =𝑅 𝑠 −𝐶 𝑠 ⇒ 𝐸 𝑠 =𝑅 𝑠 1−𝑇 𝑠 =
𝑠(𝑠 2 + 7𝑠 + 10)
𝑒 ∞ = lim 𝑒 𝑡 = lim 𝑠𝐸(𝑠)
𝑡→∞ 𝑠→0
𝑠 2 +7𝑠+5 1
𝑒 ∞ = lim𝑠 𝑅 𝑠 [1 − 𝑇 𝑠 ] = lim 𝑠 =
𝑠→0 𝑠→0 𝑠(𝑠 2 +7𝑠+10) 2
Steady-State Error in Terms of G(s)
𝐶 𝑠 = 𝐸 𝑠 𝐺(𝑠)
𝐸 𝑠 =𝑅 𝑠 −𝐶 𝑠
𝐸 𝑠 = 𝑅 𝑠 − 𝐸 𝑠 𝐺(𝑠)
𝐸 𝑠 + 𝐸 𝑠 𝐺(𝑠) = 𝑅 𝑠
𝑅(𝑠)
𝐸 𝑠 =
1 + 𝐺(𝑠)
𝑠𝑅(𝑠)
𝑒 ∞ = lim 𝑒 𝑡 = lim 𝑠𝐸 𝑠 = lim
𝑡→∞ 𝑠→0 𝑠→0 1 + 𝐺(𝑠)
Steady-State Error in Terms of G(s)
𝑠𝑅(𝑠)
𝑒 ∞ = lim 𝑒 𝑡 = lim 𝑠𝐸 𝑠 = lim If G(s) has at • 𝐺 𝑠 = 𝑛(𝑠+𝑧1)(𝑠+𝑧2)…
𝑡→∞ 𝑠→0 𝑠→0 1 + 𝐺(𝑠) 𝑛≥1
least one 𝑠 (𝑠+𝑝1 )(𝑠+𝑝2 )…
(𝑠+𝑧1 )(𝑠+𝑧2 )…
If G(s) has at •𝐺 𝑠 =
𝑠 𝑛 (𝑠+𝑝1 )(𝑠+𝑝2 )…
𝑛≥2
least two pole at • lim 𝑠𝐺 𝑠 = ∞ then 𝑒 ∞ =0
𝑠→0
the origin • Zero error
Ramp Input , R(s)=1/s2
𝑠𝑅(𝑠)
𝑒 ∞ = lim 𝑠𝐸 𝑠 = lim • 𝑛=1
𝑠→0 𝑠→0 1 + 𝐺(𝑠) If G(s) has only
(𝑠+𝑧 )(𝑠+𝑧 )… 𝑧 𝑧 …
one pole at the • lim 𝑠𝐺 𝑠 = lim 𝑠 𝑠 (𝑠+𝑝1 )(𝑠+𝑝2
𝑠→0 𝑠→0 1 2 )…
= 𝑝1 𝑝2 …
1 2
1
𝑠( 2 ) origin • Finite error
𝑒 ∞ = lim 𝑠
𝑠→0 1 + 𝐺(𝑠)
•𝑛=0
1 1 If G(s) has no (𝑠+𝑧 )(𝑠+𝑧 )…
• lim 𝑠𝐺 𝑠 = lim 𝑠 (𝑠+𝑝1 )(𝑠+𝑝2 )… = 0
𝑒 ∞ = lim = poles at the origin 𝑠→0 𝑠→0 1 2
𝑠→0 𝑠 + 𝑠𝐺(𝑠) lim 𝑠𝐺(𝑠)
𝑠→0 • Infinite error
Steady-State Error in Terms of G(s)
(𝑠+𝑧1 )(𝑠+𝑧2 )…
If G(s) has at least •𝐺 𝑠 =
𝑠 𝑛 (𝑠+𝑝1 )(𝑠+𝑝2 )…
𝑛≥3
three pole at the • lim 𝑠 2 𝐺 𝑠 = ∞ then 𝑒 ∞ =0
Parabolic Input , R(s)=1/s3 origin 𝑠→0
• Zero error
𝑠𝑅(𝑠)
𝑒 ∞ = lim 𝑠𝐸 𝑠 = lim
𝑠→0 𝑠→0 1 + 𝐺(𝑠)
If G(s) has only • 𝑛=2
(𝑠+𝑧 )(𝑠+𝑧2 )… 𝑧 𝑧 …
1 two pole at the • lim 𝑠 2 𝐺 𝑠 = lim 𝑠 2 𝑠2 (𝑠+𝑝1
𝑠→0 𝑠→0 1 )(𝑠+𝑝2 )…
= 𝑝1 𝑝2 …
𝑠( 3 ) origin
1 2
For a 1
parabolic 𝑒 ∞ =
lim 𝑠 2 𝐺(𝑠)
input 𝑠→0
System type:
The number of pole at the origin, or
The number of pure integration in the
forward path.
7.4 STEADY-STATE ERROR SPECIFICATIONS
If a control system has The system is stable.
the specification Kv =
1000, we can draw
several conclusions:
The system is of Type 1, since only Type 1 systems have
Kv's that are finite constants. Recall that Kv = 0 for Type
0 systems, whereas Kv = for Type 2 systems.
Since the system is Type 1, the error stated in the problem must apply to a ramp input;
only a ramp yields a finite error in a Type 1 system.
1
𝑒 ∞ = lim 𝑒 𝑡 = lim 𝑠𝐸 𝑠 = = 0.1
𝑡→∞ 𝑠→0 𝐾𝑣
5x𝐾
𝐾𝑣 = 10 = lim 𝑠𝐺 𝑠 = ⇒ 𝐾 = 672
𝑠→0 6x7x8
7.5 STEADY-STATE ERROR FOR DISTURBANCES
Disturbance/Unwanted input
𝑒 ∞ = lim 𝑠𝐸 𝑠
𝑠→0
𝑠 𝑠𝐺2 𝑠
𝑒 ∞ = lim 𝑅 𝑠 − lim 𝐷(𝑠)
𝑠→0 1 + 𝐺1 (𝑠)𝐺2 (𝑠) 𝑠→0 1 + 𝐺1 (𝑠)𝐺2 (𝑠)
𝑒 ∞ = 𝑒𝑅 ∞ + 𝑒𝐷 (∞)
C s = R s − E(s)
Steady-state error due
𝐶 𝑠 = 𝐸 𝑠 𝐺1 𝑠 𝐺2 𝑠 + 𝐷(𝑠)𝐺2 (𝑠) to disturbance.
In which conditions this
𝑅 𝑠 − 𝐸(𝑠) = 𝐸 𝑠 𝐺1 𝑠 𝐺2 𝑠 + 𝐷(𝑠)𝐺2 (𝑠) error reduces?
1 𝐺2 𝑠
𝐸 𝑠 = 𝑅 𝑠 − 𝐷(𝑠)
1 + 𝐺1 (𝑠)𝐺2 (𝑠) 1 + 𝐺1 (𝑠)𝐺2 (𝑠)
𝑒 ∞ = lim 𝑠𝐸 𝑠
𝑠→0
𝑠 𝑠𝐺2 𝑠
𝑒 ∞ = lim 𝑅 𝑠 − lim 𝐷(𝑠)
𝑠→0 1 + 𝐺1 (𝑠)𝐺2 (𝑠) 𝑠→0 1 + 𝐺1 (𝑠)𝐺2 (𝑠)
7.6 STEADY-STATE ERROR FOR NONUNITY FEEDBACK SYSTEMS
It is actuating signal.
𝐺𝑒 (𝑠)
𝐺(𝑠)
𝐺𝑒 𝑠 = 1+𝐺 𝑠 𝐻 𝑠 −𝐺(𝑠)
𝐺 𝑠 =
100 Do not say the system is TYPE 1 by just looking 𝐺 𝑠 .
𝑠(𝑠 + 10) Convert the system into an equivalent unity feedback system and
check the equivalent forward transfer function.
1
𝐻 𝑠 =
(𝑠 + 5)
𝐺(𝑠) 100(𝑠 + 5) The system is TYPE 0, since there are no
𝐺𝑒 𝑠 = = 3
1 + 𝐺 𝑠 𝐻 𝑠 − 𝐺(𝑠) 𝑠 + 15𝑠 2 − 50𝑠 − 400 pure integrations (/no pole at the origin).
100x5 5
𝐾𝑝 = lim 𝐺𝑒 𝑠 = =−
𝑠→0 −400 4
1 1 The negative value implies that the output is
𝑒 ∞ = = = −4 larger than the input.
1 + 𝐾𝑝 1 − 5/4
7.7 SENSITIVITY
The degree to which changes in system parameters affect system transfer functions, and
hence performance, is called sensitivity.
𝐾
𝐹= 𝐾 = 10, 𝑎 = 100 ⇒ 𝐹 = 0.091
𝐾+𝑎
300 − 100 0.32 − 0.091
=2 = −0.65
100 0.091
(𝟐𝟎𝟎% fractional change) (−65% fractional change)
System sensitivity is the ratio of the fractional change in the function to the
fractional change in the parameter as the fractional change of the parameter
approaches zero.
𝑃 ∆𝐹
𝑆𝑃𝐹 = lim
∆𝑃→0 𝐹 ∆𝑃
𝑃 𝜕𝐹
𝑆𝑃𝐹 =
𝐹 𝜕𝑃
Example: Calculate the sensitivity of the closed loop transfer function to changes in the
parameter a. How would you reduce the sensitivity.
𝐾
𝑠(𝑠 + 𝑎) 𝐾
𝑇 𝑠 = = 2
𝐾 𝑠 + 𝑎𝑠 + 𝐾
1+
𝑠(𝑠 + 𝑎)
𝐾
𝐾𝑝 = 𝑙𝑖𝑚 𝐺 𝑠 = 𝑙𝑖𝑚
𝑠→0 𝑠→0 (𝑠+𝑎)(𝑠+𝑏)
1 1 𝑎𝑏
𝑒 ∞ = = =
1 + 𝐾𝑝 1 + 𝐾 𝑎𝑏 + 𝐾
𝑎𝑏
𝑎 𝜕𝑒 𝑎 𝑎𝑏 + 𝐾 𝑏 − 𝑎𝑏 2 𝐾
𝑆𝑎𝑒 = = =
𝑒 𝜕𝑎 𝑎𝑏 (𝑎𝑏 + 𝐾)2 𝑎𝑏 + 𝐾
𝑎𝑏 + 𝐾
𝐾 𝜕𝑒 𝐾 −𝑎𝑏 −𝐾
𝑆𝐾𝑒 = = =
𝑒 𝜕𝐾 𝑎𝑏 (𝑎𝑏 + 𝐾)2 𝑎𝑏 + 𝐾
𝑎𝑏 + 𝐾
ROOT LOCUS PLOTS
Goal: Learn a specific technique which shows how
changes in one of a system’s parameter
(usually the controller gain, K)
will modify the location of the closed-loop poles
in the s-domain.
Table1: Pole locations for different
K values
Pole plot from the Table-1.
Pole plot from the Table-1.
Root-locus.
8.3 PROPERTIES OF THE ROOT_LOCUS 𝑌(𝑠) 𝑝(𝑠) 𝐾𝐺(𝑠)
𝑇 𝑠 = = =
𝑅(𝑠) 𝑞(𝑠) 1 + 𝐾𝐺(𝑠)
Closed-loop transfer function
Characterictic equation
K is a variable parameter,
0≤𝐾≤∞
𝑞 𝑠 = 1 + 𝐾𝐺 𝑠 ⇒ 𝐾𝐺 𝑠 = −1
𝐾𝐺(𝑠) ⌊𝐾𝐺 𝑠 = −1 + 𝑗0
𝒋 𝟐
If 𝑠! = −𝟐 + is a closed-loop pole for some value of gain,
𝟐
Then the angles of the zeros minus the angles of poles must
equal an odd multiple of 180°.
𝜃! + 𝜃" − 𝜃# − 𝜃$ = 180°
𝒋 𝟐
Therefore 𝑠! = −𝟐 + 𝟐
is a point on the root locus for some
value of gain K.
2
1 Π 𝑝𝑜𝑙𝑒 𝑙𝑒𝑛𝑔𝑡ℎ𝑠 1.22
𝐾= = = 2 = 0.33
𝐺 𝑠 𝐻(𝑠) Π 𝑧𝑒𝑟𝑜 𝑙𝑒𝑛𝑔𝑡ℎ𝑠 (2.12 )(1.22)
3. Real-axis segments: The root locus exists to the left of an odd number of real-
axis, finite open-loop poles and/or finite open-loop zeros
4. Starting and ending points: The root locus
Begins (zero gain) at the finite and infinite poles of G(s)H(s) and
Ends (infinite gain) at the finite and infinite zeros of G(s)H(s).
𝑁$ (𝑠)
𝐾𝐺(𝑠) 𝐾 𝐾𝑁$ (𝑠)𝐷% (𝑠)
𝐷$ (𝑠)
𝑇 𝑠 = = =
1 + 𝐾𝐺 𝑠 𝐻(𝑠) 𝑁$ (𝑠)𝑁% (𝑠) 𝐷$ 𝑠 𝐷% 𝑠 + 𝐾𝑁$ (𝑠)𝑁% (𝑠)
1+𝐾
𝐷$ (𝑠)𝐷% (𝑠)
The root locus approaches straight lines as asymptotes as the locus approaches infinity.
To find the break-in and break-away points take the derivative of gain and solve it.
89
8:
=0
; ;
where 𝐾 = −< :
= −= : >(:)
7. The jw-Axis Crossings
To find the jw-axis crossing, we can use the Routh-Hurwitz criterion, as follows:
Forcing a row of zeros in the Routh table will yield the gain; going back one row to the
even polynomial equation and solving for the roots yields the frequency at the imaginary-
axis crossing.
ANGLE OF DEPARTURE The angle of locus departure from a pole is
the difference between the net angle due to all
other poles and zeros and the criterion angle of
±180° (2k + 1),
ANGLE OF ARRIVAL
The angle of locus arrival at a zero is
the difference between the net angle due to all
other poles and zeros and the criterion angle of
±180° (2k + 1),
RULE #1
Assuming n poles and m zeros for G(s)H(s):
First step: Draw the n poles and m zeros of G(s)H(s) using x and o
respectively
APPLYING STEP #1
Draw the n poles and m zeros of G(s)H(s)
using x and o respectively.
1
G(s )H (s ) =
s(s + 1)(s + 2)
3 poles:
p1 = 0; p2 = -1; p3 = -2
No zeros
RULE #2
The loci on the real axis are to the left of an ODD number of REAL poles
and REAL zeros of G(s)H(s)
å p -åzi i
sa= n
n-m
m
± 180o (2l + 1)
fl =
n-m
Third step: Determine the n - m asymptotes of the root loci. Locate s = 𝜎N on the real
axis. Compute and draw angles. Draw the asymptotes using dash lines.
APPLYING STEP #3
Determine the n - m asymptotes:
Locate s = 𝜎& on the real axis:
p1 + p2 + p3 0 - 1 - 2
s a = 3 - 0 = 3 = -1
Compute and draw angles:
± 180 (2l + 1) l = 0,1, 2, !
fl =
n-m
ì ± 1800 (2 ´ 0 + 1)
f
ï 0 = = ± 60 0
ï 3-0
Þí
ïf = ± 180 (2 ´1 + 1) = ±1800
0
ïî 1 3-0
Draw the asymptotes using dash lines.
APPLYING STEP #3
Determine the n - m asymptotes:
Locate s = α on the real axis:
p1 + p2 + p3 0 - 1 - 2
s =a = = = -1
3-0 3
Compute and draw angles:
± 180 (2l + 1) l = 0,1, 2, !
fl =
n-m
ì ± 1800 (2 ´ 0 + 1)
f
ï 0 = = ± 60 0
ï 3-0
Þí
ïf = ± 180 (2 ´1 + 1) = ±1800
0
ïî 1 3-0
Draw the asymptotes using dash lines.
RULE #4
Given the characteristic equation is KG(s)H(s) = -1
- 3s 2 - 6s - 2 = 0
s1 = -1.5774, s2 = -0.4226
- 3s 2 - 6s - 2 = 0
s1 = -1.5774, s2 = -0.4226
RECALL RULE #1
Assuming n poles and m zeros for G(s)H(s):
1 + KG(s )H (s ) = 0
w = 0 or w = ± 2
EXAMPLE: Sketch the root locus and find the following.
a) The exact point and gain where the locus crosses jw axis
b) The breakaway point on the real axis,
c) The range of K within which the system is stable.
𝐾(𝑠 " − 4𝑠 + 20)
𝐺 𝑠 𝐻 𝑠 =
(𝑠 + 2)(𝑠 + 4)
𝑃𝑜𝑙𝑒𝑠: 𝑝! = −2 , 𝑝" = −4
𝑍𝑒𝑟𝑜𝑠: 𝑧! = 2 + 𝑗4 , 𝑧" = 2 − j4
10
𝐾𝐺 𝑠 𝐻 𝑠 = Problem! P1 is not a multiplying factor of the function.
(𝑠 + 2)(𝑠 + 𝑝! )
Solution: Create an equivalent system whose denominator is 1 + 𝑝! 𝐺 𝑠 𝐻(𝑠)
𝐾𝐺(𝑠) 10 10
𝑇 𝑠 = = =
1 + 𝐾𝐺 𝑠 𝐻(𝑠) 𝑠 " + 𝑝! + 2 𝑠 + 2𝑝! + 10 𝑠 " + 2𝑠 + 10 + 𝑝! (𝑠 + 2)
10
"
𝑇 𝑠 = 𝑠 + 2𝑠 + 10
𝑝 (𝑠 + 2) Now, sketch root locus for this function.
1+ " !
𝑠 + 2𝑠 + 10
10
𝑠 " + 2𝑠 + 10
𝑇 𝑠 =
𝑝 (𝑠 + 2)
1+ " !
𝑠 + 2𝑠 + 10
1. |H(jw)| versus w
2. Phase angle of H(jw) versus w.
2
The gain magnitude is many times expressed in terms
of decibels (dB)
dB = 20 log10 A
3
Real, First-Order Poles and Zeros
Consider the following transfer function where all the poles and zeros
are real and first-order
K ( s z1 ) K ( j z1 )
H (s) H ( j )
s ( s p1 ) j ( j p1 )
Kz1 (1 j z1 ) K 0 (1 j z1 )
H ( j )
p1 ( j )(1 p1 ) ( j )(1 j p1 )
j
K0 1 z1 1 K0 1
j j
H ( j ) ( 1 900 1 )
z1
900 1 j p 11
1 j p 1
4
K0 1 j
H ( j )
z1
1 j
p1
( ) 1 90 0 1 tan 1 ( / z1 ) 90 0 tan 1 ( / p1 )
5
The amplitude of H(jw) in decibels is
AdB 20 log10 H ( j )
K 0 1 j z1
AdB 20 log10
1 j p 1
The key point is to plot each term separately and then combine the
separate plots graphically.
6
General Form Of Transfer Function
K ( j ) 1 (1 j / z1 )[1 j 21 / k ( j / k ) 2 ]
H ( )
(1 j / p1 )[1 j 2 2 / n ( j / n ) 2 ]
K ( s ) 1 (1 s / z1 )[1 21s / k ( s / k ) 2 ]
H ( s ) s j
(1 s / p1 )[1 2 2 s / n ( s / n ) 2 ]
Four simple terms constitute the transfer function :
(1) Constant K
(2) ( s ) 1
(3)(1 s / a ) 1 includes 1 /(1 s / p1 ) or (1 s / z1 )
(4)[1 a1s a2 s 2 ]1
7
Constant Terms
8
Pole/Zero At The Origin
Zero at the origin: The plot of
20log10w is a straight line having a
slope of 20dB/decade that intersects
the 0 dB axis at w=1.
9
Simple Zero
j 0, 0
H dB 20 log10 1 20log101 0 as 0
z1 tan 1 45, z1
z1 90,
j
H dB 20 log10 1 20log10 as
z1 z1
10
Magnitude Approximation Of Bode Plot
z 3.01 0
10z 20.04 20
11
Phase Approximation Of Bode Plot
z 45 45
10z 84.29 90
12
Quadratic Pole/Zero
2
j 2 2 j
H dB 20 log10 1 0 as 0
n n
2
j 2 2 j
H dB 20 log10 1 40 log10 as
n
n n
0, 0
1 2 2 / n
tan 90, n
1 / n
2 2
180, 13
TABLE 1.A Summary Of Bode Straight-line Magnitude And
Phase Plots
Factor Magnitude phase
K
14
TABLE 1.B Summary Of Bode Straight-line Magnitude And
Phase Plots
Factor Magnitude phase
( j ) N
15
TABLE 1.C Summary Of Bode Straight-line Magnitude And
Phase Plots
Factor Magnitude phase
1
( j ) N
16
Table 1.D Summary Of Bode Straight-line Magnitude And
Phase Plots
1 j
N
Factor
z
Magnitude Phase
17
Table 1.E Summary Of Bode Straight-line Magnitude And
Phase Plots
1
Factor
(1 j / p ) N
Magnitude Phase
18
Table 1.F Summary Of Bode Straight-line Magnitude And
Phase Plots
2N
2 j j
Factor 1
n n
Magnitude Phase
19
Table 1.G Summary Of Bode Straight-line Magnitude And
Phase Plots
1
Factor
[1 2 j / k ( j / k ) ]
2 N
Magnitude Phase
20
Example 1
Construct the Bode plots for the transfer function.
200 j
H ( )
( j 2)( j 10)
Solution:
10 j
H ( )
(1 j / 2)(1 j / 10)
10 j
(90 tan 1 / 2 tan 1 / 10)
1 j / 2 1 j / 10
21
The magnitude and phase are
j
H dB 20 log10 10 20 log10 j 20 log10 1
2
j
20 log10 1
10
90 tan 1
tan 1
2 10
22
EXAMPLE 1
23
Example 2
Obtain the Bode plots for
j 10
H ( )
j ( j 5) 2
Solution:
0.4(1 j / 10)
H ( )
j (1 j / 5) 2
j j
H dB 20 log10 0.4 20 log10 1 20 log10 j 40 log10 1
10 5
1 1
0 tan 90 2 tan
10 5
24
25
26
Example 3
Draw the Bode plots for
s 1
H(s) 2
s 60 s 100
1 / 100(1 j )
H ( )
1 j 6 / 10 ( j / 10) 2
j 6 2
H dB 20 log10 100 20 log10 1 j 20 log10 1
10 100
1 6 / 10
1
0 tan tan
1 / 100
2
27
28
29
Example 4
Given the Bode plot in Figure 1, obtain the transfer
function H().,
30
Solution:
40 20 log10 K log10 K 2
K 102 100
100 j
H ( )
(1 j / 1)(1 j / 5)(1 j / 20)
j104
( j 1)( j 5)( j 20)
104 s
H( s) , s j
( s 1)( s 5)( s 20)
31
GAIN MARGIN AND PHASE MARGIN
Gain margin:
Phase margin:
32
GAIN MARGIN AND PHASE MARGIN
Magnitude
(dB)
20dB
0dB
-60dB Magnitude
curve
Phase
curve
0º Phase Crossover
Phase margin with -180º line
-90º
-180º
-270º
Phase Log ω
(Degree)
33
GAIN CROSS-OVER, PHASE CROSS-OVER
Gain Cross-Over Frequency
The frequency at which the magnitude plot is having the
magnitude of zero dB is known as gain cross over frequency. It
is denoted by ωg or ωgc.
34
Bode Plot & Stability
1. Stable
If wg<wp => GM & PM are positive
2. Unstable
If wg>wp => GM & PM are negative
3. Marginally stable
If wg=wp => GM & PM are zero
35
WHY is 0dB, -180 DEGREES SO BAD?
R E Y
G(s)
We apply a sine wave and because the system is -180 degrees out of
phase, from the output we get the same sine wave, but inverted!
Because of the substraction, we get an error that is twice the size of
the input! This is no good. This causes the system to create an actual
response from the system that is bigger, causing a bigger error, and
this will spiral out of control until the system aborts or breaks. This is
an unstable system.
36
EXAMPLE 5: A CONTROL SYSTEM HAS THE BLOCK DIAGRAM
R E Y
k G(s)
100
G(s)
s ( s 2 10 s 400)
Sketch the Bode plot of the open loop system for k = 1 and use it
to find:
a) the smallest value of k that will make the system unstable
b) the value of k that will give a gain margin of 10 dB.
37
METHOD
Find frequency response function in Bode form:
n2 = 400 n = 20
G ( j )
100k Bode gain K 0 0.25k
j ( j 10 j 400)
2
100k 0.25k 1
j 400 j / 20 0.5 j / 20 1
2
j
j / 20 0.5 j / 20 1
2
20 log G ( j ) =0 for k = 1
-12 dB
G ( j ) G ( j )
-20
Magnitude (dB)
-20 dB/dec
-40
-60
-60 dB/dec
-80
0 1 2
10 10 20 break frequency 10
= natural frequency
Frequency (rad/sec)
39
0.5 / 20
G ( j ) 0 90 tan
1
2
1 / 20
-90
-135
Phase (deg)
-180
-225
-270
0 1 2
10 10 20 break frequency 10
Frequency (rad/sec)
40
Bode plot for k = 1
Bode Diagram
0
Magnitude (dB)
GM = 32 dB
-20
-20 dB/dec
-40
-60
-60 dB/dec
-80
-90
Phase (deg)
-135
phase = –180
-180
-225
-270
0 1 2
10 10 10
Frequency (rad/sec)
41
Questions
a) the smallest value of k that will make the system
unstable?
b) the value of k that will give a gain margin of 10 dB?
42
Magnitude should equal to -10 at phase crossover frequency. Then
20 log k 32 10 22 k 10 22 / 20 12.6
Bode Diagram
0
Magnitude (dB)
-20 20 log k
-40
GM = 0 dB, k = 39.8
-80 GM = 32 dB, k = 1
-90
Phase (deg)
-135
phase = –180
-180
-225
-270
0 1 2
10 10 10
Frequency (rad/sec)
43
Assoc.Dr. Güleser Demir
Asst.Dr. Hatice Doğan NYQUIST PLOTS &
DEU, Electrical and Electronics Engineering
STABILITY CRITERION
1
Frequency Response
WHY NYQUIST PLOTS?
Bode' plots
• use frequency as the horizontal axis and
• use two separate plots
• to display amplitude and phase of the frequency response.
Nyquist plots
• display both amplitude and phase angle
• on a single plot,
• using frequency as a parameter in the plot.
4
Example
1
•Nyquist plot for system with transfer function G ( s )
s2
1
G ( j )
j 2
j 2 1
. G ( j ) 0
j 2 j 2
j 2 Im
2
4 0.25
2 = 0 rad/s
Re{G ( j )} 2 =
4 Re
0 0.25 0.5
Im{G ( j )} 2
4
- 0.25
= 2 rad/s 5
5
Example: 25 s 1
Ls
s s 2 s 2 2 s 16
Construction of Nyquist loci
Loop transfer function
By hand
Calculate features such as
Asymptotes: behavior as 0 and
Location of axes crossings
6
25 s 1
Ls
System loop transfer func.
s s 2 s 2 2 s 16
L j
25 j 1
j j 2 16 2
2 j
j j 2 2 j 16 j j 2 16 2 2 j
2
j 25 j 1 j 2 16 2 2 j
j 25 2 2 j 16 2 2 j
4 2 4 28 2 256
2
4 16 2 2
4 2
25 12 3 2 j 800 400 2 25 4
L j
4 2 4 28 2 256
25 12 3
Im L j
25 4 400 2 800
4 28 256
4 2 4 28 2 256
7
Re L j
25 12 3 2
4 2 4 28 2 256
25 4 400 2 800
Im L j
4 2 4 28 2 256
Quantitative analysis
Limits Im L 0
300
lim Re L j 0.293
0 4 256 Re L
0.3
800
lim Im L j
0 4 256
800
lim Im L j
0 4 256 0
8
Re L j
25 12 3 2
4 2 4 28 2 256
25 4 400 2 800 Im L
0
Im L j
4 2 4 28 2 256
0.3
75 25
L j j
4 3
– For positive: + imaginary axis
– For negative: imaginary axis
0
9
Re L j
25 12 3 2
4 2 4 28 2 256
25 4 400 2 800
Im L j
4 2 4 28 2 256
Im L
0
0
10
Re L j
25 12 3 2
4 2 4 28 2 256
25 4 400 2 800
Im L j
4 2 4 28 2 256
0
Im L
– Real axis crossing(s)
• Imaginary part = 0
0 Im L j 25 4 400 2 800
0.64 Re L
4.2
4 16 2 32 0.3
2 8 64 32 4 2 6 2
0.8
4 2 6 4.22
Re L j 4.22 0.638 0
11
The plot of the contour L for the range - < w < 0_ will be
the complex conjugate of the plot for the range 0+ < w < +, and
the polar plot of L(s) = Gc(s)G(s)H(s) will be symmetrical in the L(s)-plane about
the x-axis.
Therefore, it is sufficient to construct the contour L for the frequency range 0+ <
w < + in order to investigate the stability.
Nyquist Diagram
1
0.5
Imaginary Axis
-0.5
-1
-1 -0.5 0 0.5 1
12
Real Axis
NYQUIST STABILITY CRITERION
Introduction:
To determine the relative stability of a closed-loop system, we must investigate the
characteristic equation of the system:
1 0
where
To ensure stability, we must ascertain that all the zeros of F(s) lie in the left-hand s-
plane.
13
MAPPING CONTOURS ıN THE S-PLANE
We are concerned with the mapping of contours in the s-plane by a function F(s).
A contour map is a contour or trajectory in one plane mapped or translated into
another plane by a relation F(s).
This contour
has been
mapped by
F(s) into a
contour of
an identical
form, a
square, with
the center
shifted by
one unit and
the
Assume magnitude
of a side
multiplied
by
two.
We will consider characteristic equation of the closed loop t.f as F(s) and express it as
where
!!! The zeros of F(s) are the characteristic roots of the system
(i.e. Closed-loop system poles)
Cauchy's theorem (/The principle of the argument)
the
corresponding encircles the origin of the
F(s)-plane N= Z - P times in
contour F in the clockwise direction.
the F(s)-plane
16
NYQUIST STABILITY CRITERION
1
Im
s0
For a system to be stable, all the zeros of F(s) must lie in the left-
hand s-plane.
r Re
Therefore,
we choose a contour s in the s-plane that encloses the entire
right-hand s-plane, and
we determine whether any zeros of F(s) lie within F by Nyquist Contour
utilizing Cauchy's theorem.( Plot F in the F(s)-plane and s
determine the number of encirclements of the origin N. Then
the number of zeros of F(s) within the s contour (and
therefore, the unstable zeros of F(s)) is
17
Alternatively, we may define the function
In this case, the number of clockwise encirclements of the origin of the F(s)-plane
becomes the number of clockwise encirclements of the -1 point in the F'(s) = L(s)-
plane because F'(s) = F(s) - 1.
18
NYQUIST STABILITY CRITERION :
N= number of clockwise encirclements of the (-1,0) point,
P = number of poles of L(s) in right-hand of s-plane.
Z = number of zeros of F(s) in right-hand of s-plane.
A r Re
C A Plot G ( s0 ) G ( j ) for = 0
Im
C Re
20
20
Example
( s 1) 2
•Nyquist plot for G(s)
( s 2)( s 4)
( j 1) 2
Nyquist Diagram G ( j )
1 ( j 2)( j 4)
G (s )
0.5
Imaginary Axis
-0.5
-1
-1 -0.5 0 0.5 1
Real Axis 21
21
NYQUIST-CRITERION :EXAMPLE
• Note that the number of poles of L{s) in the right-hand s-plane is zero,and thus P = 0.
• Therefore, for this system to be stable, we require N = Z = 0, and the contour must not
encircle the - 1 point.
• Examining figure (b), we find that the contour does not encircle the -1 point, and the
system is stable.
SPECIAL CASE WHEN G(S)H(S) INVOLVES POLES AND/OR ZEROS ON THE JW
AXIS.
Since the Nyquist path must not pass through poles
or zeros of L(s) if the function L(s) has poles or zeros
at the origin (or on the jw axis at points other than
the origin), the contour in the s plane must be
modified.
The usual way of modifying the
contour near the origin is to use a semicircle with
the infinitesimal radius , as shown in figure.
23
Consider, a closed-loop system whose open-loop transfer
function is given by
or
NYQUIST-CRITERION :EXAMPLE
The system is stable when
or
NYQUIST-CRITERION :EXAMPLE
NYQUIST-CRITERION :EXAMPLE
0.3
30
GAIN AND PHASE MARGINS
Gain margin = GM = 20 log (1/b)
Phase margin = PM =
Im
1
GM = 20 log (1/0.6)
= 20 log 1.4
= 4.4 dB
-0.6 Re
PM = °
-1 62 1
-1 kG(j) = 0
32
Example: The Nyquist plot of the open loop transfer function G(s) of a unity
feedback system is shown in Figure for gain K=1. The system has no poles of G(s) in the
right half-plane. The plot intersects the negative real axis at 0, -a, -b and -c points.
33
a) Assume ‐1 [‐b,‐a]. Determine whether the
system is stable and find the number of roots (if
any) in the right‐half s‐plane.
b) Assume ‐1 [‐c,‐b]. Determine whether c) Find the values of K that make the
the system is stable and find the number of system stable in terms of a, b and c.
roots (if any) in the right‐half s‐plane. For stability 1/b<K<1/a and k<1/c
P=0, N=2, Z=N+P=2 system unstable
34
Question: Nyquist plots of four stable open loop transfer functions are shown. Find the number of
zeros of closed loop transfer function in right-hand of s-plane.
35
EED 3016 CONTROL SYSTEMS Assoc.Dr. Güleser K Demir
Assist. Dr. Hatice Doğan
PID CONTROLLERS 𝐺 𝑠 , PID controller Plant that we want to control its output
t de(t )
Eq.3 u (t ) K p e(t ) K i e(t )dt K d
0 dt
Proportional term Integral term Derivative term
𝐺 𝑠 , PID controller Plant that we want to control its output
𝑈(𝑠)
𝐺 𝑠 = =𝐾
𝐸(𝑠)
𝑒(𝑡) 𝑢 𝑡
𝐾
1
t t
(a) (b) (c)
PROPORTIONAL-PLUS-INTEGRAL (PI) CONTROL ACTION
The control action of a proportional plus-integral controller is defined by
t
Eq.5 u (t ) K p e(t ) K i e(t )dt
0
(a) (b)
PROPORTIONAL-PLUS-DERIVATIVE (PD) CONTROL ACTION
The control action of a proportional plus derivative controller is defined by
de(t )
Eq.7 u (t ) K p e(t ) K d
dt
Then, transfer function of a PD Controller is
( )
Eq.8 ( )
(a) (b)
PROPORTIONAL-PLUS-INTEGRAL-PLUS-DERIVATIVE CONTROL
ACTION
The combination of proportional control action, integral control action, and derivative control action is termed
proportional-plus-integral-plus-derivative control action. This combined action has the advantages of each of
the three individual control actions. The equation of a controller with this combined action is given by
t de(t )
u (t ) K p e(t ) K i e(t )dt K d
0 dt
( ) /
A model for the crusie-control system is given by . Assume that the mass of
( ) /
the car is 3000kg and the friction coefficient Design a PI controller such that the speed of
the car will reach the desired speed 90 km/h in 10 seconds (i.e., the settling time is 10s) and the
maximum overshoot is less than 25%.
1
𝐾
(𝐾 + 𝑠 )( 3000 1 )
𝑌(𝑠) 𝐺 𝑠 𝐺(𝑠) 𝑠 + 3000 (𝐾 𝑠 + 𝐾 )/3000
𝑇 𝑠 = = = =
𝑅(𝑠) 1 + 𝐺 𝑠 𝐺(𝑠) 1 1+𝐾 𝐾
𝐾 𝑠 + 𝑠 +
1 + (𝐾 + 𝑠 )( 3000 1 )
3000 3000
𝑠 + 3000
2𝜁𝑤 𝑤
𝑌(𝑠) 𝐺 𝑠 𝐺(𝑠) (𝐾 𝑠 + 𝐾 )/3000
𝑇 𝑠 = = =
𝑅(𝑠) 1 + 𝐺 𝑠 𝐺(𝑠) 1+𝐾 𝐾
𝑠 + 3000 𝑠 + 3000
2𝜁𝑤 𝑤
From requirement 1 overshoot less than 25 % %𝑂𝑆 = 𝑒 x 100 < 0.25 ⟹ 𝜁 > 0.4
Any value 𝜁 > 0.4 is valid. But we have a zero at 𝑠 = . Zero at the left hand-side of the s-
plane can increase the overshoot. To be sure, we choose 𝜁 = 0.6
From requirement 2 settling time of 10s 𝑇 = ⇒𝑤 = = 0.8
Then,
where is the vertical position (in meters) above the sea level and is the trust force. Block diagram of
feedback control system is given below.
. .
.
𝑦 𝑡 =ℒ 𝑌 𝑠 = 10000(1 − 𝑒 . )
Solution:
From requirement 1 overshoot less than 10 %
Any value is valid. In this example, we choose
From requirement 2 settling time of 30s
𝐾 𝐾 𝑠+𝐾
𝐺 𝑠 =𝐾 + =
𝑠 𝑠
1
𝐺 𝑠 =
𝑠 + 0.5
𝐾 1
𝑌(𝑠) 𝐺 𝑠 𝐺(𝑠) (𝐾 + 𝑠 )( ) 𝐾 𝑠+𝐾
𝑇 𝑠 = = = 𝑠 + 0.05 = Eq.11
𝑅(𝑠) 1 + 𝐺 𝑠 𝐺(𝑠) 1 + (𝐾 + 𝐾 )( 1 ) 𝑠 + (0.05 + 𝐾 )𝑠 + 𝐾
𝑠 𝑠 + 0.05
Note that the formal transfer function of a standard 2nd order system is given by Eq.12
ms 2 X ( s ) bsX ( s ) kX ( s ) F ( s )
X (s) 1 X ( s) 1
2 2
F ( s ) ms bs k F ( s ) s 10 s 20
I) NO CONTROLLER
The applied force f(t) is unit step. The steady-state value Figure 3.1
K p Kd s
X (s) s 2
10s 20 K p Kd s Figure 3.3
2
F (s) K p Kd s s (10 Kd )s (20 K p ) Let and
1 2
s 10s 20
Comparing Figure 3.2 and Figure 3.3,
note that the proportional derivative
controller reduced both the overshoot
and the settling time, and had small
effect on the rise time and the steady-
state error.
IV) PI CONTROLLER
K p Ki / s
X ( s) s 2
10 s 20 K p s Ki Figure 3.4
3
F ( s) K p K i / s s 10 s 2 (20 K p ) s K i Let and
1 2
s 10 s 20
Comparing Figure 3.2, 3.3 and 3.4, note
that we have reduced proportional gain
because the integral controller also reduces
the rise time and increases the overshoot as the
proportional controller does (double effect).
The above response shows that the integral
controller eliminates the steady-state error.
V) PID CONTROLLER
K p Kd s Ki / s
X ( s) s 2 10s 20 Figure 3.5
F ( s) K p Kd s Ki / s
1 Let and
s 2 10s 20
K d s 2 K p s Ki
s 3 (10 K d ) s 2 (20 K p ) s K i Now, we have obtained the system with
no overshoot, fast rise time, and no
steady-state error.
EFFECT OF PROPORTIONAL,
INTEGRAL & DERIVATIVE GAINS ON THE
DYNAMIC RESPONSE
PROPORTIONAL CONTROLLER
Pure gain (or attenuation) since:
the controller input is error and the controller output is a proportional gain
Increase in gain:
Step responses
for different
gains in P
Controller
PROPORTIONAL CONTROLLER
Pure gain (or attenuation) since:
the controller input is error and the controller output is a proportional gain
Increase in gain:
Step responses Upgrade both steady state
for different and transient responses
gains in P Reduce steady-state error
Controller
Decrease rise time
Increase overshoot
INTEGRAL CONTROLLER
Integral of error with a constant gain
increase the system type by 1
eliminate steady-state error for a unit step input
amplify overshoot and oscillations
Step
responses for
Increase in derivative gain:
different
derivative
gains in PD
Controller
DERIVATIVE CONTROLLER
Differentiation of error with a constant gain
detect rapid change in output
reduce overshoot and oscillation
do not affect the steady-state response
Step
responses for Increase in derivative gain:
different
derivative Upgrade transient response
gains in PD
Controller
Decrease the peak and rise time
Derivative control usually increases damping and improves stability, but has
almost no effect on the steady state error
ON THE APPLICATION OF PID CONTROL
PID regulators provide reasonable control of most industrial processes, provided that the
performance demands is not too high.
PI control are generally adequate when plant/process dynamics are essentially of 1st-
order.
More elaborate control strategies needed if process has long time delays, or lightly-
damped vibrational modes
ROOT-LOCUS BASED DESIGN Assoc.Dr. Güleser K Demir
Assist.Dr. Hatice Doğan
CONTROL SYSTEMS DESIGN BY ROOT-LOCUS METHOD
Compensation is the modification of the system dynamics to satisfy the given specifications.
The requirements imposed on the control system are usually spelled out as performance
specifications. The specifications may be given in terms of transient response requirements
(such as the maximum overshoot and settling time in step response) and of steady‐state
requirements (such as steady‐state error in following ramp input).
1 0
1 Pole-zero
0 α 1
1 Im
Configuration of a
lead network.
1
General form of
1 Lead Compensator 1 1
DESıGN PROCEDURE FOR LEAD COMPENSATION
1. From the performance specifications, determine the desired location for the dominant closed‐loop poles.
2. By drawing the root‐locus plot of the uncompensated system (original system), ascertain whether or not the gain adjustment
alone can yield the desired closed loop poles. If not, calculate the angle deficiency . This angle must be contributed by the lead
compensator if the new root locus is to pass through the desired locations for the dominant closed‐loop poles.
3. Assume the lead compensator to be
1
1
, 0 α 1
1 1
4. If static error constants are not specified, determine the location of the pole and zero of the lead compensator so that the lead
compensator will contribute the necessary angle .
5. Determine the open‐loop gain of the compensated system from the magnitude condition.
EXAMPLE It is desired to modify the closed‐loop poles so that
rad/sec and the value of the damping ratio,
ζ=0.5.
Then, the desired locations of the closed‐loop poles
For uncompensated closed‐loop system, we have of this example are
10/ 1 10
10 10
1 1 1.5 2.59
1 ,
10
0.5 3.12 0.5 3.12
1 0 ⇒ 1
. . . .
. . 1
⇒
. . 180° 1 , 0, 1, 2, 3, …
A general procedure :
i) find the sum of the angles at the desired closed‐loop pole
with the open‐loop poles and zeros of the
original(/uncompensated) system,
1 10
. . 1
3 1 . .
Then
3
0.9
10 . .
1
and our compensator is 0.9
3
1
1
1 1
Pole-zero
General form of Lag Compensator Im
Configuration of a
lag network.
1 1
LAG COMPENSATION
For the case where the system has transient‐response characteristics but unsatisfactory steady‐state characteristics.
If gain Kc of the lag compensator is set
equal to 1, then the transient response
characteristics will not be altered.
An increase in the gain means an increase in the static error constants.
1. Draw the root‐locus plot for the uncompensated system. Based on the transient‐response
specifications, locate the dominant closed‐loop poles on the root locus.
2. Assume the transfer function of the lag compensator to be
1
1
1 1
3. Evaluate the particular static error constant specified in the problem.
4. Determine the amount of increase in the static error constant necessary to satisfy the specifications.
5. Determine the pole and zero of the lag compensator that produce the necessary
increase in the particular static error constant without appreciably altering the original root loci.
6. Draw a new root‐locus plot for the compensated system. Locate the desired dominant
closed‐loop poles on the root locus.
7. Adjust gain of the compensator from the magnitude condition so that the dominant
closed‐loop poles lie at the desired location. ( will be approximately 1.)
EXAMPLE
•The dominant closed‐loop poles are
, 1 0.33 0.58
•The damping ratio, is 0.491.
•The static velocity error constant is 0.53 sec‐1.
If the damping ratio of the new dominant
closed‐loop poles is kept the same, then the
poles are obtained from the new root‐locus
plot as follows:
LAG-LEAD COMPENSATION
If improvements in both transient response and steady‐state
Lead compensation basically speeds up the response and
response are desired,
increases the stability of the system.
then both a lead compensator and a lag compensator may be
used simultaneously.
Lag compensation improves the steady‐state accuracy of
the system, but reduces the speed of the response.
Rather than introducing both a lead compensator and a lag
compensator as separate elements, however, it is economical
to use a single lag‐lead compensator.
1 1
1 1
1 1
1
1 1
...
In designing lag‐lead compensators, we consider two cases where
is approximately unity, where s = s1 is one of the dominant
1. From the given performance specifications, determine the closed‐loop poles, choose the values of T1 and from the
desired location for the dominant closed‐loop poles. requirement that
2. Using the uncompensated open‐loop transfer function
G(s), determine the angle deficiency if the dominant
closed‐loop poles are to be at the desired location. The
phase‐lead portion of the lag‐lead compensator must
contribute this angle .
3. Assuming that we later choose T2 sufficiently large so that
the magnitude of the lag portion The choice of T1 and is not unique. (Infinitely many sets of
T1 and are possible.)
...
Then determine the value of Kc from the magnitude where Kc and are already determined in step 3. Hence, the
condition: value of can be determined from this last equation.
Then, using the value of thus determined,
choose the value of T2 such that
4. If the static velocity error constant Kv is specified,
determine the value of to
satisfy the requirement for Kv. The static velocity error
constant Kv is given by
4. For the lag‐lead compensator, we later choose T2
sufficiently large so that
1. From the given performance specifications, determine the
desired location for the dominant closed‐loop poles.
2. The lag‐lead compensator is modified to
is approximately unity, where s = s1 is one of the dominant
closed‐loop poles. Determine the values of TI and from the
magnitude and angle conditions:
3. To have the dominant closed‐loop poles at the desired
location, calculate the angle
Contribution needed from the phase lead portion of the lag‐
lead compensator.
EXAMPLE • Let us assume , in that case the transfer function of
the compensator:
• From the performance specifications, the dominant
, 0.2500 j1.9843 1 closed‐loop poles must be at
Choose the value of T2 large enough so that
Next we determine the value of Kc from the magnitude
condition:
T2 = 5 (or any number greater than 5) satisfies the above two
requirements.
Choose T2 = 5
EXAMPLE
Assuming the specifications are the same as in previous
example, design a compensator.
The desired locations:
The phase lead portion:
For the phase lag portion, we may choose
Since the closed‐loop pole at s = ‐0.1003 is very close to a zero
The closed‐loop poles are : at s = ‐0.1, they almost cancel each other. Thus, the effect of
this closed‐loop pole is very small.
The remaining closed‐loop pole (s = ‐3.8604) does not quite
cancel the zero at s = ‐2.4. The effect of this zero is to cause a
larger overshoot in the step response than a similar system
without such a zero
the dominant closed‐loop poles
Very close to the desired poles!
(accept as equal)
PARALLEL COMPENSATION
Series Compensation Parallel or Feedback Compensation
(Char. Eq.) (Char. Eq.)
Consider the system shown in above. Draw a root-locus diagram. Then determine the value of k such that the damping ratio
of the dominant closed-loop poles is 0.4.
=K
...
Note that the closed-loop poles with = 0.4
must lie on straight lines passing through the
origin and making the angles ±66.42 with the
negative real axis.
The intersection of the asymptotes with the real axis:
The angle of departure from the pole at s = j2
... we have two solutions for this problem related to two different K values
Dominant poles
...
Notice that the response of the system with k =
0.4490 is oscillatory. (The effect of the closed‐loop
pole at s = ‐2.9021 on the unit‐step response is
small.)
For the system with k = 1.4130, the oscillations due
to the closed‐loop poles at s = ‐2.1589 ± j4.9652
damp out much faster than purely exponential
response due to the closed‐loop pole at s = ‐0.6823.
We should choose k = 0.4490 for the present system.
FREQUENCY RESPONSE BASED DESIGN Assoc.Dr. Güleser K Demir
Assist.Dr. Hatice Doğan
FREQUENCY RESPONSE
Output: a sinusoidal response with the same
Input: a general sinusoid
frequency of input.
𝑟 𝑡 = 𝐴 cos 𝑤𝑡 + 𝐵 sin 𝑤𝑡 = 𝑀 cos( 𝑤𝑡 + 𝜙 )
𝑐 𝑡 = 𝑀 𝑀 cos( 𝑤𝑡 + 𝜙 + 𝜙 )
𝑀 = 𝐺(𝑗𝑤)
𝜙 = 𝑎𝑛𝑔𝑙𝑒 𝑜𝑓 𝐺(𝑗𝑤)
1
𝑀 =
2𝜁 1 − 𝜁
Log magnitude plot of M
𝑤 =𝑤 1 − 2𝜁
Maximum magnitude on the frequency response curve is related to the damping ratio, 𝜁 and
hence, the percent overshoot.
Bandwidth of the closed-loop frequency response: The frequency , at which the magnitude response
curve is 3 dB down from its value at zero frequency.
The bandwidth of a two-pole system can be found by finding that frequency for which (that is, -3
dB) and if we substitute we can relate to settling time.
The compensator can simply be added to the original Bode diagram, and thus plotting the complete Bode
diagram is a simple matter.
If the open-loop gain is varied, the magnitude curve is shifted up or down without changing the slope of the
curve, and the phase curve remains the same.
BODE DIAGRAM APPROACH
— First adjust the open-loop gain so that the requirement on the steady-state accuracy is met.
— Then plot the magnitude and phase curves of the uncompensated, but gain-adjusted, open-
loop system.
— Reshape the open-loop transfer function with the addition of a suitable compensator to meet
gain margin and phase margin specifications.
Compensation is a compromise between steady-state accuracy and relative stability. The open-loop
frequency-response curve needs to be reshaped.
Design via Gain Adjustment
Desired phase margin represented by CD is Φ . Find Design Procedure
the required increase in gain.
1. Draw the Bode plots.
14.8 rad/s.
At , the gain is -44.2dB.
𝑤 = 14.8 𝑟𝑎𝑑/𝑠 This magnitude has to be raised to 0db.
Then,
LEAD COMPENSATION
In designing lead compensators via Bode plots, we want to change phase diagram,
increasing the gain crossover to realize a faster transient response.
= (0< <1)
Characteristics of Lead Compensators High-Pass Filter
1
𝑇𝑠 + 1 𝑠+ 𝑗𝑤𝑇 + 1
𝐾𝛼 =𝐾 𝑇 (0 < 𝛼 < 1) 𝐾𝛼 (0 < 𝛼 < 1)
𝛼𝑇𝑠 + 1 1 𝑗𝑤𝛼𝑇 + 1
𝑠+
𝛼𝑇
Polar plot of a lead comp. (Kc=1) Bode diagram of a lead comp. (Kc=1 =0.1)
(Eq. 1)
VISUALIZING LEAD COMPENSATION
The uncompansated system has a small phase margin (B-(-180))
and low phase margin frequency.
Determine gain K to satisfy the requirement on the given static error constant.
2. Using the gain K thus determined, draw a Bode diagram of G1(jw), the gain adjusted but
uncompensated system. Evaluate the phase margin.
3. Determine the necessary phase-lead angle to be added to the system. Add an additional 5" to 12" to
the phase-lead angle required, because the addition of the lead compensator shifts the gain crossover
frequency to the right and decreases the phase margin.
4. Determine the attenuation factor by use of Eq (1). Determine the frequency where the magnitude of
the uncompensated system G1(jw) is equal to . .Since
Select this frequency as the new gain crossover frequency. This frequency corresponds to
and the maximum phase shift occurs at this frequency.
It is desired to design a compensator for the system so that the static velocity error constant Kv is
20 sec-1, the phase margin is at least 50°, and the gain margin is at least 10 dB.
Step 1:
4𝐾
𝐺 𝑠 = 𝐾𝐺 𝑠 =
𝑠(𝑠 + 2)
𝑇𝑠 + 1 𝑠4𝐾
𝐾 = lim 𝑠𝐺 𝑠 𝐺(𝑠) = lim 𝑠 𝐺 𝑠 = lim = 2𝐾 = 20
→ → 𝛼𝑇𝑠 + 1 → 𝑠(𝑠 + 2)
𝐾 = 10
Step 2:
Step 5:
Step 6:
The compensated system has the
following open-loop transfer
function:
EXAMPLE
For the scontrol system shown in the figure, design a lead compensator instead of
preamplifier so that velocity error constant Kv=40 1/sec and phase margin 48.1.
60.2
=3428.6
146
LAG COMPENSATION
In designing lead compensators via Bode plots, we want to decrease the steady-state
error without appreciably affecting the transient response.
Determine gain K to satisfy the requirement on the given static velocity error constant.
2. If G1(jw) = KG(jw) does not satisfy the specifications on the phase and gain margins, then find the frequency point
where the phase angle of the open-loop transfer function is equal to -180 plus the required phase margin. The required
phase margin is the specified phase margin plus 5 to 12. Choose this frequency as the new gain crossover frequency.
3. Choose the corner frequency w = 1/T (corresponding to the zero of the lag compensator) 1 octave to 1 decade
below the new gain crossover frequency.
Notice that we choose the compensator pole and zero sufficiently small. Thus the phase lag occurs at
the low-frequency region so that it will not affect the phase margin.
4. Determine the attenuation necessary to bring the magnitude curve down to 0 dB at the new gain
crossover frequency. Noting that this attenuation is -20 log determine the value of β. Then the other
corner frequency (corresponding to the pole of the lag compensator) is determined from w = 1/(βT).
5. Using the value of K determined in step 1 and that of β determined in step 4, calculate constant K,
from
𝐾
𝐾 =
𝛽
Example
1
𝑠(𝑠 + 1)(0.5𝑠 + 1)
1
𝑇𝑠 + 1 𝑠 + 𝑇
𝐺 𝑠 =𝐾𝛽 =𝐾 (𝛽 > 1)
𝛽𝑇𝑠 + 1 1
𝑠+
𝛽𝑇
Define :
Define also
K
( )( . )
The first step in the design is to adjust the gain K to meet the required static
velocity error constant:
→ → → ( )( . )
( )( . )
Find the required phase:
θ = −180 + 40 + 12 = −128
(we added additional 12)
1
−20𝑙𝑜𝑔β = 20𝑙𝑜𝑔 = −20
𝛽
−𝟏𝟐𝟖 𝛽 = 10
Find the pole and zero of the compensator:
𝑤
𝑧= = 0.1
5
𝑧
𝑝= = 0.01
𝛽
EXAMPLE
For a unity feedback system, where forward path TF is given as:
So -24dB=-20log =15.8
𝑠 + 0.98
𝐺 (𝑠) = 369,57
𝑠 + 0.062
LEAD-LAG COMPENSATİON
( )( )
It is desired that the static velcoity error constant be 10 1/sec, the PM=50 and the GM be
10dB or more.
The open loop TF of the compansated system: Gc(s)G(s). Assume Kc=1. Then
→
From the requirement on the static velocity error constant:
→ → ( )( )
Hence K=20.
1. Draw Bode diagram for K=20
The gain-adjusted but uncompansated system
PM=-32dB
2. Choose the new wgc.
From the phase-angle curve for G(jw),
G(jw)=-180 at w=1.5 rad/sec so that the
phase lead angle required at w=1.5 rad/sec is
about 50.
3. Choose the corner frequency w=1/T2
(corresponds to the zero of the phase-lag
portion of the compensator) to be 1 decade
below the new wgc or at w=0.15 rad/sec.
Notice that = 10 corresponds to m = 54.9°. Since we need a 50° PM, we may choose = 10 . (Note that
we will be using several degrees less than the maximum angle. 54.9°) Thus, = 10.
Then the corner frequency w = 1/T2 (which corresponds to the pole of the phase-lag portion of the
compensator) becomes w = 0.015 rad/sec. The transfer function of the phase-lag portion of the lag—lead
compensator then becomes
The phase-lead portion can be determined as follows:
Since the new gain crossover frequency is w= 1.5 rad/sec, from figure G(j1.5) is found to
be 13 dB. Hence, if the lag-lead compensator contributes -13 dB at w = 1.5 rad/sec, then
the new wgc frequency is as desired.
. .
. ( )( )
( . )( . )
( . )( . )( )( . )
PM=50 and GM=16 dB and the static error velocity constant is 10 for the
compensated system. All the requirement are met and the design has been
completed.
LEAD - LAG COMPENSATORS:
Transfer function
State space representation
x1 y x1 x2
x2 y x2 x3
let x3 y
xn y ( n ) a1 y ( n 1) a2 y ( n 2 ) an y u
an x1 an 1 x2 a2 xn 1 a1 xn u
xn y ( n 1)
y x1
x1 0 1 0 0 x1 0
x 0 0 1 0 x 2 0
2 u
x n a n a n 1 a1 x n 1
x1
x
y 1 0 0 2
xn
x1 y x1 x2
x2 x3
x2 y
x3 y
xn y ( n ) a1 y ( n 1) a2 y ( n 2 ) an y u
an x1 an 1 x2 a2 xn 1 a1 xn u
( n 1)
xn y y x1
y ( n1) xn
u (t ) y (n ) y x2 y x1
…
∫ ∫ ∫ ∫
+
+
y ( n2) xn1
a1
a2
an
Block diagram of phase variable canonical form
Example: Consider the system given below. Obtain phase-variable canonical state space model of this system
and draw an all-integrator block diagram.
d3y d 2 y dy
3
5 2 2y u
dt dt dt
x1 y
let x2 x1 y
x3 x2 y
y ' ' x3 y x2
y x1
x1 0 1 0 x1 0 u (t ) y' ' '
x 0 x 0 u ∫ ∫ ∫
0 1 +
2 2 +
x3 2 1 5 x3 1
5
x1
x
y 1 0 0 2 1
xn 2
EXAMPLE:
2. CONTROLLABLE CANONICAL FORM
Y (s) b1s n 1 b2 s n 2 bn
G (s) n
U (s) s a1s n 1 a2 s n 2 an
⋯ ⋯
⋯ ⋯
Y (s) b1s n 1 b2 s n 2 bn ⋯
G (s) n
U (s) s a1s n 1 a2 s n 2 an ⋯
x1c 0 1 0 0 x1c 0
x 0 0 1 0 x 0
2c 2c u
x nc a n a n 1 a1 x nc 1
x1c
x
y bn b n 1 b1 2 c
x nc
Block diagram of contollable canonical form
b1
b2
bn 1
xnc x( n 1) c
u (t ) y (n )
x1c y
… x2 c
∫ ∫ ∫ ∫ bn +
+
+
a1
a2
an
Example: Consider the transfer function given below. Obtain controllable canonical form.
4 s 3 25s 2 45s 34
G (s) 3
2 s 12 s 2 20 s 16
s 2 5s 2 0.5s 2 2.5s 1
G ( s) 2 3 2 3
2 s 12 s 20 s 16
2
s 6 s 2 10 s 8
x1 0 1 0 x1 0
x 0 0 1 x 0u (t )
2 2
x3 8 10 6 x3 1
x1
y 1 2.5 0.5 x2 2u (t )
x3
3. OBSERVABLE CANONICAL FORM
Y (s) b1s n 1 b2 s n 2 bn
G (s) n n 1 n2
b 0
U (s) s a1s a2 s an
Aobs Acont
T
Bobs Ccont
T
Cobs Bcont
T
3. OBSERVABLE CANONICAL FORM
Y (s) b1s n 1 b2 s n 2 bn
G (s) n n 1 n2
b 0
U (s) s a1s a2 s an
Aobs Acont
T
Bobs Ccont
T
Cobs Bcont
T
Block diagram of observable canonical form
u(t )
bn bn1 … b1 b0
y(t )
(n)
y x1o x2o xno
+ ∫ + ∫ … + ∫ +
a1 a2 … an
Example: Obtain observable canonical form of the given transfer function.
4 s 3 25s 2 45s 34 s 2 5s 2 0 .5 s 2 2 . 5 s 1
G (s) 3 2 3 2 3
2 s 12 s 20 s 16
2
2 s 12 s 20 s 16
2
s 6 s 2 10 s 8
x1 0 0 8 x1 1
x 1 0 10 x 2.5u (t )
2 2
x3 0 1 6 x3 0.5
x1
y 0 0 1 x2 2u (t )
x3
4. DIAGONAL CANONICAL FORM
Y (s) b0 s n b1s n 1 b2 s n 2 bn c c c
G (s) b0 1 2 n
U (s) ( s p1 )( s p2 ) ( s pn ) s p1 s p2 s pn
x1 p1 0 0 0 x1 1
x 0 p2 0 0 x 2 1
2 u
0
x n 0 0 p n x n 1
x1
x
y c1 c2 c n 2 b0 u
xn
5. JORDAN CANONICAL FORM
Y (s) b1s 5 b2 s 4 bn
G (s)
U (s) ( s p1 ) 3 ( s p2 ) 2 ( s p3 )
c11 c12 c13 c21 c22 c3
( s p1 ) 3 ( s p1 ) 2 ( s p1 ) ( s p2 ) 2 ( s p2 ) s p3
x1 p1 1 0 x1 0 x1
x 0 x 0 x
p1 1 0 2
2 2
x 3 0 0 p1 x3 1 x3
x 4 p2 x4 0 x
y c11 c12 c3 4
1
0 u c13 c21 c22
x 5 0 p2 x5 1 x5
x 6 0 p3 x6 1 x6
Example: Consider the system given below. Obtain Jordan canonical form.
1 0 1 0.5 0.5
G ( s)
( s 1) ( s 1) ( s 1) s s 2
3 2
x1 1 1 0 x1 0
x 0 1 1 0 x 0
2 2
x 3 0 0 1 x3 1
x 0 x 1 u
4 4
x 5 0 2 x5 1
x1
x
2
x3
y 1 0 1 0 . 5 0 . 5 x 4
x5
Example: Consider the system given by
0 1 0
2 3 1
3 1
Observable Canonical Form:
0 2 3
1 3 1
0 1
1 0 1
0 2 1
2 1
DESIGN VIA STATE SPACE Assoc.Dr. Güleser K Demir
Assist.Dr. Hatice Doğan
Mathematical Models
12.1 INTRODUCTıON
Frequency Domain Approach State-Space Representation
Converts system’s differential equation into a
transfer function, thus gives a model that Provides a unified method for modeling,
algebraically relates output to input. analyzing, and designing a wide range of
systems using matrix algebra.
Applicable only to Linear, Time-Invariant (LTI)
systems or their close approximations ! Useful to represent nonlinear systems that have
backlash, saturation, and dead zone.
dominant second-order
Design by specifying all
pair of poles.
closed loop poles of the
We hope that higher higher order system.
order poles do not
affect the second-order
approximation!
12.2 CONTROLLER DESıGN
R(s) C(s)
Nth-order feedback
control system
…
⋯
⋯ 0
Goal: Setting all of the poles of the closed loop system to any desired location.
Output vector
⋮
State-space representation of a plant
Definiton: If an input to a system can be found that takes every state variable from a desired inital state
to a desired final state, the system is said to be controllable; otherwise the system is uncontrollable.
Uncontrollable system:
behaves in its own
way regardless of the
Controllable system:
control signal, .
A . CONTROLLABıLıTY BY ıNSPECTıON: ( If the system matrix, A, is diagonal)
System 1 System 2
… .
Recall: The rank of a matrix equals the number of linearly indepedent rows or columns.
The rank can be found by finding the highest-order square submatrix that is nonsingular.
EXAMPLE: Determine the controllability of the systems given below
System 1 System 2
0 1 2 0 0 0
1 1 1 0 0 0
1 2 4 1 2 4
1 0 ⇒ 3, is nonsingular. 0 ⇒ , is singular.
The system is controllable since the rank of equals The system is uncontrollable since the rank of is 1,
the system order. which is less than the order,3, of the system.
EXAMPLE:
U (s) 1 s-1 x1
1 0 1
x x u 1
0 3 0 Y (s)
1
y 1 2x -1 x2 2
s
3
※ State x2 is uncontrollable.
OBSERVABILITY
Definiton: If the initial state vector, , can be found from and measured
over a finite interval of time from , the system is said to be observable; otherwise the
system is said to be unobservable
Unobservable system
Observable system ( is not connected to
(Each state variable the output and could
can be observed at not be estimated from a
the output since each is measurement of the
connected to the output)
output.)
A . OBSERVABILTY BY ıNSPECTıON: (for a diagonalized system)
For systems represented in diagonalized form, if any column of the output matrix C is zero, the system is not
observable
Observable system
1 1 1 Unobservable system
0 1 1
0 1 0 0 0 1 0
0 0 1 0 5 21/4 1
4 3 2 1
5 4
0 5 1
0 5 1 5 4
4 3 3 20 16
12 13 9
344 0 ⇒ 3, 0⇒ 3,
0 1 0
x x 1u
0 2 4
y 0 4x
U (s) 1 s-1 x2 s-1 x1 Y (s)
0 4
0 8 2
※ State x1 is unobservable.
0⇒ ,
1 1 1
0 1 0
1 1
0 0
0 ⇒ , is singular.
The system is uncontrollable since the rank of is 1, which is less than the
order,2, of the system.
EXAMPLE: Consider the system given by
1 1 0
2 1 1
1 0
1 0
1 1
1⇒ 2,
(… )
𝑇 𝑠 =
𝑠 +𝑎 𝑠 + ⋯+ 𝑎 𝑠+𝑎
Characteristic equation.
𝑄 𝑠 =𝑠 +𝑎 𝑠 + ⋯+ 𝑎 𝑠+𝑎 =0
The roots Q(s) are the poles of the system.
Goal: Setting all of the poles of the closed loop system to any desired location.
Approach: Introduce n adjustable parameter and relate them to the coefficients of characteristic equation, Q(s).
(Since the coefficient of the highest power of s is unity in Q(s), there are n coefficients whose values determine the system’s closed-loop
pole locations. Thus, if we can introduce n adjustable parameters into the system and relate them to the coefficients in Q(s), all of the poles
of the closed-loop system can be set to any desired location.)
State-space representation of a plant
x1 0 1 0 0 x1 0
x 0 0 1 0 x2 0
2 u
xn an a n 1 a1 x n 1
x1
x
y bn bn 1 b1 2
xn
The characteristic equation of the plant is thus
𝑄 𝑠 =𝑠 +𝑎 𝑠 + ⋯+ 𝑎 𝑠+𝑎 =0
Now form the closed-loop system by feeding back each state variable to u, forming
𝑢 = −𝑲𝒙
where
𝑲= 𝑘 𝑘 … 𝑘 𝑘 ’s are the feedback gains.
The system matrix, A-BK, for the closed-loop system is
det(𝑠𝐈 − 𝐀 − 𝐁𝐊 ) = 𝑠 + 𝑎 + 𝑘 𝑠 + 𝑎 +𝑘 𝑠 + ⋯ + (𝑎 +𝑘 )𝑠 + (𝑎 +𝑘 ) = 0 (*)
Now assume that the desired characteristic equation for proper pole placement is
𝑠 +𝑑 𝑠 + ⋯+ 𝑑 𝑠+𝑑 =0 (**)
where the ’s are the desired coefficients. Equating Eqs. (*) and (**), we obtain
𝑑 =𝑎 +𝑘 𝑖 = 1,2, … , 𝑛
From which
𝑘 =𝑑 −𝑎
Example: Consider the plant
By using the state feedback control, it is desired to have closed loop poles at
, and . Determine the state feedback gain
vector.
,
Check the controlability matrix
𝟐
𝑴
(**)
Controller Design by Transformation: If the system order is high or the system is not
represented in phase-variable or controller-canonical form, the solution for the ’s can be
complex. Thus, it is advisable to transform the system to phase-variable/controllable-canonical
form, design the ’s, and then transform the system back to its original representation.
Controller Design by Matching Coefficients
Example:For the following system design state feedback control to yield 25% overshoot with a settling
time of 0.5 sec.
Controller Design by Matching Coefficients
Example: For the following system design state feedback control to yield 1.5% overshoot with a
settling time of 0.83 sec. It is also desired that one of the three poles of the system is located at −4.8.
0 0 1
𝑪𝑴 = 𝑩 𝑨𝑩 𝟐 = 0 1 −5
𝑨 𝑩
1 −5 22
𝑪𝑴 = −1 ≠ 0 ⇒ 𝑟𝑎𝑛𝑘 𝑪𝑴 = 3, 𝑪𝑴 is nonsingular.
The system is controllable since the rank of 𝑪𝑴 equals the system order.
%𝑂𝑆 = 𝑒 x 100 = 1.5% 𝜁 = 0.8
𝑇 = = 0.83𝑤 = 6
Solution: