an intuitive algorithm for control with limited ... · daniel quevedo ([email protected] ) control...

47
An Intuitive Algorithm for Control with Limited Communication and Processing Resources Daniel E. Quevedo Department of Electrical Engineering (EIM-E) Paderborn University, Germany [email protected] March 2016 n Processing power Time Provided by microprocessor Required by control algorithm 0 20 40 60 80 10 Daniel Quevedo ([email protected]) Control with limited resources March 2016 1 / 47

Upload: others

Post on 24-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

An Intuitive Algorithm for Control with LimitedCommunication and Processing Resources

Daniel E. Quevedo

Department of Electrical Engineering (EIM-E)Paderborn University, Germany

[email protected]

March 2016Processing Power Mismatch

5

An Inherent Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  The control designer designs a control algorithm assuming that a control input can be calculated at every time step.

•  The processor designer assumes that the worst case execution time the microprocessor can provide is good enough.

Controller

Sensor System Actuator

6

Challenging the Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  Either the processor availability or the computation required by the control algorithms is uncertain and time-varying.

•  The actuator still needs a control input at every time step.

Controller

Sensor System Actuator

The traditional assumption about the processor always being ableto execute the control algorithm during the available computationslot may break down.Overdimensioning the processor or increasing the slot is often notan option, see Airbus European Patent Application “Robustsystem control method with short execution deadlines”, 2013.

Daniel Quevedo ([email protected]) Control with limited resources 2013, Uni Melbourne 3 / 34

0 20 40 60 80 1000

5

10

15

20

25

30

Daniel Quevedo ([email protected]) Control with limited resources March 2016 1 / 47

Page 2: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Motivating Example:

Communication and Processing in an A380 Aircraft

!"#$%&'#()'*#&+'*,%-+'.)(//%+0%#$(%*()+'*1#&-*,%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! ,HIJ! .(+12*! )$4*%$(!&(&)*%$2=>%$5*-*+)!-)*6-*$%! E'7,G!9&%.$%8-4)&!-4>!2+12(+12*5!5$8&!(&55$45!(&-%4*?!

G% #@9%*HIJ%KL3A9%(M9?FA5?N%0M5O@F%-36FA3M%*?F8;F536%/D>F94%-36P5O8A;F536%

GQG%-36FA3M%/8AP;?9>%"#$%&'! ()*'+)#,! )-! '&.! /012! ()*3.*'$)*4##5!$*(#67.! ,)! (4##.7! 89+$:4+5! -#$%&'! ()*'+)#,;<!7.7$(4'.7! ')! '&.! ()*'+)#! )-! '&.! +)##<! 54=! 4*7!9$'(&! 4''$'67.,! 4*7! )-! '&.! '+4>.(')+5! )-! '&.!4$+(+4-'<! 4*7! 8,.()*74+5! -#$%&'! ()*'+)#,;<! 4#,)!$7.*'$-$.7!4,!8&$%&!#$-'!,5,'.:;<!7.7$(4'.7!')!'&.!()*'+)#!)-!'&.!#$-'!)-!'&.!=$*%?!

"$%?!@!/012!-#$%&'!()*'+)#!,6+-4(.,!

The Avionics Full Duplex Switched Ethernet Network serves as abackbone to low level networks, e.g., based on CAN.Fly-by-wire requires 500 km of cables and many interconnects.This adds to weight, cost and possible fire hazards.Fly-by-wireless is being considered.Due to dropouts and delays, communication links are nottransparent and need to be taken into account in the design.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 2 / 47

Page 3: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Motivating Example:

Communication and Processing in an A380 Aircraft

!"#$%&'#()'*#&+'*,%-+'.)(//%+0%#$(%*()+'*1#&-*,%/-&('-(/%!

!"#$%&'($)*+,"!$-./!0.*$#*#-!0."120.3!%!+-$%-!4%!.035$$%-"+#6#7#/!3$%/2$*#33./3$*#%0/!$

!234565789%:;6%<96%=3>>?@9%%

*5AB8>!%!

C9DE3A<>"!#$%&!'(&)*%+)!,+%)%-.*/!0(+12*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5O8A;F536%

