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?
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 |
|---|---|---|
People travel between locations during their shift, and the order of their visits matters. |
||
Drivers pick up people or goods at one location and take them to another. |
Non-emergency medical transportation, and courier and express delivery |
|
Employees work shifts at a location, and you decide who works which shift. |
||
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.