Acessibilidade / Reportar erro

IMPROVED BIASED RANDOM KEY GENETIC ALGORITHM FOR THE TWO-DIMENSIONAL NON-GUILLOTINE CUTTING PROBLEM

ABSTRACT

The two-dimensional cutting problem has a direct relationship with industry problems. There are several proposals to solve these problems. In particular, solution proposals using metaheuristics are the focus of this research. Thus, in this paper, we present a specialized biased random key genetic algorithm. Several tests were performed using known instances in the specific literature, and the results found by the metaheuristics proposed were, in many cases, equal or superior to the results already published in the literature. Another comparison of results presented in this paper is related to the results obtained by specialized metaheuristics and the results found by a mathematical model using commercial software. Once again, in this case, the genetic algorithm presented results equal to or very close to the optimum found by the mathematical model. In addition, the optimization proposal was extended to two-dimensional non-guillotine cutting without parts orientation.

Keywords:
Genetic algorithm; metaheuristics; two-dimensional cutting problem

1 INTRODUCTION

In the stage of globalization which the markets currently are, products with competitive prices have been increasingly sought by industries. For that reason, we have invested in optimizing industrial processes to achieve the necessary competitiveness. Several types of problems arise when it comes to optimizing production processes, among them, there is the two-dimensional non-guillotine cutting problem.

The problem was introduced in literature by Gilmore and Gomory (1961GILMORE P & GOMORY R. 1961. A linear programming approach to the cutting stock problem. Operational Research, 9: 849-859.). According to Alvarez-Valdes et al. (2007)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182., it consists of cutting rectangular pieces from a larger rectangular plate, made of steel, cloth, paper, glass, or wood, or even placing advertisements on the pages of newspapers and magazines to maximize the total value of the pieces cut, or to minimize material waste if the value of a part is taken to be proportional to its area (Hadjiconstantinou; Christofides, 1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.), where only two dimensions are considered by the problem under study in which the laser cutting technique is used.

Often, what is observed in the industry are pieces with high added value that must be cut from a plate, but these isolated pieces are not the product ready to be delivered. For the product to be finished by the industry, this high-value piece should interact with other parts whose value is smaller, but no less important for the delivery of the final product. Thus, the raw material cutting industry is forced to cut the pieces of lesser value, and from such an impasse, the lower and upper bounds applied to the quantity of each piece to be cut arise. Although it is interesting for the industry to cut the most valuable parts, the constraints of the two bounds must be respected.

Among the cutting problems, there are those that are guillotined and those that are non- guillotined. In several industries, the cutting equipment operates in such a way that any cut made on a rectangle should be performed in a straight line from one edge of the plate to another. This type of cut is referred to as a guillotine cut (Lai, Chan, 1997LAI KK & CHAN JWM. 1997. Developing a Simulated Annealing Algorithm for the Cutting Stock Problem. Computers & Industrial Engineering, 32: 115-127.). However, in some applications, the guillotine cut is not the most suitable one, making it possible to use another cutting technique called laser-cut, allowing non-guillotine cutting.

This paper aims to identify the application of a metaheuristic in the resolution of the two- dimensional non-guillotine cutting problem. Particularly, as a comparative basis, the papers analyzed were the ones by Alvarez-Valdes et al. (2007)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182., in which the tabu search metaheuristic was used, by Lai and Chan (1997LAI KK & CHAN JWM. 1997. Developing a Simulated Annealing Algorithm for the Cutting Stock Problem. Computers & Industrial Engineering, 32: 115-127.), in which the simulated annealing metaheuristic was chosen, and by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), in which the genetic algorithm metaheuristic was applied to solve the problem. As a specific objective, this work proposed to apply metaheuristics to solve the problem, which is the biased random key genetic algorithm (BRKGA), proposed by Gonçalves and Resende (2013)GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510., adding significant improvements to its implementation, and therefore to formulate a proposal that is better performing. A secondary objective is to show the performance of the optimization solver to solve the mathematical model of the problem.

