Reinforcement Learning Example - Pendulum Controller w/ Animation
Updated 27 Jun 2016
Video here: https://www.youtube.com/watch?v=YLAWnYAsai8
Implementation of the Q-learning algorithm. Learns a controller for swinging a pendulum upright and balancing it. Animates the entire process -- you can watch the system explore the state space and begin to get an idea of "good" and "bad" regions. Well-commented code meant to help explain the process. Lots of settings to play with and observe the results!
Matthew Sheen (2021). Reinforcement Learning Example - Pendulum Controller w/ Animation (https://github.com/mws262/MATLAB-Reinforcement-Learning-Pendulum), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox >
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
- Physical Modeling > Simscape Multibody > Multibody Modeling > Assembly > Pendulums >
- AI, Data Science, and Statistics > Deep Learning Toolbox > Deep Learning with Time Series and Sequence Data >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!