Text this: Control of an inverted pendulum using MODE-based optimized LQR controller