The problem of swinging a pendulum is considered by assuming that the length of the pendulum depends on the swing angle. The motion is controlled by jumping between energy level curves. These energy jumps are achieved by changing the length of the pendulum. Also, the stabilities of relative equilibria are checked by Routh’s criterion.