A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant...

45
A Brief Introduction to A Brief Introduction to Control Theory Harald Paulitsch

Transcript of A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant...

Page 1: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

A Brief Introduction toA Brief Introduction toControl Theory

Harald Paulitsch

Classification of Control Systems (2)

Introduction to Control Theory Harald Paulitsch 2

Classification of Control Systems

bull Open-loop control systemscontrol value only depends on input signalndash control value only depends on input signal

bull Closed-loop control systemsndash with feedback loop

l ll d ldquof db k l rdquorArr also called ldquofeedback control systemsrdquo

Introduction to Control TheoryHarald Paulitsch

3

Advantages of Feedback Control SystemsSystems

bull System output can be made to automatically follow theSystem output can be made to automatically follow the temporal value of the input function

bull The system performance is less sensitive to variations of parameter values

bull The system performance is less sensitive to unwanted disturbancesdisturbances

Introduction to Control Theory Harald Paulitsch 4

Disadvantages of Feedback Control SystemsSystems

bull Potential of instability (stability is a major design concern)Potential of instability (stability is a major design concern)bull Additional components for providing the feedback signal

are required (measurement)

Introduction to Control Theory Harald Paulitsch 5

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 2: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Classification of Control Systems (2)

Introduction to Control Theory Harald Paulitsch 2

Classification of Control Systems

bull Open-loop control systemscontrol value only depends on input signalndash control value only depends on input signal

bull Closed-loop control systemsndash with feedback loop

l ll d ldquof db k l rdquorArr also called ldquofeedback control systemsrdquo

Introduction to Control TheoryHarald Paulitsch

3

Advantages of Feedback Control SystemsSystems

bull System output can be made to automatically follow theSystem output can be made to automatically follow the temporal value of the input function

bull The system performance is less sensitive to variations of parameter values

bull The system performance is less sensitive to unwanted disturbancesdisturbances

Introduction to Control Theory Harald Paulitsch 4

Disadvantages of Feedback Control SystemsSystems

bull Potential of instability (stability is a major design concern)Potential of instability (stability is a major design concern)bull Additional components for providing the feedback signal

are required (measurement)

Introduction to Control Theory Harald Paulitsch 5

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 3: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Classification of Control Systems

bull Open-loop control systemscontrol value only depends on input signalndash control value only depends on input signal

bull Closed-loop control systemsndash with feedback loop

l ll d ldquof db k l rdquorArr also called ldquofeedback control systemsrdquo

Introduction to Control TheoryHarald Paulitsch

3

Advantages of Feedback Control SystemsSystems

bull System output can be made to automatically follow theSystem output can be made to automatically follow the temporal value of the input function

bull The system performance is less sensitive to variations of parameter values

bull The system performance is less sensitive to unwanted disturbancesdisturbances

Introduction to Control Theory Harald Paulitsch 4

Disadvantages of Feedback Control SystemsSystems

bull Potential of instability (stability is a major design concern)Potential of instability (stability is a major design concern)bull Additional components for providing the feedback signal

are required (measurement)

Introduction to Control Theory Harald Paulitsch 5

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 4: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Advantages of Feedback Control SystemsSystems

bull System output can be made to automatically follow theSystem output can be made to automatically follow the temporal value of the input function

bull The system performance is less sensitive to variations of parameter values

bull The system performance is less sensitive to unwanted disturbancesdisturbances

Introduction to Control Theory Harald Paulitsch 4

Disadvantages of Feedback Control SystemsSystems

bull Potential of instability (stability is a major design concern)Potential of instability (stability is a major design concern)bull Additional components for providing the feedback signal

are required (measurement)

Introduction to Control Theory Harald Paulitsch 5

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 5: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Disadvantages of Feedback Control SystemsSystems

bull Potential of instability (stability is a major design concern)Potential of instability (stability is a major design concern)bull Additional components for providing the feedback signal

are required (measurement)

Introduction to Control Theory Harald Paulitsch 5

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 6: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Laplace Transformation (1)

Calculation in the Laplace domain (s)

intinfin

minussdot==

+=

stdtetxtxLsX

