Geometric numerical integration of nonholonomic systems and optimal   control problems
  A geometric derivation of numerical integrators for nonholonomic systems and optimal control problems is obtained. It is based in the classical technique of generating functions adapted to the special features of nonholonomic systems and optimal control problems. 
M. de Leon, D. Martin de Diego, A. Santamaria Merino