Existence of solutions to a general geometric elliptic variational problem