A candidate rule pre-rehearsal and bottleneck batch collaborative scheduling method for packaging test workshop

By pre-simulating the execution results of each candidate rule in the packaging and testing workshop and combining it with the batch collaborative scheduling of bottleneck devices, the problems of unstable rule evaluation and unstable model deployment in existing reinforcement learning methods are solved, and a more stable scheduling effect is achieved.

CN123177364APending Publication Date: 2026-11-27CHINA THREE GORGES UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611279440.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing reinforcement learning workshop scheduling methods fail to explicitly represent the expected execution results of candidate rules, resulting in insufficient batch and model-changing coupling description, unstable evaluation of discrete rules, inconsistency between training rewards and the final goal, and unstable model deployment.

Method used

A candidate rule pre-playing and bottleneck batch collaborative scheduling method is adopted. By pre-playing the results of each candidate rule before each dispatch decision, and combining the bottleneck equipment batch collaborative dispatch rule, the training and deployment of the reinforcement learning network are optimized by using independent rule evaluation branch and incremental reward mechanism.

Benefits of technology

It enables direct comparison of rule effects before dispatching, reduces the implicit inference cost of rule differences, balances continuous processing of similar workpieces with global flow efficiency, provides real-time feedback and stable model deployment, reduces prediction errors and improves scheduling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177364A_ABST
    Figure CN123177364A_ABST
Patent Text Reader

Abstract

The application discloses a candidate rule pre-rehearsal and bottleneck batch collaborative scheduling method for packaging test workshops, and belongs to the field of semiconductor packaging test production scheduling. In view of the problems that the existing scheduling method cannot explicitly compare the consequences of candidate rule execution, the cooperation of mode changing and batch is insufficient, the reward is sparse, and the deployment model is unstable, the application carries out pre-trial calculation of multiple candidate dispatching rules without changing the workshop state at the dispatching time, extracts multi-dimensional features to construct a candidate rule pre-rehearsal state, sets a bottleneck equipment batch collaborative dispatching rule, selects a workpiece by comprehensively considering the starting time sequence, mode changing cost, batch aggregation and mold follow-up, adopts a reinforcement learning network with an independent rule scoring branch to select a rule, calculates an instant reward based on a double-target incremental calculation, and determines an optimal deployment strategy through multi-strategy checkpoint deterministic playback screening. The application can collaboratively reduce the maximum completion time and the total mode changing time, and improve the scheduling stability and the deployment reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of intelligent manufacturing and production scheduling technology for semiconductor packaging and testing, specifically involving an intelligent scheduling method for packaging and testing workshops that addresses constraints related to multiple processing centers, parallel equipment, product category-related mold change constraints, and multi-process flow constraints. Background Technology

[0002] Semiconductor packaging and testing is located in the later stages of integrated circuit manufacturing and typically includes multiple processing centers such as dicing, die bonding, bonding, encapsulation, testing, and sorting. Different products flow sequentially through multiple processing centers according to a predetermined process route, and each processing center can be equipped with one or more homogeneous or heterogeneous parallel machines. Due to the influence of product packaging type, mold specifications, testing procedures, and equipment compatibility, workpieces cannot be processed on just any machine.

[0003] When equipment switches from one product category to another, mold changes, fixture adjustments, or program switching are typically required. Mold changeover time depends on the product category before and after the switch, as well as the target equipment, and the mold changeover process occupies equipment. Frequent product category switching during scheduling directly increases equipment downtime; conversely, maintaining continuous processing of only the same type of product for an extended period can cause congestion for other products in subsequent processing centers. Therefore, there is a clear coupling between maximum completion time and total mold changeover time.

[0004] Existing workshop dispatching methods typically select workpieces based on rules such as shortest processing time, earliest delivery date, fewest remaining operations, priority given to workpieces with the same mold, or priority given to mold change costs. While a single dispatching rule has low computational overhead, its decision-making basis is fixed and difficult to adapt to different machining centers, different work-in-process structures, and different bottleneck stages. Entrusting multiple rules to a reinforcement learning strategy can improve adaptability, but conventional methods usually only input current workshop statistics into the network, without explicitly indicating which workpiece each candidate rule will select in the current state, how much mold change burden it will generate, or what kind of partial completion consequences it will result in.

