Constraint Satisfaction with Delayed Evaluation

Monte Zweben, Megan EskeyIJCAI 1989

Abstract

Traditional Constraint Satisfaction Problem (CSP) solvers often suffer from "eager" evaluation, performing unnecessary filtering on variable domains. This paper presents a novel approach using delayed evaluation—specifically "streams" from functional programming—to manage variable domains. By computing values only as needed, the system avoids redundant consistency checks and can represent infinite domains. Empirical results from NASA's EMPRESS-A scheduling problem show a 37.15% reduction in computational overhead.

Introduction

In a standard CSP, variables are assigned values from discrete domains subject to specific constraints. Solvers typically use forward checking or propagation to prune inconsistent values. However, this filtering is often excessive. If a variable has a large domain, a solver might check every value against a constraint even if the first valid value found would suffice for the current search path. This "eager" approach wastes CPU cycles and precludes the use of infinite domains, such as continuous time intervals.

Methodology

The researchers implemented a system in CommonLISP utilizing several key techniques:

  • Streams (Lazy Lists): Variable domains are represented as demand-driven streams that only compute the next element when requested.
  • Delayed Filtering: Constraints create "delayed closures"—promises to filter values only as the search algorithm demands them.
  • Modified Backtracking: The core search algorithm interacts with these streams. If a value satisfies constraints, the system proceeds without evaluating the remainder of the stream.
  • Uniform Architecture: The system treats variables, generators, and constraints as modular objects, facilitating a flexible and extensible constraint language.

Experimental Datasets

The system was evaluated on two benchmarks: the N-Queens problem and the EMPRESS-A (NASA Space Shuttle Payload Processing) dataset. The latter represents a high-stakes, large-scale application involving complex scheduling requirements.

Table 1: Scale of the EMPRESS-A NASA Space Shuttle Payload Processing problem, detailing tasks, variables, and constraints across four flight missions.

As shown in the table above, the EMPRESS-A dataset involves thousands of variables and constraints, providing a robust test for the efficiency of the stream-based approach.

Key Results and Insights

The transition from eager lists to lazy streams yielded substantial performance improvements, particularly in the real-world NASA application.

Table 2: Comparison of consistency checks between stream-based and list-based evaluation for EMPRESS-A missions.

Performance Gains

  • EMPRESS-A Scheduling: The system achieved an average improvement of 37.15% in consistency checks (see Table 2).
  • N-Queens: Average improvements hovered around 20%, with efficiency gains generally increasing alongside problem size.

Strategic Advantages

  • Satisficing vs. Optimization: Delayed evaluation is uniquely suited for satisficing (finding any valid solution). In optimization contexts where all values must be compared, the benefits of lazy evaluation are naturally diminished.
  • Handling Infinity: Streams allow the representation of infinite domains (e.g., "any time after T"), which traditional list-based systems cannot handle without manual discretization.

Conclusion and Future Work

While delayed evaluation significantly reduces redundant checks, the authors note that the order of filter application remains critical; more restrictive filters should be prioritized to prune the search space early. Future work involves integrating Explanation-Based Learning (EBL) to dynamically identify resource bottlenecks and further optimize the scheduling process.

Summary updated

BibTeX
@inproceedings{zweben1989constraint,
  author = {Monte Zweben and Megan Eskey},
  title = {{Constraint Satisfaction with Delayed Evaluation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure