This document contains the documentation around the workshop on “Workshop: Agent-based simulation of Execution Tickets” on 15/11/2024 at 2:30 pm in Class room B.

Theoretical Background


🎰 Workshop Setup

<aside> 💡

Goal of the workshop: Run your own simulation configuration and compare results.

</aside>

‣Using Google Colab (recommended)

If you don’t feel like using Google Colab and want to run the code locally please refer to the section below on how to set it up locally self-guided, e.g. with Jupyter Lab.

1. Sign-up to Google Colab & Copy Notebook

  1. Sign-up using https://colab.research.google.com/
  2. Visit the simulation notebook: https://colab.research.google.com/drive/1i-OJWu8XDYQTBlP8WiB_PCBcQde8a7q2#scrollTo=hOYOlVDUfUGy
  3. Save a copy in your Drive: “File > Save a Copy in Drive”

Bildschirmfoto 2024-11-11 um 13.42.20.png

2. Setting up the Simulation

2.1. Download the repo from Github

Use the following link to download the code: https://github.com/ephema/ET-Simulation

Need a refresher on using GitHub? Check e.g. here

2.2. Move repo folder to Google Drive home folder

The support classes need to be stored in your Google MyDrive to be accessible from the Colab Notebook.

❗Therefore we recommend to copy the folder with the Code (default name ‘ET-Simulation-main’) to your ‘MyDrive’ (link) home directory.

2.3. [Optional] If you don’t store the files in the root folder, adjust the file path

3. Running the Simulation

  1. To run the simulation simply go to ‘Runtime’ and ‘run all’ in the Jupyter notebook. If everything is setup correct it should run and display as well as store the results.

Bildschirmfoto 2024-11-11 um 13.41.00.png

  1. Connect simulation to your Google Drive. When running the simulation you will be prompted to connect your Google Drive. Please do so.

  2. To check if everything worked you can check the results at the end of the notebook. They should show the results for your specific simulation run.

Bildschirmfoto 2024-11-11 um 12.54.54.png

Bildschirmfoto 2024-11-11 um 13.44.49.png