Telefona gönder: Deterministic and stochastic optimal control