cartpole
The cart-pole system is a classic control problem in which a cart can move horizontally on a track while carrying a pendulum mounted on the cart. The objective is to balance the pendulum in the upright position by applying a horizontal force to the cart. The problem is inherently nonlinear and underactuated, making stabilization challenging.
Mathematically, the model consists of a cart of mass M on a frictionless track and a pendulum
(M + m) x'' + m l theta'' cos theta − m l (theta')^2 sin theta = u
l theta'' + x'' cos theta + g sin theta = 0
The system state is typically x = [x, x_dot, theta, theta_dot].
Control methods often start with linearization around the upright equilibrium for small deviations, yielding design approaches
In practice, the cart-pole appears in AI and control benchmarks. In OpenAI Gym, the CartPole environment uses