Abstract
The Two-dimensional Strip Packing Problem (2SPP) is a fundamental optimization challenge in logistics and manufacturing. This paper presents a novel exact method that transforms 2SPP into a sequence of Boolean Satisfiability (SAT) problems. By employing "order encoding" to represent integer coordinates and utilizing incremental solving techniques, the proposed approach efficiently explores the solution space. Experimental results on 38 classic benchmark instances demonstrate the method's effectiveness, successfully solving 29 instances and closing two long-standing open problems.
Introduction
The Two-dimensional Strip Packing Problem (2SPP) involves packing a set of rectangles into a strip of fixed width and infinite height such that no rectangles overlap and the total height is minimized. Given its NP-hard nature, 2SPP has traditionally been approached via exact methods that struggle with scale or heuristic methods that lack optimality proofs. Recent advancements in SAT solver technology offer a new avenue for exact solving by translating geometric constraints into logical formulas.
Problem Definition
In 2SPP, we are given a set of $n$ rectangles $R = \{r_1, r_2, \dots, r_n\}$, where each rectangle $r_i$ has a width $w_i$ and height $h_i$. The goal is to find coordinates $(x_i, y_i)$ for each rectangle within a strip of width $W$ such that they do not overlap and the maximum height $H = \max(y_i + h_i)$ is minimized.
The problem is typically solved as a sequence of decision problems: "Can the rectangles be packed within height $H$?" This sub-problem is known as the Two-dimensional Orthogonal Packing Problem (2OPP).
Methodology: SAT Encoding and Incremental Solving
The core of the proposed method lies in how geometric constraints are mapped to Boolean logic.
Order Encoding
To represent the integer coordinates $(x_i, y_i)$ in a SAT formula, the authors utilize order encoding. Unlike direct encoding, which assigns a variable to every possible coordinate value, order encoding uses Boolean variables to represent inequalities like $x_i \le a$. This representation is particularly efficient for SAT solvers as it naturally captures the transitivity of spatial relationships, allowing the solver to prune large "conflict regions" rather than individual points.
Incremental Solving Strategies
Solving a fresh SAT instance for every candidate height $H$ is computationally expensive. To mitigate this, the authors implement three incremental strategies:
- Learning Clauses: Clauses learned by the solver during a search for height $H$ (proving it unsatisfiable) are retained when checking height $H-1$.
- Assumptions: Height constraints are passed as "assumptions," allowing the solver to toggle constraints without re-initializing the entire formula.
- Model Reuse: A satisfying assignment (a valid packing) found for height $H$ serves as a starting point or "hint" for the search at height $H-1$.
Search Space Reduction
To further enhance performance, the method incorporates symmetry-breaking constraints and domain reduction. Symmetry in 2SPP arises from the ability to flip or rotate the entire packing layout. By fixing the position of the largest rectangle or imposing relative ordering, the solver avoids redundant computations.
As shown in the figure above, techniques like point symmetry and reflective symmetry (horizontal and vertical) help the solver focus on unique configurations. Additionally, the encoding explicitly handles horizontal and vertical overlaps to ensure validity.
Experimental Results
The method was evaluated against 38 standard benchmark instances from the literature. The SAT-based approach demonstrated remarkable robustness:
- Optimal Solutions: The method found optimal solutions for 29 out of 38 instances.
- Closing Open Problems: Notably, it provided the first optimal solutions for the HT08 and NGCUT09 instances, which had remained unsolved for years.
- Efficiency: The combination of order encoding and incremental solving allowed the exact method to remain competitive with state-of-the-art heuristics while providing a mathematical guarantee of optimality.
Conclusion
This research highlights the power of modern SAT solvers in tackling complex geometric optimization problems. By reframing 2SPP as a logical puzzle and leveraging order encoding with incremental solving, the authors have pushed the boundaries of exact methods in strip packing. Future work may explore the inclusion of rectangle rotation and hybridizing this exact approach with heuristics for even larger industrial datasets.
Summary updated