Acessibilidade / Reportar erro

A STOCHASTIC OPTIMIZATION MODEL FOR THE IRREGULAR KNAPSACK PROBLEM WITH UNCERTAINTY IN THE PLATE DEFECTS

ABSTRACT

The present research deals with the two-dimensional knapsack problem by considering the cutting of irregular items from a rectangular plate with defects. While the defects are only known at the time of cutting (in the future), we need first to select which items to produce from cutting the plate. The final items cannot have any defects and the goal is to maximize the profit from cutting the plate and producing the items. We propose a two-stage stochastic optimization model that makes use of a discrete set of scenarios with the realization of the plate defects. The first-stage decisions involve selecting items for cutting and possible production. The second-stage decisions consider the positioning of items in the plate given the scenarios with defects, and then the cancellation and non-production of some selected items, if any. We also extend this model to include a measure of risk, aiming at robust solutions. We perform computational tests on instances adapted from the literature that consider three types of defects, eight scenarios, and four cases for determining each scenario’s probability. The tests evaluate the impact of uncertainties on the problem by calculating the expected value of perfect information and the value of the stochastic solution. The results indicate a percentage reduction in the profit of up to 27.7%, on average, when considering a fully risk-averse decision-maker.

Keywords:
two-dimensional knapsack problem; irregular shaped items; plate defects; two-stage stochastic optimization

1 INTRODUCTION

In companies concerned with the cutting of leather, cloth, and metal, among others, a plate (i.e. a large piece of leather, cloth, or metal) is available to be cut to produce (irregularly shaped) items. These items may be used for the production of clothing, bags, shoes, sporting goods, machines, etc. (Mundim et al., 2017MUNDIM LR, ANDRETTA M & QUEIROZ TA. 2017. A biased random key genetic algorithm for open dimension nesting problems using no-fit raster. Expert Systems with Applications , 81(15): 358-371. Available at: https://doi.org/10.1016/j.eswa.2017.03.059.
https://doi.org/10.1016/j.eswa.2017.03.0...
; Peralta et al., 2018PERALTA J, ANDRETTA M & OLIVEIRA JF. 2018. Solving irregular strip packing problems with free rotations using separation lines. Pesquisa Operacional , 38(2): 195-214. Available at: https://doi.org/10.1590/0101-7438.2018.038.02.0195.
https://doi.org/10.1590/0101-7438.2018.0...
; Souza Queiroz & Andretta, 2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
). In some cases, the plate presents defects in some parts, either from extraction, handling, or transportation, making it impossible to obtain items on these parts (Baldacci et al., 2014BALDACCI R, BOSCHETTI MA, GANOVELLI M & MANIEZZO V. 2014. Algorithms for nesting with defects. Discrete Applied Mathematics, 163, Part 1: 17-33. Available at: https://doi.org/10.1016/j.dam.2012.03.026.
https://doi.org/10.1016/j.dam.2012.03.02...
).

In this paper, we consider the cutting of irregular items from a rectangular plate that may have defects. We assume that the plate is purchased in advance, due to preparation and transportation issues on the part of the supplier. The plate has dimensions and material characteristics known in advance. However, defects in the plate are only identified after delivery and when it enters the cutting stage. At this point, previously selected items may have their production canceled, incurring a cancellation cost. This situation may appear, e.g., in the leather and metal-mechanic industries. The industry confirms with its customers that their items are going to be produced, expecting to obtain a certain profit from this. The industry orders the plate specifying its dimensions and material characteristics based on a set of customers’ items to produce, knowing that the plate may contain parts with defects (e.g., arising from extraction, handling, and/or transportation) that are not precisely known. When the plate arrives at the industry, it undergoes a control check. If the plate has no defect, it is certain that all items selected initially will be produced. On the other hand, in the presence of defects, the industry needs to reconfirm which items will be produced, so that some selected items will be canceled and, in this case, there will be a cost (contractual fine) for not producing these items (e.g., not be able to deliver them within the time agreed with the customers). Clearly, the industry wants to minimize the impact that cancellation costs bring on the profit from cutting the plate.

The objective is to obtain a production plan that gives the maximum net profit, which depends on the profit obtained with the production of items minus the cancellation cost of selected items. The production plan considers the selected items to be obtained from the plate and the realization of possible defects through scenarios, so it may be necessary to cancel items when knowing the defects. We treat the defects as uncertain data. We call this problem a Two-dimensional Irregular Knapsack Problem with Defects Uncertainty (2IKP-DU).

The problem of optimizing the cutting of irregularly shaped items has been studied in the literature on cutting and packing problems, with a relatively smaller number of contributions compared to problems that consider regular items, e.g., rectangles (Wäscher et al., 2007WÄSCHER G, HAUBNER H & SCHUMANN H. 2007. An improved typology of cutting and packing problems. European Journal of Operational Research , 183(3): 1109-1130. Available at: https://doi.org/10.1016/j.ejor.2005.12.047.
https://doi.org/10.1016/j.ejor.2005.12.0...
; Cherri et al., 2016CHERRI LH, CARRAVILLA MA & TOLEDO FMB. 2016. A model-based heuristic for the irregular strip packing problem. Pesquisa Operacional , 36(3): 447-468. Available at: https://doi.org/10.1590/0101-7438.2016.036.03.0447.
https://doi.org/10.1590/0101-7438.2016.0...
). Common constraints in these problems concern ensuring that items do not overlap each other and items are entirely inside the plate. Due to the geometry of irregular items, it is necessary to use additional tools to deal with these constraints. Some tools include discretizing items into arrays of points (raster method), calculating the relative position between items using distance functions (phi-functions), constructing polygons between pairs of items indicating if they are overlapping (no-fit polygon), and checking the intersection between segments and the inclusion of points (direct trigonometry method) (Bennell & Oliveira, 2008BENNELL J & OLIVEIRA J. 2008. The geometry of nesting problems: A tutorial. European Journal of Operational Research, 184(2): 397-415. Available at: https://doi.org/10.1016/j.ejor.2006.11.038.
https://doi.org/10.1016/j.ejor.2006.11.0...
).

Regarding the knapsack problem with irregular items, Scheithauer & Terno (1993SCHEITHAUER G & TERNO J. 1993. Modeling of packing problems. Optimization, 28(1): 63-84. Available at: https://doi.org/10.1080/02331939308843904.
https://doi.org/10.1080/0233193930884390...
) developed mixed-integer linear optimization models to deal with convex and non-convex polygons. Martins & Tsuzuki (2010MARTINS TC & TSUZUKI MSG. 2010. Simulated annealing applied to the irregular rotational placement of shapes over containers with fixed dimensions. Expert Systems with Applications, 37: 1955-1972. Available at: https://doi.org/10.1016/j.eswa.2009.06.081.
https://doi.org/10.1016/j.eswa.2009.06.0...
) proposed simulated annealing when the problem has rectangular and irregular plates. The feasible regions to positioning items are obtained with the no-fit polygon. Valle et al. (2012VALLE AMD, QUEIROZ TA, MIYAZAWA FK & XAVIER EC. 2012. Heuristics for two-dimensional knapsack and cutting stock problems with items of irregular shape. Expert Systems with Applications , 39(16): 12589-12598. Available at: https://doi.org/10.1016/j.eswa.2012.05.025.
https://doi.org/10.1016/j.eswa.2012.05.0...
) developed heuristics based on the greedy randomized adaptive search procedure to solve the problem variants in which there is only one copy of each item and when there are unlimited copies of each item. The authors calculated the no-fit polygon to better positioning items in the plate. Mundim & Queiroz (2012MUNDIM LR & QUEIROZ TA. 2012. A hybrid heuristic for the 0-1 knapsack problem with items of irregular shape. In: XXXVIII Conferência Latino-americana em Informática (CLEI). pp. 1-6. Medellín, Colombia. Available at: https://doi.org/10.1109/CLEI.2012.6427170.
https://doi.org/10.1109/CLEI.2012.642717...
) used simulated annealing as the local search in the algorithm of Valle et al. (2012VALLE AMD, QUEIROZ TA, MIYAZAWA FK & XAVIER EC. 2012. Heuristics for two-dimensional knapsack and cutting stock problems with items of irregular shape. Expert Systems with Applications , 39(16): 12589-12598. Available at: https://doi.org/10.1016/j.eswa.2012.05.025.
https://doi.org/10.1016/j.eswa.2012.05.0...
).

