Αποστολή με SMS: Theory of optimal control and mathematical programming