Abstract
The 3D bin packing problem (3DBP) is a critical challenge in logistics, aimed at maximizing packing efficiency under complex industrial constraints. Traditional exact solvers often struggle with the computational load of real-world scenarios. This paper presents a novel approach that reformulates 3DBP as a set cover problem using historical packing data. By integrating a "Learning to Price" strategy via a Modified Pointer Network (MPN) into the Column Generation (CG) framework, we significantly reduce computation time while maintaining high packing success rates.
Introduction
In the manufacturing sector, such as at Huawei, the 3D Bin Packing Problem involves fitting diverse items into containers while adhering to physical constraints (volume, weight) and intricate customer requirements (e.g., specific item ratios). These constraints are often difficult to model explicitly, making traditional heuristics and exact algorithms like Branch and Bound either ineffective or too slow for large-scale operations processing millions of orders monthly.
Methodology
The proposed framework leverages historical data to bypass explicit constraint modeling and accelerate optimization through three key components:
1. Set Cover Reformulation and Data-Driven CG
The problem is modeled as a Set Cover problem where "columns" represent valid packing patterns. Instead of generating these patterns from scratch, the algorithm draws from a library of successful historical packing records. This ensures that all complex, real-world constraints are implicitly satisfied because the patterns were previously validated in production.
2. Constraint Handling Strategy
During the Column Generation process, the "Pricing Problem" identifies new patterns to improve the solution. By calculating the "reduced cost" of historical patterns, the system identifies and adds those with negative values. This avoids the need to solve a difficult 3DBP sub-problem for every iteration.
3. Modified Pointer Network (MPN)
To further eliminate the iterative bottleneck of CG, the authors introduced a "Learning to Price" model. The MPN uses a Set2Set (Read-Process-Write) architecture, which is invariant to the order of input boxes. Trained via Reinforcement Learning (Self-Critic), the MPN predicts the optimal historical patterns for a packing plan in a single pass, effectively collapsing the iterative loop of traditional CG.
Key Results
The model was evaluated using real-world logistics data from Huawei, comprising thousands of orders with an average of 5.6 item types and 54 total items per order.
Packing Success Rate
The data-driven approach significantly outperformed traditional heuristics. In evaluation sets, the packing success rate jumped from 12.1% (using a "Fuzzy Matching" heuristic) to 21.7%. The model also demonstrated strong generalization, performing consistently on data from months outside its training window.
Computational Efficiency
The MPN-accelerated framework demonstrated a substantial reduction in solving time compared to standard Column Generation. As shown in the performance metrics, the MPN approach consistently maintains lower average computation times as the complexity (K) increases.
In practical terms, solving times for specific batches dropped from approximately 71 seconds to 45 seconds, representing a 30-40% efficiency gain.
Conclusion
By treating historical packing records as a repository of valid constraints, this hybrid framework successfully bridges the gap between data-driven learning and mathematical optimization. While the MPN may show slight sub-optimality at very large scales (over 350 candidate patterns), its ability to generalize and drastically reduce computation time makes it a robust solution for high-volume industrial logistics. Future work will focus on refining the neural network to further close the optimality gap and handle even larger-scale orders.
Summary updated