1. Home
  2. Explore
  3. Computer Science
  4. Real-Time Decision Making

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Real-Time Decision Making

Transcript

[HOST] Thank you all for coming for the second session. Uh, our first speaker in the second session is Professor Richard Murre, who is also the second speaker of the session. Second. Yeah. Speaker of the session. So that tells you how his reputation is in the controls community. He's very well known, very, a large body of work. So welcome, Richard. We are looking forward to your [RICHARD M MURRAY] Talk. Great. Thanks for sharing this. Well, it's my pleasure to be here, of course, and to tell you a little bit about this area. So let me just say what I hope you get out of this talk. So my goal here is, of course, like the two talks in the morning, to get a little bit of an overview of this area for people who aren't familiar with it, and to talk some about how this might be relevant for applications in real time decision making, and of course quite a broad set of applications that we're thinking about in the context of the real time decision making program, so that's

a particular challenge. Um, but of course, really all I'm going to do is, you know, hopefully tease you with some ideas about, "Oh, that's interesting. That's a different way to think about it," or, "That's a feature that I see present in my problems, and so maybe control theory can shed some light or provide some tools," or whatever. And so, I hope you'll come find me if something in here you think might relate to things that you're doing And I'd be happy to follow up. And so and you know, look at joint project opportunities and other things, so please come find me, and hopefully this will be a teaser for more in-depth interactions throughout the time. Um, I'm here Tuesdays through Thursdays most weeks between now and the end of March. And so find me soon. Uh, and then in April and, and May much less often because I have to teach back down at Caltech. Okay, so let me start by just saying a little bit about what is control.

So the problem with the word is it's a broad word, it gets used all over the place, it gets used in lots of different ways. So for people doing feedback control theory, what do we mean by control? And sort of the traditional point of view would be something like this. You have some system that you want to control, maybe it's an autonomous vehicle. This is an autonomous vehicle that was entered in the DARPA Grand Challenge, built by a bunch of Caltech undergraduates named Alice. Uh, and so among other things, one of the things Alice is supposed to be able to do is drive at a constant speed when commanded, so drive at, you know, 25 miles an hour down the road or down the dirt road or wherever it is. And so, a typical feedback control after doing that would be to sense what the vehicle speed is, compare that to what the desired speed is so compute what you want to do, I want to speed up or I want to slow down, and then to actuate the system, press the gas pedal,

press the brake whichever it has to be, and to do this in some sort of a feedback loop. And so in a, you know, starting class, we would say, well, control is really about sensing, actuation, and computation in some sort of a feedback loop. And the idea being that now we want that closed loop system to have some desired behavior or something else. And the typical things that we look at are stability that is that I would like that small perturbations either stay small or better yet converge back to the desired equilibrium point. Performance, I like that when I command a different speed, so I say go from 25 miles an hour to 35 miles an hour that I do so in a way in which it's smooth And it's relatively quick And it feels good and all of those good things, so we have to have performance measures. And then perhaps most importantly, robustly. Uh, that means that in the face of uncertainty, maybe the tank is full, maybe it's not full,

maybe the car is one year old, maybe it's 10 years old, maybe it's got two people in it, maybe it's got 10 people in it, I'd like it to operate the same across all of those different conditions. And so the ideas are to look at stability, which is in some sense the easiest of those, performance, but really robust stability and robust performance are the interesting parts. So how do I have those properties be robust with respect to some source of uncertainty? So in the traditional view, that's it, and you know, we could spend a lot of time talking about how to do those things. But in fact, the field is changing in a, I think, quite exciting way, and so the emerging point of view is a little bit different. And so, you know, the emerging point of view, we go from the sort of applications on the left, which are, you know, kind of aircraft and building controllers and things like that, to the applications on the right, which are, you know,

autonomous cars and biological systems the Internet, you know, very large enterprise scale systems. This one is a battle space management system. And we think about control as the collection of tools and techniques for analyzing, designing and implementing complex systems in the presence of uncertainty. So the uncertainty is still there. And it's a combination of thinking about dynamics, so dynamics of the underlying process as well as dynamics of the feedback control system, interconnections and feedback and feedforward in particular and communications, computing and software, which is how we implement all of those things. And so I think a more modern view, if you looked at control system, you might see something, and I'll put this up in more detail later and we'll kind of walk through some of the pieces that looks like some relatively complicated block diagram at multiple levels of abstraction with all sorts of things going on.

