Constraint Streams - Modern Java constraints without the Drools Rule Language

Editor's note: This post was first published on the OptaPlanner blog in 2020. OptaPlanner continues as Timefold Solver, built by the same team. At the time, Constraint Streams were new. Today they are how you write constraints in Timefold Solver, which no longer supports DRL. Testing constraints in isolation, mentioned at the end of this post, is available through ConstraintVerifier. The code samples use the API from that time.
Traditionally, to scale out with OptaPlanner (now Timefold), you had to learn DRL. No more. With the new Constraints Streams API, inspired by Java 8 Streams and SQL, you can now write your constraints in Java (or Kotlin or Scala) and still benefit from incremental calculation.
Underneath, Constraints Streams (CS) still use the powerful Drools engine. We also still fully support score DRLs too. They are not deprecated.
Let’s start with an example. In nurse rostering, to avoid assigning shifts to employee Ann, you would write this constraint in DRL:
rule "Don't assign Ann"
when
Shift(getEmployee().getName() == "Ann")
then
scoreHolder.addSoftConstraintMatch(kcontext, -1);
end
This is the same constraint in Java using Constraint Streams:
Constraint constraint = constraintFactory
.from(Shift.class)
.filter(shift -> shift.getEmployee().getName().equals("Ann"))
.penalize("Don't assign Ann", HardSoftScore.ONE_SOFT);
If you’re familiar with SQL or Java 8 streams, this should look familiar. Given a potential solution with four shifts (two of which are assigned to Ann), those shifts flow through the Constraint Stream like this:
This new approach to writing constraints has several benefits:
Incremental calculation
First off, unlike an EasyScoreCalculator, Constraint Streams still apply incremental score calculation to scale out, just like DRL. For example, when a move swaps the employee of two shifts, only the delta is calculated. That’s a huge scalability gain:

Indexing
When joining multiple types, just like an SQL JOIN operator, Constraint Streams apply hash lookups on indexes to scale better:

IDE support
Because ConstraintsStreams are written in the Java language, they piggy-back on very strong tooling support.
Code highlighting, code completion and debugging just work:
Code highlighting
DRL code in IntelliJ IDEA Ultimate:

Java code using Constraint Streams in IntelliJ IDEA Ultimate, for the same constraints:

Code completion
Code completion for Constraint Streams:

Of course, all API methods have Javadocs.
Debugging
Add a breakpoint in ConstraintStream’s filter():

To diagnose issues while debugging:

Java syntax
Constraints written in Java with Constraint Streams follow the Java Language Specification (JLS), for good or bad. Similar logic applies when using Constraint Streams from Kotlin or Scala.
When migrating between DRL and Constraint Streams, be aware of some differences between DRL and Java:
- A DRL’s
==operator translates toequals()in Java. - Besides getters, DRL also allows MVEL expressions that translate into getters in Java.
For example, this DRL has name and ==:
rule "Don't assign Ann"
when
Employee(name == "Ann")
then ...
end
But the Java variant for the exact same constraint has getName() and equals() instead:
constraintFactory.from(Employee.class)
.filter(employee -> employee.getName().equals("Ann"))
.penalize("Don't assign Ann", ...);
Advanced functions
The Constraint Streams API allows us to add syntactic sugar and powerful new concepts, specifically tailored to help you build complex constraints.
Just to highlight one of these, let’s take a look at the powerful groupBy method:

Similar to an SQL GROUP BY operator or a Java 8 Stream Collector, it supports sum(), count(), countDistinct(), min(), max(), toList() and even custom functions, again without loss of incremental score calculation.
Future work for Constraint Streams
First off, a big thanks to Lukáš Petrovický for all his work on Constraints Streams!
But this is just the beginning. We envision more advanced functions, such as load balancing/fairness methods to make such constraints easier to implement.
Right now, our first priority is to make it easier to unit test constraints in isolation. Think Test Driven Design. Stay tuned!
Keep reading

Field scheduling software: Evolve from static calendars to real-time optimization
Field scheduling software plans where field workers go, what they do, and when. Most teams start with a static calendar and a dispatcher who fixes it by hand. The most advanced teams use real-time optimization: the plan is built automatically and rebuilt every time something changes, with as little disruption as possible to the rest of the day.
This post walks through the four stages between those two points, what real-time optimization actually requires, and how to move from one stage to the next. It's for operations leaders running field teams and for product managers at software vendors deciding how far their scheduling should go.
Why static schedules break
A static schedule is a promise made at 07:00 about a world that will look different by 09:00. Technicians call in sick. Jobs overrun. A customer cancels, and another reports an emergency. Traffic turns a 20-minute drive into 50 minutes.
Each change forces a decision. If the schedule can't absorb it, a dispatcher has to, usually by moving one job at a time and hoping nothing else breaks. Our post on how to keep schedules alive in real time argues that change should be treated as a constant to manage, and that a good plan is one that stays good as conditions shift. However, it takes a few stages to get to real-time.
The four stages of field scheduling software

