Control Room Omar
Menu

Case Study

Wimpy Delivery Route Optimization

A comprehensive Operations Research study optimizing a multi-node fast-food delivery network using Linear Programming, the Floyd-Warshall algorithm, and TSP heuristic models.

2025-05-18 Supply Chain & Operations University
Cover for Wimpy Delivery Route Optimization

My Role

Lead Operations Research Engineer responsible for LP formulation, Floyd-Warshall implementation in TORA, and comparative analysis of TSP heuristic search algorithms.

Outcome

Constructed an optimized 11-node delivery matrix and derived a 53 km optimal delivery circuit using Tabu Search, outperforming Genetic Search by 16.2%.

Tools

Excel TORA Linear Programming Operations Research

TL;DR

To optimize fast-food delivery logistics across Fifth Settlement, New Cairo, I designed a two-phase mathematical modeling framework for the Wimpy branch at Golden Square Mall. Phase 1 established all-pairs shortest paths across an 11-node network using Linear Programming (LP) in Excel and verified them via the Floyd-Warshall algorithm in TORA. Phase 2 solved the Traveling Salesman Problem (TSP) by benchmarking three heuristics: Nearest Neighbor with Subtour Reversal, Tabu Search, and Genetic Search. Tabu Search and Nearest Neighbor achieved the optimal circuit of 52.9 km (~53 km), with Tabu Search selected as the superior algorithm due to its robust ability to escape local optima in scaled networks.

Problem & Justification

High-density urban hubs require rapid and cost-effective delivery management. For fast-food chains like Wimpy in Golden Square Mall (New Cairo), transit delay directly degrades product quality and customer satisfaction. The delivery environment presents several specific operational challenges:

  • Time Sensitivity: Fast-food orders demand tight delivery windows to ensure food arrives hot and fresh.
  • High Demand Density: Golden Square serves a diverse customer demographic—including residential compounds (Mivida, Hyde Park, Dyar), university students (AUC), and major commercial areas.
  • Cost & Overhead: Inefficient routing inflates fuel consumption, driver wear-and-tear, and operational costs.

The primary objective was to mathematically model and optimize delivery routes across a 5 km operational radius, establishing both point-to-point shortest paths and an all-inclusive single-vehicle distribution circuit.

Geographic mapping of the 5 km service radius surrounding the Wimpy central hub in Golden Square Mall, New Cairo.

System Description & Delivery Network

The network encompasses 11 interconnected nodes within the 5 km service radius. Node 1 serves as the origin (Wimpy branch), while Nodes 2 through 11 represent high-frequency customer clusters:

Node IDLocation / LandmarkCategory
Node 1Wimpy, Golden Square MallCentral Hub (Origin)
Node 2Emaar MividaResidential Compound
Node 3Hyde Park New CairoResidential Compound
Node 4Al Ahly Sporting Club (Fifth Settlement)Sports & Community Hub
Node 5Dyar ParkResidential Compound
Node 6Mountain View 1Residential Compound
Node 7Bellagio CompoundResidential Compound
Node 8Al Maram LandmarkCommercial / Residential
Node 9AUC Gate 4 / ResidenceUniversity Campus
Node 10AUC Residence Building / South Investors AreaStudent Housing
Node 11South Investors AreaResidential District

Every node is connected to adjacent nodes forming a well-connected directional graph. Inter-node distances were calculated using Google Maps distance matrix data to account for actual road networks and directional travel rules.

Enlarged visualization

Technical Details & Methodology

The project was executed through a structured two-phase mathematical modeling approach.

Phase 1: Shortest Route Problem (SRP)

To find the optimal individual route from Wimpy (Node 1) to any given destination, a Linear Programming (LP) network flow model was formulated:

LP Objective Function

Minimize the total distance ZZ across all active directed arcs (i,j)(i, j):

minZ=i=111j=111cijxij\min Z = \sum_{i=1}^{11} \sum_{j=1}^{11} c_{ij} x_{ij}

Where:

  • cijc_{ij} represents the distance (in km) from node ii to node jj.
  • xij{0,1}x_{ij} \in \{0, 1\} is a binary decision variable indicating whether the path from ii to jj is traversed.

Flow Conservation Constraints

