Abstract
Tempo is a new hybrid constraint programming (CP) and SAT solver designed specifically for scheduling. By deeply integrating difference logic—where Boolean variables represent the timing relationships between tasks—Tempo achieves state-of-the-art performance on classic benchmarks while remaining significantly simpler than the massive, portfolio-based commercial solvers it competes against.
Introduction
Scheduling tasks under resource constraints, such as the classic Job-Shop problem, is a cornerstone of industrial optimization. Traditionally, researchers have utilized Constraint Programming (CP) for its strength in modeling complex rules, such as "two tasks cannot overlap." However, CP often lacks the "learning" capabilities of SAT solvers, which use Conflict-Driven Clause Learning (CDCL) to remember and avoid past mistakes.
The challenge lies in the hybrid approach. Existing solvers that combine CP and SAT (Lazy Clause Generation solvers) are often complex and memory-intensive because they attempt to map every possible numeric value to a Boolean literal. This paper introduces Tempo, a solver that handles temporal constraints by focusing on the differences between task start and end times, resulting in a system that is both lean and powerful.
Methodology
Tempo’s architecture is built on several key innovations:
- Difference Logic Core: Instead of tracking if a task starts at a specific time $t$, Tempo uses Boolean variables to represent edges in a temporal graph (e.g., "Task A must end before Task B starts").
- Lazy Literal Generation: Most solvers create Boolean variables for all possible numeric bounds upfront. Tempo is "lazy," creating a literal (like $x \le 5$) only when the search actually encounters that boundary, which drastically reduces memory overhead.
- Explained Edge-Finding: The author adapts the "Edge-Finding" rule—a sophisticated scheduling algorithm—to work within a SAT framework. When the rule makes an inference, it generates an "explanation clause" so the SAT engine can learn from it.
- Temporal Graph Reasoning: Tempo maintains a directed graph of task precedences. It uses transitivity (if A precedes B and B precedes C, then A precedes C) to strengthen its logical inferences and prune the search space early.
- Smart Clause Minimization: The paper introduces a specific "weakening" rule for clause minimization. This ensures that when the solver simplifies its learned constraints, it does not delete vital information related to the lazy numeric literals.
Experimental Evaluation
The solver was evaluated on a massive battery of standard benchmarks:
- Job-Shop Scheduling: 1,750 instances (including well-known sets like abz, la, and ta).
- Open-Shop Scheduling: 50 instances.
- Job-Shop with Time Lags: 1,050 instances. These are particularly difficult because they include constraints on the maximum time allowed between tasks, which can create logical cycles.
Results and Key Insights
Tempo was compared against industry heavyweights including IBM's CP Optimizer, Google's OR-Tools, Aries, and OptalCP.
Performance and Efficiency
Tempo proved to be the second-best solver overall across all three problem types. On standard Job-Shop, it was remarkably close to CP Optimizer (finding 476 optimality proofs vs. 578) and outperformed OR-Tools. Furthermore, Tempo consistently explored the smallest search trees. In many "easy" instances, it required significantly fewer branches to find the optimal solution than its competitors, proving its inferences are high-quality.
Robustness
On problems with time lags, Tempo was highly stable, whereas some other solvers struggled to find even a feasible starting solution due to the complexity of the temporal cycles.
Simplicity vs. Brute Force
Commercial toolkits like IBM’s CP Optimizer use "portfolios" of many different algorithms and machine learning to pick the best one. Tempo shows that a single, well-integrated hybrid logic engine can be nearly as effective. The paper reinforces the idea that in scheduling, it is better to make decisions about the order of tasks (the edges) rather than their specific start times.
Conclusion and Future Work
Tempo demonstrates how to turn complex, $O(n \log n)$ scheduling algorithms into simple logical explanations. This allows the solver to "understand" why a specific schedule failed, rather than just seeing a dead end.
While Tempo is excellent on "hard" medium-sized problems, it currently slows down on the very largest instances (e.g., Taillard’s 100-job sets) because the Edge-Finding propagator lacks an "incremental" mode. Additionally, the current version is single-threaded. Future directions include extending Tempo’s logic to cumulative scheduling (multiple resources) and allocation problems (deciding which machine performs a task).
Summary updated