TL;DR
This paper introduces a "space-indexed" integer programming formulation for packing 3D boxes into a larger container. By discretizing the container's volume and using binary variables to track box placement, the authors achieve a much tighter linear programming relaxation than traditional models, allowing them to solve instances with millions of boxes that previously stumped state-of-the-art solvers at just 12 boxes.
What Problem Does This Paper Address?
The authors tackle the Container Loading Problem (CLP) and the Van Loading Problem (VLP). In these multi-dimensional packing problems, the goal is to fit a set of smaller boxes into a larger container to maximize total value (CLP) or maximize value while staying under a weight limit (VLP).
The core challenge isn't just finding a packing, but proving that a packing is optimal or that a certain number of boxes cannot fit. The standard mathematical model, known as the Chen/Padberg formulation, uses "relative placement" indicators (e.g., "is box A to the left of box B?"). While elegant, this approach has a very weak linear programming (LP) relaxation. In practice, this means even powerful solvers like Gurobi or CPLEX can spend an hour failing to prove that 12 unit cubes won't fit into a 1x1x11 box—a classic "Pigeon Hole Principle" problem.
Methods
The authors propose a Space-Indexed Formulation. Instead of focusing on the relative positions of boxes, they discretize the container's interior into a grid.
- Discretization: The grid units are determined by the greatest common divisor (GCD) of the box dimensions.
- Binary Variables: They define a variable $\mu^t_{x,y,z}$ that equals 1 if a box of type $t$ is placed with its corner at coordinates $(x, y, z)$, and 0 otherwise.
- Adaptive Discretization: To prevent the number of variables from exploding, they use dynamic programming to identify only the valid coordinates where a box could actually start, significantly pruning the search space.
- Constraints: The model enforces that no two boxes overlap in any grid unit, all boxes stay within the container boundaries, and the number of boxes used doesn't exceed the available supply.
While this results in a "pseudo-polynomial" number of variables (potentially millions), the resulting LP relaxation is much "tighter," meaning the solver's initial guess is much closer to the true integer solution.
Datasets
The researchers evaluated their model using three distinct sets of problems:
- 3D Pigeon Hole Problem: A benchmark where $n+1$ unit cubes are attempted to be packed into a container that can only hold $n$.
- SA and SAX Datasets: Pseudo-randomly generated instances with varying container sizes (5 to 100 units) and box counts. The SA set is guaranteed to be 100% packable, while SAX is not.
- Van-Loading Instances: Realistic scenarios mimicking commercial freight, featuring containers of 10x10x30 and 10x10x50 units with boxes assigned random weights and values.
Key Insights and Ideas
- Model Size vs. Model Strength: A smaller model (fewer variables) isn't always better. The Chen/Padberg model is compact but "weak." The space-indexed model is massive but "strong." Modern solvers are surprisingly good at handling millions of variables if the underlying mathematical structure is rigid.
- The Power of Discretization: By moving from relative coordinates to a fixed grid, the integrality gap (the distance between the easy-to-solve LP version and the hard-to-solve integer version) dropped from roughly 10.5% to 0.37%.
- Symmetry Breaking: The adaptive discretization naturally breaks many symmetries that usually plague packing problems, as it limits boxes to a specific set of "canonical" starting positions.
Key Results
The performance difference is staggering, particularly on the Pigeon Hole benchmark. As shown in the comparison between formulations:
While the old formulation choked on 12 boxes, the new space-indexed approach allowed Gurobi to solve an instance with 10,000,000 boxes in about 11 minutes.
On the Van-loading instances, the space-indexed model achieved a mean gap of only 1.5% after one hour of computation, proving its utility for practical logistics.
Limitations and Future Work
The primary limitation is memory. Because the number of variables depends on the container's volume and the granularity of the boxes, extremely large containers with very small boxes could lead to models that exceed a computer's RAM.
The authors suggest several paths forward:
- Column Generation: Instead of creating all millions of variables upfront, only create the ones that are likely to be part of the optimal solution.
- Matrix-free Methods: Developing specialized solvers that can handle the structure of these packing constraints without storing the entire massive matrix in memory.
- Automated Reformulation: Creating tools that can automatically detect when a problem would benefit from this type of space-indexing.
Summary updated