Skip to main content

Trailer

Some problems do require the use of logistics resources like trailers. A trailer increases the transport capacity of a truck/tractor unit over the duration of a route. Sometimes, due to access constraints to the logistics sites, it is not possible to do the collection or delivery operation with the complete hitch (truck + trailer): the trailer can be temporarily unhooked while the truck continues to drive in order to collect/deliver on customer sites.

We take into account two types of trailer management:

  • Fixed hitch: a route is done entirely with the complete hitch (e.g. tractor unit + trailer). It is therefore only necessary to ensure that the access limits (size, characteristics, maximum weight) of the different sites of the route are compatible with the complete hitch.

  • Hooking, unhooking and transfer during the route: The trailer management consists for each route:

    • to determine loops (succession of logistics sites) which will be delivered / collected with the truck alone
    • indicate, for each beginning of the loop, the site where the trailer will be unhooked
    • minimize the total duration or distance of the route

Define trailers​

  • Example of defining a trailer with the possibility of hooking, unhooking and transfer during the route. Similar to what is done for vehicles, the vehicle type defines the capacity, a size, characteristics, etc. that can be associated to the trailer.
"trailers": [
{
"id": "TRAILER_1",
"idVehicleType": "VEHTYPE_1"
}
  • Example of the definition of a trailer with fixed hitch
{
"id": "TRAILER_2",
"forbidUnhookOrHook": true,
"idVehicleType": "VEHTYPE_1"
}

Associate a Trailer with a Vehicle Availability Period​

{
"id": "TRUCK_1",
"idVehicleType": "VEHTYPE_1",
"availablePeriods": [
{
"id": "PERIOD_1",
"idTrailer": "TRAILER_1",
"timeWindow": {
"start": "2020-12-11T16:31:27.973+01:00",
"end": "2020-12-12T16:31:27.973+01:00"
}
}
]
}

The Solution​

In the case of trailers with a fixed hitch, there is no particular impact on the solution.

In the case of a trailer with the possibility of hooking, unhooking and transferring, some additional activities of a route describe the schedule of the trailer:

  • HOOKING: hooking,
  • UNHOOKING: unhooking,
  • TRANSFER: transfer of goods between truck and trailer
{
"activity": "HOOKING",
"timeWindow": {
"start": "2020-12-11T15:31:29Z",
"end": "2020-12-11T15:31:30Z"
},
"site": "SITE_1"
}
{
"activity": "UNHOOKING",
"timeWindow": {
"start": "2020-12-11T15:31:27Z",
"end": "2020-12-11T15:31:28Z"
},
"site": "SITE_1"
}
{
"activity": "TRANSFER",
"timeWindow": {
"start": "2020-12-11T15:31:28Z",
"end": "2020-12-11T15:31:29Z"
},
"site": "SITE_1",
"volume": 5.0
}

Full Problem
{
"sites": [
{
"id": "SITE_1",
"coordinates": {
"latitude": 47.46257,
"longitude": -0.56151
}
},
{
"id": "DEPOT_1",
"coordinates": {
"latitude": 47.20586,
"longitude": -1.56435
},
"isDepot": true
}
],
"vehicleTypes": [
{
"id": "VEHTYPE_1",
"volumeCapacity": 5
}
],
"trailers": [
{
"id": "TRAILER_1",
"idVehicleType": "VEHTYPE_1"
}
,
{
"id": "TRAILER_2",
"forbidUnhookOrHook": true,
"idVehicleType": "VEHTYPE_1"
}
],
"trucks": [
{
"id": "TRUCK_1",
"idVehicleType": "VEHTYPE_1",
"availablePeriods": [
{
"id": "PERIOD_1",
"idTrailer": "TRAILER_1",
"timeWindow": {
"start": "2020-12-11T16:31:27.973+01:00",
"end": "2020-12-12T16:31:27.973+01:00"
}
}
]
}
],
"operations": [
{
"id": "OPERATION_1",
"type": "COLLECTION",
"idSiteOrigin": "SITE_1",
"volume": 5
},
{
"id": "OPERATION_2",
"type": "COLLECTION",
"idSiteOrigin": "SITE_1",
"volume": 5
}
]
}
Full Solution
{
"vehicleRoutes": [
{
"truck": "TRUCK_1",
"period": "PERIOD_1",
"routes": [
{
"id": "NewRoute_1_1",
"activities": [
{
"activity": "ROUTE_START",
"timeWindow": {
"start": "2020-12-11T15:31:27Z",
"end": "2020-12-11T15:31:27Z"
},
"site": "SITE_1"
},
{
"activity": "UNHOOKING",
"timeWindow": {
"start": "2020-12-11T15:31:27Z",
"end": "2020-12-11T15:31:28Z"
},
"site": "SITE_1"
},
{
"activity": "COLLECTION",
"timeWindow": {
"start": "2020-12-11T15:31:28Z",
"end": "2020-12-11T15:31:28Z"
},
"site": "SITE_1",
"fixedTimeSite": 0,
"volume": 5.0,
"operations": [
{
"id": "OPERATION_1"
}
]
},
{
"activity": "TRANSFER",
"timeWindow": {
"start": "2020-12-11T15:31:28Z",
"end": "2020-12-11T15:31:29Z"
},
"site": "SITE_1",
"volume": 5.0
},
{
"activity": "COLLECTION",
"timeWindow": {
"start": "2020-12-11T15:31:29Z",
"end": "2020-12-11T15:31:29Z"
},
"site": "SITE_1",
"fixedTimeSite": 0,
"volume": 5.0,
"operations": [
{
"id": "OPERATION_2"
}
]
},
{
"activity": "HOOKING",
"timeWindow": {
"start": "2020-12-11T15:31:29Z",
"end": "2020-12-11T15:31:30Z"
},
"site": "SITE_1"
},
{
"activity": "DRIVING",
"timeWindow": {
"start": "2020-12-11T15:31:30Z",
"end": "2020-12-11T16:32:48Z"
},
"departureSite": "SITE_1",
"arrivalSite": "DEPOT_1",
"distance": 89964,
"nominalDuration": 3678
},
{
"activity": "UNLOADING",
"timeWindow": {
"start": "2020-12-11T16:32:48Z",
"end": "2020-12-11T16:32:48Z"
},
"site": "DEPOT_1",
"fixedTimeSite": 0,
"volume": 10.0,
"operations": [
{
"id": "OPERATION_1"
},
{
"id": "OPERATION_2"
}
]
},
{
"activity": "ROUTE_END",
"timeWindow": {
"start": "2020-12-11T16:32:48Z",
"end": "2020-12-11T16:32:48Z"
},
"site": "DEPOT_1"
}
]
}
]
}
],
"rejectOperations": [],
"modifiedData": []
}