GQG%-36FA3M%/8AP;?9>%"#$%&'! ()*'+)#,! )-! '&.! /012! ()*3.*'$)*4##5!$*(#67.! ,)! (4##.7! 89+$:4+5! -#$%&'! ()*'+)#,;<!7.7$(4'.7! ')! '&.! ()*'+)#! )-! '&.! +)##<! 54=! 4*7!9$'(&! 4''$'67.,! 4*7! )-! '&.! '+4>.(')+5! )-! '&.!4$+(+4-'<! 4*7! 8,.()*74+5! -#$%&'! ()*'+)#,;<! 4#,)!$7.*'$-$.7!4,!8&$%&!#$-'!,5,'.:;<!7.7$(4'.7!')!'&.!()*'+)#!)-!'&.!#$-'!)-!'&.!=$*%?!

"$%?!@!/012!-#$%&'!()*'+)#!,6+-4(.,!

Eight control computers (and a back-up module) need to dividetheir attention to various loops, including

I attitude control,I direction of flight,I engine controls.

Processing power available for, and required by, each loop istime-varying.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 3 / 47

Page 4: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Traditional Control Design: hard real-time

Execution time distribution

EP 2 568 346 A1

20

t

t

t

Sampling of sensors data

Computation time dedicated to the control

Implementation of the control law in the actuators

T T

x(sk) x(sk+1)

t Effective computation time

WCET

uimpl(tk)=u(x(sk))

sk sk+1

tk tk+1

uimpl(tk+1)=u(x(sk))

WCET

Latency

Main Objective: To reduce the lantency By using a deadline larger than the worst-case execution time(WCET) a deterministic control loop is obtained.As processing architectures become more complex, executiontime distributions tend to have longer tails. Thus:

I The WCET becomes more difficult to determine.I Computing and communication resources are idle more often:

Inherent conservatism leads to oversized and heavy components.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 4 / 47

Page 5: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Control with short deadlines (2013 Airbus patent)

Execution time distribution

EP 2 568 346 A1

20

t

t

t

Sampling of sensors data

Computation time dedicated to the control

Implementation of the control law in the actuators

T T

x(sk) x(sk+1)

Tslot

t Effective computation time

Tslot

uimpl(tk)=u(x(sk))

sk sk+1

tk tk+1

uimpl(tk+1)=u(x(sk))

Main Objectives: Define the optimal Tslot Robustness wrt. input misses

Computation miss

Shorter deadlines lead to a stochastic loop which uses processorand communication resources more efficiently.At times, processing resources are insufficient for evaluating thecontrol policy.Once a maximum number of consecutive deadline misses isreached, an auxiliary processor is called upon.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 5 / 47

Page 6: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

More general situation:

Processing Power Mismatch in Networked andEmbedded Systems

Traditional

5

An Inherent Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  The control designer designs a control algorithm assuming that a control input can be calculated at every time step.

•  The processor designer assumes that the worst case execution time the microprocessor can provide is good enough.

Controller

Sensor System Actuator

Networked/Embedded

6

Challenging the Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  Either the processor availability or the computation required by the control algorithms is uncertain and time-varying.

•  The actuator still needs a control input at every time step.

Controller

Sensor System Actuator

The traditional assumption about the processor always being ableto execute the control algorithm during the available computationslot may break down.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 6 / 47

Page 7: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

This talk

1 presents a modeling framework for closed-loop control, whenprocessing and communication resources are limited,

Controller Plant

Channel

2 describes an intuitive algorithm to synthesise such loops,

controls

delete buffertake u(k)

from buffer

calculate

3 illustrates how stability can be analysed using random-timestate-dependent drift conditions.

k8

d

|x|

k0 k1 k2k3 k4k5k6k7

Daniel Quevedo ([email protected]) Control with limited resources March 2016 7 / 47

Page 8: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Some previous works of Interest

Stochastic Networked ControlHespanha, Dahleh, Sinopoli, Teel, Heemels, etc

Event-triggered Estimation and ControlTransmit and compute only when an event occurs:Astrom, Tabuada, Lemmon, Blind, etc.