[0005] When multiple candidate rules share only the same current workshop state, the network cannot see which workpiece each rule will select or the expected impact on start-up, mold change, and completion. Extensive interaction is required to indirectly infer rule differences. With limited training samples and a large number of scheduling steps, issues such as similar action values, unstable rule selection, and significant fluctuations in results across different random seeds can easily arise. For general Actor-Critic structures primarily used for continuous actions, directly applying them to a small number of discrete dispatch rules may also lead to inconsistencies between action representations and actual workshop execution.

[0006] Furthermore, general dispatching rules typically handle mold changeover time, processing time, or delivery urgency separately, rarely utilizing the proportion of similar work-in-process and continuous processing information for the same mold simultaneously. Similar work-in-process in the packaging and testing workshop has the potential to form continuous processing batches, but grouping them solely by the quantity of work-in-process may push workpieces to equipment with later start times or longer processing times, thereby increasing the maximum completion time.

[0007] Reinforcement learning scheduling also faces challenges such as reward sparsity and deployment model selection. If rewards are only given after all workpieces have been processed, it's difficult to obtain timely feedback for preceding assignment actions. If the last round of the model is used directly after training, better strategies developed during training may be lost due to network update fluctuations. Therefore, a packaging and test shop scheduling method is needed that can compare candidate consequences before action execution, jointly handle batch and mold-changing bottlenecks, generate progressive rewards according to the final goal, and stably select the deployment model. Summary of the Invention

[0008] The purpose of this invention is to address the problems of existing reinforcement learning workshop scheduling methods that only input the current workshop state and do not explicitly represent the expected execution results of each candidate rule. It also addresses the issues of insufficient batch and model-changing coupling description, unstable evaluation of discrete rules, inconsistency between training rewards and the final goal, and the possibility that the final training round model may not be suitable for deployment. The invention provides a candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops.

[0009] To achieve the above-mentioned technical features, the objective of this invention is as follows: a method for collaborative scheduling of candidate rule pre-simulation and bottleneck batches in a packaging and testing workshop, comprising the following steps: S1: Obtain workpiece information, process information, processing equipment information, mold information, processing time, mold change time, workpiece arrival time, workpiece delivery date, and current work-in-process status from the packaging and testing workshop, and establish a scheduling environment for the packaging and testing workshop; S2: At each dispatch decision moment, the basic state of the workshop is formed according to the scheduling environment of the packaging and testing workshop, and multiple candidate dispatch rules are pre-calculated without changing the actual workshop state. The expected start time, mold change burden, processing time, delivery slack, remaining process ratio and mold matching flag are extracted from the expected dispatch results of each candidate dispatch rule, and spliced ​​with the basic state of the workshop to form the candidate rule pre-run state. S3: Set a bottleneck equipment batch collaborative dispatch rule (BACR) among the multiple candidate dispatch rules. The bottleneck equipment batch collaborative dispatch rule calculates the comprehensive cost by combining the expected start time, mold change time, processing time, remaining process ratio, work-in-process ratio of the same category, and whether to use the current mold of the equipment within the feasible workpiece set of the earliest available equipment, and selects the workpiece with the lowest comprehensive cost. S4: Input the candidate rule pre-playing state into a reinforcement learning network with an independent rule evaluation branch, and output the score of each candidate assignment rule by the independent rule evaluation branch. Determine the target assignment rule based on the score and the exploration strategy. S5: Execute the target dispatching rule, assign the target workpiece to the target processing equipment, update the workpiece process status, equipment occupancy status, equipment mold status, maximum completion time and cumulative mold change time; calculate the instant reward based on the increment of the maximum completion time and cumulative mold change time before and after execution, combine the candidate rule pre-play status, target dispatching rule, instant reward and the next candidate rule pre-play status into experience data, and use the experience data to update the reinforcement learning network; S6: Repeat steps S2 to S5 until all workpieces are processed. Save the multiple strategy checkpoints formed during the training process, perform deterministic replay of the multiple strategy checkpoints, and select the deployment strategy based on the combined objective of maximum completion time and total mold change time.