In Dalalah et al. (2014DALALAH D, KHRAIS S & BATAINEH K. 2014. Waste minimization in irregular stock cutting. Journal of Manufacturing Systems, 33(1): 27-40. Available at: https://doi.org/10.1016/j.jmsy.2013.11.003.
https://doi.org/10.1016/j.jmsy.2013.11.0...
), the problem considers rectangular and irregular plates. These authors proposed a constructive heuristic in which items are positioned according to the occupancy of the plate. Baldacci et al. (2014BALDACCI R, BOSCHETTI MA, GANOVELLI M & MANIEZZO V. 2014. Algorithms for nesting with defects. Discrete Applied Mathematics, 163, Part 1: 17-33. Available at: https://doi.org/10.1016/j.dam.2012.03.026.
https://doi.org/10.1016/j.dam.2012.03.02...
) solved the problem with an irregular plate that arises in the leather industry. The plate is discretized into a matrix, and the authors presented an integer linear optimization model, a Lagrangean relaxation, and heuristics obtained from the relaxation they proposed. Mundim et al. (2018MUNDIM LR, ANDRETTA M, CARRAVILLA MA & OLIVEIRA JF. 2018. A general heuristic for two-dimensional nesting problems with limited-size containers. International Journal of Production Research, 56(1-2): 709-732. Available at: https://doi.org/10.1080/00207543.2017.1394598.
https://doi.org/10.1080/00207543.2017.13...
) developed a general heuristic for different irregular cutting problems such as knapsack and cutting stock. The authors proposed many positioning rules, some of them based on bottom-left, and were able to improve much of the solutions presented by the previous literature, such as Valle et al. (2012VALLE AMD, QUEIROZ TA, MIYAZAWA FK & XAVIER EC. 2012. Heuristics for two-dimensional knapsack and cutting stock problems with items of irregular shape. Expert Systems with Applications , 39(16): 12589-12598. Available at: https://doi.org/10.1016/j.eswa.2012.05.025.
https://doi.org/10.1016/j.eswa.2012.05.0...
). Souza Queiroz & Andretta (2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
) proposed two heuristics, the first based on a biased random key genetic algorithm. The other is a variable neighborhood search. The heuristics consider the solution coded as a vector of numbers. The positioning of items observes the no-fit polygons and three rules inspired on the bottom-left. Román (2020ROMÁN AE. 2020. An Evolutionary Algorithm for Solving the Two-Dimensional Irregular Shape Packing Problem Combined with the Knapsack Problem. Master in artificial intelligence. Polytechnic University of Catalonia. Barcelona, Spain.) considered the positioning of a subset of items of maximum value and respecting the maximum weight that can be cut from the plate. The author assumed that items could be rotated and the plate could be irregular and with defects. The author developed several heuristics for the problem, including an evolutionary algorithm. The non-overlap of items is guaranteed with a Python library.

Some studies have considered defects and quality zones in plates in irregular cutting problems. In Chung et al. (1990CHUNG J, SCOTT III DR & HILLMAN DJ. 1990. Intelligent nesting system on 2-D highly irregular resources. In: TRIVEDI MM (Ed.), Applications of Artificial Intelligence VIII, vol. 1293. pp. 472-483. International Society for Optics and Photonics. Orlando, FL, United States: SPIE. Available at: https://doi.org/10.1117/12.21096.
https://doi.org/10.1117/12.21096...
) there is a hybrid heuristic that allocates items to regions of the plate in accordance with the position of the defects. Heistermann & Lengauer (1995HEISTERMANN J & LENGAUER T. 1995. The nesting problem in the leather manufacturing industry. Annals of Operations Research, 57: 147-173. Available at: https://doi.org/10.1007/BF02099695.
https://doi.org/10.1007/BF02099695...
) handled a real case found in the leather industry, where the plate is irregular and contains both quality and defect zones. Their heuristic considers a set of candidate items and tries to position them without generating overlap if it is possible; otherwise, it places only the item that results in the best occupancy of the plate. Han & Na (1994HAN GC & NA SJ. 1994. A New Multi-Stage Layout Approach for Optimal Nesting of 2-Dimensional Patterns with Boundary Constraints and Internal Defects. Transactions of the Korean Society of Mechanical Engineers, 18(12): 3236-3245. Available at: https://doi.org/10.22634/KSME.1994.18.12.3236.
https://doi.org/10.22634/KSME.1994.18.12...
) developed a two-stage approach, which initially positions items by observing the plate and its defects. The plate occupancy is improved with a heuristic based on simulated annealing. For problems involving irregular plates, Tay & Lee (2002TAY FEH & LEE CFC. 2002. Pattern nesting on irregular-shaped stock using Genetic Algorithms. Engineering Applications of Artificial Intelligence, 15: 551-558. Available at: https://doi.org/10.1016/S0952-1976(03)00009-5.
https://doi.org/10.1016/S0952-1976(03)00...
) developed a genetic algorithm, while Yuping et al. (2005YUPING Z, SHOUWEI J & CHUNLI Z. 2005. A very fast simulated re-annealing algorithm for the leather nesting problem. International Journal of Advanced Manufacturing Technology, 25(11): 1113-1118. Available at: https://doi.org/10.1007/s00170-003-1966-6.
https://doi.org/10.1007/s00170-003-1966-...
) considered quality zones and used a penalty strategy to find feasible positions. Crispin et al. (2005CRISPIN A, CLAY P, TAYLOR G, BAYES T & REEDMAN D. 2005. Genetic algorithm coding methods for leather nesting. Applied Intelligence, 23: 9-20. Available at: https://doi.org/10.1007/s10489-005-2368-2.
https://doi.org/10.1007/s10489-005-2368-...
) developed genetic algorithms for a problem in the footwear industry. The algorithms use the no-fit polygon to determine positions that maximize the plate utilization or that let items touching each other. In Lee et al. (2008LEE WC, MA H & CHENG BW. 2008. A heuristic for nesting problems of irregular shapes. Computer-Aided Design, 40(5): 625-633. Available at: https://doi.org/10.1016/j.cad.2008.02.008.
https://doi.org/10.1016/j.cad.2008.02.00...
), the problem considers multiple irregular and defective plates. Items are sorted by value and initially positioned in such an order. To improve the solution, items can be rotated and/or translated from their initial position.

Alves et al. (2012aALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012a. New constructive algorithms for leather nesting in the automotive industry. Computers & Operations Research, 39(7): 1487-1505. Available at: https://doi.org/10.1016/j.cor.2011.08.021.
https://doi.org/10.1016/j.cor.2011.08.02...
) and Alves et al. (2012bALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012b. A variable neighborhood search algorithm for the leather nesting problem. Mathematical Problems in Engineering, 183: 28. Available at: https://doi.org/10.1155/2012/254346.
https://doi.org/10.1155/2012/254346...
) solved the problem of cutting leather parts for the automotive industry. In Alves et al. (2012bALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012b. A variable neighborhood search algorithm for the leather nesting problem. Mathematical Problems in Engineering, 183: 28. Available at: https://doi.org/10.1155/2012/254346.
https://doi.org/10.1155/2012/254346...
), they searched for the maximization of the occupancy of a single plate. A variable neighborhood search heuristic is developed and considers the search over the sequence of items. The authors developed four operators to move items in search of a sequence that results in the better occupancy of the plate. Mundim & Andretta (2014MUNDIM LR & ANDRETTA M. 2014. Problema de corte de itens irregulares na fabricação de luvas de couro. In: XLVI Simpósio Brasileiro de Pesquisa Operacional. pp. 1-12. Salvador-BA, Brasil.) considered the problem with multiple irregular plates, aiming to minimize the number of plates needed to cut the demanded items. The authors presented two heuristics based on the bottom-left. The non-overlapping between items and defects is guaranteed by the no-fit polygon. In Pinto et al. (2016PINTO TMP, ALVES CMM, CARVALHO JMV & BRÁS PAF. 2016. Heuristic methods for the leather nesting problem in the automotive industry. International Journal of Business Excellence, 9(3): 332-347. Available at: https://dx.doi.org/10.1504/IJBEX.2016.075594.
https://dx.doi.org/10.1504/IJBEX.2016.07...
) there is an improvement over the results of Alves et al. (2012bALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012b. A variable neighborhood search algorithm for the leather nesting problem. Mathematical Problems in Engineering, 183: 28. Available at: https://doi.org/10.1155/2012/254346.
https://doi.org/10.1155/2012/254346...
), with the use of a constructive heuristic. This heuristic simulates the positioning of items on points in the plate, selecting that item and point which generate the best occupancy of the plate. To improve the solution, the authors proposed a local search, where already positioned items are removed from their positions and items not yet positioned are tested on those positions.