Stage 1: static calendars
Drag-and-drop boards are familiar and flexible. For small teams with simple work, they're often enough. The ceiling is the dispatcher. Once there are more technicians, skills, and time windows than one person can hold in their head, the quality of the schedule depends on how busy the dispatcher is that day.
Stage 2: rule-based auto-assignment
Rules remove the busywork of obvious decisions. "Assign the nearest available technician with the right skill" works well until it doesn't. Because each job is assigned in isolation, the system can send your only certified technician to a routine job, leaving nobody for the urgent one that arrives an hour later.
Stage 3: batch optimization
Optimization evaluates the whole plan at once, balancing skills, time windows, SLAs, travel, and working hours through weighted constraints. The result is a much better starting plan. The weakness is timing. If optimization only runs overnight, every change during the day falls back to manual handling.
Stage 4: real-time optimization
Real-time field scheduling software keeps optimizing through the day. When something changes, it updates the plan in seconds or minutes, and it keeps the parts of the plan that don't need to move.
What real-time optimization requires
Replanning fast isn't enough on its own. A system that produces a brand-new optimized plan every 15 minutes would be unusable, because technicians and customers would see their appointments shuffle constantly. Real-time optimization needs a few specific capabilities.
Pinning
Some work can't move: jobs in progress, jobs already confirmed with the customer, or technicians already on the road. Pinning locks those parts of the plan so the model only changes what's still open.
The cases in which pinning is useful can be split into 2 major groups.
- Block pinning: You pin multiple visits in 1 large block. This is typically the case when you want to keep visits in place that can't be changed anymore, for example when the visit is already underway or in the past.
- Pin an individual visit: A very targeted pin locks 1 or more visits in place.

For more information on pinning, check out our documentation.
Minimal disruption
When the model replans, it should prefer small, local changes over large ones. If one technician drops out, their visits should be redistributed nearby, while the rest of the team's day stays as it was.

Timefold Field Service Routing model supports replanning an existing schedule with minimal disruption to the original plan, as described in our documentation.
Recommendations
Not every change should be automatic. When an urgent job comes in, a dispatcher often wants to choose. A recommendation feature shows the best technicians for that job and the cost of each option, so the dispatcher decides with the full picture.

Continuous planning and planning windows
Real-time planning works best when the horizon keeps rolling forward. Instead of planning each day from scratch, the model plans the next few days or weeks and keeps optimizing what's new as time passes.

Backup capacity
You can plan for disruption before it happens. A constraint that keeps some slack in the schedule, such as a technician with a lighter load in each region, makes the plan easier to repair when something goes wrong.
A day with real-time field scheduling
Here's how a Tuesday might look for a utility maintenance team of 60 technicians.

- 06:30 The model produces the day's plan from overnight data. Confirmed appointments are pinned.
- 07:45 Two technicians call in sick. The model redistributes their visits to nearby technicians with the right skills. Three low-priority visits move to Wednesday. Everyone else's morning stays the same.
- 10:10 A gas leak report arrives with a one-hour SLA. The dispatcher asks for recommendations and sees three qualified technicians, each with the impact on their remaining visits. The dispatcher picks the option that delays the fewest customers.
- 13:20 A job overruns by 90 minutes. The model shifts that technician's afternoon and moves one visit to a colleague finishing early.
- 16:00 Tomorrow's plan already reflects today's changes, because planning never stopped.
In this example, the dispatcher didn't need to spend hours reshuffling the schedule. They spent the day on decisions that need judgment, rather than on rearranging calendars.
How to move up the stages
Going straight from static calendars to real-time planning is a big leap. Here is how we recommend you move up the ladder.

- Get the data right. Optimization depends on accurate job durations, technician skills, locations, and shift times. Our post on the data foundations of efficient field service covers what you need.
- Start with batch optimization. Run planning optimization next to your manual daily planning and compare. Measure the difference in drive time, SLA compliance, and jobs per technician. Then gradually move from the manual plan to the optimized plan with some manual modifications (if needed).
- Add replanning for common disruptions. Sick calls and urgent jobs are the most frequent triggers. Handle those first.
- Introduce recommendations. Give dispatchers options for urgent work. While you could also let an automated process take the best recommendation, human intuition is still very valuable for selecting the right technicians.
- Roll the horizon forward. Move from planning one day at a time to continuous planning across days or weeks.
Where Timefold fits
Timefold builds optimization solutions for scheduling and routing. It runs behind the dispatch board or FSM platform your team already uses.

