Optimal Swing Up and Stabilization Control for Inverted Pendulum via Stable Manifold Method | Synapse