Abstract
This paper proposes adaptive sequence-based heuristics for solving rectangular two-dimensional guillotine Cutting and Packing Problems (CPPs). These problems are essential in various industrial sectors, aiming to maximise resource utilisation by selecting profitable item subsets or minimise waste by using the fewest possible identical large objects. The core methodology is grounded in the principle that if a specific item sequence generates a high-quality solution, incremental adjustments to that sequence can yield even better outcomes. By iteratively refining item ordering through the BubbleSearch method, the heuristics balance search intensification with the diversification of the solution space. Extensive computational experiments were conducted on benchmark datasets, including SET1, ATP, and CLASS, across multiple problem variants such as the Single Stock-Size Cutting Stock Problem (SSSCSP) and the Single Large Object Placement Problem (SLOPP). The results confirm that these heuristics and their extension with path relinking consistently deliver optimal or near-optimal solutions. These heuristics achieve high performance in computational times that are significantly shorter than existing state-of-the-art methods, demonstrating their robustness, flexibility, and suitability for software transferability and real-world industrial adoption.
1. Introduction
Cutting and Packing Problems (CPPs) hold significant importance in the field of combinatorial optimisation due to their extensive applications across various industries and their inherent computational complexity. In manufacturing, a CPP is essential for optimising resource utilisation and minimising waste, leading to cost reductions and more efficient use of raw materials. In transportation, the CPP enhances cost efficiency by optimising the loading of vehicles such as trucks, planes, and ships, ensuring maximum capacity utilisation. In supply chain management, the CPP helps minimise inventory holding costs, optimise storage, and streamline the distribution of goods, reducing the demand for warehouse space. The ability of the CPP to provide practical and efficient solutions highlights its importance as a critical area of study for researchers and practitioners.
This paper focuses on two-dimensional (2D) CPPs in which a set of m rectangular items must be orthogonally extracted from or packed into larger identical objects characterised by their length (L) and height (H). Each item type i, where , has length (), height (), value (), and demand () associated with it. The expected desired outcome of addressing the CPP is known as a cutting plan, which comprises a collection of cutting patterns (with associated frequency). The cutting type considered in this paper is usually referred to as a guillotine, in which all cuts in a given stage are performed parallel to each other (resulting in a rectangular strip). The resulting strips can be cut further in subsequent perpendicular stages. Some problems impose a limit on the number of stages that can be considered. A frequent restriction is the requirement to ensure that each item being cut is of the same height as the resulting strip. These problems are classified as exact, as opposed to non-exact problems that allow for items of lower height (requiring an additional cut to adjust their dimensions). Additionally, constraints may be applied to the number of items that can be cut, classifying the problem as constrained. In the absence of such constraints, the problem is considered unconstrained. The problem is further categorised as unweighted if the value of all items is proportional to their area. Alternatively, it is classified as weighted when each item is assigned a distinct value, such as cost or priority.
Within this context, this paper addresses two related CPPs. The first problem aims to minimise the number of identical objects required to accommodate all items, while the second seeks to maximise the value of the items placed into a single object. According to the typology presented in [1], and depending on the characteristics of the items, the first problem can be classified as a Single Bin-Size Bin Packing Problem (SBSBPP) or a Single Stock-Size Cutting Stock Problem (SSSCSP), whereas the second corresponds to a Single Knapsack Problem (SKP) or a Single Large Object Placement Problem (SLOPP). In both cases, items are placed orthogonally and rotations are not allowed. For clarity, the discussion focuses on the cutting perspective, noting that the packing counterpart is analogous, differing mainly in its practical interpretation.
From a computational complexity perspective, CPPs are generally NP-hard. Although exact methods based on dynamic programming or integer linear programming are capable of identifying optimal solutions, they rapidly become computationally prohibitive when applied to large-scale or multi-stage problems. This limitation has historically motivated the development of specialised heuristics which, despite their effectiveness, are typically tailored to specific problem variants and lack general applicability.
Consequently, a significant gap remains in the literature for a unified algorithmic framework that consistently delivers high-quality solutions across different CPP typologies while maintaining computational efficiency. According to [2], four essential attributes are required for a heuristic to support software transferability and end-user adoption: accuracy, referring to the ability to produce high-quality and predictable results; speed, denoting the capacity to obtain solutions efficiently, particularly for large instances; simplicity, ensuring ease of understanding and implementation; and flexibility, enabling the incorporation of additional constraints.
In this context, the heuristics proposed in this paper aim to bridge this gap by introducing an iterative refinement mechanism grounded in the Kendall tau distance between item permutations. The approach is structured into two main phases: (i) the generation of item sequences that define the cutting order, and (ii) the construction of the corresponding solutions. By adaptively preserving structural features of high-performing sequences, the method enables an effective exploration of the solution space while adhering to the key properties of robust heuristics. Furthermore, the proposed framework is sufficiently general to be integrated with more advanced metaheuristic strategies, such as path relinking, genetic algorithms, or scatter search, where it can serve as a high-quality population initialisation mechanism.
Results for the 2D non-guillotine SKP and SBSBPP were previously reported in [3]. The heuristic was also extended to address the three-dimensional SBSBPP in [4], where increasing the maximum number of iterations was investigated as a strategy to improve solution quality. In both cases, the proposed heuristics demonstrated strong performance.
The remainder of this paper is organised as follows. Section 2 reviews the solution approaches proposed in the literature for the problems addressed in this paper. Section 3 describes the proposed heuristics. Section 4 presents and analyses the computational results, including a comparison with other solution methods from the literature, and evaluates various cutting constraints to demonstrate the flexibility and adaptability of the proposed approach. Finally, Section 5 summarises the main findings and outlines directions for future research.
2. Literature Review
The literature on CPPs can be broadly classified into two main categories: exact methods and heuristic approaches.
Exact methods aim to identify optimal solutions using techniques such as dynamic programming, integer linear programming, and column generation. The seminal column generation approach introduced by [5] was extended to the two-dimensional case in [6], where an algorithm for the unconstrained two-staged SKP was also proposed by solving a sequence of one-dimensional knapsack problems. A Branch-and-Bound algorithm for the non-guillotine SLOPP was presented in [7], while dynamic programming-based exact and heuristic algorithms for the unconstrained guillotine SLOPP were introduced in [8]. In [9], these approaches were compared, highlighting limitations related to discretisation strategies.
Further developments include exact algorithms for large-scale two- and three-staged SLOPPs [10], as well as both exact and approximate approaches for the (un)weighted two-staged variant [11]. Extensions to constrained problems with improved bounds and pruning strategies were proposed in [12]. Integer linear programming formulations were introduced in [13], with additional models and bounds for related problems such as the ODP and SBSBPP proposed in [14]. Arc-Flow models for the two-staged SSSCSP were developed in [15], while [16] presented integer programming models for two- and three-staged (non-)exact SSSCSPs, including extensions to the MSSCSP. Hybrid approaches combining Branch-and-Bound, cutting planes, and column generation, namely, Branch-and-Cut-and-Price methods, were proposed in [17], and further extensions to three-staged problems were introduced in [18]. Additional exact methods for knapsack-related problems can be found in [19,20,21].
Despite these advances, exact methods typically become computationally prohibitive as the size and complexity of the problem increase, particularly for multi-stage and higher-dimensional instances.
To address these limitations, a wide range of heuristic and metaheuristic approaches have been proposed. Early work includes the adaptation and evaluation of heuristics for the SBSBPP [22] and constructive approaches based on strip generation using sequences of one-dimensional knapsack problems [23,24]. Graph-based representations, such as And/Or-Graph structures, were explored in [25,26].
Several heuristics rely on sequence-based representations combined with placement procedures. For example, a simulated annealing approach using ordered item lists and bottom-left placement strategies was proposed in [27]. Similarly, genetic algorithms based on random keys were introduced in [28], with parallel multi-population extensions in [29].
Other widely used metaheuristics include the GRASP, tabu search, and path relinking [30,31], as well as tabu search variants for non-guillotine problems [32,33]. Hybrid and adaptive methods have also been developed, including guided local search [34], variable neighbourhood descent [35], stochastic neighbourhood search [36], and beam search [37]. Evolutionary and hybrid frameworks combining sequence generation and placement heuristics have been proposed in [38,39]. Additionally, set-covering-based heuristics using Lagrangean relaxation were introduced in [40], and heuristic frameworks adaptable to multiple problem variants were proposed in [41].
Although these heuristic approaches have demonstrated strong performance, they are often tailored to specific problem settings, cutting constraints, or solution representations. This limits their general applicability and makes adaptation to different CPP typologies challenging. Therefore, a clear gap remains in the development of a unified and flexible heuristic framework capable of maintaining high performance across different problem variants while remaining computationally efficient. This observation motivates the research presented in this paper.
Given the breadth and depth of the literature on CPP and its numerous variants, a fully exhaustive review is beyond the scope of this paper. Instead, the reader is referred to [42], which provides a comprehensive and structured overview of solution approaches for two-dimensional rectangular guillotine and non-guillotine problems.
3. Proposed Methodology: Adaptive Sequence-Based Heuristic
The proposed adaptive sequence-based heuristic (ASH) for solving the CPP adopts a two-phase multi-start framework. At each iteration, a new item ordering is generated and subsequently used to construct a feasible solution. This iterative process incorporates mechanisms for both diversification and intensification, enabling a balanced exploration of the solution space while progressively exploiting high-quality regions.
The details of the two phases are presented in the following sections. The final section introduces a path relinking procedure to enhance the solutions obtained for the SLOPP, illustrating the ability of the ASH framework to integrate with other optimisation methods.
3.1. Phase I: Stochastic Sequence Generation and Adaptive Search
The core methodology of the heuristics presented in this paper is grounded in the principle that if a high-quality solution is obtained using a specific item sequence , a potentially better solution could be found by slightly altering the order of a few items to create a new sequence . If this new sequence does not yield an improvement, it is plausible that a sequence with further incremental changes may lead to a better solution.
Initially, is the sequence of items ordered according to efficiency as discussed in [31], defined as
where , , and represent the value, length, and height of item i, respectively. For unweighted problems, the items are sorted by decreasing , as is equal to 1 for all items.
The search process is governed by a dynamic probability parameter that regulates the variation between and . The logic of this adaptive process, including the restart and increment mechanisms, is formalised in Algorithm 1.
The sequences are generated using the BubbleSearch method presented in [43], which constructs item sequences based on the Kendall tau distance between two permutations. This technique was further extended in [44] and evaluated for distinct problems, such as ODP and Job Shop Scheduling, where it demonstrated favourable performance compared to similar GRASP-based approaches. The specific sequence construction routine is detailed in Algorithm 2 in which a new sequence is constructed by iteratively selecting items from based on a random variable .
| Algorithm 1 Main Adaptive Heuristic |
|
In this context, the parameter serves as the core mechanism for balancing search intensification and diversification by regulating the Kendall tau distance between and . At its minimum value , the search intensifies by creating sequences with minor variations to exploit the neighbourhood of the best found solution. During non-improving iterations, the value of increases by the step towards to ensure that the divergence between and the newly generated sequence grows. This methodology promotes diversification by allowing for greater sequence divergence, which enables the exploration of broader regions of the solution space and facilitates the escape from local optima through the generation of more distinct sequences.
| Algorithm 2 Sequence Generator |
|
For the SSSCSP, the optimality criterion is met when the objective function value equals the Continuous Lower Bound () defined in [45] as
For the SLOPP, since the goal is to obtain the maximum profit pattern, no further improvement is possible once a pattern includes all items.
3.2. Phase II: Deterministic Pattern Generation and Solution Construction
The primary distinction between the algorithmic approaches for the SSSCSP and the SLOPP lies in their objective functions and the resulting solution structures. For the SSSCSP, the goal is to pack the complete set of items into a series of patterns across multiple objects to minimise the total number of identical objects N. This requires generating a sequence of patterns until the total demand for all items is satisfied. Conversely, the SLOPP focuses on a single large object of dimensions , where the objective is to maximise the total value of the packed items.
Both problem variants utilise a recursive guillotine cut logic, where orthogonal cuts must span the entire width or height of the current strip or object. These cuts can be applied across multiple stages to create horizontal or vertical subdivisions depending on the specific problem constraints.
The pattern generation process is formalised as follows. First-stage horizontal strips are created iteratively within the object. The height of each strip is determined by the height of the first available item i in the current sequence , provided that . Once a strip is defined, its available length L is filled by solving a bounded one-dimensional (1D) SKP (using the algorithm proposed by Pisinger [46]):
where E is the set of eligible items, is the number of items of type i included, and is the residual demand.
For problems where the maximum number of stages exceeds two, each resulting strip undergoes further subdivision into smaller residual strips. Each residual space is treated as an independent 1D SKP to ensure efficient utilisation of the area while adhering to cut constraints.
Throughout the process, items are only considered for inclusion if they meet the following criteria: they must fit within the current strip or residual space dimensions, they must have a residual demand , and they must comply with the specific guillotine rules of the problem instance. For the SSSCSP, once a pattern is generated, it is integrated into the global solution with a frequency f determined by the minimum residual demand of its constituent items:
The patterns are added iteratively until all item demands are met or the available object capacity is exhausted.
3.3. Advanced Search via Path Relinking and Local Optimisation
The adaptive heuristics are further enhanced for the SLOPP through a path relinking (PR; see [47]) procedure, which systematically explores the solution space by constructing a trajectory between an initial solution and a guiding solution . This concluding phase leverages the structural attributes of high-quality solutions to identify superior patterns that may be missed during the initial constructive phase.
The procedure begins by maintaining a set of patterns generated during the iterative phase, ranked by their objective value in descending order. A reference set is defined such that , containing the top candidates for the relinking process. For a given pair , the transition consists of iteratively integrating first-stage strips into the initialiser solution . To maintain feasibility, a restoration operator is applied following each inclusion, governed by two primary rules:
- Demand Restoration: The operator iteratively removes strips (where ) that contribute most significantly to demand infeasibility.
- Geometric Feasibility: If the total height of the strips exceeds the object height H, the algorithm removes the tallest strips until the constraint is satisfied.
The resulting patterns are finally refined using a local search procedure based on item exchanges. For an item i currently in the pattern and an item j with residual demand , a swap is executed if it leads to an improvement in the objective function . This local optimisation continues until no further advantageous exchanges can be identified.
3.4. Methodological Novelty and Comparison with Lightweight Heuristics
The methodological novelty of the proposed approach resides in its adaptive sequence-based search mechanism, which distinguishes it from established lightweight heuristics like the GRASP. While the classical GRASP typically relies on a Restricted Candidate List (RCL) to make greedy local decisions at each step of the solution construction, ASH operates directly on the global item permutation space. By utilising the Kendall tau distance through the BubbleSearch method, the search can systematically explore the neighbourhood of high-quality solutions with greater precision than random restarts.
Furthermore, unlike the standard memoryless GRASP, this methodology inherently incorporates a learning component by promoting the best found sequence to serve as the new base for subsequent perturbations. This allows for the algorithm to intensify the search in promising regions of the solution space while the dynamic adjustment of the probability parameter ensures sufficient diversification. Compared to other lightweight methods, these heuristics achieve high performance with a minimal number of parameters, making them more robust to different problem instances and significantly easier to implement.
4. Performance Evaluation and Comparative Analysis
To evaluate the effectiveness and versatility of the proposed ASH, a comprehensive series of computational experiments was conducted. The following subsections detail the experimental environment, the specific problem variants tested, and a comparative analysis against established benchmarks from the literature. All datasets referenced in this paper are available from the library presented in [48].
4.1. Experimental Design and Computational Setup
The performance of ASH was evaluated across a wide range of 2D guillotine cutting configurations, including the constrained two- and three-staged exact SSSCSP, constrained two- and three-staged non-exact SSSCSP, and constrained two-staged exact and non-exact SLOPP, as well as both constrained and unconstrained non-staged non-exact SLOPP instances.
All algorithms were implemented in the C programming language and executed on a system equipped with an Intel Core i7-4800MQ CPU at 2.70 GHz, 8 GB of RAM, and the Linux Ubuntu 18.04 operating system. To ensure a robust assessment, each instance was run once, with a maximum of 2000 iterations. The adaptive search parameters , , and were set to 0.1, 0.9, and 0.005, respectively, following preliminary experimental tuning.
The challenge of comparing solution methods is well-established in the literature, as discussed in works such as [49,50]. The comparison depends on several factors, including the machines, programming languages, compilers, and other implementation considerations, such as programming style and data structures. To provide a more equitable comparison between the proposed approach and existing methods, we apply a conversion factor to the computational times. Specifically, we use the Single-Thread Rating (STR) reported for each CPU, available at https://www.cpubenchmark.net/ (accessed on 1 February 2026), based on the specifications of the machines used. This conversion factor has been previously employed by other researchers, such as in [51], to normalise computational times and make comparisons more meaningful. The choice of the STR as the normalisation factor is, also, motivated by the computational characteristics of ASH. The algorithm is predominantly sequential and CPU-bound, relying on the iterative evaluation of item permutations and the repeated execution of the 1D knapsack algorithm proposed by Pisinger. In such contexts, single-thread performance is a more relevant indicator than multi-core or GPU-oriented benchmarks. While the Single-Thread Rating (STR) provided by PassMark Software offers a practical proxy for cross-platform comparison, this normalisation should be interpreted as an approximation rather than an exact equivalence, given potential microarchitectural differences across processors.
For each problem, we include a table that details the CPU description and the corresponding STR conversion factor for the solution methods being compared. In cases where the exact CPU used in the cited papers could not be determined, we selected the most appropriate one based on available information at the time of analysis. This approach ensures that the comparison is as fair and consistent as possible, accounting for differences in system configurations and implementation details across studies.
4.2. Single Stock-Size Cutting Stock Problem
To test the performance of ASH for the SSSCSP, three datasets were used. The first dataset, identified in this paper as SET1, was defined in [24] and contains 30 instances previously used by other authors to evaluate their solution methods. The dataset ATP contains 20 weighted and unweighted instances (APT30 to ATP49) defined in [30]. The dataset CLASS contains 500 instances, grouped into 10 subsets of 50 instances each, and was defined in [22,45]. The main characteristics of these datasets are presented in Table 1, where the columns show, by order of appearance, the name of the dataset, the number of instances, the dimensions of the range of objects, the number of different type of items, the dimension range of the types of items, and the average demand.
Table 1.
Datasets for SSSCSP.
The computational results for the SSSCSP are shown in Figure 1, Figure 2 and Figure 3. The first column presents the cut type (in bold) and the algorithm name, followed by the total number of objects required to solve all instances and the average execution times for the respective cutting type. To ensure a fair and consistent comparison between the proposed approach and existing methods, the computational times presented in these figures have been adjusted using the STR conversion factor as detailed in Table 2. This adjustment accounts for variations in hardware performance and implementation details across the different studies cited.
Figure 1.
SSSCSP—summary of the results obtained on dataset SET1.
Figure 2.
SSSCSP—summary of the results obtained on dataset ATP.
Figure 3.
SBSBPP—summary of the results obtained on dataset CLASS.
Table 2.
CPU conversion factor for SSSCSP.
Figure 1 and Figure 2 present the results for the instances of SET1 and ATP solved as two- and three-staged exact and non-exact problems. We compare our results with the exact algorithm proposed in [16] (SILVA) and the CG-based approach presented in [52] (RCCG) for the two-staged non-exact problem. It is important to note that the algorithm in SILVA was unable to attain a feasible solution for two instances (ATP31 and ATP40 for the three-staged exact problem, and ATP30 and ATP40 for the three-staged non-exact problem) within the computational time limit of 7200 s. The symbol * indicates that the approach failed to obtain a feasible solution for at least one instance within the time limit. The results highlight that, while the exact method achieves better results for this dataset, the computational time required grows significantly from two- to three-staged problems. Meanwhile, ASH maintains a low computational time across all instances. Both SILVA and RCCG also exhibit a noticeable increase in execution time from SET1 to ATP, demonstrating that the added complexity of the instances has a considerable impact on the performance of these approaches. It is worth noting that for the SET1 and ATP instances, the maximum gap to the optimal solution is two objects in only one instance. In contrast, for the other instances where ASH did not achieve the optimal solution, the gap is just one object.
Figure 3 presents the results compared to solution methods for solving the SBSBPP, with the CLASS dataset having an average demand close to 1. We compare our approach to those proposed by [36] (SNS) and [35] (VND), with the VND results retrieved from [36]. It is important to note that [36] reported the best results obtained from 30 runs of the SNS heuristic. SNS achieves better results in almost all subsets. Although a direct comparison is not possible, our approach seems to require much less time to solve these subsets. ASH, when compared with the SBSBPP specifically tailored heuristics, was able to attain good results, especially when compared with the VND heuristic. Considering the good computational results obtained and the simplicity of ASH implementation, one can conclude that the heuristics proposed are a very attractive approach to solve both the guillotine SSSCSP and the SBSBPP.
4.3. Single Large Object Placement Problem
Four datasets from the literature are used to test the performance of ASH and ASH combined with a path relinking procedure (ASH + PR) for the SLOPP. The main characteristics of the datasets are presented in Table 3. The columns show, in the order in which they appear, the name of the dataset, the number of instances, the dimensions of the objects ranges, the number of different item types, the item types dimension ranges, and the average demand. The dataset [11] (HR) and [30] (ATP) contains both weighted and unweighted instances. Datasets ATP[10–29], [8] (GCUT), and [53] (CMWX) were generated for unconstrained problems, which means the items do not have associated demand, denoted in Table 3 with the symbol -.
Table 3.
SLOPP—datasets.
The results obtained by ASH and by ASH + PR solving the four datasets are shown in Figure 4, Figure 5, Figure 6 and Figure 7. The for ASH + PR was set to 50.
Figure 4.
Constrained 2-staged exact SLOPP—summary of the results obtained on datasets HR.
Figure 5.
Constrained 2-staged non-exact SLOPP—summary of the results obtained on dataset ATP.
Figure 6.
Constrained 2-staged non-exact SLOPP—summary of the results obtained on dataset HR.
Figure 7.
Unconstrained SLOPP—summary of the results obtained on datasets GCUT and CMWX.
The columns in Figure 4, Figure 5 and Figure 6 are organised as follows. The first column indicates the first-cut direction (in bold) considered when solving the instances, along with the algorithm name. This is followed by the number of optimal solutions obtained, the average gap (%), and the execution time (in seconds), adjusted using the STR conversion factor presented in Table 4. The comparison with the approaches proposed by [11,30] does not use the STR conversion factor, as no STR values are available for the CPUs used in those studies (UltraSparc10 250 MHz and Intel Pentium II 350 MHz, respectively).
Table 4.
SLOPP—CPU conversion factor.
It is worth noting that to solve the problems with a vertical first-cut direction, we exchange the dimensions of both objects and item types and then solve the problem considering the horizontal first-cut direction.
Figure 4 presents the results obtained by solving the HR dataset as a constrained two-stage SLOPP with exact cuts. We compare our results with the algorithms presented in [11] denoted here as approximate and exact algorithms. From the results presented, we can observe the high-quality results that the ASH approaches obtained for this problem/dataset, achieving almost all the optimal solutions in both first-cut directions. It must be noted that both ASH approaches obtained a lower average gap than the approximate approach and that the computational times needed are very low.
Figure 5 and Figure 6 present the results obtained for dataset ATP[30–49] and HR, solving those datasets as the constrained two-staged non-exact SLOPP. We compare our results with the ones presented in [32] (GRASP_Piece, GRASP_Strip, and PR) and in [37] (LBS_d3 and GBS_d2). As can be observed, the GBS_d2 approach outperforms all the other heuristics. It can also be noted that ASH and ASH + PR obtain results similar to those obtained by the GRASP_Strip and PR proposed in [32]. These results demonstrate that ASH and the path relinking approach applied to the solutions obtained by ASH can obtain good results with a computational time that is extremely low. It is noteworthy that our path relinking, applied to a subset of the population of solution, does not produce a notable time overhead when compared with the ASH computational time and considerably improves the results obtained.
The results obtained for the GCUT and CMWX datasets solved as the unconstrained two-, four-, and non-staged SLOPP are presented in Figure 7. We compare the results obtained with the ones presented in [53]. The authors proposed two exact algorithms to solve the SLOPP based on dynamic programming called algorithm DP and SDP (the latter for the staged case). Figure 7 gives the average waste produced (%) and the average and maximum execution time (in seconds) observed. We only present the results obtained by ASH and ASH + PR with non-staged cuts because two-, four-, and non-staged presented the same results. We handle unconstrained problems by setting the demand for each item type as the maximum number of units that is possible to include in a pattern considering the object dimensions. From these results, we emphasise the low waste reduction from the two-staged patterns to the four-staged (and to the unstaged case solved by the algorithm CINTRADP) that may not justify the extra computational effort required by this cutting style, as already observed in [54].
Figure 8 presents the results for the dataset ATP, considering both unconstrained and constrained non-staged problems. We compare our results with the ones presented in [30] (CONS, GRASP, GRASP + PR, and TABU_500) for the guillotine unstaged case. Although ASH produces staged patterns, these are feasible for the problem considered in [30]. Figure 8 presents the average gap for both unconstrained (instances 10 to 29) and constrained (instances 30 to 49) unstaged problems (the optimums values used to calculate the gap were obtained in [30]). The last column gives the average time to solve all instances in the dataset. The results make clear that ASH and ASH + PR produce, in both unconstrained and constrained problems, very good results. The computational times are low, and the results are very close to those obtained by the GRASP and GRASP + PR.
Figure 8.
Non-staged SLOPP—summary of the results obtained on dataset ATP.
4.4. Performance Analysis and Discussion
The results obtained across the SET1, ATP, and CLASS datasets demonstrate that ASH consistently achieves high-quality solutions with reduced execution times. For the SSSCSP, although exact algorithms may identify lower object counts, their computational effort grows exponentially, particularly when moving from two-staged to three-staged configurations. In contrast, ASH produces solutions that are frequently within a single object of the optimum across tested instances, without incurring the associated computational cost. A similar pattern is observed in the SLOPP results, where the ASH+PR extension consistently delivers optimal or near-optimal patterns under a wide range of constraints. The inclusion of path relinking improves solution quality, particularly for datasets such as HR and ATP, while maintaining competitive execution times.
The performance of ASH across heterogeneous datasets can be related to the interaction between stochastic sequence generation and the constraints imposed by guillotine cutting patterns.
The results for the SSSCSP indicate that ASH performs more efficiently in instances with high demand density. In such cases, the frequency operator increases the impact of each generated pattern, allowing for a single solution to cover a significant portion of the residual demand. This reduces the number of subsequent calls to the 1D knapsack solver. In contrast, for instances such as those in the CLASS dataset, where demand is close to unitary, performance depends more on the diversification mechanism controlled by . Under these conditions, the search process is primarily driven by variations in item permutations rather than by frequency amplification. This indicates that ASH adapts its search behaviour according to the demand profile of the instance.
The method shows consistent behaviour in instances with heterogeneous item dimensions. In these cases, smaller items tend to occupy residual regions generated by the placement of larger items. The BubbleSearch mechanism allows for preserving the relative order of larger items while introducing controlled perturbations in the placement of smaller ones, based on the Kendall tau distance. This behaviour contributes to the quality of the generated patterns, often resulting in solutions that are close to those obtained by exact methods. In contrast, exact approaches may face scalability limitations due to the growth of the search space, particularly in multi-stage configurations. ASH addresses this by exploring the solution space through incremental modifications of item sequences, leading to stable solution quality across instances.
ASH may present reduced performance in non-staged problems with low item-to-bin area ratios. In such cases, the constructive process, Sequence to Pattern, constrains the exploration of alternative packing structures. However, within the context of guillotine cutting applications, the method consistently produces near-optimal solutions with low computational times. This suggests that the approach provides an effective balance between computational efficiency and solution quality for the problem class under consideration.
ASH bridges the gap between simple constructive methods and more complex metaheuristics. Its primary strategic advantage lies in the dynamic self-regulation enabled by the parameters. By modulating the probability of item permutation between and , the heuristic achieves a balanced trade-off between intensification and diversification. This mechanism allows for the algorithm to refine local optima through limited sequence perturbations, while preserving the ability to explore broader regions of the search space when progress stagnates, thereby escaping local optima that typically trap greedy approaches.
Several key characteristics of this heuristic can be highlighted. First, algorithmic synergy and versatility: a unified framework effectively addresses distinct problem typologies, including the SSSCSP and SLOPP, without requiring extensive problem-specific tuning or structural modifications. Second, learning capability: unlike memoryless heuristics, ASH incorporates a learning component by promoting the best-performing sequence as the basis for subsequent perturbations, progressively exploiting structural patterns of high-quality solutions. Third, computational efficiency: the heuristic achieves near-optimal results with a minimal parameter set and low computational overhead, making it significantly faster than state-of-the-art exact methods, whose computational cost becomes prohibitive as instance size increases. Finally, practical applicability: the simplicity of implementation, combined with robustness across multiple benchmark datasets and problem variants, positions this heuristic as a strong candidate for real-time applications in manufacturing environments.
5. Conclusions
In this article, we presented adaptive sequence-based heuristics designed to address the Single Stock-Size Cutting Stock Problem (SSSCSP) and the Single Large Object Placement Problem (SLOPP) under guillotine constraints. The primary strength of the approach lies in the stochastic sequence generation governed by the parameter, which provides a robust mechanism for balancing intensification and diversification. The implementation of path relinking further refined the results for the SLOPP, confirming that the structural exchange of patterns between high-quality solutions is a viable strategy for enhancing deterministic constructive routines. The experimental results demonstrate that the developed heuristics are effective, consistently reaching optimal or near-optimal solutions for the majority of tested instances and significantly outperforming established benchmarks in computational speed. The heuristics developed in this research were designed specifically to meet the criteria defined by [2] for a heuristic to support software transferability and end-user adoption. The accuracy and speed are evidenced by the results presented, while the simplicity of the -parameter mechanism ensures that the heuristics remains flexible for diverse applications.
Based on the findings of this research, several directions for further development have been identified. The first critical step will involve a systematic parametric sensitivity analysis to evaluate the impact of the parameters on solution quality across diverse problem topologies. By identifying the correlations between instance characteristics, such as item size variance and demand density, and the optimal values for and , a robust configuration framework can be established to ensure predictable performance in unknown scenarios. This foundational work will facilitate real-world industrial experimentation by validating ASH through direct application in manufacturing environments, such as glass or steel cutting facilities. Such practical implementations will allow for the testing of the algorithms against real-time production schedules and the incorporation of secondary industrial constraints, including material defect avoidance and load balancing for transport logistics. Furthermore, there is significant potential for generalising the adaptive sequence logic to other classes of combinatorial optimisation, e.g., Facility Location Problems. Finally, the integration of Machine Learning models to dynamically predict parameter settings in real time and the implementation of parallel processing techniques within the Phase I search represent promising avenues for further reducing execution times for large-scale datasets that require fast solution generation.
Author Contributions
All authors contributed equally to the conception and design of the study, the implementation of the research, the analysis and interpretation of the results, and the writing and revision of the manuscript. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
All datasets used are publicly available at https://github.com/Oscar-Oliveira/OR-Datasets (accessed on 26 March 2026).
Acknowledgments
This work has been supported by national funds through the FCT–Fundação para a Ciência e Tecnologia through project UIDB/04728/2025 (https://doi.org/10.54499/UID/04728/2025).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Wäscher, G.; Haußner, H.; Schumann, H. An improved typology of cutting and packing problems. Eur. J. Oper. Res. 2007, 183, 1109–1130. [Google Scholar] [CrossRef] [Scilit]
- Cordeau, J.F.; Gendreau, M.; Laporte, G.; Potvin, J.Y.; Semet, F. A guide to vehicle routing heuristics. J. Oper. Res. Soc. 2002, 53, 512–522. [Google Scholar] [CrossRef]
- Oliveira, Ó.; Gamboa, D.; Silva, E. Adaptive Sequence-Based Heuristic for Two-Dimensional Non-guillotine Packing Problems. In Proceedings of the Operational Research; Relvas, S., Almeida, J.P., Oliveira, J.F., Pinto, l.A., Eds.; Operational Research. APDIO 2019. Springer Proceedings in Mathematics & Statistics; Springer: Cham, Switzerland, 2021; Volume 374, pp. 95–107. [Google Scholar] [CrossRef] [Scilit]
- Oliveira, Ó.; Matos, T.; Gamboa, D. Adaptive Sequence-Based Heuristic for the Three-Dimensional Bin Packing Problem. In Proceedings of the Learning and Intelligent Optimization; Matsatsinis, N.F., Marinakis, Y., Pardalos, P., Eds.; Learning and Intelligent Optimization. LION 2019. Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2020; Volume 11968, pp. 69–76. [Google Scholar] [CrossRef] [Scilit]
- Gilmore, P.C.; Gomory, R.E. A linear programming approach to the cutting-stock problem. Oper. Res. 1961, 9, 849–859. [Google Scholar] [CrossRef] [Scilit]
- Gilmore, P.C.; Gomory, R.E. Multistage cutting stock problems of two and more dimensions. Oper. Res. 1965, 13, 94–120. [Google Scholar] [CrossRef] [Scilit]
- Beasley, J.E. An Exact Two-Dimensional Non-Guillotine Cutting Tree Search Procedure. Oper. Res. 1985, 36, 49–64. [Google Scholar] [CrossRef] [Scilit]
- Beasley, J.E. Algorithms for Unconstrained Two-Dimensional Guillotine Cutting. J. Oper. Res. Soc. 1985, 36, 297–306. [Google Scholar] [CrossRef] [Scilit]
- Morabito, R.; Arenales, M.N. Performance of Two Heuristics for Solving Large Scale Two-Dimensional Guillotine Cutting Problems. INFOR Inf. Syst. Oper. Res. 1995, 33, 145–155. [Google Scholar] [CrossRef] [Scilit]
- Hifi, M. Exact algorithms for large-scale unconstrained two and three staged cutting problems. Comput. Optim. Appl. 2001, 18, 63–88. [Google Scholar] [CrossRef] [Scilit]
- Hifi, M.; Roucairol, C. Approximate and Exact Algorithms for Constrained (Un) Weighted Two-dimensional Two-staged Cutting Stock Problems. J. Comb. Optim. 2001, 5, 465–494. [Google Scholar] [CrossRef] [Scilit]
- Hifi, M.; M’Hallah, R. An exact algorithm for constrained two-dimensional two-staged cutting problems. Oper. Res. 2005, 53, 140–150. [Google Scholar] [CrossRef] [Scilit]
- Lodi, A.; Monaci, M. Integer linear programming models for 2-staged two-dimensional Knapsack problems. Math. Program. 2003, 94, 257–278. [Google Scholar] [CrossRef] [Scilit]
- Lodi, A.; Martello, S.; Vigo, D. Models and bounds for two-dimensional level packing problems. J. Comb. Optim. 2004, 8, 363–379. [Google Scholar] [CrossRef] [Scilit]
- Macedo, R.; Alves, C.; de Carvalho, J.M.V. Arc-flow model for the two-dimensional guillotine cutting stock problem. Comput. Oper. Res. 2010, 37, 991–1001. [Google Scholar] [CrossRef] [Scilit]
- Silva, E.M.d.C.; Alvelos, F.; de Carvalho, J.M.V. An integer programming model for two- and three-stage two-dimensional cutting stock problems. Eur. J. Oper. Res. 2010, 205, 699–708. [Google Scholar] [CrossRef] [Scilit]
- Belov, G.; Scheithauer, G. A branch-and-cut-and-price algorithm for one-dimensional stock cutting and two-dimensional two-stage cutting. Eur. J. Oper. Res. 2006, 171, 85–106. [Google Scholar] [CrossRef] [Scilit]
- Puchinger, J.; Raidl, G.R. Models and algorithms for three-stage two-dimensional bin packing. Eur. J. Oper. Res. 2007, 183, 1304–1327. [Google Scholar] [CrossRef] [Scilit]
- Dolatabadi, M.; Lodi, A.; Monaci, M. Exact algorithms for the two-dimensional guillotine knapsack. Comput. Oper. Res. 2012, 39, 48–53. [Google Scholar] [CrossRef] [Scilit]
- Fleszar, K. An Exact Algorithm for the Two-Dimensional Stage-Unrestricted Guillotine Cutting/Packing Decision Problem. INFORMS J. Comput. 2016, 28, 703–720. [Google Scholar] [CrossRef] [Scilit]
- Furini, F.; Malaguti, E.; Thomopulos, D. Modeling Two-Dimensional Guillotine Cutting Problems via Integer Programming. INFORMS J. Comput. 2016, 28, 736–751. [Google Scholar] [CrossRef] [Scilit]
- Berkey, J.O.; Wang, P.Y. Two-Dimensional Finite Bin-Packing Algorithms. J. Oper. Res. Soc. 1987, 38, 423. [Google Scholar] [CrossRef] [Scilit]
- Fayard, D.; Zissimopoulos, V. An approximation algorithm for solving unconstrained two-dimensional knapsack problems. Eur. J. Oper. Res. 1995, 84, 618–632. [Google Scholar] [CrossRef] [Scilit]
- Fayard, D.; Hifi, M.; Zissimopoulos, V. An efficient approach for large-scale two-dimensional guillotine cutting stock problems. J. Oper. Res. Soc. 1998, 49, 1270–1277. [Google Scholar] [CrossRef] [Scilit]
- Morabito, R.; Arenales, M.N.; Arcaro, V.F. An and-or-graph approach for two-dimensional cutting problems. Eur. J. Oper. Res. 1992, 58, 263–271. [Google Scholar] [CrossRef] [Scilit]
- Morabito, R.; Arenales, M.N. Staged and constrained two-dimensional guillotine cutting problems: An AND/OR-graph approach. Eur. J. Oper. Res. 1996, 94, 548–560. [Google Scholar] [CrossRef] [Scilit]
- Lai, K.K.; Chan, J.W.M. Developing a simulated annealing algorithm for the cutting stock problem. Comput. Ind. Eng. 1997, 32, 115–127. [Google Scholar] [CrossRef] [Scilit]
- Gonçalves, J.F. A hybrid genetic algorithm-heuristic for a two-dimensional orthogonal packing problem. Eur. J. Oper. Res. 2007, 183, 1212–1229. [Google Scholar] [CrossRef] [Scilit]
- Gonçalves, J.F.; Resende, M.G.C. A parallel multi-population genetic algorithm for a constrained two-dimensional orthogonal packing problem. J. Comb. Optim. 2011, 22, 180–201. [Google Scholar] [CrossRef] [Scilit]
- Alvarez-Valdés, R.; Parajón, A.; Tamarit, J.M. A tabu search algorithm for large-scale guillotine (un)constrained two-dimensional cutting problems. Comput. Oper. Res. 2002, 29, 925–947. [Google Scholar] [CrossRef] [Scilit]
- Alvarez-Valdés, R.; Parreño, F.; Tamarit, J.M. A GRASP algorithm for constrained two-dimensional non-guillotine cutting problems. J. Oper. Res. Soc. 2005, 56, 414–425. [Google Scholar] [CrossRef] [Scilit]
- Alvarez-Valdés, R.; Martí, R.; Tamarit, J.M.; Parajón, A. GRASP and path relinking for the two-dimensional two-stage cutting-stock problem. INFORMS J. Comput. 2007, 19, 261–272. [Google Scholar] [CrossRef] [Scilit]
- Wei, L.; Oon, W.C.; Zhu, W.; Lim, A. A skyline heuristic for the 2D rectangular packing and strip packing problems. Eur. J. Oper. Res. 2011, 215, 337–346. [Google Scholar] [CrossRef] [Scilit]
- Faroe, O.; Pisinger, D.; Zachariasen, M. Guided Local Search for the Three-Dimensional Bin-Packing Problem. INFORMS J. Comput. 2003, 15, 267–283. [Google Scholar] [CrossRef] [Scilit]
- Alvelos, F.; Chan, T.M.; Vilaca, P.; Gomes, T.; Silva, E.M.d.C.; de Carvalho, J.M.V. Sequence based heuristics for two-dimensional bin packing problems. Eng. Optim. 2009, 41, 773–791. [Google Scholar] [CrossRef] [Scilit]
- Chan, T.M.; Alvelos, F.; Silva, E.M.d.C.; De Carvalho, J. Heuristics with stochastic neighborhood structures for two-dimensional bin packing and cutting stock problems. Asia-Pac. J. Oper. Res. 2011, 28, 255–278. [Google Scholar] [CrossRef] [Scilit]
- Hifi, M.; M’Hallah, R.; Saadi, T. Algorithms for the constrained two-staged two-dimensional cutting problem. INFORMS J. Comput. 2008, 20, 212–221. [Google Scholar] [CrossRef] [Scilit]
- Blum, C.; Schmid, V. Solving the 2D bin packing problem by means of a hybrid evolutionary algorithm. Procedia Comput. Sci. 2013, 18, 899–908. [Google Scholar] [CrossRef] [Scilit]
- Kierkosz, I.; Luczak, M. A hybrid evolutionary algorithm for the two-dimensional packing problem. Cent. Eur. J. Oper. Res. 2014, 22, 729–753. [Google Scholar] [CrossRef] [Scilit]
- Monaci, M.; Toth, P. A Set-Covering-Based Heuristic Approach for Bin-Packing Problems. INFORMS J. Comput. 2006, 18, 71–85. [Google Scholar] [CrossRef] [Scilit]
- Lodi, A.; Martello, S.; Vigo, D. Heuristic and metaheuristic approaches for a class of two-dimensional bin packing problems. INFORMS J. Comput. 1999, 11, 345–357. [Google Scholar] [CrossRef] [Scilit]
- Oliveira, O.; Gamboa, D.; Silva, E. An introduction to the two-dimensional rectangular cutting and packing problem. Int. Trans. Oper. Res. 2022, 30, 3238–3266. [Google Scholar] [CrossRef] [Scilit]
- Lesh, N.; Marks, J.; McMahon, A.; Mitzenmacher, M. New heuristic and interactive approaches to 2D rectangular strip packing. J. Exp. Algorithmics 2005, 10, 1–2. [Google Scholar] [CrossRef] [Scilit]
- Lesh, N.; Mitzenmacher, M. BubbleSearch: A simple heuristic for improving priority-based greedy algorithms. Inf. Process. Lett. 2006, 97, 161–169. [Google Scholar] [CrossRef] [Scilit]
- Martello, S.; Vigo, D. Exact Solution of the Two-Dimensional Finite Bin Packing Problem. Manag. Sci. 1998, 44, 388–399. [Google Scholar] [CrossRef] [Scilit]
- Pisinger, D. A Minimal Algorithm for the Bounded Knapsack Problem. INFORMS J. Comput. 2000, 12, 75–82. [Google Scholar] [CrossRef] [Scilit]
- Glover, F.; Laguna, M.; Martí, R. Fundamentals of scatter search and path relinking. Control Cybern. 2000, 39, 653–684. [Google Scholar]
- Oliveira, Ó.; Gamboa, D.; Silva, E. Resources for Two-Dimensional (and Three-Dimensional) Cutting and Packing Solution Methods Research. In Proceedings of the 16th International Conference on Applied Computing 2019; Weghorn, H., Ed.; Number 9; IADIS Press: Lisbon, Portugal, 2019; pp. 131–138. [Google Scholar] [CrossRef] [Scilit]
- Hooker, J.N. Testing heuristics: We have it all wrong. J. Heuristics 1995, 1, 33–42. [Google Scholar] [CrossRef] [Scilit]
- Csébfalvi, A.; Csébfalvi, G. Fair comparison of population-based heuristic approaches the evils of competitive testing. In Proceedings of the IJCCI 2012—Proceedings of the 4th International Joint Conference on Computational Intelligence; SciTePress: Setúbal, Portugal, 2012; pp. 306–309. [Google Scholar] [CrossRef] [Scilit]
- Souto, G.; Morais, I.; Mauri, G.R.; Ribeiro, G.M.; González, P.H. A hybrid matheuristic for the Two-Stage Capacitated Facility Location problem. Expert Syst. Appl. 2021, 185, 115501. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Zhao, Z. Heuristic for the rectangular two-dimensional single stock size cutting stock problem with two-staged patterns. Eur. J. Oper. Res. 2013, 231, 288–298. [Google Scholar] [CrossRef] [Scilit]
- Cintra, G.; Miyazawa, F.K.; Wakabayashi, Y.; Xavier, E. Algorithms for two-dimensional cutting stock and strip packing problems using dynamic programming and column generation. Eur. J. Oper. Res. 2008, 191, 61–85. [Google Scholar] [CrossRef] [Scilit]
- Farley, A.A. Selection of stockplate characteristics and cutting style for two dimensional cutting stock situations. Eur. J. Oper. Res. 1990, 44, 239–246. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.







