Download or clone this repo. Make sure you have the following prerequisites:
swipl
>= 9.0.4python
>= 3.8swipl MQI for Python
requirements.txt
for the python virtual environment
-
Create a virtual environment and install the required packages:
python3 -m venv venv source venv/bin/activate pip install -r sim/requirements.txt
-
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 theparam_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.