[0010] Preferably, the basic workshop status includes average equipment utilization rate, standard deviation of equipment utilization rate, average equipment mold change rate, standard deviation of equipment mold change rate, average equipment idle rate, standard deviation of equipment idle rate, average workpiece process completion rate, standard deviation of workpiece process completion rate, expected delay rate, and actual delay rate, forming a total of 10-dimensional basic workshop status.

[0011] Preferably, the number of candidate dispatch rules is 4, each candidate dispatch rule corresponds to 6-dimensional candidate consequence features, and the candidate rule pre-simulation state is formed by splicing the 10-dimensional workshop basic state and the 24-dimensional candidate consequence features to form a 10+4×6=34-dimensional state vector.

[0012] Preferably, in step S2, without changing the actual state of the current packaging and testing workshop scheduling environment, each candidate dispatch rule is invoked to obtain candidate workpieces, candidate equipment, and estimated start times; the estimated start time is divided by the current time scale to obtain the estimated start time feature; the mold change time is divided by the sum of the mold change time and the processing time to obtain the mold change burden feature; the processing time is divided by the current time scale to obtain the processing time feature; the difference between the delivery date and the estimated completion time is divided by the current time scale to obtain the delivery date slack feature; the number of unfinished processes of the candidate workpiece is divided by the total number of processes to obtain the remaining process ratio; and a mold matching flag is generated based on whether the candidate workpiece category matches the current mold of the candidate equipment.

[0013] Preferably, in step S3, for the earliest available device, the first j Calculate the composite score for each feasible workpiece. : (1); in, , , , and The order is number 1 j The estimated start time, mold change time, processing time, remaining process ratio, and work-in-process ratio of each feasible workpiece are normalized by the minimum-maximum value within the candidate set. This is a continuous processing indicator for the same mold; a value of 1 is used if the mold can be reused, otherwise a value of 0 is used. to As non-negative weights, it is recommended that weights be given in the following order: start time, mold change, processing, remaining processes, batch, and continuity of the same mold. .

[0014] Preferably, for any scoring factor use Perform normalization; when the most When the maximum value is equal to the minimum value, the corresponding Set to 0.

[0015] Preferably, the reinforcement learning network includes a parallel-trained TD7 backbone and the independent rule evaluation branch; the TD7 backbone includes a state encoder, an Actor network, a state-action encoder, and a dual Critic network; the independent rule evaluation branch directly receives the candidate rule pre-playing state and simultaneously outputs the scores of each candidate assignment rule, and does not use the outputs of the Actor network, the dual Critic network, or the state-action encoder as serial inputs; the TD7 backbone and the independent rule evaluation branch share experience data, immediate rewards, and update rhythm, use an online scoring network to select the next candidate assignment rule, use a target scoring network to calculate the training objective, and use smooth L1 loss to update the independent rule evaluation branch.

[0016] Preferably, the instant reward in step S5 according to: (2); in, This represents the increment of the maximum completion time between adjacent work assignment decisions. This represents the incremental changeover time accumulated between adjacent work assignment decisions. As a weight for mold change time, For reward scale coefficient, .

[0017] Preferably, during training, candidate assignment rules are stored in the experience replay pool as one-hot vectors; the experience replay mechanism is used to extract training batches to perform network updates, and the exploration rate decreases linearly with the training process.

[0018] Preferably, in step S6, random exploration is disabled for each policy checkpoint saved during training, and the same test case is executed to calculate... , will make The minimum policy checkpoint is determined as the deployment policy, and the scheduling trajectory, maximum completion time, and total mold change time corresponding to the deployment policy are saved.

[0019] The present invention has the following beneficial effects: 1. This invention constructs action-specific consequence features for each candidate dispatch rule, enabling the network to directly compare the potential local effects of each rule before dispatching, thereby reducing the implicit inference cost of rule differences.

