Stochastic Item Descent Method for Large Scale Equal Circle Packing Problem

Kun He, Min Zhang, Jianrong Zhou, Yan Jin, Chu-Min LiarXiv 2020

Abstract

The Equal Circle Packing Problem (ECPP) involves placing $n$ non-overlapping unit circles into a circular container of minimum radius $R$. As $n$ increases, the search space expands exponentially, making it a classic NP-hard challenge. We present the Stochastic Item Descent Method (SIDM), an algorithm designed to overcome the computational bottlenecks of existing methods. By adopting a mini-batch approach inspired by stochastic gradient descent, SIDM optimizes subsets of circles using the BFGS algorithm. Our results demonstrate that SIDM maintains high efficiency for large-scale problems, successfully finding feasible layouts for up to 1,500 circles, significantly extending the practical limits of circle packing solvers.

Introduction

The Equal Circle Packing Problem (ECPP) is a fundamental optimization problem with diverse applications in logistics, manufacturing, and engineering. The goal is to determine if $n$ unit circles can fit within a larger circular container of radius $R$ without overlapping. Despite its simple formulation, ECPP is NP-hard, and finding optimal or even feasible solutions becomes increasingly difficult as $n$ grows.

Existing state-of-the-art algorithms, such as the quasi-physical human algorithm (QPQH), perform effectively for small to medium-sized instances. However, they often encounter a "computational wall" around $n=300$, where the time required to find a solution grows prohibitively. The Stochastic Item Descent Method (SIDM) is proposed to break this barrier, enabling the solution of large-scale packing problems involving thousands of circles within a reasonable timeframe.

Methodology: Stochastic Item Descent

SIDM introduces a novel optimization framework based on three core components:

1. Quasi-physical Model

The algorithm treats circles as elastic objects and the container as a rigid boundary. Overlaps between circles or protrusions beyond the container wall generate "potential energy." The optimization objective is to minimize this energy to zero, which corresponds to a valid, non-overlapping configuration.

2. Mini-batch BFGS Optimization

Drawing inspiration from mini-batch optimization in deep learning, SIDM avoids updating all circle positions simultaneously. Instead, it partitions the circles into smaller "batches" or groups. The Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm—a powerful quasi-Newton method—is applied to one group at a time while the remaining circles are held fixed. This reduces the per-iteration computational complexity from $O(n^2)$ to $O((n/m)^2)$, where $m$ is the number of batches.

3. Dynamic Batching and Basin-Hopping

The algorithm employs a multi-stage approach. It begins with small group sizes (typically $s=100$) to rapidly establish a coarse layout. As the process converges, groups are merged to allow for global fine-tuning. To escape local minima, SIDM utilizes an enhanced basin-hopping strategy that dynamically adjusts the container radius to perturb the system and discover better packing arrangements.

Experimental Results

The performance of SIDM was evaluated against the QPQH algorithm using benchmarks from Packomania. For instances where $n < 250$, both algorithms show comparable performance. However, as the number of circles increases beyond 250, SIDM demonstrates a clear advantage in computational speed.

Average running time comparison between QPQH and SIDM for n=200 to 320.

As shown in the figure above, the running time for QPQH escalates rapidly, while SIDM maintains a more manageable growth rate. For $n=320$, SIDM reaches a solution in approximately 5,000 seconds, whereas QPQH requires over 8,000 seconds.

Large-Scale Benchmarking

A key contribution of this work is the successful application of SIDM to very large-scale instances, reaching up to $n=1,500$. Most previous research in the field has focused on $n \leq 320$ due to the extreme computational costs.

Performance of SIDM on large-scale instances up to n=1500.

The table above details the success rate ("hit count") and average running time for these large-scale tests. While the difficulty increases with $n$, SIDM consistently finds feasible solutions. Notably, the algorithm found a solution for $n=1,500$ in approximately 41,286 seconds, demonstrating its scalability and robustness for industrial-scale applications.

Conclusion

The Stochastic Item Descent Method effectively bridges the gap between small-scale circle packing and large-scale industrial requirements. By integrating mini-batch optimization with quasi-physical modeling, SIDM provides a scalable solution that outperforms traditional methods as the problem size grows. Future research will explore the application of SIDM to unequal circle packing and its integration into binary search frameworks to optimize the container radius directly.

Summary updated

BibTeX
@misc{he2020stochastic,
  author = {Kun He and Min Zhang and Jianrong Zhou and Yan Jin and Chu-Min Li},
  title = {{Stochastic Item Descent Method for Large Scale Equal Circle Packing Problem}},
  year = {2020},
  eprint = {2001.08540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.08540},
}
Figure