Answer-Set Programming for Lexicographical Makespan Optimisation in Parallel Machine Scheduling

Thomas Eiter, Tobias Geibinger, Nysret Musliu, Johannes Oetsch, Peter Skocovský, Daria Stepanova

TL;DR

This paper introduces a hybrid Answer-Set Programming (ASP) approach to solve complex parallel machine scheduling problems found in semiconductor manufacturing. By shifting the objective from simple makespan minimization to lexicographical optimization, the authors produce schedules where all machines finish as early as possible, significantly increasing robustness against real-world disruptions like machine failures.

What Problem Does This Paper Address?

In industrial settings like Bosch’s semiconductor production, scheduling is a nightmare of constraints: jobs have specific release dates, durations vary by machine, and switching between different types of jobs requires "setup times" that depend on the sequence of tasks.

The standard goal in scheduling is to minimize the makespan—the time the very last machine finishes. However, the authors argue this is insufficient for "high-dedication" environments where only a few machines can handle certain critical jobs. If you only optimize for the bottleneck machine, the other machines might be scheduled lazily. If a machine then fails, there’s no "slack" in the system to reschedule.

The paper addresses this by proposing lexicographical makespan optimization. Instead of minimizing just the maximum completion time, they minimize the entire sorted list (tuple) of completion times for all machines. This ensures every machine finishes its workload as early as possible, providing the scheduler with maximum flexibility for rearrangements.

Methods

The authors utilize Answer-Set Programming (ASP), a declarative logic programming paradigm. To overcome the traditional limitations of ASP in handling large numerical ranges (the "grounding explosion" problem), they employ several advanced techniques:

  • ASP with Difference Logic (clingo-dl): They use an extension of ASP that handles timing constraints (e.g., $JobB$ must start at least $X$ minutes after $JobA$ finishes) using specialized propagators. This keeps the logic part of the problem separate from the heavy integer arithmetic.
  • Multi-shot Solving: Since current ASP solvers don't natively support complex lexicographical optimization of integer variables, the authors developed Algorithm 1, which uses multiple successive solver calls to iteratively tighten the bounds on each machine's completion time.
  • Approximation Algorithms: To handle industrial-sized instances, they introduced Algorithm 2, which "fixes" the schedule of the busiest machine after a solver call and then re-optimizes the remaining machines.
  • Domain-Specific Heuristics: They wrote custom ASP rules to guide the solver toward promising assignments, such as prioritizing machines where a specific job has a shorter duration or lower setup time.

Datasets

Because real-world industrial data is often confidential, the authors generated a benchmark suite of 500 random instances designed to mimic the properties of Bosch’s production lines:

  • Size Classes: Instances ranged from 3 machines/50 jobs to 20 machines/200 jobs.
  • Dedication Levels: They tested both "low-dedication" (jobs can go almost anywhere) and "high-dedication" (80% of jobs are restricted to 20% of machines) scenarios.
  • Comparison Baselines: They implemented the same problems in MiniZinc to test against state-of-the-art Constraint Programming (CP) and Mixed-Integer Programming (MIP) solvers like CPLEX and CP Optimizer.

Key Insights and Ideas

  • Robustness through Lexicography: The "aha moment" is that the shape of the completion curve matters. A schedule where machines finish "staggered" is much more fragile than one where most machines finish early.
  • The Power of Hybridization: Plain ASP failed on these problems, but ASP + Difference Logic was highly competitive. This highlights that for scheduling, the "logic" (which job goes where) and the "timing" (when it starts) are best handled by different specialized engines working in tandem.
  • Elaboration Tolerance: A major benefit of the ASP approach is its flexibility. If Bosch changes a business rule (e.g., adding a new labor cost or a maintenance window), the ASP model can be updated with a few lines of logic, whereas MIP or CP models often require significant restructuring.

Key Results

  • Performance: In a 5-minute "practice-oriented" timeout, the ASP-based approach (clingo-dl) found more optimal and "best-known" solutions for the standard makespan than the commercial CP and MIP solvers.
  • Quality of Schedule: Lexicographical optimization (Algorithm 2) improved the "machine completion rate" metric by 9.53% on average compared to standard makespan optimization. This means, at any given time during the schedule, significantly more machines had already finished their work.
  • Scalability: While exact lexicographical optimization is computationally expensive, the multi-shot approximation (Algorithm 2) scaled effectively to 20-machine instances, providing high-quality results within the required industrial time limits.

Limitations and Future Work

  • Solver Support: A primary limitation is that current ASP solvers do not natively support multi-objective optimization for theory variables (like those in difference logic), necessitating the "workaround" of multi-shot algorithms.
  • Meta-heuristics: The authors suggest that combining ASP with meta-heuristics (like Large Neighborhood Search) could further improve performance on even larger instances.
  • Broader Objectives: Future work could involve integrating other real-world factors, such as manual labor costs or energy consumption, into the lexicographical framework.

Summary updated

BibTeX
@inproceedings{eiter2021answer,
  author = {Thomas Eiter and Tobias Geibinger and Nysret Musliu and Johannes Oetsch and Peter Skocovský and Daria Stepanova},
  title = {{Answer-Set Programming for Lexicographical Makespan Optimisation in Parallel Machine Scheduling}},
  booktitle = {KR},
  year = {2021},
  doi = {10.24963/kr.2021/27},
}
Figure