Hi,
I have a list of 7 services and 5 vehicules (1 per day), find request below.
In the result the 2 first days are full so the 7th service won’t fit, but GH doesn’t assign it on an other vehicle, it just skip it.
I tried to change the objective to min-max activities but then I get 3 vehicules with only one stop.
Is there any way to obtain a more balanced result?
Thank you
The request in JSON:
{
"vehicles":[
{
"vehicle_id":"shift_1",
"type_id":"car",
"earliest_start":1700470800,
"latest_end":1700501400,
"return_to_depot":false,
"break":{
"earliest":1700485200,
"latest":1700488800,
"duration":3600
}
},
{
"vehicle_id":"shift_2",
"type_id":"car",
"earliest_start":1700557200,
"latest_end":1700587800,
"return_to_depot":false,
"break":{
"earliest":1700571600,
"latest":1700575200,
"duration":3600
}
},
{
"vehicle_id":"shift_3",
"type_id":"car",
"earliest_start":1700643600,
"latest_end":1700674200,
"return_to_depot":false,
"break":{
"earliest":1700658000,
"latest":1700661600,
"duration":3600
}
},
{
"vehicle_id":"shift_4",
"type_id":"car",
"earliest_start":1700730000,
"latest_end":1700760600,
"return_to_depot":false,
"break":{
"earliest":1700744400,
"latest":1700748000,
"duration":3600
}
},
{
"vehicle_id":"shift_5",
"type_id":"car",
"earliest_start":1700816400,
"latest_end":1700847000,
"return_to_depot":false,
"break":{
"earliest":1700830800,
"latest":1700834400,
"duration":3600
}
}
],
"vehicle_types":[
{
"type_id":"car",
"profile":"car",
"consider_traffic":true
},
{
"type_id":"small_truck",
"profile":"small_truck",
"consider_traffic":true
}
],
"services":[
{
"id":"1",
"name":"Harrison Insurance",
"address":{
"location_id":"104_13",
"lon":-80.15222,
"lat":26.61865,
"name":"Harrison Insurance"
},
"duration":1800,
"priority":3
},
{
"id":"2",
"name":"Mosley Inc.",
"address":{
"location_id":"104_10",
"lon":-80.67593,
"lat":28.07929,
"name":"Mosley Inc."
},
"duration":1800,
"priority":3
},
{
"id":"3",
"name":"Auld Media",
"address":{
"location_id":"104_12",
"lon":-81.40738,
"lat":28.29295,
"name":"Auld Media"
},
"duration":1800,
"priority":3
},
{
"id":"4",
"name":"Dory Software",
"address":{
"location_id":"104_11",
"lon":-81.63387,
"lat":29.64688,
"name":"Dory Software"
},
"duration":1800,
"priority":3
},
{
"id":"5",
"name":"Beckett Company",
"address":{
"location_id":"104_14",
"lon":-82.67907,
"lat":27.76765,
"name":"Beckett Company"
},
"duration":1800,
"priority":3
},
{
"id":"6",
"name":"McHugh \u0026 Co.",
"address":{
"location_id":"104_15",
"lon":-84.26602,
"lat":30.44202,
"name":"McHugh \u0026 Co."
},
"duration":1800,
"priority":3
},
{
"id":"7",
"name":"Ackerman Industries",
"address":{
"location_id":"104_16",
"lon":-87.20814,
"lat":30.44776,
"name":"Ackerman Industries"
},
"duration":1800,
"priority":3
}
],
"configuration":{
"routing":{
"calc_points":true,
"consider_traffic":true,
"network_data_provider":"tomtom",
"return_snapped_waypoints":false
}
},
"objectives":[
{
"type":"min",
"value":"vehicles"
},
{
"type":"min",
"value":"completion_time"
}
]
}