Attainable Region (AR) Tools
This is the GitHub repository of Attainable Region (AR) theory. The main homepage of AR theory can be found at attainableregions.com.
This repository contains:
- A collection of Python functions for carrying out AR computations,
- Interactive Jupyter notebooks that describe the basics of AR theory
- Source code for the examples found on attainableregions.com
1. AR tools
artools.py is a collection of Python functions for carrying out AR calculations as well as performing simple 2-D and 3-D visualisations of convex regions. A Jupyter notebook demonstrating its usage can be found in the notebooks folder.
artools.py to your local directory and import.
Alternatively, add the directory containing
artools.py to your system path, and then import.
import sys sys.path.append('PATH/TO/ARTOOLS/DIRECTORY') import artools
The code currently supports Python versions 3.4 - 3.6.
2. Jupyter notebooks
2.1 If you are using virtual environments
Notebook widgets might not display if Jupyter is run in a virtual environment. If this is the case, issue the following console command:
jupyter nbextension enable --py widgetsnbextension
3. AR website examples
The source code for the examples described on attainableregions.com are stored here.