There are several additional proposals in the specialized literature that address the two- dimensional non-guillotined cutting problem. Arenales and Morabito (1995ARENALES M & MORABITO R. 1995. An AND/OR-graph approach to the solution of two- dimensional non-guillotine cutting problems. European Journal of Operational Research , 84: 599-617.) address the unconstrained problem using a branch and bound strategy by using AND/OR logic and using additional heuristic rules to reduce the search space. In Leung et al. (2001LEUNG TW, YUNG CH & TROUTT MD. 2001. Application of genetic search and Simulated Annealing to the two-dimensional non-guillotine cutting stock problem. Computers & Industrial Engineering , 40: 201-214.), the unconstrained problem is approached by using the genetic algorithm and simulated annealing metaheuristics for the problem with fixed orientation and by performing tests using eight instances. In Beasley (2004BEASLEY JE. 2004. A population heuristic for constrained two-dimensional non-guillotine cutting. European Journal of Operational Research , 156: 601-627.), the constrained problem without rotation is approached by using a population heuristic which is a modified genetic algorithm. In Baldaci and Boschetti (2007BALDACI R & BOSCHETTI M. 2007. A cutting-plane approach for the two-dimensional orthogonal non-guillotine cutting problems. European Journal of Operational Research , 183: 1136-1149.), a two-level proposal is presented in which a subset of parts to be allocated is selected at the first level, and the possibility of finding feasible solutions is verified at the second level. The proposal can improve the upper bounds of several complex instances. In Ayadi et al., a new implementation version of the particle swarm optimization (PSO) metaheuristics is proposed which incorporates a heuristic strategy existing in the specialized literature. In Wei et al. (2018WEI L, HU Q, LIM A & LIU Q. 2018. A best-fit branch and bound heuristic for the unconstrained two-dimensional non-guillotine cutting problems. European Journal of Operational Research , 270: 448-474.), a proposal based on the best-fit branch and bound method is presented. This proposal is supported by a greedy heuristic to generate complete solution proposals from a partial solution within the branch and bound structure. Due to the diversity of variants used in tests, only a comparative analysis with some of these proposals is presented in the testing phase.

This paper is organized into sections: section 2 presents the mathematical model of the problem; section 3 describes the specialized BRKGA to optimize the two-dimensional non-guillotine cutting problem; in section 4, the results found in this work are presented and analyzed; section 5 describes the conclusions and final considerations of the paper.

2 MATHEMATICAL MODEL

Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.) describe the mathematical model for the two- dimensional, orthogonal, non-guillotine, part-oriented, and constrained related to the upper bound problems in the following way:

Let A0 = (α 0 , β 0) be a rectangular plate with length α 0 and height β 0, and let R be a set of m smaller rectangular pieces R 1 , R 2 ,..., R m with dimensions (α 1 , β 1), (α 2 , β 2),..., (α m , β m ) and with corresponding values v 1 , v 2 , . . ., v m for each piece of R. The objective is to build a non-guillotine cutting pattern for A 0 with the highest total value using no more than Q i copies of each piece R i for all i = 1, . . ., m. There is also a minimum requirement of P i copies of each piece R i to be used in the cutting pattern.

Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.) assumed the following hypotheses: (i) All dimensions (αi, βi ), for i = 0, ..., m, are assumed to be integers, therefore, cuts on the plates must be made in whole steps along the axes x or y. This limitation is not considered serious by the authors, since the real dimensions can be extended in practice; (ii) The orientation of the pieces is considered fixed, that is to say, a piece of length e and height f is different from a piece of length f and height e; (iii) Each piece should be cut with its edges parallel to the edges of the plate (orthogonal cuts).

To formulate the problem as a binary programming problem, the following was defined

L i = x 0 x α 0 - α i , x i n t e g e r }

as the set of all possible points x along the length of A 0, so that any piece R i of the set R can be cut from A 0 with its height parallel to the axis y and the cut piece has its lower-left corner in any xL i . In the same way, the authors defined the following:

W i = y 0 y β 0 - β i , y i n t e g e r } .

The sets L i and W i are defined for i = 1, . . ., m. In addition, it is defined that:

x i j p = 1 , i f t h e j t h copy of the piece i is cut with its lower-left corner at x-position p where j = 1 , . . . , Q i and p L i , 0 , o t h e r w i s e .

