Skip to main content
QUICK REVIEW

[Paper Review] A Multicore Tool for Constraint Solving

Roberto Amadini, Maurizio Gabbrielli|arXiv (Cornell University)|Feb 13, 2015
Constraint Satisfaction and OptimizationComputer Science24 references8 citations
TL;DR

sunny-cp2 is the first dynamic, parallel, and cooperative multicore portfolio solver for both Constraint Satisfaction Problems (CSPs) and Constraint Optimization Problems (COPs), leveraging a generalized SUNNY algorithm to schedule solvers on-the-fly. It outperforms both individual solvers and the oracle Virtual Best Solver (VBS), especially on COPs, by dynamically allocating cores and sharing bounds across solvers in real time.

ABSTRACT

*** To appear in IJCAI 2015 proceedings *** In Constraint Programming (CP), a portfolio solver uses a variety of different solvers for solving a given Constraint Satisfaction / Optimization Problem. In this paper we introduce sunny-cp2: the first parallel CP portfolio solver that enables a dynamic, cooperative, and simultaneous execution of its solvers in a multicore setting. It incorporates state-of-the-art solvers, providing also a usable and configurable framework. Empirical results are very promising. sunny-cp2 can even outperform the performance of the oracle solver which always selects the best solver of the portfolio for a given problem.

Motivation & Objective

  • To address the lack of dynamic, parallel, and cooperative portfolio solvers in Constraint Programming (CP), especially for optimization problems.
  • To enable efficient, real-time solver selection and execution on multicore architectures using adaptive scheduling.
  • To provide a usable, configurable framework that integrates state-of-the-art CP solvers for both CSP and COP instances.
  • To surpass the performance of static portfolio approaches and even the theoretical VBS (Virtual Best Solver) on COPs.

Proposed method

  • Generalizes the SUNNY algorithm for multicore execution, using k-Nearest Neighbors (k-NN) to identify similar training instances for problem p.
  • Applies three heuristics: h_sel (solver selection), h_all (runtime allocation proportional to solver effectiveness), and h_sch (ordering by expected speed) for dynamic scheduling.
  • Employs a dynamic, on-line scheduling strategy that adapts to problem characteristics and available cores, unlike static portfolio approaches.
  • Enables cooperative execution on COPs by allowing solvers to share the best known bound via configurable restarting mechanisms.
  • Integrates state-of-the-art solvers (e.g., Chuffed, G12/Gurobi, HaifaCSP) into a unified, extensible framework for MiniZinc.
  • Uses a configurable, modular architecture that supports parameter tuning and future extensibility with new solvers and parallelization strategies.

Experimental results

Research questions

  • RQ1Can a dynamic, multicore portfolio solver outperform static portfolio solvers and the oracle VBS on both CSP and COP instances?
  • RQ2How effective is cooperative bound sharing among parallel solvers in improving optimization performance?
  • RQ3Can a unified framework efficiently manage diverse, state-of-the-art CP solvers in a parallel, cooperative, and on-line scheduling manner?
  • RQ4To what extent does dynamic solver selection based on problem similarity improve performance over fixed or sequential strategies?
  • RQ5How does sunny-cp2 scale across different core counts (c=1,2,4,8) on large, heterogeneous benchmarks?

Key findings

  • sunny-cp2 achieves performance very close to, and sometimes better than, the Virtual Best Solver (VBS), which selects the optimal solver for each problem in hindsight.
  • For COPs, sunny-cp2 with c=1,2,4,8 cores consistently outperforms the Virtual c-Parallel Solver (VPS_c), a static parallel portfolio of the top c solvers.
  • On a benchmark of ~5,000 COP instances, sunny-cp2 significantly outperforms all individual constituent solvers and its predecessor sunny-cp.
  • The dynamic, on-line scheduling strategy enables better load balancing and faster convergence than static or sequential approaches.
  • The cooperative restarting mechanism in COPs improves bound propagation and reduces overall solving time.
  • sunny-cp2 demonstrates strong scalability and robustness across diverse problem types, validating its framework as a viable alternative to hand-tuned solvers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.