Abstract
The current paper focuses on the design of size reduction procedures for large-scale Bin Packing Problem with Conflicts (BPPC). The NP-hard complexity of the problem makes size reduction a valuable preprocessing step for the resolution process. Based on some newly established theorems, we provide a set of three relevant procedures for optimal and approximate size reductions. An optimal (respectively, approximate) size reduction of a BPPC instance stands for an optimal (respectively, approximate) placement of a subset of items into a particular bin. The first procedure generalizes Martello and Toth's dominance criterion, initially developed for the Bin Packing Problem (BPP). The other two procedures are designed to deal with special graph structures. Examples are used throughout this work to exhibit the operational mechanism of these reduction procedures. The related numerical results demonstrate the efficiency of the elaborated dominance criteria and illustrate the computational time complexity of the size reduction procedures for special graph structures.
Keywords
Introduction
Let V be a set of n items, and W their associated positive weights {w1, w2, …, wn}. These items are to be packed in identical bins, each with a maximum capacity of Q. In the present paper, the objective of the BPPC is to place all items into as few bins as possible while ensuring that no bin's capacity is surpassed and the items filled in each bin are non-conflicting. A conflict between items (i and j) is represented by an edge (i, j) ∈ E in the problem-associated graph G = (V, E). The BPPC is classified as an NP-hard problem. 1 Indeed, it is a generalization of two other strongly NP-hard problems: the BPP and the vertex coloring (VCP). 2 The BPP (respectively, the VCP) is a special case of the BPPC if E = ∅︀ (respectively if all items’ weights are equal to zero). The studied problem was formulated in 1 as a binary integer program (BIP).
Let indices i and j represent items in the set {1, 2, …n}, and let the index k represent a bin in the set of possible bins {1, 2, …n}.
BPPC finds applications in multiple areas, including exam scheduling, 3 where the room capacities (representing bins) must be respected, and no student (representing items) can be scheduled for more than one exam at the same time (representing conflicts between items). The problem also arises in tasks-to-processor assignments, 4 involving allocating tasks to processors while respecting conflict constraints, where certain tasks cannot run on the same processor due to dependencies or resource conflicts. The objective here is to minimize the number of processors employed. Another application is found in managing warehousing and vehicle loads for incompatible products,5,6,7 where some of them cannot be stored and transported together due to safety (flammable and explosive items) or quality concerns (contamination risks, temperature sensitivity, chemical reactions, etc.). This has led to a set of conflict constraints, ensuring that certain products are not placed in the same warehouse or vehicle. Therefore, we need to determine the minimum number of required warehouses and vehicles. The BPPC emerges also in the field of cloud computing. 8 Here, the challenge is to assign processes to server machines, considering that none of two processes from the same service is placed on the same server.
The key contributions of the current work include: (i) the generalization of a dominance criterion to be applied to the BPPC, (ii) the development of a polynomial-time algorithm to reduce problem instances with an associated conflict-free subgraphs, and (iii) the construction of an approximate procedure to address problem instances with an associated conflicting subgraphs.
The remainder of this paper is organized as follows. Section 2 reviews the related work. In section 3, we adapt a dominance criterion initially proposed for the BPP to effectively address potential conflicts among items. Section 4 is dedicated to developing a theorem and its corresponding procedure, utilizing conflict-free subgraphs to reduce the size of the problem. Section 5 builds on the results from the previous section to handle subgraphs with partial conflicts. The conclusion and possible future research directions are presented in the final section.
The BPPC was first considered in 9 within the context of a time-constrained scheduling problem. The authors developed multiple approximation algorithms to solve a set of special cases. In, 1 approximate methods that are based on the First-Fit Decreasing (FFD) rule, graph coloring, and clique computations are developed to solve our studied problem. Furthermore, a lower bound (LB) for the BPPC is derived using a transportation-based formulation. 10 derived new bounds that are later employed in a branch and price (B&P) algorithm to address the BPPC. The authors in 10 introduced improvements in the clique-based LB developed in 1 by enlarging the conflict clique via a non-increasing degree order. The resulting clique is generally more extensive than the one determined by Johnson's algorithm. 11 Likewise, 2 proposed an improved set of LBs based on dual-feasible functions and data-dependent dual-feasible functions. The authors in 12 applied the B&P algorithm to investigate the BPPC and claimed that its efficiency is due to the efficiency of maximal clique valid inequalities associated with the conflict constraints. Besides, they stated that their algorithm outperforms the one described in. 10 Similarly, 13 proposed a B&P algorithm where a dynamic programming algorithm will perform the pricing if the graph associated with items’ conflicts is an interval graph. Otherwise, the pricing will be performed via a branch and bound algorithm if the graph structure is not recognized. An ant colony optimization algorithm followed by an adapted version of the FFD algorithm was applied in. 14 The authors in 15 used graph compression and a new formulation based on the arc flow to consider the BPPC. They highlighted its superiority in solving several challenging cutting and packing problem instances within a relatively short time. A multi-start tabu search algorithm was used in 6 to tackle a warehousing problem modeled as a BPPC. 16 presented a new heuristic powered by multiple neighborhood structures and speeded up by fast evaluative procedures to measure each move's quality. 17 used the jellyfish metaheuristic and adopted special solution representations to deal with the BPPC. 18 designed algorithms for special graph structures and determined their absolute approximation ratios. Ekici 19 investigated the BPPC where items can be fragmented, and demonstrated that the studied problem is NP-hard. Moreover, he proves that packing oversized items that are exceeding bin capacity does not necessarily yield an optimal solution, which may seem counterintuitive. Based on this remark, a LB determining procedure and a heuristic algorithm for solving the problem are proposed. Ekici 20 focused on a variant of the previously studied problem in which the capacities and costs of the bins are not necessarily the same. The goal here is to minimize the cost of packing all items. In addition, he presented a new LB for the problem and proposed an efficient novel heuristic. He further explored the BPPC in 21 by proposing a new tight LB and provided a successful local search routine combined with a large neighborhood search algorithm to solve the problem. 22 addressed the BPPC and proposed LBs for the optimal cost of placing all items into bins. On examining the 2-dimensional variant of the BPPC, 23 put forward approximate algorithms based on the tree-decomposition paradigm. Fleszar 24 investigated a variant of the BPPC where each item can be partitioned between two or more bins and developed a new mixed integer linear program (MILP) formulation for the problem, identifying it as a generalized transportation problem. In addition, he elaborated new heuristics to fill the bins based on the MILP solution of subproblems. 25 examined the three-dimensional BPP of variable size with compatible categories, where the bins are boxes and certain categories of items cannot be packed with items from other categories. The authors begin with an initial solution generated by the FFD algorithm, which is subsequently enhanced using simulated annealing and genetic algorithms. 26 focused on the generalized BPP with incompatible categories where some items are not mandatory to deliver. An efficient adaptive large neighborhood search is provided and tested against BPP with compatible categories and its generalized variant. A closely related problem is addressed in, 27 where there are a fixed number of available bins, so as to minimize the total number of conflicts detected in all used bins. In addition to investigating the mono-objective problem, 27 explored another multi-objective variant to balance the number of conflicts and that of the used bins. Another related problem examined in 28 is the two-dimensional BPP in which a minimum safe distance is required to separate incompatible items. The authors in 28 formulated the problem as an integer linear program and proposed a multi-start genetic algorithm.
The size reduction for the BPPC refers to subtracting a subset of items and their associated conflicts from the problem instance under consideration immediately after their assignment to some bins as part of an optimal/approximate solution. The dominance criteria generally lead to a reduction in search space. They are mainly used as a preprocessing step before problem-solving29–31 or for deriving an approximate solution.32–37 In addition, the dominance criteria can help obtain better LBs or accelerate the search for an optimal solution.31,38–41
Size reduction is crucial for effectively solving problems with a BPP structure. A well-known size reduction procedure, referred to as MTRP, was developed by Martello and Toth. 29 It enables optimal assignments of subsets of items to bins while improving the problem lower bound. By relying on weight ordering, the size reduction procedures are developed in 42 to help reduce the classroom assignment problem for exam timetabling. Later, 43 formulated the problem outlined in 42 as an oversized BPP and applied further reductions based again on weight ordering and dominance criterion. Recently, a new variant of size reduction has been adopted to deal with healthcare-related problems with a bin packing structure. 44 The developed size reduction procedure enables finding the optimal solution to the patient-to-nurse assignment problem in a neonatal intensive care unit in Tunisian hospitals.
To the best of our knowledge, the only research addressing size reduction for BPPC is the work by Khanafer et al. 2 By applying a size reduction procedure initially designed for the knapsack problem, they established lower bounds for the two-dimensional BPPC by accurately determining the reserved space needed for item heights and widths. Moreover, they extended the approach introduced by Carlier et al., 11 utilizing cliques in the graph to model conflicts between items.
The modified Martello and Toth dominance criterion for the BPPC
The Martello and Toth dominance criterion for the BPPC
The MTRP for the BPP can be used to approximately solve the BPPC. Indeed, given two distinct sets of items F1 and F2 that are feasible with respect to capacity and conflicts; if there exists a partition P = {P1, …, Pl} of F2 and a subset of items:{i1…, il} of F1 such that
The new dominance criterion
This section introduces a novel dominance criterion theorem, enabling the reduction of the BPPC size under certain conditions. We define exact reduction as arranging a subset of items within a bin so that it leads to at least one optimal solution. The bin associated with this arrangement is fixed and selected as part of that optimal solution. Subsequently, the items and the bin they are contained in are removed from any further consideration.
Given a positive integer Q denoting the capacity of the bin and a set of items Ci conflicting with the item i. A set of items F is called feasible if and only if:
The first constraint ensures that the cumulative weight of the items in set F remains within the limits of the bin's capacity. The second constraint ensures that there is no conflict between items in F.
Given two feasible sets of items F1 and F2 (see Definition 1). We have that F1 dominates F2 if the overall number of bins utilized within the optimal solution, by assigning items in F1 to a bin B1 (noted, B1 = F1), is less than or equal to the one obtained by assigning items in F2 to the bin B1 (noted, B1 = F2).
Let F1 and F2 be two feasible sets of items (see Definition 1). If F2 can be split into partitions {P1,…, P
l
} and the items in F1 = {i1,…, i
l
} satisfy
we are considering any feasible solution, where B1 = F2, we can derive an alternative feasible solution with an equal or smaller number of bins by exchanging each partition Ph in F2 with an item ih in F1 (i.e., B1 = F1). The interchange is feasible since both constraints related to bin capacity (1) and items’ conflicts (2) are satisfied. Therefore, F1 dominates F2.
Given that the VCP, as previously discussed, is a special case of BPPC, the relevance of this size reduction procedure becomes even more significant. Specifically, the first condition of theorem 1 will always hold for VCP, since the item's weights are zero in such cases. This means that the developed theorem optimizes the BPPC and offers a new method for reducing the size of another NP-hard problem: the VCP.
A BPPC instance where both criteria of Theorem 1 are satisfied
Here, we present a BPPC instance where Q = 95, n = 9 (the corresponding indices are indicated in the upper left corner of each item's rectangle), with associated weights (appearing in bold inside each rectangle) and conflicts (represented by edges connecting two rectangles) are shown in Figure 1.

Instance 1 of a BPPC with nine items and their conflicts that need to be packed into the minimum number of bins.
A possible solution to the above problem instance (Figure 1) is illustrated in Figure 2. Before delving into size reduction and dominance considerations, we must first confirm that the corresponding bins meet the feasibility criteria in terms of both capacity limitations and item conflicts. Given that each item in {4, 6, 8} is conflicting with each item in {5, 7, 9} and since we are looking for the dominating bin containing at least one item from the set {4, 6, 8}, we can conclude by applying theorem 1 that the bin B1 ={4, 6, 8} dominates any bin containing a feasible subset of items {1, 2, 3, 4, 6, 8}. As a result of Theorem 1, B1 can be reduced with all embedded items. Indeed, the first criterion of Theorem 1 is satisfied since each partition P1 = {1}, P2 = {2}, P3 = {3} can be associated respectively with items i1 = {4}, i2 = {6}, i3 = {8}, given that

The optimal solution of instance 1 where four bins are used to pack the nine items.
Figure 3 represents the optimal solution of a new instance (instance 2). It consists of the same problem instance discussed in Figure 1, but now it includes an additional item (item 10) and a different set of conflicts (represented by edges connecting two rectangles). In this optimal solution, the set of items {6, 7}, {4, 5}, {1, 2, 3, 10}, {8, 9} are assigned to the four bins B1, B2, B3 and B4 respectively.

Optimal solution to instance 2, using four bins to pack ten items while respecting conflicts.
Assume that we apply the reduction procedure considering only the first criterion of Theorem 1 while disregarding the second. In this case, bin B1 will be reduced, as it dominates all other possible bins. Since item i = 10 is conflicting with items in {5, 7, 9}. Consequently, it can only be packed with the remaining items: {1, 2, 3, 4, 6, 8}, as indicated in Figure 3.
Regarding the BPP, Martello and Toth 29 state that if a feasible set of items F, including item i, dominates any other feasible set of items, including item i, then the set F representing a bin will be part of an optimal solution. Hence, the bin containing item i = 10 and items {4, 6, 8} would dominate all other bins containing item i = 10. As a result of the conflict constraints, the remaining items must be placed in at least four additional bins. Consequently, the overall number of utilized bins rises to five. Figure 4 shows, through the considered instance, that the only application of the first criterion can prevent from reaching the optimal number of used bins (four as in Figure 3). Note that applying only the first criterion of Theorem 1 will not necessarily remove the set of all optimal solutions. Therefore, the minimum number of bins used will not necessarily increase.

From instance 2, the bin B1 containing items {4, 6, 8, 10} is reduced by applying only criterion 1 of theorem 1.
Figure 5 illustrates an optimal solution of a third instance (instance 3) where Q = 95 and n = 10. This shows that all items are packed in four bins with the following assignment B1 = {7, 6}; B2 = {4, 5}; B3 = {1, 2, 3, 10}; B4 = {8, 9}.

Optimal solution to instance 3, using four bins to pack ten items while respecting conflicts.
By applying only the first criterion of Theorem 1 (the second is not satisfied), we found another optimal solution having the same number of used bins with the following assignment: B1 = {3, 9}; B2 = {2, 7}; B3 = {5, 1}; B4 = {4, 6, 8, 10} (see Figure 6). This indicates that the second criterion is sufficient but not necessary for an exact reduction.

Another optimal solution to instance 3, using four bins to pack ten items while respecting conflicts.
Two main issues need to be highlighted when considering reducing the BPPC through Theorem 1:
Procedure 1 might not be efficiently implemented in an acceptable computational time, as it examines all possible reductions. A relaxed version could, therefore, be adopted to limit the number of items included in each bin to three at most. While satisfying the first criterion of Theorem 1, the second criterion could be very restrictive and stand as an obstacle to the problem size reduction. To settle this issue, we have recourse to approximate size by partially relaxing the above criterion, which we dub a “q-approximate reduction”. It consists of accepting that, at most q conflicts of those appearing in The optimal solution is discarded (additional bins are necessary): This case is illustrated in Figure 4, wherein the set The optimal solution is not discarded: Figure 6 illustrates the inverse case, wherein the optimal solution is still reachable even when applying a 3-approximate reduction.
Size reduction based on conflict-free subgraphs
This section will show that, in specific circumstances, the BPPC instance has the potential to be reduced in polynomial time.
For each item i, find the subset of items
Assume an instance of a BPPC where for some item i ∈ V, the vertices induced by {i}∪
Example:
Let V = {1, 2, …9} be a set of items to be packed in bins with capacity Q = 150. The set of conflicts and weights associated with all items are illustrated in Figure 7.
A BPPC instance where the set of items {1, 6, 7, 8, 9} are packed within the same bin as part of an optimal solution.
Since the item {1} and those in
The ICFR procedure (in line 7) strives to retrieve the non-conflicting items in NCi with item i in G’, including item i. If the items included in NCi are non-conflicting and the sum of all their weights remains below the limit of the bin's capacity Q, we can place them all into a single bin. Based on Theorem 2, this latter bin will be part of an optimal solution. Due to the conflict constraints, no additional items can be inserted into this new bin. Besides, if any item j ∈ NCi is not packed into this bin, an additional one may be required in a non-optimal solution. The first loop (line 5) takes at most n iterations to consider all items. Searching the set NCi and checking that all contained items are non-conflicting (lines 7 and 8) is O(n2). A new problem instance arises when we successfully reduce the problem size (lines 9 and 10). Therefore, the counter i will be initialized (line 11). Due to the polynomial complexity of ICFR (O(n4)), executing this procedure before starting any approximate reduction is beneficial.
In the above section, we studied the case where all items in NCi are non-conflicting. In this section, we proceed to consider the other case wherein some items in NCi are conflicting.
For each item i ∈ V within the G = (V, E), find the set of items
Since each set of items Fi, associated with each stable set containing item i, are non-conflicting and their total weight does not exceed Q, then each set Fi of items can be placed within a bin. The fact of not assigning an item j in the set Fi to a bin is not beneficial. Otherwise, item j may require an additional bin for packing, which results in increasing the number of bins employed. Given that we cannot withdraw any item (i.e., there is no benefit in doing so), nor can we include any additional item in the set Fi (due to conflict constraints), there is no other efficient feasible set of items other than those associated with all stable sets Fi. Consequently, one of these possibilities will be in an optimal assignment.
Based on Theorem 3, a resulting approximate size reduction procedure called SWCR (subgraph with conflict reduction) is developed. The SWCR procedure begins with identifying items that have no conflict with item i and including item i, noted as NCi (line 7). Once determined, it creates a graph Gi, as a subgraph of G’, induced by the set of vertices in NCi (line 8). If some items in the set NCi are conflicting, each connected component of Gi reflects the existence of conflicts between some (and not necessarily all) items associated with it. The procedure searches for all connected components of Gi (line 9). By looking for the chromatic number (approximately) associated with each connected component (line 11), we attempt to partition the set of items induced by this component into stable sets or, equivalently, into sets of non-conflicting items. We select a single stable set from each connected component of the graph Gi. These stable sets are then merged to form a single set of non-conflicting items (line 12). Given the large number of possible stable set combinations, we set a maximum of ti iterations. We proceed with selecting the combination (of stable sets Fi) associated with the maximum cumulative weight within the capacity limit Q. We assign the items associated with this combination of stable sets to a new bin
Example:
Consider a set V = {1, 2, …9} of items to be packed in bins with capacity Q = 100. The item's associated weights and conflicts are illustrated in Figure 8. Note that there exist only three feasible sets of items likely to be packed with the item i = 1, which are: {1, 6, 9}, {1, 7, 9} and {1, 8, 9}. Hence, at least one optimal solution will likely include one of these three subsets that are packed into a single bin.

Size reduction of a BPPC instance, including conflicts in the subgraph induced by items {1, 6, 7, 8, 9}.
As indicated in Figure 8, for i = 1, the set NC1 that is enclosed by a dashed line is {1, 6, 7, 8, 9}.
The subgraph G1 induced by the set NC1 are illustrated in Figure 9. The components of G1 are:

The subgraph G1 showing conflicts between items {6, 7, 8}.
Based on the SWCR procedure, we will determine the bin with the highest weight including the item i = 1. The set of efficient eligible bins are:
B1 = {1, 6, 9} with a total weight of 40 + 30 + 28 = 98, B2 = {1, 7, 9} with a total weight of 40 + 25 + 28 = 93 and B3 = {1, 8, 9} with a total weight of 40 + 20 + 28 = 88. Since the weight of all these bins does not exceed the bin capacity Q = 100 and the bin B1 has the highest weight, consequently

Graph G’ obtained after the first iteration of SWCR where the bin
For i = 2 (and after excluding items reduced in the first iteration), the set NC2 = {2, 4, 5, 8} and its induced subgraph G2 are depicted in Figure 11. Since the items included in NC2 are non-conflicting with each other, and as:

The subgraph induced by the set NC2 = {2, 4, 5, 8} is packed in the same bin as a reduction from the actual graph.
For i = 3, the set NC3 = {3, 7} and its associated induced subgraph G3 resulting from the previous iteration are illustrated in Figure 12. In fact, as the conflict and capacity constraints are satisfied, we have recourse to the ICFR procedure, and the items {3, 7} are loaded into one bin as a last size-reduction phase.

The last subgraph induced by the set NC3 = {3, 7} is packed in the same bin as a reduction from the actual graph.
Given that the LB L1 =
The size-reduction problem-solving technique is essential in addressing combinatorial optimization problems as it may substantially reduce the size of the problem instance under consideration. In addition, it displays a lower bound improvement capability and is even apt to solve certain problem instances entirely. In the present paper, we extend the dominance criterion proposed in, 29 initially designed to address the BPP, to tackle the generalized case, wherein conflicts between packed items are considered. In addition, we developed two theorems related to subgraphs with and without conflicts and proposed exact and approximate size-reduction procedures. It is noteworthy, however, that the proposed reduction procedures are usually insufficient to solve any BPPC instance. Throughout the problem-solving process, the size reduction procedure is successful in some iterations, yet unfeasible in others.
It is worth noting that most research on the BPPC has focused directly on finding an optimal solution. However, the feasible solution space for this combinatorial optimization problem is typically too large to reach the optimum within an acceptable time frame. Very few studies have tackled the size reduction of this NP-hard problem as a preprocessing step before attempting its resolution. Our work aims to bridge this gap by introducing procedures that reduce the problem's scale without eliminating all optimal solutions. The effectiveness of these new procedures is established through theorems with rigorous mathematical proofs. On this basis, the current study could be extended to address size reduction for other related NP-hard problems. In fact, while size reduction alone cannot generally solve the entire problem, its effectiveness can be significantly enhanced when hybridized with approximate methods, particularly metaheuristics, as noted by. 17 Additionally, integrating size reduction with exact methods (e.g., branch and bound or branch and cut) is expected to drastically reduce the number of nodes to be explored, which ultimately helps in decreasing the required computational time. Furthermore, while the current approach reduces only one bin per iteration, future studies could aim to develop methods that eliminate multiple bins simultaneously, thereby accelerating the search for an optimal solution.
Footnotes
Acknowledgments
The authors extend their appreciation to the Deanship of Scientific Research at Northern Border University, Arar, KSA for funding this research work “through the project number “NBU-FFR-2024-2234-02”. They also sincerely thank the anonymous reviewers for their valuable and constructive comments, which have substantially improved the quality of the paper.
The authors extend their appreciation to the Deanship of Scientific Research at Northern Border University, Arar, KSA for funding this research work “through the project number “NBU-FFR-2024-2234-02”.
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