js ωσ

)()()(

int

intinfin+

sdot==

j

dtetxtxLsX

σ1

)()()(

1

0

intinfinminus

minus sdotsdotsdot

==j

stdsesXj

sXLtxσπ

)(2

1)()( 1

Introduction to Control Theory Harald Paulitsch 6

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 7: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Laplace Transformation (2)Important Laplace Transformations

x(t) X(t) = Lx(t)x(t) X(t) = Lx(t)

δ(t) 1

1 or σ(t) 1 s1 or σ(t) 1 s

t 1 s2

1n tn 1 sn+11n t 1 s

eamiddot t 1 (s ndash a)

Introduction to Control Theory Harald Paulitsch 7

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 8: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

The Transfer Functionbull The transfer function G(s) is defined as the ratio of the

Laplace transformed output signal Y(s) to the input signal p p g ( ) p gX(s)

G(s) = Y(s) X(s)In the time domain the transfer function is a mapbull In the time domain the transfer function is a map

f(t) rarr f(t)

g(t) y(t)x(t)G(s) Y(s)X(s)

Introduction to Control Theory Harald Paulitsch 8

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 9: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

The Transfer Function (2)

bull Time invariancef(t-t ) rarr f(t-t )f(t-t0) rarr f (t-t0)

bull Linearityaf (t) +bf (t) rarr af (t) +bf (t)a f1(t) +b f2(t) rarr a f 1(t) +b f 2(t)

bull However almost no system is truly linear and time-invariant But it can be useful totime-invariant But it can be useful to approximate systems as such

Introduction to Control Theory Harald Paulitsch 9

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 10: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

The Transfer Function (3)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull Proportional elementy(t) = KP x(t) G(s) = Y(s)X(s) = KP

I t ti l tbull Integrating elementy(t) = KI int x(t) dt G(s) = KI s

bull Differential elementbull Differential elementy(t) = KD dx(t)dt G(s) = KD s

Introduction to Control Theory Harald Paulitsch 10

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 11: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

The Transfer Function (4)Building blocks of transfer functions g(t) x(t) rarr y(t) G(s)

bull first order delay (PT1)first order delay (PT1)T0yrsquo(t) + y(t) = KPx(t) G(s) = KP (1 + sT0)( ) P ( 0)

bull second order delay (PT2)T01yrsquorsquo(t) + T02yrsquo(t) + y(t) = KPx(t)01 y (t) 02 y (t) y(t) P (t)G(s) = KP (1 + sT02 + s2T01)

Introduction to Control Theory Harald Paulitsch 11

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 12: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Testing the Transfer Function (1)

bull When applying a test function the output allows to reason about the transfer functionto reason about the transfer function

bull Possible test functionsdirac signal δ(t)ndash dirac signal δ(t) δ(t) = (infin if t=0 otherwise 0) Lδ(t) = 1

t d d t i l (t)ndash standard step signal σ(t)σ(t) = (1 if t ge 0 otherwise 0) Lσ(t) = 1s

Introduction to Control Theory Harald Paulitsch 12

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 13: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Testing the Transfer Function (2)

bull Proportional elementy(t) = KP x(t)

bull Integrating elementy(t) = KI int x(t) dt

Introduction to Control Theory Harald Paulitsch 13

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 14: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Testing the Transfer Function (3)

bull Differential elementy(t) = KD dx(t)dt

bull First order delayT0yrsquo(t) + y(t) = KPx(t)

Introduction to Control Theory Harald Paulitsch 14

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 15: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Testing the Transfer Function (4)

bull Second order delay

(pict re taken from Wikipedia)

Introduction to Control Theory Harald Paulitsch 15

(picture taken from Wikipedia)

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 16: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Transfer Function of Control System

bull Transfer function of parallel components

)()()( 21 sGsGsG +=

Introduction to Control Theory Harald Paulitsch 16

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 17: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Transfer Function of Control System (2)

bull Transfer function of serial components

)()()( 21 sGsGsG sdot=

Introduction to Control Theory Harald Paulitsch 17

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 18: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Transfer Function of Control System (2)

bull Transfer function of feedback loop

01 2

1 2 0

G (s)G (s) G (s)G(s)

1 G (s) G (s) 1 G (s)sdot

= =+ sdot +

Introduction to Control Theory Harald Paulitsch 18

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 19: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Stability Nyquist Criterion

bull Plotting the transfer function of the opened control system as Nyquist Plot (separate axis forcontrol system as Nyquist Plot (separate axis for real and imaginary part)

bull Critical point of F(ω) [-1 j0]bull Critical point of F(ω) [-1j0]bull Amplitude passage ωD1 |F(ωD1)| = 1bull Phase passage ω arc(F(ω )) = πbull Phase passage ωD2 arc(F(ωD2)) = πbull Stable behavior ωD1 lt ωD2

Introduction to Control Theory Harald Paulitsch 19

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 20: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Stability Nyquist Criterium (2)Im

ωD1

-1 Re

ω=0ω=infincritical point

ωD2 ReD2

ω gt

Introduction to Control Theory Harald Paulitsch 20

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 21: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Stability Bode Plot

Q S

bull A

bull P

Introduction to Control Theory Harald Paulitsch 21

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 22: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Designing a Control System in the Time Domain using the Step ResponseDomain using the Step Responsebull S

ndash

1x(t)

t

bull S

T

T

K

Introduction to Control Theory Harald Paulitsch 22

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 23: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Designing a Control System in the Time Domain using the Step Response (2)Domain using the Step Response (2)

y(t)Ks

bull Tu hellipeffective delay times

bull Ta hellipeffectivecompensation time

K ibull Ks hellipgain

tTu Ta

Introduction to Control Theory Harald Paulitsch 23

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 24: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Designing a Control System in the Time Domain using the Step Response (3)Domain using the Step Response (3)bull Based on the values Tu Ta and Ks the rules by

[Chien Hrones and Reswick] can be used to[Chien Hrones and Reswick] can be used to find a first setting of the controllerndash supports P PI and PID controller typesndash supports P PI and PID controller typesndash settings for 0 and 20 allowed overshooting

depending on the control path fine tuning mayndash depending on the control path fine tuning may be required

Introduction to Control Theory Harald Paulitsch 24

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 25: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Rules from Chien Hrones and Reswick

Introduction to Control Theory Harald Paulitsch 25

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 26: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Boundary conditions of Designing a Control System by Rules using the Step Response bull Requires time invariance and linearity of

t l thcontrol pathbull The described method is for analog controllersbull Method gives an approximate starting configurationbull Method gives an approximate starting configurationbull Possible optimizations either manually or using

sophisticated algorithms (eg genetic algorithm)p g ( g g g )

Introduction to Control Theory Harald Paulitsch 26

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 27: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Designing a Digital Controller (PID)

bull Position algorithmn ee

bull Velocity algorithms

nnD

n

isiInPn T

eeKTeKeKu 1minusminus++= sum

y g

S li ti T t b ffi i tl lls

nnnDsnInnPn T

)ee(eKTeK)e(eKΔu 211

2 minusminusminus

minusminus++minus=

bull Sampling time Ts must be sufficiently smallTs le 01 TaTs le 025 Tu

Introduction to Control Theory Harald Paulitsch 27

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 28: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Bang-Bang Control

bull 2 states only (onoff)M it d fbull Magnitude of hysteresis Δ

bull Extension three level controllerlevel controller

Introduction to Control Theory Harald Paulitsch 28

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 29: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Fuzzy Logic ndash Fuzzy Control

bull Multi-valued logicI t d f t f l d f b hi tbull Instead of true or false degree of membership to a ldquoFuzzy SetrdquoM b hi f tibull Membership function

]10[)( X ]10[)( rarrXxAμ

Introduction to Control Theory Harald Paulitsch 29

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 30: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Fuzzy Variable ldquotemprdquo- 5 fuzzy sets (very cold cold hellip)- micro ld(x) = 0 12microcold(x) = 012- micromoderate(x) = 033 very

cold cold moderate hot very hot

0 7 8 9654321

014033

Introduction to Control Theory Harald Paulitsch 30

0 7 8 9654321

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 31: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Operators onF S tFuzzy Sets

(x)μ1(x)μ AA minus=

(x)]micro(x)min[micro (x)micro BABA =cap

( )μ( )μ AAnot

( )]micro( )[micro( )micro BABAcap

( )]( )[( ) (x)]micro(x)max[micro (x)micro BABA =cup

Introduction to Control Theory Harald Paulitsch 31

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 32: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Process flow of fuzzy systems

controller

Control Path

Introduction to Control Theory Harald Paulitsch 32

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 33: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Steam Turbine

1

verycold cold moderate hot very

hot

Input Variables temperature and pressure

0

1

T0 T7 T8 T9T6T5T4T3T2T1

Output Variable throttle setting

Introduction to Control Theory Harald Paulitsch 33

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 34: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Fuzzyficationvery very

1

verycold cold moderate hot very

hot

0 6

1) Temperature Input xmicrocold(x) = 06microvery cold(x) = 0

0T0 T7 T8 T9T6T5T4T3T2T1

06

x

hellipmicrovery_hot(x) = 0

2) P I t2) Pressure Input ymicrolow(y) = 037microok(y) = 013

