Abstract: This paper introduces a novel approach to Extended Resolution in Constraint Programming (CP) by utilizing the high-level structure of models to automatically generate complex logical variables. By incorporating structural literals—such as partial sums for linear constraints—into Lazy Clause Generation (LCG) solvers, the authors demonstrate exponential reductions in search space and significant speedups across various combinatorial optimization problems.
Introduction: The Bottleneck of Simple Literals
Modern Constraint Programming (CP) solvers often rely on Lazy Clause Generation (LCG), a hybrid technique that marries the propagation power of CP with the conflict-driven clause learning (CDCL) of SAT solvers. When a solver encounters a conflict, it analyzes the implication chain to learn a "nogood"—a logical rule that prevents the solver from repeating the same sequence of assignments.
However, the effectiveness of LCG is fundamentally limited by its "vocabulary." Standard solvers can only express reasons for failure using simple literals, such as $x = v$ or $x \ge v$. This limited language often fails to capture the underlying reason for a conflict in complex problems, leading to a "sea of literals" that provides little pruning power for unrelated parts of the search tree.
Extended Resolution: The "Holy Grail" of SAT/CP
In logic, Extended Resolution (ER) allows a solver to introduce entirely new variables to represent complex intermediate concepts. For example, instead of just knowing individual item weights, a solver might benefit from a literal representing "the total weight of the first five items." While ER is theoretically capable of providing exponential speedups, the central challenge has always been identifying which new variables are worth creating without overwhelming the solver with overhead.
Geoffrey Chu and Peter J. Stuckey propose that the high-level structure of the CP model itself provides the necessary roadmap for these extensions.
Methodology: Structure-Based Literals
The authors argue that high-level constraints (like linear, lexicographical, or disjunctive) are not just black boxes; they contain the intermediate logical concepts needed to make proofs shorter. Their framework involves identifying specific structural extensions for common constraints:
- Linear Constraints: Introducing "partial sums" (e.g., the sum of a subset of variables).
- Lexicographical (Lex) Constraints: Introducing literals that compare variables directly ($x_i \ge y_i$).
- Disjunctive Constraints: Introducing literals representing task ordering (e.g., Task A precedes Task B).
Visualizing Structural Explanations
In a standard LCG approach, a conflict is explained using only the original variable bounds. As shown in Figure 1, the solver tracks dependencies between simple literals to reach a contradiction.
By contrast, the proposed method introduces structural literals lazily—only when they are needed to explain a failure. Figure 2 demonstrates how introducing intermediate partial sums (e.g., $x_1 + 2x_2 \ge 2$) allows the solver to construct a more general and concise proof of the conflict.
Global Structure and Pathwidth
For linear constraints, the order in which variables are aggregated into partial sums is critical. The authors propose using the pathwidth of the constraint graph to determine the optimal ordering. By following the "natural" connectivity of the problem, the learned rules become significantly more effective at pruning the search space. Their results show that structural ordering consistently outperforms simpler strategies, such as sorting by coefficient size.
Results and Scaling
The approach was evaluated using the Chuffed solver on eight classic combinatorial problems, including Knapsack, Talent Scheduling, and Jobshop Scheduling. The results were transformative:
- Search Space Reduction: On the Knapsack-100 problem, the number of failures dropped from 108 million to just 12,100.
- Speedups: Problems that previously timed out at 600 seconds were often solved in under 30 seconds. For instance, the Talent-18 problem's solve time dropped from 215 seconds to 20 seconds.
- Exponential Scaling: The reduction in nodes searched tended to grow exponentially with problem size, suggesting that structure-based ER scales far better than standard LCG.
Conclusion
Structure-based Extended Resolution represents a significant step forward in CP solver efficiency. By allowing solvers to "speak the language" of the problem's structure, they can learn more general truths and avoid redundant search. Future work remains in fully automating pathwidth approximations and extending these techniques to even more complex global constraints like alldiff or circuit.
Summary updated