Heads of operations who compare scheduling tools often end up with the same puzzle. One vendor says its system uses machine learning trained on years of past rosters, the other says it uses mathematical optimization, and both show a plan that looks reasonable, which leaves you to work out which one to believe.
Use optimization to make the scheduling decision, and use machine learning to predict the numbers that decision depends on. By optimization we mean a solver working on a constraint programming or integer programming model. How long a task will take, whether an inbound flight will be late and how many orders will arrive tomorrow afternoon are prediction problems, and machine learning is good at them. Who works which shift, which van takes which drop and which crew goes to which stand are decisions bound by hard rules, and that’s what a solver is built for.
The rest of this post is about where that boundary sits, where each side breaks, and how to tell which one a vendor is selling.
What a scheduling decision has to guarantee
A plan for a shift, a route or a turnaround has to satisfy rules nobody gets to negotiate: rest periods between shifts, maximum working hours, licences and qualifications for specific tasks, delivery windows agreed in a contract, and the plain fact that a van only holds so much.
A solver treats these as constraints. It searches only among plans that respect all of them and can prove that the plan it returns does. When no plan can respect them all, it says so and tells you which rules are in conflict, which matters more in practice than people expect. “There’s no legal way to cover Saturday with the people you have” is a useful answer, while a plan that quietly breaks a rest rule to cover Saturday is a liability.
A solver can also explain itself in operational terms. This plan uses one more person because of the licence requirement on the de-icing shift; this route is longer because the customer’s window closes at eleven. Every part of the answer traces back to a rule someone can read.
Why learning from past rosters gives you past rosters
A model trained on historical schedules learns what planners did. On a stable operation that can look impressive, because last year’s planners were competent and most days resemble other days.
Trouble starts when something changes. A new collective agreement shortens the maximum shift, a new airline brings an aircraft type that needs a different qualification, or a depot closes and the delivery area changes shape. The rules have moved while the training data still describes the old ones, so the model keeps producing plans shaped like the old operation until it has seen enough examples of the new one. In the meantime nobody can point to the line that says “maximum shift is now ten hours”.
A learned model also has no notion of feasibility. It produces a plan that resembles good plans, and whether that plan breaks a rule is something you find out by checking it afterwards. If a solver does the checking, the solver was doing the hard part all along. We made the same argument about language models in language models can’t do math, and it holds for any system that learns patterns instead of holding rules.
Where machine learning earns its place
Machine learning has a clear job in scheduling, and that job sits in front of the solver, estimating the numbers the solver takes as given.
Task durations. A turnaround on one stand with one aircraft type rarely takes what the standard table says, and the difference depends on the crew, the weather and the time of day. Predicting it is a learning problem, and a good prediction usually lands closer to reality than an average does. We wrote about why duration averages mislead in your optimizer was right and the shift still went wrong.
Demand. How many passengers will be at check-in in the next hour, how many urgent orders will come in before noon, how many cleaning tasks a terminal zone will need on a heavy afternoon. Forecasting is what statistical learning was made for.
Disruption. Which inbound is likely to arrive late, given the route, the season and the first wave of the day. A probability like that is a useful input to a plan that has to decide where to keep a spare crew.
Each time, the learned model produces a number with a range around it that you can check, and the solver takes that number as an input and makes a decision that respects every rule.
Machine learning estimates the inputs, and the solver makes the call.
Where the solver struggles
Optimization has its own weak spots, and you should hear about them from the vendor before you sign.
Size and time. Some problems are big enough that finding a proven best plan takes longer than the operation can wait. In practice you split the problem, fix part of the plan and re-solve the rest, or accept a very good plan that hasn’t been proven best. A re-plan that arrives in two minutes is worth more than a perfect one that arrives after the aircraft has left.
Rules nobody can state. A solver needs the rules written down. Many of the rules that matter on the floor live in a supervisor’s head and come out one incident at a time. Writing them down is slow, never quite finished, and the biggest cost of an optimization project, and it’s also what makes the result worth keeping.
Objectives that turn out to be trade-offs. The goal is rarely the cheapest plan on its own. It’s the cheapest plan that doesn’t breach the SLA, keeps slack where delays spread furthest and shares overtime fairly. Somebody has to decide how those weigh against each other, and the solver can’t decide that for you, though it can show you the trade-off before you commit.
Five questions to ask a scheduling vendor
Five questions
- When a rule changes tomorrow, where do we change it, and how long until plans respect it?
- If no plan satisfies every rule, what does the system tell us?
- Can it show which rule made a plan more expensive?
- Which numbers does it predict, and which does it decide?
- After the shift, does it compare the plan with what actually happened, and does that feed the next plan?
A vendor who answers the fourth question clearly knows where the boundary is. If the answer is “the AI handles it”, keep asking.
How we split the work
We built erdosP-3 around this division. The solver is our own and holds the operation’s constraints, such as rest rules, licences, collective agreements, equipment, and walking and driving times. Predicted durations and demand go in as inputs. A language model sits on top so that a supervisor can describe a change in words; its job is to turn those words into constraints and explain the result, and it never picks the plan.
Below the solver, OptiCheck records what actually happened task by task, so the durations the next plan uses come from the operation instead of a table. The predictions get better because they’re checked against reality, and the plans get better because the predictions do.
Optimum Intelligence builds scheduling and re-planning systems for airports, ground handling, facility services and goods distribution. If you’re comparing vendors and want a second opinion on what each one actually does, we’re happy to talk.