The non-holonomic Herglotz variational problem | Synapse