In industrial manufacturing processes such as glass cutting, timber milling, and sheet metal fabrication, optimizing material usage is a critical operational requirement. The Guillotine Rectangular Cutting Problem (RCP) is a fundamental optimization challenge in this domain. It involves selecting a subset of smaller rectangular items from a large stock plate to maximize total profit, with the constraint that every cut must be a "guillotine cut"—a straight line extending from one edge of the plate to the opposite edge.
Despite its simple definition, the RCP is NP-hard. Traditional approaches often rely on Mixed-Integer Linear Programming (MILP), which can struggle with the immense search space and inherent symmetries of the problem. In a new paper presented at ICAPS 2023, Sergey Polyakovskiy and Peter J. Stuckey introduce a novel Constraint Programming (CP) model that leverages recursive region-assignment and scheduling relaxations to significantly outperform existing state-of-the-art solvers.
The Challenge: Symmetry and Complexity
The primary difficulty in solving the RCP optimally lies in solution symmetry. There are often countless ways to arrange the same set of items that yield identical profit. MILP solvers frequently waste computational resources exploring these redundant branches of the search tree. Furthermore, proving optimality for instances with more than a few dozen items is often computationally prohibitive.
A Novel Recursive Region Model
The authors' core innovation is a shift in perspective: instead of determining absolute $(x, y)$ coordinates for each item, they model the plate as a "parent region" that is recursively subdivided.
The model utilizes two primary splitting mechanisms:
- $α$-pattern: A horizontal cut is made first, splitting the region into a bottom "core" and a top sub-region.
- β-pattern: A vertical cut is made first, splitting the region into a left "core" and a right sub-region.
This process continues recursively until the resulting sub-regions match the dimensions of the items to be placed. By structuring the problem as a binary tree of regions, the guillotine constraint is inherently satisfied by the model's architecture, eliminating the need for complex "no-overlap" constraints.
Cumulative Scheduling Relaxation
A key technical contribution of the paper is the "cumulative scheduling relaxation." The authors observed that 2D packing can be viewed as two simultaneous 1D scheduling problems. By treating the width of the plate as "time" and the height as a "resource," they applied cumulative constraints common in scheduling.
If a set of items cannot be "scheduled" within the plate's dimensions in 1D, the CP solver can immediately prune that branch of the search tree. This relaxation allows the solver to "fail early," avoiding the need to compute complex 2D geometries for infeasible sets of items. This technique alone made the model approximately twice as fast on average.
Performance and Results
The CP model, implemented using Google’s OR-Tools CP-SAT solver, was evaluated against standard benchmarks (e.g., gcut, cu, CW, okp). The results demonstrated a significant advantage over MILP models:
- Efficiency: On
gcutbenchmarks, the CP model found and proved optimal solutions in an average of 2 seconds, compared to 52 seconds for the leading MILP approach. - Robustness: The CP model successfully solved several instances that had remained "unsolvable" by all previous MILP models within standard time limits.
- Symmetry Breaking: The inclusion of specific constraints to prevent the exploration of mirrored or rotated layouts further enhanced search efficiency.
Conclusion and Future Directions
The proposed CP model represents a significant step forward in solving the Guillotine Rectangular Cutting Problem. By combining a recursive structural model with powerful scheduling relaxations, the authors have created a solver that is both faster and more robust than traditional mathematical programming methods.
While the model excels at logical pruning, future work may address its performance on objective functions involving simple sums (like total profit), where MILP still maintains some advantages. Additionally, the authors suggest that this recursive logic could be extended to the Bin Packing Problem, where items are distributed across multiple stock plates.
Summary updated