y i j q = 1 , i f t h e j t h copy of the piece i is cut with its lower-left corner at y-position p where j = 1 , . . . , Q i and q W i . 0 , o t h e r w i s e .

zrs = 1 if thepoint (r, s) ∈ A 0 , wherer = 0, . . ., α 0 1 ∧ s = 0, . . ., β 0 1, was not cut by any piece of the set R.

The mathematical formulation of Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.) takes the following form:

m a x i m i z e Z = i = 1 m v i j = 1 Q p L x i j p (1)

subject to

s = q q + β 1 - 1 r = p p + α 1 - 1 z r s ( 2 - x i j p - y i j q ) α i β i , i = 1 , , m , j = 1 , , Q i p L i , q W i , (2)

p L i x i j p 1 , i = 1 , , m , j = 1 , , Q i , (3)

p L i x i j p = q W i y i j q , i = 1 , , m , j = 1 , , Q i , (4)

i = 1 m β i j = 1 Q i p = r - α 1 + 1 , p L i r x i j p + s = 0 β 0 - 1 z r s = β 0 , r = 0 , , α 0 - 1 , (5)

i = 1 m α i j = 1 Q i q = s - β 1 + 1 , q W i s y i j q + r = 0 α 0 - 1 z r s = α 0 , s = 0 , , β 0 - 1 , (6)

x i j p , y i j q 0 , 1 , i = 1 , , m , j = 1 , , Q i , p L i , q W i , (7a)

z r s 0 , 1 , r = 0 , , α 0 - 1 , s = 0 , , β 0 - 1 . (7b)

Constraint (2) ensures that any point in A 0 be cut in one piece at most. Constraints (3) and (4) express the fact that any piece is cut at most once in A 0. Constraint (5) ensures that not all pieces of the set R, whose sum of heights exceeds β 0, can be cut in A 0 with the same length, having the left lower corners of each piece as the origin. Likewise, constraint (6) ensures that if the sum of the lengths of the pieces exceeds α 0, then not all of these pieces can be cut into A 0 with the same height, having its lower-left corners as origin.

This model is a complete formulation of the two-dimensional cutting, orthogonal, non- guillotined problem involving approximately constraints and integer variables in the following way:

N c = 2 i = 1 m Q i + i = 1 m Q i L i W i + α 0 + β 0 (8)

and

N v = i = 1 m Q i L i + W i + α 0 β 0 . (9)

According to Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.), the size of this formulation depends on the total number of pieces in R and the maximum number Q i of copies of each piece that can be used for cutting. A sequence of cuts in R is called the cutting pattern.

According to Alvarez-Valdes et al. (2007)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182., depending on the values of the lower bound, P i , and the upper bound, Q i , of the pieces R i to be cut on the plate R, three types of problems can be distinguished: unconstrained, constrained, and doubly constrained. The first problem is called unconstrained, in which there are no lower and upper constraints that must be met, the only constraint is related to respecting the boundaries of the plate area R. In the constrained problem, there is only one constraint related to the upper bound. In this problem, all pieces R i to be cut in R, do not have a minimum number of copies to be cut, but there is a constraint on the maximum number of copies for any R i pieces. The upper bound indicates that up to Q i copies of pieces R i can be cut into a plate R. If the sum of the areas of the Q i copies of the piece R i is smaller than the area of the plate R, and all copies of the piece R i have already been used in cutting the plate, even if there is a possibility of cutting more copies of this piece R i , it cannot be done, because the upper bound has been reached and this constraint must be respected. Similarly, if the sum of the areas of Q i pieces R i is greater than the area of the plate R, not all copies of this part will be used, so the constraint continues to be respected but without using all the copies available through the upper bound.

The latter type of problem is doubly constrained when there are lower and upper bounds that must be respected by any R i pieces to be cut on the plate R. Therefore, it is possible to cut a number of copies of the part ranging from the value of its lower bound to the value of its upper bound, in a way that the two constraints imposed by the latter problem are respected.

3 SPECIALIZED BIASED RANDOM KEY GENETIC ALGORITHM

The BRKGA was proposed by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.) and brings some differences in relation to the traditional genetic algorithm. However, to understand its operation, it is necessary first to define the random key genetic algorithm (RKGA).

