SMS versenden: Deterministic and stochastic optimal control