SMS: Elements of optimization