Documentation
Pick-up and delivery routing data
The dataset format of the pick-up and delivery 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.
Drivers drivers
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
travelMode |
Travels | text | optional | By car, By bicycle, On foot |
Shifts drivers/*/shifts
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
minStartTime |
Starts | date time | optional | |
maxEndTime |
Ends by | date time | optional | |
maxSoftEndTime |
Should end by | date time | optional | |
minFirstStopArrivalTime |
First stop not before | date time | optional | |
maxLastStopDepartureTime |
Leaves the last stop by | date time | optional | |
maxSoftLastStopDepartureTime |
Should leave the last stop 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 | |
requiredBreaks |
Breaks | list of objects: id, type, startTime, endTime, minStartTime, maxEndTime, duration, location, policy |
optional | |
capacities |
Capacity | list of objects: type, quantity |
optional | |
skills |
Skills | list of objects: name, level, multiplier |
optional | |
tags |
Tags | list | optional | |
pinned |
Keep the route as it is | boolean | optional | |
pinNextStopDuringFreeze |
Keep the next stop when replanning | boolean | optional | |
itinerary |
Route | list of objects: id, kind, arrivalTime, startServiceTime, departureTime, travelSeconds, travelMeters, pin, unreachable, load |
written by the solver | |
metrics |
Totals | object: startTime, endLocationArrivalTime, lastStopDepartureTime, travelSeconds, travelMeters, overtimeSeconds |
written by the solver | |
unreachable |
A leg has no road | boolean | written by the solver |
Jobs jobs
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
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) |
requiredSkills |
Needs skills | list of objects: name, minLevel |
optional | |
requiredTags |
Needs tags | list | optional | |
requiredDrivers |
Only drivers | list | optional | an id from drivers |
preferredDrivers |
Preferred drivers | list | optional | an id from drivers |
prohibitedDrivers |
Never drivers | list | optional | an id from drivers |
demands |
Takes up | list of objects: type, demand |
optional | |
prohibitJobPooling |
Rides alone | boolean | optional | |
prohibitedJobs |
Never on board with | list | optional | an id from jobs |
maximumTimeBurden |
Most extra ride time | minutes | optional | |
allowInterruption |
Breaks while on board | text | optional | Allowed, Not allowed |
Stops jobs/*/stops
| Field | Label | Kind | Required | Values |
|---|---|---|---|---|
name |
Name | text | optional | |
location |
Place | location | required | |
parts |
Parts used | list of objects: part, quantity |
optional | |
duration |
Minutes there | minutes | required | |
timeWindows |
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 | |
demands |
Loads and unloads | list of objects: type, pickup, deliver |
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 |
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 job that sets none: 1 to 10 are mandatory, opt-1 to opt-10 optional, each level ten times the weight of the next. |
maximumTimeBurdenLongest added ride time |
Minutes pooling may add to a job's ride beyond direct service, for jobs that set none; unset means no limit. | |
pinNextStopDuringFreezeFreezing pins the next stop |
true | Freezing the past also pins the stop each driver is on the way to; a shift may override it. |