How AI can be employed in different layers of a route optimisation engine

AI · ROUTE OPTIMISATION · LAST-MILE LOGISTICS

We hear a lot about AI. But the more useful question is how it can be applied
inside the design and implementation of a route optimisation engine to make a
measurable difference in real logistics operations.

30–40%
potential operational efficiency improvement from AI-driven last-mile solutions
6%
of European logistics providers have applied AI to core operations at scale
Sources cited in the article: DHL, AI in Logistics and Last-Mile Delivery;
BCG, AI Is Already Moving the Logistics Industry Forward, 2026.

THE OPPORTUNITY

The gap between AI potential and real-world adoption

AI-driven last-mile solutions can improve operational efficiency by 30–40%.
Yet in Europe, only 6% of logistics providers have applied AI to their core
operations at scale.

That represents a significant gap, but also a significant opportunity,
particularly for last-mile delivery, morning distribution, food delivery,
and other logistics operations where small improvements in planning efficiency
can have a substantial impact at scale.

THE QUESTION WE WANT TO EXPLORE
How can AI be efficiently applied in the design and implementation of a route
optimisation engine to make a measurable difference in real operations?

Let’s start with the route optimisation solver algorithm, which is the core
part of a

Route Optimisation Engine
.

A ROUTE OPTIMISATION ENGINE

AI should not live in only one layer

1
Clustering
2
Optimisation Solver
3
Route Quality
4
ETA Prediction
5
Performance Learning

01 — AI IN THE SOLVER DESIGN

Using AI to design cutting-edge route optimisation algorithms

Many route optimisation solutions rely primarily on an existing solver —
such as OR-Tools, VRoom, PyVRP, or A* — expose it through an API, and add
surrounding logic.

There is nothing inherently wrong with that approach.

But this is not the full potential of AI in the design of a route optimisation algorithm.

For this purpose, we need to build intelligence into multiple layers of the
route optimisation engine itself, rather than treating AI as an additional
feature placed on top of a traditional solver.

This article aims to dig into different layers where the full potential of AI
can be realised to build a cutting-edge route optimisation engine.

01.1 — ADAPTIVE HIERARCHICAL CLUSTERING

A major part of optimisation happens before the final route is generated

One of the most important parts of route optimisation happens before the final
route sequence is generated.

Solving a VRP, or even a TSP, without appropriate clustering mechanisms can often
lead to routes that are mathematically valid but operationally inefficient.

×
Zig-zagging
×
Unnecessary detours
×
Repeated areas
×
Poor geographical progression

Such routes may also be less likely to be accepted by dispatchers and drivers.

WHY CLUSTERING MATTERS
Clustering helps create routes that are not only mathematically valid,
but geographically sensible and operationally practical.

In single-route optimisation, clustering can help avoid unnecessary detours
and repeated visits to the same geographical areas.

In multi-route optimisation, it can help reduce overlap between routes and
create clearer geographical responsibility for each vehicle.

Nevertheless, clustering alone may not be sufficient, particularly for
large-scale problems.

HIERARCHICAL CLUSTERING · DIVIDE AND CONQUER
STEP 1
Large delivery problem
Cluster A
Cluster B
Cluster C
STEP 3
Smaller and more geographically coherent optimisation problems

Hierarchical clustering can complement the initial clustering mechanism by
reducing the size of the problem space in a divide-and-conquer manner.

Large clusters can be further divided into smaller groups of stops, allowing
the optimisation algorithm to work with more manageable and geographically
coherent sub-problems.

ONE PROMISING APPROACH
Run multiple unsupervised clustering mechanisms in parallel, form alternative
groups of stops, and evaluate which clustering method produces the best result
for that delivery area and operational objective.

01.2 — ADAPTATION BY REGION

One clustering strategy does not fit every region and every day

A clustering strategy that performs well in central Stockholm may not be the
best choice for a rural delivery region.

Even within the same city, different areas can have very different delivery
densities, geographical shapes, and road-network characteristics.

ENVIRONMENT 01
High-density districts
ENVIRONMENT 02
City-centre & suburban
ENVIRONMENT 03
Industrial zones
ENVIRONMENT 04
Rural regions

For this reason, clustering parameters should not remain static.

They can adapt by region and over time based on signals such as:

01   Delivery density
02   Geographic shape of the delivery area
03   Route distance and duration
04   Customer-specific cost functions
05   Historical operational performance
06   Dispatcher corrections and operational feedback
The objective is to allow clustering behaviour to evolve with the operation,
rather than forcing every region and every planning day into the same fixed configuration.

02 — AI FOR ROUTE QUALITY

Can we quantify how “good” a route feels to a dispatcher or driver?

TRADITIONAL QUESTION
“How short is this route?”
THE COMPLEMENTARY QUESTION
“Does this route look like something an experienced courier would actually want to drive?”

