Case study · Optimization

From an order backlog to a shipment plan a customer can run.

A strategic fourth-party logistics (4PL) customer needed to turn raw order backlogs into shipment plans. I built the route optimization engine end to end and delivered successive iterations that the customer adopted.

The questionWhat makes an optimizer’s plan something people actually execute?

BeforePlanners turned order backlogs into loads by hand, and one planning run took 14 hours.
AfterA run takes 2 hours 35 minutes instead of 14 hours, and the customer adopted successive iterations of the engine. Simulations showed about 30% lower cost than the customer’s baseline allocation; in one modeled scenario, consolidating origins cut cost per shipment by 25% and cost per order by 33%.

The problem

The customer’s backlog held orders with required dates, multiple stops, and piece counts. Turning it into loads meant choosing which orders ride together, in what sequence, and whether each move should go full truckload (FTL) or less than truckload (LTL).

A plan is only useful if planners can execute it as is, so the output had to respect their real constraints, not an idealized version.

From business problem to technical problem

The first job is translation. Here is how the ask changed shape before any code was written.

  1. Business askThe customer’s planners spend too long turning backlogs into loads, and shipping costs more than it should.
  2. Technical questionA constrained allocation problem: assign orders to stops and loads, choose FTL or LTL, respect required dates, and minimize cost per piece.
  3. What success looks likePlans the planners execute as is, compared against their baseline allocation on the same orders.

Paths I weighed

There was more than one reasonable way to do this. These are the options I compared and why I picked one.

Considered

Planner rules of thumb

Upside. Familiar and transparent.

Cost. Doesn’t scale, and leaves cost on the table.

Considered

Chase the exact optimum every run

Upside. The best objective on paper.

Cost. Too slow to iterate on, and hard for planners to trust.

Chosen

Constraint-faithful, fast, ranked options

Upside. Planners compare candidate plans and recognize their own rules in them.

Cost. Trades a little theoretical optimality for speed and trust.

What I built

  1. Order backlogRaw customer orders, dates, and stops
  2. AllocationStop-level allocation with required-date priority
  3. Mode choiceFTL or LTL for each move
  4. RankingCandidate plans ranked by cost per piece
  5. Shipment planExecution-ready output for planners
Eligible orders from the backlog pass through hard constraints on required dates and capacity, are allocated to loads, assigned FTL or LTL, and ranked by cost per piece into an execution-ready plan. Plans are compared with the customer baseline on the same orders, and planner feedback returns as new constraints.
Planner rules are hard constraints and cost is the objective. Feedback goes back in as a constraint, and the plan is rerun.

How it got built, scaled, and fixed

  1. Build

    I encoded the constraints with the planners, so the first plans already looked like theirs.

  2. Scale

    Made runs several times faster, so a full planning cycle fit inside a working day.

  3. Fix

    Each round of customer feedback became the next release, until the customer adopted it.

Decisions that mattered

Encode the planner’s rules

Required dates and stop constraints are hard constraints and cost is the objective, so planners recognize their own plan in the output.

Fast enough to iterate

A planning run originally took 14 hours. Cutting it to 2 hours 35 minutes turned it into something we could rerun as the customer’s needs changed.

Compare like for like

Plans were simulated against the customer’s baseline allocation on the same orders, so the cost difference reflects the method.

What transfers

A plan nobody runs is worth nothing. Encoding the operator’s real constraints and iterating with them mattered more than the last few percent of the objective, and speed mattered because it made iteration possible.

Methods

Constrained optimizationSimulationMode choice (FTL/LTL)

Collaborative work with product and engineering partners; this page describes my contribution. Diagrams are simplified.