Textmeddelande: A variational approach to structural analysis