SMS dit: Generalized Convexity and Optimization