[0020] 2. The bottleneck equipment batch collaborative dispatching rule of this invention takes into account mold change loss, whether the current mold can be reused, the aggregation of similar work-in-process, equipment start time, processing time and remaining processes. It can take into account both continuous processing of similar workpieces and overall flow efficiency, and alleviate the coupling contradiction between mold change and completion time.

[0021] 3. This invention sets up independent rule evaluation branches in parallel outside the TD7 backbone, enabling a small number of discrete dispatch rules to be directly compared, and utilizes an online scoring network to select rules and a target scoring network to calculate training targets, effectively reducing value overestimation and rule selection fluctuations.

[0022] 4. This invention adopts incremental rewards that are consistent with the combined target of maximum completion time and total mold change time, providing instant feedback on target alignment for each work assignment and alleviating the problem of sparsity in final rewards.

[0023] 5. This invention saves and deterministically replays all strategy checkpoints, selects deployment models based on a unified combined objective, avoids directly regarding the last round of training models as the optimal models, and improves the stability of deployment results.

[0024] 6. This invention does not rely on an external timing predictor. All inputs come from the current observable workshop status and candidate dispatch results, reducing the propagation of prediction errors and facilitating deployment in existing manufacturing execution systems. Attached Figure Description

[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0026] Figure 1 This is the overall architecture diagram of the intelligent scheduling of the BACR-TD7 packaging and testing workshop of the present invention.

[0027] Figure 2 This is a diagram showing the pre-simulation state construction of candidate rules for this invention.

[0028] Figure 3 This is a flowchart of the Batch Collaborative Dispatch Rule (BACR) for bottleneck equipment in this invention.

[0029] Figure 4 An improved TD7 network structure diagram with independent rule evaluation branches added to this invention.

[0030] Figure 5 This is a flowchart of the BACR-TD7 training and deterministic deployment strategy selection process of the present invention.

[0031] Figure 6 This is a schematic diagram illustrating the HV contribution definition for a single deployment solution under a fixed reference point in this invention.

[0032] Figure 7 This is a comparison chart of the average combined objectives of the present invention and five reinforcement learning algorithms.

[0033] Figure 8 This is a graph showing the relative improvement of the combined objectives of this invention and the results of the Wilcoxon test.

[0034] Figure 9 This invention deploys a fixed reference point HV and its relative lifting graph.

[0035] Figure 10 This is a statistical chart showing the wins, draws, and losses of the present invention relative to five reinforcement learning algorithms under three independent repeated experiments.

[0036] Figure 11 This diagram illustrates the relative improvement of the combined objectives of the present invention under different workpiece sizes. Detailed Implementation

[0037] The present invention will be further described below with reference to the accompanying drawings and embodiments. The following embodiments are used to illustrate the technical principles and implementation process of the present invention and are not intended to limit the scope of protection of the present invention. Without departing from the technical concept of the present invention, the candidate basic rules, the number of network layers, the number of nodes, and the training parameters can be adjusted according to the workshop scale.

[0038] Example 1: Packaging and Testing Workshop Scheduling Environment and Optimization Model like Figure 1 As shown, this embodiment considers the use of... A packaging and testing workshop consisting of several processing centers. Workpieces. The process sequentially passes through several machining centers according to the predetermined process route; machining centers Configuration Parallel equipment. Each workpiece has a product category. Mold switching may occur when the equipment processes different product categories.

[0039] To facilitate the construction of the scheduling environment, the following assumptions are made: 1) Each machine can process at most one workpiece at any given time, and each workpiece can occupy at most one machine at any given time.

[0040] 2) Subsequent processes for the same workpiece must begin after the preceding processes are completed, and the workpiece cannot be preempted during processing.

[0041] 3) The processing time of the workpiece on each of the available equipment is known. Unprocessable equipment-process combinations are indicated by the infeasibility flag.

[0042] 4) The mold change time is determined by the target equipment, the product category before the changeover, and the product category after the changeover. The mold changeover process occupies equipment and cannot be interrupted.

[0043] 5) The buffer capacity between machining centers is sufficient to accommodate waiting workpieces, and workpieces that have completed the current process can enter the buffer of the next machining center.

