Initial conditions and state update

In the single-pole balancing experiment, we used random initial state conditions, but with the two poles, the initial conditions are a bit more simplified. The system starts with all cart and pole velocities set to zero. The initial position of the long pole is one degree from the vertical, and the short pole is exactly upright.

The initial conditions are as follows:

The state of the cart-pole system ...

Get Hands-On Neuroevolution with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.