Docs
  • Solver
  • Models
    • Field Service Routing
    • Employee Shift Scheduling
    • Pick-up and Delivery Routing
    • Task Scheduling
  • Platform
Start Free Trial
  • Field Service Routing
  • More information
  • FAQs
  • Planning horizon and replanning
  • latest
    • latest
    • 1.39.x
    • 1.38.x

Field Service Routing

  • The basics
    • Introduction
    • Getting started: Hello world
    • User guide
      • Terminology
      • Use case guide
      • Scheduling API concepts
      • Integration
      • Constraints
      • Using the API
        • Using the OpenAPI spec
        • API tooling
      • Demo datasets
      • Input datasets
        • Model configuration
        • Model input
        • Planning window
        • Time zones and daylight-saving time (DST)
      • Maps service
      • Input validation
      • Model response
      • Output datasets
        • Metadata
        • Model output
        • Input metrics
        • Key performance indicators (KPIs)
      • Explaining unassigned visits
      • Key performance indicators (KPIs)
      • Metrics and optimization goals
      • Score analysis
      • Visualizations
      • Efficiency X-Ray
  • Feature guides
    • Vehicle resource constraints
      • Shift hours and overtime
      • Lunch breaks and personal appointments
      • Capacity reservation
      • Fairness
      • Route optimization
      • Technician costs
      • Technician ratings
      • Coverage area
    • Visit service constraints
      • Time windows and opening hours
      • Skills
      • Visit dependencies
      • Multi-vehicle visits
      • Multi-day schedules and movable visits
      • Priority visits and optional visits
      • Visit service level agreement (SLA)
      • Duration added for first visit on location
      • Visit profit
      • Visit requirements and tags
        • Visit requirements
        • Tags
    • Scenarios
      • Configuring labor law compliance
      • Ferry connections
      • Long-running visits
  • Responding to change
    • Manual intervention
    • Recommendations
      • Visit time window recommendations
      • Visit group time window recommendations
      • Bulk time window recommendations
    • Real-time planning
      • Real-time planning: extended visit
      • Real-time planning: reassignment
      • Real-time planning: emergency visit
      • Real-time planning: focused replanning
      • Real-time planning: no show
      • Real-time planning: technician ill
      • Real-time planning: pinning visits
      • Real-time planning: minimizing disruption on replanning
      • Real-time planning: actual arrival and departure times
    • Scenarios
      • Configuring labor law compliance
      • Ferry connections
      • Long-running visits
  • More information
    • FAQs
      • Constraints and weights
      • Modeling your planning problem
      • Planning horizon and replanning
    • Changelog
    • Upgrade to the latest version
    • Feature requests
Ask Claude Ask ChatGPT

Planning horizon and replanning

Answers to common questions about planning and replanning in the Field Service Routing model.

  • How far ahead should I plan?
  • Should I book each job as it comes in, or plan everything together?
  • How often should I replan, and what should trigger replanning?
  • Which part of the plan should I fix or publish?
  • How do I replan without changing what’s already planned or promised?
  • How do I fit an urgent visit into today’s plan?
  • How do I handle sickness, no-shows, and visits that run over?
  • Should I keep spare capacity for emergencies?
  • Does the model use real-time traffic?

How far ahead should I plan?

Plan far enough ahead to see your capacity and place flexible work, but keep the detailed plan open until close to the day. Many organizations plan four to six weeks ahead.

Most organizations plan in layers:

  • A rough plan a month or more ahead, to see whether you have enough capacity and to place work with flexible deadlines, such as scheduled maintenance.

  • A detailed plan a week to a few days ahead, which you publish to the people doing the work.

  • Replanning during the day, for urgent work and other changes.

You don’t need all three layers from the start. Start with the one that matters most to your business, and add the others later.

A longer horizon gives the model more freedom. For instance, if a task must happen within the next 30 days, the model can choose the day that fits best with the rest of the work. A day-ahead plan can’t do that.

