Documentation
Field service routing data
The dataset format of the field service routing model: every table at its JSON path, every field the model reads, the model's parameters.
A dataset is one JSON document. These are its tables, each at its JSON path, with every field the model reads. The Workbench data editor shows the same tables with a typed editor per field. What each field does to the score is explained with the rules on the constraints page.
Technicians vehicles
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
travelMode |
Travels | text | optional | By car, By bicycle, On foot |
technicianRating |
Rating | number (points) | optional | |
historicalTimeUtilized |
Worked before | minutes | optional | |
historicalTimeCapacity |
Available before | minutes | optional | |
requiredArea |
Works only in | list: corner |
optional | |
preferredArea |
Prefers to work in | list: corner |
optional |
Shifts vehicles/*/shifts
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
minStartTime |
Starts | date time | optional | |
maxEndTime |
Ends by | date time | optional | |
maxSoftEndTime |
Should end by | date time | optional | |
minFirstVisitArrivalTime |
First visit not before | date time | optional | |
maxLastVisitDepartureTime |
Leaves the last visit by | date time | optional | |
maxSoftLastVisitDepartureTime |
Should leave the last visit by | date time | optional | |
startLocation |
Starts at | location | required | |
stock |
Parts loaded | list of objects: part, quantity |
optional | |
drivingRest |
Rest after driving | object: afterMinutes, minutes |
optional | |
endLocation |
Ends at | location | optional | |
requiredArea |
Works only in | list: corner |
optional | |
preferredArea |
Prefers to work in | list: corner |
optional | |
requiredBreaks |
Breaks | list of objects: id, type, startTime, endTime, minStartTime, maxEndTime, duration, location |
optional | |
skills |
Skills | list of objects: name, level, multiplier |
optional | |
tags |
Tags | list | optional | |
temporarySkillSets |
Skills for part of the shift | list of objects: start, end, skills |
optional | |
temporaryTagSets |
Tags for part of the shift | list of objects: start, end, tags |
optional | |
maxTravelTimePerVisit |
Longest drive to a visit | minutes | optional | |
maxTravelTime |
Most driving | minutes | optional | |
maxSoftTravelTime |
Should drive at most | minutes | optional | |
maxServiceDuration |
Most work | minutes | optional | |
maxSoftServiceDuration |
Should work at most | minutes | optional | |
maxVisits |
Most visits | integer (visits) | optional | |
maxSoftVisits |
Should make at most | integer (visits) | optional | |
movableOccupationRatioThreshold |
Share movable visits may fill | number | optional | |
cost |
Cost | object: fixedCost, rates |
optional | |
travelTimeAdjustment |
Drive times | object: multiplier, extraTime |
optional | |
preferGroupingColocatedVisitsRadiusMeters |
One place within | integer (m) | optional | |
pinNextVisitDuringFreeze |
Keep the next visit when replanning | boolean | optional | |
pinned |
Keep the route as it is | boolean | optional | |
itinerary |
Route | list of objects: id, kind, arrivalTime, startServiceTime, departureTime, travelSeconds, travelMeters, effectiveServiceSeconds, pin, unreachable |
written by the solver | |
metrics |
Totals | object: startTime, endLocationArrivalTime, lastVisitDepartureTime, travelSeconds, travelMeters, serviceSeconds, waitingSeconds, breakSeconds, overtimeSeconds, cost |
written by the solver | |
unreachable |
A leg has no road | boolean | written by the solver |
Overnight trips vehicles/*/linkedShifts
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
shifts |
Links | list of objects: id, fromShiftId, toShiftId |
optional | |
requiredBreaks |
Breaks | list of objects: id, type, startTime, endTime, minStartTime, maxEndTime, duration, location |
optional | |
skills |
Skills | list of objects: name, level, multiplier |
optional | |
tags |
Tags | list | optional | |
temporarySkillSets |
Skills for part of the shift | list of objects: start, end, skills |
optional | |
temporaryTagSets |
Tags for part of the shift | list of objects: start, end, tags |
optional | |
maxTravelTimePerVisit |
Longest drive to a visit | minutes | optional | |
maxTravelTime |
Most driving | minutes | optional | |
maxSoftTravelTime |
Should drive at most | minutes | optional | |
maxServiceDuration |
Most work | minutes | optional | |
maxSoftServiceDuration |
Should work at most | minutes | optional | |
maxVisits |
Most visits | integer (visits) | optional | |
maxSoftVisits |
Should make at most | integer (visits) | optional | |
movableOccupationRatioThreshold |
Share movable visits may fill | number | optional | |
cost |
Cost | object: fixedCost, rates |
optional | |
travelTimeAdjustment |
Drive times | object: multiplier, extraTime |
optional | |
preferGroupingColocatedVisitsRadiusMeters |
One place within | integer (m) | optional | |
pinNextVisitDuringFreeze |
Keep the next visit when replanning | boolean | optional | |
pinned |
Keep the route as it is | boolean | optional | |
itinerary |
Route | list of objects: id, kind, arrivalTime, startServiceTime, departureTime, travelSeconds, travelMeters, effectiveServiceSeconds, pin, unreachable |
written by the solver | |
metrics |
Totals | object: startTime, endLocationArrivalTime, lastVisitDepartureTime, travelSeconds, travelMeters, serviceSeconds, waitingSeconds, breakSeconds, overtimeSeconds, cost |
written by the solver | |
unreachable |
A leg has no road | boolean | written by the solver |
Visits visits
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
location |
Place | location | required | |
parts |
Parts used | list of objects: part, quantity |
optional | |
serviceDuration |
Length | minutes | required | |
priority |
Priority | text | optional | 1 (mandatory), 2 (mandatory), 3 (mandatory), 4 (mandatory), 5 (mandatory), 6 (mandatory), 7 (mandatory), 8 (mandatory), 9 (mandatory), 10 (mandatory), opt-1 (optional), opt-2 (optional), opt-3 (optional), opt-4 (optional), opt-5 (optional), opt-6 (optional), opt-7 (optional), opt-8 (optional), opt-9 (optional), opt-10 (optional) |
timeWindows |
Time windows | list of objects: minStartTime, maxStartTime, maxEndTime |
optional | |
preferredTimeWindows |
Preferred time windows | list of objects: minStartTime, maxStartTime, maxEndTime |
optional | |
latestSlaEndTime |
Should end by | date time | optional | |
minStartTravelTime |
Set off towards it no earlier than | date time | optional | |
requiredSkills |
Needs skills | list of objects: name, minLevel |
optional | |
requiredTags |
Needs tags | list | optional | |
requiredVehicles |
Only technicians | list | optional | an id from technicians |
preferredVehicles |
Preferred technicians | list | optional | an id from technicians |
preferredVehiclesWeights |
Preferred technicians, weighted | list of objects: id, weight |
optional | |
prohibitedVehicles |
Never technicians | list | optional | an id from technicians |
serviceDurationBreakdown |
Length by skill | list of objects: skill, duration |
optional | |
serviceDurationAdjustment |
Length adjusted by | minutes | optional | |
durationAddedForFirstVisitOnLocation |
Arrival time at a new place | minutes | optional | |
visitDependencies |
After | list of objects: id, precedingVisit, minDelay, maxDelay, minDelayTo, maxDelayTo, coordination, poolingType |
optional | |
preferredConsecutiveGroupId |
Run with | text | optional | |
exclusions |
Never planned with | list | optional | an id from visits |
requiredTools |
Needs tools | list | optional | an id from tools |
profit |
Earns | number | optional |
Joint visits visitGroups
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
alignment |
Together at | text | optional | The start, The end |
Joint visit parts visitGroups/*/visits
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
location |
Place | location | required | |
parts |
Parts used | list of objects: part, quantity |
optional | |
serviceDuration |
Length | minutes | required | |
priority |
Priority | text | optional | 1 (mandatory), 2 (mandatory), 3 (mandatory), 4 (mandatory), 5 (mandatory), 6 (mandatory), 7 (mandatory), 8 (mandatory), 9 (mandatory), 10 (mandatory), opt-1 (optional), opt-2 (optional), opt-3 (optional), opt-4 (optional), opt-5 (optional), opt-6 (optional), opt-7 (optional), opt-8 (optional), opt-9 (optional), opt-10 (optional) |
timeWindows |
Time windows | list of objects: minStartTime, maxStartTime, maxEndTime |
optional | |
preferredTimeWindows |
Preferred time windows | list of objects: minStartTime, maxStartTime, maxEndTime |
optional | |
latestSlaEndTime |
Should end by | date time | optional | |
minStartTravelTime |
Set off towards it no earlier than | date time | optional | |
requiredSkills |
Needs skills | list of objects: name, minLevel |
optional | |
requiredTags |
Needs tags | list | optional | |
requiredVehicles |
Only technicians | list | optional | an id from technicians |
preferredVehicles |
Preferred technicians | list | optional | an id from technicians |
preferredVehiclesWeights |
Preferred technicians, weighted | list of objects: id, weight |
optional | |
prohibitedVehicles |
Never technicians | list | optional | an id from technicians |
serviceDurationBreakdown |
Length by skill | list of objects: skill, duration |
optional | |
serviceDurationAdjustment |
Length adjusted by | minutes | optional | |
durationAddedForFirstVisitOnLocation |
Arrival time at a new place | minutes | optional | |
visitDependencies |
After | list of objects: id, precedingVisit, minDelay, maxDelay, minDelayTo, maxDelayTo, coordination, poolingType |
optional | |
preferredConsecutiveGroupId |
Run with | text | optional | |
exclusions |
Never planned with | list | optional | an id from visits |
requiredTools |
Needs tools | list | optional | an id from tools |
profit |
Earns | number | optional |
Planning window planningWindow
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
startDate |
From | date time | required | |
endDate |
Until | date time | required |
Busy periods traffic
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
id |
Name | text | required | |
from |
From | text (HH:MM) | required | |
to |
Until | text (HH:MM) | required | |
days |
On | list | optional | |
slowdowns |
Slower roads | list of objects: factor, roads, area |
optional |
Shared tools tools
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
count |
Units | integer | optional |
Parameters
Settings of the model itself. A profile or a dataset sets them; the default applies otherwise.
| Parameter | Default | Meaning |
|---|---|---|
defaultPriorityDefault priority |
6 | Priority of a visit that sets none: 1 to 10 are mandatory, opt-1 to opt-10 optional, each level ten times the weight of the next. |
durationAddedForFirstVisitOnLocationArrival time at a new place |
0 minutes | Minutes added to a visit when the item before it was elsewhere (parking, check-in), for visits that set none. |
visitCompletionRiskMinimalTimeToShiftEndRisky time before a shift ends |
0 minutes | Minutes before a shift's end within which an important visit risks not being completed. |
visitCompletionRiskMinimalPriorityLeast priority at risk |
6 | Least important priority whose visits carry completion risk. |
defaultTechnicianRatingDefault technician rating |
0.0 points | Rating of a technician who has none. |
travelTimeAdjustmentTravel time adjustment |
{"extraTime" => 0, "multiplier" => 1.0} | Every drive takes multiplier times the drive on the roads plus extraTime minutes, for shifts that set none. |
preferGroupingColocatedVisitsRadiusMetersSame-place radius |
0 meters | Two consecutive items closer than this many meters count as one place for co-located grouping; at most 200. |
defaultDependencyPoolingTypeWhat may run inside a dependency |
ALLOW_POOLING_ALL | What may run between a preceding visit and the visit waiting on it, for dependencies that set none. |
pinnedStartAllowedDelayAllowed delay of a pinned visit |
0 minutes | Minutes a pinned visit may start after its kept start at a soft cost; later costs hard. |
holidaysHolidays |
[] | Dates that are no working day for dependencies delayed to the next working day. |
pinNextVisitDuringFreezeFreezing pins the next visit |
true | Freezing the past also pins the visit each technician is on the way to; a shift may override it. |