Introduction
The 2D Hierarchical Rectangle Packing (2DHRP) problem represents a significant evolution of the classic rectangle packing optimization puzzle. While traditional packing focuses on a "flat" scenario—arranging a set of shapes within a single container—real-world applications often involve nested structures. In industries such as analog integrated circuit (IC) design, facility layout, and logistics, items to be packed are frequently containers themselves, housing further sub-components.
This paper formalizes the 2DHRP problem and introduces a novel Multi-Level Recursive Logic-based Benders Decomposition (LBBD) method. This approach addresses the inherent complexity of hierarchical structures where the dimensions of internal "boxes" (sub-blocks) are not fixed but depend on their own internal layouts.
The Challenge of Hierarchical Complexity
In a hierarchical context, the search space expands exponentially with each added level. For example, in IC design, transistors are packed into modules, modules into processors, and processors onto a chip. A traditional solver attempting to optimize the entire hierarchy simultaneously (a monolithic approach) quickly becomes overwhelmed.
The primary difficulty lies in the interdependence of dimensions. A parent block's optimal layout depends on the dimensions of its child blocks, but the child blocks' dimensions are constrained by their own internal components. Traditional "bottom-up" strategies often fail because they generate fixed variants for child blocks without knowing the spatial requirements of the parent, leading to significant inefficiencies and wasted space.
Methodology: Recursive Logic-based Benders Decomposition
The authors evaluated several modeling strategies, starting with monolithic Mixed-Integer Linear Programming (MILP) and Constraint Programming (CP) models. As expected, these models failed to scale beyond simple, shallow hierarchies.
To overcome these limitations, the researchers developed a Multi-Level Recursive LBBD framework. This method treats the relationship between levels as a Master-Subproblem interaction:
- Master Problem (Parent): The parent block plans a target dimension for a child block based on an area estimate.
- Subproblem (Child): The child block attempts to pack its internal components within the proposed dimensions.
- Feedback Loop (The "Cut"): If the child block cannot satisfy the parent's request, it returns a "Benders cut"—a logical constraint informing the parent that the specific width/height combination is infeasible.
- Recursion: This process repeats across all levels of the hierarchy, dynamically refining the boundaries of feasible dimensions.
To ensure practical performance on large-scale instances, the authors integrated heuristic fine-tuning. This allows the solver to identify high-quality solutions within a reasonable time limit, even when a formal proof of optimality is computationally out of reach.
Experimental Framework and Datasets
Due to the lack of existing benchmarks for hierarchical packing, the authors introduced a new suite of synthetic datasets (L1 through L7). These instances are modeled after analog IC layouts:
- Depth: Hierarchies range from 1 level (flat) to 7 levels deep.
- Scale: The most complex instances include up to 80 items per block and over 400 total objects.
- Flexibility: Rectangles are assigned up to five aspect ratio variants to simulate the flexible nature of component design.
Key Insights
The research yielded several critical insights into the nature of hierarchical optimization:
- The "Stairs" of Feasibility: The solution space of a sub-block can be visualized as a "staircase" boundary on a width-vs-height plot. Benders cuts effectively map this boundary, allowing the parent to "negotiate" with the child block without needing full visibility into the child's internal complexity.
- CP for Local Optimization: Constraint Programming, specifically utilizing interval variables and cumulative constraints, proved significantly more effective than MILP for solving individual block layouts.
- Dynamic Negotiation: Unlike the "blind" bottom-up approach, the recursive LBBD method avoids the exhaustive search of useless sub-block shapes by focusing only on dimensions requested by the parent.
Results and Performance
The proposed LBBD method demonstrated superior performance across several metrics:
- Scalability: While monolithic models were restricted to 2 levels, the recursive LBBD successfully managed 7-level hierarchies.
- Solution Quality: The "Radical" version of the heuristic (LBBDR) consistently achieved smaller total areas and half-perimeters. In complex multi-level cases, it improved solution quality by several percentage points over baseline methods.
- Consistency: The gap between the found solution and the theoretical lower bound remained much tighter in the LBBD approach compared to traditional bottom-up methods.
Conclusion
The Multi-Level Recursive LBBD framework provides a robust solution for the 2DHRP problem, offering a scalable alternative to monolithic and static decomposition methods. While highly effective for 2D rectangular packing, future research directions include extending the model to 3D packing for logistics, accounting for interconnect routing in IC design, and handling non-rectangular geometries in facility layouts.
Reference: Grus, J., et al. (2025). Hierarchical Rectangle Packing Solved by Multi-Level Recursive Logic-based Benders Decomposition. arXiv:2512.20239v1 [cs.CG].
Summary updated