Zaslat SMS: Variational Analysis with Applications in Optimisation and Control