【发布时间】:2022-08-04 00:22:47
【问题描述】:
我有一份工作,必须在第一天取件并在第二天交付。 我的车队从 9:00 到 18:00 都有两个班次。 如果我只插入取件,则在此处返回响应,但是如果我同时插入取件和送货作业,或者如果我将送货和取货放在同一个作业上,我会收到错误消息(无法在车辆时间窗口内提供作业)
我只是尝试了一次取件和一次交付,但目标是在不同的日子里优化多项工作
{
\"configuration\":{
\"termination\":{
\"maxTime\":30,
\"stagnationTime\":5
}
},
\"fleet\":{
\"types\":[
{
\"id\":\"09c77738-1dba-42f1-b00e-eb63da7147d6\",
\"profile\":\"normal_car\",
\"costs\":{
\"fixed\":22.0,
\"distance\":1.0E-4,
\"time\":0.0048
},
\"shifts\":[
{
\"start\":{
\"time\":\"2021-01-05T09:00:00Z\",
\"location\":{
\"lat\":44.492717,
\"lng\":11.346402
}
},
\"end\":{
\"time\":\"2021-01-05T18:00:00Z\",
\"location\":{
\"lat\":44.492717,
\"lng\":11.346402
}
},
\"breaks\":[
{
\"times\":[
[
\"2021-01-05T11:00:00Z\",
\"2021-01-05T13:00:00Z\"
]
],
\"duration\":1800
}
]
},
{
\"start\":{
\"time\":\"2021-01-06T09:00:00Z\",
\"location\":{
\"lat\":44.492717,
\"lng\":11.346402
}
},
\"end\":{
\"time\":\"2021-01-06T18:00:00Z\",
\"location\":{
\"lat\":44.492717,
\"lng\":11.346402
}
},
\"breaks\":[
{
\"times\":[
[
\"2021-01-06T11:00:00Z\",
\"2021-01-06T13:00:00Z\"
]
],
\"duration\":1800
}
]
}
],
\"capacity\":[
100,
5
],
\"skills\":[
\"GRU\"
],
\"limits\":{
\"maxDistance\":100000.0,
\"shiftTime\":28800.0
},
\"amount\":1
}
],
\"profiles\":[
{
\"type\":\"car\",
\"name\":\"normal_car\"
}
],
\"traffic\":\"liveOrHistorical\"
},
\"plan\":{
\"jobs\":[
{
\"id\":\"43ef69fd-98ee-4530-acbb-ec774a9d4769\",
\"tasks\":{
\"pickups\":[
{
\"places\":[
{
\"location\":{
\"lat\":44.492717,
\"lng\":11.346402
},
\"duration\":180,
\"times\":[
[
\"2021-01-05T10:00:00Z\",
\"2021-01-05T17:00:00Z\"
]
]
}
],
\"demand\":[
2
]
}
]
},
\"skills\":[
\"GRU\"
],
\"priority\":2,
\"customerId\":\"012021010408302512_\"
},
{
\"id\":\"ed3439b4-270f-488b-8323-5e0109e0d974\",
\"tasks\":{
\"deliveries\":[
{
\"places\":[
{
\"location\":{
\"lat\":44.361081,
\"lng\":11.709962
},
\"duration\":180,
\"times\":[
[
\"2021-01-06T10:00:00Z\",
\"2021-01-06T17:00:00Z\"
]
]
}
],
\"demand\":[
2
]
}
]
},
\"skills\":[
\"GRU\"
],
\"priority\":2,
\"customerId\":\"012021010408302512_\"
}
],
\"relations\":[
{
\"type\":\"sequence\",
\"jobs\":[
\"departure\",
\"43ef69fd-98ee-4530-acbb-ec774a9d4769\",
\"ed3439b4-270f-488b-8323-5e0109e0d974\",
\"arrival\"
],
\"vehicleId\":\"09c77738-1dba-42f1-b00e-eb63da7147d6_1\"
}
],
\"clustering\":{
\"serviceTimeStrategy\":{
\"type\":\"fixedDurationStrategy\",
\"duration\":3600
}
}
}
}
标签: here-api here-tourplanning