This is the repository with examples for the OpenTNSim package.
The package documentation can be found here.
OpenTNSim allows the user to simulate (nautical) traffic flow over a NetworkX graph. A number of examples are presented in the notebooks folder. You can run them locally or as an Azure notebook.
Check the information on how to get started either way.
If you wish to use the notebooks on your local drive, use the following code to get started.
# Download the package
git clone https://github.com/TUDelft-CITG/OpenTNSim-Notebooks
# Go to the correct folder
cd OpenTNSim-Notebooks
# Install package
pip install -r requirements.txt
# Go to the notebooks foldeer
cd notebooks
# Start jupyter notebooks
jupyter notebook
If you wish to run the notebooks using Microsoft Azure, use the following set-up to get started.
- Create a Microsoft account.
- Go to the following Azure Notebooks website.
- Clone the project, see information on cloning by Microsoft.
- Start the notebook server.
- Wait a short while before you run any of the notebooks, the environment takes some time to initialize with the additional packages (such as OpenTNSim and SimPy).