Reijntjes (2016REIJNTJES IE. 2016. Solving a nesting problem using the collision free region. Master in mathematics and computer science. Eindhoven University of Technology. Eindhoven, Netherlands.) considered the plate with defects and quality zones, proposing constructive heuristics based on the bottom-left. They were considered inside a branch-and-bound algorithm. The non-overlapping between items is guaranteed by a collision-free algorithm based on the concepts of the no-fit polygon. Chen et al. (2020CHEN K, ZHUANG J, ZHONG S & ZHENG S. 2020. Optimization Method for Guillotine Packing of Rectangular Items within an Irregular and Defective Slate. Mathematics, 8(11). Available at: https://www.mdpi.com/2227-7390/8/11/1914.
https://www.mdpi.com/2227-7390/8/11/1914...
) handled the knapsack problem where items are rectangular and the plate is irregular and defective, with application to slate cutting. The objective is to maximize the occupancy of the plate considering that items are obtained from guillotined cuts. Their heuristic considers the plate subdivided by horizontal levels and items are positioned on the sub-plates. Sequences of items are generated and controlled by a genetic algorithm.

There are few contributions in the literature for the treatment of uncertainties in irregular cutting problems. Mundim (2017MUNDIM LR, ANDRETTA M & QUEIROZ TA. 2017. A biased random key genetic algorithm for open dimension nesting problems using no-fit raster. Expert Systems with Applications , 81(15): 358-371. Available at: https://doi.org/10.1016/j.eswa.2017.03.059.
https://doi.org/10.1016/j.eswa.2017.03.0...
) considered uncertainties in the demand of items for the problem with multiple plates, proposing a two-stage stochastic model. The model penalizes the lack or excess of items produced more than needed, respecting a sampled set of scenarios. In Souza Queiroz & Andretta (2022SOUZA QUEIROZ LR & ANDRETTA M. 2022. A branch-and-cut algorithm for the irregular strip packing problem with uncertain demands. International Transactions in Operational Research, 29(6): 3486-3513. Available at: https://doi.org/10.1111/itor.13122.
https://doi.org/10.1111/itor.13122...
) there is a two-stage stochastic model for the strip packing problem with uncertainties associated with the demand of items. The results obtained with the model indicated that disregarding the uncertainties would lead to higher total cost solutions. We summarize in Table 1 the cited literature, which is related to two-dimensional irregular cutting problems, focusing on knapsack type problems, problems whose plate has quality zones or defects, and problems with uncertainties. Each row contains information of the given contribution, including the authors and the solution method used to solve the problem.

Table 1
Literature related to the investigated problem.

Differently from the authors in Table 1, we solve the knapsack problem with irregular items by assuming that defects in the plate are uncertain, i.e., which defects and their position in the plate are not known in advance. We propose a two-stage stochastic optimization model with recourse: the first stage considers decisions about which items to select to get from the plate; the second stage contains the scenarios with the realization of the defects in the plate and then some items may be canceled because there is no longer a feasible positioning in the plate. To obtain a feasible production plan in each scenario, we use the no-fit raster method, which is a combination of the raster method and the no-fit polygon.

The initially proposed stochastic model is risk-neutral, i.e., it considers the optimization of the expected value of the net profit to take the best decisions. In this case, the net profit is optimized on average, and for particular realizations of the uncertain data, the profit could be much smaller than their average values (Shapiro et al., 2013SHAPIRO A, TEKAYA W, DA COSTA JP & SOARES MP. 2013. Risk neutral and risk averse Stochastic Dual Dynamic Programming method. European Journal of Operational Research , 224(2): 375-391. Available at: https://doi.org/10.1016/j.ejor.2012.08.022.
https://doi.org/10.1016/j.ejor.2012.08.0...
). Aiming to control the variability, which may occur by the defect realizations, we consider a risk measure to find a compromise between maximizing the average profit and trying to control the variability of second-stage decisions (Ahmed & Sahinidis, 1998AHMED S & SAHINIDIS NV. 1998. Robust Process Planning under Uncertainty. Industrial & Engineering Chemistry Research, 37(5): 1883-1892. Available at: https://doi.org/10.1021/ie970694t.
https://doi.org/10.1021/ie970694t...
), resulting in a risk-averse model. We perform computational experiments with instances adapted from the literature on irregular cutting problems. For each instance, scenarios are created observing the occurrence of each defect. Four probability cases for each scenario are studied. The computational experiments assess the expected value of perfect information, the value of the stochastic solution, and the risk-averse model, concluding on the need to consider uncertainties to obtain profitable solutions to the problem.

This paper is organized as follows. The problem definition is given in Section 2. Section 3 presents the proposed model, discusses the analyses to evaluate the impact of uncertainties on the problem, and introduces the risk-averse model. Section 4 contains the computational study performed on the models, which are solved by a branch-and-cut algorithm. Instances adapted from the literature are tested. Concluding remarks and directions for continuing this research are given in Section 5.

2 PROBLEM DEFINITION

The two-dimensional knapsack problem (with irregular items) is NP-hard (Garey & Johnson, 1979GAREY MR & JOHNSON DS. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. San Francisco: Freeman.). We define the problem over the Cartesian plane. The plate is positioned on the first quadrant and has the origin at (0, 0). The x-axis is associated with the length dimension L, while the y-axis is associated with the height/width dimension H. These dimensions have fixed and known values. There is a set I of items available for selection. Each item iI has area ai and a rectangular envelope, which is the smallest rectangle, in terms of sides and without rotation, that circumscribes the item. An item cannot be rotated and is positioned by its reference vertex, which is the vertex of the smallest y-coordinate and, in the case of a tie, of the smallest x-coordinate. Furthermore, each item i has profit vi, given its selection and production, and the cancellation cost ci, given its selection but non-production.

The 2IKP-DU considers a set D of possible defects that the plate may have. Each defect dD is modeled as a regular/irregular item of known dimensions, area, and reference vertex. On the other hand, the defects and their position in the plate are not known and, thus, we assume them as uncertain data. The goal is to determine a feasible production plan that results in the maximum net profit when cutting the plate. A production plan is feasible when the items to be produced can be positioned without overlapping, entirely inside the plate, and contain no defective parts.

Selection of items that can be part of the production plan occurs at an early moment A, when the plate is ordered. At this time, items from the set I are selected to be produced from cutting the rectangular plate of known dimensions. Since the plate may have defects that are only revealed at moment B (when items are produced), some selected items may be canceled, incurring a cancellation cost due to non-production. The production plan is only confirmed at the second moment when defects are realized, and thus we can confirm which of the selected items can be feasibly positioned, while others may be canceled. In this way, we look for a feasible production plan that results in the maximum net profit. Figure 1 illustrates an example of the 2IKP-DU and the decisions that need to be made at each moment.

Figure 1
Decisions to take in the 2IKP-DU.

Regarding the positioning of items, we employ the no-fit raster to ensure that items do not overlap and the inner-fit raster to ensure that items are totally inside the plate (Toledo et al., 2013TOLEDO FMB, CARRAVILLA MA, RIBEIRO C, OLIVEIRA JF & GOMES AM. 2013. The Dotted-Board Model: a new MIP model for nesting irregular shapes. International Journal of Production Economics, 145: 478-487. Available at: https://doi.org/10.1016/j.ijpe.2013.04.009.
https://doi.org/10.1016/j.ijpe.2013.04.0...
). The no-fit raster NFR ij consists of computing the no-fit polygon for each pair of items i and j, one item is fixed (i) and the other is orbiting (j). The orbital item is translated around the fixed item, always touching the fixed item but without overlapping it, forming a polygon whose interior indicates the items are overlapping. This polygon is then discretized into a binary matrix, whose cells with 1 indicate that items are overlapping; otherwise, cells have the value 0, as we can see in Figure 2 (a). On the other hand, the inner-fit raster IFR i consists of the polygon obtained by translating each item i, internally, always touching one of the edges of the plate. This polygon is then discretized into a binary matrix. The cells with values 0 indicate that the item can be positioned without extrapolating the dimensions of the plate; otherwise, cells have the value 1, as we can see in Figure 2 (b).