The Timefold Field Service Routing model supports every stage above from batch optimization onward. It builds plans across weeks, months, or longer, rolls the horizon forward, and replans in real time when the day changes. It handles skills, time windows, visit dependencies, multi-technician visits, and working hours through 50+ pre-configured constraints with adjustable weights. Each plan shows the tradeoffs it made, so dispatchers can see why the schedule changed.
FAQ
What is field scheduling software?
Field scheduling software assigns work to field technicians or crews and plans their days, taking skills, time windows, travel, and working hours into account. It ranges from simple calendars to engines that optimize and replan in real time.
What's the difference between batch and real-time optimization?
Batch optimization builds a plan once, usually before the day starts. Real-time optimization keeps updating that plan as events happen, while locking work that's already in progress or confirmed.
Will real-time optimization keep changing my technicians' schedules?
Not if it's designed well. Pinning and minimal-disruption replanning keep confirmed work stable and limit changes to the parts of the plan affected by the disruption.
Do I need to replace my FSM platform to get real-time optimization?
No. An optimization engine with an API can sit behind your existing FSM or dispatch system, taking in jobs and events and returning updated plans. Timefold connects to Salesforce Field Service and Dynamics 365 Field Service this way: the Field Service Routing model plans the day and writes it back onto the records your dispatchers already open.

Getting 1 million satellites launched requires a plan
A few months ago, I wrote a post about determinism and casually mentioned that cosmic radiation is one of the reasons building data centers in space is hard. Well... it turns out radiation isn't the only hard part.
Orbital data centers went from science fiction to regulatory filings in what feels like a few months. The pitch is simple: up there, the sun almost never sets, there's no land to buy, and nobody makes you wait two years for a grid connection. The math behind that pitch is a lot less simple.
Flying rockets thousands of times a year. Without breaking a single physical, legal, or contractual rule. That's a planning problem. And planning problems happen to be our thing at Timefold.
Twenty thousand launches, give or take
Let's do some napkin math. A reusable heavy-lift rocket carries somewhere between 30 and 50 compute satellites per flight. One million satellites divided by 50 gives you 20,000 launches. That's the best case, with every single payload slot filled. At 40 per flight, you're looking at 25,000, and at 30 per flight, 33,330 flights!

The napkin math, before a single replacement or customer flight.
And those launches need launch pads, and they don't get the pads to themselves. They have to share them with the other rockets.
Additionally, and this is where most of the concerns come in. Satellites wear out after about five years, so replacements start flying before the build-out is even done. You are already replacing satellites before you get to 1 million.
The long-term plan: who's the bottleneck this quarter?
Like most planning problems at this scale, it helps to split this one in two. The first level is the strategic plan, which looks at the full build-out, quarter by quarter. How many launches does each pad fly? Which orbital shells do we fill first? How many satellites does the factory need to build?
The annoying bit is that the answers depend on a bunch of resources that all grow at their own pace:
- Pads: new pads open over the years, and each one needs time to ramp up to full cadence.
- Launch licenses: each pad has a yearly flight limit, even if its crews could turn it around faster.
- Fleet: boosters and ships are still being built.
- Factory: you can't launch satellites that don't exist yet.
- Other missions: if the launch pads aren’t reserved for this project, other flights want their share of every pad.
In most quarters, one of these is the bottleneck. Early on, it's the fleet. Later, the factory or the licenses take over. Knowing which one holds back all the rest when matters a lot, because investing in anything else that quarter changes... nothing.

Then there's the question of where the satellites go. A constellation like this spreads over several orbital shells: mid-latitude ones for low latency, polar and sun-synchronous ones for global reach. Not every pad can reach every shell, because a pad's latitude limits which orbits it can launch into efficiently. Fill one shell too fast, and the others finish late, leaving holes in your coverage.
And all of that happens with two deadlines looming.
- The launch license requires a share of the constellation in orbit by fixed milestone dates.
- Customers have contracted compute capacity that grows every year.
Miss the first, and you risk your license. Miss the second, and you miss out on revenue.
The short-term plan: the orbit picks your launch time
The second level is the tactical plan, which turns those quarterly numbers into an actual launch manifest for the next few weeks. Which pad, which booster, which ship, which satellites, and at what time.
That last one is where it gets fun. Each shell is split into hundreds of orbital planes. A plane stays fixed in space while the Earth rotates underneath it, so it only passes over a given pad about twice a day. Want to put satellites into that specific plane without burning a ton of extra fuel? Then you launch in that window. You don't pick the launch time, the orbit does.