A longer horizon also has costs:

  • Plans far in the future are more likely to change before the work happens.

  • Committing to work far in advance leaves less room for urgent work that comes in later.

  • Longer planning periods make datasets larger, so they take longer to solve.

Should I book each job as it comes in, or plan everything together?

Plan everything together. Add work to the dataset as soon as you know about it, and let the model refine the plan as the day gets closer.

When you book each job as it comes in and keep it fixed, every fixed booking removes options from the model. You end up with a schedule, but not an optimized one.

Waiting until the last moment to plan isn’t the answer either. You’ll have more accurate information, but less room to fit the work in, and less slack when work runs longer than expected.

Some work does need an answer straight away, for instance when a customer is on the phone and wants an appointment. If the model offers recommendations, use them to find the best options in the current plan without changing the rest of it. Then pin the option you choose, so the next solve keeps it.

For more information, see Resource recommendations.

How often should I replan, and what should trigger replanning?

There’s no single right frequency. It depends on how quickly your work changes, how urgent new work is, and how much change the people doing the work can accept.

A common pattern is:

  • Regularly, for the coming weeks: plan the next period, for instance weekly, to see whether you have enough capacity.

  • Every evening, for the next day: replan the next day, starting from the current plan.

  • During the day, when something changes: replan when urgent work comes in, someone is unavailable, or work runs longer than expected.

How often to replan during the day depends on how urgent new work is. If new work must start within an hour or two, replan as soon as it arrives. Otherwise, collect changes and replan at a fixed interval, for instance every 30 or 60 minutes.

Each replan can change the plan for the people doing the work. To keep assignments you’ve already communicated, you can pin them, so the model doesn’t change them. If some changes are acceptable, some models can discourage changes instead, so the model only changes communicated assignments when the improvement is worth it.

Your own system usually triggers replans, for instance with a scheduled task or when it receives new work. A button that lets planners replan when they need to is also common. If many users can trigger a replan, limit how often replans can run, and consider how to handle race conditions such as one person starting a replan while a previous replan is still solving.

When you start, replan when planners ask for it. Alternatively, consider replanning at a set interval that works for your business needs, such as once a night, or once a week. Add automatic replans during the day when your planners trust the results.

For more information, see Handling changes to your planning data.

Which part of the plan should I fix or publish?

Plan over a longer period, but publish only the part people need to act on, and keep the rest open. For instance, plan a full month, but publish only the next week.

  • The published part is the work you’ve communicated to the people doing the work, or to your customers. You can pin the published assignments, so the model doesn’t change them when you replan.

  • The unpublished part stays open, so the model can rearrange it when work or availability changes.

Store each plan the model returns in your own system as a draft, so planners can review it before you publish it. When planners change the plan by hand, you can send their changes back as pinned assignments in the next dataset, so the model keeps them.

Decide early which part of the plan is fixed, which part stays open, and who can still change each part. These decisions shape how you integrate the model with your own systems.

For more information, see Real-time planning.

How do I replan without changing what’s already planned or promised?

Include the current plan in the next dataset. The model starts from the existing assignments, but it can still change any visit that isn’t pinned.

To protect the plan:

  • Everything before a point in time: set freezeTime, for instance to the current time. Visits before that time can’t change, so technicians keep the visits they’ve started or are traveling to.

  • Specific visits: set pin to true and supply the promised startServiceTime on the visit’s shift itinerary item, as described in Pinning individual visits.

  • The rest of the plan: enable the Minimize disruption on replanning constraint. The model then only moves an already-planned visit when the improvement is worth the change.

Keep the near future fixed, for instance today and tomorrow, and let later work change, so the model still has room to improve the plan.

For more information, see Pinning visits and Minimizing disruption on replanning.

How do I fit an urgent visit into today’s plan?

There are two ways:

