Skip to content

This repository offers a comprehensive solution for the Vehicle Routing Problem (VRP) using Python. It includes algorithms for various VRP variants, such as the Capacitated VRP and VRP with Time Windows, along with detailed documentation and practical examples to support implementation and customization.

Notifications You must be signed in to change notification settings

DhruvSTrivedi/VRP-Optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Vehicle Routing Optimization Project

Background Image

Introduction

This project applies the Capacitated Vehicle Routing Problem (CVRP) to enhance delivery logistics for a local restaurant in Waterloo. Utilizing mathematical modeling and optimization algorithms, we aim to boost operational efficiency, reduce costs, and elevate customer satisfaction.

CVRP Formulation

Decision Variables

  • xijk: Binary variable, 1 if vehicle i travels from location j to k, else 0.
  • Loadij: Continuous variable for the load of vehicle i after visiting location j.

Objective Function

Minimize the total distance traveled by the fleet:

  • n: Number of vehicles
  • m: Number of addresses to deliver to
  • Distancejk: Distance between address j and k

Constraints

  • Visit each location exactly once, excluding the depot.
  • Start and end routes at the depot (local restaurant).
  • Vehicle load should not exceed capacity.
  • Load changes after each delivery.
  • No subtours or depot revisits mid-route.

Features

  • Mathematical Optimization: Minimizes total travel distance with constraints.
  • API Integration: Uses Google's Distance Matrix API for distance calculations.
  • Visualization: Employs Folium for interactive mapping and Matplotlib for plotting.

Requirements

  • Python 3.x
  • Pandas
  • Google Maps API
  • OR-Tools
  • Folium
  • Matplotlib

Report

For a detailed analysis and insights, refer to the complete report: VRP_GITHUB/Report.pdf

Team Member

Course

CO 370: Deterministic OR Models
Instructor: Martin Pei - Profile

Key Findings

  • Efficiency Improvement: Reduction in operational costs and enhancement of customer service through route optimization.
  • Practical Application: Real-world application of theoretical models, linking academic concepts with business needs.

Code Output

Conclusion

  • Business Impact: Highlights the significance of route optimization in local business competitiveness and efficiency.
  • Future Scope: Discusses potential enhancements, including scalability and real-time traffic data integration.

Visualization Output

Final Formulation

Interactive Map

For an interactive view of the routes, see the HTML map file: Map

(Note: The HTML file is best viewed in a web browser.)

THANK YOU

About

This repository offers a comprehensive solution for the Vehicle Routing Problem (VRP) using Python. It includes algorithms for various VRP variants, such as the Capacitated VRP and VRP with Time Windows, along with detailed documentation and practical examples to support implementation and customization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published