And this is sort of what's going on inside of an autonomous car these days in terms of all of the computing that's going on and the different things that have to be managed. And so I'd say a more modern view of control then would be that it's some sort of product, right of dynamics and uncertainty and feedforward and feedback. And so, you know, somebody says, "What's control about?" Well, it's when all of these things come together that's what the field tries to understand. And so you can remember this by the acronym DUFF. So if you're a Simpsons fan, just think Duff beer and that will remind you dynamics, uncertainty, feedforward, and feedback. Okay, so there are a couple of key principles that guide the way that we think about control systems. And these have been constant over time, both for the kind of traditional view but also this more modern view, and the first of those is that feedback is a tool for managing uncertainty.

Uncertainty in your system, but also uncertainty in the environment. So not only may the system be changing, the age of the car, the power of the car, the weight of the car and other things, but the environment might be changing. I might be on a dirt road or I might be on a highway or I might be on something that's bumpy or smooth. And again, I'd like to use feedback as a way of managing that uncertainty. The other thing is that feedback provides us a tool for designing the dynamics of a system. Oh, and sorry, let me say, if there's no uncertainty, so if you say, "My system is well known, I-- it's completely characterized," you don't need feedback, right? So don't bother with it. But if it has uncertainty, then feedback is one of the tools. There are others as well. Uh, other principle is that it provides feedback and feedforward provide tools for design of dynamics. That is, that we can design the dynamics to be different than the natural dynamics of the system.

So for example, an aircraft that might normally be unstable like that one in the lower left, right, the wings are pointed forward. You can imagine if you tilt it up a little bit, right, that it flips over, right? But with feedback, we can make that have desirable properties so that it flies like a regular aircraft, flies like a very stable aircraft, or something like that. So feedback is a mechanism for designing the dynamics of a system to achieve something you want it to achieve, and it's a mechanism for handling uncertainty and making something robust with respect to the uncertainty. And the two of these together, designing the dynamics and managing uncertainty, provide, I think, one of the powerful kind of corollaries of these which is that feedback enables modularity and interoperability, right? Modularity because now I can interconnect it to different things, and because it's robust with respect to what it's interconnected to,

and because the dynamics, right, are something that I designed to do that in face of that robustness, right, I get a module, right, that can be interconnected to different things and operate in the same way. Yeah? [AUDIENCE MEMBER] Are you restricting feedback to just temporal feedback, or do you include, say, other dimensionalities, particularly space? [RICHARD M MURRAY] Yeah, so in some sense I'll try and say, you know, that generally one wants to look at all sorts of different types of feedback, right? Sort of temporal feedback, but also potential spatial feedback, so something might happen differently when I move over here versus over there, right, or other types. And I'll try and get into some of the different ways-- --that you can think about them. Okay, so at a very, very high level, control is about this kind of set of things. And there have been some important things that have happened in the last 15 years or so,

just to keep in the back of your mind about where is this field going, and what are the tools, and what are people doing with it. And so one of these is that just like every other field, the massive increases in the amount of computation we have available have changed what we can do. And so we've gone from implementing controllers on little, you know bespoke analog circuits and things like that, to implementing things in microprocessors and more complicated, you know, NVIDIA processors and other things. And so online optimization is something we can do. So what this experiment is showing you is something where we're actually calculating out trajectories for this flight control system. And we are calculating every 10th of a second what to do for the next second or two. And then doing that for a 10th of a second and then re-computing, and then re-computing, and then re-computing, right? And doing so, right, all of this re-computation is a mechanism of feedback.

This is something called receding horizon control. I'll give you more detail in a minute. But it allows us to deal with highly non-linear systems in very constrained environments and allows for really quite aggressive types of trajectories and other things that can be very robust. And just to say, this is now something from probably a little bit more than 15 years ago. At the time we implemented it, it took 30,000 dollars' worth of computing to implement that, right? It's, of course, less than the amount of computing on your cell phone today, right? And so this is the type of thing that is all over the place. Feedback control systems use optimization all the time. Yeah? Can [AUDIENCE MEMBER] You tell me what feedforward, you mentioned it-- I [RICHARD M MURRAY] Will. --but I haven't seen it. Yep, give me, give me a second, I'll get to it. Uh, and so you know, I'll talk about it. Okay, so optimization, advances in computing, big deal.

