Fast Neighborhood Search Heuristics for the Colored Bin Packing Problem
Renan F. F. da Silva, Yulle G. F. Borges, Rafael C. S. Schouery
TL;DR
This work tackles the Colored Bin Packing Problem (CBPP), a color-constrained generalization of the classic Bin Packing Problem. It introduces five fast initial heuristics, a Variable Neighborhood Search (VNS) framework, and a matheuristic (MH) that couples linear programming with VNS and GRASP to generate high-quality patterns and solutions. Empirical results show that MH often outperforms VNS and yields near-optimal solutions on large instances (up to $10^4$ items), frequently matching the offline optimal within a single extra bin on many tested cases. The findings highlight the strength of the pattern-based formulation, the efficacy of the Two-by-Two heuristic, and the value of combining LP relaxations with disciplined meta-heuristics for CBPP. Practically, the methods enable fast, high-quality packing for complex CBPP instances, suggesting promising directions for tighter bounds and broader CBPP extensions.
Abstract
The Colored Bin Packing Problem (CBPP) is a generalization of the Bin Packing Problem (BPP). The CBPP consists of packing a set of items, each with a weight and a color, in bins of limited capacity, minimizing the number of used bins and satisfying the constraint that two items of the same color cannot be packed side by side in the same bin. In this article, we proposed an adaptation of BPP heuristics and new heuristics for the CBPP. Moreover, we propose a set of fast neighborhood search algorithms for CBPP. These neighborhoods are applied in a meta-heuristic approach based on the Variable Neighborhood Search (VNS) and a matheuristic approach that combines linear programming with the meta-heuristics VNS and Greedy Randomized Adaptive Search (GRASP). The results indicate that our matheuristic is superior to VNS and that both approaches can find near-optimal solutions for a large number of instances, even for those with many items.
