SMS versenden: Variational Analysis with Applications in Optimisation and Control