Figure 2
Example of the no-fit raster and inner-fit raster matrices.

3 STOCHASTIC OPTIMIZATION MODEL WITH RECOURSE

We develop a two-stage stochastic optimization model for the 2IKP-DU. The number and location of the defects in the plate are considered random variables with discrete realizations according to a known probability distribution. Let Ω = {1, 2, . . . , S} be the set of possible states, i.e., scenarios (s ∈ Ω) sampled with the realization of the defects in the plate.

In the proposed model, the first stage of the problem is related to decisions here-and-now involving the selection of items to be produced from cutting the plate. In the second stage, wait-and-see decisions are made considering the positioning of the selected items. Due to the realization of the random variables in this stage, i.e., the defects are revealed in the plate, there are also decisions involving the possible cancellation of items. The production plan must be feasible and have the maximum net profit, which involves the profit from the selected and produced items minus the expected cost of the canceled (i.e. selected but not produced) items.

We assume the plate is discretized over a mesh of points, and thus an item is positioned by allocating its reference vertex to one point of this mesh. We use the no-fit raster and inner-fit raster to obtain the feasible points for positioning items (Toledo et al., 2013TOLEDO FMB, CARRAVILLA MA, RIBEIRO C, OLIVEIRA JF & GOMES AM. 2013. The Dotted-Board Model: a new MIP model for nesting irregular shapes. International Journal of Production Economics, 145: 478-487. Available at: https://doi.org/10.1016/j.ijpe.2013.04.009.
https://doi.org/10.1016/j.ijpe.2013.04.0...
). The parameters and decision variables of the model are:

  • I = {1, 2, . . . , n}: the set of irregular items available for selection;

  • vi: profit associated with the selection of item i in the first stage;

  • ci: the cost associated with canceling item i in the second stage;

  • M: sufficiently large number.

  • πs: the probability of occurrence of the scenario s ∈ Ω;

  • Ds: the set of defects in the plate, given the scenario s ∈ Ω;

  • NFRijp,q: the set of points (u, v) from the no-fit raster between items i and j (i.e., NFR ij ). Item i has its reference vertex positioned at (p, q), while item j is orbiting around i. The points (u, v) are those where item j having its reference vertex positioned at them will cause an overlap with i. In other words, this set contains all points that j positioned on any of them will overlap i.

  • IFRis: the set of points of the inner-fit raster of item i (i.e., IFR i ). These points allow i to be positioned without overlapping a defect of scenario s ∈ Ω and entirely inside the plate.

  • yi: a first-stage binary variable that receives the value 1 if item iI is selected for production; otherwise, it receives the value 0;

  • xipqs: a second-stage binary variable that receives the value 1 if item i has its reference vertex positioned at point (p, q) of the mesh of points associated to the plate; otherwise, it receives the value 0; for the scenario s ∈ Ω;

  • zis: a second-stage binary variable that receives the value 1 if item i is not canceled; otherwise, it receives the value 0; for the scenario s ∈ Ω;

We propose a two-stage, risk-neutral integer linear optimization model for the 2IKP-DU. The objective is to optimize the expected value of the net profit, considering the selection of items to produce (first stage) and the placement and possible cancellation of items according to plate defects realization (second stage). The objective function (1) of the first stage considers the profit by selecting items and the expected cost by cancelling items given by the recourse function Q(y, ξ). Let ξ = [ξs ], with ξs=xipqs,zis, be the random vector of the scenario s. Constraints (2) imposes that the selected items respect the total area of the rectangular plate. Constraints (3) define the domain of the first-stage decision variables.

M a x i m i z e i I v i y i + Q y , ξ (1)

i I a i y i L H , (2)

y i 0 , 1 , i I . (3)

The second-stage model has objective function (4), which looks for the minimization of the expected cost of canceling items considering the probability of occurrence π s of each scenario s ∈ Ω. Since canceled items cannot have their profit accounted for in the solution, we assume that c i ≥ v i , for each item iI.

Q y , ξ = M i n i m i z e s Ω π s i I c i y i - z i s (4)

z i s y i , s Ω , i I ; (5)

j I u , v N F R i j p , q x j u v s 1 - x i p q s M , s Ω , i I , p , q I F R i s ; (6)

p , q I F R i s x i p q s = z i s , s Ω , i I ; (7)

z i s 0 , 1 , s Ω , i I ; (8)

x i p q s 0 , 1 , s Ω , i I , p , q I F R i s . (9)

Constraints (5) of the second-stage model assure that an item not selected in the first stage must be assigned with the same state as canceled items, given each scenario s ∈ Ω. Constraints (6) ensure, for each scenario s ∈ Ω, that if item i is positioned at (p, q) in the plate, then item j cannot be positioned at any of the points (u, v) of the set NFRijp,q. Constraints (7) ensure that only selected and non-canceled items i are positioned in the plate, for each scenario s ∈ Ω. Constraints (8) and (9) define that the second-stage variables are binary.

The solution of the two-stage optimization model for the 2IKP-DU can be obtained by solving a deterministic equivalent model (by any integer linear optimization solver). Such a model has the objective function (1), with the recourse function Q(y, ξ ) given by the function (4), and constraints (2), (3), and (5)-(9). It is also common to refer to this as Recourse Problem (RP), or stochastic problem, obtaining the RP solution from solving the deterministic equivalent model (Birge & Louveaux, 1997BIRGE JR & LOUVEAUX F. 1997. Introduction to stochastic programming. New York: Springer.). This model has I+Ω×I×IFRis+Ω×I variables, and 1+2×Ω×I+Ω×I×IFRis constraints, where IFRis is limited by O(L × H).

3.1 Solution analysis of the stochastic problem

A solution to a deterministic problem contains a single production plan, while in the solution of the stochastic problem there are |Ω| production plans. In this way, we apply two well-known metrics to evaluate the solutions of the stochastic model for the 2IKP-DU, allowing us to conclude about the importance of considering (or not) the uncertainties in the problem (Birge & Louveaux, 1997BIRGE JR & LOUVEAUX F. 1997. Introduction to stochastic programming. New York: Springer.; Bakker et al., 2020BAKKER H, DUNKE F & NICKEL S. 2020. A structuring review on multi-stage optimization under uncertainty: Aligning concepts from theory and practice. Omega, 96: 102080. Available at: https://doi.org/10.1016/j.omega.2019.06.006.
https://doi.org/10.1016/j.omega.2019.06....
). In other words, we calculate the Expected Value of Perfect Information (EVPI) and the Value of Stochastic Solution (VSS) to measure the outcome of the stochastic program in comparison to the outcome of an approximative, deterministic problem.

The Expected Value of Perfect Information (EVPI) indicates the maximum value a decision-maker would pay to have complete and accurate information about the future. In other words, the value that a decision-maker is not able to gain due to the imperfect information. For the 2IKP-DU, this information is related to the exact knowledge of the future number of defects and their locations in the plate, making it possible to obtain a production plan with the maximum possible profit.

To compute the EVPI of an instance of the problem: (i) we obtain the solution of the stochastic problem (i.e., Recourse Problem - RP) by solving the model (1)-(9) with all scenarios in Ω, resulting in the RP solution; (ii) we obtain the solution WSs* of the wait-and-see problem for each scenario s ∈ Ω, i.e., we solve the model (1)-(9) considering only scenario s, so the variables associated to the other scenarios are disregarded (this means that we need to solve |Ω| times the model, each time for a different scenario s to obtain the respective WSs* solution); (iii) we compute the expected value WS of the solutions of the wait-and-see problems, i.e., WS=sΩπsWSs*; (iv) we compute EVPI as (WS - RP). A small value of EVPI indicates that the uncertainties of the problem are not that impactful on the solution, and it is not worth solving a stochastic problem. Thus, it is more timely/easier to use an approximate solution, e.g., to consider the solutions of the wait-and-see problems.

While obtaining the EVPI may require solving several deterministic problems, another alternative for evaluating the solutions of the stochastic model is to calculate the Value of the Stochastic Solution (VSS). It indicates the cost of ignoring uncertainty by using the solution of an expected value problem. In other words, the advantage of solving a stochastic model over a deterministic model where all stochastic parameters are replaced by their expected value. For 2IKP-DU, this would correspond to making decisions based on a reference scenario whose random variables values are known, i.e., assuming a given realization of the defects and their locations in the plate.

