NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing constraint programming via supervised learning for job shop scheduling

Yuan Sun, Su Nguyen, Dhananjay R. Thiruvady, Xiaodong Li, Andreas T. Ernst, Uwe Aickelin

TL;DR

This paper introduces a novel approach to improve constraint programming (CP) solvers for job shop scheduling by using supervised learning to predict optimal solutions and guide variable ordering. This ML-driven strategy significantly outperforms traditional methods and even hybrid approaches, leading to more efficient problem-solving.

What Problem Does This Paper Address?

Constraint programming (CP) is a powerful technique for solving complex optimization problems, but its efficiency heavily relies on the "variable ordering strategy" – the order in which the solver explores potential solutions. Traditional strategies are often based on expert intuition or simple heuristics, which can be suboptimal. The paper addresses the challenge of finding more effective variable ordering strategies, particularly for the computationally demanding job shop scheduling (JSS) problem, where finding optimal solutions is crucial but difficult. The goal is to automatically learn a strategy that leads to faster convergence to optimal or near-optimal solutions.

Methods

The core of this research lies in developing supervised learning models to predict aspects of an optimal solution for a given JSS instance. Two main approaches are proposed:

  • Regression Model: This model predicts the optimal "start times" for each operation within a JSS problem. By learning from solved instances, it aims to estimate when each operation should ideally begin.
  • Classification Model: This model predicts the relative order of operations. Specifically, for pairs of operations that must run on the same machine, it learns to predict which one should be scheduled earlier.

These models are trained using features extracted from JSS problem instances, such as operation processing times, due dates, and machine workloads. The trained models are then used to guide the variable ordering within a CP solver. The paper also explores a hybrid approach, combining the ML-based ordering with traditional domain-based heuristics (like ordering by minimum domain value) to leverage the strengths of both.

Datasets

The paper uses two types of datasets:

  • Training Data: 100 randomly generated JSS problem instances of size 9x9 were used to train the supervised learning models. These instances were solved to optimality using the CP-SAT solver.
  • Benchmark Data: Five widely used benchmark datasets from the OR-library were used for evaluation. Additionally, larger randomly generated instances (up to 100x100) were created to test the scalability of the methods.

Key Insights and Ideas

  • Predicting Optimal Solutions for Ordering: The central idea is that by predicting aspects of an optimal solution before the CP solver begins its search, we can provide a highly informed variable ordering. This is a departure from traditional methods that rely on static heuristics or problem-agnostic rules.
  • Classification vs. Regression for Ordering: Both regression (predicting start times) and classification (predicting relative order) proved effective for guiding variable ordering, suggesting flexibility in how optimal solution information can be leveraged.
  • Hybridization is Key: Combining the ML-based ordering with traditional domain-based methods (like "LowMin") yielded superior results, especially for larger and more complex instances. This suggests that a balanced approach, leveraging both learned insights and fundamental constraint propagation, is most effective.
  • Efficiency of ML Training: The supervised learning models were found to be significantly more efficient to train compared to evolutionary approaches like Genetic Programming (GP), making the approach more practical.

Key Results

  • Improved Solver Performance: The proposed ML-based variable ordering methods consistently outperformed four baseline methods (Default, MinDom, LowMin, and BranGP) in terms of the number of branches required to solve JSS instances to optimality.
  • High Accuracy: The trained classification and regression models achieved high accuracy and R² scores, indicating their effectiveness in predicting aspects of optimal solutions.
  • Hybridization Benefits: Hybrid methods (ML + LowMin) showed a significant performance improvement over pure ML-based methods, especially as problem sizes increased. For instance, on larger instances, hybrid methods found better objective values within a time limit.
  • Generalization: The hybrid methods demonstrated good generalization capabilities, performing well on benchmark instances that were different from the training data.

Limitations and Future Work

  • Generalization to Other Problems: The current study focuses solely on Job Shop Scheduling. The authors suggest applying this ML-based variable ordering approach to other constraint optimization problems to assess its broader applicability.
  • Optimality vs. Search Tree Size: While ordering based on an optimal solution helps find high-quality solutions quickly, it doesn't guarantee minimizing the search tree size. Future work could focus on training ML models specifically to minimize the search tree size.
  • Interpretability of MLP: While SVM models offered some interpretability through feature coefficients, MLP models are more "black-box." Visualizing decision boundaries using PCA provided some insight, but further research into interpreting complex ML models in this context could be beneficial.

Summary updated

BibTeX
@article{sun2024enhancing,
  author = {Yuan Sun and Su Nguyen and Dhananjay R. Thiruvady and Xiaodong Li and Andreas T. Ernst and Uwe Aickelin},
  title = {{Enhancing constraint programming via supervised learning for job shop scheduling}},
  journal = {Knowledge-Based Systems},
  year = {2024},
  doi = {10.1016/j.knosys.2024.111698},
}
Figure