By previewing an insertion: protect existing visits with individual itinerary pinning, then request recommendations for the new visit. The request doesn’t update the stored plan, but unpinned visits can be rescheduled in the proposed itineraries. Use this when a customer is on the phone and needs an answer straight away. Add the visit with the time window you choose to the next dataset, keeping the existing visits pinned when you replan. For an example, see Implementing the recommendation.

By replanning: add the visit to the dataset and replan, with the rest of the plan protected as described in How do I replan without changing what’s already planned or promised?. The model can then move other visits to make room, for instance by giving one of them to another technician. For an example, see Emergency visit.

When the plan is already full and many visits are unassigned, use replanningFocus to tell the model which visits to concentrate on, so it doesn’t spend time on visits that were left unassigned before. For more information, see Focused replanning.

How do I handle sickness, no-shows, and visits that run over?

Update the dataset to match what’s happening, then replan with the rest of the plan protected, as described in How do I replan without changing what’s already planned or promised?. Set freezeTime to the current time, so visits that have already happened don’t change.

  • A technician is ill before their shift starts: remove their shift from the dataset. The model reassigns their visits to other technicians.

  • A technician goes home during their shift: set maxLastVisitDepartureTime on their shift to the time they leave their last visit. If that time is at or before freezeTime, first remove the visits they will no longer perform from the shift’s itinerary and clear any pinningRequested flags on those visits, keeping them in the dataset’s visits for reassignment. A shift ending at or before freezeTime is automatically pinned, so leaving those visits in its itinerary prevents their reassignment.

  • A customer isn’t there: shorten the visit’s serviceDuration to the time the technician waited, so the model can use the rest of the time for other visits.

  • A visit runs over: increase the visit’s serviceDuration to how long the visit will now take. The model moves later visits if they no longer fit.

For visits that have started or finished, also send what actually happened: set actualArrivalTime, actualStartServiceTime, and actualDepartureTime on their itinerary items. The model then plans the rest of the day from the real times instead of the planned ones. For more information, see Actual arrival and departure times.

For examples, see Technician ill, No-show, and Extended visit.

Should I keep spare capacity for emergencies?

Yes, it is always recommended to keep spare capacity if possible, especially if your business regularly gets urgent work that must be done the same day.

The model fills the capacity you give it. If the plan for the day is full, there’s no room for urgent work, and fitting it in means moving work you’ve already planned. Recommendations and replanning can show you whether urgent work fits, but they can’t create capacity that isn’t there.

To reserve capacity, keep some time or some people free:

  • Standby resources: schedule some people to work as normal, but leave them out of the dataset, so the model doesn’t assign them work. They’re available to cover absences or urgent work on the day.

  • Part of some resources' time: leave part of their time out of the dataset, for instance one person’s afternoon.

  • Unavailable time: instead of leaving time out, mark it as unavailable, so the model doesn’t assign work to it.

On the day, when someone is absent or urgent work comes in, add the standby resources or the reserved time to the dataset and replan. If you don’t need them, add them anyway, so the model can use them for other work.

How much capacity to reserve depends on how much urgent work and how many absences you usually get. Look at what happened on recent days, and adjust the reserved time as you learn.

Does the model use real-time traffic?

No. The model doesn’t use live traffic information, such as current traffic jams or incidents.

By default, the maps service calculates travel times from road network data, without traffic. With traffic-aware routing, the model uses historical traffic patterns instead, so travel times reflect when the work happens, for instance slower travel during the morning rush hour. Traffic-aware routing is in preview, and Timefold must enable it for your plan before you can turn it on in a configuration profile.

To allow for unexpected delays, set travelTimeAdjustment to add a buffer to travel times, for instance a multiplier or extra time per trip.

When a delay affects the plan during the day, update the dataset and replan, as described in How do I handle sickness, no-shows, and visits that run over?.

For more information, see Traffic-aware routing and Designing better routing plans with traffic awareness.

  • © 2026 Timefold BV
  • Timefold.ai
  • Documentation
  • Changelog
  • Send feedback
  • Privacy
  • Legal
    • Light mode
    • Dark mode
    • System default