The code was stripped of sensitive data so it is not actually runnable since the required data is missing. It serves as a view only repo to showcase the logic used to get to our thesis results. This core logic (mainly build around Google OR-Tools) lives inside the evrp
package.
To install the package in editable mode, allowing you to make changes to the code and immediately see the effects without reinstalling the package, follow these steps:
-
Open a terminal.
-
Navigate to the root directory of the project where
setup.py
is located. -
Setup virtual environment and install dependencies.
pip install -r requirements.txt
-
Install package in editable mode:
pip install -e .
The evrp
can be executed via the command line with the following commands and options.
pdp
: Pickup and Delivery Problemepdp
: Energy Pickup and Delivery Problemdump-config
: Dump the default configuration
evrp pdp -o solutions/output.json --date 18/04/2023
-o, --output
: Output file path for the solution (default: stdout)--plot_output
: Output file path for the plot--date
: Date for filtering bookings (dd/mm/yyyy
)
You can provide a configuration file before invoking pdp
or epdp
to override the default model values:
evrp -c path/to/config.yaml pdp -o solutions/output.json --date 18/04/2023
The default configuration can be dumped and saved by specifying the --output
flag:
evrp dump-config -o config.yaml