To obtain the VSS of an instance of the problem: (i) we obtain the RP solution of the model (1)-(9) with all scenarios in Ω; (ii) we obtain the solution of an Expected Value problem (EV), i.e., we assume a reference scenario, which among the available scenarios for the instance corresponds to the worst one in terms of defects realization. The solution of the EV is obtained by solving the model (1)-(9) for this reference scenario, resulting in the values y for variables y i ; (iii) we calculate the Expectation of the Expected Value Problem (EVV), i.e., the solution of EVV is obtained from solving the model (1)-(9) with all scenarios in Ω, but with the y i (first-stage) variables fixed at the values in y. (iv) we calculate VSS as (RP - EVV). A small value of VSS indicates that the gain of the solution of the stochastic problem (RP) over the solution of an expected value problem (EV) is small. Thus, it is more convenient/easier to consider an approximate solution, e.g., to use the solution of EVV.

3.2 Risk aversion

In a risk-neutral model, we assume the solution has a long-term performance, so the scenarios represent general trends for the random variables. This means that a dispersion of the random variables that significantly impacts the obtained solution is not desirable. When there is variability in the uncertain parameters, in turn causing dispersion of the random variables, the expected value of the cost, which represents the second-stage objective function, can have high variability. In situations of high risk (high variability of the parameters), the expected cost of the second stage should be controlled/limited. One way to control the risk is to consider a risk-averse model so that the expected cost of each scenario is close to the optimal expected cost when considering all scenarios.

One risk measure to limit the variability of the second-stage variables, consequently obtaining solutions that are less sensitive to scenario variability (i.e., risk-averse) is to minimize the variance of the total expected value, but this introduces nonlinearities into the model. On the other hand, Ahmed & Sahinidis (1998AHMED S & SAHINIDIS NV. 1998. Robust Process Planning under Uncertainty. Industrial & Engineering Chemistry Research, 37(5): 1883-1892. Available at: https://doi.org/10.1021/ie970694t.
https://doi.org/10.1021/ie970694t...
) proposed a risk measure, called Upper Partial Mean (UPM), which can be used as a “variance measure” defined over linear functions of the form:

s Ω π s Δ s (10)

where ∆s is the difference between the expected value of the cost of scenario s and the total expected value of the cost of all scenarios.

According to Ahmed & Sahinidis (1998AHMED S & SAHINIDIS NV. 1998. Robust Process Planning under Uncertainty. Industrial & Engineering Chemistry Research, 37(5): 1883-1892. Available at: https://doi.org/10.1021/ie970694t.
https://doi.org/10.1021/ie970694t...
), the measure (10) is added to the two-stage stochastic optimization model as new constraints. In this case, we reduce the variability of the second-stage solution (i.e., of the expected value of the cancellation cost) by imposing a maximum tolerance ∆max. Therefore, the risk-averse model for the 2IKP-DU is defined by the objective function (11) and constraints (2), (3), (5)-(9), (12)-(14):

M a x i m i z e i I v i y i - s Ω π s i I c i y i - z i s (11)

Δ s i I c i y i - z i s - 2 , 3 , 5 , 6 , 7 , 8 , 9 , s Ω π s i I c i y i - z i s , s Ω ; (12)

s Ω π s Δ s α Δ m a x , (13)

Δ s 0 , s Ω . (14)

In constraint (13), when αmax is small, the resulting solution is expected to be less sensitive to scenario variations and thus the decision-maker is more conservative (or risk-averse). Small values of this parameter can turn the model infeasible, while large values can result in a risk- neutral solution. The idea is to construct a solution curve by varying the parameter α ∈ [0, 1]. We assume that Δmax=sΩπsΔs is obtained from the RP model (1)-(9) with all scenarios.

4 COMPUTATIONAL RESULTS

The risk-neutral (1)-(9) and risk-averse (11)-(14) models were implemented in the C++ language, inside the branch-and-cut algorithm framework of the Gurobi Optimizer, version 9.1, using the default settings. The computer used in the experiments has Linux Ubuntu 16.04.7 LTS as the operating system, a 3.5 GHz Intel Xeon E3-1245v5 processor with 8 threads, and 32 GB of RAM. We set a time limit of 7200 seconds per instance.

4.1 Instances

The instances used in the experiments were adapted from the literature of the two-dimensional irregular knapsack problem, following the methodology of Souza Queiroz & Andretta (2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
). Some of these instances can be found in the EURO Special Interest Group on Cutting and Packing (ESICUP1 1 https://www.euro-online.org/websites/esicup/data-sets ) and were made available by Souza Queiroz & Andretta (2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
). The main data of each instance are presented in Table 2, as the name, the total quantity of items available for selection, the dimensions of the plate, the maximum area (in percentage) that it is possible to occupy if defects are not present, i.e., Maxarea=100×iIaiLH, and the best known solution (i.e., occupied area) (BKS) calculated by the heuristics of Souza Queiroz & Andretta (2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
). We adopt the scale of 1 point for every 1 unit of distance to obtain the no-fit raster and inner-fit raster binary matrices. Regarding the first and second stage objective functions of the models, we consider vi = ai, i.e., the profit corresponds to the item area, and c i = 1.5v i , for each item iI.

Table 2
Instances used in the computational tests.

Observing Table 2, even if the total sum of the area of the irregular items is smaller than the total area of the plate without defects, the irregular items bring additional complexity, such as the issue of not having a perfect fit between them, differently from the positioning of rectangular items. Applying the heuristics of Souza Queiroz & Andretta (2020SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485.
https://doi.org/10.1016/j.asoc.2020.1064...
) on these instances, we could observe that the occupied area ranges from 52.88% (instance shirts1-2) to 95.40% (instance dagli1), and the BKS is not equal to the Maxarea for 35 out of 40 instances.

The number of scenarios impacts on the models’ size and, thus, we assume the generation of the scenarios considers a tree of possibilities (Ma et al., 2010MA Z, KWON RH & LEE CG. 2010. A stochastic programming winner determination model for truckload procurement under shipment uncertainty. Transportation Research Part E: Logistics and Transportation Review, 46: 49-60. Available at: https://doi.org/10.1016/j.tre.2009.02.002.
https://doi.org/10.1016/j.tre.2009.02.00...
). We consider there are three different defect types (a triangle, a square, and a rhombus). Each scenario considers the presence or absence of each of the defects, resulting in 8 scenarios per instance, which are the possibilities between having no defect at all in the plate and having all defects in the plate. The position of each defect in the plate was defined randomly using a uniform distribution. Besides that, each instance is associated with four probability cases for the occurrence of the scenarios, which are: pessimistic with the probability of 75% associated with having d in the board and the other 25% for not having such a defect in the board; moderate, with the probability of 40% associated with having d in the board and the other 60% for not having such a defect; equiprobable, with the probability of 50% percent associated with having the defect d in the board and the other 50% percent for not having such a defect in the board; and optimistic, with the probability of 25% associated with having d in the board and the other 75% for not having such a defect. For example, for the optimistic case, the scenario where there is no defect in the board has an occurrence probability equal to 75% × 75% × 75% = 42.19%, given the 75% probability associated with the event of not having the defect d in the board. On the other hand, in the scenario whose plate contains all defects, its probability of occurrence is given by 25% × 25% × 25% = 1.56%, with the probability of 25% associated with the event yes, that is, of having the defect d in the plate, for d = 1, 2, 3. Figure 3 presents the scenario tree with the probability of occurrence of each scenario.

Figure 3
Scenario tree for the instances used in the computational tests.

4.2 Results of the risk-neutral model

Tables 3 to 6 contain the results obtained with the risk-neutral model (1)-(9) over the instances of Table 2, considering the 8 scenarios and four cases (pessimistic, moderate, equiprobable, and optimistic) presented in Figure 3. In general, it was possible to obtain the optimal solution for 42.5% of the instances within the time limit of 7200 seconds, with an average gap of 5.0% and an average computational time of 4284.1 seconds. The instances not optimally solved tend to have a larger number of items for selection or a larger plate. This may also indicate that the model could find it harder to solve instances with more scenarios.

Table 3
Results of the pessimistic case.

Table 4
Results of the moderate case.

Table 5
Results of the equiprobable case.

Table 6
Results of the optimistic case.

