[Paper Review] Constraint solvers: An empirical evaluation of design decisions
This paper empirically evaluates design decisions in four open-source constraint solvers—Choco, ECLiPSe, Gecode, and Minion—by modeling five problem classes (n-Queens, Golomb Ruler, Magic Square, Social Golfers, BIBD) with identical models. The key finding is that specialized variable and constraint implementations significantly improve performance, while general design choices like memory management have variable impacts depending on problem size and structure.
This paper presents an evaluation of the design decisions made in four state-of-the-art constraint solvers; Choco, ECLiPSe, Gecode, and Minion. To assess the impact of design decisions, instances of the five problem classes n-Queens, Golomb Ruler, Magic Square, Social Golfers, and Balanced Incomplete Block Design are modelled and solved with each solver. The results of the experiments are not meant to give an indication of the performance of a solver, but rather investigate what influence the choice of algorithms and data structures has. The analysis of the impact of the design decisions focuses on the different ways of memory management, behaviour with increasing problem size, and specialised algorithms for specific types of variables. It also briefly considers other, less significant decisions.
Motivation & Objective
- To evaluate how different design decisions in constraint solvers affect performance across diverse problem types.
- To isolate the impact of specific implementation choices—such as memory management, constraint propagation, and data structures—on solver efficiency.
- To compare solvers using identical problem models to ensure fair assessment of design-level differences rather than modeling biases.
- To determine whether certain algorithmic or architectural choices consistently yield performance advantages across multiple problem classes.
- To provide insights for solver developers and users on how to select or tune solvers based on problem characteristics and implementation trade-offs.
Proposed method
- Selected four actively developed, open-source constraint solvers: Choco (Java), ECLiPSe (C/Prolog), Gecode (C++), and Minion (C++).
- Modeled five standard constraint problems—n-Queens, Golomb Ruler, Magic Square, Social Golfers, and Balanced Incomplete Block Design—with identical models across all solvers.
- Executed experiments on varying problem sizes to assess scalability and performance differences.
- Measured CPU time and analyzed the impact of design decisions such as memory management, propagator ordering, and constraint implementation strategies.
- Used propagator queue reversal and alternative constraint formulations to test sensitivity to implementation details.
- Avoided solver-specific tuning to ensure comparisons reflected inherent design differences rather than model optimization.
Experimental results
Research questions
- RQ1How do different memory management strategies (e.g., backtrack memory) affect solver performance across varying problem sizes?
- RQ2To what extent do specialized implementations of constraints (e.g., alldifferent, sum) improve performance compared to general-purpose ones?
- RQ3How does the choice of propagator ordering and constraint representation influence solving time?
- RQ4What is the impact of solver-specific modeling paradigms (e.g., input file vs. library-based modeling) on performance when models are kept identical?
- RQ5Are there consistent performance advantages for specific optimization strategies (e.g., bound adjustment vs. constraint imposition) in handling objective functions?
Key findings
- Specialized implementations of constraints and propagators for specific variable types significantly improve performance, with measurable and consistent gains across problem classes.
- Memory management strategies had a substantial impact on CPU time, but their effectiveness varied depending on problem size and structure, with no single approach universally superior.
- Reversing the propagator queue had minimal impact on total CPU time, with maximum differences being small fractions of the total time, indicating robustness to this ordering choice.
- The absence of a native sum-equals constraint in Minion did not harm performance; instead, using sum-greater-or-equal and sum-less-or-equal constraints in combination was efficient, suggesting non-obvious implementations can outperform intuitive ones.
- Different optimization strategies—such as bound adjustment in ECLiPSe versus constraint imposition in Gecode—showed no intrinsic performance advantage, indicating that solver choice for optimization is context-dependent.
- The large performance differences observed between solvers were primarily due to implementation-level design decisions rather than algorithmic superiority, emphasizing the importance of solver selection for specific problems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.