Zaslat SMS: The approximate minimization of functionals