Observing the results for the pessimistic case, in Table 3, the average gap and average time are 4.7% and 3919.1 seconds, respectively. The number of optimal solutions occurred for 47.5% of the instances, with the largest gap of 20.6% for instance shirts4-8. There was no item cancellation for 67.5% of the instances, including poly1c, shapes2, and shirts1-2, which also had all items selected. The highest number of cancellations occurred for scenario #8, while instances blazewicz1 and threep3 had the largest number of canceled items. Scenario #8 has all defects and, thus, it would be expected to have more cancellations on it. Besides that, the location of the defects in the scenarios of instances blazewicz1 and threep3 makes hard the positioning of the selected items, resulting in more canceled items.

For the moderate case, in Table 4, the gap and average time are 5.0% and 4185.9 seconds, respectively. In this case, the number of optimal solutions occurred for 45.0% of the instances, while the instance with the largest gap is shapes15, with a value of 24.3%. There was no item cancellation for 62.5% of the instances, including poly1c, shapes2, and shirts1-2, which also had all items selected. The highest number of cancellations occurred in scenarios #4, #6, #7, and #8, while instances rco1 and threep2w9 had the largest number of item cancellations. Compared to the pessimistic case, we observe for the moderate case less instances solved to optimality, larger gaps, larger computational times, and more canceled items per instance/scenario. On the other hand, in the moderate case, the solutions, in general, have better objective function values and more selected items.

In Table 5, for the equiprobable case, we observe that the optimal solution was obtained for 40.0% of the instances, with an average gap of 5.4% and an average time of 4405.2 seconds. The instance that presented the largest gap is shirts4-8, with a value of 25.7%. In instances poly1c, shapes2, and shirts1-2, it was possible to select all items and no cancellation occurred for any scenario. Overall, there was no cancellation of items in any scenario for 55.0% of the instances. On the other hand, in the instances with canceled items, the cancellation occurred the most for scenarios #4, #6, #7, and #8, which are scenarios having more defects. The instance with the largest cancellation of items is threep2. Compared to the pessimistic case, we observe for the equiprobable case fewer instances solved to optimality, larger gaps, larger computational times, more canceled items per instance/scenario. On the other hand, in the equiprobable case, the solutions, in general, have better objective function values and more selected items, justified by the equal probability of occurrence of scenarios.

Observing Table 6, for the optimistic case, the optimal solution was obtained for 40.0% of the instances, with an average gap of 5.0% and an average time of 4626.1 seconds. The instance with the largest gap is dagli1, with 23.5%. In instances poly1c, shapes2, and shirts1-2, it was possible to select all items and there was no item cancellation. Besides, there was no item cancellation for 45.0% of the instances. On the other hand, in the instances with canceled items, the cancellation occurred the most for the scenarios from #4 to #8. The instance with the highest item cancellation is three. When comparing the values of the optimistic case with the pessimistic case, we notice for the optimistic case that fewer instances are solved to optimality, the computational times are larger, and there are more canceled items per instance/scenario. On the other hand, in the optimistic case, the solutions, in general, have better objective function values and more selected items, justified by the lower probability of occurrence of the scenarios with more defects.

The EVPI and VSS analyses consider 14 instances for which it was possible to obtain the optimal solution, in all cases, within the imposed time limit, as reported in Tables 3 to 6. The results for the EVPI are given in Tables 7 and 8, for the four cases: moderate, equiprobable, optimistic, and pessimistic. All reported solutions, including those for the wait-and-see problems, are optimal. The calculation of the relative EVPI (%) is given by 100 × (EVPI/WS).

Table 7
EVPI for instances with an optimal solution in all cases - part I.

Table 8
EVPI for instances with an optimal solution in all cases - part II.

The results of Tables 7 and 8 show relative EVPI values greater than 5% for instances blazewicz1, three, threep2, threep2w9, threep3 and threep3w9 (in all cases), fu5 (except in the optimistic case), fu6 (only in the optimistic case), and rco1 (except in the pessimistic case). The least impacted instances in terms of EVPI are those whose defects have little influence on the scenarios, such as poly1c, shapes2, and shirts1-2, resulting in no difference between solving the wait-and-see problems or the two-stage stochastic model. On the other hand, the highest relative EVPI values occurred for instances three, threep2, and threep2w9, with an overall average value of 56.3%, 18.0%, and 15.0%, respectively. In general, the values of EVPI are higher for the cases whose scenarios with more defects are more likely to occur. We observed this especially for the pessimistic, moderate, and equiprobable cases. In other words, the relative average value of the EVPI is 14.2% for the pessimistic case (with the standard deviation of 25.4%), 10.9% (with the standard deviation of 15.4%) for the moderate case, 9.2% (with the standard deviation of 11.8%) for the equiprobable case, and 5.5% for the optimistic case (with the standard deviation of 5.6%).

Overall, the EVPI values in Tables 7 and 8 indicate that future knowledge of plate defects would be advantageous for making accurate decisions about which items to select and produce. Thus, solving the two-stage stochastic model is important to the problem, since the EVPI values are relatively high for the majority of the instances and also in the overall average for the cases. The lower EVPI values observed for the optimistic case are justified by the low probability of occurrence of the scenarios with more defects.

The results for the VSS are presented in Table 9 considering the four cases under study (pessimistic, moderate, equiprobable, and optimistic). All solutions reported in the table are optimal. In the expected value problem, the reference scenario consists of scenario #8 in Figure 3, which is the one with the largest number of defects and would represent the worst situation. In general, the VSS values show that solving the two-stage stochastic model for the problem is more advantageous than solving an expected value problem, especially for the optimistic, equiprobable, and moderate cases. In other words, the cost of ignoring the uncertainties in the problem is high and this is reflected in the low objective value of the expected value problem.

Table 9
VSS for the 14 instances with optimal solutions in all cases.

In the results of Table 9, the instances with higher VSS values that consequently have higher relative differences (i.e., percentage increase) of the RP solutions over the EVV ones are blazewicz1, fu5, rco1, threep2, threep2w9, threep3, and threep3w9, for all cases. For example, in all cases, in instances rco1 and threep2, the relative differences are greater than 30%, while in instance threep2w9, the values exceed 60%. On the other hand, there is no difference for some instances, such as poly1c, shapes2, and shirts1-2, because they are instances whose effect of defects has little influence on the item cancellation (i.e., there are few defects or they are in positions that allow the selected items to be repositioned inside the plate to avoid cancellation).

