An Efficient Quasi-physical Algorithm for Packing Equal Circles in a Circular Container

Kun He, Hui Ye, Zhengli Wang, Tian Xie

Abstract

The Equal Circle Packing Problem (ECPP) involves placing $n$ identical circles into the smallest possible circular container without overlap. This paper introduces the Quasi-physical Quasi-human (QPQH) algorithm, which combines a high-speed "Local BFGS" optimization with a container-shrinking strategy. By focusing on local interactions and mimicking human-like packing intuition, the algorithm achieved 66 new world records for instances up to $n=320$, demonstrating superior efficiency and robustness compared to existing heuristic methods.

Introduction

The Equal Circle Packing Problem (ECPP) is a classic NP-hard optimization challenge with significant industrial applications, ranging from satellite component layout to fiber optic cable bundling. The objective is to minimize the radius of a circular container that can house $n$ non-overlapping unit circles. Given the exponential growth of the search space as $n$ increases, finding global minima is computationally intensive, leading researchers to rely on heuristic algorithms to find "best-known" solutions.

Methodology

The QPQH algorithm integrates two primary components: a quasi-physical optimization model and a quasi-human organizational strategy.

Quasi-physical Model and Local BFGS

The algorithm treats circles as elastic objects. Overlapping circles generate "potential energy," which the system seeks to minimize to zero to reach a feasible state. Traditional optimization algorithms like BFGS typically calculate distances between all pairs of circles, resulting in $O(n^2)$ complexity.

To enhance efficiency, the authors proposed a Local BFGS method. This approach maintains an adjacency list and only calculates forces between circles that are in immediate proximity. This reduction in computational load provides a significant speedup—up to 4x for $n=200$—without compromising the quality of the solution.

Geometric constraints showing distances $d_1$ (to boundary) and $d_2$ (between circles) used in the optimization model.

Quasi-human Strategy

To escape local minima, the algorithm employs a "basin-hopping" strategy inspired by human intuition. It alternates between "tension" and "relaxation" by temporarily shrinking the container radius. This forces circles toward the center, and upon relaxation, they settle into denser configurations. A final "Dichotomy Adjustment" uses binary search to minimize the container radius to its absolute limit while maintaining validity.

Results and Discussion

The QPQH algorithm was benchmarked against the Packomania repository for instances up to $n=320$.

A dense packing configuration for $n=31$ circles generated by the QPQH algorithm.

The algorithm successfully identified 66 new best-known layouts, surpassing previous records in the literature. For the first 100 instances, it found the best-known layout in 98% of cases, achieving 100% success for $n \leq 49$. The Local BFGS demonstrated excellent scalability, making it particularly suitable for large-scale engineering problems where standard BFGS becomes computationally prohibitive.

Conclusion

The QPQH algorithm represents a significant advancement in circle packing, combining physical modeling with intuitive heuristics. Future work will focus on adapting the algorithm for unequal circles and non-circular container geometries, as well as exploring parallelization to further reduce computation times for very large $n$.

Summary updated

BibTeX
@article{he2018efficient,
  author = {Kun He and Hui Ye and Zhengli Wang and Tian Xie},
  title = {{An Efficient Quasi-physical Algorithm for Packing Equal Circles in a Circular Container}},
  journal = {Comput. Oper. Res.},
  year = {2018},
  doi = {10.1016/j.cor.2017.12.002},
}
Figure