Papers
Topics
Authors
Recent
Search
2000 character limit reached

Bin Packing Problem with Setups (BPPS)

Updated 7 January 2026
  • BPPS is a generalization of the classical bin packing problem that incorporates setup weights and costs per class, complicating capacity and cost management.
  • Integer programming formulations enriched with Minimum Classes and Minimum Bins Inequalities significantly tighten LP relaxations and enhance computational performance.
  • The model has broad applications in production planning, vehicle loading, and extended multi-dimensional settings, with tailored approximation algorithms and branch-and-price methods.

The Bin Packing Problem with Setups (BPPS) is a generalization of the classical Bin Packing Problem (BPP) that captures a diverse set of practical scenarios in production planning, logistics, and other domains where setup operations with associated capacity and cost penalties must be incurred whenever items of new types or classes are consolidated in a bin. The problem introduces setup weights and setup costs in addition to classical item weights and bin capacity constraints, resulting in a substantially richer combinatorial and polyhedral structure. BPPS is NP-hard and has motivated new integer programming formulations, polyhedral analyses, approximation algorithms, and computational studies (Baldacci et al., 12 Sep 2025, Baldacci et al., 31 Dec 2025, Groschke et al., 1 Sep 2025).

1. Formal Definition and Problem Structure

Given a set of nn items I={1,2,,n}I = \{1,2,\ldots,n\}, each item ii has weight wiZ>0w_i \in \mathbb{Z}_{>0}. Items are partitioned into mm classes C={1,2,,m}C = \{1,2,\ldots,m\} with P={I1,I2,,Im}P = \{I_1, I_2, \ldots, I_m\}, where IcII_c \subseteq I is the set of items in class cc. For each class cc, there is a setup weight scZ0s_c \in \mathbb{Z}_{\ge0} and a setup cost fcZ0f_c \in \mathbb{Z}_{\ge0}, incurred once per bin if any item of class cc is assigned to that bin. Bins are unlimited, identical, and have capacity dZ>0d \in \mathbb{Z}_{>0}. Each bin also incurs a fixed cost rZ>0r \in \mathbb{Z}_{>0} if used.

The objective is to assign all items to bins such that, for each bin bb, the total used capacity satisfies

ibwi+cA(b)scd,\sum_{i\in b} w_i + \sum_{c\in A(b)} s_c \leq d,

where A(b)A(b) is the set of classes with at least one item in bb; and to minimize total cost:

bB(r+cA(b)fc),\sum_{b \in B} \left( r + \sum_{c \in A(b)} f_c \right),

where BB is the set of used bins. The model ensures each item is packed exactly once and bin capacity is not exceeded, with the combinatorial complication that setup weights and costs are class-dependent per bin.

Applications include production planning with family-specific setup times and costs, vehicle loading where handling equipment is class-specific, and temperature-controlled distribution with compartmental setup penalties (Baldacci et al., 12 Sep 2025).

2. Integer Programming Formulations and Polyhedral Strengthening

A natural integer linear programming (ILP) model uses, for an a priori upper bound kk on the number of bins, the decision variables:

  • xi,b{0,1}x_{i,b} \in \{0,1\}: item ii assigned to bin bb,
  • yc,b{0,1}y_{c,b} \in \{0,1\}: class cc is active in bin bb (some iIci \in I_c assigned to bb),
  • zb{0,1}z_b \in \{0,1\}: bin bb is used.

The objective is

minb=1k(rzb+c=1mfcyc,b)\min \sum_{b=1}^k \left( r z_b + \sum_{c=1}^m f_c y_{c,b} \right)

subject to:

  • b=1kxi,b=1\sum_{b=1}^k x_{i,b} = 1 for all ii (item assignment),
  • i=1nwixi,b+c=1mscyc,bdzb\sum_{i=1}^n w_i x_{i,b} + \sum_{c=1}^m s_c y_{c,b} \leq d z_b for all bb (capacity),
  • xi,byc,bx_{i,b} \leq y_{c,b} for all iIci \in I_c, cc, bb (logical linking).

Relaxing integrality yields an LP whose lower bound (denoted ζ0\zeta_0) is arbitrarily weak as nn \to \infty for certain pathological instances, with ζ0/OPT0\zeta_0 / \mathrm{OPT} \to 0 (Baldacci et al., 12 Sep 2025).

To address this, Minimum Classes Inequalities (MCIs) and Minimum Bins Inequality (MBI) are introduced:

  • For each class cc, Lc=iIcwidscL_c = \left\lceil \frac{\sum_{i \in I_c} w_i}{d - s_c} \right\rceil is a lower bound on bins required for class cc, leading to MCI:

b=1kyc,bLc.\sum_{b=1}^k y_{c,b} \geq L_c.

  • K=iwi+cLcscdK = \left\lceil \frac{\sum_i w_i + \sum_c L_c s_c}{d} \right\rceil yields the MBI:

b=1kzbK.\sum_{b=1}^k z_b \geq K.