Analyzing the values of the EVV between the cases, in Table 9, we notice that the optimistic case presents the highest average relative difference, of 45.0%, followed by the equiprobable case, with an average value of 30.1%, then the moderate case, with an average value of 23.2%, and finally the pessimistic case, with an average value of 12.1%. The lower values for the pessimistic case are justified by the EVV considering the solution from solving the expected value problem with the worst-case scenario (i.e., scenario #8, which has more defects). Therefore, the tendency is to select fewer items and thus cancel fewer items in the scenarios. This results in a smaller difference between the RP and EVV solutions in the pessimistic case compared to the other ones.

We summarize in Table 10 the results of the risk-neutral model. Each line of this table has a case; the results for all instances in Tables 3 to 6: the percentage number of optimal solutions, the average gap in percentage, the average computational time in seconds, and the percentage of instances with no item cancellation; the average relative EVPI for the instances in Tables 7 and 8; and the average relative difference of the RP solutions over the EVV ones for the instances in Table 9, for the VSS results. These results evidence the importance of solving a stochastic optimization model to obtain profitable solutions and, at the same time, the considerable computational effort that is required to obtain optimal solutions.

Table 10
Summary of the results obtained with the risk-neutral model.

4.3 Results of the risk-averse model

We start solving the risk-averse model (11)-(14) with the parameter α = 1, for ∆max obtained from the solution of the risk-neutral model. The results presented in Table 11 consider the same 14 instances used in the experiments for the EVPI and VSS analyses, over the four cases under study. The table contains the objective value of the optimal solution of the risk-averse model for α ∈ {1; 0.75; 0.5; 0.25; 0.0}. In addition, we present the relative difference (i.e., percent decrease) of the objective value for a given α compared to the value obtained for α = 1, which corresponds to the risk-neutral model solution (i.e., the RP solution presented in the previous tables).

Table 11
Solutions of the risk-averse model for the 14 instances with optimal solutions.

The results in Table 11 show that the solution gets worse (i.e., the profit from cutting the plate decreases) as α is reduced (i.e., as the aversion to risk increases). Observing all cases, the instances most affected by the α reduction are blazewicz1, fu5, rco1, three, threep2, threep2w9, and threep3. For example, for instances threep2 and threep3, the reduction in the objective value was over 7% (for α = 0.75) and 23% (for α = 0.25) in the moderate case. On the other hand, instances such as fu6, poly1c, and shirts1-2 had little or no worsening in the objective value while increasing the risk aversion, justified by the little or no influence of defects on the selection and positioning of items in the plate.

Observing Table 11, in general, the case with the largest reduction in the objective value is the optimistic one, with an average relative difference of 27.7% when α = 0 (i.e., assuming a fully risk-averse problem), followed by the equiprobable case whose average relative difference is 22.8%, and the moderate case, with an average relative difference of 20.3%. The pessimistic case presents the smallest reductions in the objective value as the risk aversion increases (i.e., as the value of α is reduced), with an average relative difference of 7.5% when α = 0. We notice that in the pessimistic case there is a higher probability of occurrence of the scenarios with more defects, resulting in solutions with the selection of fewer items to avoid cancellations. This is also observed in the results of the risk-neutral model. On the other hand, when considering a 25% or 50% reduction in ∆max, i.e., α = 0.75 or α = 0.5, the largest reductions occur for the equiprobable and moderate cases, followed by the optimistic case.

Figure 4 illustrates the percentage reduction in the objective value of instances blazewicz1, fu5, rco1, threep2, threep2w9, and threep3 for all cases (pessimistic, moderate, equiprobable, and optimistic). The construction of the objective value curve for each case considers solving the risk-averse model to α varying in intervals from 5% until reaching α = 0. We observe in this figure that the curves decrease as the values of α decrease. As the risk-averse problem controls the variability that exists among scenarios, the largest impact occurs in the optimistic case, which considers a low probability of occurrence for the scenarios with more defects. On the other hand, the pessimistic case is the one with the smallest reduction in the objective function, ranging from -2.6% (fu5) to -38.7% (threep2w9) when α = 0. In instances blazewicz1 and fu5, the optimistic case presents a reduction of -23.7% and -19.7%, for α = 0. This same situation, in instances rco1 and threep3, results in a reduction of -34.1% and -36.8%, while in the threep2 and threep2w9, the reduction is even larger, of -66.9% and -68.9%, respectively. The equiprobable case presents the second largest reductions in the objective value, especially when α approaches zero. We notice also that the reductions in the objective function in the equiprobable case are compatible with those in the optimistic case when α varies in the interval [0.15; 0.55].

Figure 4
Percentage reduction of the objective value of instances from Table 11 considering α reducing from 5% to 5%.

5 CONCLUDING REMARKS

We present a two-stage stochastic optimization model for the two-dimensional irregular knapsack problem with uncertainties associated with the plate defects. The first stage of the model decides which items to select, while the second stage handles the decisions to define a feasible production plan as the plate defects are realized. While this model is risk-neutral, we have extended it to consider a risk aversion measure that limits the variability of the second-stage decisions. The models are solved with a branch-and-cut algorithm, using the no-fit raster and inner-fit raster methods to ensure a feasible positioning of items in the plate.

Computational tests with the risk-neutral model show that the cases where the probability of occurrence of the scenarios with fewer defects is higher tend to have better objective values (i.e., result in higher profit when cutting the plate), as in the optimistic case. The solutions in the pessimistic case consider selecting fewer items to avoid cancellation costs since the scenarios with more defects have higher chances of occurring. Besides that, the analyses of the expected value of perfect information and the stochastic solution value show that the uncertainties about defects directly impact the profit when cutting the plate. They indicate it is advantageous to solve the stochastic optimization model instead of considering an approximate solution by solving wait-and-see problems or an expected value problem. On the other hand, when evaluating the solutions of the risk-averse model, we observe a significant deterioration of the objective value when having a conservative decision-maker, in particular, for the optimistic case, since this case considers a low probability of occurrence for the scenarios with more defects. We note it is possible to control the reduction of the objective value by adjusting the risk aversion parameter.

As a way of continuing this research, future directions may consider having more items, more defects, different dimensions for the plate, and/or more scenarios. Concerning the number of items and dimensions of the plate, we could investigate how the decisions related to selecting and positioning of items impact on the final solution. Regarding the number of defects and scenarios, we could evaluate the models’ scalability and the trade-off between solution quality and computational effort. These may demand more computational effort to have an optimal solution, creating opportunities for the proposal of heuristics and their integration with the proposed models. Another line of research seeking to accelerate the resolution of the models is related to the development of valid inequalities related to the positioning of items and the proposal of methods based on Benders decomposition (Almeida & Conceição, 2021ALMEIDA JFF & CONCEIÇÃO SV. 2021. A decomposition approach for the two-stage stochastic supply network planning in light of the rolling horizon practice. Pesquisa Operacional, 41(e234451): 1-23. Available at: https://doi.org/10.1590/0101-7438.2021.041s1.00234451.
https://doi.org/10.1590/0101-7438.2021.0...
).

Acknowledgments

This research was supported by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior [CAPES grant number 001], and Fundação de Amparo à Pesquisa do Estado de São Paulo [FAPESP grant numbers 2013/07375-0, 2016/01860-1 and 2018/07240-0].

References

  • AHMED S & SAHINIDIS NV. 1998. Robust Process Planning under Uncertainty. Industrial & Engineering Chemistry Research, 37(5): 1883-1892. Available at: https://doi.org/10.1021/ie970694t
    » https://doi.org/10.1021/ie970694t
  • ALMEIDA JFF & CONCEIÇÃO SV. 2021. A decomposition approach for the two-stage stochastic supply network planning in light of the rolling horizon practice. Pesquisa Operacional, 41(e234451): 1-23. Available at: https://doi.org/10.1590/0101-7438.2021.041s1.00234451
    » https://doi.org/10.1590/0101-7438.2021.041s1.00234451
  • ALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012a. New constructive algorithms for leather nesting in the automotive industry. Computers & Operations Research, 39(7): 1487-1505. Available at: https://doi.org/10.1016/j.cor.2011.08.021
    » https://doi.org/10.1016/j.cor.2011.08.021
  • ALVES CMM, BRÁS PAF, CARVALHO JMV & PINTO TMP. 2012b. A variable neighborhood search algorithm for the leather nesting problem. Mathematical Problems in Engineering, 183: 28. Available at: https://doi.org/10.1155/2012/254346
    » https://doi.org/10.1155/2012/254346
  • BAKKER H, DUNKE F & NICKEL S. 2020. A structuring review on multi-stage optimization under uncertainty: Aligning concepts from theory and practice. Omega, 96: 102080. Available at: https://doi.org/10.1016/j.omega.2019.06.006
    » https://doi.org/10.1016/j.omega.2019.06.006
  • BALDACCI R, BOSCHETTI MA, GANOVELLI M & MANIEZZO V. 2014. Algorithms for nesting with defects. Discrete Applied Mathematics, 163, Part 1: 17-33. Available at: https://doi.org/10.1016/j.dam.2012.03.026
    » https://doi.org/10.1016/j.dam.2012.03.026
  • BENNELL J & OLIVEIRA J. 2008. The geometry of nesting problems: A tutorial. European Journal of Operational Research, 184(2): 397-415. Available at: https://doi.org/10.1016/j.ejor.2006.11.038
    » https://doi.org/10.1016/j.ejor.2006.11.038
  • BIRGE JR & LOUVEAUX F. 1997. Introduction to stochastic programming. New York: Springer.
  • CHEN K, ZHUANG J, ZHONG S & ZHENG S. 2020. Optimization Method for Guillotine Packing of Rectangular Items within an Irregular and Defective Slate. Mathematics, 8(11). Available at: https://www.mdpi.com/2227-7390/8/11/1914
    » https://www.mdpi.com/2227-7390/8/11/1914
  • CHERRI LH, CARRAVILLA MA & TOLEDO FMB. 2016. A model-based heuristic for the irregular strip packing problem. Pesquisa Operacional , 36(3): 447-468. Available at: https://doi.org/10.1590/0101-7438.2016.036.03.0447
    » https://doi.org/10.1590/0101-7438.2016.036.03.0447
  • CHUNG J, SCOTT III DR & HILLMAN DJ. 1990. Intelligent nesting system on 2-D highly irregular resources. In: TRIVEDI MM (Ed.), Applications of Artificial Intelligence VIII, vol. 1293. pp. 472-483. International Society for Optics and Photonics. Orlando, FL, United States: SPIE. Available at: https://doi.org/10.1117/12.21096
    » https://doi.org/10.1117/12.21096
  • CRISPIN A, CLAY P, TAYLOR G, BAYES T & REEDMAN D. 2005. Genetic algorithm coding methods for leather nesting. Applied Intelligence, 23: 9-20. Available at: https://doi.org/10.1007/s10489-005-2368-2
    » https://doi.org/10.1007/s10489-005-2368-2
  • DALALAH D, KHRAIS S & BATAINEH K. 2014. Waste minimization in irregular stock cutting. Journal of Manufacturing Systems, 33(1): 27-40. Available at: https://doi.org/10.1016/j.jmsy.2013.11.003
    » https://doi.org/10.1016/j.jmsy.2013.11.003
  • GAREY MR & JOHNSON DS. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. San Francisco: Freeman.
  • HAN GC & NA SJ. 1994. A New Multi-Stage Layout Approach for Optimal Nesting of 2-Dimensional Patterns with Boundary Constraints and Internal Defects. Transactions of the Korean Society of Mechanical Engineers, 18(12): 3236-3245. Available at: https://doi.org/10.22634/KSME.1994.18.12.3236
    » https://doi.org/10.22634/KSME.1994.18.12.3236
  • HEISTERMANN J & LENGAUER T. 1995. The nesting problem in the leather manufacturing industry. Annals of Operations Research, 57: 147-173. Available at: https://doi.org/10.1007/BF02099695
    » https://doi.org/10.1007/BF02099695
  • LEE WC, MA H & CHENG BW. 2008. A heuristic for nesting problems of irregular shapes. Computer-Aided Design, 40(5): 625-633. Available at: https://doi.org/10.1016/j.cad.2008.02.008
    » https://doi.org/10.1016/j.cad.2008.02.008
  • MA Z, KWON RH & LEE CG. 2010. A stochastic programming winner determination model for truckload procurement under shipment uncertainty. Transportation Research Part E: Logistics and Transportation Review, 46: 49-60. Available at: https://doi.org/10.1016/j.tre.2009.02.002
    » https://doi.org/10.1016/j.tre.2009.02.002
  • MARTINS TC & TSUZUKI MSG. 2010. Simulated annealing applied to the irregular rotational placement of shapes over containers with fixed dimensions. Expert Systems with Applications, 37: 1955-1972. Available at: https://doi.org/10.1016/j.eswa.2009.06.081
    » https://doi.org/10.1016/j.eswa.2009.06.081
  • MUNDIM LR. 2017. Mathematical models and heuristic methods for nesting problems. Doutorado em ciências da computação e matemática computacional. Instituto de Ciências Matemáticas e de Computação, Universidade de São Paulo. São Carlos, SP, Brasil.
  • MUNDIM LR & ANDRETTA M. 2014. Problema de corte de itens irregulares na fabricação de luvas de couro. In: XLVI Simpósio Brasileiro de Pesquisa Operacional. pp. 1-12. Salvador-BA, Brasil.
  • MUNDIM LR, ANDRETTA M, CARRAVILLA MA & OLIVEIRA JF. 2018. A general heuristic for two-dimensional nesting problems with limited-size containers. International Journal of Production Research, 56(1-2): 709-732. Available at: https://doi.org/10.1080/00207543.2017.1394598
    » https://doi.org/10.1080/00207543.2017.1394598
  • MUNDIM LR, ANDRETTA M & QUEIROZ TA. 2017. A biased random key genetic algorithm for open dimension nesting problems using no-fit raster. Expert Systems with Applications , 81(15): 358-371. Available at: https://doi.org/10.1016/j.eswa.2017.03.059
    » https://doi.org/10.1016/j.eswa.2017.03.059
  • MUNDIM LR & QUEIROZ TA. 2012. A hybrid heuristic for the 0-1 knapsack problem with items of irregular shape. In: XXXVIII Conferência Latino-americana em Informática (CLEI). pp. 1-6. Medellín, Colombia. Available at: https://doi.org/10.1109/CLEI.2012.6427170
    » https://doi.org/10.1109/CLEI.2012.6427170
  • PERALTA J, ANDRETTA M & OLIVEIRA JF. 2018. Solving irregular strip packing problems with free rotations using separation lines. Pesquisa Operacional , 38(2): 195-214. Available at: https://doi.org/10.1590/0101-7438.2018.038.02.0195
    » https://doi.org/10.1590/0101-7438.2018.038.02.0195
  • PINTO TMP, ALVES CMM, CARVALHO JMV & BRÁS PAF. 2016. Heuristic methods for the leather nesting problem in the automotive industry. International Journal of Business Excellence, 9(3): 332-347. Available at: https://dx.doi.org/10.1504/IJBEX.2016.075594
    » https://dx.doi.org/10.1504/IJBEX.2016.075594
  • REIJNTJES IE. 2016. Solving a nesting problem using the collision free region. Master in mathematics and computer science. Eindhoven University of Technology. Eindhoven, Netherlands.
  • ROMÁN AE. 2020. An Evolutionary Algorithm for Solving the Two-Dimensional Irregular Shape Packing Problem Combined with the Knapsack Problem. Master in artificial intelligence. Polytechnic University of Catalonia. Barcelona, Spain.
  • SCHEITHAUER G & TERNO J. 1993. Modeling of packing problems. Optimization, 28(1): 63-84. Available at: https://doi.org/10.1080/02331939308843904
    » https://doi.org/10.1080/02331939308843904
  • SHAPIRO A, TEKAYA W, DA COSTA JP & SOARES MP. 2013. Risk neutral and risk averse Stochastic Dual Dynamic Programming method. European Journal of Operational Research , 224(2): 375-391. Available at: https://doi.org/10.1016/j.ejor.2012.08.022
    » https://doi.org/10.1016/j.ejor.2012.08.022
  • SOUZA QUEIROZ LR & ANDRETTA M. 2020. Two effective methods for the irregular knapsack problem. Applied Soft Computing, 95: 106485. Available at: https://doi.org/10.1016/j.asoc.2020.106485
    » https://doi.org/10.1016/j.asoc.2020.106485
  • SOUZA QUEIROZ LR & ANDRETTA M. 2022. A branch-and-cut algorithm for the irregular strip packing problem with uncertain demands. International Transactions in Operational Research, 29(6): 3486-3513. Available at: https://doi.org/10.1111/itor.13122
    » https://doi.org/10.1111/itor.13122
  • TAY FEH & LEE CFC. 2002. Pattern nesting on irregular-shaped stock using Genetic Algorithms. Engineering Applications of Artificial Intelligence, 15: 551-558. Available at: https://doi.org/10.1016/S0952-1976(03)00009-5
    » https://doi.org/10.1016/S0952-1976(03)00009-5
  • TOLEDO FMB, CARRAVILLA MA, RIBEIRO C, OLIVEIRA JF & GOMES AM. 2013. The Dotted-Board Model: a new MIP model for nesting irregular shapes. International Journal of Production Economics, 145: 478-487. Available at: https://doi.org/10.1016/j.ijpe.2013.04.009
    » https://doi.org/10.1016/j.ijpe.2013.04.009
  • VALLE AMD, QUEIROZ TA, MIYAZAWA FK & XAVIER EC. 2012. Heuristics for two-dimensional knapsack and cutting stock problems with items of irregular shape. Expert Systems with Applications , 39(16): 12589-12598. Available at: https://doi.org/10.1016/j.eswa.2012.05.025
    » https://doi.org/10.1016/j.eswa.2012.05.025
  • WÄSCHER G, HAUBNER H & SCHUMANN H. 2007. An improved typology of cutting and packing problems. European Journal of Operational Research , 183(3): 1109-1130. Available at: https://doi.org/10.1016/j.ejor.2005.12.047
    » https://doi.org/10.1016/j.ejor.2005.12.047
  • YUPING Z, SHOUWEI J & CHUNLI Z. 2005. A very fast simulated re-annealing algorithm for the leather nesting problem. International Journal of Advanced Manufacturing Technology, 25(11): 1113-1118. Available at: https://doi.org/10.1007/s00170-003-1966-6
    » https://doi.org/10.1007/s00170-003-1966-6

Publication Dates

  • Publication in this collection
    26 Aug 2022
  • Date of issue
    2022

History

  • Received
    10 Jan 2022
  • Accepted
    15 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