Because a mathematically efficient route is not always an operationally good route.

A route may still contain:

Crossing edges
Zig-zag movements
Back-and-forth travel
Returns to served areas
Unnatural geographical progression

These are exactly the kinds of patterns that experienced dispatchers and
couriers often recognise immediately and may correct manually, even when the
route performs well according to conventional metrics such as distance or duration.

An efficient route optimisation engine should therefore evaluate not only
numerical efficiency, but also the shape and operational quality of the route.

0–100
QUALITY SCORE
AI can help quantify less conventional route characteristics such as
crossings, zig-zagging, backtracking,
repeated area visits and geographical coherence.

This score can then become another measurable criterion for both evaluating
optimisation results and guiding the design of the optimisation algorithm itself,
alongside traditional objectives such as distance, duration, and cost.

03 — CONTINUOUS PERFORMANCE MONITORING

Optimisation quality is not static

Even a route optimisation engine that performs very well today may gradually
become less effective as the operating environment changes.

CHANGE 01

Map data is updated frequently

CHANGE 02

Delivery patterns change

CHANGE 03

Customer behaviour changes

CHANGE 04

Operational constraints evolve

A robust optimisation engine should therefore be able to recognise when its
own performance begins to deteriorate.

AI PERFORMANCE MONITOR
Signals worth watching over time
CONTINUOUS
Route distance increasing unexpectedly
Routes becoming less geographically coherent
Certain operation types producing weaker results
Delivery-density patterns changing
Clustering configurations losing effectiveness
Route-quality scores gradually declining

These signals can help trigger further analysis, parameter adjustment,
retraining, or changes to the optimisation strategy.

THE CONTINUOUS IMPROVEMENT LOOP
Measure
Detect
Analyse
Adapt
Improve

This creates a continuous improvement loop around the optimisation engine,
where performance is not only measured at the time a route is generated,
but monitored over time so that the system can adapt as operational conditions change.

04 — AI & MACHINE LEARNING FOR ETA

ETA prediction should learn from actual operations

ETA prediction is another layer where AI becomes operationally important.

Machine-learning models can be used to learn from actual route execution and
adapt as operational behaviour changes, rather than relying on real-time data
that is not useful for the planning phase of routes, which is done early in
the morning or even the previous day.

ETA LEARNING FLOW
01
Historical execution data
02
Machine-learning model
03
Customer adaptation
04
Improved ETA

Depending on available customer data, models can be retrained:


Daily


Weekly


Monthly

The system can start from existing models and progressively adapt to the
individual customer’s operation.

COURIER BEHAVIOUR MATTERS TOO
Two couriers may execute the same type of routes differently.
By learning from historical execution patterns, ETA predictions can better
reflect the courier actually assigned to the route.

Once execution begins, real-time signals can further update ETA predictions.

05 — LEARNING FROM REAL OPERATIONS

Planning tells us what should happen. Operations tell us what actually happened.

PLANNED
What should happen
ACTUAL
What actually happened

When customers choose to provide operational feedback, the planned can be
compared against the actual.

Signals may include:

Actual travel times / distance
Actual route execution sequence
Dispatcher modifications
Courier performance
Route-quality feedback
Local map or access issues

OPERATIONAL FEEDBACK LOOP
Plan
Execute
Measure
Learn
Improve

These signals can improve clustering, ETA prediction, route-quality evaluation,
and other intelligence layers over time.

TRENDROUTE.AI

How our route optimisation engine applies AI across different layers

For TrendRoute.ai, AI is intelligence distributed throughout the optimisation engine.

CLUSTERING INTELLIGENCE
Understand how missions should be grouped.

ROUTE-SHAPE INTELLIGENCE
Evaluate whether a route is operationally intuitive.

PERFORMANCE INTELLIGENCE
Detect when optimisation quality begins to degrade.

PREDICTIVE INTELLIGENCE
Improve ETA accuracy.

FEEDBACK INTELLIGENCE
Learn from what actually happens in daily operations.

THE BIGGER PICTURE

AI as an intelligence layer throughout the optimisation engine

1
Adaptive clustering

Create geographically sensible optimisation problems.
2
Optimisation algorithm

Generate efficient routes under real operational constraints.
3
Route-quality evaluation

Measure characteristics conventional distance metrics do not capture.
4
Performance monitoring

Recognise when optimisation behaviour begins to deteriorate.
5
ETA prediction

Learn from historical execution and operational behaviour.
6
Operational learning

Feed actual execution back into the intelligence layers.

THE GOAL
The goal is not simply to apply a generic solver to a set of coordinates.
It is about building a route optimisation engine around the realities of
logistics operations.
That is the direction we are taking with
TrendRoute.ai.


Explore TrendRoute.ai →