Envoyer par SMS: Calculus of variations and optimal control theory :