Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.78 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.78 KB
dglbf-logo

How To  files

Download or clone this repo. Make sure you have the following prerequisites:

  1. Create a virtual environment and install the required packages:

    python3 -m venv venv
    source venv/bin/activate
    pip install -r sim/requirements.txt
  2. Then, run the python script in the sim directory, after activating the virtual environment:

    python3 main.py [OPTIONS]

    The script runs a grid search on the parameters of the experiment, generating a random infrastructure and a random set of flows. The results are saved in a CSV file in the results/<experiment> directory.

    Grid parameters can be changed directly in the main.py, by modifying the param_space dictionary.

    
    Change the ranges of random values for both infrastructures and flows in the [`config.py`](https://github.com/di-unipi-socc/dgLBF/blob/main/sim/config.py) script.