Everything else has to fit around those windows:
- Pad turnaround: after a launch, a pad needs about a day of inspection and repairs.
- Stacking and fueling: the booster and ship sit on the pad for hours before liftoff.
- Booster turnaround: the booster is back and caught by the tower within minutes, but needs most of a day before it flies again.
- Ship turnaround: the ship stays in orbit to deploy its satellites, comes home hours later, and needs more than two days before its next flight.
- Refurbishment: after a set number of flights, a vehicle leaves the manifest for several days of maintenance.
- Range closures: other users book the airspace and sea range, and nearby pads stay grounded.
- Satellite stock: a launch can only carry satellites that already left the factory.
The annoying part is that these all interact. A range closure at one site pushes flights to another site. That uses up the other site's boosters. Which delays a plane that only that site can reach. Planning one launch at a time, in order, gets you stuck pretty quickly. You need to look at all pads, vehicles, and planes together.

Hard, medium, and soft
If you've read some of our other posts, you know we like to split rules into three levels. This problem fits that pattern nicely.
- Hard constraints can never break: payload mass per launch, one launch per pad at a time, turnaround times, range closures, license limits, and the small detail that a satellite has to be built before it flies. A plan that breaks one of these isn't a bad plan, it's an impossible one.
- Medium constraints cover the license milestones and the contracted compute. Missing those is technically possible, but only acceptable when no feasible plan can meet them.
- Soft constraints are the goals you trade off against each other: get compute in orbit early, fill every launch, balance the shells so coverage arrives evenly, keep satellites out of storage, and leave enough slack that one scrub doesn't cascade.

The weights on those soft constraints are where the operator decides what it actually cares about. Fuller rockets or more frequent flights? Faster coverage or cheaper launches? There's no single right answer, but there is a right answer for each operator.
Plans meet reality (and weather)
No launch manifest survives contact with the weather. A launch scrubs, a booster fails an inspection, a range closes on short notice, or a factory batch shows up late. At thousands of launches a year, something goes wrong every single day.
When a launch slips, its orbital plane only comes back around about 12 hours later. The pad, the booster, and the ship that were waiting for it all shift along with it. So you replan from the current state, with the flights that already flew pinned in place. The goal isn't just a feasible new plan, but one that stays close to the old one, so crews and customers don't wake up to a completely different week.
This is exactly why the two levels matter. The tactical plan absorbs the daily chaos. The strategic plan absorbs the trends: a factory running behind, a pad opening late, or a fleet that turns around faster than expected. If the tactical plan can't keep up for weeks in a row, that's your signal to revisit the strategic one.

Rockets get cheaper, plans don't get easier
Cheaper rockets make orbital data centers possible. Planning decides how fast they actually show up, and how much they cost. Every empty payload slot, idle pad, or booster waiting in a hangar is capacity that never reaches orbit.
What I find most fun about this problem is how familiar it looks once you strip away the rockets. Resources with turnaround times. Tasks that have to fit in narrow time windows. Limited stock. A plan that changes every day. Swap boosters for vans and orbital planes for customer time windows, and you've got yourself a field service routing problem.
So maybe putting a million satellites in orbit is rocket science. But planning how they get there? That part we know a thing or two about. 🙂
Got a planning problem with this many moving parts (rockets optional)? Talk to us.

Before the code, the conversation
The easy part, apparently, is the code
Writing code has become the easy part. As a software engineer, I'm still sometimes surprised I can write those words without feeling I'm exaggerating. I've watched AI build a working optimization model, tests and UI included, in a couple of hours (with the right building blocks).
So it's no wonder that when a team sets out to automate their planning, most of them reach for the keyboard first. Open an editor (or agentic terminal), write a model, hook up some data, done. With AI writing a big chunk of that code, the urge to just start building has only gotten stronger.

