Minimizing the weighted number of tardy jobs: data-driven heuristic for single-machine scheduling

Nikolai Antonov, Premysl Sucha, Mikolás Janota, Jan Hula

TL;DR

This paper introduces a high-performance, data-driven heuristic for the NP-hard problem of single-machine scheduling with hard deadlines. By combining a Multilayer Perceptron (MLP) with Integer Linear Programming (ILP) refinement and a specialized feasibility framework, the authors achieve optimality gaps nearly three orders of magnitude smaller than current state-of-the-art methods while guaranteeing that every produced schedule is valid.

What Problem Does This Paper Address?

In the world of industrial scheduling, the "Single-Machine Scheduling" problem is a fundamental building block. Specifically, this paper tackles the $1|\tilde{d}_i|\sum w_i U_i$ problem: you have one machine and a set of jobs, each with a weight (importance), a duration, a soft "due date," and a hard "deadline."

The goal is to minimize the total weight of jobs that miss their soft due dates, but there’s a catch—every job must be completed before its hard deadline. This is a strongly NP-hard problem. While exact algorithms (like Branch-and-Bound) exist, they often "choke" on specific data distributions or fail to scale as the number of jobs grows. Conversely, pure Machine Learning (ML) approaches are fast but notoriously bad at respecting "hard" constraints, often producing schedules that are mathematically impossible to execute.

Methods

The authors propose a three-stage hybrid pipeline that bridges the gap between the speed of ML and the rigor of classical optimization:

  1. The ML Oracle: A Multilayer Perceptron (MLP) acts as the primary decision-maker. It looks at a job's features and predicts whether that job should be "early" (meet its due date) or "tardy" (miss its due date but meet its deadline).
  2. ILP Refinement: ML models aren't always confident. The authors use a "Reduction Theorem" to identify the jobs the ML is most unsure about. They then solve a much smaller, "reduced" version of the original problem using a standard ILP solver (like Gurobi) to fix those uncertain labels.
  3. The Feasibility Framework: This is the "safety net." Even if the ML makes a mistake that would normally violate a hard deadline, this algorithm (based on Earliest Deadline First logic) iteratively adjusts the schedule to ensure all hard deadlines are met, effectively transforming the ML's predictions into a guaranteed feasible solution.

Datasets

The study uses 15 distinct datasets to prove robustness. While traditional research often relies on simple uniform distributions, this paper introduces more realistic scenarios:

  • Standard Benchmarks: Uniformly distributed job parameters.
  • Realistic Distributions: Jobs following Normal, Log-normal, and Exponential distributions (mimicking real-world scenarios like surgery scheduling or power generation).
  • Correlated Data: Instances where job weights are tied to their durations or deadlines, which are historically the "kryptonite" of exact algorithms.
  • Scale: Instances ranging from 500 to 5,000 jobs.

Key Insights and Ideas

  • Feature Engineering is the Secret Sauce: The authors found that raw job data (weight, duration, etc.) wasn't enough. The "aha moment" came from using z-scores and log-relative differences. By representing a job's parameters in relation to the average of all jobs in that specific instance, the ML model could better understand the combinatorial context.
  • ML as a "Warm Start" for ILP: Instead of asking an ILP solver to handle 5,000 jobs (which would take hours), they use ML to "solve" 95% of the jobs and let the ILP handle the remaining 5% of "difficult" cases. This provides near-optimal results in seconds.
  • The Accuracy-Performance Link: The paper empirically demonstrates that training accuracy is a direct proxy for scheduling performance. As the MLP gets better at classifying jobs, the "optimality gap" (how far the solution is from the perfect mathematical answer) drops predictably.

Key Results

  • Superior Accuracy: The proposed method achieved an average optimality gap of less than 0.01%. For comparison, the previous state-of-the-art heuristic (Baptiste et al., 2010) hovered between 5% and 10%.
  • Finding the Optimum: The heuristic found the mathematically perfect (optimal) solution in 80–100% of cases, whereas the best alternative often found zero optimal solutions on the toughest datasets.
  • Speed and Scalability: The system handles 5,000 jobs in under 30 seconds. In contrast, exact methods frequently timed out (exceeding 300 seconds or even 60 minutes) on the same instances.

Limitations and Future Work

While highly effective, the current model assumes all jobs are available at time zero. The authors acknowledge that adding "release times" (where jobs arrive at different times) would significantly increase complexity, as even finding any feasible solution becomes NP-hard in that scenario.

Future directions include extending this data-driven approach to parallel machine scheduling, where multiple machines work in tandem, and exploring reinforcement learning to further refine the scheduling sequence.

Summary updated

BibTeX
@article{antonov2026minimizing,
  author = {Nikolai Antonov and Premysl Sucha and Mikolás Janota and Jan Hula},
  title = {{Minimizing the weighted number of tardy jobs: data-driven heuristic for single-machine scheduling}},
  journal = {Comput. Oper. Res.},
  year = {2026},
  doi = {10.1016/j.cor.2025.107281},
}
Figure