Nonsmooth Variational Approach to Trajectory Optimization for Electrical Energy Recuperations | Synapse