But here's the thing: AI can't tell you what you should have asked it to build in the first place. Figuring out what to build is still the hard part, and it's the part that decides whether the result is any use at all.
Yet most of our software industry seems focused on the other side of the problem: output, tokens, and "writing better code". We see software factories, harnesses, and who knows what the next buzzword will be. They all promise to build the perfect code faster, but very few help you figure out what that code should actually do.
The real rules live in people's heads
In our December newsletter, we compared integration work to cooking, where some of the ingredients have to be foraged from the brain of that one planner who "just knows". Requirements are no different. The rules that actually make a plan usable are rarely written down.
Reading through the problems people described to us over the last few weeks since we’ve launched our custom model builder capability, we came across gems like these:
- A loaded gas ship sails 20% slower;
- A nurse in training still covers half of a pediatric workload;
- Customers carry each other's paragliders to the repair shop, and get ten euros off for it;
Off-the-shelf tools rarely capture details like these. Yet leave just one of them out and you end up with a beautifully optimized plan that nobody can actually use. Worse, some of these requirements force a significant redesign of the model, so the earlier you surface them, the better.
A conversation partner that asks the annoying questions
For our own AI solutions, we wanted to flip the order: get the requirements right first, and help people talk through their problems before anything gets built.
You describe your scheduling, routing, or resource allocation problem in your own words, and our Assistant keeps asking questions until it has a clear picture of five things:
- What the plan decides.
- The hard rules, which can never be broken.
- The soft goals, which you want to improve but can bend.
- The scale, for a normal day and for your busiest one.
- The data that goes in and the plan that comes out.
Our assistant is a bit like that colleague who keeps asking "but what about X?" or “why this?” until you're secretly glad they did. More like a coaching trying to get the best out of you. It doesn't sound as glamorous as "writing a bunch of code"... but we feel it hits the right notes.
.jpg)
This definitely doesn’t mean we need all requirements perfect and finalized up front … that is never the case anyway. We do however firmly believe that talking through requirements first avoids a lot of iteration hassle.
Talk first, type later
Writing code keeps getting cheaper, but knowing what to write hasn't gotten any easier. Sure, you can use an iterative approach to improve a solution. But getting that first solution close to what you want does require some back and forth with someone who can act as your sparring partner.
So before you open that editor or send your AI agent off to build, have the conversation. Get your requirements at least a bit clearer before you start coding, because coding really is the easy part now.

Timefold Q3 2026 product update: what shipped and what's next
Every quarter, we look back at what we shipped and look ahead at what's coming. In our latest webinar, Brecht De Moor and Carly Kroll walked through the Q3 2026 releases and the roadmap. Here are the highlights.
What shipped in Q3
Field Service Routing. Replanning got smarter. Focused replanning lets you name the urgent visits that matter most, so the model makes room for them first. A new minimize disruption constraint keeps visits you already shared with customers from moving for a small gain. Visit dependencies now handle real multi-step jobs: paired visits land in the same shift or stay unassigned together, and "next working day" delays skip holidays. When capacity runs short, new SLA-aware constraints plan the visits closest to their deadline first. A redesigned visualization page also brings the map, vehicle, and visit views together, with filters on every view.
Pick-up and Delivery Routing. After reaching version 1.0 in June, the model now favors nearby jobs and pools them more often, which means less travel. A new demo dataset for non-emergency medical transportation makes it easy to explore patient transport.
Employee Shift Scheduling. Assignability Analysis, now in preview, shows what share of employees could take each unassigned shift, so you catch impossible shifts early. Absence-aware rules scale rolling-window limits to the time an employee is actually available. Employee groups let you plan crews, carpools, and supervised teams together.
Task Scheduling. New in our model catalog and in public preview, Task Scheduling plans jobs across machines and employees while respecting dependencies and priorities.
Timefold Platform. Notifications send dataset and experiment updates to Slack, email, or a webhook. Experiments let you benchmark what-if scenarios across several datasets in one request. Dataset comparisons now include totals, percentage differences, CSV export, and model version details.
What's coming in Q4 and beyond
Build your own model. We're opening Timefold Platform to developers who want to build their own planning models, with the same datasets, comparisons, experiments, and maps our models use. Access is on request, and our Solutions team onboards each team personally. A good first step is the PRD assistant, which turns a plain-language description of your planning problem into a structured requirements document.
Organizations. A new level above tenants groups your Production, Testing, and Development tenants and lets you decide when new model releases reach production.
AI-powered explainability. Our explainability skill for Field Service Routing, Pick-up and Delivery Routing, and Employee Shift Scheduling is available today on GitHub. It finds the bottlenecks in your plan and proposes fixes ranked by confidence. Next, we plan to connect it to Experiments, so you can compare each proposed fix side by side before changing anything in production.
Assignability Analysis for Field Service Routing. Before you solve, you'll see which visits can never be assigned and which only a few technicians can take.
Watch the full recording
Have an idea or request? Share it on feedback.timefold.ai. Many of this quarter's features, including absence-aware rules, started there.