( ) 0microweak(y) = 0hellipmicrohigh(y) = 0

Introduction to Control Theory Harald Paulitsch 34

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 35: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Rule Base

1) IF temperature IS cold AND pressure IS low THENthrottle IS positivethrottle IS positive

2) IF temperature IS cold AND pressure IS ok THENthrottle IS zerothrottle IS zero

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

4) hellip

Introduction to Control Theory Harald Paulitsch 35

)

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 36: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Rule Evaluation (MaxMin)1) IF temperature IS cold AND pressure IS low THEN

throttle IS positivemicrocold(x) = 06

2) IF temperature IS cold AND pressure IS ok THEN

microlow(y) = 037

) p pthrottle IS zero

microcold(x) = 06micro (y) = 0 13

3) IF temperature IS cold AND pressure IS strong THENthrottle IS negative

microok(y) = 013

Introduction to Control Theory Harald Paulitsch 36

throttle IS negative

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 37: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Aggregation (MaxMin)

Introduction to Control Theory Harald Paulitsch 37

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 38: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Example Defuzzyficationbull Generation of crisp output value by use of ldquocenter of

gravityrdquo method

center of gravity

Introduction to Control Theory Harald Paulitsch 38

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 39: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Summarybull Linear time-invariant systems simplify control systems

designgbull Time or frequency response can be used for designing

