Stav dette: Deterministic and stochastic optimal control