Technician scheduling software in 2027: Essential capabilities for modern field service
Technician scheduling software assigns field technicians to jobs and plans their days so that the right person, with the right skills, arrives within the promised window without wasting hours on the road.
The best tools do this automatically across hundreds or thousands of technicians, and they keep the plan valid as the day changes.
Most products in this category show a calendar and a map. The difference between them is what happens underneath: whether the software can weigh skills, time windows, SLAs, travel, and working-hour rules together, or whether it leaves those tradeoffs to a dispatcher.
This guide lists nine capabilities that separate modern technician scheduling from a digital whiteboard. It's written for operations leaders comparing tools and for product teams at field service software companies deciding what their own scheduling engine needs.
Why technician scheduling has become harder
Two pressures are pushing field service teams to rethink how they schedule.
- The first is labor. In the US HVAC trade alone, industry estimates put the technician shortage at around 110,000 open positions. When every skilled technician counts, a schedule that wastes an hour of their day on avoidable driving is a real capacity problem.
- The second is expectations. Customers expect narrow arrival windows, live updates, and a fix on the first visit. Nobody wants to be anticipating their technician coming in all day.
Both pressures land on the schedule.
Nine essential capabilities
1. Skill and certification matching
The software should know what each job requires and what each technician can do, including certifications, seniority, languages, and equipment access. Hard requirements (a gas-safe certificate) should never be violated. Softer preferences (a technician the customer has worked with before) should be encouraged but not forced.

Look for support for skill levels and customer affinity in addition to simple yes-or-no skills. Matching the right skills is also one of the most direct ways to improve first-time fix rates.
2. Time windows and SLA priorities
Jobs come with customer availability windows, and many come with contractual deadlines.

The software needs to treat a critical SLA differently from a routine visit that can move to tomorrow. That means supporting multiple time windows per job, priority levels, and deadlines that can push lower-priority work out of the plan when capacity runs short.
3. Travel-aware planning with real road data
A schedule that assumes straight-line distances will fall apart on the road. Technician scheduling software should use real travel times, ideally with support for traffic patterns and your own map provider if you already have one.

It should let you choose what to minimize, total travel time or total distance, because the two goals give different answers.
4. Multi-technician visits and job dependencies
Some jobs need two or more people on site at the same time for safety or lifting. Others must happen in order, sometimes with a delay: isolate the power before rewiring, or let a surface dry before painting.

Many tools can't express these rules, so dispatchers track them by hand. If your operation has them, this capability is non-negotiable.
5. Working hours, breaks, and fairness
The plan has to respect shift start and end times, mandatory breaks, maximum working hours, and overtime rules. It should also spread work fairly so the same technicians don't always get the long days or the difficult jobs. Fairness affects retention, and retention matters more when technicians are hard to replace.

Scheduling software can support labor-law-style rules as constraints, but your organization remains responsible for verifying compliance with the regulations that apply to you.
6. Real-time replanning
Every schedule meets reality by mid-morning. A technician calls in sick, a job overruns, or an urgent call comes in. The software should replan quickly while changing as little as possible for everyone else. It should also let dispatchers lock (pin) jobs that are already in progress or confirmed with the customer.

A strong version of this capability also recommends options. When a new urgent job arrives, the dispatcher should see which technicians could take it and what each choice would cost in travel or delayed work.
7. Explainability
Dispatchers and managers won't trust a plan they can't understand. Good technician scheduling software shows why a job was assigned the way it was, which rules were bent, and why some jobs couldn't be scheduled at all.

Look for a breakdown by constraint and clear metrics such as total travel time, overtime, and unassigned jobs.
8. Configurable priorities
Every operation weighs its goals differently. A utility may put SLA compliance far above travel savings, while a residential service company may care most about completing as many jobs as possible per day. The software should let you adjust the relative weight of each goal without rewriting the underlying logic.

9. Integration and scale
Scheduling doesn't live on its own. It needs job data from your FSM or work order system, technician data from HR or workforce tools, and a way to push the finished plan to mobile apps. An API-first design makes this far easier than a closed tool with a separate interface.

Scale matters too. The software should handle your largest region on your busiest day, and it should keep up as you add technicians, regions, or longer planning horizons.
A quick evaluation checklist
Use this table when comparing technicians scheduling software options or reviewing your own engine.
| Capability | Why it matters | Question to ask |
|---|---|---|
| 01Skill matching | Drives first-time fix rate | Can it handle skill levels and customer affinity? |
| 02Time windows and SLAs | Protects commitments | Can it drop low-priority work to protect critical SLAs? |
| 03Real travel data | Keeps plans achievable | Which map data does it use, and can I bring my own? |
| 04Dependencies and multi-technician visits | Reflects real job rules | Can it sequence jobs with delays and sync arrivals? |
| 05Working hours and fairness | Protects technicians | Can it balance workload across the team? |
| 06Real-time replanning | Handles the day as it happens | How much of the existing plan changes after a disruption? |
| 07Explainability | Builds trust | Can I see why a job was left unassigned? |
| 08Configurable priorities | Fits your business | Can I change priorities without custom development? |
| 09API and scale | Fits your stack | What's the largest dataset it solves in production? |
Scheduling software, FSM platform, or optimization engine?
When people search for technician scheduling software, they find three kinds of product.
- FSM platforms with a built-in scheduler cover the full workflow: work orders, mobile apps, invoicing, and scheduling. Their scheduling depth varies widely, from drag-and-drop boards to real optimization.
- Standalone scheduling tools focus on the dispatch board and often add basic auto-assignment. They're quick to adopt but can struggle with complex constraints.
- Optimization engines sit behind a user interface and do the heavy lifting. They don't manage work orders or invoices. Instead, they take in jobs, technicians, and rules, and return an optimized plan through an API. FSM vendors often embed one to strengthen their own scheduling, and large enterprises use one to add optimization to systems they already run.
Where Timefold fits
Timefold is an optimization engine in the third group. The Timefold Field Service Routing model covers the capabilities above: skill and seniority matching, customer time windows, visit dependencies with delays, multi-technician visits, working hours and fairness, and real-time replanning with recommendations. It ships with 50+ pre-configured constraints with adjustable weights, and every plan comes with metrics that show the tradeoffs it made.

