ABSTRACT
The NP-hard Two-Dimensional Strip Packing Problem (2SPP) demands efficient exact solutions. This paper presents SAT-based Order Encoding models incorporating item rotation and adapted symmetry-breaking (SB). It compares three height-minimization strategies: Non-Incremental SAT Bisection, Incremental SAT Bisection, and Direct MaxSAT Optimization. Benchmarks on established 2SPP instances show our Non-Incremental SAT and Direct MaxSAT strategies significantly outperform earlier incremental techniques. Direct MaxSAT excelled for non-rotational 2SPP, while Non-Incremental SAT was superior for rotational cases among our methods. Google CP-SAT, integrated into our Non-Incremental Bisection search framework, performed best overall. Nevertheless, our specialized SAT/MaxSAT methods were highly competitive, outperforming other CP and MIP solvers. SB was generally beneficial. Item rotation increased encoding complexity; while yielding improved optimal heights for some instances, it did not increase the total number of instances solved optimally by our SAT/MaxSAT methods. This work offers insights into SAT/MaxSAT strategy trade-offs and their performance against general solvers.
Keywords:
Two-Dimensional Strip Packing; SAT Encoding; MaxSAT Optimization
1 INTRODUCTION
The Two-Dimensional Strip Packing Problem (2SPP) addresses the optimal orthogonal placement of n rectangular items, R = {r 1 , . . . , r n }, each with width w i and height h i , onto a strip of fixed width W and effectively unbounded height (Lodi et al. (2002); Dyckhoff (1990)). The primary objective is to minimize the total height H required to accommodate all items without overlap, ensuring item edges are parallel to the strip’s axes. In its standard variant, items maintain a fixed orientation (Lodi et al. (2002)), posing a core challenge in resource allocation under geometric constraints.
The 2SPP is motivated by significant economic and logistical factors across numerous sectors. Direct applications lie in material cutting industries, where minimizing utilized material length translates to reduced waste and cost savings (Gilmore & Gomory (1961); Wäscher et al. (2007)). Logistics and transportation utilize 2SPP models for efficient container or truck loading (Bischoff & Ratcliff (1995); Lodi et al. (1999)), while related concepts appear in Very Large-Scale Integration (VLSI) floorplanning demanding optimal component placement (Sait & Youssef (1999); Lodi et al. (2002)). The common goal is optimizing the use of a constrained two-dimensional resource.
Despite its precise definition, obtaining provably optimal 2SPP solutions presents significant computational challenges. The problem is strongly NP-hard (Garey & Johnson (1979); Lodi et al. (2002)), linked to other difficult packing problems like Bin Packing (Martello et al. (2003)). This complexity implies that finding the minimum height H opt likely requires exponential resources relative to the number of items n, stemming from the vast combinatorial search space and intricate geometric constraints. Consequently, traditional exact methods like branch-and-bound (Martello et al. (2003); Boschetti & Montaletti (2010)) or integer programming (Lodi et al. (2002)) often face scalability limitations, are often challenged by industrially relevant instance sizes (Martello et al. (2003)). While heuristics offer fast approximations (Lodi et al. (1999); Burke et al. (2004)), the difficulty in efficiently guaranteeing optimality motivates exploring alternative exact paradigms, such as the SAT-based methods investigated herein.
Addressing these challenges, this paper clarifies and extends the state-of-the-art in SAT-based 2SPP solving. While building upon the foundational Order Encoding of Soh et al. (2010), our work provides several distinct contributions:
-
While the foundational work of Soh et al. (2010) employed an Incremental Bisection strategy, we introduce and conduct the first systematic empirical comparison of this approach against two alternative strategies: Non-Incremental Bisection and Direct MaxSAT Optimization.
-
We extend the Order Encoding framework to effectively handle 90-degree item rotations, a non-trivial problem variant not addressed by Soh et al. (2010). This includes designing new, adapted symmetry-breaking constraints essential for managing the increased combinatorial complexity introduced by rotation.
-
We situate the performance of these specialized logic-based methods within the current landscape of general-purpose optimization by benchmarking against leading solvers like Google OR-Tools CP-SAT. This provides a clear, contemporary perspective on the competitiveness of SAT/MaxSAT for 2SPP, offering practical insights that go beyond a simple comparison of configurations.
For Constraint Programming (CP) solvers, we integrated them into our Non-Incremental Bisection search framework to solve sequences of decision problems, while Mixed-Integer Programming (MIP) models were used for direct optimization.
Our experimental evaluation substantiates these contributions, demonstrating the practical advantages of the proposed Non-Incremental SAT Bisection and Direct MaxSAT optimization strategies over earlier incremental techniques. The findings confirm the utility of the adapted symmetry-breaking constraints, particularly in the rotational context. Furthermore, the benchmarking provides a clear perspective on the competitiveness of these specialized SAT/MaxSAT methods against state-of-the-art general-purpose CP (used with Non-Incremental Bisection) and MIP solvers for the 2SPP, highlighting scenarios where logical approaches excel. The impact of item rotation on solution quality versus computational cost is also empirically assessed. Overall, this research offers valuable insights into effective SAT/MaxSAT-based solution design for 2SPP.
The remainder of this paper is organized as follows. Section 2 reviews relevant prior work on 2SPP solution methods and SAT/MaxSAT techniques. Section 3 presents our SAT-based methodology for the rotational 2SPP, covering the core encoding and our symmetry-breaking adaptations. Section 4 describes the different height minimization strategies investigated. Section 5 presents the experimental setup, detailed results, and comparative analysis. Finally, Section 6 concludes the paper and suggests directions for future research.
2 RELATED WORK
The 2SPP has attracted extensive research, leading to a variety of heuristic and exact solution methods. Heuristic approaches, aiming for rapid, high-quality solutions without optimality guarantees, include foundational work by Lodi et al. (1999) and Burke et al. (2004), with the latter also advancing guillotine-constrained strip packing. Recent developments feature the BlockBased Heuristic Search algorithm (BBHSA) by Zhang et al. (2024) for guillotine-constrained 2SPP and a Backtracking Heuristic algorithm (BHA) for its rotational, non-guillotine counterpart (Li et al. (2025)). Deterministic heuristics have also shown promise for rotational 2SPP (Alvarez-Valdés et al. (2008)), and Hopper & Turton (2001) provided a key review of meta-heuristics for 2D strip packing.
Exact methods, while guaranteeing optimality, often incur higher computational costs. Traditional techniques include branch-and-bound, with seminal work by Martello et al. (2003) later refined by Boschetti & Montaletti (2010). Integer Programming (IP) formulations, introduced by Lodi et al. (2002), have been extended to robust models for uncertain 2SPP variants (Liu et al. (2023)). Constraint Programming (CP) has also proven effective, with various implementations exploring diverse constraint models and search strategies (Berger et al. (2009)).
SAT offers a powerful paradigm for exact combinatorial problem-solving (Biere et al. (2009)), where Order Encoding (Tamura et al. (2009)) is particularly appropriate for representing geometric packing constraints. Soh et al. (2010) pioneered Order Encoding for fixed-orientation 2SPP, establishing a foundational feasibility model Φ(H) and introducing basic symmetry breaking. MaxSAT, an extension of SAT, seeks to satisfy all hard clauses while maximizing the weight of satisfied soft clauses (Li & Manyà (2009); Ansótegui et al. (2009)), making it suitable for optimization tasks like height minimization in 2SPP. Modern MaxSAT solvers like TT-Open-WBO-Inc (Nadel (2024)) facilitate this, and our work explores its direct application.
Optimization via SAT often employs bisection search on the objective (e.g., height H), iteratively solving SAT decision problems. Incremental SAT techniques (Eén & So¨rensson (2003); Audemard & Simon (2009, 2012)) aim to accelerate this by reusing learned clauses, a concept Soh et al. (2010) discussed for 2SPP. This paper offers a contemporary evaluation of incremental SAT against non-incremental and direct MaxSAT methods. Symmetry breaking is vital for pruning the search space (Walsh (2006); Gent & Smith (1999)). While Soh et al. (2010) applied it to fixed-orientation 2SPP, item rotation, a key aspect of many 2SPP variants, necessitates adapted or new techniques, which this work investigates.
The rotational 2SPP, allowing 90-degree item turns, increases problem complexity but can yield better packings. Kenmochi et al. (2009) and Arahori et al. (2012) developed exact algorithms for rotational 2SPP, with the latter using canonical forms. The impact of rotation was further studied by Epstein (2003). Heuristics for rotational 2SPP include fast methods by Ha et al. (2010), reactive GRASP by Alvarez-Valdés et al. (2008), and recent backtracking heuristics by Li et al. (2025). Effective rotation handling involves balancing solution quality and computational cost (Jylänki (2010)). Our research contributes by developing and evaluating SAT/MaxSAT encodings that explicitly manage item rotation.
In essence, while traditional exact methods often struggle with large 2SPP instances, SAT/MaxSAT techniques present viable alternatives. This paper explores advancements in specialized encodings, symmetry breaking, and modern solver utilization to tackle this challenging problem.
3 SAT-BASED METHODOLOGY FOR ROTATIONAL 2SPP
This section presents the detailed SAT-based methodology constructed and evaluated in this research for tackling the rotational variant of the 2SPP. While the foundational principles rely on the well-established Order Encoding paradigm, as applied to the fixed-orientation 2SPP by Soh et al. (2010), significant extensions and adaptations are introduced here to model rectangle rotation and integrate appropriate symmetry-breaking mechanisms. The objective is to systematically develop a robust and efficient SAT formulation, ΦR (H), capable of accurately representing the rotational Two-Dimensional Orthogonal Packing Problem (2OPP) feasibility problem.
3.1 Core variables using Order Encoding
The SAT model maps the 2SPP’s geometric and decision elements onto Boolean variables. We utilize the established Order Encoding (Tamura et al. (2009)) for positional information and introduce a variable for orientation.
-
Position variables: For each rectangle r i and integer thresholds e (0 ≤ e < W ) and f (0 ≤ f < H), Boolean variables (representing x i ≤ e) and (representing y i ≤ f ) encode the bottom-left coordinates (x i , y i ). This encoding facilitates a compact representation of comparison constraints (Tamura et al. (2009)).
-
Relative position variables: Consistent with (Soh et al. (2010)), auxiliary Boolean variables capture pairwise Non-overlap relations between distinct rectangles r i and r j: l i,j (true if r i is left of r j ) and u i,j (true if r i is below r j ). The exact geometric meaning is conditioned on rotation, detailed in constraint formulations (Section 3.2).
-
Rotation variable: To model the rotational variant, we introduce R i for each rectangle r i . R i is true if r i is rotated 90 degrees from its input dimensions, and false otherwise. This explicit variable is key to formulating rotation-dependent constraints.
These variable sets provide the foundation for constructing the SAT formula representing the rotational 2OPP feasibility problem.
3.2 Core constraints for rotational placement
Building upon the variable definitions established in Section 3.1, particularly the Order Encoding variables , relative position variables (l i,j , u i,j ), and the crucial rotation variable (R i ), this section details the formulation of the core constraints for the rotational 2OPP feasibility problem, denoted ΦR (H). These constraints ensure the logical integrity of the coordinate encoding, enforce containment within the strip Boundaries considering potential rotation, and model the fundamental non-overlap requirement between rectangles.
First, the semantic integrity of the Order Encoding is maintained through Axioms clauses enforcing monotonicity. As established in foundational works (Tamura et al. (2009)), these clauses ensure that if x i ≤ e, then x i ≤ e + 1 (and analogously for y i ). These constraints are standard for Order Encoding (Soh et al. (2010)) and are independent of rectangle dimensions or rotation status. For all r i , 0 ≤ e < W − 1, and 0 ≤ f < H − 1:
These clauses provide the essential logical structure guaranteeing that variable assignments correspond coherently to integer coordinates.
A significant adaptation for the rotational problem involves the Boundary constraints. Each rectangle r i must reside entirely within the strip dimensions (W × H), but its effective width and height depend on the orientation specified by R i . The horizontal Boundary constraint, x i +effective width ≤ W, translates to x i ≤ W − w i if ¬R i (original orientation) and x i ≤ W − h i if R i (rotated). This conditional logic is captured using implications involving the Order Encoding variables:
Similarly, the vertical Boundary constraint, y i +effective height ≤ H, depends on R i determining whether the effective height is h i or w i . This leads to the clauses:
These rotation-aware Boundary constraints are a critical extension compared to fixed-orientation models, ensuring placements are valid regardless of the chosen orientation.
The Non-overlap constraint between any distinct pair of rectangles r i and r j (i < j) is fundamentally enforced by the disjunction ensuring that one must be to the left of, to the right of, below, or above the other (Soh et al. (2010)):
The primary challenge lies in correctly linking the relative position variables (l i,j , l j,i , u i,j , u j,i ) to the Order Encoding position variables while accounting for the effective dimensions which are determined by the rotation variables R i and R j . For the ’left-of’relations, l i, j implies , where is w i if ¬R i and h i if R i . This implication is encoded conditionally on R i:
Symmetrically, l j,i implies , encoded conditionally on R j:
Analogous reasoning applies to the ’below’ relations. The implication , where h ′ depends on R i , yields:
And , conditional on R j , gives:
These sets of clauses accurately translate the geometric Non-overlap conditions into propositional logic, explicitly incorporating the effect of rotation on rectangle dimensions.
Optionally, to potentially enhance solver performance through stronger propagation, short-circuit clauses can be included. These clauses enforce basic coordinate bounds implied by relative placements, conditioned on rotation, even for small coordinate thresholds. They capture implications like and , and their symmetric counterparts:
While logically implied by the main Non-overlap and Axioms clauses, these redundant constraints can sometimes help prune the search space more effectively. Collectively, the constraints presented in this section form the core logical representation of the rotational 2OPP within the SAT framework.
3.3 Adapted symmetry-breaking constraints for rotation
Symmetry breaking (SB) is crucial for SAT solver efficiency, particularly as rotation introduces additional solution equivalences. While building upon established SB principles (e.g., Soh et al. (2010) for fixed-orientation 2SPP), the following constraints are specifically adapted to integrate with our rotational Order Encoding model, particularly interacting with the rotation variable R i (Section 3.1) to prune redundant search paths introduced by item orientation choices.
Square rectangles
A common SB technique, this constraint prevents exploring the rotation of a square item (w i = h i ), as it yields an identical geometric configuration. For our model, this translates to directly fixing its orientation:
If w i = h i (an input property), the unit clause ¬R i is added for rectangle i, effectively removing R i from consideration by the solver and eliminating a redundant branch in the search space.
Out-of-bounds rotation
This pre-processing constraint leverages the explicit rotation variable R i to fix item orientation if only one orientation is geometrically viable within the strip boundaries (W , H). If the original orientation is invalid (e.g., w i > W ) but the rotated one is valid (e.g., h i ≤ W ∧ w i ≤ H), rotation becomes mandatory:
Conversely, if the original fits but the rotated does not, rotation is forbidden:
These rules, evaluated based on input parameters, add unit clauses (R i or ¬R i ) that simplify the problem by pre-determining orientations, directly reducing the solver’s search task. Figure 1 illustrates a case forcing rotation.
Illustration of out-of-bounds rotation: Original 2x4 exceeds H = 3; rotated 4x2 fits in 4x2 strip, forcing R i .
Large rectangles (LR) adaptation
This constraint, adapted from (Soh et al. (2010)), prevents adjacent placements of r i , r j if their combined effective dimensions (dependent on R i , R j ) exceed strip boundaries:
-
Horizontal: If effective width(i) + effective width(j) > W, then ¬l i,j ∧ ¬l j,i .
-
Vertical: If effective height(i) + effective height(j) > H, then ¬u i,j ∧ ¬u j,i .
Our LR adaptation avoids complex conditional SB clauses by directly modifying the generation of the core Non-overlap disjunction (Equation 4) and its linking clauses (Section 3.2). If rotation states for r i , r j cause their combined dimensions to exceed strip limits (e.g., w i + w j > W), impossible relative placement literals (e.g., l i,j , l j,i ) are omitted from the disjunction under that specific rotational context. This prunes unsatisfiable branches, streamlining the SAT formula by reducing complex clauses, potentially improving solver efficiency.
While extending known principles, these SB constraints are specifically adapted for our Order Encoding with explicit rotation variables (R i ). The Out-of-bounds rotation and the LR adaptation-modifying clause generation instead of adding explicit constraints-are notable implementation choices leveraging the encoding’s structure to simplify problem representation. SB for Order Encoded rotational 2SPP is less explored; our adaptations offer practical rules for rotation-induced symmetries within this paradigm, vital for managing the expanded search space and enhancing efficiency (Section 5).
3.4 The complete SAT model ΦR (H) for rotational 2OPP
The complete SAT instance ΦR (H), encoding the feasibility of the rotational 2OPP for a given height H, is generated by systematically combining the variables and constraints detailed above.
The conjunction of all these clause sets-Axioms, Rotational Boundaries, Non-Overlap disjunctions, Conditional Non-Overlap Links, and adapted symmetry breaking constitutes the complete SAT instance ΦR (H). A satisfying assignment for ΦR (H) directly corresponds to a valid rotational 2OPP solution for height H. This formula is therefore the precise logical query submitted to the SAT or MaxSAT solver within the height minimization framework discussed in the subsequent section.
4 HEIGHT MINIMIZATION STRATEGIES FOR 2SPP
Having established the SAT methodology for checking the feasibility of the rotational 2OPP for a given height H (ΦR (H)) in Section 3, we now explore distinct high-level strategies for utilizing this feasibility check to solve the 2SPP optimization problem - finding the minimum required height H opt .
4.1 Bisection search framework with SAT feasibility checks
To find the minimum height H opt , a primary strategy employs the SAT-based feasibility check ΦR (H) (Section 3) within a Bisection Search. This iterative approach solves the 2OPP decision problem for different candidate heights.
4.1.1 Bisection search framework
Bisection search (Algorithm 1) finds the minimum height H opt in a range [H lb , H ub ] where ΦR (H) is satisfiable. Leveraging the monotonicity of packing feasibility (feasibility at H implies feasibility at H ′ > H), it iteratively tests H mid using a CheckFeasibility() function, which solves the SAT instance ΦR (H mid ). The search interval [low, high] is adjusted based on the SAT/UNSAT result until low > high. Effective initial bounds H lb , H ub are vital for efficiency.
4.1.2 Non-incremental SAT implementation
In the non-incremental SAT implementation of the CheckFeasibility() function (Algorithm 2), each call for a height H check generates ΦR (H check ) a new and uses a fresh SAT solver instance. This treats checks independently, without reusing learned information. The height H check directly defines the y-coordinate scope and boundaries within ΦR (H check ); no internal height indicator variables (e.g., p h ) are used within this formula for bisection. Height is managed externally by the loop. This serves as a fundamental baseline.
4.1.3 Incremental SAT solving
Incremental SAT solving (adapting Soh et al. (2010)) uses a persistent Glucose 4.2 solver to reuse learned clauses. The solver is initialized with a formula for the full height range [H lb , H ub ], including core packing constraints (Section 3 extended to H ub ) and height indicator variables p h for h ∈ [H lb , H ub ]. Clauses for p h include:
-
Height linking clauses: For each rectangle r i and each h ∈ [H lb , H ub ] (where h is large enough to accommodate r i ):
-
- : If p h is true and r i is not rotated, y i ≤ h − h i .
-
-: If p h is true and r i is rotated, y i ≤ h − w i .
-
Height monotonicity: For each h ∈ [H lb , H ub − 1]: (¬p h ∨ p h+1 ).
The CheckFeasibility() function (Algorithm 3) then assumes to test height H check . However, a loose initial upper bound H ub significantly enlarges the initial formula. This overhead can counteract incrementality benefits, potentially leading to performance inferior to the nonincremental method, as discussed in Section 5 and Section 4.3. This trade-off is a critical consideration.
While incremental solving aims to leverage learned clauses from previous (often UNSAT) calls, its effectiveness is sensitive to the initial upper bound H ub . If H ub is significantly larger than the true optimal height H opt , the initial formula loaded into the persistent solver becomes substantially larger, increasing the number of variables and constraints related to height. This overhead, stemming from a potentially loose H ub , can counteract the benefits of incrementality, potentially leading to performance inferior to the non-incremental method in practice, as observed in preliminary experiments. The trade-off between the potential speedup from clause reuse and the overhead from a large initial formula is a critical consideration for this approach.
4.2 Direct optimization via weighted partial MaxSAT
Alternatively, the 2SPP height minimization can be directly addressed by encoding it as a single Weighted Partial MaxSAT (WCNF) instance (Li & Manyà (2009); Ansótegui et al. (2009)). This method uses hard clauses for mandatory packing constraints and soft clauses to penalize height, enabling a MaxSAT solver (Morgado et al. (2013); Nadel (2024)) to find the minimum feasible height H opt in one call.
4.2.1 WCNF formulation
A single Weighted Conjunctive Normal Form (WCNF) formula is constructed, comprising hard and soft clauses, defined over variables encompassing the packing configuration and potential heights up to an initial upper bound H ub .
Hard clauses (∞): These enforce the fundamental requirements for a valid packing solution up to H ub . They include:
-
Core rotational 2OPP constraints (Section 3) ensuring geometric validity.
-
Height feasibility linking clauses, connecting the packing state to height indicator variables p h:
-
Height variable ordering clauses, ensuring monotonicity (p h =⇒ p h+1 ):
-
Basic feasibility clause, ensuring at least one height within [H lb , H ub ] is achievable:
Soft clauses (Weight 1): These encode the optimization objective. For each potential height h ∈ [H lb , H ub ], a unit soft clause p h is added with weight 1:
The MaxSAT solver aims to satisfy all hard clauses while minimizing the sum of weights of satisfied soft p h clauses. Combined with the height ordering clauses, this directly yields the minimum H opt for which p H opt is true.
4.2.2 Solving with TT-Open-WBO-Inc
The resulting WCNF formula is solved once using a Weighted Partial MaxSAT solver, such as TT-Open-WBO-Inc (Nadel (2024)), as outlined in Algorithm 4.
Unlike iterative bisection, this direct MaxSAT approach delegates the entire optimization to the solver. However, its performance, akin to incremental SAT, is sensitive to the initial upper bound H ub which dictates the WCNF instance size (Section 5).
4.3 Impact of upper bound estimation
Both the incremental SAT approach within Bisection Search (Section 4.1.3) and the direct MaxSAT method (Section 4.2) require an initial upper bound H ub to define the scope of the SAT/MaxSAT formula. The quality of this bound significantly impacts performance, as it dictates the size of the formula handled by the solver.
A loose upper bound (i.e., H ub ≫ H opt ) inflates the initial SAT/MaxSAT formula. This occurs by expanding the range of y-coordinate Order Encoding variables and consequently the number of related Axioms, Boundary, and Non-overlap clauses. Furthermore, it increases the count of height indicator variables (p h ) spanning [H lb , H ub ] and the associated height linking and ordering clauses. Such formula growth leads to higher memory use and slower solver speeds, potentially counteracting the advantages of incremental or direct optimization techniques.
To mitigate this, we employ a heuristic upper bound calculation (Algorithm 5) based on the First Fit Decreasing Height (FFDH) strategy (Coffman Jr et al. (1980)), combined with the trivial sum-of-heights bound.
Despite using this heuristic, empirical observations (detailed in Section 5) indicate that the calculated H ub can still be substantially higher than the optimal height H opt . This initial overestimation contributes to the observed phenomenon where the overhead introduced by the large formula size in incremental SAT and MaxSAT methods can sometimes make the simpler, non-incremental Bisection Search approach (Section 4.1.2) more competitive in terms of overall runtime. Finding tighter, efficiently computable upper bounds remains an important factor for maximizing the performance of these advanced SAT/MaxSAT-based optimization techniques. The impact of this initial overestimation on the performance of incremental SAT and direct MaxSAT approaches are further detailed with specific data in Section 5.
5 EXPERIMENTAL EVALUATION AND RESULTS
This section presents a comprehensive empirical evaluation of the methodologies developed and discussed in Sections 3 and 4. We aim to assess their practical performance, compare different optimization strategies, evaluate the impact of item rotation and symmetry breaking, and benchmark these specialized approaches against established general-purpose optimization solvers. The evaluation is performed against optimal heights established in the literature, specifically considering that non-rotational and rotational problem variants may have different optimal values for the same base instance (Kenmochi et al. (2009); Arahori et al. (2012)). To facilitate transparency and reproducibility, the benchmark instances and implementations are made available at https://github.com/strippacking/SPP.
5.1 Experimental setup
A consistent experimental setup is crucial for rigorous evaluation. This section details the benchmark instances, computational environment, solvers, and performance metrics.
5.1.1 Benchmark instances
We evaluated our approaches on a standard set of 41 2SPP benchmark instances, aggregating well-known datasets from various sources, including HT instances from Hopper & Turton (2001), BENG instances from Bengtsson (1982), CGCUT instances from Christofides & Whitlock (1977), GCUT instances from Beasley (1985a), and NGCUT instances from Beasley (1985b), obtained via the University of Bologna’s OR Group library. These instances vary widely in size (from 7 to 200 rectangles) and item dimensions, providing a robust testbed. Known optimal heights, primarily from Kenmochi et al. (2009); Ha et al. (2010); Arahori et al. (2012), served as targets for solution quality, distinguishing between non-rotational and rotational optima where applicable.
5.1.2 Computational environment and solvers
Experiments ran on Google Cloud Platform (GCP) using e2-highcpu-16 instances (16 vCPUs, 16GB RAM, 20GB disk) with Ubuntu 20.04 LTS. A 1800-second (30-minute) time limit per instance/solver execution included model generation and solving. For SAT-based bisection, Glucose 4.2 by Audemard & Simon (2009) was employed, and for Direct MaxSAT optimization, TT-Open-WBO-Inc by Nadel (2024) was used. These were benchmarked against several established solvers: CPLEX 22.1.1 providing both CP Optimizer and MIP solver capabilities (Manual (1987)), MIP solver by Gurobi Optimization (2022) (9.5.0), and OR-Tools 9.1 by Google Inc. (2023) offering both CP-SAT and MIP solvers. Solvers used default parameters unless stated. Implementations were generated by Python 3 scripts in the same environment.
5.1.3 Performance metrics
Performance was assessed by several key indicators. Primarily, we measured the number of instances solved to confirmed optimality (# Opt) by comparing achieved heights against the bestknown values reported in Kenmochi et al. (2009); Martínez et al. (2015); Neveu & Trombettoni (2008); Arahori et al. (2012), all within a strict time limit of 1800 seconds per instance; this comparison acknowledged that optimal heights can differ for rotational and non-rotational problem
variants. Secondly, we recorded the total wall-clock runtime in seconds (∑τ) for those instances solved optimally, ensuring this included time for both model generation and solving. Finally, for the SAT/MaxSAT methods specifically, we tracked the complexity of the generated formulas by noting the total number of variables (#Vars) and clauses (#Cls). These metrics allow a thorough evaluation of effectiveness, efficiency, and scalability.
It is important to note how these complexity metrics are measured. For Non-Incremental SAT Bisection approaches, the reported #Vars and #Cls correspond to the SAT instance generated for the final, optimal height H opt found. In contrast, for Incremental SAT Bisection and Direct MaxSAT methods, these counts represent the single, initial formula that encodes the entire problem up to the heuristic upper bound H ub . Detailed instance-wise results, including comparisons to specific Lower Bounds (LB) and Optimal Heights (Opt H), are provided in the Appendix (see Tables A1 and A2).
5.2 Results and Discussion
This section analyzes the performance of our methodologies, focusing on the comparison between different strategies and their efficacy against general optimization solvers, all contextualized by established optimal solution values. For detailed instance-by-instance performance of all configurations, please refer to Tables A1 and A2 in the Appendix.
5.2.1 Performance of non-rotational SAT/MaxSAT strategies
For the non-rotational experiments, two symmetry-breaking configurations from Soh et al. (2010) were evaluated. SB C1 combines three techniques: Domain Reduction (DR), which constrains the largest rectangle to the left half of the strip to break horizontal symmetry; Large Rectangles (LR), which forbids placing two rectangles side-by-side if their combined width exceeds the strip’s width; and Same Rectangles (SR), which imposes a lexicographical ordering on the coordinates of identical items to eliminate permutations. SB C2 combines the LR technique with One Pair of Rectangles (OPR), a more general constraint that fixes the relative order of a single, arbitrary pair of items. We first evaluate the performance of different SAT/MaxSAT strategies for the 2SPP without item rotation. Table 1 shows these findings, with a comprehensive breakdown of instances provided in Table A2 (under the ”Without Rotation” columns).
A key observation is the superior performance of our proposed Direct MaxSAT and NonIncremental SAT Bisection strategies compared to the Incremental SAT Bisection approaches (SPP_INC_SB_C1, SPP_INC_SB_C2). These incremental methods, representative of earlier SATbased techniques such as those in Soh et al. (2010), solve fewer instances (23). This difference in performance can be attributed to several factors. Firstly, modern SAT solvers (like Glucose 4.2 used here) and especially MaxSAT solvers (like TT-Open-WBO-Inc) have significantly advanced since the solvers available at the time of earlier works like Soh et al. (2010), offering more powerful search heuristics and learning mechanisms. Secondly, while incremental SAT aims to reuse learned clauses, the overhead of managing and evolving a potentially very large formula can outweigh the benefits for this problem class. The Non-Incremental SAT Bisection, by generating fresh, smaller, and more focused SAT instances for each height check, avoids this large initial overhead. In contrast, the Direct MaxSAT configurations, SPP_MS (no SB) and SPP_MS_SB_C2, achieve the highest number of optimal solutions (26 instances each), demonstrating the power of leveraging modern MaxSAT solvers for direct optimization.
SB constraints show varied effects in the non-rotational context. For Non-Incremental SAT, SB C1 (SPP_SB_C1) slightly increases #Opt compared to no SB (SPP), while SB C2 (SPP_SB_C2) significantly improves runtime for the same #Opt as SPP, highlighting that different SB strategies can offer a trade-off between solution power and speed. For Direct MaxSAT, SB C2 (SPP_MS_SB_C2) maintains the same high #Opt as no SB (SPP_MS) but with a slightly higher total time. Formula sizes (#Vars, #Cls) are generally larger for Direct MaxSAT and Incremental SAT compared to Non-Incremental SAT.
5.2.2 Performance of rotational SAT/MaxSAT strategies
We now consider the 2SPP with 90-degree item rotations. Optimal heights for rotational variants can differ from their non-rotational counterparts (Kenmochi et al. (2009)). Table 2 presents these results. For a detailed view of how each rotational SAT/MaxSAT strategy performed on individual instances, see the ”Rotation” columns in Table A2.
When rotation is allowed, the Non-Incremental SAT Bisection with symmetry breaking (SPP_R_SB) solves the most instances (26), matching the best performance in the non-rotational setting and emerging as the top SAT/MaxSAT performer for rotational 2SPP. Its counterpart without SB (SPP_R) is close, solving 25 instances. These methods maintain a small Gap of 2.78% and 3.12% respectively, contributing to their robustness. This again underscores the effectiveness of the Non-Incremental SAT bisection approach. Symmetry breaking (SPP_R_SB vs SPP_R) provides a gain of one optimal solution, indicating its utility in navigating the larger search space induced by rotation.
Conversely, the Incremental SAT approach (SPP_INC_R_SB) solves fewer instances (21) in the rotational setting. This is likely compounded by a larger Gap of 6.17% (Table 2), which, when combined with the inherent complexity of rotation, further burdens the incremental solver. The Direct MaxSAT (SPP_MS_R, SPP_MS_R_SB) approaches also solve fewer instances (20-21) in the rotational setting. These methods face even larger Gaps of 40.13% and 44.31% respectively (Table 2). The combination of this substantial initial overestimation of height with the increased complexity of rotational encoding (evident in the higher #Vars and especially #Cls) poses a significant challenge for these strategies, making them less effective with rotation compared to NonIncremental SAT Bisection. The Direct MaxSAT approach, very strong non-rotationally, appears particularly affected by this increased complexity when rotation is introduced.
Comparing the best results, our SAT/MaxSAT methods solve up to 26 instances optimally, both with and without rotation (SPP_MS, SPP_MS_SB_C2 for non-rotational; SPP_R_SB for rotational). For the standard benchmarks used, allowing 90-degree rotation does not enable our SAT/MaxSAT methods to solve more unique instances to their known optima beyond what the best non-rotational configurations achieve. Furthermore, as established in literature such as Kenmochi et al. (2009) and Arahori et al. (2012) for many of these standard instances, rotation does not necessarily lead to packings with smaller optimal heights. The primary impact of incorporating rotation into our SAT/MaxSAT framework is a notable increase in encoding complexity and, consequently, solver runtime. For instance, comparing the baseline non-rotational model (SPP) with its rotational counterpart (SPP_R), allowing rotation increases the average number of variables by approximately 5.6% (from approx. 717k to 757k) and, more significantly, the average number of clauses by about 113.7% (from approx. 31.3M to 67.0M) for the Non-Incremental Bisection approach. This substantial growth in formula size, particularly in clauses, contributes to the increased computational effort required for rotational problems. Symmetry breaking generally proved beneficial across both rotational and non-rotational settings, either by increasing the number of optima found or by significantly improving solution times, with its application being key for SPP_R_SB to reach 26 optima in the rotational context.
5.2.3 Comparison with general Optimization solvers
We now benchmark our most promising SAT/MaxSAT configurations against leading generalpurpose CP and MIP solvers. Table 3 provides this comparison. The #Opt here is evaluated against the specific known optimal heights for non-rotational or rotational variants as appropriate. Detailed results for each general optimization solver on every instance are available in Table A1 in the Appendix.
Google OR-Tools’ CP-SAT solver demonstrates the strongest performance among the general solvers, with OR-TOOLS_CP_C2 (non-rotational, SB C2) solving 28 instances optimally (detailed in Table A1). This is the highest number of optimal solutions achieved by any method in this study. Its rotational counterpart, OR-TOOLS_CP_R_SB, solves 24 instances. These results highlight the power of modern CP-SAT technology.
The results show that our best SAT/MaxSAT configurations are competitive. Specifically, SPP_MS, SPP_MS_SB_C2, and SPP_R_SB each solve 26 instances, though they are outperformed by the OR-Tools CP-SAT solver, which finds 28 optimal solutions. The SAT/MaxSAT approaches, however, exhibit notable strengths. For instance, SPP_SB_C2 is exceptionally fast, and the rotational model SPP_R_SB achieves a very low average gap of 2.78%. The Direct MaxSAT approaches now show a large average gap (36.80%), reflecting their behavior of returning the first feasible solution found (at H ub ) when the MaxSAT formula becomes too large to solve to optimality within the time limit. This highlights a trade-off: while they can quickly find optimal solutions for some instances, they may yield poor-quality solutions for others where the initial upper bound is loose. MIP solvers generally struggled with 2SPP instances, finding fewer optimal solutions as shown in Table 3. The combinatorial structure of 2SPP, with its numerous disjunctive constraints (e.g., Non-overlap requirements), is known to challenge typical MIP branch-and-cut algorithms. Such disjunctions often lead to weak linear programming (LP) relaxations in standard MIP formulations and consequently, extensive branching, hindering the solver’s ability to effectively prune the search space (Vielma (2015)). Conversely, methods solving a sequence of decision problems, like our Non-Incremental SAT Bisection and the CP-based approaches using the same Non-Incremental Bisection framework (Algorithm 1), proved more effective. This strategy allows CP and SAT solvers to leverage their strengths in handling logical constraints and applying specialized propagation techniques to focused decision instances (Achterberg (2007)). The strong performance of the OR-Tools CP-SAT solver, in particular, underscores the effectiveness of modern constraint programming technology for tackling the combinatorial nature of 2SPP. This fundamental difference in approach-iterative decision-making versus monolithic MIP optimization-likely explains the superior performance observed for our SAT/MaxSAT methods and the Non-Incremental Bisection-based CP solvers, highlighting the suitability of logical and constraint-based reasoning for 2SPP.
These results collectively underscore the effectiveness of carefully designed SAT and MaxSAT encodings, particularly Non-Incremental Bisection and Direct MaxSAT optimization with modern solvers. They also highlight the strong performance of contemporary CP-SAT technology.
5.2.4 Comparison with prior research results
Table 4 benchmarks our best-performing configurations (”Prop.”, derived from Tables A1 and A2) against prior incomplete (Kenmochi et al. (2009); Martínez et al. (2015); Neveu & Trombettoni (2008); Wei et al. (2009)) and exact literature results. Our ”Prop.” results are highly competitive, matching a significant number of known optima (28 for rotational, 29 for non-rotational as per ”Exact” in Table 4). For instance, our best configurations often equal or surpass prior incomplete methods.
Comparison of proposed best results (Prop.) with prior incomplete and exact literature results (38 Instances).
While our methods demonstrate strong performance, some prior exact studies report more optimal solutions overall (e.g., 34-36 optima matched in Table 4 under ”Exact” compared to our 28-29). A contributing factor might be the differing experimental conditions, particularly the timeout limits. Many prior studies employed longer timeouts (e.g., 3600 seconds), whereas our experiments were conducted with a stricter 1800-second limit to assess efficiency under tighter constraints. Exploring the impact of extended timeouts on our best configurations remains a direction for future investigation and could potentially close the remaining difference in the number of optimal solutions found. Nevertheless, the current results affirm the state-of-the-art capability of the top configurations identified in our study.
These results collectively underscore the effectiveness of carefully designed SAT and MaxSAT encodings, particularly Non-Incremental SAT Bisection and Direct MaxSAT optimization with modern solvers. They also highlight the strong performance of contemporary CP-SAT technology. Detailed results for each instance, including achieved heights versus known Lower Bounds and Optimal Heights for all evaluated methods, are available in the Appendix (Tables A1 and A2).
6 CONCLUSION
This paper investigated SAT and MaxSAT methodologies for the 2SPP, including item rotation. We developed robust models, adapted symmetry-breaking constraints, compared NonIncremental SAT Bisection, Incremental SAT Bisection, Direct MaxSAT optimization, and benchmarked them against general-purpose solvers.
Our experiments showed that our Non-Incremental SAT Bisection and Direct MaxSAT strategies significantly outperformed earlier incremental SAT techniques. Symmetry breaking generally proved beneficial. While item rotation yielded better heights for some instances (consistent with literature, e.g., Kenmochi et al. (2009); Arahori et al. (2012)), it did not increase the overall count of optimally solved benchmarks by our SAT/MaxSAT methods, mainly adding to encoding complexity and runtime. Against general solvers, OR-Tools’ CP-SAT performed best when employed within our Non-Incremental Bisection search framework. However, our leading SAT/MaxSAT configurations were highly competitive, surpassing the CPLEX CP Optimizer and MIP solvers in optimally solved instances, underscoring the suitability of logical approaches for 2SPP. The efficiency of OR-Tools CP-SAT, when applied using this bisection strategy, may stem from its advanced internal heuristics and multi-threading, features not in our current SAT/MaxSAT implementations. The success of our Non-Incremental Bisection methods reinforces the viability of solving a sequence of decision problems for this type of optimization task.
Even with OR-Tools CP-SAT’s strong showing under this framework, the developed SAT/MaxSAT methods hold significant value. They offer robust alternative solution pathways, facilitate the exploration of problem structure from a distinct logical viewpoint, can more naturally incorporate intricate logical side-constraints, and provide a solid basis for future hybrid methodologies that could combine the strengths of different paradigms. This study’s importance is underscored by its demonstration of improved effectiveness in using Non-Incremental SAT Bisection and Direct MaxSAT optimization for 2SPP, thorough assessment of symmetry-breaking adaptations in rotational environments, and offering of explicit performance comparisons. These findings offer valuable insights for selecting appropriate solution strategies for complex packing problems.
Future work could explore several avenues. Hybrid approaches, combining the strengths of SAT/MaxSAT with other paradigms like CP or local search, might yield further improvements. Investigating more sophisticated symmetry-breaking techniques tailored for specific instance structures could also be beneficial. Furthermore, re-evaluating the top-performing configurations identified in this study with extended computational timeouts (e.g., 3600 seconds, comparable to some prior literature) could provide a more direct comparison regarding the absolute number of optimally solved instances and potentially enhance their competitive standing further.
References
- ACHTERBERG T. 2007. Constraint Integer Programming. Ph.D. thesis. Technische Universität Berlin.
- ALVAREZ-VALDÉS R, PARREÑO F & TAMARIT JM. 2008. Reactive GRASP for the strip-packing problem. Computers & Operations Research, 35(4): 1065-1083.
- ANSÓTEGUI C, BONET ML & LEVY J. 2009. Solving (weighted) partial MaxSAT through satisfiability testing. In: International conference on theory and applications of satisfiability testing. pp. 427-440. Springer.
- ARAHORI Y, IMAMICHI T & NAGAMOCHI H. 2012. An exact strip packing algorithm based on canonical forms. Computers & Operations Research , 39(12): 2991-3011.
- AUDEMARD G & SIMON L. 2009. Glucose: a solver that predicts learnt clauses quality. SAT Competition, pp. 7-8.
- AUDEMARD G & SIMON L. 2012. Refining restarts strategies for SAT and UNSAT. In: Principles and Practice of Constraint Programming: 18th International Conference, CP 2012, Québec City, QC, Canada, October 8-12, 2012. Proceedings. pp. 118-126. Springer.
- BEASLEY J. 1985a. Algorithms for unconstrained two-dimensional guillotine cutting. Journal of the Operational Research Society, 36(4): 297-306.
- BEASLEY JE. 1985b. An exact two-dimensional non-guillotine cutting tree search procedure. Operations research, 33(1): 49-64.
- BENGTSSON BE. 1982. Packing rectangular pieces-a heuristic approach. The computer journal, 25(3): 353-357.
- BERGER M, SCHRÖDER M & KÜFER KH. 2009. A constraint-based approach for the twodimensional rectangular packing problem with orthogonal orientations. In: Operations Research Proceedings 2008: Selected Papers of the Annual International Conference of the German Operations Research Society (GOR) University of Augsburg, September 3-5, 2008. pp. 427-432. Springer.
- BIERE A, HEULE M, VAN MAAREN H & WALSH T (Eds.). 2009. Handbook of Satisfiability. IOS Press.
- BISCHOFF EE & RATCLIFF MSW. 1995. Issues in the development of approaches to container loading. Omega, 23(4): 377-390.
- BOSCHETTI MA & MONTALETTI L. 2010. An exact algorithm for the two-dimensional strippacking problem. Operations Research, 58(6): 1774-1791.
- BURKE EK, KENDALL G & WHITWELL G. 2004. A new placement heuristic for the orthogonal stock-cutting problem. Operations Research , 52(4): 655-671.
- CHRISTOFIDES N & WHITLOCK C. 1977. An algorithm for two-dimensional cutting problems. Operations Research , 25(1): 30-44.
- COFFMAN JR EG, GAREY MR, JOHNSON DS & TARJAN RE. 1980. Performance bounds for level-oriented two-dimensional packing algorithms. SIAM Journal on Computing, 9(4): 808-826.
- DYCKHOFF H. 1990. A typology of cutting and packing problems. European Journal of Operational Research, 44(2): 145-159.
- EÉN N & SÖRENSSON N. 2003. An extensible sat-solver. In: International Conference on Theory and Applications of Satisfiability Testing. pp. 502-518. Springer.
- EPSTEIN L. 2003. Two dimensional packing: the power of rotation. In: International Symposium on Mathematical Foundations of Computer Science. pp. 398-407. Springer.
- GAREY MR & JOHNSON DS. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman.
- GENT IP & SMITH B. 1999. Symmetry breaking during search in constraint programming. University of Leeds, School of Computer Studies Leeds.
- GILMORE PC & GOMORY RE. 1961. A linear programming approach to the cutting-stock problem. Operations Research , 9(6): 849-859.
-
GOOGLE INC. 2023. OR-Tools: Operations Research Tools. https://developers.google.com/optimization software library.
» https://developers.google.com/optimization - GUROBI OPTIMIZATION L. 2022. Gurobi optimizer reference manual, 2023.
- HA MH, CLAUTIAUX F, HANAFI S & WILBAUT C. 2010. New fast heuristics for the 2d strip packing problem with guillotine constraint. In: International Symposium on Experimental Algorithms. pp. 302-313. Springer.
- HOPPER E & TURTON BC. 2001. An empirical investigation of meta-heuristic and heuristic algorithms for a 2D packing problem. European Journal of Operational Research , 128(1): 34-57.
-
JYLÄNKI J. 2010. A thousand ways to pack the bin-a practical approach to two-dimensional rectangle bin packing. retrived from http://clb.demon.fi/files/RectangleBinPack.pdf
» http://clb.demon.fi/files/RectangleBinPack.pdf - KENMOCHI M, IMAMICHI T, NONOBE K, YAGIURA M & NAGAMOCHI H. 2009. Exact algorithms for the two-dimensional strip packing problem with and without rotations. European Journal of Operational Research , 198(1): 73-83.
- LI CM & MANYÀ F. 2009. MaxSAT, hard and soft constraints. Handbook of Satisfiability, pp. 613-631.
- LI L, LIU B & WU Z. 2025. A backtracking heuristic algorithm for two-dimensional strip packing with rotation. Science Progress, 108(1): 00368504241301530.
- LIU K, ZHANG H, WANG C, LI H, CHEN Y & CHEN Q. 2023. Robust optimization for the two-dimensional strip-packing problem with variable-sized bins. Mathematics, 11(23): 4781.
- LODI A, MARTELLO S & MONACI M. 2002. Two-dimensional packing problems: A survey. European Journal of Operational Research , 141(2): 241-252.
- LODI A, MARTELLO S & VIGO D. 1999. Heuristic and metaheuristic approaches for a class of two-dimensional bin packing problems. INFORMS journal on computing, 11(4): 345-357.
- MANUAL CU. 1987. Ibm ilog cplex optimization studio. Version, 12(1987-2018): 1.
- MARTELLO S, MONACI M & VIGO D. 2003. An exact approach to the strip-packing problem. INFORMS journal on computing , 15(3): 310-319.
- MARTÍNEZ DA, ALVAREZ-VALDES R & PARREÑO F. 2015. A grasp algorithm for the container loading problem with multi-drop constraints. Pesquisa Operacional, 35(1): 1-24.
- MORGADO A, HERAS F, LIFFITON M, PLANES J & MARQUES-SILVA J. 2013. Iterative and core-guided MaxSAT solving: A survey and assessment. Constraints, 18(4): 478-534.
- NADEL A. 2024. TT-Open-WBO-Inc: an Efficient Anytime MaxSAT Solver. Journal of Satisfiability, Boolean Modeling and Computation, 15(1): 1-7.
- NEVEU B & TROMBETTONI G. 2008. Strip packing based on local search and a randomized best-fit. In: Fifth International Conference on Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems: First Workshop on Bin Packing and Placement Constraints (CPAIOR: BPPC), Paris, France.
- SAIT SM & YOUSSEF H. 1999. VLSI physical design automation: theory and practice. vol. 6. World Scientific Publishing Company.
- SOH T, INOUE K, TAMURA N, BANBARA M & NABESHIMA H. 2010. A SAT-based method for solving the two-dimensional strip packing problem. Fundamenta Informaticae, 102(3-4): 467-487.
- TAMURA N, TAGA A, KITAGAWA S & BANBARA M. 2009. Compiling finite linear CSP into SAT. Constraints, 14(2): 254-272.
- VIELMA JP. 2015. Mixed integer linear programming formulation techniques. Siam Review, 57(1): 3-57.
- WALSH T. 2006. General symmetry breaking constraints. In: International Conference on Principles and Practice of Constraint Programming. pp. 650-664. Springer.
- WÄSCHER G, HAUSSNER H & SCHUMANN H. 2007. An improved typology of cutting and packing problems. European Journal of Operational Research , 183(3): 1109-1130.
- WEI L, ZHANG D & CHEN Q. 2009. A least wasted first heuristic algorithm for the rectangular packing problem. Computers & Operations Research, 36(5): 1608-1614.
- ZHANG H, YAO S, ZHANG S, LENG J, WEI L & LIU Q. 2024. A block-based heuristic search algorithm for the two-dimensional guillotine strip packing problem. Engineering Applications of Artificial Intelligence, 134: 108624.
Funding
Data Availability
APPENDIX A: DETAILED EXPERIMENTAL RESULTS TABLES