Another is just thinking about, you know, computer science and layering and different layers of abstraction. This is showing a video from the DARPA Grand Challenge. This is a Caltech undergraduate team that designed a vehicle that could drive on roads. Here you're seeing it navigating a stop sign intersection. This is from 2007, so about a decade before the sorts of things you see now. It doesn't know exactly where the road is. It's having to take sensory data, make computations and do things, but it's doing it at multiple layers of abstraction. It has to worry about staying on the road and driving the right speed, but it also has to worry about what are these cars in front of me? What turn--whose turn is it at the intersection? Should I go now or not, right? And things at a different level of kind of discrete decision making. And so these are very complicated systems, and these complicated systems we break up in the usual way into different layers of abstraction and

different components and put them together. Another advance has been, again, taking things coming from computer science, using ideas from formal methods. Uh, this is an area where I'm particularly active and taking ideas from computer science about verification and synthesis using temporal logics and other things, and applying these to control systems. I'm gonna run a video over here on the right, and what you're gonna see is a discrete decision-making system where I have a bunch of incoming robots and they are supposed to get blocked by the robots down at the bottom. This is sort of like a soccer, you know, you block you and, you know, you tag the, you, this other person type of a setup. And the idea is that there's now a protocol that's running on the bottom that is going to switch assignments, right, by talking to the neighbor on the left and the right. And if I see that I'm going for somebody on this side and you're

going for somebody on this side, it would make sense for us to switch. All right? And so we're gonna implement a feedback algorithm that is going to talk to each other and somehow figure out whether or not we should switch, and as it does so, it will always resolve out so that there are no crosses and we can always block people before they come down. And we'd like to prove that that works and it's robust with respect to the dynamics of the incoming agents, et cetera. But this is now a discrete problem rather than some, you know, what speed should you go, right? It's should I be assigned to prob-- you know, to Agent 1 or Agent 2, right? So it's a different style of problem. And finally, the other big trend has been just moving up in scale. And so Internet of Things types of pictures where we really think about doing enterprise-level control, right? And so certainly one of the early ones of those was just internet congestion control.

That was an enterprise-level system. But now when you look at supply chains and when you look at battle space management and you look at all of these other very large-scale systems, these are examples where controls are coming in. Okay, so that's kind of at a high level the sorts of things we'd like to think about, and of course what I want to do is dive in and tell you, answer what is feedforward, what is feedback, but also some of the techniques that we're using. So here's what I'm gonna try and cover you know, in this first lecture and then after a break in the second one, so I'll try and go through all of this and we'll see how far I get. I'll start by just talking about the kind of standard model for control, what's the control architecture that we think about, and try and give a couple of examples of how that architecture can be applied to real-time decision making. Then talk about some of the standard design patterns that are used in control.

If you go look inside the hood of a control system, you'll see typically a couple of different design patterns. And then talk about feedback systems, and then feedforward systems, and so what do I mean by those two things, and how do we use them. Uh, and then, as I have time, I'll talk a little bit about now, as we layer the architecture and look at these more complex systems, what does that look like? And then talk some about reactive protocols, these discrete decision-making protocols. Okay, so that's what I'm going to try and cover. Uh, please feel free to interrupt me, and I'll try and stop at the end of each slide as I start to do a little bit more technical things and say, "Questions?" All right? And if I don't, just raise your hand or yell something out. Okay, so let's talk about this kind of standard model, right? So physics has a standard model. Here's the control system standard model. So we start with some input-output process, right?

So you've got some process, it's got inputs and outputs. It might be your car, and the input is your gas and your steering and the output is the speed you're going and your location. It might be a big computer farm, right, and the input is how many computers should I be running, and the output is how much computation can I do? It might be this building, and I can turn on or off the air conditioning or the heating, right? Anything that you can think of that I have some set of inputs that will typically change the behavior of the process, and I have something that I can observe about that process. And so we want to look at that class of systems.