It connects through a stateless REST API, so it fits alongside the FSM or work order system you already use. To see how this applies to field teams specifically, read about route optimization for field technicians. If you're preparing to integrate, the data foundations of efficient field service walks through the data you'll need.
FAQ
What does technician scheduling software do?
It assigns jobs to technicians and plans each technician's day, taking skills, time windows, travel, and working hours into account. More advanced tools optimize the whole plan at once and replan automatically when things change.
What's the difference between technician scheduling and dispatching?
Technician scheduling creates the plan ahead of time. Dispatching sends technicians to jobs and manages changes during the day. Modern software blends the two by replanning continuously.
Do I need technician scheduling software if I have an FSM platform?
It depends on how deep your FSM's scheduling goes. If dispatchers still spend hours adjusting assignments by hand, or your FSM can't express rules like dependencies or multi-technician visits, an optimization engine behind your FSM can close the gap.
How many technicians do I need before scheduling software is worth it?
There's no fixed number. Complexity matters more than headcount. A team of 20 with several skill types, tight SLAs, and multi-technician jobs can benefit as much as a team of 200 with simple, uniform work.

Field service scheduling: how to balance jobs, skills, SLAs, and travel
Field service scheduling is the work of deciding which technician does which job, when, and in what order.
Done well, it balances four competing forces at the same time: the jobs that need doing, the skills required to do them, the service-level agreements (SLAs) you've promised customers, and the travel between locations.
Done badly, it produces missed arrival windows, repeat visits, overtime, and technicians who spend more of their day driving than fixing.
This post is for operations leaders, dispatch managers, and product teams at field service software vendors. It explains why these four forces pull against each other, why spreadsheets and drag-and-drop boards stop coping as you grow, and how constraint-based optimization turns the balancing act into something a system can solve.
What is field service scheduling?
Field service scheduling assigns customer visits to technicians and places each visit at a specific time in a technician's day. It's closely tied to routing, which decides the order of visits and the path between them. In practice, you can't separate the two: a schedule that ignores travel isn't achievable, and a route that ignores skills or time windows sends the wrong person at the wrong time.
That's why modern tools treat field service scheduling and routing as a single problem, just like our Field Service Routing API does. In operations research terms, it's a variant of the Vehicle Routing Problem with extra rules layered on top.
The four forces you're balancing

