5,375,107 AI resources indexedWorking toward the world’s largest AI resource index.

Pendulum-v1

A continuous-control benchmark for swinging a pendulum upright and keeping it there.

Published by Farama Foundation

PDF
No ratings yet

Setup and evaluation

The policy selects a continuous torque, which makes this a useful step after discrete-control examples. The reward accounts for angle, angular speed, and torque, so an agent has to balance accuracy with control effort.

Install with pip install gymnasium and instantiate gymnasium.make('Pendulum-v1'). Compare mean return across the same evaluation seeds and keep the episode limits consistent.

Framework
Gymnasium
Access
Local Gymnasium environment. No account required.
Official setup and documentation