Skip to content

Instantly share code, notes, and snippets.

@krashish8
Created December 1, 2021 06:53
Show Gist options
  • Save krashish8/794f3d5bdc68006533554ad1646d49b4 to your computer and use it in GitHub Desktop.
Save krashish8/794f3d5bdc68006533554ad1646d49b4 to your computer and use it in GitHub Desktop.
VROOM examples test
{
"vehicles": [
{
"id":0,
"start_index":0,
"end_index":3
}
],
"jobs": [
{
"id":1414,
"location_index":1
},
{
"id":1515,
"location_index":2
}
],
"matrices": {
"car": {
"durations": [
[0,210400,197000,1],
[2103,0,22,3152],
[197,2256,0,1102],
[1299,3,1102,0]
]
}
}
}
{
"code": 0,
"summary": {
"cost": 202408,
"routes": 1,
"unassigned": 0,
"setup": 0,
"service": 0,
"duration": 202408,
"waiting_time": 0,
"priority": 0,
"violations": [],
"computing_times": {
"loading": 0,
"solving": 3
}
},
"unassigned": [],
"routes": [
{
"vehicle": 0,
"cost": 202408,
"setup": 0,
"service": 0,
"duration": 202408,
"waiting_time": 0,
"priority": 0,
"steps": [
{
"type": "start",
"setup": 0,
"service": 0,
"waiting_time": 0,
"arrival": 0,
"duration": 0,
"violations": []
},
{
"type": "job",
"id": 1515,
"setup": 0,
"service": 0,
"waiting_time": 0,
"job": 1515,
"arrival": 197000,
"duration": 197000,
"violations": []
},
{
"type": "job",
"id": 1414,
"setup": 0,
"service": 0,
"waiting_time": 0,
"job": 1414,
"arrival": 199256,
"duration": 199256,
"violations": []
},
{
"type": "end",
"setup": 0,
"service": 0,
"waiting_time": 0,
"arrival": 202408,
"duration": 202408,
"violations": []
}
],
"violations": []
}
]
}
{
"vehicles": [
{
"id":0,
"start_index":0,
"end_index":3
}
],
"jobs": [
{
"id":1414,
"location_index":1
},
{
"id":1515,
"location_index":2
},
{
"id":1212,
"location_index":3
}
],
"matrices": {
"car": {
"durations": [
[0,210400,197000,1],
[2103,0,22,3152],
[197,2256,0,1102],
[1299,3,1102,0]
]
}
}
}
{
"code": 0,
"summary": {
"cost": 1128,
"routes": 1,
"unassigned": 0,
"setup": 0,
"service": 0,
"duration": 1128,
"waiting_time": 0,
"priority": 0,
"violations": [],
"computing_times": {
"loading": 0,
"solving": 1
}
},
"unassigned": [],
"routes": [
{
"vehicle": 0,
"cost": 1128,
"setup": 0,
"service": 0,
"duration": 1128,
"waiting_time": 0,
"priority": 0,
"steps": [
{
"type": "start",
"setup": 0,
"service": 0,
"waiting_time": 0,
"arrival": 0,
"duration": 0,
"violations": []
},
{
"type": "job",
"id": 1212,
"setup": 0,
"service": 0,
"waiting_time": 0,
"job": 1212,
"arrival": 1,
"duration": 1,
"violations": []
},
{
"type": "job",
"id": 1414,
"setup": 0,
"service": 0,
"waiting_time": 0,
"job": 1414,
"arrival": 4,
"duration": 4,
"violations": []
},
{
"type": "job",
"id": 1515,
"setup": 0,
"service": 0,
"waiting_time": 0,
"job": 1515,
"arrival": 26,
"duration": 26,
"violations": []
},
{
"type": "end",
"setup": 0,
"service": 0,
"waiting_time": 0,
"arrival": 1128,
"duration": 1128,
"violations": []
}
],
"violations": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment