Non-FictionInformativeEducational

Prompting for Logistics Route Optimization eBook

A Coursebook on Prompting for Logistics Route Opti

by Mccreary Tory

  • English
  • 158 pages
  • 2026
  • SamEnrico

A Coursebook on Prompting for Logistics Route Optimization

Formats

Free sample

Chapter 1: The Algorithm's Blind Spot...--–- The dispatcher stared at the screen, coffee growing cold in her hand. The Transportation Management System had just returned what it confidently called the "optimal route" for tomorrow's deliveries: seventeen stops, 214 miles, estimated completion by 3:47 PM. Perfect, according to the math.But the dispatcher knew something the algorithm didn't.She knew that Stop 4 (Maple Street Dental) had a delivery dock that flooded every time it rained, and rain was forecast for tomorrow. She knew that Stop 7 (the community college) was hosting a graduation ceremony, meaning the main entrance would be blocked from 1:00 to 3:00 PM. She knew that Driver Williams, assigned to this route, had a standing doctor's appointment at 2:00 PM and needed to be near the east side of the city by then—a preference he had mentioned in passing, never entered into any system.The algorithm knew none of this.

And so the "optimal route" was, in fact, a disaster waiting to happen.This is the story of modern logistics. We have spent decades building mathematically beautiful optimization systems. We have solved the Traveling Salesman Problem in a million variations. We have written code that can sequence 500 stops faster than a human can blink. And yet, every day, dispatchers override those perfect algorithms because the algorithms are blind to the messy, qualitative, human reality of actual delivery work.This book exists because something has changed.

Large Language Models—the technology behind tools like Chat GPT, Claude, and Gemini—can finally see what the algorithms cannot. They can read driver notes, interpret weather forecasts, understand that "the blue warehouse behind the old church" is a real place, and weigh a driver's preference for being home by dinner. They cannot calculate a distance matrix to save their lives. But they don't need to. That is what algorithms are for.The thesis of this chapter—and this entire book—is simple, radical, and immediately actionable: Algorithms are brilliant at arithmetic and terrible at judgment.

Large Language Models are brilliant at judgment and terrible at arithmetic. The best logistics system uses both, each doing what they do best, with you as the conductor.This chapter will explain why your current optimization tools are failing you, what makes LLMs fundamentally different (and useful), and how to think about the partnership between human knowledge, algorithmic precision, and AI reasoning. By the end, you will never look at a "perfect" route the same way again.The Million-Dollar Math Problem That Can't Read a "No Trucks" Sign Let us begin with a confession from the world of operations research: the Vehicle Routing Problem (VRP) is computationally brutal. In technical terms, it is NP-hard, meaning that as you add stops, the number of possible routes explodes faster than any computer can evaluate. For twenty stops, there are more possible routes than atoms in the observable universe.

For two hundred stops? Forget it.And yet, we have remarkably good algorithms for solving VRPs. The Clarke-Wright Savings Algorithm (1964) can produce a excellent route in milliseconds. The Lin-Kernighan heuristic (1973) remains the gold standard for the Traveling Salesman Problem. Modern solvers like OR-Tools, LKH, and VROOM combine decades of research into packages that any logistics manager can download for free.So what is the problem?

Why are we still talking about routing optimization in 2026?The problem is not the algorithms. The problem is the inputs.An algorithm requires clean, complete, deterministic data. It needs precise coordinates, exact travel times, fixed capacities, and binary constraints (allowed or not allowed). It cannot process a driver saying "I'd rather not go through the tunnel during rush hour." It cannot interpret "deliver before lunch if possible, but after lunch is fine, just not after 3 PM because the loading dock closes." It cannot remember that last Tuesday, the customer at Stop 12 complained about the driver using the back alley.These are not failures of mathematics. They are failures of representation.

The algorithm has no way to know what it has not been told. And in logistics, most of what matters is never told.Consider these real-world examples, each drawn from actual dispatcher logs:The Hospital Loading Dock: The algorithm routes you to the main entrance because that is what the address says. The dispatcher knows that the main entrance is for ambulances only and that deliveries must use the underground dock on Elm Street, accessed via a ramp that only becomes available after 9:00 AM. This information exists in no database.The Apartment Building Lock: The algorithm sees one stop. The driver knows that Building 4's call box has been broken for six months, meaning you must call the resident directly, which adds exactly four minutes per delivery because the resident takes that long to come down.

Four minutes times fifteen deliveries is an hour.The Seasonal Road: The algorithm shows a direct route through a county road. The driver knows that road is closed every Tuesday from 10 AM to 2 PM for the farmer's market. The algorithm will happily send you there at 11 AM.The Driver's Life: Driver Martinez has a child with a medical condition. She needs to be within ten minutes of St. Mary's Hospital between 2:00 and 3:30 PM on Wednesdays.

This is not a union rule. This is not a legal requirement. This is a human preference that any reasonable dispatcher would accommodate. The algorithm cannot even see it.These are not edge cases. They are the daily reality of logistics.

And they are precisely the kinds of inputs that Large Language Models are designed to handle.The Great Misunderstanding: What LLMs Actually Do Well (and Terribly)Before we go further, we must clear up a widespread and expensive misunderstanding. Most people—including many logistics professionals who should know better—think of Large Language Models as "giant calculators" or "prediction engines." They ask an LLM to "calculate the shortest route" and are confused when the answer is wrong.This is like asking a poet to balance your checkbook. Poetry is not arithmetic. Neither is language modeling.What LLMs do terribly (and will always do terribly):Precise arithmetic: Ask an LLM to add five ten-digit numbers, and it will often be wrong. This is not a bug; it is a feature.

LLMs do not "calculate" in the way a calculator does. They predict the next most likely token. That prediction is shockingly good for many tasks but unreliable for arithmetic.Deterministic optimization: Ask an LLM to solve a 100-stop VRP from scratch, and it will produce a plausible-looking route that is almost certainly suboptimal. The LLM has no internal representation of the distance matrix. It is guessing based on patterns in its training data.Absolute factual recall: Ask an LLM for the exact schedule of a specific ferry between two small islands, and it may confidently invent an answer.

This is called hallucination, and it occurs because LLMs do not have a database; they have a compressed, statistical model of what text looks like.Legal compliance: Ask an LLM whether a route violates a specific Department of Transportation regulation in a specific jurisdiction, and it may give you a reasonable-sounding but entirely wrong answer. The law changes too fast, and the LLM's training data is always slightly out of date.What LLMs…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

A Coursebook on Prompting for Logistics Route Optimization

Details

Author
Mccreary Tory
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Informative, Educational
Released
2026-05-06
Pages (approx.)
158
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Mccreary Tory

See all

You may also like

See all