Real-Time Decision Making


Real-Time Decision Making

Hope
So Corey, we just heard Richard Murray's talk on control theory, and I think it's a great overview for anyone who's not an expert. Let's break it down.

Corey
Absolutely. First, what is control? Richard started with a simple example: an autonomous car trying to maintain a constant speed. You sense the speed, compare it to the desired speed, and then actuate the gas or brake. That's the classic feedback loop.

Hope
Right. And traditionally, control is about stability, performance, and robustness. Stability means small disturbances stay small or die out. Performance is about how well you track a command—like smoothly accelerating from 25 to 35 mph. Robustness means it works even when things change, like the car's weight or road conditions.

Corey
But the field has evolved. Richard described a more modern view: control as a collection of tools for designing complex systems in the presence of uncertainty. It's not just about simple loops anymore—it's about dynamics, uncertainty, feedforward, and feedback. He even gave us a handy acronym: DUFF, like Duff beer from The Simpsons.

Hope
Dynamics, Uncertainty, Feedforward, and Feedback. I like that. And he emphasized two key principles. First, feedback is a tool for managing uncertainty. If there's no uncertainty, you don't need feedback—just open-loop control. But with uncertainty, feedback helps you adapt.

Corey
Second, feedback and feedforward let you design the dynamics of a system. For example, an aircraft that's naturally unstable can be made stable with feedback. That's a big deal. And this combination of managing uncertainty and designing dynamics enables modularity and interoperability—you can plug components together and they'll work robustly.

Hope
Now, Richard talked about some important advances in the last 15 years. One is the massive increase in computation. We can now do online optimization—like receding horizon control, where you re-plan every tenth of a second. That used to require $30,000 of computing; now it's less than a cell phone.

Corey
Another advance is borrowing from computer science: layering and formal methods. Like the DARPA Grand Challenge vehicle that navigated a stop sign. It had multiple layers—low-level control for staying on the road, and higher-level discrete decisions about whose turn it is. Formal methods help verify that these systems work correctly.

Hope
And then there's the move to enterprise-scale systems—like Internet congestion control, supply chains, or battle space management. Control theory is scaling up.

Corey
Let's get into the standard model. It starts with a process that has inputs and outputs. But you might not measure what you care about—you observe some outputs, and you need an observer to infer the internal state. There's also noise and disturbances.

Hope
Then you have a controller. The simplest is open-loop: you know the model, so you compute the input to get the desired output. But if there are disturbances, you need feedback. That's closed-loop: you measure the output, compare to a reference, and adjust the input.

Corey
Richard pointed out a crucial part: the uncertainty box. Your model is never perfect. There are unmodeled dynamics—like wing flexibility on an airplane or fuel sloshing. So you put bounds on that uncertainty and design to be robust.

Hope
He also highlighted that feedback has disadvantages: it's complicated, can cause instability (like microphone squeal), and can amplify noise. So you should avoid it if you can. But the advantages—robustness and modularity—often make it worthwhile.

Corey
Let's talk about examples. Earthquake detection is mostly an observer problem—estimating location from cell phone vibrations. No actuator for earthquakes yet, but for things like fracking, you could imagine feedback control.

Hope
Mobility systems like bike share are interesting. The actuator is moving bikes around or offering incentives. The sensors are dock occupancy or app data. Right now it's often open-loop at fast timescales and closed-loop slower—like adjusting the number of bikes weekly. But with good feedback, you could stabilize the system better.

Corey
Autonomous vehicles are a full-on feedback system: actuators (gas, steering), sensors (cameras, radar), and a complex environment. The main goal: get from A to B without hitting anything.

Hope
Richard also covered the types of systems control deals with. Continuous states—like temperature or speed—modeled by differential equations. Discrete states—like on/off or turn left/right—modeled by automata or Petri nets. And probabilistic systems—like Markov decision processes.

Corey
Specifications vary. For continuous systems, you have transient response metrics—rise time, overshoot, settling time. Steady-state metrics like frequency response—how much you amplify or attenuate disturbances at different frequencies.

Hope
For discrete systems, you have safety properties—nothing bad ever happens—and liveness properties—good things eventually happen. These are often expressed in temporal logic.

Corey
Now, the two main design patterns. The first is reactive compensation. You measure the output, compute the error between reference and actual, and then apply some compensation—like a PID controller. It's simple and works well when you don't have a lot of computation.

Hope
But the more modern pattern is predictive compensation with feedforward. You have a trajectory generator that uses a model to compute a nominal state and input. Then you observe the actual state, compute the state error, and add feedback to correct. This is like what autonomous cars do—they plan a path and then correct for disturbances.

Corey
And that trajectory is re-planned continuously—that dashed line in the diagram. That makes it a feedback loop in itself. This approach relies on having good models and lots of computation.

Hope
Richard answered a great question: can you get away with just reactive feedback? Sometimes yes, but it's hard when you need to look ahead—like changing lanes. You need to anticipate where other cars will be. That's where feedforward planning helps.

Corey
He also mentioned that increasingly, trajectory generation is data-driven. For self-driving cars, you can learn from billions of miles what a human would do and use that as the nominal trajectory.

Hope
And one more thing: control theory traditionally uses models, but it's important to remember that models are always approximations. The uncertainty box captures that. You design to be robust to what you left out.

Corey
So to sum up, control is about feedback and feedforward to manage uncertainty and design dynamics. The field has expanded to handle complex, large-scale systems with discrete and continuous elements. And with cheap computation, we can do much more sophisticated things than ever before.

Hope
And if you want to learn more, Richard encouraged people to talk to him. He's at Caltech and available most weeks. So there's a lot of opportunity to apply these ideas.

Ask anything
We've read this whole study set, so questions about it get the best answers.