Geometric Batch Optimization for the Packing Equal Circles in a Circle Problem on Large Scale

Jianrong Zhou, Kun He, Jiongzhi Zheng, Chu-Min LiarXiv 2023

Abstract

The problem of packing equal circles in a circle (PECC) is a classic optimization challenge with significant industrial applications. As the number of circles $n$ increases, the computational complexity grows quadratically, making large-scale instances ($n > 320$) extremely difficult to solve. This paper presents a novel Geometric Batch Optimization (GBO) framework designed to handle large-scale PECC instances efficiently. By combining GBO with an adaptive neighbor maintenance system and a solution-space exploring heuristic, we achieved 105 new best-known solutions for instances ranging from $n=300$ to $1,000$. Our approach significantly reduces both convergence time and memory requirements compared to traditional continuous optimization methods.

Introduction

The Circle Packing Problem (CPP) involves fitting $n$ circles into a container while minimizing the container size and avoiding overlaps. In the PECC variant, the goal is to pack $n$ equal circles into a larger circle. While well-studied for small scales, large-scale instances suffer from the "curse of dimensionality," where standard optimization algorithms like BFGS become computationally prohibitive. This research addresses these scalability issues through geometry-aware algorithmic innovations.

Methodology

Quasi-Physical Model and Overlap Energy

To solve the packing problem, we employ a quasi-physical model where circles are treated as elastic objects. Overlaps between circles, or between a circle and the container boundary, generate "potential energy." The optimization objective is to minimize this energy to zero, resulting in a feasible, non-overlapping layout.

Geometric definitions for circle-to-circle and circle-to-boundary distances used to calculate overlap energy.

Geometric Batch Optimization (GBO)

Inspired by mini-batching in machine learning, GBO partitions the $n$ circles into $k$ disjoint geometric sets. Instead of updating the positions of all circles simultaneously, the algorithm alternates updates between batches. This strategy reduces the size of the Hessian matrix, cutting time complexity and memory usage. Among various partitioning strategies tested—including random, annulus, and fence—the Sector strategy proved most effective. By grouping circles by their polar angles, the optimizer can more efficiently resolve local overlaps.

The Sector partitioning strategy, which groups circles into batches based on their angular position, yielding the best optimization performance.

Adaptive Neighbor Maintenance (ANM)

To avoid the $O(n^2)$ cost of checking every pair of circles for overlaps, we maintain a dynamic neighbor structure. The Adaptive Neighbor object Maintenance (ANM) method uses a "deferring length" strategy: it updates the neighbor list frequently when the layout is changing rapidly and decreases the update frequency as the configuration stabilizes, saving significant computational resources.

Solution-space Exploring and Descent (SED)

The high-level search is managed by the SED heuristic. It perturbs current solutions to generate candidates, applies GBO to minimize energy, and uses a softmax-based selection operator to navigate the solution space and escape local minima.

Experimental Results

We evaluated the framework against benchmark instances from Packomania, the primary repository for circle packing records.

  • New Records: The algorithm discovered improved solutions for 10 out of 21 moderate-scale instances ($300 \le n \le 320$) and 95 out of 101 large-scale instances ($500 \le n \le 1,000$).
  • Efficiency: GBO reduced convergence time by up to 54% and memory usage by nearly 40% compared to non-batch methods.
  • Scalability: Our method consistently outperformed the previous state-of-the-art algorithm, IDTS, particularly as $n$ approached 1,000, demonstrating superior memory management on standard hardware.

Conclusion

The proposed GBO framework provides a robust and scalable solution for the PECC problem. By leveraging geometric insights to partition the optimization task and adaptively maintaining neighbor structures, we have pushed the boundaries of known solutions for large-scale circle packing. Future work will explore adapting these methods for unequal circle packing and dynamic environments where items arrive or move over time.

Summary updated

BibTeX
@misc{zhou2023geometric,
  author = {Jianrong Zhou and Kun He and Jiongzhi Zheng and Chu-Min Li},
  title = {{Geometric Batch Optimization for the Packing Equal Circles in a Circle Problem on Large Scale}},
  year = {2023},
  eprint = {2303.02650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.02650},
}
Figure