[0044] 6) Scheduling is triggered by the equipment availability event, and at each dispatch decision moment, a candidate rule is selected to complete the matching of workpiece and equipment.

[0045] Table 1. Main Symbols and Meanings

[0046] This embodiment only optimizes the maximum completion time and total mold change time. The maximum completion time is: ; The total mold change time is the sum of the actual category switching times of each device: ; N represents the length of the processing sequence of the equipment on the corresponding machining center, and s represents the mold change time caused by the switching between adjacent product categories.

[0047] The combined objective is defined as: ; λ is consistent with the modulus change weight in the reward formula.

[0048] The scheduling process satisfies the following constraints: each operation can only select one feasible piece of equipment; operation sequence constraints for the same workpiece; workpiece arrival constraints; non-overlapping equipment processing constraints; and mold change occupancy constraints. The corresponding basic constraints can be expressed as: ; ; ; ; For any two processes assigned to the same equipment, a sequence variable is introduced to ensure that their processing ranges and corresponding mold-changing ranges do not overlap. In actual implementation, the workshop environment directly enforces the above constraints based on the equipment completion time, workpiece completion time, and the current mold type of the equipment.

[0049] Example 2: Construction of Candidate Consequence Perception State like Figure 2 As shown, candidate rule pre-playing refers to calculating the workpieces and equipment selected by each candidate rule without changing the actual workshop state, and extracting the expected execution results. In this embodiment, the workshop statistical state and the expected results of each rule are input into the reinforcement learning network. Workshop Basic State It consists of 10 dimensionless or proportional characteristics.

[0050] Suppose there are M machines in the workshop, and the processing utilization rate, mold change utilization rate, and idle rate of machine k as of the current moment are respectively... , and The mean and standard deviation are then calculated using the following formula: , ; , ; , ; The workpiece process completion rate is calculated based on the number of completed processes for each workpiece and the total number of processes, and then the average process completion rate is obtained. and standard deviation Expected delinquency rate Based on the current time, average processing time of remaining processes, and delivery time, the actual delay rate is estimated. This is derived from a comparison of current completion times and delivery dates. , ; For the A candidate dispatch rule is invoked without altering the actual workshop state to obtain candidate workpieces. Candidate equipment and the expected start time Let the current time scale be... The candidate mold change time and processing time are respectively and Then the 6-dimensional candidate consequence features are: ; in, And it is limited to a preset range; The proportion of the remaining processes for the candidate workpiece to the total number of processes; The value is 1 if the candidate equipment does not have a mold installed or if the current mold is consistent with the candidate workpiece category; otherwise, the value is 0.

[0051] This embodiment uses four candidate dispatch rules: the first three are preset basic rules, and the fourth is a BACR rule. The final state vector is: ; The expected outcome features of each rule are recalculated at each dispatch decision time. If a candidate rule cannot generate a feasible dispatch result, the 6-dimensional feature corresponding to that rule is set to zero to keep the state dimension fixed.

[0052] Table 2. Consequences of Individual Candidate Dispatch Rules

[0053] Example 3: Batch Collaborative Dispatch Rules (BACR) for Bottleneck Equipment like Figure 3 As shown, the BACR rule first selects the earliest available equipment k and its associated machining center h from the global equipment set. Then, it filters the work-in-process inventory in machining center h to find workpieces whose current process is h and can be processed on equipment k, forming a candidate set. .

[0054] For workpiece j in the candidate set, obtain the current mold category of the equipment and calculate the mold change time. Processing time and the expected start time The estimated start time is the greater of the equipment availability time, mold change time, and workpiece arrival time at the next process stage. Remaining process percentage. and the proportion of work-in-process in the same category They are respectively: ; ; in, For workpiece Total number of processes, Number the current process. For the machining center within h and the workpiece The quantity of work-in-process items of the same category. If the workpiece... If the existing molds installed on the equipment can be used without changing the molds, then ,otherwise .

