pack_containers
Pack a list of cargo SKUs into one or more shipping containers using the Kubova solver. Supports bulk loading (cartons straight into the container) and pallet loading (loadingMode:"pallet" + a pallet — cartons are stacked onto pallets first, then the pallets loaded). Per-SKU you can set allowed orientations, no-overstack/no-understack, and loading order. Returns per-container placements with x,y,z coordinates in cm, volume utilization, weight, a weightBalance object (centre of gravity + front/back & left/right weight split, flags an unbalanced load) for bulk loads, and any unplaced pieces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cargos | Yes | ||
| pallet | No | The pallet to stack onto. Required when loadingMode is "pallet". | |
| options | No | ||
| container | No | ||
| containers | No | ||
| loadingMode | No | 'bulk' (default) loads cartons straight into the container. 'pallet' first stacks cartons onto pallets, then loads the pallets — requires the `pallet` field. |