Pendulum Swing Predictor Simulation