Skip to main content

Optimize Cluster

POST 

/optimize/cluster

Optimize Cluster

Request

Query Parameters

    synchronous Synchronous

    Default value: true

Body

required
    wave_id Wave Idnullable

    The id of the wave.

    site_name Site Namerequired

    The name of the site.

    start_points arraynullable

    Single or list of starting locations.

    end_points arraynullable

    Single or list of ending locations.

    parameters object
    allow_interpolation Allow Interpolation

    Default value: false

    Allow interpolation of missing input locations

    location_regex arraynullable

    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.

    allow_regex_default Allow Regex Default

    Default value: true

    If false, a location that does not match any of the provided regexes will be considered invalid.If true, the location will be used as-is if no regex matches.

    routing_policy RoutingPolicy

    Possible values: [ASIS, OPTIMIZED, AUTOSTORE]

    Default value: OPTIMIZED

    The routing policy to use when generating the route. Options are: RoutingPolicy.ASIS (do not optimize the route), RoutingPolicy.OPTIMIZED (optimize the route using the default optimization algorithm), RoutingPolicy.AUTOSTORE (use an autostore specific algorithm, this also removes a lot of input restrictions).

    asis_routing Asis Routingnullabledeprecated

    [DEPRECATED] Whether or not to use the asis routing when "optimizing" the route or cluster. Use "routing_policy" instead. If set, this will override "routing_policy" to ASIS for backward compatibility.

    pick_violation_handling PickViolationHandling

    Possible values: [IGNORE, REMOVE_PICKS, REMOVE_ORDERS]

    Default value: IGNORE

    How to handle pick violations. Options are: PickViolationHandling.IGNORE, any pick violation will throw a validation exception. PickViolationHandling.REMOVE_PICKS, any pick violation will be removed from the input. PickViolationHandling.REMOVE_ORDERS, any order with a pick violation will be removed from the input.

    duration object

    Parameters related to route duration estimation.

    move_speed Move Speednullable

    The average speed at which the picker moves, expressed in warehouse units per second.

    handling_time Handling Timenullable

    The average handling time per pick, expressed in seconds.

    route_overhead Route Overheadnullable

    The average overhead time to start and end a route, expressed in seconds.

    capacity object

    The capacity constraints for each cluster.

    custom_stop_condition Custom Stop Conditionnullable

    A custom stop condition for the clustering algorithm.

    custom_stop_condition_parameters object

    The parameters values for the custom stop condition.

    property name* any

    Default value: [object Object]

    The parameters values for the custom stop condition.

    max_orders Max Ordersnullable

    The maximum number of orders that can be assigned to a single cluster.

    max_picks Max Picksnullable

    The maximum number of locations that can be visited in a single cluster.

    max_volume Max Volumenullable

    The maximum volume that can be transported in a single cluster. (1D packing)

    max_weight Max Weightnullable

    The maximum weight that can be transported in a single cluster.

    schedule object

    The parameters used for scheduling if required.

    number_of_workers Number Of Workers

    Possible values: >= 1

    Default value: 2

    The number of workers available for the route or cluster.

    start_time Start Timenullable

    The start time for the schedule

    generate_schedule Generate Schedule

    Default value: false

    Whether or not to generate a schedule for request orders/clusters.

    max_runtime Max Runtime

    Default value: 60

    The target runtime for the clustering algorithm in seconds, only relevant if the clustering policy is OPTIMIZED_BALANCED.

    clustering_policy ClusteringPolicy

    Possible values: [ASIS, OPTIMIZED_MAX, OPTIMIZED_BALANCED, OPTIMIZED_FAST, OPTIMIZED_FULL_CLUSTERS, OPTIMIZED_SCHEDULE]

    Default value: OPTIMIZED_BALANCED

    The clustering policy to use when generating the clusters. Options are: ClusteringPolicy.ASIS (do not optimize the clustering), ClusteringPolicy.OPTIMIZED_MAX (optimize the clustering using most expensive clustering algorithm for the best distance), ClusteringPolicy.OPTIMIZED_BALANCED (optimize the clustering using a balanced clustering algorithm), ClusteringPolicy.OPTIMIZED_FAST (optimize the clustering using a faster clustering algorithm), ClusteringPolicy.OPTIMIZED_FULL_CLUSTERS (optimize the clustering emphasizing the cluster fill rate).ClusteringPolicy.OPTIMIZED_SCHEDULE (optimize the clustering with scheduling constraints in mind).

    asis_clustering Asis Clustering

    Default value: false

    Whether or not to actually optimize the clustering. If False, the clustering will only be done as-is.

    max_clusters Max Clustersnullable

    The maximum number of clusters returned by our API. This implies that some picks in the provided input may not be clustered.

    custom_stop_condition Custom Stop Conditionnullabledeprecated

    [DEPRECATED] Use capacity.custom_stop_condition instead.

    custom_stop_condition_parameters objectdeprecated

    [DEPRECATED] Use capacity.custom_stop_condition_parameters instead.

    property name* anydeprecated

    Default value: [object Object]

    [DEPRECATED] Use capacity.custom_stop_condition_parameters instead.

    max_orders Max Ordersnullabledeprecated

    [DEPRECATED] Use capacity.max_orders instead.

    max_picks Max Picksnullabledeprecated

    [DEPRECATED] Use capacity.max_picks instead.

    max_volume Max Volumenullabledeprecated

    [DEPRECATED] Use capacity.max_volume instead.

    max_weight Max Weightnullabledeprecated

    [DEPRECATED] Use capacity.max_weight instead.

    extra objectnullable

    Extra pass-through data. This is not used by the algorithm, but will be passed to the output.

    timestamp date-time

    The timestamp of the request.

    picks object[]required

    Possible values: >= 1

    A list of picks that need to be clustered.

  • Array [
  • pick_id Pick Idrequired

    ID to unique identify this pick

    location_id string[]required

    The location(s) of the pick in the warehouse.

    asis_sequence Asis Sequencenullable

    The sequence number of the pick in the as-is route.Required for calculating as-is distances.

    priority Prioritynullable

    [DEPRECATED]

    sequence_priority Sequence Prioritynullable

    Lower values (higher priority) will be picked earlier in an optimized pick route.

    sku_id Sku Idnullable

    The id of the SKU on the location.

    quantity Quantitynullable

    The quantity of the SKU to pick from the location.

    order_id Order Idrequired

    For clustering, the order id of the pick.

    hu_id Hu Idnullable

    The handling unit id of the pick.

    hu_type Hu Typenullable

    The handling unit type of the pick.

    location_id_processed arraynullable
    order_priority Order Prioritynullable

    Priority of this picks order. Orders will never be clustered with orders of a lower priority.

    release_time Release Timenullable

    Time at which the pick/order was created.

    due_time Due Timenullable

    Time at which the pick/order needs to be picked.

    wave_id Wave Idnullable

    For clustering, the wave id the pick belongs to.

    list_id List Idnullable

    For clustering, the as-is list/cluster the pick belongs to.Required for calculating as-is clusters.

    optim_sequence Optim Sequencenullable

    The sequence of the pick in the optimized cluster using the routing policy defined in the cluster parameters. (Only used in the optimized cluster output).

    sku_width Sku Widthnullable

    For clustering, The width of the SKU.

    sku_height Sku Heightnullable

    For clustering, The height of the SKU.

    sku_depth Sku Depthnullable

    For clustering, The depth of the SKU.

    sku_weight Sku Weightnullable

    For clustering, The weight of the SKU.

  • ]
  • handling_units arraynullable

    A list containing information for every Handling Unit Type

