Reinforcement Learning as an Improvement Heuristic for Real-World Production Scheduling
Arthur Müller, Lukas Vollenkemper
TL;DR
The paper tackles a real-world permutation flow shop scheduling problem with dual objectives: minimize tardiness via an exponential penalty $f_1(\sigma)=\sum_{i=1}^N e^{T_T(\sigma,i)}$ where $T_T(\sigma,i)=C_i-d_{\sigma(i)}$ and $C_i=T_W(W+i-1)$, and maximize worker well-being through $f_2(\sigma)=\sum_{w=1}^W\sum_{i=1}^{N-1}|p^{\sigma(i)}_w-p^{\sigma(i+1)}_w|$. An RL agent is trained as an improvement heuristic that starts from a due-date-sorted permutation $\sigma_0$ and iteratively performs pairwise swaps chosen by a Transformer-based policy, using PPO. The reward is a normalized combined objective $f_c$ that balances tardiness and stress, and the policy decodes a swap pair from a learned probability matrix. Experiments on real automotive data show that the proposed approach (notably RL-MPMR, which ensembles multiple policies) substantially outperforms simulated annealing and simple heuristics in both training and test sets, with a notable generalization gap likely due to limited training data. The work demonstrates practical potential for RL-guided improvement in production scheduling and outlines future work to scale to multiple lines, larger permutations, additional operators, and synthetic data to improve generalization.
Abstract
The integration of Reinforcement Learning (RL) with heuristic methods is an emerging trend for solving optimization problems, which leverages RL's ability to learn from the data generated during the search process. One promising approach is to train an RL agent as an improvement heuristic, starting with a suboptimal solution that is iteratively improved by applying small changes. We apply this approach to a real-world multiobjective production scheduling problem. Our approach utilizes a network architecture that includes Transformer encoding to learn the relationships between jobs. Afterwards, a probability matrix is generated from which pairs of jobs are sampled and then swapped to improve the solution. We benchmarked our approach against other heuristics using real data from our industry partner, demonstrating its superior performance.
