Search for content

Sequencing Constraint

Loading Space Optimization provides a feature to handle the order in which the items should be loaded/unloaded from the bin.

Unloading sequence

Please note that this feature can only be used if one bin is defined.

The option 'unloadingSequence' can be used to define in which order the items should be unloaded.
This is typically a use case for routing problem, where a truck travels from customer to customer to serve some goods.

In the unloading sequence, each stop contains the type and the number of items to unload.
As a result, during the optimization process, the items to be unloaded first are packed at the end. The articles to be unloaded at the end are packed first.

Note that, by default, items of a stop will not be stacked on top of items of the subsequent stop. This may be useful when unloading all items of a stop with a hand truck. To change this behavior specify 'stackOnTopOfNextStops' in the stackingOptions.

{
    "options": {
        "unloadingSequence": [
            {
                "itemsToUnload": [
                    {
                        "itemId": "1",
                        "numberOfInstances": 4
                    },
                    {
                        "itemId": "3",
                        "numberOfInstances": 3
                    }
                ]
            },
            {
                "itemsToUnload": [
                    {
                        "itemId": "2",
                        "numberOfInstances": 6
                    }
                ]
            },
            {
                "itemsToUnload": [
                    {
                        "itemId": "1",
                        "numberOfInstances": 2
                    },
                    {
                        "itemId": "3",
                        "numberOfInstances": 3
                    }
                ]
            }
        ],
        "stackingOptions": {}
    }
}