3.1 Random Key Genetic Algorithm

Introduced by Bean (1994BEAN JC. 1994. Genetic algorithms and random keys for sequencing and optimization. ORSA Journal on Computing, 6: 154-160.), the RKGAs have their chromosomes represented by vectors with n elements, which assume values generated randomly in the real interval [0, 1]. For that reason, a proposed solution is depicted in encoded form and must be decoded using a decoder.

The decoder is a deterministic algorithm that uses a chromosome as input, associating it with a solution of the combinatorial optimization problem, for which a target value or fitness can be calculated (GONÇALVES; RESENDE, 2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.).

According to Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), an RKGA generates a population of random key vectors during a number of generations. The initial population consists of p vectors of n random keys. Each component of the solution vector, or random key, is independently and randomly generated in the real interval [0, 1]. After the fitness of each individual is calculated by the decoder in the generation g, the population is partitioned into two groups of individuals: a small group of p e elite individuals, in other words, those with the best fitness values, and a group formed by the rest of the population, set of p - p e non-elite individuals. To evolve from generation g to generation g + 1, a new generation of individuals is produced. The RKGA algorithm uses elitism. All the elite individuals of the population of generation g are copied unmodified to the population of generation g + 1. Two other strategies are used by the RKGAs to complete the formation of generation g + 1, that is, the mutation and recombination operators.

The RKGAs implement mutation by introducing mutants into the current population. A mutant is created as a vector of random keys, generated in the same way as an element of the initial population. With each generation, a small number of mutants p m is introduced into the population. Mutants replace the mutation strategy used in the traditional genetic algorithm (GONÇALVES; RESENDE, 2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.).

The population of the next generations will be composed of elite individuals ( p e ), mutant individuals ( p m ), and individuals produced by the recombination process. With p e + p m individuals representing the population of the g + 1, p− p e − p m , additional individuals need to be generated to complete the p individuals that make up the population of the g + 1. This is accomplished by producing p− p e − p m solutions through the recombination process.

In the RKGA, as in the BRKGA, there is no conventional selection operator. This is exactly where the two random key algorithms differ.

3.2 Biased Random Key Genetic Algorithm

In the BRKGA proposed by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), each descendant is generated by combining an individual randomly selected from the elite partition of the current population. For the selection of the second individual, there are two strategies: in the first strategy, the second individual is obtained by selecting it from the non-elite partition of the current population; and in the second strategy, the second individual is obtained by selecting it from the current population, which includes both the elite and the non-elite partitions. It should be noted that the selection operator is implicitly present.

The word biased in the BRKGA, incorporated by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), is used to show that recombination is not purely random. That is, one of the generating solutions must necessarily be an elite (biased), as opposed to the original proposal, in which the two generating solutions can be of the population as a whole. The other biased component appears when a single descendant is generated.

It should be noted that each recombination is performed independently and, therefore, one individual can produce more than one descendant in the same generation. As in RKGAs, BRKGAs implement parameterized uniform recombination (SPEARS; DEJONG, 1991SPEARS WM & DEJONG KA. 1991. On the virtues of parameterized uniform crossover. International Conference on Genetic Algorithms, 4., San Diego. Proceedings. San Diego: University of California, p. 230-236.).

In this type of recombination, there is the probability qe which will serve as a flag parameter to know if the component n, of the descending vector C, will be inherited from parent A or parent B. It is important to remember that n denotes the number of components in a solution vector of an individual. For i = 1, ..., n, the i th component of c(i) of the downstream vector C assumes the value of the i th component a(i) of elite parent A with probability q e or value of i th component b(i) of parent B from the population with probability 1 −q e .

The value used for q e is high and is typically chosen q e = 0,7. Thus, in each case, there is a probability of 0,7 for the value stored in A to be copied into the descending C being generated. This strategy allows most of the elements copied in C to be elements stored in the elite solution, making the reasons why only one descendant is generated clear.

When the next population is generated, the values of fitness of these individuals are calculated using the decoder, and the population is partitioned into elite and non-elite individuals to start a new generation until the stopping criterion is satisfied.

3.3 Specialized Genetic Algorithm