jxijkxki={1if i=Source Node (Node 1)1if i=Destination Node0otherwise\sum_{j} x_{ij} - \sum_{k} x_{ki} = \begin{cases} 1 & \text{if } i = \text{Source Node (Node 1)} \\ -1 & \text{if } i = \text{Destination Node} \\ 0 & \text{otherwise} \end{cases}

The LP formulation was implemented and solved in Excel Solver. To ensure complete mathematical verification, the identical network matrix was processed using the Floyd-Warshall all-pairs shortest path algorithm in TORA.

Enlarged visualization

Phase 2: Traveling Salesman Problem (TSP)

When a single delivery driver needs to visit all 10 customer nodes in a single trip and return to Wimpy, the problem transforms into a classic Traveling Salesman Problem (TSP). Three heuristic methodologies were implemented and compared:

  1. Nearest Neighbor & Subtour Reversal Heuristic:
    • Constructs an initial greedy tour by sequentially visiting the closest unvisited node.
    • Applies systematic subtour reversals to eliminate crossing edges and reduce total tour length.
  2. Tabu Search Heuristic:
    • Explores neighbor solutions through pair swaps while maintaining a short-term memory list (“tabu list”) with a tenure period of 3 iterations.
    • Prevents cycling back to previously visited states, enabling the search to escape local optima.
  3. Genetic Search Algorithm:
    • Simulates biological evolution over 25 iterations across 74 cycles with a population size of 6 and a mutation probability of 0.01.
    • Uses crossover operators to combine parent tours and evolve better routing sequences.

Heuristic Algorithmic Comparison

The three TSP heuristic models were benchmarked across tour distance, computational behavior, and solution quality:

Feature / MetricNearest Neighbor + ReversalTabu Search HeuristicGenetic Search Heuristic
OverviewGreedy initialization followed by iterative subtour edge reversals.Local search with a memory-based tabu list to prevent cycling.Evolutionary search using crossover, mutation, and population selection.
Optimal Tour Sequence2-1-9-10-11-8-7-6-5-4-3-22-1-10-9-11-8-7-6-5-4-3-22-3-1-11-9-10-8-5-6-7-4-2
Total Distance52.9 km (~53 km)52.9 km (~53 km)63.1 km
StrengthsExtremely fast, simple to compute, direct implementation.Escapes local optima effectively; highly reliable for complex graphs.Explores broad search spaces through population diversity.
WeaknessesHighly sensitive to starting seed; can get trapped in local minima.Requires careful parameter tuning (tenure period, stopping rules).Computationally intensive; slow convergence on small networks.
Termination CriteriaZero remaining reversals yield a shorter tour.Reaches maximum iterations (20) or search stagnates.Reaches max generations/cycles (74 cycles).
Enlarged visualization

Results & Strategic Analysis

Key Findings

  • Verification: 100% agreement between Excel LP Solver outputs and TORA’s Floyd-Warshall algorithm, validating the network distance matrix.
  • Optimal Circuit: Both Tabu Search and Nearest Neighbor + Reversal achieved the minimum total circuit distance of 52.9 km (~53 km).
  • Performance Gap: Tabu Search outperformed Genetic Search by 10.2 km (16.2% distance reduction), demonstrating superior local optima escape capabilities.

Why Tabu Search Wins for Operations

While Nearest Neighbor with Reversal matched the 52.9 km result, Tabu Search is the recommended methodology for production deployment:

  1. Escape from Local Optima: Tabu Search allows non-improving moves when trapped in local minima, utilizing its tabu memory list to explore new search space areas. Greedy heuristics like Nearest Neighbor fail when scale increases.
  2. Genetic Search Limitations: In this configuration, Genetic Search suffered from premature convergence due to small population constraints (6 individuals) and limited generational steps, yielding a sub-optimal 63.1 km route.

Recommendations & Future Scope

Based on the study findings, the following implementation roadmap is recommended for Wimpy operations:

  • Deploy Tabu Search Engine: Embed Tabu Search routing logic into dispatch management software for multi-stop delivery runs.
  • Dynamic Traffic Matrix Integration: Extend the static Google Maps distance matrix to include live traffic API inputs (accounting for rush hour bottlenecks on South 90th Street).
  • Dynamic Node Management: Periodically update network nodes to accommodate new compound entrances and commercial developments in New Cairo.
  • Multi-Vehicle VRP Extension: Scale the single-vehicle TSP model into a Capacitated Vehicle Routing Problem (CVRP) to optimize multi-driver fleets during peak ordering hours.