arXiv:2610.41158cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41158

Lifelong Learning of Scheduling Rules with Surrogate-assisted Genetic Programming for Dynamic Flexible Job Shop Scheduling

Luyao Zhu, Fangfang Zhang, Yi Mei, Ke Chen, Mengjie Zhang

Luyao Zhu¹, Fangfang Zhang¹, Yi Mei¹, Ke Chen²✉, Mengjie Zhang¹

¹ Centre for Data Science and Artificial Intelligence & School of Engineering and Computer Science, Victoria University of Wellington, Wellington, New Zealand {luyao.zhu, fangfang.zhang, yi.mei, mengjie.zhang} @ecs.vuw.ac.nz ² School of Electrical and Information Engineering, Zhengzhou University, Zhengzhou, China chenkezixf@zzu.edu.cn

Abstract—Genetic programming (GP) has been widely used to learn scheduling rules for dynamic flexible job shop scheduling (DFJSS). However, trained rules tend to only generalise to tasks of similar scales and distributions, and when task characteristics change, learned rules often suffer significant performance degradation. Moreover, fine-tuning pre-trained rules on new tasks often leads to catastrophic forgetting, where prior knowledge is lost. This motivates the need for GP methods that can adapt to new tasks while preserving past knowledge, leading to a lifelong learning paradigm. However, lifelong learning in GP for DFJSS remains largely under-explored. To address this gap, this paper proposes a surrogate-assisted GP method for lifelong learning to handle sequential heterogeneous DFJSS tasks with job or batch arrivals. The framework includes three key components: an adaptive two-stage training strategy to balance plasticity and stability, a task-similarity-based weighting mechanism to regulate knowledge reuse, and an improved surrogate model with distance constraints to enhance estimation accuracy. Experimental results show that the proposed method effectively mitigates catastrophic forgetting while maintaining strong adaptability, outperforming several compared methods and demonstrating the potential of lifelong GP in dynamic scheduling environments.

Index Terms—Lifelong Learning, Genetic Programming, Dynamic Flexible Job Shop Scheduling, Surrogate Model.

I. INTRODUCTION

Job shop scheduling (JSS) is a classical yet critical combinatorial optimisation problem that addresses a wide range of complex and practical scheduling tasks [1], including computing resource allocation in cloud computing [2], operation processing in manufacturing systems [3], and truck routing in container port scheduling [4]. Dynamic flexible job shop scheduling (DFJSS) extends the traditional JSS and more accurately reflects real-world production environments. In DFJSS, each operation of a job can be processed by multiple alternative machines. Consequently, two decisions must be made: operation sequencing, which determines the processing order of operations, and machine assignment, which selects an appropriate machine for a ready operation. Moreover, these decisions must be made under dynamic environments. In this paper, the considered dynamic events are random arrivals of jobs [5] or batches [6].

DFJSS is an NP-hard problem [7]. Traditional approaches, such as exact optimisation methods [8], [9] and approximate solution methods [10], [11], generally perform poorly in DFJSS due to their limited ability to handle dynamic events efficiently. In contrast, scheduling heuristics [12], such as dispatching rules [13], serve as priority functions that rank machines or operations at decision points to efficiently generate solutions for DFJSS. Specifically, in DFJSS, a scheduling heuristic typically consists of a sequencing rule for operation sequencing for a particular machine and a routing rule for machine assignment. However, manually designing scheduling heuristics typically requires domain expertise, prior experience, and a costly trial-and-error process. To address these challenges, genetic programming (GP) [14] has been widely adopted to automatically learn effective scheduling rules for DFJSS.

By training on a diverse set of DFJSS instances, it is possible that GP can learn high-quality scheduling rules that generalise well to DFJSS tasks with similar characteristics (e.g., distributions and problem scales) [15]. However, when the distributional characteristics or scales of test instances differ substantially from those of the training instances, the performance of the learned rules tends to deteriorate significantly [16]. Moreover, in real-world manufacturing environments, problem characteristics frequently change over time. For example, a manufacturing system may continuously receive orders with varying batch sizes, job quantities, urgency levels, and processing requirements across different production stages. This motivates the need for GP algorithms to possess the capability to continuously adapt to new tasks, naturally leading to a lifelong/continual learning paradigm [17], [18]. In lifelong learning, effectively coping with real-world dynamics requires an intelligent system to incrementally acquire, update, accumulate, and exploit knowledge throughout its operational lifetime, rather than relying on static models trained offline [19]. Such systems should balance plasticity (i.e., continuously acquiring knowledge from new tasks) and stability (i.e., maintaining performance on previously encountered tasks).

