Scalable Parallel Numerical CSP Solver

Daisuke Ishii, Kazuki Yoshizoe, Toyotaro Suzumura

Numerical Constraint Satisfaction Problems (NCSPs) are essential for modeling systems with continuous variables, such as robotics and physical simulations. Solving these problems involves finding a "paving"—a collection of interval vectors (boxes) that enclose the solution set. While the standard Branch and Prune (B&P) algorithm is effective, its exponential complexity makes it a prime candidate for parallelization.

The Challenge of Parallel NCSP Solving

The primary hurdle in parallelizing NCSPs is the highly irregular search space. Some branches of the search tree are pruned instantly, while others require intensive computation. This leads to significant load imbalance among processor cores. To address this, researchers developed a scalable parallel solver using the X10 programming language and the Realpaver library.

Overview of the Branch and Prune algorithm, the resulting solution paving, and the parallel distribution strategy.

Methodology: Dynamic Load Balancing

The proposed method enhances the standard B&P approach with three key phases:

  1. Preprocessing (Static Distribution): A single worker initially generates a pool of boxes to "prime" the system, which are then distributed via a binary tree routing structure to all available cores.
  2. Parallel Branch and Prune: Multiple workers explore different segments of the search space simultaneously.
  3. Dynamic Load Balancing: Workers periodically monitor their neighbors. If a neighbor is idle, the worker offloads a portion of its workload to maintain high CPU utilization.

The team identified that the Prune step accounts for over 95% of sequential execution time, making it the critical target for parallel speedup.

Key Results and Performance

The solver was evaluated on two benchmarks: a 4D Sphere and Plane intersection ($sp2-4$) and a 3-RPR robot kinematics problem ($3rpr$).

Speedup curves for the sp2-4 and 3rpr benchmarks across different precision levels and load-balancing configurations.

As shown in the results, the solver achieved impressive scalability:

  • Shared Memory: On a 40-core machine, it reached a 32.3x speedup.
  • Distributed Memory: On an SGI UV1000 cluster with 256 cores, it achieved a 119x speedup.

The experiments revealed that a load-balancing interval ($ns$) of 1000 steps generally provided the best balance between work distribution and communication overhead. However, for smaller problems or lower precision, the overhead of moving boxes between cores can sometimes diminish performance.

Conclusion

By combining a robust preprocessing phase with dynamic load balancing, this research demonstrates that NCSP solvers can scale effectively to hundreds of cores. Future work will focus on reducing redundant communication to further optimize performance on massive clusters.

Summary updated

BibTeX
@inproceedings{ishii2014scalable,
  author = {Daisuke Ishii and Kazuki Yoshizoe and Toyotaro Suzumura},
  title = {{Scalable Parallel Numerical CSP Solver}},
  booktitle = {CP},
  year = {2014},
  doi = {10.1007/978-3-319-10428-7\_30},
}
Figure