[0055] To avoid any single factor dominating the score due to different units of measurement, the estimated start time, mold change time, processing time, proportion of remaining processes, and proportion of work-in-process of the same category were normalized by minimum-maximum values ​​within the candidate set. ; When the maximum and minimum values ​​of the same factor in the candidate set are equal, the corresponding normalized value is uniformly set to 0. Then, the composite score of each candidate workpiece is calculated according to formula (1), and the workpiece with the smallest score is selected.

[0056] In equation (1), the mold change time weight is 0.35, which is the largest positive cost weight; the no-mold-change flag and the proportion of work-in-process of the same category are entered into the score as negative items to encourage the continuous processing of similar workpieces using the current mold and the formation of batches; the expected start time, processing time and the proportion of remaining processes are used to prevent equipment congestion or long workpiece backlog caused by pursuing fewer mold changes. If there are no feasible workpieces in the earliest available equipment, the preset rollback rule is invoked to handle the dispatch event.

[0057] Example 4: Improved TD7 with added independent rule evaluation branches like Figure 4 As shown, this embodiment includes two parallel training paths. The first path is the TD7 backbone, which consists of a state encoder, an Actor network, a state-action encoder, and a dual Critic network, used to learn state representations, policy probabilities, and state-action values. The second path is the independent rule evaluation branch, which directly receives the 34-dimensional candidate rule pre-simulation state and is used to score the four discrete dispatch rules respectively.

[0058] The Actor network outputs the probabilities of four discrete dispatch rules. A dual Critic network estimates the state-action value and constructs the target using the smaller value to reduce overestimation. Actions in the experience replay are stored as 4-dimensional one-hot vectors to ensure that the network training actions are consistent with the rule numbers actually executed in the workshop.

[0059] The Actor, Dual Critic, and State-Action Encoder of the TD7 backbone are not concatenated to the independent rule evaluation branch. The two paths share the same experience replay samples, immediate rewards, and update rhythm, but each has independent parameters. In the deployment configuration of this embodiment, the independent rule evaluation branch outputs the actual executed rule number, and the TD7 backbone serves as an auxiliary representation and policy value learning path. Let A be the set of candidate dispatch rules, and the online rule value network be... The target rule value network is Then the rule selection and target value for the next state are: ; ; in, As a discount factor, This serves as the termination flag. The direct rule value branch employs a smoothed L1 loss: ; The online scoring network is used to select the next rule, while the target scoring network is used to calculate the training objective of the selected rule, thus forming a dual value update. The target scoring network and the TD7 target network are synchronized at a preset period. During actual job assignment, the score can be converted into rule probability via Softmax; in the exploration phase, a rule is randomly selected according to a linearly decaying exploration rate, otherwise the rule with the highest score is directly selected.

[0060] Example 5: Incremental Reward, Training, and Deployment Strategy Selection like Figure 5 As shown, the current maximum equipment completion time and cumulative mold change time are recorded before each work assignment. After the work assignment is executed, the two are read again and the increment is calculated. The instant reward is generated according to formula (2). The cumulative value of this reward is consistent with the combined target direction of formula (5). The more the maximum completion time or mold change time increases, the smaller the instant reward becomes.

[0061] Training experience The training data is written into a fixed-capacity experience replay pool. Every preset dispatch step, a training batch is uniformly drawn from the replay pool to update the encoder, Critic, Actor, and direct rule value branches. The Actor and target network are updated with a delay to reduce policy oscillations caused by continuous network updates.

[0062] Table 3 Main training parameters of this embodiment

[0063] During training, the Actor, state encoder, and their associated parameters are saved epoch by epoch, forming a checkpoint set Π. After training, random exploration is disabled, and each checkpoint is loaded sequentially on the same test case, followed by deterministic replay. The following calculations are then performed: ; Select Minimal checkpoints as deployment strategy ,Right now The deployment output simultaneously saves model parameters, checkpoint rounds, repeated experiment numbers and their pseudo-random initialization values, scheduling trajectory, maximum completion time and total model change time, facilitating subsequent verification.

[0064] Example 6: Experimental Verification To verify the method of the present invention, 27 sets of packaging test workshop cases were used, with the number of workpieces being 200, 220, 240, 260, 280, 300, 320, 340 and 360 respectively. Three types of processing center numbers were set for each workpiece size, forming a total of 27 sets of cases ranging from 200_7 to 360_13.

