dungtran209/Modelling-and-Analysis-of-a-Vehicle-Routing-Problem-with-Time-Windows-in-Freight-Delivery
A MSc's Dissertation Project which focuses on Vehicle Routing Problem with Time Windows (VRPTW), using both exact method and heuristic approach (General Variable Neighbourhood Search)
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the month
Modelling and Analysis of a Vehicle Routing Problem with Time Windows in Freight Delivery
Introduction
A MSc's Dissertation Project which focuses on Vehicle Routing Problem with Time Windows (VRPTW), using both exact method and heuristic approach (General Variable Neighbourhood Search - GVNS).
The exact approach is based on a classical Mix-Integer Programming (MIP) model and solved by IBM ILOG CPLEX 12.9. Both exact and heuristic algorithm are implemented by Python 3.7 and run on a ASUS Intel Core i7 with 1.8 GHz CPU and 8 GB RAM.
Data
Both methodologies are first tested on the famous Solomon (1987) benchmark instances. The data is avalaible on SINTEF.
Then, the methods are applied to solve an logistics problem in a UK-based company.
Methodology Summary
1. Exact Method: Mathematical Formulations
MIP Model: View
2. General Variable Neighbourhood Search (GVNS)
Pseudo-code: View
Flowchart: View
Detailed elements of the GVNS:
| Element | Content |
|---|---|
| Initial Solution Creation | Solomon I1 Heuristic and Clark & Wright Savings Heuristic |
| Improvement Operator | 2-opt, Or-opt, 2-opt*, Relocation, Exchange, CROSS, ICROSS, GENI, 𝜆-interchange |
| Local Search Process | Variable Neighbourhood Descent (Best-accept strategy) |
| Stopping Criteria | All neighbours (improvement operators) are explored |
Visualization
Best solution (minimum total distance of all tours) found by the GVNS for benchmark instance R206 (100 customers)

Similar Projects
Discover other similar projects and AI models.
A Python Implementation of a Genetic Algorithm-based Solution to Vehicle Routing Problem with Time Windows
The open source Solver AI for Java and Kotlin to optimize scheduling and routing. Solve the vehicle routing problem, employee rostering, task assignment, maintenance scheduling and other planning problems.
Solving the Capacitated Vehicle Routing Problem with Time Windows (CVRPTW) using Mixed Integer Linear Programming (MILP) in Python with the Gurobi API.
OptFrame - C++17/C++20/C++23 Optimization Framework in Single or Multi-Objective. Supports classic metaheuristics and hyperheuristics: Genetic Algorithm, Simulated Annealing, Tabu Search, Iterated Local Search, Variable Neighborhood Search, NSGA-II, Genetic Programming etc. Examples for Traveling Salesman, Vehicle Routing, Knapsack Problem, etMu
OplaPlanner has moved to https://github.com/apache/incubator-kie-drools. This repository is archived. OptaPlanner is an AI constraint solver in Java to optimize the vehicle routing problem, employee rostering, task assignment, maintenance scheduling, conference scheduling and other planning problems.
jsprit is a java based, open source toolkit for solving rich vehicle routing problems