SMS: Foundations of optimization