The specialized algorithm was based on the BRKGA proposed by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), but it considers some processes that were necessary to improve the performance when solving the problem under consideration.

3.3.1 Functioning of the Specialized BRKGA

Next, in Algorithm 1, we have a description of the operation of the specialized BRKGA.

Algorithm 1
Specialized Biased Random Key Genetic Algorithm

In Algorithm 1, it is noticed that the specialized genetic algorithm maintains some characteristics of the traditional genetic algorithm, such as the initial population generation, fitness calculation, recombination, mutation, and stopping criterion. Only a few phases were added, such as the decoding of each individual (solution proposal), the transformation of these individuals into cutting patterns, and the use of the elite group in the recombination.

In Algorithm 2, there is the description of the CHA sub-algorithm.

Algorithm 2
Constructive Heuristic Algorithm (CHA)

It can be seen in Algorithm 2 that the CHA determines how and where each piece is cut on the plate, picking the plate and the free rectangle to cut from it.

3.3.2 Formation of blocks

In the algorithm proposed in this paper, the block with equal parts is constructed. This procedure of grouping the plates into blocks was not used in the BRKGA proposed by Gonçalves and Resende (2013GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.), so it is an improvement applied to the specialized RKGA proposed in this paper.

Pieces p i are placed side by side until no more space is available within the free rectangle chosen to allocate more pieces, or until the availability of the pieces p i is exhausted. Only after pieces p i are placed next to each other, and if more pieces of the same type are available to be used in the block construction, pieces p i are to be allocated above the pieces p i already allocated in the free rectangle, so it will occur successively until the quantity of pieces p i used in the construction of the block is ≤Q i . Consequently, a block with a rectangular or square geometric shape is guaranteed.

3.3.3 Scanning Free Rectangles

During the research, it was found that the identification of free rectangles on the plate is important for the success of the algorithm because identifying free rectangles makes it possible to choose which rectangle to use in the next cut inside the plate.

The purpose of this paper is to trace the plate by mapping the spaces that are available for further cuts. The procedure works as a scanner by mapping the board from top to bottom and from left to right. This is another improvement, proposed in this paper, to be applied to the specialized BRKGA, and it is also an unprecedented contribution of this work since the type of scanning done on the plate is different from those found in the specialized literature.

When a space is identified as free, it is added to it all the free and sequential spaces that are just below it. Then, following the same procedure, the free spaces to the right are added, obeying the height delimitation performed by the first column of the scan, thus originating a free rectangle. Using this logic, scanning is performed from top to bottom.

In the same way, scanning from left to right is used. When a space is identified as free, all the free and sequential spaces that are to its right are added to it.

After obtaining the free rectangles, the process of difference and elimination proposed by Lai and Chan (1997LAI KK & CHAN JWM. 1997. Developing a Simulated Annealing Algorithm for the Cutting Stock Problem. Computers & Industrial Engineering, 32: 115-127.) is applied.

4 RESULTS AND DISCUSSION

4.1 Tests

The test instances were obtained from the OR-Library website (2017OR-LIBRARY. 2017. Operations Research (OR) problems. Online. http://people.brunel.ac.uk/mastjjb/jeb/info.html. Access on: 20 Apr. 2017.
http://people.brunel.ac.uk/mastjjb/jeb/i...
). The OR-Library (2017)OR-LIBRARY. 2017. Operations Research (OR) problems. Online. http://people.brunel.ac.uk/mastjjb/jeb/info.html. Access on: 20 Apr. 2017.
http://people.brunel.ac.uk/mastjjb/jeb/i...
set of tests is composed of 21 cases extracted from the specialized literature, 12 instances of Beasley (1985BEASLEY JE. 1985. An exact two-dimensional non-guillotine cutting tree search procedure. Operations Research, 33: 49-64.), 2 instances of Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.), 1 instance of Wang (1983WANG PY. 1983. Two algorithms for constrained two-dimensional cutting stock problems. Operations Research , 31(3): 573-586.), 1 instance of Christofides and Whitlock (1977)CHRISTOFIDES N & WHITLOCK C. 1977. An algorithm for two-dimensional cutting problems. Operations Research , 25(1): 30-44., and 5 instances of Fekete and Scheppers (1997FEKETE SP & SCHEPERS J. 1997. On more-dimensional packing iii: Exact algorithms. Technical Report 97-290. Technical University of Berlin.).