[0065] The experiment was confirmed to have undergone three independent repeated training runs. To facilitate experimental reproducibility, the pseudo-random number initialization values ​​for the three training runs were fixed at 2042, 2043, and 2044; these values ​​were used only for initializing network parameters, exploration actions, and empirical sampling, and were not considered input features or control parameters of the scheduling method. BACR-TD7, along with AC, DQN, DDQN, IDDQN, and D3QN, employed 20 rounds of training per instance, 2 rounds of deterministic testing, and the same checkpoint deployment selection rules. Each comparison algorithm generated 27 × 3 = 81 paired samples, and all completed random seeds were included in the statistics.

[0066] Table 4 shows the comparison results of combined objectives (the average objective value of BACR-TD7 is 3980.99).

[0067] like Figure 7 and Figure 8 As shown, the average combinatorial objective value of BACR-TD7 is 3980.99, with an average RPD of 3.52% to 7.51% compared to the five algorithms. The p-values ​​of the one-sided Wilcoxon paired signed-rank test are all less than 0.05, indicating that under the 27 sets of examples defined in this embodiment, 3 independent repeated training sessions, and a unified training budget, BACR-TD7 has a statistically significant advantage over the five algorithms in terms of combinatorial objective. Figure 10 The number of wins, draws, and losses for 81 paired samples is given.

[0068] To simultaneously evaluate the maximum completion time and total mold change time, the HV contribution of the deployment solution under a fixed reference point is further employed. Both objectives are minimization objectives. For each case, three deterministic anchor point rules are first run, and the dimension-wise worst values ​​of the maximum completion time and total mold change time are taken and multiplied by 1.25, i.e. A fixed reference point is obtained: ; like Figure 6 As shown, for a single deployment solution located within the reference rectangle Its HV contribution is: ; This embodiment reports the area contribution of a single deployed solution relative to a fixed reference point, and does not represent it as the hypervolume of the Pareto solution set generated by the algorithm. All proposed algorithm points and baseline algorithm points are located within a predefined reference rectangle.

[0069] Table 5. HV comparison results at fixed reference points (BACR-TD7 average HV is 17038230.27).

[0070] like Figure 9As shown, the average HV contribution of BACR-TD7 is 17,038,230.27, which is 25.65% higher than the five algorithms, reaching 49.82%, and the corresponding Wilcoxon test p-values ​​are all less than 0.05. Figure 11 Furthermore, the combined target average RPD for different workpiece sizes is given, indicating that the benefits of the present invention do not come solely from a single workpiece size.

[0071] The above results demonstrate that the candidate rule pre-running state, bottleneck device batch collaborative rules, independent rule evaluation branching, target alignment incremental rewards, and deterministic checkpoint selection work synergistically. Under the experimental conditions of this embodiment, this collaborative process can simultaneously reduce the maximum completion time and total mold change time, and improve the stability of deployment results under independent repeated training.

