Skip to content

Instantly share code, notes, and snippets.

@braktar
Created August 2, 2018 09:13
Show Gist options
  • Save braktar/3a86291589e798b4d1a7c1277f165ae7 to your computer and use it in GitHub Desktop.
Save braktar/3a86291589e798b4d1a7c1277f165ae7 to your computer and use it in GitHub Desktop.
{
"vrp": {
"configuration": {
"resolution": {
"duration": 60
}
},
"matrices": [
{
"distance": [
[
0,
41512.1,
20525.1,
50609,
37095.3,
25461.1,
43862.4,
80413.2,
28426.5,
29992.3,
59563.8
],
[
40837.4,
0,
41662.6,
20075.9,
9429.4,
21371.2,
7324.7,
55227.1,
19085.6,
32789.1,
34377.7
],
[
19289.4,
43685.5,
0,
37427.4,
39268.7,
27634.5,
46035.8,
68223.4,
25229.9,
18276.7,
47374
],
[
50317,
19821.3,
37287.9,
0,
28403.1,
25710,
18699.9,
38249,
18360.7,
19126.1,
17399.5
],
[
37252.1,
9548.8,
38077.3,
27283.8,
0,
15823.9,
8788.8,
62435,
20416.2,
35431.9,
41585.6
],
[
25325.5,
20465.4,
26150.7,
32479.8,
16031.4,
0,
15886.7,
62586.6,
8647.1,
16271.3,
41737.2
],
[
43536.6,
6837.7,
44361.8,
20016,
8511.1,
17183,
0,
55167.2,
17061.7,
23543.9,
34317.8
],
[
80369.7,
51764.4,
68417.1,
34976.1,
60346.2,
65698.9,
50643,
0,
56674.4,
51768.8,
29236.1
],
[
28473.8,
19451.7,
29299,
18780.7,
23541.1,
8850.1,
15784.8,
55745.9,
0,
10918.1,
34896.5
],
[
28319.7,
31585.4,
18724.2,
19138.7,
34831.6,
16431.8,
31079.2,
51582,
10705.6,
0,
30732.6
],
[
59429.9,
32763.4,
47477.2,
15975.1,
41345.2,
44759.1,
31642,
29299.4,
35734.6,
30829,
0
]
],
"id": "matrix_0",
"time": [
[
0,
2630.8,
1280.3,
2925.5,
2079.8,
1725.2,
2526.6,
4387.8,
1978,
2166.9,
3414
],
[
2576.8,
0,
2759.2,
1470.8,
780.8,
1637.4,
641,
3442.6,
1440.7,
1859.6,
2468.8
],
[
1208.6,
2802.8,
0,
2357.5,
2251.8,
1897.2,
2698.6,
3677.2,
2038.1,
1440.1,
2703.4
],
[
2866.7,
1441.1,
2312.1,
0,
1917.8,
1948.9,
1335.8,
2291,
1419.2,
1314.9,
1317.2
],
[
2062.6,
777.9,
2245,
1948,
0,
1154.5,
635.7,
3919.8,
1619.5,
2204.9,
2946
],
[
1687.8,
1546.4,
1870.2,
1959.6,
1167.7,
0,
1247.8,
3785.1,
851.1,
1423.4,
2811.3
],
[
2476,
640.5,
2658.4,
1492.9,
673.9,
1372.3,
0,
3464.7,
1369,
1921.9,
2490.9
],
[
4369.6,
3455.8,
3688.8,
2325.7,
3932.5,
3844.4,
3350.5,
0,
3363.9,
2701,
1862.2
],
[
1908.6,
1502.3,
2091,
1504.4,
1656.8,
843.3,
1265.5,
3231.2,
0,
1050.7,
2257.4
],
[
2090.1,
1841.8,
1459,
1338.3,
2133.5,
1380.5,
1779.7,
2679.9,
1052.4,
0,
1706.1
],
[
3421.7,
2500.9,
2740.9,
1370.8,
2977.6,
2896.5,
2395.6,
1865.2,
2416,
1753.1,
0
]
]
}
],
"points": [
{
"id": "depot",
"matrix_index": 0
},
{
"id": "l1",
"matrix_index": 1
},
{
"id": "l2",
"matrix_index": 2
},
{
"id": "l3",
"matrix_index": 3
},
{
"id": "l4",
"matrix_index": 4
},
{
"id": "l5",
"matrix_index": 5
},
{
"id": "l6",
"matrix_index": 6
},
{
"id": "l7",
"matrix_index": 7
},
{
"id": "l8",
"matrix_index": 8
},
{
"id": "l9",
"matrix_index": 9
},
{
"id": "l10",
"matrix_index": 10
}
],
"rests": [
{
"duration": 1800.0,
"id": "Break-1",
"timewindows": [
{
"end": 36000,
"start": 32400
}
]
}
],
"services": [
{
"activity": {
"duration": 1800,
"point_id": "l1",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_1",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l2",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_2",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l3",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_3",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l4",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_4",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 3600,
"point_id": "l5",
"timewindows": [
{
"end": 68400,
"start": 28800
}
]
},
"id": "service_5",
"interventions": 2,
"type": "service"
},
{
"activity": {
"duration": 3600,
"point_id": "l6",
"timewindows": [
{
"end": 68400,
"start": 28800
}
]
},
"id": "service_6",
"interventions": 2,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l7",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_7",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l8",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_8",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l9",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_9",
"interventions": 1,
"type": "service"
},
{
"activity": {
"duration": 1800,
"point_id": "l10",
"timewindows": [
{
"end": 66600,
"start": 28800
}
]
},
"id": "service_10",
"interventions": 1,
"type": "service"
}
],
"vehicles": [
{
"end_point_id": "depot",
"id": "vehicle_0",
"matrix_id": "matrix_0",
"overall_duration": 1,
"rests_ids": [
"Break-1"
],
"start_point_id": "depot",
"timewindow": {
"end": 68400,
"start": 25200
}
},
{
"end_point_id": "depot",
"id": "vehicle_1",
"matrix_id": "matrix_0",
"overall_duration": 1,
"rests_ids": [
"Break-1"
],
"start_point_id": "depot",
"timewindow": {
"end": 68400,
"start": 25200
}
},
{
"end_point_id": "depot",
"id": "vehicle_2",
"matrix_id": "matrix_0",
"overall_duration": 1,
"rests_ids": [
"Break-1"
],
"start_point_id": "depot",
"timewindow": {
"end": 68400,
"start": 25200
}
},
{
"end_point_id": "depot",
"id": "vehicle_3",
"matrix_id": "matrix_0",
"overall_duration": 1,
"rests_ids": [
"Break-1"
],
"start_point_id": "depot",
"timewindow": {
"end": 68400,
"start": 25200
}
},
{
"end_point_id": "depot",
"id": "vehicle_4",
"matrix_id": "matrix_0",
"overall_duration": 1,
"rests_ids": [
"Break-1"
],
"start_point_id": "depot",
"timewindow": {
"end": 68400,
"start": 25200
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment