On the existence of solutions to a special variational problem