ENN582 Exam Prep v2
ENN582 · Reinforcement Learning and Optimal Control

Exam Prep v2: lectures, ELI5 and your practicals

Every topic from the Week 1–6 notes, plus a lesson for each of your six practical submissions (P1–P6), a mock exam built from them, the 2024 paper solved in full, practice questions, and the cheatsheet you can carry in.

Study plan

The course is one idea told six ways: pick actions now by thinking about the cost they cause later. MPC does it online over a short window, DP solves it exactly backwards in time, infinite-horizon DP removes the end of time, approximate DP cuts the computation, and RL learns it from data without a model.

What the 2024 paper tested
Q1 MPC theory: role of Q, QF, R; receding horizon idea
Q2 Stochastic DP by hand: cost-to-go, policy, J0, solve for β
Q3 Sarsa by hand on a 4-state graph, then extract the best route

25 + 40 + 35 = 100 marks. 75% of the paper is hand calculation (DP recursion and Sarsa table updates). Expect the same shape: one explain-in-words MPC question, one DP derivation, one learning-algorithm table. VI/PI and rollout could replace any of them, so practise those calculations too.

New in v2

Each topic tab now opens with a link to the matching practical. The Practicals tab teaches P1–P6 (code ↔ equation, your results explained, hand-sized versions, exam questions), and the Mock exam tab is a second full paper built from the practicals. The cheatsheet has a new section 9 with the practical results. v2 adds an ELI5 block at the top of every topic tab (plain-language analogies, a diagram, links back to your practicals, and YouTube videos you can play in the page), a light/dark switch (top right), and every tab visible at once.

9-day plan

Tick items as you finish them. Ticks are saved in this browser only.

Notation you will see everywhere

SymbolMeaning
\(x_k,\ u_k,\ w_k\)state, control (action), random disturbance at time k
\(f(x,u,w)\)system model: gives the next state
\(g_k(x,u,w),\ g_N(x)\)stage cost and final (terminal) cost. Rewards are just negative costs
\(N\)horizon length (number of decisions)
\(J_k(x)\)cost-to-go: best possible cost from state x at time k to the end
\(\mu_k(x),\ \pi\)policy: a rule state → action; π = {μ0, μ1, …}
\(\alpha\)discount factor in [0,1) (infinite horizon)
\(p_{ij}(u)\)probability of moving i → j under action u
\(Q(x,u)\)action-value (Q-factor): cost of doing u in x, then behaving well
\(\delta\)learning rate (step size) in TD / Sarsa / Q-learning