April 2019
Intermediate to advanced
212 pages
5h 34m
English
The pendulum environment implements the classic inverted pendulum swing-up problem in control theory:

The pendulum is of the length l and weight mg. It has a rotational velocity and a rotational angle. It is frictionless, and the goal is to keep it pointing upright.
From the preceding diagram, we want to keep the rotational angle theta at zero and the rotational velocity as low as possible. The following is the Gym implementation of the frictionless pendulum:

The pendulum has a random starting velocity and a random starting angle ...
Read now
Unlock full access