Docs
  • Solver
  • Models
    • Field Service Routing
    • Employee Shift Scheduling
    • Pick-up and Delivery Routing
    • Task Scheduling
  • Platform
Start Free Trial
  • Pick-up and Delivery Routing
  • More information
  • FAQs
  • Modeling your planning problem
  • latest
    • latest
    • 1.10.x
    • 1.9.x

Pick-up and Delivery 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
      • Input validation
      • Output datasets
        • Metadata
        • Model output
        • Input metrics
        • Key performance indicators (KPIs)
      • Maps service
      • Metrics and optimization goals
      • Score analysis
      • Visualizations
  • Feature guides
    • Driver resource constraints
      • Lunch breaks and personal appointments
      • Route optimization
      • Shift hours and overtime
      • Driver capacity
      • Fairness
    • Job service constraints
      • Time windows and opening hours
      • Skills
      • Multi-day schedules and movable stops
      • Dependencies between stops
      • Priority jobs and optional jobs
      • Stop service level agreement (SLA)
      • Job requirements and tags
        • Job required drivers
        • Job pooling
        • Prohibit job combinations
        • Maximum time burden
        • Tags
  • Responding to change
    • Recommendations
      • Job time window recommendations
      • Stop time window recommendations
    • Real-time planning
      • Real-time planning: pinning stops
      • Real-time planning: extended stop
      • Real-time planning: reassignment
      • Real-time planning: no show
      • Real-time planning: driver ill
  • More information
    • FAQs
      • Constraints and weights
      • Modeling your planning problem
      • Planning horizon and replanning
    • Changelog
    • Upgrading to the latest versions
    • Feature requests
Ask Claude Ask ChatGPT

Modeling your planning problem

Answers to common questions about modeling your planning problem in the Pick-up and Delivery Routing model.

  • Which model fits my planning problem?
  • Should I plan my whole operation in one dataset or split it up?
  • Which rules belong in the model, and which can I handle in my own system?
  • What happens to work that doesn’t fit in the plan?
  • How do job priorities work?

Which model fits my planning problem?

Choose the model based on what you assign, and whether travel between locations is part of the work.

Model Use it when Typical use cases

Field Service Routing

People travel between locations during their shift, and the order of their visits matters.

Field service, home care, and facility maintenance

Pick-up and Delivery Routing

Drivers pick up people or goods at one location and take them to another.

Non-emergency medical transportation, and courier and express delivery

Employee Shift Scheduling

Employees work shifts at a location, and you decide who works which shift.

Hospitals and healthcare, retail, security, and hospitality

Task Scheduling

Jobs run on machines, employees, or other resources, often with dependencies between jobs.

Discrete manufacturing, project scheduling, and single-site maintenance

If employees travel between several locations during a shift, and the route or the order of visits matters, use the Field Service Routing model. The Employee Shift Scheduling model calculates straight-line distances between locations and doesn’t plan routes.

The Task Scheduling model has Preview maturity, so backward-incompatible changes can still be introduced.

If your planning problem matches more than one model, contact us to discuss which one fits best.

For more information, see the model catalog.

Should I plan my whole operation in one dataset or split it up?

Split your operation into separate datasets when its parts don’t share resources or work. Keep the parts in one dataset when they do.

For instance, if each branch has its own employees and its own work, solve one dataset per branch. Smaller datasets solve faster, and a problem in one branch’s data doesn’t affect the others.

If some resources, for instance employees, vehicles, or machines, work for more than one branch, keep those branches in one dataset. The model can then decide where the shared resources are needed most. When you split them, each dataset is planned without knowing about the others, which usually leads to a worse plan overall.

If you need different kinds of plans, for instance shift schedules and routes, use a separate model for each. Solve them in order, and use the output of one plan to prepare the input for the next. For instance, use the shifts from your shift schedule as the vehicle shifts when you plan routes.

Which rules belong in the model, and which can I handle in my own system?

Include a rule in the model when it can make one plan better than another. When a rule doesn’t change which plan is best, handle it in your own system, before you submit the dataset or after the model returns the plan.

For instance:

  • Leave work out of the dataset when it can’t be done yet, for instance a job that’s waiting for parts or materials. Add it to a later dataset when it’s ready.

  • Handle steps that only depend on the finished plan in your own system, for instance creating work orders or notifying customers.

Some work can’t be expressed with the model’s features. Leave that work out of the dataset, and show it in your planning tool so planners can schedule it manually. If that work takes up a resource’s time, make sure the dataset shows the resource as unavailable for that time, so the model plans around it.

What happens to work that doesn’t fit in the plan?

The Pick-up and Delivery Routing model leaves it unassigned. Unassigned work appears in the output dataset and in the dataset’s metrics, so you can see what wasn’t planned and decide what to do with it.

Work is left unassigned when assigning it would break a hard constraint, for instance when no available resource has the right skills, or when there isn’t enough capacity for all the work.

To control which work is assigned when there isn’t capacity for everything, give your work priorities. When not all work can be assigned, the model prefers higher-priority work. Depending on the model, you can also mark work as optional. Optional work is treated as a soft constraint and assignments will be balanced against other soft constraints.

You can send more work than fits in the planning period. For instance, send a month of maintenance work when you plan two weeks, and give work that must happen soon a higher priority. The model assigns the urgent work, fills the gaps with lower priority work where possible, and leaves the rest unassigned. The unassigned work can be included in the next dataset.

To find out why a specific piece of work wasn’t assigned, use score analysis.

How do job priorities work?

Give each job a priority to control which jobs are assigned when there isn’t capacity for all of them.

There are ten mandatory built-in priorities, from 1 (highest) to 10 (lowest), and ten optional built-in priorities, from opt-1 to opt-10. Jobs without a priority use priority 6.

Within each mandatory or optional priority scale, each built-in priority is ten times more important than the next, and penalties add up per unassigned stop. For instance, leaving one priority 1 stop unassigned counts as much as leaving ten priority 2 stops unassigned.

To change how much each priority counts, define custom priorities with priorityWeights in the model input:

  • Use large gaps between weights when higher-priority jobs should almost always be assigned first.

  • Use weights close together, for instance 1002, 1001, and 1000, to favor assigning more stops, with priority distinguishing options that assign the same number of stops.

For more information, see Priority jobs and optional jobs.

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