Labs · Neuroevolution
Neuroevolution: Balancing a Pole
The classic control benchmark. A pole is hinged on a cart, and the only way to keep it upright is to push the cart left or right, like balancing a broom on your hand. Each cart's neural network sees four numbers (cart position and velocity, pole angle and angular velocity) and outputs a push force.
The whole population is drawn on the same track, ghosted. Carts drop out when the pole falls past 40° or the cart leaves the track. Fitness is survival time. Within a few generations, evolution typically finds a controller that balances indefinitely.
Once they balance, enable "Random gusts" to test how robust the evolved controllers are.
Controls
- Population
- Mutation rate
- Steps per frame
- Random gusts
- Cart colour
- Pole colour
Evolved from Neuroevolution Ecosystem.