A Class of variational problems