41
Feedback Control for System Tuning Cody Rioux - @codyrioux Real-Time Analytics - Insight Engineering

Feedback control for system tuning

Embed Size (px)

Citation preview

Page 1: Feedback control for system tuning

Feedback Control for System

Tuning

Cody Rioux - @codyrioux

Real-Time Analytics - Insight Engineering

Page 2: Feedback control for system tuning

Overview

● Feedback Control

○ Definition

○ Conceptual Model

● Concepts

○ Math

○ Rules of Thumb

● Case Study

○ Controlling Chris’ Effective Hours

● Recap

Page 3: Feedback control for system tuning

Controlling dynamic systems through continuous feedback.

Feedback Control

Page 4: Feedback control for system tuning

What is Feedback Control?

A form of Process Control for

controlling the behavior of black

box systems.

Page 5: Feedback control for system tuning

Example:

Driving a Car

Photo Credit @dinkyhim

Page 6: Feedback control for system tuning

Cody EngineAccelerator Speed

Whats a

setpoint?

If you drive like me...

No regard for the speed limit, you’re just a feed-forward automaton.

Page 7: Feedback control for system tuning

You (Driver) Engine (V8)Accelerator Speed

Speedometer

Speed Limit

Driving A Car

Page 8: Feedback control for system tuning

Cruise Control Engine (V8)Accelerator Speed

Speed Reading

Speed Limit

What if we got a machine to do it?

Page 9: Feedback control for system tuning

SystemInput Output

A Conceptual Model

Page 10: Feedback control for system tuning

Controller SystemInput OutputSetpoint

A Conceptual Model

This happens to be a feed-forward system.

Page 11: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 12: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 13: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 14: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 15: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 16: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 17: Feedback control for system tuning

Feedback Principle

Continuously compare the actual

output to its desired reference value;

then apply a change to the system

inputs that counteracts any deviation of

the actual output from the reference.

Page 18: Feedback control for system tuning

You’ll need an advanced math degree for these...

Concepts

Page 19: Feedback control for system tuning

Controller SystemInput Output

Feedback / Error

Setpoint

A Conceptual Model

Page 20: Feedback control for system tuning

error = setpoint - output

Page 21: Feedback control for system tuning

input = gain * error

Page 22: Feedback control for system tuning

Things to keep in mind...

Page 23: Feedback control for system tuning

Gain controls the

magnitude of our

adjustments. This is

important.

Page 24: Feedback control for system tuning
Page 25: Feedback control for system tuning

Univariate feedback is

inherently simple,

multivariate feedback

inherently complex.

Page 26: Feedback control for system tuning

Prefer small and

frequent adjustments to

large infrequent

adjustments.

Page 27: Feedback control for system tuning
Page 28: Feedback control for system tuning

Oscillation creates

instability. We don’t like

that.

Page 29: Feedback control for system tuning
Page 30: Feedback control for system tuning

End-to-end control system for maximum analytics productivity.

Case Study: Controlling Chris’

Caffeine Intake

Page 31: Feedback control for system tuning
Page 32: Feedback control for system tuning
Page 33: Feedback control for system tuning
Page 34: Feedback control for system tuning
Page 35: Feedback control for system tuning

What if this were...

● … a timeout value?

● … a queue size?

● … a server cluster size?

Page 36: Feedback control for system tuning

We can keep Chris rolling at 8 hours a day 365 if we wanted to.

Recap

Page 37: Feedback control for system tuning

Benefits of Feedback Control

● Automatic - No Need for Analytical Model

● Dynamic - System responds to change

● Real Time - Change Happens Fast

● Self-Correcting - Mistakes are Quickly Corrected

Page 38: Feedback control for system tuning

Feedback control is a viable

solution for configuring

systems under dynamic

conditions.

Page 39: Feedback control for system tuning

Only Scratching the Surface

● Integral Controllers

● Derivative Controllers

● PID Controllers

● Statistical Process Control

Page 40: Feedback control for system tuning

Literature

Feedback Control for Computer

Systems (Janert, 2013)

Page 41: Feedback control for system tuning

Questions and Discussion

[email protected]

@codyrioux

linkedin.com/in/codyrioux