The algorithm was run using a laptop with an Intel Core i7 processor, 8GB of RAM, and the FORTRAN programming language was used. The time required for processing did not increase substantially in the different test cases, reaching an average execution time of 5 seconds.

As a comparison, the test cases were also submitted to the mathematical model proposed by Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.) to solve the two-dimensional non-guillotine cutting problem with fixed orientation pieces. The model was programmed and tested in AMPL, using the solver CPLEX version 12.6.3 as the solver. In the execution of AMPL, it was used a Dell PowerEdge T430, with Linux Operating System (Debian distribution), with two 12 Cores/24 Threads Intel® Xeon® Processors E5-2650 v4 2.2GHz and 64 GB of RAM. The first 14 cases had an execution time of 1 to 10 seconds, but the last 6 cases had execution time greater than 24 hours.

To perform a fair comparison with the results obtained by the mathematical model tested in AMPL, the specialized algorithm proposed in this paper also considered the pieces with fixed orientation. In addition, in the specialized literature, both metaheuristic algorithms and exact methods also consider only this type of orientation.

Therefore, the 21 cases were tested with two algorithms, which are:

System I - The mathematical model, programmed in the AMPL proposed by Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.) to solve the two-dimensional non-guillotine cutting problem with fixed orientation of the pieces.

System II - Specialized random key genetic algorithm with fixed orientation of the pieces.

System III - Specialized random key genetic algorithm with free orientation of the pieces which are tests that cannot be compared with other optimization proposals.

4.2 Analysis and Discussion of Results

The specialized algorithms proposed in this work were able to solve the two-dimensional non- guillotine cutting problem. The results are shown in Table 1, where it is possible to analyze the results obtained by this paper, comparing them with the results of works that are already published and taken as references in the specialized literature.

Table 1
Comparison of Computational Results Considering Fixed and Free Orientation.

When analyzing the data contained in Table 1, the following are shown: in the second column, the data obtained by Beasley (1985BEASLEY JE. 1985. An exact two-dimensional non-guillotine cutting tree search procedure. Operations Research, 33: 49-64.) are presented using an exact method as a solution technique; the third column shows the results obtained by Alvarez-Valdes et al. (2005)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425. in which the GRASP metaheuristics to solve the problem under study were used; the fourth column shows the results obtained by Alvarez-Valdes et al. (2007)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182. in which the Tabu Search metaheuristics to solve the same problem were used; the fifth column presents the results obtained by System I by using the mathematical model proposed by Hadjiconstantinou and Christofides (1995HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.), and the problem was solved using CPLEX; the following columns show the results obtained by System II with a specialized algorithm using fixed orientation of parts, and by System III with the specialized algorithm using free orientation of parts.

Comparing the results, System I presented better solutions in relation to Beasley (1985BEASLEY JE. 1985. An exact two-dimensional non-guillotine cutting tree search procedure. Operations Research, 33: 49-64.), which compares two exact methods applied to solve the same problem with the same tested instances. The results obtained by System I are considered optimal solutions and were used as comparison parameters to evaluate specialized metaheuristics.

The results presented by the GRASP metaheuristic of Alvarez-Valdes et al. (2005)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425. are very close to the optimal results of System I; only in three test cases the results were inferior (cases 17, 18, and 19).

The results presented by the tabu search metaheuristics of Alvarez-Valdes et al. (2007)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182. are identical to the results found by System I.

In terms of the results obtained by System II proposed in this work, using specialized metaheuristics, it was also found that the results are close to the optimal solutions of System I, so they are good-quality results; still, there were six test cases with results lower than optimal (cases 1, 3, 7, 15, 16, 17).

Comparing the results of the test cases of Alvarez-Valdes et al. (2005)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425. with the results obtained by System II proposed in this work, the algorithm of Alvarez-Valdes et al. (2005)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425. was better in smaller instances such as 1, 3, 7, 15, and 16. In these cases, the plates have dimensions ranging from 10 x 10 to 40 x 70, and the number of types of parts varies from 5 to 20. These instances are considered small and medium-sized instances.

