SLIDE 29 EX 4: Smart Appliance Scheduling
Dynamic Programming
Step 1 (Define Value Function): Let Vk(xk) denote the minimum total cost from time step k to terminal time step N, where the smart dishwasher in step k is in cycle xk. Step 2 (PoO Equation): Vk(xk)
=
min
uk∈{0,1} {ck · p(xk+1) · uk + Vk+1(xk+1)}
min
uk∈{0,1} {ck · p(xk + uk) · uk + Vk+1(xk + uk)}
min {Vk+1(xk), ck · p(xk + 1) + Vk+1(xk + 1)} Step 3 (Boundary Equation): VN(5) = 0, VN(i) = ∞ for i = 5 Optimal Control Action: u⋆(xk) = arg min
uk∈{0,1} {ck · p(xk + uk) · uk + Vk+1(xk + uk)}
- Prof. Moura | UC Berkeley | TBSI
CE 295 | LEC 01 - Dynamic Programming Slide 19