Explaining the ATMOSTSEQCARD constraint

Mohamed Siala, Christian Artigues, Emmanuel Hébrard2013

TL;DR

This paper introduces a linear-time algorithm to generate compact explanations for the ATMOSTSEQCARD constraint, a crucial component in solving complex scheduling problems like car sequencing. By enabling hybrid CP/SAT solvers to explain constraint failures, this work significantly improves their ability to prove unsatisfiability, outperforming pure CP approaches.

What Problem Does This Paper Address?

Constraint Programming (CP) solvers are powerful tools for combinatorial optimization problems. However, when faced with complex constraints like ATMOSTSEQCARD, which efficiently prunes the search space in problems like car sequencing, pure CP solvers can struggle to prove unsatisfiability. This is because they lack the ability to "learn" from failures and reuse that knowledge to prune the search space more effectively. Hybrid CP/SAT solvers aim to bridge this gap by combining the strengths of both paradigms. A key mechanism for this integration is the ability of a constraint to provide an "explanation" for why a particular assignment or pruning led to a failure. Without such explanations, the learning capabilities of SAT solvers cannot be effectively leveraged within a CP framework. This paper tackles the challenge of generating efficient and compact explanations for the ATMOSTSEQCARD constraint.

Methods

The core contribution of this paper is a linear-time (O(n)) algorithm for generating explanations for the ATMOSTSEQCARD constraint. This algorithm builds upon the existing propagation mechanism for this constraint. The authors first describe the ATMOSTSEQCARD constraint and its associated filtering algorithm, which involves processing variables from both left to right and right to left to determine assignments. They then introduce a procedure to derive a more compact explanation for a failure by identifying and removing redundant assignments from a naive explanation. This process leverages intermediate values computed during the propagation phase (specifically, maxs(i) values). The paper also outlines how this failure explanation mechanism can be adapted to explain pruning events.

Datasets

The authors evaluate their approach using benchmarks from the car-sequencing problem, sourced from CSPLib. These benchmarks are categorized into three groups:

  • sat [easy]: 74 instances
  • sat [hard]: 7 instances
  • unsat: 28 instances

Key Insights and Ideas

  • Explanation is Key for Hybrid Solvers: The paper strongly suggests that the ability to generate explanations for constraint failures is paramount for hybrid CP/SAT solvers to effectively leverage SAT's learning capabilities.
  • Pure CP Struggles with Unsatisfiability: Pure CP approaches, even with advanced propagation, are shown to be significantly weaker than hybrid methods when it comes to proving unsatisfiability.
  • Hybrid Heuristics Balance Search and Learning: While pure CP heuristics are excellent for finding solutions quickly, hybrid approaches that combine CP heuristics with SAT's VSIDS (Variable State Independent Decaying Sum) heuristic offer a better overall performance, especially in proving unsatisfiability.
  • Compact Explanations Matter: The proposed linear-time explanation generation algorithm produces more compact explanations than naive approaches, which is crucial for the efficiency of learning mechanisms in hybrid solvers.

Key Results

The experimental evaluation compares their hybrid CP/SAT solver (Mistral with the ATMOSTSEQCARD propagator and their explanation mechanism) against a pure CP version of Mistral.

  • Finding Solutions: The hybrid solver using a pure CP heuristic ("hybrid (Slot)") was competitive with, and in some cases outperformed, previous state-of-the-art methods for finding solutions on satisfiable instances. This highlights the importance of propagation for quickly finding solutions.
  • Proving Unsatisfiability: The hybrid models, particularly those incorporating VSIDS, significantly outperformed the pure CP approach, which was unable to prove any unsatisfiability. The hybrid models were able to prove unsatisfiability for a substantial number of instances, demonstrating the power of clause learning.
  • Efficiency of Explanation: The proposed explanation mechanism, running in linear time, contributes to the overall efficiency of the hybrid solver.

Limitations and Future Work

  • Optimality of Explanations: The paper acknowledges that their explanation procedure does not guarantee optimality (i.e., the smallest possible explanation). While their method produces more compact explanations, there might be even smaller ones.
  • Future Work: The authors implicitly suggest that further exploration of hybrid solver architectures and the integration of advanced explanation mechanisms for various constraints would be beneficial. The success of combining CP heuristics with VSIDS also points towards future research in adaptive heuristic strategies.

Summary updated

Abstract

We propose an O(n) propagation-based procedure for explaining the ATMOSTSEQCARD constraint. We evaluate it against pure CP models for solving car-sequencing benchmarks. The experimental evaluation emphasizes the importance of combining CP with SAT for solving this problem.
BibTeX
@misc{siala2013explaining,
  author = {Mohamed Siala and Christian Artigues and Emmanuel Hébrard},
  title = {{Explaining the ATMOSTSEQCARD constraint}},
  year = {2013},
}

Loading related content...

Figure