In cases 18 and 19, which are considered to be large, with plates of 100 x 100 dimensions and number of types of pieces reaching 30 different types, Systems II proposed by the author was better than the algorithm of Alvarez-Valdes et al. (2005)ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425., presenting, therefore, its contribution and improvement for the resolution of the two-dimensional non-guillotine cutting problem.

As previously mentioned, a specialized BRKGA was proposed for the two-dimensional non- guillotined cutting problem with free orientation of parts (System III). This way, a problem with search space larger than the problem with fixed orientation is analyzed. For this reason, our results with fixed orientation of parts cannot be compared directly with the results considering free orientation of parts. But the comparison is valid if it is observed that the results of System III should be greater than or equal to the results of System II.

5 CONCLUSIONS

This paper used a specialized metaheuristic, that is, the biased random key genetic algorithm, to solve the two-dimensional non-guillotine cutting problem considering the alternatives with and without orientation of parts. In the alternative with a smaller search space, the proposal was compared with results obtained by other optimization proposals. In the case of optimization considering free orientation, it was not possible to compare it with other proposals since these proposals are not found in the specialized literature. The specialized algorithm uses specific strategies to address the problem: the first strategy is the formation of blocks using the same type of parts, and the second strategy was the scanning of free rectangles on the plate.

The algorithm proposed in this work is considered contributes to the specialized literature because it presents combinations of strategies not yet tested to solve the problem under study.

A mathematical model was programmed in AMPL and solved using the CPLEX solver to aid in the comparisons between the results from the exact method and the results obtained by the specialized algorithm proposed by the current work, in addition to comparing the latter and the results obtained by works already published and used as a reference in the literature, making it simpler to check the quality of each one of the results. When comparing the results obtained by the specialized genetic algorithm proposed in this work with the results available in the literature and found in Table 1 of this paper, it is concluded that the proposed algorithm surpassed in two test cases the results already published, giving another novelty to the current work. Finally, a specialized algorithm was tested which was configured to turn the parts, if need be. The results of the twenty-one tests, in this case, were equal to or better than those already published in the literature but considering the fixed orientation parts.

As suggestion for future work, there is the possibility of extending the problem resolution to three dimensions, using the specialized algorithm developed in this work and implementing other metaheuristics, such as the variable neighborhood search algorithm, for the resolution of the two-dimensional non-guillotine cutting problem.

5.1 Supplementary Materials

The part and plate size data used to support the findings of this study are included in the supplementary information file.

