Solving Finite Domain Constraint Hierarchies by Local Consistency and Tree Search

TL;DR

This paper introduces a novel way to solve "over-constrained" problems, common in areas like user interfaces and resource allocation, by reformulating constraint hierarchies using "error indicators." They developed a new consistency technique (CH-2-C) and integrated it into a standard search algorithm to create an efficient solver that works for various problem types and error metrics.

What Problem Does This Paper Address?

Many real-world problems involve conflicting requirements, where it's impossible to satisfy everything perfectly. The Constraint Hierarchy (CH) framework is a way to model these "over-constrained" problems by assigning different levels of importance to constraints. For example, in a user interface, a constraint like "button should be centered" might be more important than "button should be 10 pixels from the left edge." Solving these problems means finding the "best" solution, where "best" is defined by how well constraints are satisfied, starting from the most important.

While CH solvers exist for real-number domains, extending them to discrete domains (like timetabling or resource allocation) has been challenging. Existing methods often struggle with different ways of defining "best" (comparators) or require specific error functions. This paper aims to bridge this gap by providing a general and efficient finite domain CH solver that is flexible enough to handle various comparators and error functions.

Methods

The core of the paper's contribution lies in two main areas:

  • Reformulation using Error Indicators: The authors reframe the CH framework using "error indicators." Instead of just checking if a constraint is satisfied, they assign a numerical "error value" to each constraint. These error values are then aggregated to represent the overall "badness" of a potential solution. This allows for a more nuanced comparison of solutions, especially when perfect satisfaction isn't possible.
  • CH-k-Consistency (CH-k-C): Building on the error indicator concept, they define a new notion of local consistency called CH-k-C. They specifically detail an algorithm for enforcing CH-2-C. This algorithm works by propagating error information, similar to how classical consistency algorithms prune search spaces by removing inconsistent variable assignments. The key innovation is that CH-2-C explicates error information that is usually implicit in CH problems.
  • Integration with Branch-and-Bound: The CH-2-C enforcement algorithm is then seamlessly integrated into a standard branch-and-bound search algorithm. This combination creates a finite domain CH solver. The error information generated by CH-2-C is used to prune the search space, making the solver more efficient.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Error Indicators as a Unifying Concept: Using error indicators provides a flexible and general way to represent constraint satisfaction and compare solutions, regardless of the specific comparator or error function used.
  • CH-2-C for Discrete Domains: Adapting consistency techniques, traditionally used for constraint satisfaction problems, to the CH framework for discrete domains is a significant step. It allows for proactive pruning of the search space based on error information.
  • Generality of the Solver: The proposed solver's ability to handle arbitrary comparators (like "better" or "worse") and arbitrary error functions is a major advantage over many existing finite domain CH solvers.
  • Efficiency through Pruning: Integrating CH-2-C into branch-and-bound effectively prunes the search space, leading to more efficient problem-solving.

Key Results

The paper reports that their proposed solver prototype demonstrates efficiency and robustness. While specific quantitative results (like percentage speedup or accuracy) are not detailed in the provided text, the authors state that experimentation confirms the effectiveness of their approach. They highlight that their method works for both local and global comparators and supports arbitrary error functions, which is a significant qualitative improvement.

Limitations and Future Work

  • Space Complexity: The CH-2-C algorithm has a space complexity of O(nnc) in the worst case, where n is the number of variables and c is the size of the largest domain. This could be a limitation for very large problems.
  • Practical Implementation: While they present a prototype, further work on optimizing the implementation for real-world applications would be beneficial.
  • Comparison with Other Solvers: While they mention comparing their solver with generate-and-test, basic branch-and-bound, and the reified constraint approach, the detailed results of these comparisons are not provided in this excerpt.

The paper positions their work as a step towards practical finite domain CH solving, implying that further research and development are needed to fully realize its potential.

Summary updated

BibTeX
@inproceedings{2003solving,
  title = {{Solving Finite Domain Constraint Hierarchies by Local Consistency and Tree Search}},
  booktitle = {CP},
  year = {2003},
  doi = {10.1007/978-3-540-45193-8\_10},
}
Figure