SMS dit: Foundations of optimization