Topic guide

Transport Optimisation Explained

A route optimiser, taken apart one stage at a time — with an interactive simulation for every algorithm.

Transport optimisation is usually explained either as impenetrable mathematics or as a black box that produces plans nobody can question. This series takes the middle path: it works through an optimiser stage by stage, in the order the stages actually run, and explains each one as a product decision rather than only as an algorithm.

The sequence matters. Before anything can be routed, something has to define what "better" means — that is the objective function, and it is a policy choice disguised as arithmetic. Then orders have to be grouped, a first route built, and that route improved. Each improvement method eventually gets stuck, and each subsequent method exists to escape the specific trap the previous one fell into.

For reasons that become clear in the opening article, the guide throughout is My Name Is Earl. Every stage has an accompanying interactive simulation, so you can drive the algorithm rather than take its behaviour on trust.

Who this guide is for

Product managers, transport planners, solution consultants and engineers who need to understand what a route optimiser is deciding without beginning with advanced mathematics.

For beginners

Start here

A route optimiser searches for a good feasible plan under constraints. It cannot decide what “good” means: people encode that through objectives, weights and rules. Begin with the objective function before comparing algorithms.

Important concepts

Objective function
The score the optimiser tries to improve, such as cost, service, empty distance or a weighted combination.
Constraint
A condition a plan must respect, such as capacity, time windows, skills, driver hours or compatibility.
Heuristic
A practical rule that finds a useful solution quickly without proving it is the mathematical optimum.
Local optimum
A plan that cannot be improved by the current move, even though a better plan exists farther away.

Recommended reading path

Read the articles in the numbered order below. The sequence moves through three stages:

  1. Define betterAgree stakeholder objectives and encode the objective function.
  2. Build a feasible planGroup compatible work and construct initial routes.
  3. Escape local optimaProgress from local search to memory, populations, swarms and destroy-and-repair.

How should you approach an optimisation problem?

Algorithm choice comes after the product and operational questions, not before them.

Articles and interactive models

  1. Transport Optimisation in a TMS: The Only Way Is Earl

    The series opener: why transport optimisation is a product problem before it is an algorithm problem, and why Earl Hickey's list is the right way to frame it.

  2. Objective Functions in Transport Optimisation: Earl's List

    Why transport optimisation has to start by defining what better actually means.

    Explore the Weighted Objective Functions — An Interactive Transport Planning Model interactive model →

  3. Order Clustering for Haulage Planning: Earl Learns About Belonging

    Before a route can exist, something has to decide which orders belong together, and that clustering decision constrains everything downstream.

    Explore the Order Clustering — Comparing K-Means, DBSCAN and Graph Partitioning interactive model →

  4. Clarke-Wright Savings Algorithm for Haulage Routes: Earl Meets Clarke

    The Clarke-Wright savings algorithm from 1964, still running inside commercial transport optimisers, and why chaining stops beats visiting them one at a time.

    Explore the Clarke-Wright Savings — An Interactive Vehicle Routing Simulator interactive model →

  5. Two-Opt and Three-Opt for Haulage Routes: Earl Rewrites the List

    Two-Opt and Three-Opt formalise the planner's instinct that a route crossing its own path “looks wrong”, and then run straight into the local optimum.

    Explore the Two-Opt and Three-Opt — An Interactive Route Improvement Simulator interactive model →

  6. Simulated Annealing for Vehicle Routing: Earl Learns to Cool Down

    Simulated Annealing: why a routing engine sometimes has to accept a worse route in order to reach a much better one.

    Explore the Simulated Annealing — An Interactive Route Optimisation Simulator interactive model →

  7. Tabu Search for Vehicle Route Optimisation: Earl Learns to Remember

    Tabu Search escapes a local optimum using memory rather than chance: the optimiser keeps a list of what it has just tried and refuses to repeat it.

    Explore the Tabu Search — An Interactive Route Optimisation Simulator interactive model →

  8. Genetic Algorithms for Vehicle Routing: Earl's Genetics

    Genetic algorithms stop improving one plan and instead run a whole population of competing plans that can breed.

    Explore the Genetic Algorithms for Routing — An Interactive Evolution Simulator interactive model →

  9. Ant Colony Optimisation for Logistics Routes: Earl Lets the Ants Take Over

    How pheromone trails, exploration, and evaporation help a routing system learn from successful routes.

    Explore the Ant Colony Optimisation — An Interactive Routing Simulator interactive model →

  10. Large Neighbourhood Search for Logistics Routes: Earl Breaks the Plan

    How destroying and repairing part of a route helps an optimiser escape the traps that small improvements cannot reach.

    Explore the Large Neighbourhood Search — An Interactive Routing Simulator interactive model →

  11. Choosing Route Optimisation Algorithms for Logistics: Earl Finishes the List

    From Clarke-Wright and 2-Opt to Simulated Annealing, Tabu Search, Ant Colony and Large Neighbourhood Search, what Earl taught us about solving real optimisation problems.

Where this gets applied

Resource Generator builds the realistic depot, driver, vehicle, and order data these algorithms have to be tested against.

All topic guides