The first thing we need to do is, the things that we observe may or may not be the things that we care about. That is, the system may have internal state, we may care about what that internal state is, but we can only see what we can measure. And so the very first thing we'll do is we'll put an observer on this. And that observer will watch the outputs of the system and infer something about the system. And indeed, some of the scientific applications that we heard about on Monday, right, where you want to see a supernova or you want to know where an earthquake occurred, right? I don't know what the input for an earthquake is, right, you know, something down deep in the core, but you're watching a bunch of cell phones shake up and down, right, and you'd like to say, "Did an earthquake happen or not?" Right? And so you want an observer that is trying to watch the signal, which is a bunch of things going up and down, and infer something about the underlying process, which is, you know, the San Andreas just erupted, get out of town, or whatever it is.

So we'll typically have some sort of an observer that we use. And of course, the observation process is complicated by the fact that there's often noise involved, so I don't get a clean measurement right? In addition to not necessarily measuring what I want to measure, there may also be noise on that. So the cell phones were all moving around and jumping up and down and other things, and that's corrupting things, right? We gotta look for the correlations between everything going on. Now on the other end, on the input end, we'll typically put our controller. And so the idea of the controller is, I take some sort of a description of the task. I'd like to drive down the road at 25 miles an hour. I'd like to have the building be 30 degrees C or 25 degrees C. Um, and then I'm going to command the inputs. I'm gonna turn on and off the air conditioners, I'm gonna press the gas, I'm going to start up more uh compute servers whatever it happens to be.

So I have some description of my task, and the controller's job is to take that task description and decide what inputs to apply to the process to somehow get that to satisfy that task. And to some extent, the simplest control system would look just like this. And if I had a perfect model of the process, right, I can just kind of invert it out, right? I can say, okay, I know what the heat capacity of this room is and how much heat you're all generating, I know what the temperature outside is, And so I can figure out how much heat do I need to put into this room to keep it at some temperature? How much heat do I need to take out? And then I'll just do that, right? And so if I have all of the information then I can do that. Uh, and we typically call this open-loop control, because I'm not gonna see whether I'm right or not. I'm just going to, right, sort of put something in. You can think about open-loop control lots of different ways.

Uh, a typical stoplight would be open-loop control if it doesn't use a traffic sensor, right? Just gonna say, "Look, I'm just gonna turn my light cycling, right, every two minutes." Right? I'm gonna give different directions, right, the ability to go probably more often than two minutes And that's it, right? And if you're doing that in a mobility situation, that may or may not optimize the mobility, but it's a pretty simple schedule, right? And so we're not gonna measure anything. We're just gonna do that. Now, part of the reason that's complicated, of course, is that what you tell the system to do and what the system actually does may be different, so there are some sort of disturbances that come in, right? So I don't really know the temperature outside, or somebody in here is burning a lot more heat, or somebody plugged their laptop in and that's generating more power than I knew. And so these disturbances make it hard to use just open-loop control and get the desired output.

And so it's at this point that we start using feedback. We say, "Look, but I can measure what the temperature in this room is," or, "I can measure what the traffic is," right? And I can use that to decide whether or not I want to do things. And so the feedback loop, or a closed-loop system, right, comes from taking some output from the observer and then feeding that back and making some decision in the controller that is going to affect the process, which is gonna change the output, right, which is then gonna affect the process, and so I'm gonna get some sort of a cycle. And so the idea, of course, is to try and design that in a way that gives the desired performance. And so now, for example, if there are disturbances and I, let's say I'm doing a car controller and I'm trying to hold the speed constant, and I say, "Well, I know for this car that if I push the gas down this much, I should go 35 miles an hour." But now I start going up a slight hill,

I'll measure that I'm going too slow, right? And I can say, "Oh, well, push the gas a little bit more," and that should speed me up a little bit. I come over the top of the hill, I let it off, right? All of those things. And of course, we have to be careful because this can lead to instability, right? So if I, for example, see that I'm going a little bit too slow, and so I push the gas really hard, well, now I'll go too fast. Now I'm going too fast, so I'll pull back, right? We've all, maybe less so now, but probably all been in cars where somebody's not very good at this, right? And they're kind of rrrr, rrrr, and you get really sick really quickly, right? And so, you know, they're not as good a feedback controller as we might like. Nowadays, cruise controllers are really good, right? You set it at 55 miles an hour, you go 55 miles an hour. You go up a hill, you probably won't even see it deviate off of 55 miles an hour, right? Um, I mean, they really

