Stanford AA203 Optimal and Learning-Based Control | Spring 2026 | Lecture 10: Reachibility Analysis
Overview
In Stanford AA203, Prof. Marco Pavone connects infinite-horizon Markov decision processes to continuous-time closed-loop control, reviewing Bellman value and Q functions, value iteration, and policy iteration before deriving the roles of the Hamilton-Jacobi-Bellman and Hamilton-Jacobi-Isaacs equations. He applies the continuous-time framework to linear-quadratic regulation and backward reachability, showing how adversarial disturbances model worst-case collision risks and how reachable sets distinguish states to avoid from states that can safely reach a goal.
Key takeaways
- For a finite-state, finite-action infinite-horizon MDP, policy iteration alternates linear-system policy evaluation with greedy policy improvement; strict improvement over a finite policy set guarantees finite-step convergence.
- Value iteration repeatedly applies the infinite-horizon Bellman operator and converges to the optimal value function, while the policy can be extracted afterward by maximizing the one-step reward-plus-value expression.
- In adversarial continuous-time control, nonanticipative strategies let the disturbance react to the controller's current action but not its future actions, modeling a reactive opponent with a slight information advantage.
- The HJB equation is the continuous-time Bellman equation: it combines running cost, the state gradient along the dynamics, and the rate of change of the value function over time.
- For continuous-time LQR, a quadratic value-function ansatz reduces the HJB equation to a Riccati differential equation and produces linear state feedback.
- Backward reachability has opposite planning implications by target type: avoid states from which an opponent can force entry into a danger set, and use states from which the controller can guarantee reaching a goal.
Chapters
- The optimal value function is the fixed point of immediate reward plus the expected optimal value of the next state, maximized over actions.
- For a fixed policy, its value function satisfies a linear system when the state space is finite.
- The optimal Q function represents taking an action now and following the optimal policy thereafter, making it useful in learning settings.
- When transition probabilities and rewards are known, value iteration and policy iteration can compute values and policies.
- Model-based learning estimates transition probabilities from data, then applies planning algorithms such as value iteration.
- Model-free methods target values or policies without first reconstructing the full transition model; Pavone says both approaches will return in later lectures.
- Value iteration starts from an initial value estimate, such as zero for every state, and repeatedly applies the Bellman update.
- Under the stated infinite-horizon MDP assumptions, iterates converge to the optimal value function; a good initial estimate can speed convergence.
- The intuition is backward recursion over an extremely long finite horizon, with repeated updates approaching a stationary fixed point.
- A practical stopping rule can compare successive value vectors, although error bounds or an iteration limit may also guide termination.
- Policy evaluation computes the value of the current policy by solving a linear system over the states, without maximizing over actions.
- Policy improvement chooses, at each state, the action maximizing immediate reward plus the current policy's estimated future value.
- Each improvement step weakly increases policy value and strictly improves it when the current policy is suboptimal.
- With finitely many states and actions, there are finitely many policies, so strict improvement yields finite-step convergence.
- Value iteration first estimates the optimal value function and then extracts a policy using a Bellman maximization.
- Policy iteration operates directly on policies through repeated evaluation and improvement.
- Both methods assume access to the MDP model, especially its transition probabilities; learning methods address cases where that information is unavailable.
- Pavone shifts from discrete-time deterministic control to continuous-time dynamics described by a differential equation and an integral cost.
- Continuous-time formulations can better match naturally continuous systems and can produce policies that are convenient to implement.
- The lecture introduces HJB for standard optimal control and HJI for problems with an adversarial disturbance.
- The disturbance is modeled as a second player choosing actions to minimize the controller's reward, creating a worst-case robust-control problem.
- The controller may prefer stochastic averages in ordinary settings, while adversarial control protects against the worst disturbance within specified limits, potentially at the cost of conservative behavior.
- In the homicidal chauffeur example, a slower pedestrian can exploit a car's speed and turning constraints; initial geometry can determine whether the pedestrian can evade capture.
- The same modeling idea can support collision-avoidance guarantees for aircraft when another pilot's behavior is uncertain or potentially dangerous.
- A fully anticipatory opponent that sees the controller's entire future action sequence has an unrealistic advantage and can make the problem overly conservative.
- The selected strategy model lets player two observe the controller's actions only up to the current time, then respond without seeing future actions.
- The disturbance still has a slight information advantage because it observes the current move before responding.
- The final time is denoted zero in the differential-game convention, with the starting time in the past.
- The controller maximizes its reward while the disturbance minimizes it, subject to joint dynamics depending on both control and disturbance.
- The minimax formulation solves for both the controller's action and the worst-case disturbance, even though a deployed controller uses its own action.
- The order of optimization encodes which player has the advantage; the disturbance's access to the current control informs its damaging response.
- The principle of optimality decomposes the objective into immediate reward over a short interval and an optimal cost-to-go from the next state.
- For a small time step, the integral cost is approximated by the instantaneous running cost multiplied by the time increment.
- The next state is approximated by the current state plus the dynamics multiplied by the time increment, and the future value is expanded to first order.
- At the instantaneous level, the disturbance reacts to the current control, motivating a change in optimization order to preserve its advantage.
- The first-order expansion and minimax formulation lead to a partial differential equation for the optimal value function, with an instantaneous max-min or min-max optimization inside it.
- The HJI equation requires a terminal boundary condition supplied by the terminal cost.
- Once the value function is known, the controller's optimal action is obtained by optimizing the corresponding Hamiltonian expression.
- Pavone notes that the precise swap in optimization order is mathematically subtle and points to further references for a rigorous derivation.
- Without an adversarial disturbance, dynamic programming yields the continuous-time HJB equation, a partial differential equation in time and state.
- For a cost-minimization convention, the equation balances the minimum running cost against the directional change in value along the system dynamics.
- The time derivative captures how remaining cost changes as the horizon shrinks, while the state gradient is evaluated along the controlled dynamics.
- HJB is the continuous-time counterpart of the discrete Bellman equation, replacing stage-to-stage changes with rates of change.
- The continuous-time LQR problem uses linear time-varying differential dynamics and a quadratic integral cost, with Q penalizing state deviation and positive-definite R penalizing control effort.
- Pavone assumes the optimal cost-to-go is quadratic in the state, parameterized by a matrix V, then substitutes that form into the HJB equation.
- Choosing V to satisfy the continuous-time Riccati differential equation, with terminal condition V equal to the terminal-cost matrix H, satisfies the HJB equation.
- The resulting optimal control is linear feedback on the state, as in discrete-time LQR.
- A backward reachable set contains initial states whose trajectories can reach a specified target by a chosen final time.
- For an avoidance target such as a tree or obstacle, the set identifies states from which an adversarial disturbance can force a collision; planners should stay outside it.
- For a goal target, the set contains states from which the controller can reach the goal despite the opponent's actions; planners should start inside it.
- Reachability analysis applies HJI machinery to collision avoidance, pursuit-evasion, and planning under disturbances such as wind gusts.
- The danger set consists of states where player two has a strategy that reaches the undesired target at time zero regardless of player one's control.
- The goal-reachable set consists of states where player one can choose a control that reaches the target despite player two's actions.
- These sets can provide strong safety or task-completion guarantees in robotics systems facing obstacles, wind, or other actors.
- Pavone identifies the minimax-order derivation as the sketchiest part and recommends office hours or the referenced papers for more detail; an interactive course script is offered for further exploration.
Transcript excerpt
0:05 So today we're going to wrap up the lecture from uh last time on uh stochastic uh uh stoastic dynamic programming and in particular the infinite horizon extension to it and then we're going to move to the next topic which is that of closed loop optimal control in continuous time which should be a pretty interesting lecture as we as you would see. Now going back to the discussion from last time, the place where we left it off is we define the extension of stoastic optimal control to an infinite horizon. What happened? I want to know about a joke. >> I said four restaurants on my >> four restaurants and I hope that at least one of those is Italian. [snorts]
0:53 >> Is it? No. Minus five. So yeah, you can minus five points. Anyways, all right. So we set up the infin uh optimal control problem, infinitizen mdp problem and then we discussed how the notion of a bellman equation extends to that setting in a specific form represented by the fixed point infinite horizon of Bellman equation whereby now the optimal value function. We talked how influence setting typically people uh reason in terms of rewards as opposed to costs. So now the object we are trying to compute is not the optimal cost but the optimal reward also
1:40 referred to as optimal value function. So the optimal value function satisfies a fixed point equation whereby v star x the optimal value for the problem that starts at state x is equal to the maximum over use of the immediate reward plus the average optimal uh reward to go where the summation over tx prime xu is essentially averaging the optimal value function from the perspective of the next stage with respect to the all
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Stanford Online.