[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for candidate rule pre-simulation and bottleneck batch collaborative scheduling in a packaging and testing workshop, characterized in that, Includes the following steps: S1: Obtain the workpieces, processes, processing equipment, molds, processing time, mold change time, arrival time, delivery date and work-in-process status of the packaging and testing workshop, and establish a scheduling environment for the packaging and testing workshop; S2: At each dispatch decision moment, a basic workshop state is formed, and multiple candidate dispatch rules are pre-calculated without changing the actual workshop state. The expected dispatch result features of each candidate dispatch rule are extracted and spliced ​​with the basic workshop state to form a candidate rule pre-simulation state. S3: Set a bottleneck equipment batch collaborative dispatch rule among the multiple candidate dispatch rules. The bottleneck equipment batch collaborative dispatch rule selects the target workpiece from the set of feasible workpieces of the earliest available equipment based on the equipment start-up and processing burden, mold change burden, remaining processes, work-in-process of the same type and mold usage. S4: Input the candidate rule pre-playing state into a reinforcement learning network with an independent rule evaluation branch, output the score of each candidate assignment rule from the independent rule evaluation branch, and determine the target assignment rule based on the score; S5: Execute the target dispatching rule and update the workpiece status, equipment status, mold status, maximum completion time and cumulative mold change time. Calculate the instant reward based on the increment of the maximum completion time and cumulative mold change time before and after execution, and update the reinforcement learning network using the corresponding experience data. S6: Repeat steps S2 to S5 until all workpieces are processed to obtain the packaging and testing workshop scheduling plan.

2. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1, characterized in that, The basic status of the workshop includes average equipment utilization rate, standard deviation of equipment utilization rate, average equipment mold change rate, standard deviation of equipment mold change rate, average equipment idle rate, standard deviation of equipment idle rate, average workpiece process completion rate, standard deviation of workpiece process completion rate, expected delay rate, and actual delay rate, forming a total of 10-dimensional basic status of the workshop.

3. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 2, characterized in that, The number of candidate dispatch rules is 4, and each candidate dispatch rule corresponds to 6-dimensional candidate consequence features. The candidate rule pre-simulation state is formed by splicing the 10-dimensional workshop basic state and the 24-dimensional candidate consequence features to form a 34-dimensional state vector.

4. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1 or 3, characterized in that, In step S2, without changing the actual state of the current packaging and testing workshop scheduling environment, each candidate dispatch rule is invoked to obtain candidate workpieces, candidate equipment, and estimated start times. The estimated start time is divided by the current time scale to obtain the estimated start time feature, the mold change time is divided by the sum of the mold change time and the processing time to obtain the mold change burden feature, the processing time is divided by the current time scale to obtain the processing time feature, the difference between the delivery date and the estimated completion time is divided by the current time scale to obtain the delivery date slack feature, the number of unfinished processes of the candidate workpiece is divided by the total number of processes to obtain the remaining process ratio, and a mold matching flag is generated based on whether the candidate workpiece category matches the current mold of the candidate equipment.

5. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1, characterized in that, In step S3, for the earliest available device, the first j Calculate the composite score for each feasible workpiece. : ; in, , , , and The order is number 1 j The estimated start time, mold change time, processing time, remaining process ratio, and work-in-process ratio of each feasible workpiece are normalized by the minimum-maximum value within the candidate set. This is a mark indicating continuous processing using the same mold. to The weights are non-negative.

6. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 5, characterized in that, For any rating factor use Perform normalization; when the most When the maximum value is equal to the minimum value, the corresponding Set to 0.

7. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1, characterized in that, The reinforcement learning network includes a parallel-trained TD7 backbone and the independent rule evaluation branch. The TD7 backbone includes a state encoder, an Actor network, a state-action encoder, and a dual Critic network. The independent rule evaluation branch directly receives the candidate rule pre-playing state and simultaneously outputs the scores of each candidate assignment rule, without using the outputs of the Actor network, dual Critic network, or state-action encoder as serial inputs. The TD7 backbone and the independent rule evaluation branch share experience data, immediate rewards, and update rhythms. It uses an online scoring network to select the next candidate assignment rule, uses a target scoring network to calculate the training objective, and uses smooth L1 loss to update the independent rule evaluation branch.

8. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1, characterized in that, The instant reward in step S5 according to Calculate; where, This represents the increment of the maximum completion time between adjacent work assignment decisions. This represents the incremental changeover time accumulated between adjacent work assignment decisions. As a weight for mold change time, This is the reward scale coefficient.

9. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1 or 7, characterized in that, During training, candidate assignment rules are stored in the experience replay pool as one-hot vectors. An experience replay mechanism is used to extract training batches for network updates, and the exploration rate decreases linearly with the training process.

10. The candidate rule pre-simulation and bottleneck batch collaborative scheduling method for packaging and testing workshops according to claim 1, characterized in that, During training, random exploration is disabled for each policy checkpoint saved during training, and the same test case is executed to calculate... , will make The minimum policy checkpoint is determined as the deployment policy, and the scheduling trajectory, maximum completion time, and total mold change time corresponding to the deployment policy are saved.