Green Bin Packing

Jackson Bibbens, Cooper Sigrist, Bo Sun, Shahin Kamali, Mohammad HajiesmailiarXiv 2025 · DOI

Abstract

Green Bin Packing (GBP) is a novel variant of the classic bin packing problem that models the trade-off between the fixed cost of opening a server and the variable cost of overutilizing it. This paper provides a comprehensive theoretical framework, proving the problem is NP-hard but approximable. We demonstrate that while classic algorithms work well when overutilization is "cheap," new threshold-based strategies are essential when penalties are high.

Introduction

In classic online bin packing, items are placed into the minimum number of unit-capacity bins, a standard model for server task allocation. However, modern cloud computing introduces new complexities:

  1. Sustainability: Data centers may use "green" energy up to a threshold, after which they must switch to more expensive "black" energy.
  2. Overcommitment: Providers often sell more capacity than physically available, incurring costs for performance degradation if usage exceeds a "safe" threshold.

The Green Bin Packing model addresses this by defining a "green" zone of size $G$ in each bin. Packing items within this zone is free (post-opening), while packing beyond $G$ into the "black" zone incurs a linear cost at rate $\beta$. The goal is to minimize the total cost: (Number of Bins) + $\beta \times$ (Total Black Space Used).

Methods

The authors evaluate GBP through theoretical analysis and empirical simulations:

  • Threshold-Based Algorithms: They introduce algorithms using an "effective capacity" $G + \tau$. Classic algorithms like NextFit, WorstFit, AlmostAnyFit (BestFit/FirstFit), and Harmonic are adapted to this model.
  • Theoretical Framework: The authors generalized standard "weight per bin" analysis into a "weight per cost" framework to account for the dual nature of the cost function.
  • Complexity: The offline version is proven NP-hard via reduction from the Partition problem, supported by an Asymptotic Polynomial-Time Approximation Scheme (APTAS).

Key Insights

  • The $\beta G$ Threshold: The problem's behavior hinges on $\beta G$. If $\beta G \le 1$, black space is relatively cheap, and filling bins to 1.0 is generally optimal. If $\beta G > 1$, black space is expensive, requiring more conservative packing.
  • WorstFit’s Performance: In the Green setting, WorstFit performs significantly better than NextFit. By balancing load across bins, WorstFit maximizes the use of "free" green space, whereas NextFit's sequential approach often wastes it.
  • Piecewise Competitive Ratios: Unlike the single-number ratios of classic bin packing, GBP ratios are continuous piecewise functions of $\beta$ and $G$, reflecting the shifting trade-offs between opening bins and paying penalties.

Results

The theoretical analysis establishes bounds across different regimes of $\beta$ and $G$.

Table 1: Competitive ratios for standard online algorithms in the GBP model.

When $\beta G \le 1$, WorstFit achieves a competitive ratio strictly better than 2. For the more expensive regime where $\beta G > 1$, threshold-optimized versions of AlmostAnyFit and Harmonic achieve a ratio of $1.75 - \Omega(1/\beta G)$.

Table 2: Competitive ratios for threshold-based algorithms in regimes where black space is expensive.

Empirical simulations using Weibull and Uniform distributions show that BestFit and FirstFit consistently outperform other methods, especially when the threshold $\tau$ is tuned.

Conclusion

Green Bin Packing provides a robust framework for modern resource management. Future research will explore superlinear cost functions and learning-augmented directions, such as using machine learning for adaptive thresholding in non-stationary environments.

Summary updated

BibTeX
@misc{bibbens2025green,
  author = {Jackson Bibbens and Cooper Sigrist and Bo Sun and Shahin Kamali and Mohammad Hajiesmaili},
  title = {{Green Bin Packing}},
  year = {2025},
  eprint = {2510.26968},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.26968},
}
Figure