Visit and delivery route order under time windows, with every option checked

by fidji DeepSeek English ~527 tokens
Public excerpt Locked
Travel-time matrix checked for gaps and typos, then: all orders enumerated for up to 7 stops, ranked by total time and tested against each time window with an arrival schedule. Larger days: nearest neighbour + 2-opt, with a lower bound…

About this prompt

Finds the best order for a day of visits or deliveries from a travel-time table, service times and time windows (customer only available 9 to 10, depot closes at 17:00). With few stops every possible order is evaluated; with more, a clear heuristic plus improvement passes and an honest gap estimate. DeepSeek is used because the work is exact combinatorial reasoning: you see why the chosen route beats the others and when each stop is reached.

Example output

Provided by the author
Start H at 8:30. Service 30 min per stop. B must be reached between 9:00 and 10:00. Travel (min): H–A 10, H–B 20, H–C 15, H–D 25, A–B 12, A–C 18, A–D 22, B–C 9, B–D 11, C–D 14 METHOD: 4 stops → 24 orders = 12 distinct round trips, each in two directions → full enumeration. | Rank | Order | Travel time | B arrival | Feasible? | | 1 | H-A-B-D-C-H | 10 + 12 + 11 + 14 + 15 = 62 | 9:22 | yes ✓ | | 1 | H-C-D-B-A-H (reverse) | 15 + 14 + 11 + 12 + 10 = 62 | 10:10 | no | | 3 | H-A-D-B-C-H | 10 + 22 + 11 + 9 + 15 = 67 | 10:13 | no | | 3 | H-C-B-D-A-H | 15 + 9 + 11 + 22 + 10 = 67 | 9:24 | yes | The shortest route, H-A-B-D-C-H (62 min), is feasible, so it is optimal. SCHEDULE | Stop | Arrive | Window | Leave | | A | 8:40 | any | 9:10 | | B | 9:22 | 9:00–10:00 ✓ | 9:52 | | D | 10:03 | any | 10:33 | | C | 10:47 | any | 11:17 | | H | 11:32 | — | — | Total: 62 min travel + 120 min service = 182 min. Slack at B: 38 min before the window closes…

Details

Model
DeepSeek
Prompt language
English
Who it's for
Field technicians, sales reps, home-care planners, small delivery businesses and event organisers
Length
~527 tokens (estimate)
Delivered as
Prompt text, shown online after purchase
Category
Productivity

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt