Search…
Backlogs
You will learn the basics of using backlogs on cloud.

Overview

Routes previously assigned to a vehicle, or backlog, may need to be assigned to the same vehicle. Backlogs are treated as flexible in Nextmv Cloud. Flexible backlogs ensure that stops in each vehicle's backlog are assigned to the same vehicle, while allowing for replanning (backlog order can change if a better route is found) and the insertion of new stops during a route in progress.
A fixed backlog in which new stops can only be appended to an assigned route must be managed outside of Nextmv, as these stops do not require optimization. In this case, be sure to set the start location and shift start time of the vehicle to the location and ETD of the last stop in the fixed backlog, and do not pass in any fixed backlog stops.

Flexible backlogs

The backlog property can be used for flexible backlogs, defined as an unordered list of stops. Each stop will be added to the vehicle's route in the cost-optimal order. Additionally, other stops from the input may be added to the vehicle's route.
Note, compatibility attributes can also be used to define backlogs. However, we recommend using backlog instead as some stops can go unassigned when using compatibility attributes for backlog.
Below is an example of how to configure an input file with backlogs using the backlog option:
JSON
1
{
2
"defaults": {
3
"vehicles": {
4
"shift_start": "2021-08-24T09:00:00-06:00",
5
"speed": 10
6
}
7
},
8
"vehicles": [
9
{
10
"id": "vehicle-1",
11
"backlog": ["location-1", "location-2"]
12
},
13
{
14
"id": "vehicle-2",
15
"backlog": ["location-3", "location-4"]
16
}
17
],
18
"stops": [
19
{
20
"id": "location-1",
21
"position": {
22
"lon": 7.6129,
23
"lat": 51.957
24
}
25
},
26
{
27
"id": "location-2",
28
"position": {
29
"lon": 7.6166,
30
"lat": 51.9635
31
}
32
},
33
{
34
"id": "location-3",
35
"position": {
36
"lon": 7.6258,
37
"lat": 51.9624
38
}
39
},
40
{
41
"id": "location-4",
42
"position": {
43
"lon": 7.6386,
44
"lat": 51.9449
45
}
46
},
47
{
48
"id": "location-5",
49
"position": {
50
"lon": 7.5896,
51
"lat": 51.9486
52
}
53
},
54
{
55
"id": "location-6",
56
"position": {
57
"lon": 7.5965,
58
"lat": 51.9455
59
}
60
},
61
{
62
"id": "location-7",
63
"position": {
64
"lon": 7.5921,
65
"lat": 51.9573
66
}
67
},
68
{
69
"id": "location-8",
70
"position": {
71
"lon": 7.6048,
72
"lat": 51.9492
73
}
74
}
75
]
76
}
Copied!
Export as PDF
Copy link