In lifelong learning, a straightforward and commonly used approach is to use the model trained on previous tasks as the initialisation and continuously train it on new tasks, which is referred to as fine-tuning in neural solvers [20]. In GP, fine-tuning corresponds to preserving some evolved scheduling rules from previous tasks as part of the initial population for new tasks and then continuing the evolutionary process [21]. However, such continual adaptation often results in catastrophic forgetting, where knowledge acquired from earlier tasks is changed or lost during training on new tasks, resulting in performance degradation when re-evaluated on previously encountered tasks. To mitigate catastrophic forgetting, many lifelong learning methods have been proposed. However, most of these methods are designed for neural networks and rely on gradient-based optimisation or parameter regularisation [22], [23], making them difficult to directly apply to GP or less effective in GP-based learning. Sim et al. [24] explored lifelong learning for bin packing using an immune-inspired GP hyper-heuristic framework that maintains a repertoire of heuristics through an immune-network mechanism. However, the evolved heuristics remain static once generated, and the framework does not explicitly address catastrophic forgetting. Kattan et al. [21] investigated lifelong learning with GP for symbolic regression and showed that preserving a small proportion of elites from previous tasks can improve performance. However, their approach largely resembles fine-tuning and does not explicitly examine the forgetting issue. As a result, lifelong learning in GP remains largely under-explored.

Since the evolutionary direction in GP is guided by individuals' fitness, changes in task characteristics lead to shifts in the fitness landscape, making fitness a key signal driving the search in lifelong learning scenarios. To mitigate forgetting, a natural approach is to define the fitness function by considering the performance of GP individuals across all previously seen tasks (similar to experience replay). In this way, individuals that perform well across multiple tasks can be identified, thereby encouraging the evolution of more general scheduling rules and improving knowledge retention. In practice, however, obtaining complete performance on past tasks is often infeasible. Directly evaluating scheduling rules on previous tasks is computationally expensive. To address this limitation, surrogate models can be used to predict the performance on the previous tasks. Among these, KNN-based surrogates with phenotype representations are commonly adopted due to their efficiency [25]. However, these models typically provide only rough predictions because they ignore the distance between the target individual and its nearest samples. When an individual is far from existing surrogate samples, the estimated fitness may become unreliable. This problem becomes more pronounced in lifelong learning, where substantial differences between tasks can lead to highly dissimilar samples and increase the risk of prediction errors.

These limitations highlight the necessity of developing lifelong learning mechanisms for GP and improving surrogate accuracy in lifelong learning settings. To this end, we propose a novel method, i.e., lifelong learning with surrogate-assisted GP (LLSGP), for DFJSS to effectively acquire knowledge from new tasks while mitigating catastrophic forgetting. Specifically, the contributions of this paper are as follows:

  1. A novel method LLSGP for DFJSS is developed to handle sequential scheduling tasks with varying distributions and scales. By integrating elite preservation and surrogate-based experience replay, this method mitigates forgetting and facilitates knowledge reuse across tasks.

  2. An enhanced surrogate-based experience representation is developed for lifelong GP, where more diverse behavioural samples are incorporated to provide more reliable estimation of previous task knowledge.

  3. An adaptive two-stage training strategy is proposed to utilise surrogate-based experience. It provides a parameter-free transition from current-task learning to past-task consolidation, achieving a competitive balance between stability and plasticity across different scenarios.

  4. A fitness weighting mechanism based on task similarity is presented, which dynamically adjusts the contribution of historical tasks to balance the trade-off between retaining prior knowledge and adapting to new tasks.

  5. Extensive experiments on DFJSS scenarios demonstrate that the framework achieves high average performance and significantly reduces performance degradation when switching between tasks. This work is one of the early attempts to explore lifelong learning in GP for dynamic job shop scheduling problems.

References (49)