Control with limited Processing ResourcesComputation-performance tradeoffs for MPC: McGovern, CervinAllow for deadline misses: Seuret“Anytime Control” (control is refined on-line, calculations can beterminated at any time): Bhattacharya, Greco, Bicchi

Daniel Quevedo ([email protected]) Control with limited resources March 2016 8 / 47

Page 9: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 9 / 47

Page 10: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts System Model

System Model

availabilityController

Plant

x(k + 1) = f (x(k), u(k))

u(k) x(k)

Erasure Channel

|x(k)| < d ?β(k)

processor

The quantity d is a design parameter which trades communicationchannel utilization for control performance.Transmission between sensor and controller node is through adelay-free link with dropouts:

β(k) =

0 if x(k) is received with errors (a dropout occurs),1 if x(k) is received error-free,2 if the sensor did not transmit at time k (i.e., |x(k)| < d).

Daniel Quevedo ([email protected]) Control with limited resources March 2016 10 / 47

Page 11: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts Baseline Algorithm

We are interested in a situation, where a “good” state-feedbackcontroller κ : Rn → Rp has been pre-designed.Processing resources for control may, at times, be insufficient toevaluate κ within the pre-allocated time-slot of length τ .A direct implementation of the control policy κ, yields the

Baseline Algorithm

u(k) =

κ(x(k)), if β(k) = 1 and κ(x(k)) was evaluated

between times kT and kT + τ ,0p, otherwise,

where u(k) with k ∈ N0 denotes the plant input which isapplied during the interval [kT + τ, (k + 1)T + τ).

Daniel Quevedo ([email protected]) Control with limited resources March 2016 11 / 47

Page 12: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts Numerical Example

Numerical ExamplePlant model and controller

Plant model with i.i.d. disturbance distributed as N (0,1):x(k + 1) = −x(k) + 0.1 sin(x(k)) + u(k) + w(k), x(0) = 20.

Control policy is taken as:κ(x) = x − 0.1 sin(x) + ρ|x |, ρ = 0.9.

ResourcesPrβ(k) = 1 | |x(k)| ≥ d = 0.5Prprocessor is available |β(k) = 1 = 0.8

The closed loop is characterised by:

x(k + 1) =

ρ|x(k)|+ w(k), if processor is available

and β(k) = 1,−x(k) + 0.1 sin(x(k)) + w(k), otherwise.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 12 / 47

Page 13: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts Numerical Example

Empirical Cost

1500

(700∑

k=201

x2(k)

),

averaged over 1000 realisations.

0 2 4 6 8 105

10

15

20

25

30

d

Larger thresholds give a worse control performance!Daniel Quevedo ([email protected]) Control with limited resources March 2016 13 / 47

Page 14: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts Numerical Example

Channel Utilisation (%)

Total number of time steps at which β(k) 6= 2Total number of time steps

,

averaged over 1000 realisations.

0 2 4 6 8 100

20

40

60

80

100

d

Larger thresholds lead to less communication uses!Daniel Quevedo ([email protected]) Control with limited resources March 2016 14 / 47

Page 15: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Event-triggered Control with Dropouts Numerical Example

Whilst the baseline algorithm is simple, it is by nomeans clear that it cannot be outperformed by moreelaborate control formulations.

We will next present an intuitive control algorithm.The purpose is to make efficient use of thecommunication and processing resources available.The algorithm calculates sequences of tentative futureinputs.These are stored in a local buffer.Buffered values may be used when, at some futuretime steps, the processor availability precludes anycontrol calculations, or a dropout occurs (β(k) = 0).

Daniel Quevedo ([email protected]) Control with limited resources March 2016 15 / 47

Page 16: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Method Description

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 16 / 47

Page 17: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Method Description

Event-triggered Anytime Control Algorithm

β(k) = 0

calculate controls (if possible)

and write them into buffer

set u(k)← 0p ;

delete buffer

β(k) = 2

β(k) = 1

the buffer

take u(k) from

If β(k) = 1, then x(k) is used to calculate N(k) ∈ 0,1, . . . ,Λtentative control values using κ:

u0(k) = κ(x(k))

