ESAIM: Control, Optimisation and Calculus of Variations