SMS dit: Nonlinear and dynamic programming