Control Theory and Methods
Richard M. Murray Control & Dynamical Systems and Bioengineering California Institute of Technology
Engineering Resilient Space Systems: Leveraging Novel System Engineering Techniques and Software Architectures 30 July 2012
Goals • Provide an overview of the key principles, concepts and tools from control theory that might be relevant for engineering resilient systems - “Classical” control - frequency domain, “inner loop” methods - Optimization-based control - exploit online computation, comms • Describe current trends and recent work in control theory based on work at Caltech and JPL Control in an Information Rich World R. Murray (ed), SIAM, 2003 What is “Control Theory”? [Google: “CDS Panel Report”]
Traditional view • Use of feedback for stability, performance, robustness • DUFF: dynamics, uncertainty, feedback, feedforward Emerging view • Collection of tools and techniques for analyzing, designing and implementing complex systems •ActuateCombination of dynamics, interconnection Sense(fbk/ffd), Gascommunications, Pedal computing and softwareVehicle Speed • Successful implementation of complex systems requires combining traditional controls with CS view Key principles Feedback as a tool Computefor managing uncertainty • Control “Law” • Design of dynamics through integration of sensing, actuation and computation • Component/subsystem modularity (through feedback)
“Principles and methods used to design engineering systems that maintain desirable performance by automatically adapting to changes in the environment”
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 2 Some Important Trends in Control in the Last Decade
(Online) Optimization-based control • Increased use of online optimization (MPC/RHC) • Use knowledge of (current) constraints & environment to allow performance and adaptability Layering and architectures • Command & control at multiple levels of abstraction • Modularity in product families via layers Formal methods for analysis, design and synthesis • Combinations of continuous and discrete systems • Formal methods from computer science, adapted for cyberphysical systems Components → Systems → Enterprise • Movement of control techniques from “inner loop” to “outer loop” to entire enterprise (eg, supply chains) • Use of systematic modeling, analysis and synthesis techniques at all levels • Integration of “software” with “controls”
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 3 Frequency Response, Transfer Functions, Block Diagrams
y = A G(i ) ss ·| |⇥ sin( t + arg G(i ))
101
100 e
Magnitud 10-1 1 G(s)=C(sI A) B + D 10-2 0 n1n2 -50 Gy2u1 = Gy2u2 Gy1u1 = -100 d1d2 Phase (deg) Phase -150
-200 100 101 Frequency (rad/sec)
Parallel Σ
Σ Feedback
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 4 Design Patterns for Control Systems Reactive compensation • Reference input shaping • Feedback on output error • Compensator dynamics shape closed loop response • Uncertainty in process dynamics + external disturbances and noise Goals: stability, performance Predictive compensation • (tracking), robustness
Environment
• Explicit computation of trajectories given a model of the process and environment
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 5 Example #1: Cruise Control d
e u r + C(s) + P(s) y
-1
mv˙ = bv + u + d engine hill Stability/performance u = k(v v ) engine des • Steady state velocity approaches r y desired velocity as k → ∞ |{z} Smooth response; no overshoot or velocity |{z} • oscillations Disturbance rejection k 1 • Effect of disturbances (hills) vss = vdes + uhill approaches zero as k → ∞ b + k b + k Robustness → 1 as → 0 as • None of these results depend on k → ∞ k → ∞ € the specific values of b, m, or k for time k sufficiently large
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 6 Control Tools: 1940-2000
Modeling Basic feedback loop • Input/output representations for subsystems + interconnection rules d • System identification theory and e u algorithms r + C(s) + P(s) y • Theory and algorithms for reduced order modeling + model reduction -1 Analysis • Stability of feedback systems, including robustness “margins” • Plant, P = process being regulated • Performance of input/output systems • Reference, r = external input (often (disturbance rejection, robustness) encodes the desired setpoint) • Disturbances, d = external Synthesis environment Constructive tools for design of • • Error, e = reference - actual feedback systems • Input, u = actuation command • Constructive tools for signal processing and estimation • Feedback, C = closed loop correction • Uncertainty: plant dynamics, sensor noise, environmental disturbances
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 7 Canonical Feedback Example: PID Control
d
e u r + C(s) + P(s) y
-1
Three term controller PID design
• Present: feedback proportional to current • Choose gains k, ki, kd to obtain the error desired behavior • Past: feedback proportional to integral of • Stability: solutions of the closed loop past error dynamics should converge to eq pt - Insures that error eventual goes to 0 • Performance: output of system, y, - Automatically adjusts setpoint of input should track reference • Future: derivative of the error • Robustness: stability & performance - Anticipate where we are going properties should hold in face of disturbances and plant uncertainty
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 8 d Nyquist Criterion Imag e u r + C(s) + P(s) y +j∞ • Nyquist “D” R contour -1 • Take limit as r → 0, R → ∞ Real Determine stability from (open) loop • Trace from −1 r to +1 along transfer function, L(s) = P(s)C(s). imaginary axis • Use “principle of the argument” from complex variable theory (see reading) • Enables loop shaping: design open -j∞ loop to enable closed loop properties Nyquist Diagrams From: U(1) 6 • Trace frequency Thm (Nyquist). Consider the Nyquist plot response for L(s) 4 iω < 0 for loop transfer function L(s). Let along the 2 Nyquist “D” P # RHP poles of L(s) ω=+i∞ contour 0 + ω=0 N # clockwise encirclements of -1 To: Y(1) ω=-i∞ • Count net # of Z # RHP zeros of 1 + L(s) -2 clockwise
-4 encirclements of Then iω > 0 N=2 the -1 point Z = N + P -6 -6 -4 -2 0 2 4 6 8 10 12
Real Axis
KISS, 30 Jul 2012 Richard M. Murray, Caltech CDS/BE 9 Limits of Performance d
Q: How well can you reject a disturbance? e u v • Would like v to be as small as possible r + C(s) + P(s) y • Assume that we have signals v(t), d(t) that satisfy the loop dynamics -1 • Take Fourier transforms V(ω), D(ω) • Sensitivity function: S(ω) = V(ω)/D(ω); want S(ω) « 1 for good performance Thm (Bode) Under appropriate conditions (causality, non-passivity)