Solutions to variational problems and the strong maximum principle