Zaslat SMS: Foundations of optimization