Variational analysis with applications in optimisation and control. (2019)