Dynamic optimization with complementarity constraints: Smoothing for direct shooting. (4th August 2020)