1. Introduction
A paradigm shift is under way in global manufacturing: the efficiency-driven automation characteristic of Industry 4.0 is giving way to the human-centric, sustainable and resilient vision of Industry 5.0 [
1,
2]. Under this new paradigm, worker well-being, workload equity and adaptive responsiveness to disruptions have become evaluation criteria for production scheduling alongside throughput and machine utilization [
3]. Flexible job shop scheduling (FJSP), a canonical NP-hard problem, permits each operation to be processed on any machine within a candidate set [
4,
5]. Because of its routing and machine flexibility, FJSP serves as a natural testbed for scheduling algorithms that must optimize multiple conflicting objectives under dynamic and uncertain conditions.
Two categories of disturbance commonly invalidate pre-computed schedules on manufacturing shop floors. Machine failures, arising from aging, overload or component fatigue, force the immediate reassignment of pending and in-progress operations [
6]. Rush order arrivals, triggered by urgent customer demands or disruptions in the supply chain, inject new jobs with tight deadlines into an already loaded system [
7]. The feasible solution space shrinks rapidly and workloads may become severely skewed when these two types of disturbance occur simultaneously.
Traditional DFJSP approaches can be broadly divided into meta-heuristic and dispatching-rule-based methods. Genetic algorithms [
8,
9], discrete optimization heuristics [
10] and ensemble evolutionary methods [
11] perform well on static instances but encounter computational bottlenecks when used for real-time rescheduling, because each disruption triggers a fresh optimization cycle. Scalability on large FJSP instances has been improved by recent hybrid algorithms that combine evolutionary strategies with problem-specific operators [
12], and weighted-sum scalarization has demonstrated its effectiveness when scheduling objectives can be combined through domain-informed coefficients [
13]. Nevertheless, the computation required per rescheduling event in these methods remains considerable, which limits their suitability for real-time settings.
DRL-based frameworks have recently addressed job shop and flexible job shop scheduling from several perspectives. Value-based methods, including Deep Q-Networks and their variants, have been used in both static and dynamic FJSP with encouraging results [
14,
15,
16]. Among policy gradient methods, PPO [
17] offers stable training and handles high-dimensional action spaces naturally [
18,
19]. Multi-agent architectures that decompose scheduling into cooperating sub-agents demonstrate advantages in distributed decision-making [
16,
20], and graph neural network representations of the relationships between jobs and machines improve state representation and generalization across problem sizes [
21,
22]. Meta-learning techniques have also been explored to enable rapid adaptation of scheduling policies to new problem configurations [
23], and attention-based architectures have demonstrated promise in estimating complex inter-operation dependencies [
24].
Despite these advances, three gaps persist. First, worker-related constraints are largely absent from DRL-based FJSP formulations, in which machines are typically the only constrained resource. In practice, workers possess heterogeneous skills that affect processing efficiency and quality [
25], and prolonged operation leads to fatigue that raises error rates and compromises safety [
26]. When workload distribution across workers is unbalanced, team morale and productivity decline over extended production horizons. Industry 5.0 emphasizes human-centricity and therefore requires scheduling algorithms to explicitly account for these worker-side factors alongside maintenance-coupled scheduling decisions; however, integrating worker workload constraints into DRL-based FJSP in a systematic manner remains underexplored [
3,
27].
Second, constraint-handling mechanisms in DRL for scheduling predominantly rely on fixed penalty terms appended to the reward function. Penalty-based approaches are straightforward to implement, yet the choice of penalty coefficients is highly sensitive to problem scale and constraint tightness. If the penalty is too small, frequent constraint violations occur; if it is too large, the primary scheduling objective is overwhelmed and overly conservative policies result. Tuning these coefficients manually across different production scenarios is labor-intensive and often suboptimal. By converting hard constraints into soft penalties whose multipliers are updated adaptively, Lagrangian relaxation provides a principled alternative and has been used in constrained reinforcement learning for safety-critical domains [
28,
29]. Existing PPO-Lagrangian methods [
28] typically employ a simple gradient ascent rule to update a single multiplier, and this can exhibit slow convergence or oscillatory behavior when multiple heterogeneous constraints interact. How to apply Lagrangian relaxation to DFJSP with coupled worker workload and fatigue constraints, where the scales and dynamics of the constraints differ substantially, has not been investigated.
Third, a single rescheduling strategy is applied by most DRL-based rescheduling methods regardless of disruption severity. In practice, minor disturbances can often be accommodated by right-shifting affected operations without altering the overall schedule topology, whereas major disturbances call for complete rescheduling of all remaining operations to restore global optimality [
6,
16]. An adaptive switching mechanism that selects between right-shift and full rescheduling on the basis of quantifiable production state metrics would improve both response efficiency and schedule stability, but such disruption-severity-aware switching has received limited attention in the DRL-based scheduling literature.
We address these gaps by suggesting an adaptive Lagrangian penalty-enhanced proximal policy optimization (ALP-PPO) algorithm for flexible job shop rescheduling with worker workload constraints under concurrent machine failures and rush order arrivals. The main contributions are summarized as follows.
A CMDP formulation for DFJSP is developed that incorporates worker skill heterogeneity, fatigue and workload balance as explicit constraints alongside the classical objectives of makespan, energy and machine load. The thresholds of the constraints are calibrated from occupational ergonomics guidelines and practical equity requirements, which gives a principled basis for the CMDP modeling.
An adaptive Lagrangian mechanism updates dual multipliers for workload and fatigue constraints using a proportional–integral (PI) update rule each epoch; this differs from standard PPO-Lagrangian methods [
28] by incorporating an integral term that accumulates historical constraint violations, thereby preventing persistent undershoot and improving the stability of convergence when multiple heterogeneous constraints with different scales interact, and manual penalty tuning is avoided.
A hierarchical action space splits each decision into operation priority, machine allocation and worker assignment, which reduces the size of the action space and enables structured exploration.
A disruption severity index is formulated to quantify the impact of concurrent dynamic events, and an event-triggered rescheduling mechanism that automatically selects between right-shift rescheduling and full rescheduling on the basis of this index is developed.
Comprehensive experiments on extended Brandimarte benchmark instances augmented with worker and dynamic event parameters demonstrate the effectiveness of ALP-PPO across multiple objectives and disturbance scenarios. The evaluation includes Hypervolume (HV) and Inverted Generational Distance (IGD) indicators for Pareto front quality assessment, comparisons with multi-objective evolutionary algorithms (NSGA-II [
30] and MOEA/D [
31]), computational efficiency profiling, reward weight sensitivity analysis and generalization experiments on previously unseen instances. Ablation studies isolate the contributions of the adaptive Lagrangian mechanism, the hierarchical action space and the rescheduling strategy selection.
The remainder of this paper is organized as follows.
Section 2 reviews related work on FJSP optimization, DRL-based scheduling, worker-constrained scheduling and constrained reinforcement learning.
Section 3 presents the mathematical model of the worker-constrained DFJSP.
Section 4 describes the ALP-PPO algorithm in detail.
Section 5 reports the experimental design and results.
Section 6 concludes the paper and outlines future research directions.
4. Proposed Algorithm: ALP-PPO
4.1. Overall Framework
Figure 1 illustrates the overall architecture of ALP-PPO. Four interconnected modules constitute the framework: (i) a production environment simulator that models job processing, machine states, worker states and dynamic event generation; (ii) a hierarchical policy network that outputs coordinated sub-actions for operation selection, machine allocation and worker assignment; (iii) a value network that estimates the state value function; and (iv) an adaptive Lagrangian penalty module that dynamically adjusts constraint multipliers during training. The event monitor continuously observes the production state and triggers rescheduling when a dynamic event is detected. The disruption severity index determines whether right-shift or full rescheduling is applied before the policy network generates a new schedule.
The production environment, hierarchical policy network and adaptive Lagrangian penalty module are integrated in the framework. State observations from the production environment simulator are fed to the policy network, which in turn provides hierarchical actions. The adaptive Lagrangian module monitors constraint costs, updates multipliers using the PI rule and feeds the augmented penalty back into the PPO training objective.
4.2. CMDP Formulation
We formulate the worker-constrained DFJSP as a constrained Markov decision process , where is the state space, is the action space, is the transition kernel, r is the reward function, and are constraint cost functions with thresholds and , and is the discount factor.
4.2.1. State Space
At decision step t, the state encodes the complete production situation through four feature groups:
Job features: For each pending operation , the state includes the operation index, remaining processing time across candidate machines, precedence depth and job completion ratio.
Machine features: For each machine , the state includes the current availability status (idle, busy or under repair), queue length, cumulative utilization rate and estimated time until the machine becomes available.
Worker features: For each worker , the state includes the current assignment status, cumulative workload , current fatigue level , skill vector and deviation of the workload from the mean.
Global features: Current simulation time, number of remaining operations, number of active dynamic events and the disruption severity index .
All features are normalized to and then concatenated into a fixed-length state vector.
4.2.2. Hierarchical Action Space
At each decision step the agent selects a composite action :
Operation selection : The next operation is selected from the set of eligible operations (those whose predecessors are completed) on the basis of priority scores.
Machine allocation : The selected operation is assigned to one of its candidate machines on the basis of estimated processing efficiency and current load.
Worker assignment : A qualified worker is assigned to the selected machine on the basis of skill match, current fatigue and workload balance.
The action space is structured hierarchically: the operation selection sub-action constrains the set of valid machine sub-actions, and these in turn constrain the set of valid worker sub-actions. This cascading structure reduces the effective action space from to a sequence of smaller decision problems.
4.2.3. Reward Function
Scheduling performance and constraint costs are combined in the reward function. At each step
t the agent receives
where
is the incremental change in estimated makespan,
is the incremental energy consumption,
is the incremental machine load, and
and
are weighting coefficients. In the default configuration the weights
are set to
, reflecting a practical priority ordering in which makespan reduction receives the highest emphasis, consistent with common shop floor preferences. Section reward weight sensitivity analyzes how robust the method is to variations in these coefficients.
Two constraint cost functions are defined:
where
is the workload variance threshold and
is the fatigue safety limit.
4.3. Policy and Value Networks
The policy network
takes state
as input and provides probability distributions over the three sub-action spaces through a shared feature extraction backbone followed by three specialized heads. Two fully connected layers with ReLU activation and layer normalization form the backbone. Each sub-action head contains one fully connected layer followed by softmax activation and provides a categorical distribution over valid actions. The value network
shares the same backbone architecture but outputs a single scalar estimate of the state value, and a separate cost value network
estimates the expected cumulative constraint cost, as illustrated in
Figure 2.
The network consists of a shared backbone, three cascading sub-action heads (operation selection, machine allocation and worker assignment) and dual value heads for reward and constraint cost estimation. Because of the cascading structure, each sub-action head receives masked logits conditioned on the preceding sub-action, and feasibility is thereby enforced throughout the forward pass.
4.4. Adaptive Lagrangian Penalty Mechanism
The constrained optimization objective is
By applying Lagrangian relaxation, this is converted into an unconstrained min-max problem:
where
and
are non-negative Lagrangian multipliers corresponding to the workload balance and fatigue constraints, respectively.
The key innovation lies in the adaptive update rule for the multipliers. At each training epoch
e, the multipliers are updated through gradient ascent on the constraint violation:
where
is the estimated cumulative constraint cost at epoch
e,
is the proportional gain and
is the integral gain. By accumulating historical constraint violations, the integral term prevents persistent undershoot of the multiplier, and this has been found to improve the stability of convergence in constrained RL [
29].
This proportional–integral (PI) update rule differs from standard PPO-Lagrangian approaches [
28] in two respects. Standard methods use a proportional-only rule
, in which only the current constraint violation drives the update; this can lead to sustained undershoot when the constraint cost fluctuates around the threshold. The integral term in Equation (
22) accumulates the history of constraint violations and provides a steady-state correction that drives the long-run average violation toward zero. This property is particularly important in the DFJSP setting, where the workload balance constraint and the fatigue constraint have different magnitudes and update frequencies: workload variance changes with every operation assignment, whereas fatigue accumulates gradually over the production horizon. The PI formulation allows each multiplier to adapt at its own effective rate without manual rescaling of the constraint costs. The schematic of this mechanism is illustrated in
Figure 3.
Constraint costs are estimated from the current batch of trajectories, the proportional–integral multiplier update is applied, and the resulting augmented penalty is integrated into the PPO loss function. The proportional term reacts to instantaneous violations, while the integral term prevents persistent undershoot by accumulating historical error.
4.5. PPO Training with Lagrangian Augmented Objective
The standard PPO clipped surrogate objective is
where
is the importance sampling ratio,
is the generalized advantage estimate and
is the clipping parameter.
The Lagrangian-augmented PPO objective becomes
where
is estimated from the current batch of trajectories.
The complete training loss comprises the policy loss, the value function loss and an entropy bonus,
where
is the mean squared error of the value function,
is the policy entropy, and
and
are balancing coefficients.
4.6. Event-Triggered Rescheduling Strategy
When the event monitor detects a machine failure or rush order arrival, the following procedure is executed:
Step 1: The current production state is recorded, including all machine states, worker states, in-progress operations and pending operations.
Step 2: The disruption severity index
is computed according to Equation (
16).
Step 3: If , right-shift rescheduling is applied: all operations affected by the disruption are delayed by the estimated recovery time, and the remaining schedule topology is preserved.
Step 4: If , full rescheduling is triggered: the trained ALP-PPO policy network receives the updated state and generates a complete new schedule for all remaining operations.
Step 5: After rescheduling, the Lagrangian multipliers are preserved from the latest training checkpoint so as to maintain consistent constraint enforcement across rescheduling episodes.
Algorithm 1 summarizes the training procedure of the complete ALP-PPO algorithm.
| Algorithm 1: ALP-PPO Training |
Input: DFJSP instance parameters, worker skill matrix, dynamic event parameters Output: Trained policy network 1: Initialize policy network , value network , cost value network 2: Initialize Lagrangian multipliers , integral buffers 3: for epoch to do 4: Collect batch of trajectories by executing in the environment 5: Inject dynamic events (machine failures, rush orders) stochastically 6: Compute DSI; select rescheduling strategy (right-shift or full) 7: Compute rewards , constraint costs , for each step 8: Estimate advantages using GAE() 9: Compute cumulative constraint cost estimates , 10: Update integral buffers: 11: Update multipliers: 12: Compute augmented loss per Equation ( 25) 13: Update via Adam optimizer 14: end for 15: return |
5. Experiments and Results
5.1. Experimental Setup
All experiments are run on a workstation equipped with an NVIDIA RTX 4090 GPU, an Intel Core i9-13900K CPU and 64 GB RAM. We implement the algorithm in Python 3.10, using PyTorch 2.1 for neural network training and a custom discrete-event simulation engine for the production environment. Time units are measured in hours, energy consumption in kilowatt-hours (kWh) and workload in hours.
5.2. Benchmark Instances
The base FJSP instances are taken from the Brandimarte benchmark dataset [
5]. Five representative instances of varying complexity are selected: MK01 (
, 55 operations), MK02 (
, 58 operations), MK03 (
, 150 operations), MK06 (
, 150 operations) and MK10 (
, 240 operations). Each instance is augmented with the following additional parameters to create the extended benchmark.
Worker parameters: Each instance is equipped with workers. Worker–machine qualification matrices are generated randomly with a qualification probability of 0.6 per machine. Skill coefficients for qualified worker–machine pairs are drawn from . The fatigue accumulation rates are drawn from per time unit, and the fatigue threshold is set to .
Dynamic event parameters: Machine failure rates are set to per time unit. Repair durations follow time units. Rush orders arrive following a Poisson process whose mean inter-arrival time equals , where is the makespan of the static schedule. Each rush order contains 3 to 6 operations.
Energy parameters: Power consumption rates are drawn from kW for each operation–machine pair.
The ranges chosen for the synthetic parameters are grounded in representative manufacturing values. The skill coefficient range
reflects typical skill-level variation observed in multi-skill workforce studies [
25]: a fully trained operator achieves unit efficiency, while a cross-trained operator works at 70–90% of that rate. The fatigue accumulation rates
per hour correspond to the range reported in ergonomics studies of repetitive manual tasks [
39], and the threshold
is consistent with the occupational health recommendation that sustained effort should remain below 80% of maximum capacity. Machine failure rates
per hour and repair durations
h are consistent with values reported in the preventive-maintenance scheduling literature [
27].
Section 5.9 examines the sensitivity of the results to variations in these parameters.
Table 2 summarizes the configurations of the extended benchmark.
5.3. Compared Algorithms and Hyperparameters
ALP-PPO is compared against six baseline algorithms:
Double DQN (DoDQN): A value-based DRL algorithm that separates action selection and value estimation to mitigate overestimation bias [
14]. Dueling DQN (DuDQN) decomposes the Q-function into state value and advantage parts for more stable learning [
15]. 3DQN combines the Double DQN and Dueling DQN architectures, as used in the multi-agent DFJSP framework of Wang et al. [
16]. Standard PPO (PPO-base) uses fixed penalty coefficients for constraint handling, without the adaptive Lagrangian mechanism. NSGA-II [
30] is a widely adopted multi-objective evolutionary algorithm that maintains a population of candidate schedules and evolves them through crossover, mutation and non-dominated sorting with crowding distance. MOEA/D [
31] decomposes the multi-objective problem into a set of scalar subproblems using weight vectors and optimizes them simultaneously through neighborhood-based collaboration. Both evolutionary algorithms use a population size of 200, run for 500 generations, and employ the same operation-based encoding with precedence-preserving crossover and machine-swap mutation operators.
To generate Pareto solution sets for the DRL-based methods, we conduct 15 independent training runs with weight vectors sampled uniformly from the simplex , with held constant. The solutions from all runs are then pooled, and only the non-dominated set is retained.
Table 3 lists the hyperparameters for ALP-PPO. All DRL-based algorithms use the same learning rate, batch size, discount factor and total training episodes to ensure a fair comparison. Each algorithm is trained with five independent random seeds, and we report the results as mean ± standard deviation.
5.4. Training Convergence Analysis
The training reward convergence curves of all DRL algorithms across four representative benchmark instances are shown in
Figure 4. All DRL methods converge within 5000 episodes. During the initial 1000 episodes, ALP-PPO converges more slowly than PPO-base because the adaptive Lagrangian multipliers impose increasing constraint penalties that temporarily reduce the reward signal; after convergence, however, ALP-PPO reaches a higher final reward, which indicates that the constraint enforcement ultimately guides the policy toward higher-quality feasible solutions.
Shaded bands indicate the standard deviation over five random seeds. NSGA-II and MOEA/D are not shown because they follow a generation-based evolutionary process rather than an episode-based reward trajectory.
5.5. Multi-Objective Scheduling Performance
Table 4 reports the multi-objective scheduling results under concurrent dynamic disturbances (one machine failure and one rush order insertion per episode). The improvements of ALP-PPO in makespan and energy consumption over 3DQN are moderate (in the range of 3% to 8%), while the reduction in workload variance is substantial (35% to 50%). This pattern indicates that the adaptive Lagrangian penalty steers the policy toward more balanced solutions without markedly sacrificing primary scheduling objectives. When compared with the evolutionary algorithms, ALP-PPO reaches competitive makespan and energy values while substantially reducing workload variance, because the Lagrangian mechanism directly penalizes workload imbalance during policy optimization. NSGA-II and MOEA/D deliver comparable makespan and energy results owing to their effective Pareto-based search, but their workload variance values are higher, reflecting the absence of an explicit constraint enforcement mechanism for worker equity.
5.6. Pareto Front Comparison
The Pareto front solutions obtained by all seven algorithms on three benchmark instances are visualized in
Figure 5 in the three-dimensional objective space of makespan, energy consumption and workload variance. ALP-PPO provides solution sets that are more concentrated and closer to the ideal point (origin) than those of the baseline algorithms. On MK01, the solution sets of 3DQN and ALP-PPO overlap partially in the makespan-energy plane, but ALP-PPO solutions are consistently lower along the workload variance axis. On MK10, the separation between ALP-PPO and all baselines becomes more evident, and this confirms the scalability advantage of the suggested method on larger problem instances. NSGA-II and MOEA/D achieve well-spread Pareto fronts in the makespan-energy plane, but their solutions are shifted upward along the workload variance axis relative to ALP-PPO, because neither evolutionary algorithm incorporates an explicit workload equity constraint.
Each point represents a scheduling solution; proximity to the origin indicates better multi-objective performance. Solutions from NSGA-II and MOEA/D are included alongside the DRL methods.
Table 5 reports the Hypervolume (HV) and Inverted Generational Distance (IGD) indicators [
34] for all algorithms across four benchmark instances, providing a quantitative assessment of Pareto front quality. The HV indicator measures the volume of the objective space dominated by the obtained Pareto front; a larger value indicates better coverage and convergence. The IGD indicator measures the average distance from a reference Pareto front to the obtained solutions; a smaller value indicates both better convergence and diversity. For each instance, the reference Pareto front is constructed by pooling all non-dominated solutions from all algorithms and all random seeds. Before computing the indicators, all objective values are normalized to
using the ranges observed across all solutions.
The highest HV and lowest IGD on all four instances are achieved by ALP-PPO, which indicates that its Pareto front dominates those of the baseline methods in both convergence and diversity. The advantage over MOEA/D, the strongest evolutionary baseline, is most pronounced on the larger instances MK06 and MK10, where the adaptive Lagrangian mechanism effectively constrains workload variance without sacrificing Pareto spread. On MK01 and MK03, NSGA-II and MOEA/D outperform the value-based DRL methods (DoDQN, DuDQN, 3DQN) in HV, which demonstrates their strength in Pareto search on smaller instances; however, this advantage diminishes on larger instances, where the computational cost of population-based search becomes a limiting factor.
5.7. Gantt Chart Comparison Under Dynamic Disturbances
Figure 6 compares the rescheduling results of right-shift and full rescheduling strategies for both machine failure and rush order insertion scenarios on the MK01 instance. In the machine failure scenario (top row), right-shift rescheduling preserves the original schedule topology and delays affected operations, giving a makespan of 62 h, while full rescheduling by ALP-PPO globally reassigns operations and compresses the makespan to 46 h. In the rush order insertion scenario (bottom row), right-shift rescheduling extends the makespan to 65 h, while full rescheduling achieves 48 h through strategic redistribution of tasks across machines and workers.
The top row shows the machine failure scenario and the bottom row shows the rush order insertion scenario. In each row, right-shift rescheduling is depicted in the left panel and full rescheduling by ALP-PPO in the right panel. Shorter makespans are achieved by the full rescheduling strategy through global reassignment of operations across machines and workers.
5.8. Comparative and Sensitivity Analysis
Worker workload distributions across all evaluation episodes for three algorithms on three benchmark instances are compared in
Figure 7. ALP-PPO gives narrower and more symmetric violin plots than the baselines, indicating that the adaptive Lagrangian mechanism effectively constrains workload variance. 3DQN shows the widest spread, especially on the larger MK10 instance, reflecting its lack of explicit workload balancing.
Narrower distributions indicate more balanced workloads across workers. On all three instances ALP-PPO achieves the narrowest spread, which demonstrates that the Lagrangian constraint penalty directly reduces workload imbalance.
Figure 8 presents radar charts comparing seven algorithms across six normalized metrics on three benchmark instances. The six axes denote makespan, energy consumption, total machine load and worker workload variance (all inverted), along with constraint satisfaction rate and rescheduling response speed. ALP-PPO achieves the largest polygon area on all three instances, and its advantage is most pronounced on the workload variance and constraint satisfaction axes. NSGA-II and MOEA/D reach competitive areas on the makespan and energy axes but show smaller coverage on the constraint satisfaction and rescheduling speed axes, because these evolutionary methods lack online inference capability and require a full optimization run for each rescheduling event.
A larger polygon area indicates better overall performance. All six axes are normalized so that outward is better for every metric.
To isolate the contribution of each component, we conduct ablation experiments in which one component is removed at a time. Four variants are compared: (i) the full ALP-PPO model, (ii) ALP-PPO without the adaptive Lagrangian mechanism (a fixed penalty is used instead), (iii) ALP-PPO without the hierarchical action space (flat joint actions are used instead) and (iv) ALP-PPO without event-triggered rescheduling strategy selection (full rescheduling is applied for all events). The results appear in
Table 6. Removing the adaptive Lagrangian mechanism causes the largest degradation: workload variance increases by 57% and the constraint violation rate rises from 4.2% to 18.6%. This demonstrates that the adaptive multiplier update is the most critical component for constraint enforcement. Removing the hierarchical action space degrades all metrics and increases makespan by 8.3%. This degradation arises because the flat joint action space is exponentially larger, causing the policy to explore inefficiently and converge to suboptimal machine–worker pairings. Removing event-triggered strategy selection has the smallest impact on average metrics but increases average rescheduling computation time by 35%. These results demonstrate that each of the three suggested components makes a distinct and measurable contribution: the adaptive Lagrangian mechanism is primarily responsible for constraint enforcement, the hierarchical action space primarily improves scheduling quality through more efficient exploration, and the event-triggered rescheduling primarily improves computational efficiency by avoiding unnecessary full rescheduling for minor disruptions.
5.9. Sensitivity Analysis
Figure 9 presents heatmaps of the sensitivity of ALP-PPO to four key parameter pairs on the MK06 instance. The Lagrangian gain parameters (top left) show a clear optimal region near
,
; larger integral gains lead to oscillatory multiplier behavior. The DSI threshold (top right) shows moderate sensitivity: the selected value
balances responsiveness against computational efficiency. The fatigue threshold (bottom left) interacts with the number of workers: when there are fewer workers, a more generous fatigue limit is needed to maintain feasibility.
The four panels show the effects of Lagrangian gain parameters (top left), DSI threshold versus worker count (top right), fatigue threshold versus worker count (bottom left) and PPO clipping parameter versus learning rate (bottom right) on the composite scheduling performance. These results demonstrate that the selected hyperparameters lie within a broad stable region, and moderate perturbations do not cause abrupt performance degradation.
Reward Weight Sensitivity
To examine how sensitive ALP-PPO is to the reward weight configuration, we test five representative weight vectors on the MK06 instance, as reported in
Table 7. The default configuration
emphasizes makespan. Two alternative configurations shift emphasis toward energy consumption and workload variance, respectively, and two extreme configurations concentrate most of the weight on a single objective.
The three balanced configurations (rows 1–3) give qualitatively similar Pareto trade-offs, with the expected shift in emphasis among the three objectives. Across all configurations the constraint violation rate stays below 7%, which indicates that the adaptive Lagrangian mechanism maintains effective constraint enforcement regardless of the reward weighting. When most of the weight is concentrated on a single objective (rows 4–5), the neglected objectives degrade, but the degradation is moderate and the constraint violation rate remains controlled. These results support the robustness of ALP-PPO to reward weight selection and suggest that practitioners can adjust the weights according to shop floor priorities without retuning the Lagrangian parameters.
5.10. Constraint Evolution During Training
The evolution of constraint violation rates and Lagrangian multiplier values during training on MK06 is shown in
Figure 10. The workload balance violation rate drops from roughly 45% early in training to below 5% after 3000 episodes. The Lagrangian multipliers rise rapidly during the initial phase and then stabilize, which demonstrates that the proportional–integral update rule converges stably without the need for manual tuning.
Panel (a) shows the convergence of the constraint violation rate and panel (b) shows the adaptation of the Lagrangian multipliers (workload) and (fatigue) over training episodes. The fatigue multiplier stabilizes at a lower value than , reflecting the fact that the fatigue constraint is less frequently active under the selected threshold.
5.11. Robustness Under Varying Disruption Intensity
Robustness under increasing disruption intensity is evaluated in
Figure 11. Three levels are tested: low (one failure per episode, no rush orders), medium (two failures, one rush order) and high (three failures, two rush orders). ALP-PPO exhibits the most graceful degradation: makespan increases by 12.3% under high disruption relative to the low-disruption baseline, compared with 18.7% for 3DQN and 22.4% for DoDQN. NSGA-II and MOEA/D show degradation of 20.1% and 17.8%, respectively, because each new disruption requires a computationally expensive re-optimization that may not converge within the available time budget.
The three panels show makespan, workload variance and constraint violation rate, respectively, across low, medium and high disruption levels for all seven algorithms.
5.12. Computational Efficiency Analysis
For real-time rescheduling, the scheduling algorithm must deliver a new schedule within a time frame compatible with production cycle times.
Table 8 reports the computational cost of each algorithm along three dimensions: total training time for 5000 episodes on the MK06 instance, average online inference time per decision step during evaluation and average wall-clock time to generate a complete rescheduling solution after a dynamic event.
ALP-PPO requires roughly 27% more training time than PPO-base, owing to the additional overhead of the Lagrangian multiplier update and the cost value network. The per-step inference time of 15.3 ms is marginally higher than that of PPO-base (14.8 ms) because of the three-head hierarchical output, but it remains well within the millisecond range required for real-time decision-making. The rescheduling time of 0.42 s includes state encoding, policy inference for all remaining operations and schedule construction, and it is two orders of magnitude faster than the evolutionary methods (12.8 s for NSGA-II, 15.3 s for MOEA/D), each of which must run a full population-based optimization from scratch for every rescheduling event. Training time and per-step inference are not reported for NSGA-II and MOEA/D because they do not use a learned policy. These results demonstrate that ALP-PPO is suitable for real-time deployment in production environments where rescheduling decisions must be made within seconds of a disruption event.
5.13. Generalization Analysis
A cross-instance transfer experiment is conducted to evaluate how well the learned policy generalizes. Policies trained on two source instances (MK01 and MK03) are evaluated without fine-tuning on three target instances: MK02 (same scale as MK01), MK06 (more machines) and MK10 (more jobs and machines). To accommodate different instance sizes, the state vector is padded or truncated, with zero-padding for missing machine or worker features.
Table 9 reports the results alongside the performance of policies trained directly on each target instance.
On MK02, which has the same scale as the training instance MK01, the transferred policy incurs only a 5.4% increase in makespan and a modest increase in workload variance, demonstrating strong within-scale generalization. On the larger instances MK06 and MK10, the performance gap widens (8.5% and 6.8% makespan increase, respectively), indicating that the policy partially captures transferable scheduling heuristics but cannot fully compensate for the structural differences in machine count and job complexity. The constraint violation rate on MK10 rises to 10.5%, suggesting that Lagrangian multipliers calibrated on smaller instances do not fully transfer. These results indicate that zero-shot transfer provides a reasonable warm start, but fine-tuning on the target instance is recommended for deployment in production environments with substantially different configurations. Future work integrating GNN-based state representations [
21,
22] or meta-learning frameworks [
23] may further improve cross-instance generalization.
6. Conclusions
We have presented ALP-PPO, an adaptive Lagrangian penalty-enhanced proximal policy optimization algorithm for flexible job shop rescheduling under worker workload constraints, machine failures and rush orders. The scheduling problem was formulated as a constrained Markov decision process that integrates worker skill heterogeneity, fatigue and workload equity with classical scheduling objectives. The constraint thresholds of the CMDP were calibrated from occupational health guidelines and practical equity requirements, and this principled basis distinguishes the present formulation from standard MDP-based approaches. By decomposing operation sequencing, machine allocation and worker assignment into coordinated sub-decisions, the hierarchical action space keeps the decision problem tractable. Dual Lagrangian multipliers are updated using a proportional–integral rule, which extends existing PPO-Lagrangian methods by incorporating an integral correction term that addresses the challenge of heterogeneous constraint scales, and manual penalty tuning is thereby eliminated. An event-triggered mechanism guided by a disruption severity index automatically selects between right-shift and full rescheduling.
On extended Brandimarte benchmarks, ALP-PPO outperforms DoDQN, DuDQN, 3DQN, standard PPO, NSGA-II and MOEA/D across multiple objectives, with the largest gains observed in worker workload variance, which is reduced by 35–50% relative to value-based methods. Pareto front quality, as assessed using Hypervolume and Inverted Generational Distance indicators, is found to be superior for ALP-PPO in both convergence and diversity compared with the DRL baselines and multi-objective evolutionary algorithms. Ablation studies show that the adaptive Lagrangian mechanism drives the bulk of the constraint improvement, cutting violation rates by more than 40% versus fixed-penalty alternatives. The hierarchical action space contributes primarily to scheduling quality by reducing the effective search space, and the event-triggered rescheduling mechanism improves computational efficiency by avoiding unnecessary re-optimization for minor disruptions. Sensitivity analysis demonstrates stable parameter ranges, including robustness to variations in the reward weight configuration, and dynamic response experiments validate robustness under varying disruption intensities.
From the perspective of industrial deployment, several practical implications emerge from the results. The online inference time of ALP-PPO stays below 20 ms per decision step, and the complete rescheduling time after a disruption event averages 0.42 s, which is two orders of magnitude faster than the evolutionary baselines and compatible with the cycle times of typical discrete manufacturing lines. The reduction in workload variance directly translates to more equitable operator utilization, which can reduce fatigue-related errors, lower injury risk and improve workforce satisfaction over extended production horizons. The constraint satisfaction rate above 95% ensures that worker fatigue limits are respected throughout the production schedule, supporting compliance with occupational safety standards. These characteristics make ALP-PPO suitable for integration into manufacturing execution systems (MESs) or digital twin platforms as a real-time decision support module for human-centric smart factories.
With respect to generalizability, the cross-instance transfer experiments show that policies trained on smaller instances provide a reasonable warm start for larger configurations, with moderate performance degradation that can be recovered through fine-tuning. The method has been validated on instances from 55 to 240 operations with six to 15 machines and under disruption frequencies from single-event to multi-event concurrent scenarios. Extension to larger industrial-scale instances and more diverse shop floor configurations remains a direction for future investigation.
Future work should extend the static worker skill model to incorporate dynamic skill development and cross-training, and validate the approach on industrial-scale data with real machine failure logs and worker performance records. The hierarchical action space currently employs a sequential decision structure; investigating attention-based sub-action coordination mechanisms or GNN-based state representations [
21,
22] may further improve policy quality and cross-instance generalization. Integrating transfer learning and meta-learning [
23] techniques to enable trained policies to generalize across different shop floor configurations and product mixes would enhance the deployability of ALP-PPO in multi-plant manufacturing networks. Finally, combining the suggested approach with digital twin technology for continuous policy refinement on the basis of real-time production data represents a promising direction for realizing the Industry 5.0 vision of human-centric, resilient and sustainable intelligent manufacturing, where scheduling algorithms not only optimize throughput but also safeguard operator well-being and promote equitable workforce utilization.