Envoyer par SMS: Variational determination of eigenstrain sources of residual stress