Business: Operations · Lesson N.ops.6

Choreography: routing and allocation under real constraints

AI optimizes routing and allocation fast, but the mathematically perfect optimization can be operationally impossible. This lesson shows how to audit the real constraint before you run any plan AI considered optimal.

Examples for

You ask AI to build the cheapest delivery route for the day, with fifteen stops. In seconds it returns a sequence that saves 40 kilometers over yesterday's route, pretty, round, looks perfect. Except this route sends the truck down an avenue with a heavy vehicle traffic restriction after eight in the morning, and the third stop is a customer who only receives cargo between ten and eleven, a window the "optimal" route blows past by twenty minutes. On paper, the route is the best possible. On the street, it doesn't run.

There's a silent trap in every optimization: the result can be perfect on paper and impossible on the street. AI is great at finding the best combination within what you told it. The problem is when you didn't tell it everything, and it will never notice that on its own, because for AI, if nobody mentioned a constraint exists, that constraint simply doesn't exist.

The core idea of this lesson. AI optimizes combinatorics incredibly well: routing, allocation, cargo distribution, it tests more combinations in minutes than you'd test by hand in a day. But it only optimizes within the constraints you gave it. If a real constraint (maximum workday, delivery window, weight capacity, exclusivity contract, safety rule) didn't make it into the request, the "optimal" plan can violate that exact constraint, with the same confidence as a correct plan. That's why, before you run any plan AI considered optimal, you audit it against your list of real constraints, written down by hand.

01What AI optimizes well: the combinatorics

Routing, allocation, and cargo distribution are, at their core, combinatorics problems: there are many ways to arrange the pieces, and you want the best one by some criterion, shortest distance, lowest cost, shortest total time. Testing these combinations by hand is slow and, in practice, nobody tests all of them, you test two or three variations and pick the one that looks best.

AI really changes that game. It tests hundreds of combinations in seconds and returns the one that optimizes the criterion you asked for. That's a real gain, and it's exactly where it should be used: generating and comparing variations is mechanical search work, and search at volume is the machine's strength, not yours.

02What stays yours: listing the real constraints

Here's the point the whole lesson revolves around. Before you request any optimization, you need to list, in writing, the constraints the plan MUST respect, because AI doesn't make up those constraints on its own. If you don't say it, it optimizes as if they don't exist.

Think of the constraints that show up every week in a real operation:

This list doesn't come from anywhere magical. It comes from you, from whoever knows the operation inside out, and it needs to be written down before you request the optimization, not checked after looking at the pretty result.

constraints you gave distance, cost, time AI optimizes within this real constraints mentioned? workday, window, weight, contract, safety whatever didn't make it into the request, the optimal plan can violate

03The core danger: optimal on paper can be impossible in practice

Here lives the risk that gives this lesson its name. AI delivers the most efficient plan by the requested criterion, with the same confidence as always, whether it's operationally possible or not. A shorter route can cross a street with a heavy truck traffic restriction. An "efficient" allocation can blow past a driver's workday. A distribution plan can put two cargoes together that can't travel in the same vehicle under safety policy.

OPTIMAL ON PAPER restriction 40km shorter, crosses a forbidden area FEASIBLE slightly longer, respects every constraint

Notice that the route on the right isn't the "best" by the original distance criterion. It's the best by the criteria that actually matter, including the ones that didn't fit into the first request. This isn't AI's failure, it's the request's failure: it optimized exactly what was described, and what was described was incomplete. Keep this sentence, because it applies to almost every optimization disaster: the machine doesn't get the math wrong, it answers exactly the question you asked, and the problem lives in the question.

04Auditing the constraint, before you run any plan

The defense is simple to describe and easy to skip when you're in a rush. Before you accept any plan AI considered optimal, you check it against your list of real constraints, written down beforehand, not against the "seems reasonable" feeling the pretty plan gives off.

The checklist has three steps. First, list the real constraints in writing, before requesting the optimization, not after seeing the result. Second, check each constraint on the list against the plan AI returned, one by one, without skipping any just because the rest looks right. Third, for each constraint violated, calculate the real cost of running it anyway, a fine, labor risk, a broken contract, and decide whether it's worth adjusting the plan or knowingly accepting the cost.

The economic frame closes the argument. The efficiency gain from a route a few kilometers shorter is small next to the cost of a driver blowing past their workday and becoming a labor liability, or a broken exclusivity contract that costs the entire relationship with a partner. Mathematical optimization is only worth it within the real world's constraint; outside it, the gain on paper becomes a loss in practice.

Do it now

Do it yourself

Take a real routing, allocation, or distribution decision you make often, your real task or another one.

  1. Before requesting any optimization from AI, write down in writing the real constraints the plan needs to respect: workday, time window, weight and volume capacity, contract, safety rule, whatever applies to your case.
  1. Ask AI for the optimization, giving the criterion you want to minimize or maximize, but WITHOUT yet mentioning the constraint list, just to see what it returns off the bat.
  1. Check AI's plan against each item on your list, one by one. Mark which constraints the plan violated.
  1. Redo the request explicitly including the constraints that were missing, and compare the two plans. The second one is usually a bit less "efficient" on paper, and infinitely more possible in practice.

Practice

1. In AI powered routing or allocation optimization, what stays yours and AI doesn't do on its own?

2. Why can an 'optimal' route or allocation delivered by AI be operationally impossible?

For the board

On the blind spotfor the AI, a constraint nobody mentioned simply does not exist.
On what is yourslisting the real constraints before running it. The AI optimises the combinatorics, it does not discover reality.
On the impossible optimumthe machine answers the question you asked. A plan that violates a constraint comes out with the same air of certainty as a correct one.
What did you think of this page?
Would you recommend this page to someone on your team?