Optimize Cluster
POST/optimize/cluster
Optimize Cluster
Request
Query Parameters
Default value: true
- application/json
Body
required
- Array [
- ]
The id of the wave.
The name of the site.
Single or list of starting locations.
Single or list of ending locations.
A list containing information for every Handling Unit Type
parameters object
Default value: false
Allow interpolation of input locations
Default value: false
Allow extrapolation of input locations
How a location name should be processed before looking it up in the warehouseAn example could be that locations are stored as 'A1-24-006A', but the last character is irrelevant.In this case, the matching regex would be r'^(A1-[0-9]{2}-[0-9]{3})([A-Z])$'and the replacement regex would be r'\1'.Multiple regexes can be provided. If two or more regexes match, the first match is used.
Default value: false
Whether or not to generate a visualization for the route.
Default value: false
When enabling this, the algorithm will replace location sets that are not mutually exclusive by their intersection. As an example, if two picks with locations [A, B] and [B, C] are provided, the algorithm will replace these with [B].
Default value: false
Whether or not to use the asis routing when "optimizing" the route or cluster.
Default value: 60
The maximum runtime for the clustering algorithm in seconds.Note that this is an approximation and not the actual runtime.The algorithm will try to finish within this time.
A custom stop condition for the clustering algorithm.
The maximum number of orders that can be assigned to a single cluster.
The maximum number of locations that can be visited in a single cluster.
The maximum distance that can be traveled in a single cluster.Note that this distance used is an approximation and not the actual distance.
The maximum volume that can be transported in a single cluster. (1D packing)
The maximum weight that can be transported in a single cluster.
The maximum surface area that can be transported in a single cluster. (2D packing)
The maximum difference in weight between the heaviest and lightest orders in a single cluster.Can be used for stability purposes.
Default value: false
Whether or not to actually optimize the clustering. If False, the clustering will only be done as-is.
picks object[]required
Possible values: >= 1
A list of picks that need to be clustered.
ID to unique identify this pick
The location(s) of the pick in the warehouse.
The sequence number of the pick in the as-is route.Required for calculating as-is distances.
Higher priority picks are picked first.
The id of the SKU on the location.
For clustering, the order id of the pick.
The handling unit id of the pick.
The handling unit type of the pick.
For clustering, the as-is list/cluster the pick belongs to.Required for calculating as-is clusters.
For clustering, The width of the SKU.
For clustering, The height of the SKU.
For clustering, The depth of the SKU.
For clustering, The weight of the SKU.
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
The site name of the site.
The site id of the site.
The id of the wave.
The ObjectId of the corresponding request.
The timestamp of the response.
Time our algorithm spent calculating.
An error message, if an error occurred.
Link to a visualization of the optimization, if enabled in request parameters.
asis_clusters object[]
The as-is clusters.
The list_id of the cluster. This is assigned by the clustering algorithm in the case of optimal clusters.In the case of as-is clusters, this is the list_id of the as-is cluster.
picks object[]
The picks in the cluster.
ID to unique identify this pick
The location(s) of the pick in the warehouse.
The sequence number of the pick in the as-is route.Required for calculating as-is distances.
Higher priority picks are picked first.
The id of the SKU on the location.
For clustering, the order id of the pick.
The handling unit id of the pick.
The handling unit type of the pick.
For clustering, the as-is list/cluster the pick belongs to.Required for calculating as-is clusters.
For clustering, The width of the SKU.
For clustering, The height of the SKU.
For clustering, The depth of the SKU.
For clustering, The weight of the SKU.
Default value: ``
All the order_ids of the picks in the cluster.
The estimated distance of the cluster.
optimal_clusters object[]
The optimal clusters.
The list_id of the cluster. This is assigned by the clustering algorithm in the case of optimal clusters.In the case of as-is clusters, this is the list_id of the as-is cluster.
picks object[]
The picks in the cluster.
ID to unique identify this pick
The location(s) of the pick in the warehouse.
The sequence number of the pick in the as-is route.Required for calculating as-is distances.
Higher priority picks are picked first.
The id of the SKU on the location.
For clustering, the order id of the pick.
The handling unit id of the pick.
The handling unit type of the pick.
For clustering, the as-is list/cluster the pick belongs to.Required for calculating as-is clusters.
For clustering, The width of the SKU.
For clustering, The height of the SKU.
For clustering, The depth of the SKU.
For clustering, The weight of the SKU.
Default value: ``
All the order_ids of the picks in the cluster.
The estimated distance of the cluster.
{
"site_name": "string",
"site_id": "string",
"wave_id": "string",
"request_id": "string",
"timestamp": "2024-12-06T08:45:23.473Z",
"computation_time": 0,
"error": "string",
"visualization_url": "string",
"asis_clusters": [
{
"list_id": "string",
"picks": [
{
"pick_id": "string",
"location_id": [
"string"
],
"asis_sequence": 0,
"priority": 0,
"sku_id": "string",
"order_id": "string",
"hu_id": "string",
"hu_type": "string",
"list_id": "string",
"sku_width": 0,
"sku_height": 0,
"sku_depth": 0,
"sku_weight": 0
}
],
"order_ids": [
"string"
],
"estimated_distance": 0
}
],
"optimal_clusters": [
{
"list_id": "string",
"picks": [
{
"pick_id": "string",
"location_id": [
"string"
],
"asis_sequence": 0,
"priority": 0,
"sku_id": "string",
"order_id": "string",
"hu_id": "string",
"hu_type": "string",
"list_id": "string",
"sku_width": 0,
"sku_height": 0,
"sku_depth": 0,
"sku_weight": 0
}
],
"order_ids": [
"string"
],
"estimated_distance": 0
}
],
"asis_distance": 0,
"optimal_distance": 0
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- MOD2
- ]
- ]
detail object[]
loc object[]required
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}