Text this: Variational and Hamiltonian control systems /