In this work, we propose a heuristic to solve two-dimensional cutting and packing problems using a raster representation of shapes and container. We use discrete mathematical morphology operators and representations to prevent overlaps and to reduce the gaps between shapes. During the shapes placement, our method executes a continuous snapping of polygons to bring recently positioned shapes closer to others and to the container boundaries, thereby making our method a hybrid method that takes advantage of different techniques in the continuous and discrete domains. The results show that our approach is competitive to other works in the literature, since it can find optimal solutions for 7 instances among the 15 instances included in our dataset, the same number as reported by other works in the literature.
|