Enviar por SMS: Analytical and numerical solutions for a class of optimization problems in elasticity