Jobs
Every job has a location, an expected duration, a priority, and often a window when the customer is available. Some jobs depend on others, such as a site survey before an installation, or an electrician isolating power before a second technician starts work.
Some need two or more technicians on site at the same time.
Skills
Technicians aren't interchangeable. A boiler repair may need a gas certification, a network install may need a specific vendor accreditation, and a senior technician may be required for certain customers.
Skill matching has a direct effect on outcomes. Aquant's 2025 Field Service Benchmark Report, based on data from nearly 160 service organizations, found that top performers reach an 86% first-time fix rate while bottom performers sit at 53%. The same report found that a failed first visit leads to two additional visits on average.
Sending the right skills the first time is one of the biggest levers a scheduler controls.
SLAs
SLAs turn some jobs into commitments with deadlines, and some into commitments with penalties. A four-hour response for a critical outage outranks a routine maintenance visit that could happen any day this week. The schedule has to know the difference, and it has to keep knowing it as new work arrives.
Travel
Travel is where capacity quietly disappears. Every minute on the road is a minute not spent on billable work, and it also drives fuel cost, emissions, and technician fatigue.
Travel is also the force most affected by the other three.
Honoring a tight time window or sending the one qualified technician across the region both cost travel time.
Why the balance breaks down
A dispatcher with 12 technicians and 40 jobs can usually build a reasonable day by hand.
They know the people, the regions, and the regular customers.
Grow that to 80 technicians and 500 daily visits and the picture changes.
Now the dispatcher is weighing skills against availability, promised arrival windows against drive time, overtime limits against SLA deadlines, and all of it against the three jobs that just came in and the technician who called in sick.
The number of possible schedules grows faster than any person, or any simple rule, can evaluate. Timefold's field service routing optimization guide points out that for 50 technicians and 200 jobs, the number of possible schedules exceeds the number of atoms in the observable universe.
Rule-based auto-assignment ("nearest available technician with the right skill") helps, but it makes one decision at a time. It can't see that giving the nearest technician this job leaves nobody qualified for the urgent job an hour later. Field service scheduling at scale needs a method that evaluates the whole plan at once.
How optimization handles the tradeoffs
Constraint-based optimization describes the scheduling problem as a set of rules and goals, then searches for the plan that scores best against them.
Timefold uses three levels of constraints, described in its Planning AI concepts documentation:
- Hard constraints are rules that can't be broken, such as a technician's shift hours, a required certification, or the fact that a person can only be in one place at a time. Breaking a hard constraint makes the plan infeasible.
- Medium constraints handle shortages. When there aren't enough technicians for every visit, they push the model to assign as many visits as possible, starting with the most important.
- Soft constraints express business goals, such as minimizing travel time, reducing overtime, respecting technician preferences, or finishing high-priority visits early.
Each constraint has a configurable weight. That's how you tell the model what matters more when goals collide.
If SLA compliance matters more than travel savings, you weight it higher, and the model will accept a longer drive to meet a deadline. If fairness matters, you add a constraint that balances workload across the team.
You stop encoding decisions ("always send the closest technician") and start encoding priorities. The model then makes thousands of decisions consistently against those priorities. At a much larger scale than a human ever could.
A worked example
Imagine a facilities maintenance company with 40 technicians and 280 visits scheduled for Tuesday. Six technicians hold high-voltage certification. Twenty visits have four-hour SLA windows, and the rest are flexible within the day.
At 09:30, a hospital reports a critical electrical fault with a two-hour SLA.
The closest certified technician is midway through a routine inspection that could move to the afternoon.
A manual dispatcher has to find a technician, check whether moving the inspection breaks another commitment, then check whether the technician who picks up the inspection still makes their own windows.
An optimization model evaluates those knock-on effects together. It can propose moving the inspection to a technician with spare capacity nearby, keep everyone else's morning intact, and show the cost of the change in added travel minutes.
The dispatcher still makes the call. They just make it with the full picture in front of them.
How to measure whether field service scheduling is working
Track a small set of metrics that reflect all four forces:

Consider these KPIs not separatly, but holistically.
A team can post excellent drive-time numbers by skipping hard-to-reach customers, or strong SLA compliance by burning overtime. Good field service scheduling improves the set as a whole without trading one number off against the rest.
Where Timefold fits
Timefold builds optimization engines for scheduling and routing problems.
It works as the optimization layer behind field service management (FSM) platforms and in-house systems, rather than replacing them.
The Timefold Field Service Routing API assigns visits to technicians and sequences their routes while respecting time windows, skills, visit dependencies, multi-technician visits, and working hours. It ships with 50+ pre-configured constraints, each with adjustable weights, and it replans in real time when the day changes.
FSM vendors and enterprises call it through a REST API from their existing systems. Integrations are available for Salesforce Field Service and Dynamics 365 Field Service.
Organizations using constraint-based routing optimization typically see 25 to 35% less technician drive time, according to Timefold deployment data published in the optimization guide. If you're evaluating this for your own team, the route optimization for field technicians page explains the use case, and the Field Service Routing documentation covers the constraints in detail.
FAQ
What's the difference between field service scheduling and dispatching?
- Scheduling builds the plan: who does what, when, and in what order.
- Dispatching executes it and handles changes during the day.
With real-time optimization, the line blurs, because the plan is continuously updated as dispatch events arrive.
Is field service scheduling the same as routing?
They're separate decisions that depend on each other. Scheduling assigns jobs and times, and routing decides the sequence and path. Solving them together produces plans that are both feasible and efficient.
When does manual field service scheduling stop working?
There's no fixed threshold, but the signs are consistent: dispatchers spend most of their day re-planning, SLA misses rise as volume grows, and adding technicians doesn't add proportional capacity. These usually appear once you have dozens of technicians, several skill types, and customer time windows.
Can I keep control over the schedule if I use optimization?
Yes. You set the priorities through constraint weights, you can lock (pin) visits you don't want moved, and you review the proposed plan before sending it to technicians.

When scheduling works, everything works.
Less waste. More control. Teams that trust the plan.