The addition of these constraints tightens the LP relaxation to guarantee ζ1/OPT>1/2\zeta_1/\mathrm{OPT} > 1/2 in the worst case (matching classical BPP), and the LP with both MCIs and MBI further strengthens the bound (Baldacci et al., 12 Sep 2025).

An upper bound on the number of bins in an optimal solution is given by summing class-wise upper bounds computed by heuristics for packing IcI_c into bins of effective capacity dscd-s_c, resulting in reduced ILP problem size and improved scalability.

3. Approximation Algorithms and Hardness Considerations

Straightforward adaptations of classical bin packing approximation algorithms (such as Next Fit, First Fit, and Best Fit, even with Decreasing order) fail on BPPS, exhibiting arbitrarily poor worst-case behavior due to fragmentation introduced by setup weights (Baldacci et al., 31 Dec 2025).

A two-phase heuristic TP(A)(\mathcal{A}) is established, using a black-box α\alpha-approximation for BPP:

  • Phase 1: For each class cc, independently pack IcI_c into bins of capacity dscd-s_c using A\mathcal{A}; each resulting group of bins is added to the partial solution.
  • Phase 2: Greedily merge any two bins if their union (including setup weights) does not exceed dd; repeat until no merges are possible.

This method is a 2α2\alpha-approximation: even with A\mathcal{A} optimal (α=1\alpha = 1), the approach achieves a factor-2 guarantee. Plugging in FFD or BFD (α=3/2\alpha = 3/2) achieves a factor-3 approximation for BPPS. It is unknown if sub-2-approximation is possible with general merge-based schemes (Baldacci et al., 31 Dec 2025).

4. Extensions: Multi-dimensional and Multi-criteria Variants

A two-dimensional BPPS (2D-BPPS), relevant in PCB manufacturing, involves packing rectangular items with minimum spacing into bins of fixed width and height, while minimizing both the number of bins and the number of distinct bin layouts (representing setup types). The mathematical programming formulation becomes a bi-criteria mixed-integer program (MIP) over patterns \ell, with key variables:

  • xN0x_\ell \in \mathbb{N}_0: number of bins using layout \ell,
  • y{0,1}y_\ell \in \{0,1\}: binary indicator for whether layout \ell (setup) is used.

Objective:

minx,y  c1y+c2x\min_{x,y}\; c_1 \sum_{\ell} y_\ell + c_2 \sum_\ell x_\ell

subject to demand coverage and linking constraints.

A branch-and-price algorithm, leveraging column generation and adapted Ryan–Foster branching, efficiently manages the vast pattern space. This framework directly controls the trade-off between bin and setup counts by varying c1/c2c_1/c_2, and shows practical scalability for medium-sized instances (Groschke et al., 1 Sep 2025). Setups are indirectly managed in the pricing subproblem and node selection, as the setup-count objective only re-enters at the master problem level.

5. Computational Insights and Practical Performance

A comprehensive benchmark of 480 BPPS instances with varied nn, mm, bin capacities, item and setup weight ranges, and cost structures demonstrates the dramatic impact of model strengthening (Baldacci et al., 12 Sep 2025):

ILP Variant Solved Instances Avg. Gap (Unsolved)
Base Model N\mathcal{N} 162 14.4%
N\mathcal{N} + MCIs 220 6.7%
N\mathcal{N} + MCIs + MBI 253 6.0%
N\mathcal{N} + MCIs + MBI + UB 268 5.7%

The MCIs more than double the solve rate, with further gains from the MBI and instance-specific bin count upper bound; the average gap drops from 14.4% to 5.7%. The effect is even more pronounced on large nn; for n=200n=200, only the full-strength model solves any instances within time limits.

In two-dimensional settings, branch-and-price with heuristic node selection (minimizing pattern count) reduces setup diversity by factors of $4$--$6$ relative to depth-first, at an increased node expansion cost. For n5n \approx 5 and moderate demands, the MIP gap reaches 0%0\% within $30$ minutes, typically using $3$--$8$ layouts and $20$--$60$ bins. Larger instances with n10n \geq 10 can retain 1%1\%--7%7\% final gaps after two hours (Groschke et al., 1 Sep 2025).

6. Connections, Applications, and Future Directions

BPPS subsumes classical BPP and models several practical applications:

  • Production lines with family-dependent changeover times and costs,
  • Vehicle loading with commodity-specific handling equipment,
  • Distribution logistics with compartmentalized storage.

The key research advances include polyhedral characterizations (MCIs/MBI), provably effective ILP formulations, and the first constant-factor approximation algorithms for BPPS (Baldacci et al., 12 Sep 2025, Baldacci et al., 31 Dec 2025). For two-dimensional multi-criteria objectives, dedicated branch-and-price implementations provide explicit trade-off control and operational scalability (Groschke et al., 1 Sep 2025).

Open directions include improved approximation factors for BPPS (current best is 2α2\alpha for merge-based algorithms), deeper polyhedral analyses for higher dimensions or complex objective structures, and further computational enhancement for large-scale industrial applications.


References

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Bin Packing Problem with Setups (BPPS).