Text this: Optimal control via nonsmooth analysis / Philip D. Loewen.