EthanJamesLew / cuda-roa

Fast, parallel method for estimating the region of attraction for a controlled inverted pendulum using CUDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CUDA ROA

Region of Attraction 3M Simulations Completed in 0.60s on a RTX 3090

This project implements a fast, parallel method for estimating the region of attraction for a controlled inverted pendulum using CUDA. It utilizes millions of individual pendulum simulations to identify the initial states that lead to stable behavior. Results from these simulations are used to plot the region of attraction.

Usage

To build the pendulum simulation and run it, use the following commands:

make run

This will compile the CUDA code, run the simulation, and generate the region of attraction plot.

Customization

You can customize the architecture by setting the ARCH variable in the Makefile. By default, it is set to sm_86 (on a RTX 3090, in this case).

About

Fast, parallel method for estimating the region of attraction for a controlled inverted pendulum using CUDA

License:GNU General Public License v3.0


Languages

Language:Cuda 70.2%Language:Python 23.5%Language:Makefile 6.3%