On a Class of Variational Problems in Rocket Flight