- Make sure you have Python 3 installed (we recommend using the Anaconda Python distribution).
- Install Jupyter with
pip install jupyter. Verify that you can start a Jupyter notebook with the command
- Install Flow by executing the following installation instructions.
tutorials/tutorial*.ipynb is a separate tutorial. They can be
opened in a Jupyter notebook by running the following commands.
cd <flow-path>/tutorials/exercises jupyter-notebook
Instructions are written in each file. To do each exercise, first run all of the cells in the Jupyter notebook. Then modify the ones that need to be modified in order to prevent any exceptions from being raised. Throughout these exercises, you may find the Flow documentation helpful. The content of each exercise is as follows:
Tutorial 1: Running SUMO simulations in Flow.
Tutorial 2: Running Aimsun simulations in Flow.
Tutorial 3: Running RLlib experiments for mixed-autonomy traffic.
Tutorial 4: Running rllab experiments for mixed-autonomy traffic.
Tutorial 5: Saving and visualizing resuls from non-RL simulations and testing simulations in the presence of an RLlib/rllab agent.
Tutorial 6: Creating custom scenarios.
Tutorial 7: Creating custom environments.
Tutorial 8: Creating custom controllers.
Tutorial 9: Traffic lights.
Tutorial 10: Running simulations with inflows of vehicles.
Tutorial 11: Running rllab experiments on Amazon EC2 instances.