Shadoks Approach to Knapsack Polygonal Packing
Guilherme D. da Fonseca, Yan Gerard
TL;DR
The paper tackles the two-dimensional knapsack polygonal packing problem, where a convex container must hold a subset of polygonal items with integer values using translations only, to maximize total value. It introduces a hybrid pipeline: generate high-quality initial solutions via an integer programming formulation and a greedy geometric heuristic, then refine them with local search that repositions items and performs replacements to improve the total value. Key contributions include a scalable IP-based initialization augmented by random translations, a suite of greedy strategies with space-filling push operations, and a clusters preprocessing framework that builds and evaluates fixed-position item groups through multiple compatibility graphs. Empirical results on 180 CG:SHOP 2024 instances show that IP methods excel on small problems, while the geometric greedy with local search matches or approaches state-of-the-art performance on larger instances; engineering techniques for fast overlap checks and grid-based packing enable robust, scalable performance and point to rich future directions for hybridization and clustering enhancements.
Abstract
The 2024 edition of the CG:SHOP Challenge focused on the knapsack polygonal packing problem. Each instance consists of a convex polygon known as the container and a multiset of items, where each item is a simple polygon with an associated integer value. A feasible packing solution places a selection of the items inside the container without overlapping and using only translations. The goal is to achieve a packing that maximizes the total value of the items in the solution. Our approach to win first place is divided into two main steps. First, we generate promising initial solutions using two strategies: one based on integer linear programming and the other on employing a combination of geometric greedy heuristics. In the second step, we enhance these solutions through local search techniques, which involve repositioning items and exploring potential replacements to improve the total value of the packing.