kind of do the right thing. So that's one way of thinking about feedback, is that we have this process, we have disturbances and noise. We wanna be robust with respect to those disturbances and noise And we have, we'd like to accomplish our task. Now, there's another-- Yeah? I have a question about [AUDIENCE MEMBER] That. Sure. Cruise control and stuff. Are they better because our computation is better or because? [RICHARD M MURRAY] Uh, I'd say a little bit of both. So, you know, part of what happens is the sensors got better, so we can sense speed much more accurately. Part of it is that it used to be that, you know, if you look at a really old car, it would be implemented as a mechanical cruise controller. I mean, it was actually an electro-mechanical system, and that had its limitations in what it could do, and modern computation can do more And so we can measure things better.

And yeah, I'd say that's probably most of it. And you know, everything's electronically controlled now, so you don't have to go through a mechanical process and things like that. Yeah? [AUDIENCE MEMBER] Just about the diagram. Sure. So processing, intermediate processing, you're sort of putting into the group? [RICHARD M MURRAY] Yeah, so I'm gonna, I'm gonna expand on this box and tell you what's inside it. That's where all of the, you know, kind of control theory is happening in some sense. Some on the right-hand side as well, for the estimation algorithms and other things. But at a high level, right, lots of things could go in there, absolutely. Including feedforward, feedback, different types of computation, whether it's electromechanical, et cetera, all fit in that little box. Now, there's one other important part that control theory has developed.

It is traditionally been a very model-based field. That is, you give me a model of the process, you give me a model of what the disturbances and the noise are, usually just bounds on those, right? So I know how much wind there is, so I know what the airplane's going to get moved around by, things like that. And then I will come up with my control law. But one of the things we all know about models is models are always approximations. They're there to answer certain questions and they're never going to be exact for every question. And so one of the things that happened early in control theory is that people thought about, what if your model isn't right? And so often you'll see in a control diagram this little extra piece added up on the top that is some sort of uncertainty. And the idea here is that that box up there, just like the other boxes here, might be a dynamic input-output map. That is, it might actually have dynamics in it.

So, one thing we might think about, for example, is if you're designing a flight controller for an airplane, then of course you design this flight control and you say, "Well, you know, if I want to turn left, I need to kind of, you know, move my flaps around and other things so that I turn left and then fly around," right? And so my process might have those kind of rigid body mechanics in it that give me that with a little bit of the aerodynamics of you know, if I tilt one of the ailerons or other things a certain amount, how much force will I get and all of those things. But of course there's a lot of other things going on, right? The wings are actually flexible, they're not rigid, right? So if you look out the w-- if you're sitting in a wing seat, right, and you look outside and you're like in turbulence or something, you can see the wings are moving, right? And so does that matter or not? Right? There's fuel in those wings, and that fuel's sloshing around. It's a liquid, right?

It has dynamics, right? As you're moving around and getting bucked around, all that fuel sloshing around. Does that matter or not? And so we'll typically put up into that box that I've labeled environment, but really should have probably labeled uncertainty, unmodeled dynamics, right? That is, we know there are dynamics that we're leaving out, and we're going to take that into account in our design. And we're going to bound that, so I'm not saying anything can happen. I'm gonna say, "Look, I know that on my wings, you know, if I move my rigid body around a little bit, I could excite those modes," but I've got some model for I don't expect the wings to bend more than a certain amount or to bend, you know, more than, at higher frequencies than something or other. And so I can put bounds on what that unmodeled set of dynamics are. But I'm not gonna assume that I have all of the dynamics; I'm gonna allow for unmodeled dynamics, disturbances, as well as noise.

So those are the sources of uncertainty. Okay, so in this kind of control diagram there are a couple of key elements. So one is there's the process, some sort of an input-output system that has memory or dynamics to it. We care about things where if I make a change now, that will affect me for some period of time. If I turn the heater on, right, it will take some amount of time until the room heats up, and it will take some amount of time before it cools back down. Uh, we also care about the environment, and so I've drawn this little line just to sort of say the t-- stuff up on the top is the description of the uncertainty present in the system or its environment, right? So there's some sort of unmodeled dynamics, disturbances, and noise. That's gonna typically be bounded, but not specified directly. I'm not gonna-- The whole point is I'm gonna kind of ignore that from the point of view of the design and then show I'm robust with respect to it later.