References

  • ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2005. A GRASP algorithm for constrained two- dimensional non- guillotine cutting problems. Journal of the Operational Research Society, 56: 414-425.
  • ALVAREZ-VALDES R, PARREÑO F & TAMARIT JM. 2007. A Tabu Search algorithm for two- dimensional non-guillotine cutting problems. European Journal of Operational Research, 183: 1167-1182.
  • ARENALES M & MORABITO R. 1995. An AND/OR-graph approach to the solution of two- dimensional non-guillotine cutting problems. European Journal of Operational Research , 84: 599-617.
  • AYADI O, MASMOUDI M, AMEUR MB & MASMOUDI F. 2017. A new PSO-based algorithm for two-dimensional non-guillotine non-oriented cutting stock problem. Applied Artificial Intelligence, 31(4): 376-393.
  • BALDACI R & BOSCHETTI M. 2007. A cutting-plane approach for the two-dimensional orthogonal non-guillotine cutting problems. European Journal of Operational Research , 183: 1136-1149.
  • BEAN JC. 1994. Genetic algorithms and random keys for sequencing and optimization. ORSA Journal on Computing, 6: 154-160.
  • BEASLEY JE. 1985. An exact two-dimensional non-guillotine cutting tree search procedure. Operations Research, 33: 49-64.
  • BEASLEY JE. 2004. A population heuristic for constrained two-dimensional non-guillotine cutting. European Journal of Operational Research , 156: 601-627.
  • CHRISTOFIDES N & WHITLOCK C. 1977. An algorithm for two-dimensional cutting problems. Operations Research , 25(1): 30-44.
  • FEKETE SP & SCHEPERS J. 1997. On more-dimensional packing iii: Exact algorithms. Technical Report 97-290. Technical University of Berlin.
  • GILMORE P & GOMORY R. 1961. A linear programming approach to the cutting stock problem. Operational Research, 9: 849-859.
  • GONÇALVES JF & RESENDE MGC. 2013. A Biased Random-Key Genetic Algorithm for a 2D and 3D Bin Packing Problem. International Journal of Production Economics, 145: 500-510.
  • HADJICONSTANTINOU E & CHRISTOFIDES N. 1995. An exact algorithm for general, orthogonal, two-dimensional knapsack problems. European Journal of Operational Research , 83: 39-56.
  • LAI KK & CHAN JWM. 1997. Developing a Simulated Annealing Algorithm for the Cutting Stock Problem. Computers & Industrial Engineering, 32: 115-127.
  • LEUNG TW, YUNG CH & TROUTT MD. 2001. Application of genetic search and Simulated Annealing to the two-dimensional non-guillotine cutting stock problem. Computers & Industrial Engineering , 40: 201-214.
  • OR-LIBRARY. 2017. Operations Research (OR) problems. Online. http://people.brunel.ac.uk/mastjjb/jeb/info.html Access on: 20 Apr. 2017.
    » http://people.brunel.ac.uk/mastjjb/jeb/info.html
  • SPEARS WM & DEJONG KA. 1991. On the virtues of parameterized uniform crossover. International Conference on Genetic Algorithms, 4., San Diego. Proceedings. San Diego: University of California, p. 230-236.
  • WANG PY. 1983. Two algorithms for constrained two-dimensional cutting stock problems. Operations Research , 31(3): 573-586.
  • WEI L, HU Q, LIM A & LIU Q. 2018. A best-fit branch and bound heuristic for the unconstrained two-dimensional non-guillotine cutting problems. European Journal of Operational Research , 270: 448-474.

APPENDIX A

Research data obtained from the OR-LIBRARY (2017)OR-LIBRARY. 2017. Operations Research (OR) problems. Online. http://people.brunel.ac.uk/mastjjb/jeb/info.html. Access on: 20 Apr. 2017.
http://people.brunel.ac.uk/mastjjb/jeb/i...
.

For a better understanding of the data from Table A1 through Table A21, the column headers are described below.

R = (lengthxheight): are the length and height dimensions of the board for each test case.

Pieces: Represents the types of parts available in each test case;

Ci: length of the piece i;

Ai: height of the piece i;

Pi: lower part limitation i;

Qi: upper limit of the pieces i, where Qi also represents the quantity of pieces i; available for cutting;

Vi: value of the pieces i;

Table A1
Pieces data and test case plate 1.

Table A2
Pieces data and test case plate 2.

Table A3
Pieces data and test case plate 3.

Table A4
Pieces data and test case plate 4.

Table A5
Pieces data and test case plate 5.

Table A6
Pieces data and test case plate 6.

Table A7
Pieces data and test case plate 7.

Table A8
Pieces data and test case plate 8.

Table A9
Pieces data and test case plate 9.

Table A10
Pieces data and test case plate 10.

Table A11
Pieces data and test case plate 11.

Table A12
Pieces data and test case plate 12.

Table A13
Pieces data and test case plate 13.

Table A14
Pieces data and test case plate 14.

Table A15
Pieces data and test case plate 15.

Table A16
Pieces data and test case plate 16.

Table A17
Pieces data and test case plate 17.

Table A18
Pieces data and test case plate 18.

Table A19
Pieces data and test case plate 19.

Table A20
Pieces data and test case plate 20.

Table A21
Pieces data and test case plate 21.

Publication Dates

  • Publication in this collection
    25 Nov 2022
  • Date of issue
    2022

History

  • Received
    26 Jan 2022
  • Accepted
    29 June 2022
Sociedade Brasileira de Pesquisa Operacional Rua Mayrink Veiga, 32 - sala 601 - Centro, 20090-050 Rio de Janeiro RJ - Brasil, Tel.: +55 21 2263-0499, Fax: +55 21 2263-0501 - Rio de Janeiro - RJ - Brazil
E-mail: sobrapo@sobrapo.org.br