Skip to content

alex-bue/electric-vehicle-routing-problem-with-pickup-and-delivery

Repository files navigation

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.

Installation

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:

  1. Open a terminal.

  2. Navigate to the root directory of the project where setup.py is located.

  3. Setup virtual environment and install dependencies.

    pip install -r requirements.txt
  4. Install package in editable mode:

    pip install -e .

Usage

The evrp can be executed via the command line with the following commands and options.

Commands

  • pdp: Pickup and Delivery Problem
  • epdp: Energy Pickup and Delivery Problem
  • dump-config: Dump the default configuration

Example PDP Command

evrp pdp -o solutions/output.json --date 18/04/2023

Options:

  • -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)

Configuration

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

About

Code used for master's thesis project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published