The third piece, of course, is this observer over here on the right, and so we have to estimate the states that we care about, the underlying system state that we care about from what we can measure. And then of course, the stuff on the left, right, which is the actual controller that we're going to do, and so this is where we're gonna try and achieve the desired task by taking the data that we get from the observer and the known actions that we can apply to the process. So that's the sort of standard picture for control and of course, the part that we think a lot about in the control theory community, right, is now colored in blue, this feedback part, right?

So it's a feedback cycle and you have to be careful how you reason about things because, you know, the changes you make in the controller affect the process, which affects what you observe, which affects what you do in the controller, right? So there's this cycle and there are things that could go wrong. In particular, implementing feedback systems is often painful, and there are three primary disadvantages I would say. One is it's kinda complicated, okay, because you've got to put in extra sensors and actuators and other things. You have a potential for instability whenever you have feedback, so, you know, a standard one is the microphone. If I turn the gain up too much, it'll squeal, right? That's an instability that's occurring, because it's going around this loop and

getting amplified and amplified and amplified until we hit the saturation. And then furthermore, even if it's not unstable, you can still amplify the noise. That is, if I have a noisy sensor, all right, then I might try and respond to that noisy sensor, even though that's not really what the system is doing, right? So, if I don't have a very accurate speed controller, for example, and it's drifting around, all I know is that's the speed I'm reading, right? And so I'll follow that. So these are not good things to have happen. And so to some extent, if you can avoid using feedback, you should but there are reasons why you might want to use it. And I'd say the two primary advantages are that it provides robustness with respect to uncertainty, 'cause you measure what actually happens, right, not what you think happens. And then it enables, through the design of the dynamics as well as this robustness to uncertainty, modularity and interoperability.

So you know, every large scale engineering system involves feedback some place, right? Your body involves feedback all over the place. Ecosystems have feedback all over. Everything has you know, all of these things, and part of it is that it's trying to be robust with respect to uncertainty and provide some set of modulator and interoperability. Okay, so this is my, you know, if you talk to somebody in control theory and you draw this diagram, they oughta say, "Yep. Uh, I get it." You know, "That's exactly what we study." And the generality is, this process can be the Earth's climate. This process can be discreet decisions that are happening inside of an algorithm that's doing Bitcoin mining. These, that process can be, you know, sort of lots of things, as long as it's got inputs, outputs, and some dynamics to it. Okay, so questions about this, if I haven't lost everybody already? Still high level. I'm gonna go in more detail, but just conceptually, this is what we think about as a, as kind of the standard model for control theory.

Okay. All right, so now let's just look at this a little bit, and I'll try and do just a couple of examples. So let's look at some of the things that we've already heard about and say, "Well, how do they fit in this diagram?" So we heard on Monday about a couple of different things, earthquake detection and supernova detection. Those fit into this diagram, but maybe in a simplified way. There's, to my knowledge, no actuator for supernova, at least not one that we control, all right? Yet. The specification, what are we trying to do? Well, we're trying to detect them, right? It's an estimation problem, observer problem, right? And so really it's just this observer only. Earthquakes are a little bit more interesting. You might say, "Well, earthquakes are the same. We're just trying to detect them." But actually we can actuate earthquakes, all right? Fracking actually actuates earthquakes, all right? I mean, this is known. And there's no reason why in principle I

can't say, "Well, look. We're doing fracking. Maybe we should measure what the seismometers say and right before we see the big one about to happen, all right, maybe we should, you know, do a bunch of fracking in certain spots, right, to try and keep that from happening." Yeah maybe right? So I don't know. For now, right, this is observers only. We're not trying to control earthquakes yet But maybe someday. Okay, so these are, I would put these in the class of things that maybe we'll call kind of scientific detection, all right? It is certainly, potentially a real-time decision making problem, but it's one in which mainly we want to detect events, we have sensors and there's an observer. So it fits, but you know, the feedback loop's in there, so control theory is not gonna help very much here, right? Maybe in an auxiliary way.

Now, we saw yesterday a bunch of applications around the ideas of mobility, right? Urban mobility, bike share, car share, right? These are very interesting 'cause they are feedback control systems, right? So for example, if we look at something like bike share, right? What's the actuator? Well, you get to move the bikes around, right? You gotta go pick them up, right? We're empty, we're gonna go pick them up, right? What's the sensor? Well, I know where the bikes are, at least which docks they're in right? I maybe know something about the apps that, you know, somebody says they want to use one or not, right, depending on, and we had this discussion a little bit yesterday. What am I trying to achieve? Well, I want to optimize their location and usage, right? I want to make sure I don't go down to zero. I want to make sure that I've got enough docks to put them in, right? All the stuff we heard about yesterday. And this of course fits in this.

