Abstract
Constraint Optimization Problems (COPs) are fundamental to industrial logistics and scheduling, yet their search spaces are often prohibitively large. Dominance breaking is a powerful technique to prune these search trees by identifying and discarding assignments that are guaranteed to be no better than others. Traditionally, these rules require manual derivation by domain experts. This paper presents a novel rewriting system that automates the generation of dominance-breaking constraints by exploiting the mathematical properties of nested functions, such as monotonicity and commutativity. By transforming high-level models into functional constraints and solving auxiliary problems, the system generates "nogoods" that significantly accelerate solving times across diverse benchmarks, in some cases by multiple orders of magnitude.
Introduction
Solving Constraint Optimization Problems (COPs) involves navigating a combinatorial search space to find an assignment that satisfies all constraints while minimizing or maximizing an objective function. A key strategy for improving search efficiency is dominance breaking. If an assignment $A$ can be proven to be at least as good as an assignment $B$ in all possible completions, $B$ and its descendants in the search tree can be safely pruned.
While effective, the discovery of dominance relations has historically been a manual, labor-intensive process. Previous attempts to automate this process were often restricted to simple, linear constraints. This research addresses these limitations by introducing a framework capable of handling the complex, nested, and non-linear functions—such as max(a, b) * c—that are prevalent in real-world modeling languages like MiniZinc.
Methodology: A Semantic Rewriting System
The core of the proposed approach is a formal rewriting system that bridges the gap between high-level problem descriptions and automated pruning rules. The process follows four primary stages:
1. Normalization and Flattening
High-level models are first normalized into a "flattened" form consisting of functional constraints (e.g., $y = f(x)$). This standardizes the input for the rewriting engine, ensuring that complex expressions are decomposed into manageable components.
2. The Rewriting Engine
The system employs a set of formal rules—Replacement, Binding, Deletion, and General Decomposition—to derive sufficient conditions for dominance. Unlike previous syntactic approaches, this engine focuses on the semantics of the functions involved.
3. Exploiting Function Semantics
By analyzing the mathematical properties of functions, the system can derive more powerful pruning rules:
- Monotonicity: If a function is known to be monotonically increasing, the system can relax the conditions required to prove dominance, leading to more aggressive pruning.
- Commutativity and Associativity: For functions like
sumormax, the system can aggregate variables. This reduces the complexity of the search for dominance by treating groups of variables as single entities where the internal order is irrelevant.
4. Automated Nogood Generation
The system formulates an auxiliary Constraint Satisfaction Problem (CSP). The solutions to this auxiliary problem represent specific dominated assignments. These are then converted into nogoods—constraints added to the original model that prevent the solver from exploring redundant branches of the search tree.
Experimental Evaluation
The framework was evaluated using three state-of-the-art solvers—Chuffed, CP-SAT, and Gecode—across a variety of benchmarks, including:
- Logistics and Supply Chain: Warehouse Location and Steel Mill Slab Design.
- Scheduling and Assignment: Talent Scheduling and Team Assignment.
- Combinatorial Optimization: Budgeted Maximum Coverage, Partial Set Cover, and Sensor Placement.
Key Results
- Performance Gains: The inclusion of automated nogoods resulted in runtime improvements of one to two orders of magnitude in several benchmarks.
- Scalability: In the Warehouse Location problem, the automated method allowed solvers to complete significantly more instances within the time limit compared to the baseline models.
- The "3-dom" Sweet Spot: The researchers found that generating rules involving up to three variables (3-dom) provided a high degree of pruning power that consistently outweighed the computational overhead of generating the rules.
Insights and Discovery
Beyond raw performance, the system acts as a tool for theoretical discovery. By analyzing the patterns in the generated nogoods for the Steel Mill Slab Design problem, the authors identified a new symmetry-breaking rule involving "unique colors." This rule had not been previously documented in the literature, demonstrating the system's potential to assist human researchers in identifying high-level problem structures.
Limitations and Future Directions
While the system provides significant speedups, it currently operates on an instance-specific basis, meaning nogoods must be generated for each new set of data. Future work aims to lift these derivations to the model level, allowing dominance rules to be generalized across all instances of a problem class. Additionally, while the system generates many low-level nogoods, automating the synthesis of these into single, elegant high-level constraints remains an ongoing challenge in the field of constraint programming.
Summary updated