Abstract
In e-commerce logistics, packing efficiency is a critical driver of operational costs. While traditional research focuses on the 3D Bin Packing Problem (3DBPP) for fixed container sizes, this paper introduces the Bin Design Problem (BDP), which seeks to optimize the dimensions of the containers themselves. We present a high-performance algorithm, Dynamic Programming and Depth-first Tree Search (DPTS), designed to analyze historical order data and determine an optimal set of $K$ bin types. Experimental results on real-world datasets from Alibaba’s Cainiao network demonstrate that DPTS reduces packing costs by 12.8% compared to human experts, offering potential annual savings of $20 million.
Introduction
Logistics packing is a multi-million dollar expense where even minor inefficiencies scale into massive waste. Traditionally, the focus has been on the 3D Bin Packing Problem: given items and fixed boxes, how do we fit them? However, this ignores the strategic "Bin Design Problem"—determining the optimal box sizes to manufacture in the first place. Boxes that are too large waste material and shipping volume, while boxes that are too small force orders to be split, increasing management overhead. This paper addresses the BDP by optimizing bin dimensions based on historical order distributions, using total surface area as a proxy for cost.
Methodology
The proposed DPTS algorithm decomposes the BDP into two distinct stages: Marginal Bin Search and Optimal Combination.
- Marginal Bin Search (Tree Search): For each unique customer order, the algorithm identifies the "marginal bin"—the smallest possible dimensions $(l, w, h)$ required to contain all items in that order. This is achieved through a depth-first tree search that explores item orientations and placements. To maintain computational efficiency, the search utilizes pruning techniques and a "Corners Dictionary" to identify valid placement points rapidly.
- Optimal Combination (Dynamic Programming): Once marginal bins are identified for all orders, the problem shifts to selecting exactly $K$ bin types to minimize the total surface area across the entire dataset. This stage is modeled as a shortest-path problem on a graph and solved using Dynamic Programming. The algorithm assumes a nested bin structure (monotonicity), where each bin size fits within the next, simplifying warehouse storage and handling.
To handle the massive search space, the authors employ "Divide and Conquer" and "Convex Hull" optimizations, significantly reducing the computational complexity of the DP stage from $O(L^2 W^2 H^2)$ to $O(LWH \log L \log W \log H)$.
Datasets and Experimental Setup
The study utilizes real-world historical order data from Cainiao, Alibaba's logistics arm. Experiments were conducted on scales ranging from 200,000 to 1,000,000 orders. The data reflects typical e-commerce patterns, characterized by a high volume of small-to-medium-sized orders.
Results and Discussion
The DPTS algorithm was evaluated against human purchasing experts and a Greedy Local Search (GLS) baseline:
- Cost Efficiency: DPTS achieved a 12.8% reduction in total surface area compared to human-designed plans and a 5.8% improvement over GLS.
- Computational Speed: DPTS proved to be approximately 50 times faster than the GLS approach, making it suitable for dynamic logistics environments where order patterns shift seasonally.
- Economic Impact: Financial analysis suggests the algorithm can save approximately $20 million per year in packing costs for the studied logistics scenario.
Conclusion
By shifting from operational packing to strategic bin design, the DPTS algorithm provides a significant leap in logistics efficiency. While current limitations include the computational cost for extremely large orders and the simplified cuboid representation of items, the algorithm demonstrates substantial economic value. Future work will explore fitness functions for tree search prioritization and the inclusion of physical constraints like item fragility and weight distribution.
Summary updated