Enviar por SMS: Necessary conditions of optimality for calculus of variations problems with inequality constraints