Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... ·...

51
Advances in PID Control Karl Johan Åström Department of Automatic Control, Lund University March 10, 2018

Transcript of Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... ·...

Page 1: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Advances in PID Control

Karl Johan Åström

Department of Automatic Control, Lund University

March 10, 2018

Page 2: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Introduction◮ Awareness of PID and need for automatic tuning:

◮ KJs Telemetric Experience 79-80, Westrenius◮ Euroterm and Mike Sommerville

◮ The idea - Automatic generation of good input signals◮ The patents Tore+KJ: Sweden 83, USA 85, ...◮ Commercial exploitation

◮ NAF Control, Sune Larsson, Ideon: Tore, Båth, SDM 20(84), ECA 40 (86)

◮ Ahlsell, Alfa Laval Automation, Satt Control, ABB◮ Fisher Controls, Advisory board 88-92, board of directors

90-92. Fisher Controls + Rosemount [ Emerson◮ Product development - From 2kbytes to Mbytes

◮ Gain scheduling, continuous adaptation◮ Research: papers, MS, Lic & PhD

◮ Research GoalsUnderstand PID control and its useHow good models are required?How to find tuning rules - computation dependent

◮ This lecture: What have we learned?

Page 3: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Tore – 40 Years of Collaboration◮ Phd student 1978, PhD 1983;

New Estimation Techniques forAdaptive Control

◮ Relay auto-tuning - patent 1983◮ NAF 1985-89◮ Back to the department at LTH

1999◮ PID control

Page 4: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Recent PhD Students◮ Kristian Soltesz 2013 On automation in Anesthesia◮ Vanessa Romero 2014 CPU Resource Management and

Noise Filtering for PID Control◮ Olof Garpinger 2015 Analysis and Design of

Software-Based Optimal PID Controllers◮ Martin Hast 2015 Design of Low-Order Controllers using

Optimization Techniques◮ Josefin Berner 2017 Automatic Controller Tuning using

Relay-based Model Identification◮ Fredrik Bagge Carlson 201X Side projects: Optimization

Julia programming

Page 5: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

The Magic of Feedback

Feedback has some amazing properties, it can◮ make good systems from bad components,◮ make a system insensitive to disturbances and component

variations,◮ stabilize an unstable system,◮ create desired behavior, for example linear behavior from

nonlinear components.

The major drawbacks are that◮ feedback can cause instabilities◮ sensor noise is fed into the system

PID control is a simple way to enjoy the Magic!

Page 6: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

The Amazing Property of Integral ActionConsider a PI controller

u = ke + ki

∫ t

0e(τ )dτ

Assume that all signals converge to constant values e(t)→ e0,u(t)→ u0 and that

∫ t

0(e(τ )− e0)dτ converges, then e0 must be zero.Proof: Assume e0 ,= 0, then

u(t) = ke0 + ki

∫ t

0e(τ )dτ = ke0 + ki

∫ t

0

(

e(τ )− e0)

dτ + kie0t

The left hand side converges to a constant and the left hand sidedoes not converge to a constant unless e0 = 0, furthermore

u(∞) = ki

∫ ∞

0

(

e(τ )− e0)

A controller with integral action will always give the correct steadystate provided that a steady state exists. Sometimes expressed as itadapts to changing disturbances.

Page 7: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Predictions about PID Control◮ 1982: The ASEA Novatune Team 1982 (Novatune is a

useful general digital control law with adaptation):PID Control will soon be obsolete

◮ 1989: Conference on Model Predictive Control:Using a PI controller is like driving a car only looking at the

rear view mirror: It will soon be replaced by Model

Predictive Control.◮ 2002: Desborough and Miller (Honeywell):

Based on a survey of over 11 000 controllers in the refining,

chemicals and pulp and paper industries, 98% of regulatory

controllers utilise PID feedback. The importance of PID

controllers has not decreased with the adoption of

advanced control, because advanced controllers act by

changing the setpoints of PID controllers in a lower

regulatory layer.The performance of the system depends

critically on the behavior of the PID controllers.◮ 2016: Sun Li

A recent investigation of 100 boiler-turbine units in the

Guangdong Province in China showed 94.4% PI, 3.7% PID

and 1.9% advanced controllers

Page 8: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Entech Experience & Protuner Experiences

Bill Bialkowsk Entech - Canadian consulting company for pulpand paper industry Average paper mill has 3000-5000 loops,

97% use PI the remaining 3% are PID, MPC, adaptive etc.

◮ 50% works well, 25% ineffective, 25% dysfunctional

Major reasons why they don’t work well◮ Poor system design 20%◮ Problems with valve, positioners, actuators 30%◮ Bad tuning 30%

Process Performance is not as good as you think. D. Ender,Control Engineering 1993.

◮ More than 30% of installed controllers operate in manual◮ More than 30% of the loops increase short term variability◮ About 25% of the loops use default settings◮ About 30% of the loops have equipment problems

Page 9: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

PID versus More Advanced Controllers

Time

Error Present

FuturePast

t t + Td

u(t) = kp

(

βysp(t)− yf (t))

+ ki

∫ t

0

(

ysp(τ )− yf (τ ))

dτ + kd

(

γdysp

dt− dyf

dt

)

◮ PI does not predict◮ PID predicts by linear extrapolation, Td prediction horizon◮ Advanced controllers predict using a mathematical model

Page 10: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Publications in Scopus

1920 1930 1940 1950 1960 1970 1980 1990 2000 2010 202010

0

102

104

106

Year

Pub

icat

ions

per

yea

r

Number of publications by year for control (blue), PID (red) andmodel predictive control (green) from Scopus search for thewords in title, abstract and keywords.

Page 11: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuners

7. Summary

Page 12: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Requirements

ym

Controller Process

F C P

−1

Σ Σ Σysp e u

d

x

n

y

◮ Attenuate load disturbances d

◮ Do not inject too much measurement noise n

◮ Robustness to model uncertainty◮ Setpoint response - Can be dealt with separately by

feedforward F – (2 DOF, setpoint weighting, I-PD)

Page 13: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

I–PD Controller with filtering and antiwindup

y

r

u

e

Filter

ActuatorModel

Gf (s)

uff

−yf

−yf

kt

1s

kd

kp

ki

− +

µΣ

ΣΣΣ

es

The filter (can be combined with antialias filter)

d

dt

[

x1x2

]

=

[

0 1−T−2

f −T−1f

] [

x1x2

]

+

[

0T−2

f

]

y ,

has the states x1 = yf and x2 = dyf/dt . The filter thus givesfiltered versions of the measured signal and its derivative. Thesecond-order filter also provides good high-frequency roll-off.

Page 14: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Tune for Load Disturbances - Shinskey 1993“The user should not test the loop using set-

point changes if the set point is to remain

constant most of the time. To tune for fast

recovery from load changes, a load distur-

bance should be simulated by stepping the

controller output in manual, and then trans-

ferring to auto. For lag-dominant processes,

the two responses are markedly different.”

Process control: Tune kp, ki , kd and Tf for load disturbances,measurement noise and robustness, then tune β , and γ forsetpoint response.

u(t) = kp

(

β r(t)− yf (t))

+ ki

∫ t

0

(

r(τ )− yf (τ ))

dτ + kd

(

γdr

dt− dyf

dt

)

Yf (s) =1

1 + sTf + s2Tf2/2Y (s)

Page 15: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Assessment of Disturbance Reduction

Compare open and closed loop systems!

Ycl

Yol=

11 + PC

= S

Geometric interpretation: Distur-bances with frequencies outsideare reduced. Disturbances with fre-quencies inside the circle are am-plified by feedback, the maximumamplification is Ms.Disturbances with frequenciesless than sensitivity crossoverfrequency ω sc are reduced byfeedback.

−1−1−1ω msω msω ms

ω scω scω sc

Page 16: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Load Disturbance Attenuation

Transfer function from load disturbance d to process outpur y (P(0) = K )

Gyd =P

1 + PC= SP ( sP(s)

s + Kki( s

s + Kki$ K ( s

ki

P = 2(s + 1)−4 PI: kp = 0.5, ki = 0.25

10−2

10−1

100

101

10−2

10−1

100

ω

pGxd(ω

)p

Page 17: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Criteria and FOTD ModelTraditionally the criteria

IE =

∫ ∞

0e(t)dt , IAE =

∫ ∞

0pe(t)pdt , IE2 =

∫ ∞

0e2(t)dt

ITAE =

∫ ∞

0t pe(t)pdt , QE =

∫ ∞

0(e2(t) + ρu2(t))dt

Notice that for a step u0 in the load disturbance we have

u(∞) = ki

∫ ∞

0e(t)dt , IE =

1ki

The FOTD model

P(s) =K

1 + sTe−sL

, τ =L

L + T, 0 ≤ τ ≤ 1

Lag dominant τ small (τ < 0.3) and delay dominant dynamics τclose to 1

Page 18: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Measurement Noise Injection

x

−Gg

Controller Process

CPID PΣ Σyu

d n

Controller transfer function

Gf =1

1 + sTf + s2T 2f/2

CPID(s) = kp+ki

s+kds, C = CPIDGf

Transfer function from measurement noise n to control signal u

−Gun(s) = −C

1 + PC= −SC ( − s

s + Kki$ ki + kps + kds2

s(1 + sTf + (sTf )2/2)

Only controller parameters and K = P(0)

Page 19: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Bode Plots of Noise Transfer Function Gun

10−2

100

102

104

10−1

100

101

10−2

100

102

104

10−1

100

101

Lag dominatedP

IP

ID

10−2

100

102

10−1

100

101

10−2

100

102

104

10−1

100

101

Balanced

10−2

100

102

10−1

100

101

10−2

100

102

10−1

100

101

Delay dominated

◮ Validity of approximation (error in mid frequency range Ms

peak)◮ Differences PI/PID lag dominated/delay dominated

Page 20: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Stochastic Modeling of Measurement NoiseMeasurement noise stationary with spectral density Φ(ω )

σ 2u =

∫ ∞

−∞pGun(iω )p2Φ(ω )dω , σ 2

yf=

∫ ∞

−∞pGf (iω )p2Φ(ω )dω

Gun(s) ( −ki + kps + kds2

(s + Kki)(1 + sTf + (sTf )2/2)

σ 2u ( π

(

ki

K+

k2p − 2kikd

Tf

+ 2k2

d

T 3f

)

Φ0, σ 2yf=

π

Tf

Φ0

Noise gain kn = σ u/σ yfand SDU (standard deviation of u with

white measurement noise Φ0 = 1)

knw =σ u

σ yf

(√

kiTf

K+ k2

p − 2kikd + 2k2

d

T 2f

πΦ0 = 1 [ SDU =

(

ki

K+

k2p − 2kikd

Tf

+ 2k2

d

T 3f

)

Page 21: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuners

7. Summary

Page 22: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Load Disturbance Attenuation and Robustness◮ Performance (IAE= 1/ki blue) and robustness (Ms,Mt red)◮ IE level curves are horizontal lines (P(s) = (s + 1)−4

1.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

2

0 0.1 0.2 0.3 0.4 0.50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

kp

ki

Little difference IE and IAE for ki < 0.4 and robust systems Ms < 1.6Approximately: ki gives performance and kp sets robustness

Page 23: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Load Disturbance Attenuation and Noise InjectionProcess: P(s) =

11 + 0.1s

e−s τ = 0.09 lag dominated!

Controller: C =(

kp +ki

s+ kds

)

$ 11 + sTf + (sTf )2/2

MIGO design without filtering: kp = 2.78, Ti = 47.2, Td = 11.6

Filter time constants:

Tf = [0.01 0.02 0.05 0.1 0.2 0.5 1 2 5 10 20 50 100]

100

101

102

100

101

102

kn

IE

Page 24: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuners

7. Summary

Page 25: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Design ProcessModels - Essentially monotone step responsesZiegler-Nichols - Two parametersThe FOTD model - Three parameters K ,L,T

◮ G(s) = K1+sT e−sL

◮ Normalized time delay τ = LL+T ,0 ≤ τ ≤ 1

◮ Lag (small τ ) and delay dominated dynamics τ close to oneMore complex modelsThe test batch - essentially monotone dynamics

◮ Heritage of Eurotherm and Mike Sommerville◮ 123 processes

0 0.5 1 1.5 2 2.5 3 3.5 4−0.2

0

0.2

0.4

0.6

0.8

1

y

x

Design controllers and match to model parameters

Page 26: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Constrained Optimization

◮ Modeling & control design◮ Criteria

Load disturbanceattenuation IE, IAERobustness Ms Mt

Measurement noise SDUNoise gain kn

◮ Loop transfer function

Gl = PGf

(

kp +ki

s+ kds

)

linear in parameters◮ Many algorithms

Convex-concave methods

−2 −1 0−2

−1

0

ℜ L(iω )ℑ

L(i

ω)

github.com/JuliaControl/ControlSystems.jl/

Page 27: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

PI Control: Minimize IAE, Ms,Mt ≤ 1.4

0 0.2 0.4 0.6 0.8 110

−1

100

101

0 0.2 0.4 0.6 0.8 110

−1

100

101

102

0 0.2 0.4 0.6 0.8 110

−2

100

102

0 0.2 0.4 0.6 0.8 110

−1

100

101

Kkp vs τ akp vs τ

Ti/T vs τ Ti/L vs τ

◮ The two parameter Ziegler-Nichols does not work (reddashed right figures)!

◮ Tuning of PI controller can be done with a three parameterFOTD model model

Page 28: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Some Tuning Rules◮ Ziegler-Nichols step

kp =0.9Kv L, ki =

0.27Kv L3

, Ti = L/0.3

◮ Ziegler-Nichols frequency

kp = 0.45ku , ki = 0.54ku

Tu

, Ti = Tu/1.2

◮ Lambda Tuning - Tcl = T ,2T ,3T

kp =T

K (Tcl + L), ki =

1K (Tcl + L)

, Ti = T

◮ Skogestad SIMC Like Lambda but Ti = min(T ,4(Tcl + L))

◮ Skogestad SIMC+

kp =T + L/3

K (Tcl + L), Ti = min(T + L/3,4(Tcl + L))

◮ AMIG0 (Ms,Mt = 1.4)

kp =0.15K

+(

0.35− LT

(L + T )2

) T

KL, Ti = 0.35L +

13LT 2

T 2 + 12LT + 7L2

Page 29: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Tuning – Lag-Dominated Dynamics

1.21.3

1.41.5

1.6

1.71.8

1.9

2

Lagdominant

0 2 4 6 8 100

2

4

6

8

10

12

14

16

18

20

kp

ki

λ

S

S

S

A

S+

S+

S+

◮ Lambda tuning has very low gains◮ S and S+ give similar tuning◮ Lambda tuning gives constant integral time Ti = kp/ki

Page 30: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Tuning – Balanced Dynamics

1.11.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

2

2.5

3

Balanced

0 0.2 0.4 0.6 0.8 1 1.20

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

kp

ki

λ

λ

λS

SS

AS+

S+S+

◮ Tuning methods S+, A and λ gives similar results◮ All controllers have constant integral time Ti = kp/ki

Page 31: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Tuning Delay-Dominated Dynamics

1.2

1.3

1.4

1.5

1.6

1.7 1.8

1.9

2

ZN

Delay dominated

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.40

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

kp

ki

λλλ

S

SS

A S+

S+S+

◮ Lambda tuning too high integral gain◮ Obvious why Skogestad modified his method◮ All controllers have constant integral time Ti = kp/ki

Page 32: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuners

7. Summary

Page 33: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Difficulties with Derivative Action◮ Shapes of stability region - don’t fall off the cliff

0

0.5

1

1.5 00.5

11.5

22.5

33.5

0

0.2

0.4

0.6

0.8

1

kp

ki

kd

◮ Filtering necessaryOptimization requires care

Page 34: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Temperature Control P(s) = e−√

s

CPI(s) = 2.94 +11.54

sCPID(s) = 7.40 +

48.25s

+ 0.46s

IE = 0.086, IAE = 0.10 IE = 0.021, IAE = 0.031

0 1 2 3

0

0.1

0.2

System output, y(t)

0 1 2 3−1.5

−1

−0.5

0

0.5

Control signal, u(t)

−3 −2 −1 0 1−3

−2

−1

0

1

ℜ L(iω )ℑ

L(i

ω)

Page 35: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

IE or IAE for P = (s + 1)−3

CIE = 3.31 +6.62

s+ 6.26s

IAE = 0.74

Cκ = 3.61 +3.20

s+ 3.34s

IAE = 0.57

CIAE = 3.81 +3.33

s+ 4.25s

IAE = 0.53 −3 −2.5 −2 −1.5 −1 −0.5 0 0.5 1−3

−2.5

−2

−1.5

−1

−0.5

0

0.5

1

0 2 4 6 8 10 12 14 16 18 20−0.1

−0.05

0

0.05

0.1

0.15

0.2

Page 36: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

PID Control: Minimize IAE, Ms,Mt ≤ 1.4

0 0.2 0.4 0.6 0.8 110

−1

100

101

102

0 0.2 0.4 0.6 0.8 110

−1

100

101

102

0 0.2 0.4 0.6 0.8 110

−2

10−1

100

101

0 0.2 0.4 0.6 0.8 110

−1

100

101

102

0 0.2 0.4 0.6 0.8 110

−2

10−1

100

101

0 0.2 0.4 0.6 0.8 110

−2

10−1

100

101

Kkp vs τ aK = kpKL/T vs τ

Ti/T vs τ Ti/L vs τ

Td/T vs τ Td/L vs τ

◮ Tuning rules based on FOTD can be found for τ > 0.3◮ More complex models for lag dominated dynamics◮ Limiting cases K

1+sT e−sL and K(1+sT/2)2 e−sL

Page 37: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Modeling for PI & PID Control

AMIGO Tuning - complete testbatch

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 110

0

101

102

ki [PID]/ki [PI] vs τ

circles: P(s) =K

1 + sTe−sL, squares: P(s) =

K

(1 + sT )2 e−sL

◮ FOTD OK for τ > 0.4 better model required for smaller τ !◮ Derivative action small improvement for τ > 0.8

Page 38: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuning

7. Summary

Page 39: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Relay Auto-tuning

0 5 10 15 20 25 30

−1

−0.5

0

0.5

1

y

t

Relay feedback creats oscillation at ω 180!Automation of ZN frequency response method modified ZN tuning rules

Page 40: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

The First Industrial Test 1982

Page 41: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Temperature Control of Distillation Column

Page 42: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Commercial Autotuners◮ One-button autotuning◮ Three settings: fast, slow,

delay dominated◮ Automatic generation of gain

schedules◮ Adaptation of feedback gains◮ Adaptation of feedforward

gain◮ Many versions

Single loop controllersDCS systems

◮ Robust◮ Excellent industrial

experience◮ Large numbers

Page 43: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Industrial SystemsFunctions

◮ Automatic tuning AT◮ Automatic generation of gain scheduling GC◮ Adaptive feedback AFB and adaptive feedforward AFF

Sample of products◮ NAF Controls SDM 20 - 1984 DCS AT, GS◮ SattControl ECA 40 - 1986 SLC AT, GS◮ Satt Control ECA 04 - 1988 SLC AT◮ Alfa Laval Automation Alert 50 - 1988 DCS AT, GS◮ Satt Control SattCon31 - 1988 PLC AT, GS◮ Satt Control ECA 400 -1988 2LC AT, GS, AFB, AFF◮ Fisher Control DPR 900 - 1988 SLC◮ Satt Control SattLine - 1989 DCS AT, GS, AFB, AFF◮ Emerson Delta V - 1999 DCS AT, GS, AFB, AF◮ ABB 800xA - 2004 DCS AT, GS, AFB, AFF

Page 44: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Next Generation of AutotunersObservations

◮ A sine-wave input permits estimation of only twoparameters

◮ PI controllers can be designed based on an FOTD model◮ Little difference between PI and PID for processes with

delay dominated dynamics◮ Improvement by derivative action a factor 2 for τ = 0.45◮ PID controllers require better modeling if τ < 0.4◮ Separate real delays from higher order dynamics◮ Suitable model classes

Requirement on an auto-tuner◮ Good excitation - modify relay and experiments◮ Short experiment time - do not wait for steady state◮ Other types of inputs - asymmetric relay additional inputs◮ Trade-off buttons - performance & robustness related

Page 45: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

ModelsTwo parameter models

P(s) =b

s + a, P(s) = K e−sL

Three parameter models

P(s) =b

s2 + a1s + a2, P(s) =

b

s + ae−sL

, P(s) =K

1 + sTe−sL

P(s) =K

(1 + sT )2 e−sL

Four parameter models

P(s) =b1s + b2

s2 + a1s + a2, P(s) =

b

s2 + a1s + a2e−sL

Five parameter model

P(s) =b1s + b2

s2 + a1s + a2e−sL

Page 46: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Typical Experiments

−5

0

5

10

u

10 11 12 13 14 15 16−1

0

1

2

y

−5

0

5

10

u

0 10 20 30 40 50−1

0

1

2

y

−5

0

5

10

u

10 12 14 16 18 20 22−1

0

1

2

Time [s]

y

Figure from Josefin Berner

Page 47: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Better Excitation with Asymmetric Relay

0 1 2 3 4 5 6 7 8 9 100.00

0.02

0.04

0.06

0.08

ω [rad/s]

|U|2/∫

|U|2

◮ Symmetric relay blue◮ Asymmetric relay red

Figure from Josefin Berner

Page 48: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Chirp Signal – Broadband Excitation

u(t) = (a + b t) sin (c + d t)t

Frequency varies between a and c + d tmax amplitude betweena + b tmax

0 1 2 3 4 5 6 7 8 9 10−4

−2

0

2

4

0 1 2 3 4 5 6 7 8 9 100

0.2

0.4

0.6

0.8

1

t

u(t)

tu(t)d

t

Notice both high and low frequency excitation

Page 49: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Asymmetric Relay and Chirp

◮ Asymmetrical relay experiment combined chirp signalexperiment

◮ Double experiment time. Constant amplitude,L = 0.01,w = 15 ∗ (1 + 0.5 ∗ t), tmax = 2.7,0.15 ≤ ω L ≤ 0.35

Relay only Relay and Chirp

10−2

10−1

100

101

102

10−2

10−1

100

P(s)=b exp(−sL)/(s2+a1*s+a2)

10−2

10−1

100

101

102

−270

−180

−90

0

10−2

10−1

100

101

102

10−2

10−1

100

b exp(−sL)/(s2+a1 s+a2)

10−2

10−1

100

101

102

−270

−180

−90

0

Page 50: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Outline

1. Introduction

2. Requirements

3. Tradeoffs

4. PI Control

5. PID Control

6. Relay Auto-tuners

7. Summary

Page 51: Advances in PID Controlintranet.ceautomatica.es/sites/default/files/upload/13/files/Advance... · How to find tuning rules - computation dependent ... Guangdong Province in China

Summary

Insight into PID control◮ PI control can be designed based on FOTD model◮ Importance of lag and delay dominant dynamics and

normalized time delay τ

◮ PI is sufficient for delay dominated processes τ > 0.8◮ Derivative action helps for τ ≤ 0.8◮ Derivative action gives significant improvement for τ < 0.4

but improved models are required

Next generation of relay auto-tuners◮ Use system identification and model testing◮ Use algorithms instead of simple tuning rules◮ Admits tuning knob