Responses

Successful Response

Schema
    type Type

    Default value: CLUSTER

    site_name Site Namenullable

    The site name of the site.

    wave_id Wave Idnullable

    The id of the wave.

    request_id Request Idnullable

    The ObjectId of the corresponding request.

    timestamp date-time

    The timestamp of the response.

    computation_time Computation Time

    Time our algorithm spent calculating.

    error Errornullable

    An error message, if an error occurred.

    invalid_picks object[]

    Invalid picks that were not included in the output route, because they were not valid.

  • Array [
  • pick_id Pick Idrequired

    ID to unique identify this pick

    location_id string[]required

    The location(s) of the pick in the warehouse.

    asis_sequence Asis Sequencenullable

    The sequence number of the pick in the as-is route.Required for calculating as-is distances.

    priority Prioritynullable

    [DEPRECATED]

    sequence_priority Sequence Prioritynullable

    Lower values (higher priority) will be picked earlier in an optimized pick route.

    sku_id Sku Idnullable

    The id of the SKU on the location.

    quantity Quantitynullable

    The quantity of the SKU to pick from the location.

    order_id Order Idnullable

    The order id of the pick.

    hu_id Hu Idnullable

    The handling unit id of the pick.

    hu_type Hu Typenullable

    The handling unit type of the pick.

    location_id_processed arraynullable
    reason InvalidPickReason

    Possible values: [Location not found, No matching regex, Order contains invalid pick]

    The reason why the pick is invalid.

  • ]
  • unit Unitnullable

    Default value: cm

    The unit of the distance values

    extra objectnullable

    Data passed through from the input.

    asis_respected Asis Respected

    Default value: true

    Whether the as-is clusters respect the provided stop conditions.

    optimal_clusters object[]

    The optimal clusters.

  • Array [
  • list_id List Idrequired

    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.

  • Array [
  • pick_id Pick Idrequired

    ID to unique identify this pick

    location_id string[]required

    The location(s) of the pick in the warehouse.

    asis_sequence Asis Sequencenullable

    The sequence number of the pick in the as-is route.Required for calculating as-is distances.

    priority Prioritynullable

    [DEPRECATED]

    sequence_priority Sequence Prioritynullable

    Lower values (higher priority) will be picked earlier in an optimized pick route.

    sku_id Sku Idnullable

    The id of the SKU on the location.

    quantity Quantitynullable

    The quantity of the SKU to pick from the location.

    order_id Order Idrequired

    For clustering, the order id of the pick.

    hu_id Hu Idnullable

    The handling unit id of the pick.

    hu_type Hu Typenullable

    The handling unit type of the pick.

    location_id_processed arraynullable
    order_priority Order Prioritynullable

    Priority of this picks order. Orders will never be clustered with orders of a lower priority.

    release_time Release Timenullable

    Time at which the pick/order was created.

    due_time Due Timenullable

    Time at which the pick/order needs to be picked.

    wave_id Wave Idnullable

    For clustering, the wave id the pick belongs to.

    list_id List Idnullable

    For clustering, the as-is list/cluster the pick belongs to.Required for calculating as-is clusters.

    optim_sequence Optim Sequencenullable

    The sequence of the pick in the optimized cluster using the routing policy defined in the cluster parameters. (Only used in the optimized cluster output).

    sku_width Sku Widthnullable

    For clustering, The width of the SKU.

    sku_height Sku Heightnullable

    For clustering, The height of the SKU.

    sku_depth Sku Depthnullable

    For clustering, The depth of the SKU.

    sku_weight Sku Weightnullable

    For clustering, The weight of the SKU.

  • ]
  • order_ids string[]

    Default value: ``

    All the order_ids of the picks in the cluster.

    distance Distance

    The estimated distance of the cluster.

    duration Durationnullable

    The estimated pick duration of the cluster.

  • ]
  • optimal_distance Optimal Distance

    Distance in the asis scenario

    asis_distance Asis Distance

    Distance in the asis scenario

    optimal_duration Optimal Durationnullable

    Distance in the asis scenario

    asis_duration Asis Durationnullable

    Distance in the asis scenario

    schedule objectnullable

    The scheduled assignments of the clusters to workers.

    schedule_start_time Schedule Start Timenullable

    Default value: 9999-12-31T23:59:59.999999

    The start time of the schedule.

    assignments object[]

    The assignments of the clusters to workers.

  • Array [
  • list_id List Idrequired

    The list_id of the cluster.

    worker_idx Worker Idxrequired

    The idx of the worker assigned to the list.

    start_time date-timerequired

    The scheduled start time of the list.

    finish_time date-timerequired

    The scheduled end time of the list. (start_time + duration)

    release_time_max Release Time Maxnullable

    The maximum release time of all orders in the list.

    due_time_min Due Time Minnullable

    The minimum due time of all orders in the list.

    n_late_orders N Late Ordersrequired

    The number of late orders in the list.

    tardiness Tardinessrequired

    The total tardiness of all orders in the list.

  • ]
  • n_late_orders N Late Ordersrequired
    total_tardiness Total Tardinessrequired
    n_orders N Ordersrequired
Loading...