control systemsbull Requirements to control systems

ndash StabilityLimited overshootingndash Limited overshooting

ndash Sufficient dynamics

Introduction to Control Theory Harald Paulitsch 39

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 40: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Summary contbull Bang-bang or three level controllers for simple taskbull Mathematical model may be too difficult or expensive to

gain Fuzzy control offer an alternativebull Fuzzy control requires a priori knowledge

Fuzzy control requires 4 stepsbull Fuzzy control requires 4 stepsndash Fuzzyficationndash Rule evaluationRule evaluationndash Aggregationndash Defuzzyfication

Introduction to Control Theory Harald Paulitsch 40

y

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 41: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Dankeschoumlna esc ouml

A Q ti Any Questions

Introduction to Control Theory Harald Paulitsch 41

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 42: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Neural Controllers

bull Learning algorithm operates online or offlinebull Success is not guaranteed

Introduction to Control Theory Harald Paulitsch 42

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 43: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Fuzzy Control vs Neural ControlIncorporates (expert) knowledge Learns

Knowledge must be gained Black box behaviour

T i i l b i d tTuning is laborious and not a formal method

Tuning possibly fails Training possibly fails

Both do not require a mathematical model of the process

Introduction to Control Theory Harald Paulitsch 43

Both do not require a mathematical model of the process

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 44: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Cooperative neuro-fuzzy models

bull Pre- or postprocessing neural network(modifies the in or output of the fuzzy controller)(modifies the in- or output of the fuzzy controller)

N l t k dj t t thbull Neural network adjusts or even generates the membership functions or the rules

Introduction to Control Theory Harald Paulitsch 44

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45

Page 45: A Brief Introduction toA Brief Introduction to Control Theory · • Linear time-invariant systemssimplify control systems design. • Time or frequency response can be used for designing

Hybrid neuro-fuzzy controller

Introduction to Control Theory Harald Paulitsch 45