u1(k) = κ(f (x(k),u0(k))

), etc.

This sequence is stored in a local buffer of size Λ. Its contents maybe used when the processor is unavailable or when β(k + `) = 0.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 17 / 47

Page 18: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Method Description

CommentsThe algorithm does not require prior knowledge of processoravailability. Therefore, the control task can be preempted.The buffer state b(k) provides the current plant input,u(k) = b1(k).

If N(k) > 1, then b(k) also contains suggested future inputs.If the buffer runs out of tentative plant inputs, then u(k) = 0p.

We introduce theeffective buffer length

λ(k) =

N(k) if N(k) ≥ 1,max0, λ(k − 1)− 1 if N(k) = 0 and β(k) ∈ 0,1,0 if β(k) = 2.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 18 / 47

Page 19: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Method Description

ExampleSuppose that Λ = 4 and that N(0),N(1),N(2),N(3) = 4,0,1,2.

The Anytime algorithm provides

b(0),b(1),b(2),b(3) =

u0(0)u1(0)u2(0)u3(0)

,

u1(0)u2(0)u3(0)

0p

,

u0(2)0p0p0p

,

u0(3)u1(3)

0p0p

λ(0), λ(1), λ(2), λ(3) = 4,3,1,2, and plant inputs

u(0), . . . ,u(3) = κ(x(0)), κ(f (x(0), κ(x(0)))

), κ(x(2)), κ(x(3)).

If the baseline-algorithm is used, then

u(0),u(1),u(2),u(3) = κ(x(0)),0p, κ(x(2)), κ(x(3)).

Daniel Quevedo ([email protected]) Control with limited resources March 2016 19 / 47

Page 20: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Numerical Example - revisited

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 20 / 47

Page 21: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Numerical Example - revisited

Numerical Example

ResourcesSuppose that Λ = 4 and that

Prβ(k) = 1 | |x(k)| ≥ d = 0.5PrN(k) = j |β(k) = 1 = 0.2, j ∈ 0,1,2,3,4

200 300 400 500 600 7001.8

2

2.2

2.4

2.6

2.8

3

3.2

k

x

Anytime AlgorithmBaseline Algorithm

State trajectorywith d = 2.The anytimecontrol algorithmoutperforms thebaseline controller.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 21 / 47

Page 22: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Numerical Example - revisited

Empirical Cost

1500

(700∑

k=201

x2(k)

),

averaged over 1000 realisations.

0 2 4 6 8 100

5

10

15

20

25

30

d

Anytime AlgorithmBaseline Algorithm

Daniel Quevedo ([email protected]) Control with limited resources March 2016 22 / 47

Page 23: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Numerical Example - revisited

Channel Utilisation (%)

Total number of time steps at which β(k) 6= 2Total number of time steps

,

averaged over 1000 realisations.

0 2 4 6 8 100

20

40

60

80

100

d

Anytime AlgorithmBaseline Algorithm

Daniel Quevedo ([email protected]) Control with limited resources March 2016 23 / 47

Page 24: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Anytime Control Algorithm Numerical Example - revisited

Empirical Cost versus Channel Utilisation

0 20 40 60 80 1000

5

10

15

20

25

30

Channel Utilisation (%)

Empi

rical

Cos

t

Anytime AlgorithmBaseline Algorithm

Performance GainsFor a given transmission rate, the proposed anytime control algorithmreduces the empirical cost by approximately 40-50%.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 24 / 47

Page 25: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis Assumptions

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 25 / 47

Page 26: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis Assumptions

Standing AssumptionsGlobally Stabilising Nominal ControllerThere exist functions V : Rn → R≥0, ϕ1, ϕ2 ∈ K∞,a a constantρ ∈ [0,1), and a control policy κ : Rn → Rp, such that

ϕ1(|x |) ≤ V (x) ≤ ϕ2(|x |),V (f (x , κ(x))) ≤ ρV (x), ∀x ∈ Rn.

aA function ϕ : R≥0 → R≥0 is of class-K∞ (ϕ ∈ K∞), if it is continuous,zero at zero, strictly increasing, and unbounded.

Open-loop boundWith V as above, there exists α ∈ R≥0 such thata

V (f (x ,0p)) ≤ αV (x), ∀x ∈ Rn.

aFor the numerical example described before, we have α = 1.1.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 26 / 47

Page 27: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis Assumptions

Processor availability is i.i.d.The process NN0 has conditional probability distribution

PrN(k) = j |β(k) = 1 = pj , j ∈ 0,1,2, . . . ,Λ,

where pj ∈ [0,1) are given.For other realizations of β(k), no plant inputs are calculated:

PrN(k) = 0 |β(k) ∈ 0,2 = 1.

Packet dropouts are i.i.d.The transmissions are Bernoulli with packet transmissionsuccess probability

Prβ(k) = 1 | |x(k)| ≥ d = q.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 27 / 47

Page 28: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Baseline Algorithm

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 28 / 47

Page 29: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Baseline Algorithm

The Baseline AlgorithmThe closed loop is characterised by:

x(k + 1) =

f (x(k), κ(x(k))), if N(k) ≥ 1,f (x(k),0p), if N(k) = 0.

We denote via p0 the probability that the controller is unable tocalculate any control input, despite x(k) being available.

Stochastic Stability with the Baseline AlgorithmSuppose that E

ϕ2(|x(0)|)

<∞ and that

Γ , (1− q)α + q(p0α + (1− p0)ρ

)< 1.

Then there exist finite γ and µ such thatEϕ1(|x(k)|)

≤ γΓk + µ, ∀k ∈ N0.

If d = 0, then µ = 0.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 29 / 47

Page 30: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Baseline Algorithm

Special case: event-triggering with an erasure channel

κ(·)Plant

x(k + 1) = f (x(k), u(k))

u(k) x(k)

Erasure Channel

|x(k)| < d ?β(k)

If the processor is always available (p0 = 0), then the sufficientcondition for stochastic stability reduces to:

Γ , (1− q)α + qρ < 1,

where:I q is the transmission success probability,I α is the open-loop bound on the plant dynamics, andI ρ is the closed-loop contraction factor ensured by the control law κ.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 30 / 47

Page 31: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Baseline Algorithm

Sketch of proofThe process x(k), k ∈ N0 is Markovian.Using the assumptions and writing x for x(0), we have:

E

V (x(1))∣∣ x =

2∑j=0

E

V (x(1))∣∣ x , β(0) = j

Prβ(0) = j | x

< ΓV (x) + (α− Γ)ϕ2(d), ∀x .

Thus, using the Markov property, we obtain

Eϕ1(|x(k)|) | x

≤ ΓkV (x) +

(α− Γ)ϕ2(d)

1− Γ<∞, ∀k ∈ N0.

Taking expectation with respect to the distribution of the initialstate x(0) establishes the result.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 31 / 47

Page 32: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 32 / 47

Page 33: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Preliminaries

x(k)

calculate controls (if possible)

and write them into buffer

set u(k)← 0p ;

delete buffer

β(k) = 1

the buffer

take u(k) from

β(k) = 0

β(k) = 2

|x(k)| ≥ d|x(k)| < d

(x(k),b(k)

)

Due to buffering, x(k), k ∈ N0 is not a Markov process.This complicates the analysis significantly.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 33 / 47

Page 34: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

PreliminariesTo study stability of the event-based anytime algorithm, we willdevelop a state-dependent random-time drift condition of the form:

EV (x(ki+1)) | x(ki) = χ ≤ D + ΩV (χ), Ω < 1,

where k0, k1, k2, . . . are special random time instants.If x(ki) : i ∈ N0 is Markovian, then the above would ensureexponential boundedness at the instants ki :

E

V (x(ki)) | x(k0) = χ≤ ΩiV (χ) +

D1− Ω

, ∀i ∈ N0.

Depending on1 system behaviour in-between instants ki2 the distribution of ki+1 − ki

boundedness at all instants k ∈ N0 may follow.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 34 / 47

Page 35: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

The Randomly Sampled ProcessWe begin our analysis, by denoting the random time steps wherethe buffer is empty via

K = ki, i ∈ N0,

where

ki+1 = inf

k ∈ N : k > ki , λ(k) = 0, k0 = 0.

We also describe the amount of time steps between consecutiveelements of K via

∆i , ki+1 − ki , i ∈ N0

The following property of the randomly sampled process x is key:

LemmaThe plant state sequence at the time steps ki ∈ K, namelyx(ki) : ki ∈ K, is Markovian.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 35 / 47

Page 36: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

System Behaviour

∆7

k0 k1 k2 k3 k4 k5 k6 k7 k8

∆3 ∆4 ∆6∆5

d

|x |

∆0 ∆1 ∆2

In the present disturbance-free case, the plant inputs are simplygiven by

u(ki) = 0p, ∀ki ∈ Ku(ki + `) = κ(x(ki + `)), ∀` ∈ 1, . . . ,∆i − 1.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 36 / 47

Page 37: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Evolution of V (x(ki))

∆7

k0 k1 k2 k3 k4 k5 k6 k7 k8

∆3 ∆4 ∆6∆5

d

|x |

∆0 ∆1 ∆2

It is then easy to see that

EV (x(ki+1)) | x(ki) = χ,∆i = δ ≤ αρδ−1V (χ), ∀χ ∈ Rn.

Unfortunately, due to the event-triggering mechanism, thedistribution of ∆ii∈N0 depends on x(ki) and is difficult tocharacterise.Hence establishing a suitable drift condition is not so easy!

Daniel Quevedo ([email protected]) Control with limited resources March 2016 37 / 47

Page 38: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Conditioning Events

∆6

k0 k1 k2 k3 k4 k5 k6 k7 k8

∆7∆2∆1∆0

d

|x |

∆3 ∆4 ∆5

It turns out to be convenient to distinguish between the two cases:1 the buffer is emptied due to lack of resources (β(ki+1) ∈ 0,1), and2 it is emptied triggered by the plant state being in the desired region.

Only the first case influences stability conditions.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 38 / 47

Page 39: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Finding an Upper-bound on the Drift

∆6

k0 k1 k2 k3 k4 k5 k6 k7 k8

∆7∆2∆1∆0

d

|x |

∆3 ∆4 ∆5

Accordingly, one can condition on β(ki+1) and use the law of totalexpectation to show that

EV (x(ki+1)) | x(ki) ≤ ϕ2(d) + EV (x(ki+1)) | x(ki), β(ki+1) 6= 2.

Now, we can condition on ∆i to1 establish exponential boundedness at the instants ki ∈ K, and2 upper-bound E

∑ki+1−1k=ki

V (x(k))∣∣ x(ki ), β(ki+1) 6= 2

.

This leads to...Daniel Quevedo ([email protected]) Control with limited resources March 2016 39 / 47

Page 40: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

Main ResultStochastic Stability with the proposed AlgorithmSuppose that E

ϕ2(|x(0)|)

<∞ and that

Ω ,∑δ∈N

αρδ−1Pr∆i = δ |β(ki+1) 6= 2 < 1.

Then there exist finite γ, µ such thatmax

k∈ki ,ki +1,...,ki+1−1Eϕ1(|x(k)|)

≤ γΩi + µ, ∀i ∈ N.

If d = 0, then µ = 0.

The conditional distribution

Pr∆i = δ |β(ki+1) 6= 2 = Pr

∆i = δ∣∣ |x(ki+1)| ≥ d

.

depends only on pj and q and can be easily characterised usingfinite Markov Chain methods (“first return times to λ = 0”).

Daniel Quevedo ([email protected]) Control with limited resources March 2016 40 / 47

Page 41: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis The Anytime Algorithm

CommentsOur result establishes a condition on

I plant,I control law,I channel, andI processor availability

which ensures stochastic stability of the event-based anytimecontrol loop.The analysis can be extended to situations where processor andcommunication resources are not i.i.d., but correlated.Under continuity assumptions, related stability conditions can bederived for plant models with disturbances.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 41 / 47

Page 42: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis Comparison of Bounds

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 42 / 47

Page 43: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Stability Analysis Comparison of Bounds

ResourcesSuppose that the buffer size is set to Λ = 4 and that

Prβ(k) = 1 | |x(k)| ≥ d = 0.5PrN(k) = j |β(k) = 1 = 0.2, j ∈ 0,1,2,3,4

1 1.1 1.2 1.3 1.4 1.5 1.60

0.2

0.4

0.6

0.8

1Baseline AlgorithmAnytime Algorithm

The stability regions in the α-ρ plane established for the anytimecontrol algorithm are larger than those for the baseline controller.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 43 / 47

Page 44: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Conclusions

Outline

1 Event-triggered Control with DropoutsSystem ModelBaseline AlgorithmNumerical Example

2 Anytime Control AlgorithmMethod DescriptionNumerical Example - revisited

3 Stability AnalysisAssumptionsThe Baseline AlgorithmThe Anytime AlgorithmComparison of Bounds

4 Conclusions

Daniel Quevedo ([email protected]) Control with limited resources March 2016 44 / 47

Page 45: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Conclusions

ConclusionsWe have presented a framework for the study of control whenprocessor availability and communication resources are random.

I The sensor node is event-triggeredand transmits data using acommunication link prone to dropouts.

Controller Plant

Channel

I The control algorithm is executed with a processor that can provideonly time-varying and a priori unknown resources.

To better utilise the processor, the plantinputs are calculated by an algorithmthat provides sequences.

controls

delete buffertake u(k)

from buffer

calculate

For general non-linear systems, weused stochastic Lyapunov methods toobtain sufficient conditions for stability. k8

d

|x|

k0 k1 k2k3 k4k5k6k7

Daniel Quevedo ([email protected]) Control with limited resources March 2016 45 / 47

Page 46: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Conclusions

Future WorkMany research problems remain open, e.g.,

characterising closed loop performance,studying event-based transmission strategies with memory, anddeveloping processor scheduling and cooperation strategies.

Further Reading1 D. E. Quevedo, V. Gupta, W.-J. Ma and S. Yuksel, “Stochastic

Stability of Event-Triggered Anytime Control,” IEEE Trans.Automat. Contr., December 2014

2 D. E. Quevedo, W.-J. Ma and V. Gupta, “Anytime Control usingInput Sequences with Markovian Processor Availability,” IEEETrans. Automat. Contr., February 2015

3 B. Demirel, V. Gupta, D. E. Quevedo and M. Johansson,“On thetrade-off between control performance and communication cost inevent-triggered control,” IEEE Trans. Autom. Contr., under review.

Daniel Quevedo ([email protected]) Control with limited resources March 2016 46 / 47

Page 47: An Intuitive Algorithm for Control with Limited ... · Daniel Quevedo (dquevedo@ieee.org ) Control with limited resources 2013, Uni Melbourne 3 / 34 0 20 40 60 80 100 0 5 10 15 20

Conclusions

Acknowledgements

A/Prof. Vijay GuptaDepartment of Electrical EngineeringUniversity of Notre Dame, USADr. Wann-Jiun MaDepartment of Mechanical Engineering andMaterials Science EngineeringDuke University, USAA/Prof. Serdar YukselDepartment of Mathematics and StatisticsQueen’s University, Ontario, Canada

Processing Power Mismatch

5

An Inherent Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  The control designer designs a control algorithm assuming that a control input can be calculated at every time step.

•  The processor designer assumes that the worst case execution time the microprocessor can provide is good enough.

Controller

Sensor System Actuator

6

Challenging the Assumption

Pro

cess

ing

pow

er

Time

Provided by microprocessor

Required by control algorithm

•  Either the processor availability or the computation required by the control algorithms is uncertain and time-varying.

•  The actuator still needs a control input at every time step.

Controller

Sensor System Actuator

The traditional assumption about the processor always being ableto execute the control algorithm during the available computationslot may break down.Overdimensioning the processor or increasing the slot is often notan option, see Airbus European Patent Application “Robustsystem control method with short execution deadlines”, 2013.

Daniel Quevedo ([email protected]) Control with limited resources 2013, Uni Melbourne 3 / 34

Thank You!

Daniel Quevedo ([email protected]) Control with limited resources March 2016 47 / 47