Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Optimisation or Prediction: Which Problem Do You Have?
Software Strategy

Optimisation or Prediction: Which Problem Do You Have?

Many projects labelled machine learning are actually optimisation, and building the wrong one wastes months. How to tell them apart before scoping.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Prediction tells you what will happen; optimisation tells you what to do about it given constraints. Routing, rostering, scheduling and allocation are optimisation problems that consume predictions - and building only the prediction leaves the value on the table.

Two different questions

'How many will we sell next week' is a prediction. 'Given that, which supplier should we order from, in what quantity, to which warehouse' is an optimisation.

They need different techniques, different expertise and different data. Projects routinely scope the first when the business needed the second, deliver an accurate forecast, and discover that nothing changed because the decision was never addressed.

How to tell which you have

SignalPoints to
The answer is a number about the futurePrediction
The answer is a choice among optionsOptimisation
There are hard constraints - capacity, hours, budgetOptimisation
Choices interact - allocating here means not thereOptimisation
You want to know what will happenPrediction
You know what will happen and need a planOptimisation

The constraint row is the clearest test. If the answer must respect limits - vehicle capacity, contracted hours, a budget - then a prediction alone cannot produce it.

Common problems that are optimisation

  • Vehicle routing - which stops in which order, within driver hours
  • Staff rostering - who works when, within contracts and skills
  • Production scheduling - what to make in what order on which line
  • Stock allocation - how to split limited stock across sites
  • Price setting under capacity limits - where selling more is not always possible

Each consumes predictions - demand, duration, availability - but the decision itself comes from a solver that respects the constraints. Handing a planner a forecast and expecting them to work out the rest is how a technically successful project delivers nothing.

They work together

The usual architecture is prediction feeding optimisation. Predict demand, service time, or failure probability; then optimise the plan given those predictions and the constraints.

This has a practical consequence for scoping: the prediction's accuracy matters only insofar as it changes the optimised plan. A forecast improvement that never changes the route is worth nothing, which is a useful test for where to spend effort.

Do not build a solver by accident

Teams sometimes attempt optimisation with machine learning because that is the expertise available, training a model to imitate good plans. This usually works poorly - it cannot guarantee constraints are met, which is the entire point.

Established optimisation methods handle these problems well and have done for decades. Recognising that a problem is optimisation is often the single most valuable decision in the project, because it directs you to tools that will actually solve it.

An accurate forecast that nobody can turn into a plan has not changed anything.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Can machine learning do optimisation?

There are hybrid approaches, but for constrained planning problems dedicated optimisation methods are usually better and can guarantee feasibility.

Which should we build first?

Usually enough prediction to feed the decision, then the optimisation. Building a perfect forecast before addressing the decision is a common sequencing error.

How do we know if our forecast is good enough?

Test whether improving it changes the optimised plan. If it does not, effort is better spent elsewhere.

Do we need different people for each?

The skills differ. Optimisation is a distinct discipline from statistical modelling, though there is overlap.

Keep reading

More on Software Strategy

Software Strategy

Machine Learning Myths That Waste Budgets

Eight beliefs about machine learning that quietly inflate project costs, what is actually true instead, and how to spot each one in a proposal.

Start here

Want machine learning project details from us?

Tell us what you are trying to predict and roughly what data you hold. We will come back with an honest view on whether machine learning is the right tool, what the work would involve and a realistic cost range. If a spreadsheet would do the job, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →