Nonsmooth Mechanics and Convex Optimization