Αποστολή με SMS: Convex analysis and variational problems