Skip to main content

MPT

ProblemMPT

The problem is built by the SDK from the entities received and the Action received in the route calculation message

See POST /mpt/problems in MPT OpenAPI Documentation for more information.

Action

Describe the action to compute.
See Action in ProblemMPT definition in MPT OpenAPI Documentation.

Example of MptAction
{
"type": "OPTIMIZE_EXISTING_ROUTES",
"routes": [
"000ZYX1DH01"
]
}
Info

See type possible values under Action/type in ProblemMPT definition in MPT OpenAPI Documentation.

Solution

The solution calculated by API MPT.
See GET /mpt/solutions in MPT OpenAPI Documentation for more information.

Warning

The solution may not contain all the routes as only the impacted routes are present. The SDK will update the entities with the solution preserving unimpacted routes and send an entities message to the application.

Example of solution
{
"id": "c1d08f73-8453-412e-bbe1-fbee8f967445",
"vehicleRoutes": [
{
"truck": "VEHICLE_01",
"period": "PERIOD_01",
"routes": [
{
"id": "000ZYX1DH01",
"activities": [
{
"activity": "ROUTE_START",
"timeWindow": {
"start": "2022-11-01T04:30:00.000+01:00",
"end": "2022-11-01T04:30:00.000+01:00"
},
"site": "SINARI",
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"distance": 0,
"nominalDuration": 0,
"notWorked": false
},
{
"activity": "LOADING",
"timeWindow": {
"start": "2022-11-01T04:30:00.000+01:00",
"end": "2022-11-01T04:30:00.000+01:00"
},
"site": "SINARI",
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"operations": [
{
"id": "OPERATION_01"
},
...
],
"distance": 0,
"nominalDuration": 0,
"notWorked": false
},
{
"activity": "DRIVING",
"timeWindow": {
"start": "2022-11-01T04:30:00.000+01:00",
"end": "2022-11-01T06:01:47.000+01:00"
},
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"departureSite": "SINARI",
"arrivalSite": "CJM",
"distance": 134366,
"nominalDuration": 5507,
"notWorked": false
},
{
"activity": "DELIVERY",
"timeWindow": {
"start": "2022-11-01T06:01:47.000+01:00",
"end": "2022-11-01T06:01:47.000+01:00"
},
"site": "CJM",
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"operations": [
{
"id": "OPERATION_03"
}
],
"distance": 0,
"nominalDuration": 0,
"notWorked": false
},
...
{
"activity": "DELIVERY",
"timeWindow": {
"start": "2022-11-01T19:00:20.000+01:00",
"end": "2022-11-01T19:00:20.000+01:00"
},
"site": "AXIOROUTE",
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"operations": [
{
"id": "OPERATION_01"
}
],
"distance": 0,
"nominalDuration": 0,
"notWorked": false
},
{
"activity": "DRIVING",
"timeWindow": {
"start": "2022-11-01T19:00:20.000+01:00",
"end": "2022-11-01T20:32:10.000+01:00"
},
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"departureSite": "AXIOROUTE",
"arrivalSite": "SINARI",
"distance": 127428,
"nominalDuration": 5510,
"notWorked": false
},
{
"activity": "ROUTE_END",
"timeWindow": {
"start": "2022-11-01T20:32:10.000+01:00",
"end": "2022-11-01T20:32:10.000+01:00"
},
"site": "SINARI",
"fixedTimeSite": 0,
"volume": 0,
"weight": 0,
"distance": 0,
"nominalDuration": 0,
"notWorked": false
}
],
"status": "FREE"
}
]
}
]
}

SolutionIndicators

Some Route optimization messages for global calculations may content indicators on the Job Progress message.

See GET /indicators in Feedback OpenAPI Documentation for more information.

Example of SolutionIndicators
{
"id": "fcb2620b-7172-47de-8db6-762784f4446f",
"indicators": [
{
"code": "NB_REJECTED_OPERATIONS",
"topic": "OPERATION",
"description": "",
"value": 189
},
{
"code": "NB_VEHICLE_PERIODS",
"topic": "RESOURCES",
"description": "",
"value": 4
},
{
"code": "GLOBAL_DISTANCE",
"topic": "DISTANCE",
"description": "",
"value": 593100
},
{
"code": "DRIVING_TIME",
"topic": "TIME",
"description": "",
"value": 25140
},
{
"code": "LOADING_TIME",
"topic": "TIME",
"description": "",
"value": 0
},
{
"code": "UNLOADING_TIME",
"topic": "TIME",
"description": "",
"value": 4800
},
{
"code": "DELIVERIES_TIME",
"topic": "TIME",
"description": "",
"value": 0
},
{
"code": "COLLECTIONS_TIME",
"topic": "TIME",
"description": "",
"value": 960
},
{
"code": "WAITING_TIME",
"topic": "TIME",
"description": "",
"value": 6840
},
{
"code": "REST_TIME",
"topic": "TIME",
"description": "",
"value": 0
},
{
"code": "GLOBAL_TIME",
"topic": "TIME",
"description": "",
"value": 37740
},
{
"code": "GLOBAL_WORKING_TIME",
"topic": "TIME",
"description": "",
"value": 37740
},
{
"code": "DAY_WORKING_TIME",
"topic": "TIME",
"description": "",
"value": 24540
},
{
"code": "NIGHT_WORKING_TIME",
"topic": "TIME",
"description": "",
"value": 13200
},
{
"code": "VOLUME_FILLING_RATE",
"topic": "RESOURCES",
"description": "",
"value": 0.01
},
{
"code": "WEIGHT_FILLING_RATE",
"topic": "RESOURCES",
"description": "",
"value": 0.01
},
{
"code": "NB_ROUTES",
"topic": "RESOURCES",
"description": "",
"value": 8
},
{
"code": "CRITERION_1",
"topic": "VALORIZATION",
"description": "[NB_REJECTED_OPERATIONS]",
"value": 189
},
{
"code": "CRITERION_2",
"topic": "VALORIZATION",
"description": "[DISTANCE]",
"value": 5931
}
]
}