I would say unless you're doing dynamic management, it's not at the fastest time scale, all right? That is, typically, and the people who talked about this can tell me more, you know, you probably think about having an open loop schedule, right? You know, the truck's gonna drive around, and it's gonna pick up this many bicycles from this place and put it there. And not something that's dynamic. I see that I have too many bicycles here, so let me send the trucks out right now and start adjusting them around. But you could do that, right? We could also start, and we talked about this yesterday in some of the questions, incentivizing things, right? "hey, I'll give you five bucks off if you go park your bicycle over there instead of over here." Right? Because what do I want to do? I want to get the closed loop to put the bicycles in the right place at the right time, and my actuator now, right, is probably a list of these other ones incentives, right? So I can use that too.

So we can think of that as a feedback system, and you know, we saw yesterday some examples of things where there were just horrendous dynamics, right? I mean, really bad, right? 'cause it was going down to zero and it was going all over the place, right? You know, I would argue it's not a very good feedback system, right, in what's implemented. Might be 'cause we don't have good actuators, right? Might be 'cause we don't have good sensors, right? Might just be because we haven't actually thought of it as a feedback system and tried to stabilize, right, in a better way what's going on. Okay, so those are I think interesting applications where maybe the ideas from control apply. Certainly there's uncertainty there, right? We don't know exactly who's gonna go where when. We don't know when the bicycles are gonna break, right? You know, if it's ride share, we don't know exactly what the traffic's gonna look like, et cetera, et cetera.

Okay, so these transportation networks then have things like schedules and incentives as their actuators, some sort of demand measurements and supply measurements perhaps in what they sense. They're trying to optimize some sort of utility function. I think they're open loop at the fast time scales, what happens over the course of minutes or day or hours. They're closed loop at a slower rate. That is, we adjust the number of bicycles that we pre-position, we adjust the number of racks, right? So at a weekly time scale, we might have some closed loop stuff. Okay, a third one and this is actually what I'll talk about next week in the public lecture if you come on Tuesday is autonomous vehicles, and I already showed you a little bit of that. So here of course you can think about the actuators just as the gas and the steering. The sensors are all sorts of cameras and radars and laser range finders and other things but also measurements of the traffic and other information that we might get from the cloud. What are we trying to do?

Well, roughly we're trying to get from A to B without hitting anyone, right? And by the way, a smooth ride and, you know, minimize fuel and a bunch of other things, right? But probably the first one is get from A to B without hitting anyone. And it's a very interesting, very complex environment. I'll tell you a little bit more about, you know, some of the architectures they used for that. Okay, so these are examples that we saw, at least the top two classes already and we'll see more tomorrow when we hear about the smart grid and other things, right, of examples where there are feedback and uncertainties and other things. And so maybe the tools from control theory can apply.

Okay, and then I'll just say a little bit about, and, you know, sort of was asked already, what types of systems can one do? And so I'd say there's kind of three broad classes and lots of intersections. One is if we have continuous states, temperature, altitude, speed things like that and we model those with ordinary differential equations or partial differential equations or difference equations, if it's something that's on a discrete time clock. And typically the specifications there might be integrated cost over time or space. So we can think about spatial as a, as the free variable. And these are very well studied systems, and there are lots of tools available, particularly for linear time and variant systems. So if I have a linear differential equation, a linear partial differential equation, a linear difference equation then I can apply a lot more mathematics to that and sort of do things.

So this is sort of the classic area that if you take a class in control theory, you'll almost certainly study this class. Um, one can also think though, and I'll talk more about this at the end, about discrete state systems, right? So now I can turn something on or off, or I can turn left or right. And so I have discrete decisions that I can make. So now the dynamics are gonna be described by some sort of a finite state automata, probably, some sort of an input-output finite state automata maybe timed automata, depending on how time comes in there, Petri nets and other types of representations. There are lots of different ways you can represent these discrete state systems. If it's a manufacturing system and I say, how many parts do I have, right? That's a discrete number, right? We can do, as we saw yesterday a little bit, we can do continuous approximations of those. So I can start looking at densities of parts and

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent