This project focuses on optimizing delivery routes for a drone delivery service. Using geographical data of cities within the delivery zone, we aim to determine the most efficient warehouse location by calculating distances and delivery volumes. The goal is to minimize total weekly travel distances for the drones.
-
Data Setup:
- Define the origin city (Willowford) and represent other cities graphically with their coordinates along the X and Y axes in kilometers.
- Store the coordinates (
x_axis
andy_axis
) and weekly shipment volume (shipments
) for each city.
-
Data Preparation:
- Combine the data into a
DataFrame
for easier manipulation and visualization. - Calculate the distances between each city using vector lengths and store them in a nested list (
distances
).
- Combine the data into a
-
Warehouse Optimization:
- Calculate the total distance traveled by the drone each week if a warehouse is located in a specific city.
- Double the distances (round-trip) and multiply by the number of shipments per week to get total travel distance for each city.
- Identify the city with the lowest total travel distance to determine the optimal warehouse location.
- Calculate the total distance traveled by the drone each week if a warehouse is located in a specific city.
- Python:
- pandas for DataFrame manipulation and visualization.
- Vector Calculations: To determine distances between cities.
- Optimization Techniques: Applied to identify the most efficient city for the warehouse location.
- A distance matrix was created, showing the distances between all cities in the delivery area.
- Calculated weekly delivery distances for each potential warehouse location.
- Identified the city that minimizes total travel distance, optimizing the drone's delivery routes and saving operational costs.
- Geospatial Calculations: Gained experience working with vector-based distances.
- Data Manipulation with Python: Strengthened skills in handling data with
pandas
. - Optimization Techniques: Learned how to minimize travel distances using quantitative methods.
- Decision Making with Data: Developed competence in using data to determine efficient operational strategies.
-
Clone the Repository git clone https://github.com/realdanizilla/Drone-Delivery.git
-
Check the picture file to visually understand the location of selected cities
-
Open the jupyter notebook to see how data was plotted and how distances were calculated
-
Check the logic to calculate distances and number of deliveries to each city and how the best location was picked
-
Change X or Y coordinates for one or more cities and number of deliveries and re-run the model to see the next best warehouse location