A distributed hybrid flow shop scheduling method considering transportation resources based on inverse reinforcement learning deep Q network

By constructing machine and AGV agents through inverse reinforcement learning deep Q-networks, the problem of neglecting transportation resources in the scheduling of distributed hybrid assembly line workshops is solved, realizing low-power and high-efficiency production operations, and improving the scheduling solution efficiency and model training flexibility.

CN122883908BActive Publication Date: 2026-11-24HARBIN INST OF TECH AT WEIHAI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611406171.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24
Estimated Expiration
2046-09-11

AI Technical Summary

Technical Problem

Existing distributed hybrid flow shop scheduling methods do not consider transportation resource constraints, have high model training overhead and low solution efficiency, and are difficult to achieve global collaborative optimization while ensuring the feasibility of the solution.

Method used

We employ inverse reinforcement learning deep Q-networks to construct machine agents and AGV agents, unifying the modeling of machine selection and AGV transportation resource selection in the production process. We design state spaces, action spaces, and reward mechanisms that adapt to different decision-making scenarios, and introduce inverse reinforcement learning methods to enable agents to autonomously adjust and optimize reward functions.

Benefits of technology

Considering the constraints of limited transportation resources, this method improves the optimization performance of scheduling problems, reduces model training overhead, and increases scheduling efficiency, thus meeting the rapid scheduling optimization needs of manufacturing enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122883908B_ABST
    Figure CN122883908B_ABST
Patent Text Reader

Abstract

This application provides a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks, considering transportation resources. It solves the technical problems of existing distributed hybrid flow shop scheduling methods, such as neglecting transportation constraints, high model training overhead, and low solution efficiency. The method includes initializing the machine agent and AGV agent, the reward function weight vector, and the sample replay set; selecting a validation example to complete the matching process; determining whether all matching processes are completed; if so, iterating training to a preset number of times, updating the network parameters and the target network; otherwise, continuing the matching process; verifying scheduling performance, updating the reward function weight vector; determining whether the inverse reinforcement learning iteration training number meets a preset termination condition; if so, calculating the final scheduling scheme; otherwise, continuing to train the machine agent and AGV agent until the preset termination condition is met. This application can be widely applied in the field of resource scheduling technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of resource scheduling technology, and more specifically, it relates to a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network that takes into account transportation resources. Background Technology

[0002] The existing Chinese invention patent, CN117891220B, provides a distributed hybrid assembly line scheduling method based on multi-agent deep reinforcement learning. It sets each machine as an independent agent to solve the scheduling problem, achieving production scheduling in a distributed hybrid assembly line. However, this patent assigns an independent agent to each machine, and the number of agents is tied to the number of machines in the workshop. When the number of machines changes, the trained model weights cannot be directly reused; the entire agent network needs to be rebuilt and retrained, resulting in high model training overhead. Furthermore, this patent only addresses scheduling the pure processing steps in the workshop, neglecting constraints imposed by transportation resources. In actual production scenarios, material transfer between factories is constrained by the number of transport vehicles and traffic conditions, further increasing the difficulty of solving the scheduling problem due to limited transportation resources. This problem requires not only coordinating multiple highly coupled decisions regarding factory allocation and process sequencing within the factory, but also considering multiple optimization objectives such as completion time and production energy consumption, achieving global collaborative optimization while ensuring the feasibility of the solution. The computational complexity is far higher than that of traditional unconstrained scheduling problems. Therefore, considering the constraints of limited transportation resources, researching how to formulate reasonable factory allocation and in-plant production scheduling schemes to achieve low-power, high-efficiency production operations under a distributed hybrid flow production mode has become a technical problem that manufacturing enterprises urgently need to solve in the process of reducing costs and increasing efficiency. Summary of the Invention

[0003] The purpose of this application is to provide a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network that considers transportation resources, so as to solve the technical problems of existing distributed hybrid flow shop scheduling methods that do not consider transportation constraints, have large model training overhead, and low solution efficiency.

[0004] To achieve the above objectives, this application provides a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks, considering transportation resources, comprising the following steps:

[0005] Initialize the machine agent and AGV agent, build a multilayer perceptron network and a target network, initialize the reward function weight vector and sample playback set, solve all the verification cases, select a verification case, complete the matching process through the machine agent and AGV agent, and update the sample playback set;

[0006] Determine whether the matching process is complete. If so, iteratively train the multilayer perceptron networks of the machine agent and AGV agent to a preset number of times, and update the network parameters and the target network; otherwise, continue to complete the matching process.

[0007] Verify the scheduling performance of the machine agent and AGV agent, extract policy features from the sample replay set and calculate expert expectation and policy expectation, and update the reward function weight vector; determine whether the number of iterations of inverse reinforcement learning training meets the preset termination condition. If so, calculate the final scheduling scheme based on the trained machine agent and AGV agent; otherwise, continue training the machine agent and AGV agent until the preset termination condition is met.

[0008] Preferably, the process of extracting strategy features from the sample playback set includes: randomly selecting a set of samples from the sample playback set, extracting the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece for each set of samples to form machine strategy features; extracting the average absolute deviation of the current AGV load, the idle rate of the selected AGV, the idle rate of the selected AGV, and the waiting time of the current workpiece to form AGV strategy features; and integrating the machine strategy features and AGV strategy features to obtain strategy features.

[0009] Preferably, the process of solving all verification cases includes: using an expert scheduling algorithm to solve all verification cases, and at the decision time point for selecting a processing machine and transportation equipment for each workpiece, extracting the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece and storing them in the machine expert feature vector.

[0010] At the decision point when selecting processing machines and transportation equipment for each workpiece, the average absolute deviation of the load of each AGV, the idle rate of the selected AGV, the no-load rate of the selected AGV, and the waiting time of the current workpiece are extracted and stored in the AGV expert feature vector.

[0011] Preferably, the process of calculating the expert expectation and the strategy expectation includes: averaging the machine expert feature vectors at all decision time points of the expert scheduling algorithm to obtain the expert expectation assigned by the machine; averaging the AGV expert feature vectors at all decision time points of the expert scheduling algorithm to obtain the expert expectation assigned by the AGV; and integrating the expert expectation assigned by the machine and the expert expectation assigned by the AGV to obtain the expert expectation.

[0012] The mean of the machine policy characteristics at all decision time points of the expert scheduling algorithm is calculated to obtain the expected policy of machine allocation; the mean of the AGV policy characteristics at all decision time points of the expert scheduling algorithm is calculated to obtain the expected policy of AGV allocation; the expected policy of machine allocation and the expected policy of AGV allocation are integrated to obtain the expected policy.

[0013] Preferably, the process of updating the reward function weight vector includes:

[0014] The reward function weight vector of the machine agent is updated based on the difference between the expert expectation assigned by the machine and the policy expectation assigned by the machine, combined with the reward function learning rate.

[0015] The reward function weight vector of the AGV agent is updated based on the difference between the expert expectation and the policy expectation of AGV allocation, combined with the reward function learning rate.

[0016] Preferably, the process of iteratively training the multilayer perceptron network of the machine agent and the AGV agent to a preset number of times, and updating the network parameters and the target network includes:

[0017] A small batch of samples of the size of the training batch is randomly selected from the sample set of the machine agent, and the parameters of the machine agent's multilayer perceptron network are updated using the Adam optimizer.

[0018] A small batch of samples of the size of the training batch is randomly selected from the sample set of the AGV agent, and the parameters of the AGV agent multilayer perceptron network are updated using the Adam optimizer.

[0019] When the training iterations of the multilayer perceptron network are set to a preset number, the parameters of the machine agent's multilayer perceptron network are copied to the machine agent's target network, and the parameters of the AGV agent's multilayer perceptron network are copied to the AGV agent's target network.

[0020] Preferably, the process of initializing the sample replay set includes:

[0021] Initialize the sample playback set of the machine agent, including original workpiece state samples, new workpiece state samples, original machine state samples, new machine state samples, machine action samples, and machine reward samples;

[0022] Initialize the sample playback set of the AGV agent, including the original process state sample, the new process state sample, the original AGV state sample, the new AGV state sample, the AGV action sample, and the AGV reward sample.

[0023] Preferably, the process of completing the matching procedure through a machine intelligence agent includes:

[0024] Extract the workpiece state vector of the current workpiece and the machine state vector of each available machine, merge them and input them into the multilayer perceptron network of the machine agent to obtain the Q value of each workpiece-machine pairing, and select the machine with the largest Q value as the processing machine for the workpiece.

[0025] Extract the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece and store them in the machine strategy feature vector;

[0026] The reward value of the machine agent is the weighted sum of the feature vectors of the machine policy, calculated based on the reward function weight vector of the machine agent.

[0027] Store the original workpiece state vector, the original state vectors of all available machines, the selected machine number, the new workpiece state vector, the new state vectors of all available machines, and the machine reward samples into the corresponding sample playback sets.

[0028] Preferably, the process of completing the matching procedure using an AGV intelligent agent includes:

[0029] Extract the process state vector of the current process and the AGV state vector of each available AGV, merge them and input them into the multilayer sensor network of the AGV agent to obtain the Q value of each process-AGV pairing, and select the AGV with the largest Q value as the transportation equipment for that process.

[0030] Extract the average absolute deviation of the current load of each AGV, the idle rate of the selected AGV, the idle rate of the selected AGV, and the waiting time of the current workpiece and store them in the AGV strategy feature vector.

[0031] Based on the reward function weight vector of the AGV agent, the weighted sum of the AGV policy feature vectors is calculated as the reward value of the AGV agent.

[0032] The original process state vector, the original state vectors of all available AGVs, the selected AGV number, the new process state vector, the new state vectors of all available AGVs, and the reward value obtained by the AGV agent are stored in the corresponding sample playback set.

[0033] Preferably, the machine agent and AGV agent are initialized, including initializing the optimizer of the machine agent and AGV agent and configuring the training parameters;

[0034] Configure training parameters, including the number of training generations for the deep Q-network and the number of iterations for inverse reinforcement learning.

[0035] The beneficial effects of this application are as follows: This application provides a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks that considers transportation resources. For the distributed hybrid flow shop scheduling problem considering limited transportation resource constraints, an inverse learning mechanism is introduced to improve the optimization performance of complex scheduling problems. First, this application simultaneously sets up machine agents and AGV agents to collaboratively complete the matching process, incorporating the transportation resources of the AGV agents into the scheduling process, overcoming the shortcomings of existing methods that do not consider transportation resources, and achieving collaborative optimization of processing processes and material transportation tasks. Second, this application unifies the machine selection and AGV transportation resource selection processes in the production process into a Markov decision process, and specifically designs state spaces, action spaces, reward mechanisms, and deep neural network structures adapted to different decision scenarios. Simultaneously, an inverse reinforcement learning method is introduced, enabling both types of agents to learn from expert scheduling algorithms and autonomously adjust and optimize the reward function. Only one pair of machine-AGV agents is used to complete the global scheduling decision, eliminating the need to modify agent objects based on the number of devices, thus reducing the model training overhead caused by multi-agent architectures. Finally, the final scheduling scheme is calculated based on the trained machine agent and AGV agent, avoiding the large number of iterative calculations required for online optimization by traditional metaheuristic algorithms, effectively improving the scheduling solution efficiency, and meeting the actual needs of rapid scheduling optimization in complex distributed hybrid flow workshops with limited transportation resources. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 A schematic diagram of the overall process of a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources, provided as an embodiment of this application;

[0038] Figure 2 A schematic diagram of a deep Q-network framework based on inverse reinforcement learning provided in an embodiment of this application;

[0039] Figure 3 A schematic diagram of the average maximum completion time curve of the model of this application on a verification example provided for an embodiment of this application;

[0040] Figure 4 This is a schematic diagram of the average total energy consumption curve of the model in this application on a verification example, provided as an embodiment of this application. Detailed Implementation

[0041] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.

[0042] This application provides a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks, considering transportation resources. With the optimization objectives of maximizing completion time and minimizing total energy consumption, machine agents and AGV agents are constructed separately. The machine selection and AGV transportation resource selection processes in the production process are uniformly modeled as Markov decision processes. State spaces, action spaces, reward mechanisms, and deep neural network structures adapted to different decision-making scenarios are specifically designed. Simultaneously, inverse reinforcement learning is introduced, enabling both types of agents to learn from expert scheduling algorithms and autonomously adjust and optimize the reward function. This application can significantly improve solution efficiency while ensuring scheduling quality, meeting the needs of rapid scheduling optimization in actual distributed production of manufacturing enterprises. In this embodiment, the expert scheduling algorithm used is a non-dominated sorting genetic algorithm (NSGA). This application does not limit the choice of expert scheduling algorithm and allows for selection based on actual conditions.

[0043] Specifically, this application describes the distributed hybrid flow shop scheduling problem as follows: Each workpiece needs to be The processing is completed on a single machine, and each workpiece needs to go through the process sequentially. The processing is completed in one step, and all the machines are distributed in... There are several different factories, each with one or more available machines for each process step. In the production planning process, for each workpiece, the decision-maker first needs to assign it to a factory, then assign processing machines for each process step within that factory, and determine the processing sequence on each machine within that factory. Therefore, solving the distributed hybrid flow shop scheduling problem requires addressing three sub-problems: factory allocation, machine selection, and process sequencing, ultimately minimizing the maximum completion time and total energy consumption of all factories.

[0044] Please see Figure 1-2 This application provides an embodiment of a distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks, considering transportation resources, comprising:

[0045] S1: Initialize the machine agent and AGV agent, build a multilayer perceptron network and target network, initialize the reward function weight vector and sample playback set, and solve all verification examples.

[0046] First, construct and initialize the machine agent and the automated guided vehicle (AGV) agent. Then, build a multi-layer sensor network for the machine agent. and target network Building a multi-layer sensor network for AGV intelligent agents and target network The initial parameters of each agent's multilayer perceptron network are generated through a random policy, and the parameters of the target network are the same as those of the corresponding multilayer perceptron network.

[0047] Initialize the optimizers for the machine agent and AGV agent and configure the training parameters. Specifically, initialize the optimizers for the machine agent and AGV agent and configure training hyperparameters such as the number of training generations for the deep Q network and the number of inverse reinforcement learning iterations, including: machine agent learning rate MA_lr, AGV agent learning rate AA_lr, reward function learning rate Reward_lr, sample size ReplayBuffer_size, training batch size minibatch_size, number of inverse reinforcement learning iterations IRL_Episodes, and number of network training generations DQN_Episodes.

[0048] In this application, the machine agent learning rate MA_lr is set to 0.0001, the AGV agent learning rate AA_lr is set to 0.0001, the reward function learning rate Reward_lr is set to 0.0001, the sample size ReplayBuffer_size is set to 1000, the training batch size minibatch_size is set to 64, the inverse reinforcement learning iterations IRL_Episodes are set to 5, and the network training generations DQN_Episodes are set to 200. For all neural networks, the Adam optimizer is used for training.

[0049] After completing the construction of the multilayer perceptron network and target network for the machine agent and AGV agent, the reward function weight vector is initialized. and Initialize the sample replay set for the machine agent, including: original job state sample old_job_state_memory, new job state sample new_job_state_memory, original machine state sample old_machine_state_memory, new machine state sample new_machine_state_memory, action sample MA_action_memory, and reward sample MA_reward_memory.

[0050] Initialize the AGV agent sample replay set, including: original operation state sample old_operation_state_memory, new operation state sample new_operation_state_memory, original AGV state sample old_AGV_state_memory, new AGV state sample new_AGV_state_memory, action sample AA_action_memory, and reward sample AA_reward_memory.

[0051] After completing the above initialization, the expert scheduling algorithm is used to solve all validation cases, and expert features are obtained from the expert trajectories. Specifically, the expert scheduling algorithm is used to solve all validation cases. At the decision time point for selecting a processing machine and transportation equipment for each workpiece, the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece are extracted and stored. Machine expert feature vector at time step .

[0052] At the decision point when selecting processing machines and transportation equipment for each workpiece, the average absolute deviation of the load of each AGV, the idle rate of the selected AGV, the no-load rate of the selected AGV, and the waiting time of the current workpiece are extracted and stored. AGV expert feature vector at time step .

[0053] S2: Select a specific verification case from all verification cases, complete the matching process through the machine intelligence agent and the AGV intelligence agent, and update the sample playback set.

[0054] Select a distributed hybrid flow shop scheduling training example that considers transportation resources from all validation examples and read its information. Use a machine agent to select the next processing machine for a workpiece and an AGV agent to select transportation equipment for the process. The steps in this process include:

[0055] First, input the current machine status and workpiece status into the machine intelligence agent, and select machine-workpiece pairing based on the output of the machine intelligence agent.

[0056] Specifically, the earliest available time and the processing time required for the current workpiece are extracted as the workpiece state vector. Extract the earliest available time, current load, current total idle time, current total energy consumption, and energy consumption per unit time for each available machine as the machine state vector. ,in, This represents the number of available machines.

[0057] Workpiece state vector With the state vector of each available machine The inputs are merged into a multilayer perceptron network of the machine agent, and the output is recorded as... ,in, For machine intelligent agents, a multilayer perceptron network For the workpiece-machine pairing value, repeat this step until the values ​​for all workpiece-machine pairings are obtained. The machine with the highest value is selected as the processing machine for the corresponding workpiece.

[0058] Next, the reward value obtained by the machine agent is calculated according to the machine-selected reward function, and the sample is stored. Specifically, for the selected machine-workpiece pairing, the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece are extracted and stored. Machine policy feature vector at time step .

[0059] Based on the reward function weight vector calculate weighted sum The reward value obtained by the machine agent is stored as follows: the original job state vector is stored in the original job state sample old_job_state_memory, the original state vectors of all available machines are stored in the original machine state sample old_machine_state_memory, the selected machine number is stored in the machine action sample MA_action_memory, the new job state vector is stored in the new job state sample new_job_state_memory, the new state vectors of all available machines are stored in the new machine state sample new_machine_state_memory, and the reward value obtained by the machine agent is stored in the machine reward sample MA_reward_memory.

[0060] Then, input the current AGV status and process status into the AGV agent, and select AGV-process pairing based on the output of the AGV agent.

[0061] Specifically, the earliest available time for the current process and the time required to transport the equipment from the current location to the selected machine location are extracted as the process state vector. Extract the earliest available time, current load, current total idle time, current total idle time, and time required to move from the current position to the process location for each available AGV as the AGV state vector. ,in, This represents the number of available machines.

[0062] The process state vector is merged with the state vector of each available AGV, and then input into the multilayer perceptron network of the AGV agent. The output result is denoted as... ,in, For AGV intelligent agents, a multi-layer sensor network, For the AGV pairing value for this process, repeat this step until the AGV pairing values ​​for all processes are obtained. The AGV with the highest value is selected as the transport equipment for the process.

[0063] Finally, the reward value obtained by the AGV agent is calculated according to the AGV selection reward function, and the sample is stored. Specifically, for the selected process-AGV pairing, the average absolute deviation of the current AGV load, the idle rate of the selected AGV, the idle rate of the selected AGV, and the waiting time of the current process are extracted and stored. AGV strategy feature vector at time step .

[0064] Based on the reward function weight vector calculate weighted sum The reward value obtained by the AGV agent is stored as follows: the original operation state vector is stored in the original operation state sample old_operation_state_memory, the original state vectors of all available AGVs are stored in the original AGV state sample old_AGV_state_memory, the selected AGV number is stored in the action sample AA_action_memory, the new operation state vector is stored in the new operation state sample new_operation_state_memory, the new state vectors of all available AGVs are stored in the new AGV state sample new_AGV_state_memory, and the reward value obtained by the AGV agent is stored in the reward sample AA_reward_memory.

[0065] S3: Determine whether the matching process is complete. If so, iteratively train the multilayer perceptron network of the machine agent and AGV agent to a preset number of times, and update the network parameters and target network; otherwise, continue to select a verification example to complete the matching process.

[0066] Determine whether the matching processes between the machine and the workpiece in the machine intelligence agent and between the AGV and the process in the AGV intelligence agent have been completed. If so, train the multilayer perceptron network in the machine intelligence agent and the AGV intelligence agent based on the sample playback set, and update its parameters and target network; otherwise, continue to select validation examples to complete the matching processes between the machine intelligence agent and the AGV intelligence agent.

[0067] The process of training and updating the parameters of the multilayer perceptron network in the machine agent and AGV agent based on the sample replay set is as follows:

[0068] A minibatch of samples of size minibatch_size is randomly drawn from the original job state sample old_job_state_memory, the new job state sample new_job_state_memory, the original machine state sample old_machine_state_memory, the new machine state sample new_machine_state_memory, the action sample MA_action_memory, and the reward sample MA_reward_memory.

[0069] The Adam optimizer is used to update the machine agent's multilayer perceptron network based on the extracted samples, and the Adam optimizer toolkit is invoked. The parameters.

[0070] A minibatch of samples with a size of minibatch_size is randomly selected from the original operation state sample old_operation_state_memory, the new operation state sample new_operation_state_memory, the original AGV state sample old_AGV_state_memory, the new AGV state sample new_AGV_state_memory, the action sample AA_action_memory, and the reward sample AA_reward_memory.

[0071] The Adam optimizer is used to update the AGV agent's multilayer perceptron network based on the extracted samples, and the Adam optimizer toolkit is invoked. The parameters.

[0072] The algorithm determines whether the number of iterations for training the multilayer perceptron network is preset. If so, it updates the target network in both the machine agent and the AGV agent; otherwise, it iteratively selects training examples and reads the information. In this embodiment, the preset number of iterations is set to a multiple of 10. This application does not impose any restrictions on the setting of the preset number of iterations and allows for selection based on actual circumstances.

[0073] Specifically, the process of updating the target network in the machine agent and the AGV agent includes: updating the target network of the machine agent to... Update the target network of the AGV agent to .

[0074] S4: Verify the scheduling performance of the machine agent and AGV agent, extract policy features from the sample replay set and calculate expert expectation and policy expectation, update the reward function weight vector; determine whether the number of inverse reinforcement learning iterations meets the preset termination condition. If so, calculate the final scheduling scheme based on the trained machine agent and AGV agent; otherwise, continue training the agent and AGV agent until the preset termination condition is met.

[0075] The scheduling performance of the machine agent and AGV agent was verified on all verification examples. The specific implementation process includes:

[0076] Select a distributed hybrid flow shop scheduling verification case that considers transportation resources from all verification cases and read its information; input the current machine state and workpiece state into the machine agent, select machine-workpiece pairing based on the machine agent's output, input the current AGV state and process state into the AGV agent, select AGV-process pairing based on the AGV agent's output; if all matched processes are completed, calculate the maximum completion time and total energy consumption of the scheduling scheme, and determine whether all verification cases have been solved. If so, calculate and store the current agent, and solve all verification cases to obtain the average value of the optimization objective; otherwise, continue to select verification cases from all verification cases to complete the matching processes until all cases are matched.

[0077] Furthermore, it is determined whether the number of iterations of the inverse reinforcement learning training meets the preset termination conditions of the training parameters, namely the number of inverse reinforcement learning iterations IRL_Episodes and the number of network training generations DQN_Episodes. If so, policy features are obtained from the sample replay set; otherwise, the process returns to continue matching the machine agent with the AGV agent.

[0078] Specifically, the process of obtaining strategy features from the sample replay set includes: arbitrarily selecting a set of samples from the sample replay set; for this set of samples, extracting and storing the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece. Machine policy feature vector at time step For this set of samples, extract and store the mean absolute deviation of the current AGV load, the idle rate of the selected AGV, the no-load rate of the selected AGV, and the waiting time of the current workpiece. AGV strategy feature vector at time step .

[0079] After obtaining policy features from the sample replay set, expert expectations and policy expectations are calculated based on these features. The reward function weight vector is then updated according to these expectations. Expert expectations include those assigned by the machine and those assigned by the AGV, while policy expectations include those assigned by the machine and those assigned by the AGV.

[0080] The formula for calculating expert expectations in machine allocation is:

[0081] ;

[0082] In the formula, Expert expectations assigned to the machine for Machine expert feature vector at time step (i.e., time step). This represents the total number of decision points for the expert scheduling algorithm.

[0083] The formula for calculating the expert expectation of AGV allocation is as follows:

[0084] ;

[0085] In the formula, Expert expectations for AGV allocation for AGV expert feature vector at time step 1. This represents the total number of decision points for the expert scheduling algorithm.

[0086] The formula for the expected value of the machine allocation strategy is:

[0087] ;

[0088] In the formula, The expected policy to be assigned to the machine. for The machine policy feature vector at time step, The total number of decision points for solving the scheduling scheme using machine intelligence agents and AGV intelligence agents.

[0089] The formula for calculating the expected value of AGV allocation strategy is:

[0090] ;

[0091] In the formula, The expected strategy to be assigned to the AGV for AGV strategy feature vector at time step 1. The total number of decision points for solving the scheduling scheme using machine intelligence agents and AGV intelligence agents.

[0092] According to the formula Update the reward function weight vector of the machine agent;

[0093] According to the formula Update the reward function weight vector of the AGV agent.

[0094] Finally, determine whether the number of inverse reinforcement learning iterations meets the termination condition given by the training parameters. If so, use the trained machine agent and AGV agent to solve the distributed hybrid flow shop scheduling problem considering transportation resources and output the scheduling scheme; otherwise, continue training the agent and AGV agent until the preset termination condition is met.

[0095] Specific implementation example: comparative experiment.

[0096] To verify the feasibility of the distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources, this application trains the built model on training example sets of 9 different production scales and tests the trained model on validation example sets of 9 different production scales.

[0097] The multi-agent deep reinforcement learning model constructed in this application obtains the average maximum completion time and total energy consumption by solving nine validation examples with different production scales. The curves showing the changes with the number of training iterations are as follows: Figure 3-4 As shown in the curve trend, the proposed model achieves a smaller objective function value and more convergence as the number of training iterations increases. This demonstrates that the model scheduling performance improves with each training iteration.

[0098] To verify the performance of the distributed hybrid flow shop scheduling method based on multi-agent deep reinforcement learning, the trained model was compared with the improved Deep Q-Network (IDQN) on nine test cases of different production scales. To reduce the randomness of the experimental results, each algorithm was run 10 times on each test case, and the average value was taken as its result.

[0099] The maximum completion time and average total energy consumption of the proposed model and the comparative algorithm in nine test cases of different production scales are shown in Table 1.

[0100] Table 1: Comparison of Maximum Completion Time and Total Energy Consumption under Different Production Scales in this Application at IDQN

[0101]

[0102] As shown in Table 1, compared with the IDQN algorithm, this application achieves smaller maximum completion time and total energy consumption at various production scales, with better scheduling results, stronger optimization ability, and better overall scheduling performance and result stability.

[0103] In summary, the distributed hybrid assembly line scheduling method based on inverse reinforcement learning deep Q-networks that takes into account transportation resources proposed in this application can effectively shorten the construction period and ensure production efficiency in a distributed hybrid assembly line production mode.

[0104] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0105] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-networks, considering transportation resources, characterized in that, Includes the following steps: Initialize the machine agent and AGV agent, build a multilayer perceptron network and a target network, initialize the reward function weight vector and sample playback set, solve all the verification cases, select a certain verification case, complete the matching process through the machine agent and AGV agent, and update the sample playback set; Determine whether the matching process is complete. If so, iteratively train the multilayer perceptron networks of the machine agent and the AGV agent to a preset number of times, and update the network parameters and the target network; otherwise, continue to complete the matching process. Verify the scheduling performance of the machine agent and AGV agent, extract policy features from the sample replay set and calculate expert expectation and policy expectation, update the reward function weight vector; determine whether the number of inverse reinforcement learning iterations meets the preset termination condition, if so, calculate the final scheduling scheme based on the trained machine agent and AGV agent; Otherwise, continue training the machine agent and AGV agent until the preset termination condition is met; The process of extracting strategy features from the sample replay set includes: randomly selecting a set of samples from the sample replay set, and extracting the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece for each set of samples to form machine strategy features. The average absolute deviation of the current load of each AGV, the idle rate of the selected AGV, the idle rate of the selected AGV, and the waiting time of the current workpiece are extracted to form the AGV strategy features; the machine strategy features and the AGV strategy features are integrated to obtain the strategy features. The process of solving all verification cases includes: using an expert scheduling algorithm to solve all verification cases; at the decision time point for selecting processing machines and transportation equipment for each workpiece, extracting the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece and storing them in the machine expert feature vector. At the decision point when selecting processing machines and transportation equipment for each workpiece, the average absolute deviation of the load of each AGV, the idle rate of the selected AGV, the no-load rate of the selected AGV, and the waiting time of the current workpiece are extracted and stored in the AGV expert feature vector.

2. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 1, characterized in that, The process of calculating expert expectations and strategy expectations includes: averaging the machine expert feature vectors at all decision time points of the expert scheduling algorithm to obtain the expert expectations assigned by the machine; averaging the AGV expert feature vectors at all decision time points of the expert scheduling algorithm to obtain the expert expectations assigned by the AGV; and integrating the expert expectations assigned by the machine and the expert expectations assigned by the AGV to obtain the expert expectations. The average value of the machine strategy characteristics at all decision time points of the expert scheduling algorithm is calculated to obtain the expected strategy of machine allocation; the average value of the AGV strategy characteristics at all decision time points of the expert scheduling algorithm is calculated to obtain the expected strategy of AGV allocation; the expected strategy of machine allocation and the expected strategy of AGV allocation are integrated to obtain the expected strategy.

3. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 2, characterized in that, The process of updating the reward function weight vector includes: The reward function weight vector of the machine agent is updated based on the difference between the expert expectation assigned by the machine and the policy expectation assigned by the machine, combined with the reward function learning rate. The reward function weight vector of the AGV agent is updated based on the difference between the expert expectation and the policy expectation of the AGV allocation, combined with the reward function learning rate.

4. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 1, characterized in that, The process of iteratively training the multilayer perceptron networks of the machine agent and the AGV agent to a preset number of times, and updating the network parameters and the target network, includes: A small batch of samples of the size of the training batch is randomly selected from the sample set of the machine agent, and the parameters of the multilayer perceptron network of the machine agent are updated using the Adam optimizer. A small batch of samples of the size of the training batch is randomly selected from the sample set of the AGV agent, and the parameters of the multilayer perceptron network of the AGV agent are updated using the Adam optimizer. When the training iteration number of the multilayer perceptron network is a preset number, the parameters of the machine agent multilayer perceptron network are copied to the target network of the machine agent, and the parameters of the AGV agent multilayer perceptron network are copied to the target network of the AGV agent.

5. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 2, characterized in that, The process of initializing the sample playback set includes: Initialize the sample playback set of the machine intelligence agent, including original workpiece state samples, new workpiece state samples, original machine state samples, new machine state samples, machine action samples, and machine reward samples; Initialize the sample playback set of the AGV agent, including original process state samples, new process state samples, original AGV state samples, new AGV state samples, AGV action samples, and AGV reward samples.

6. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 5, characterized in that, The process of completing the matching procedure through the machine intelligence agent includes: Extract the workpiece state vector of the current workpiece and the machine state vector of each available machine, merge them and input them into the multilayer perceptron network of the machine intelligence agent to obtain the Q value of each workpiece-machine pairing, and select the machine with the largest Q value as the processing machine for the workpiece. Extract the average absolute deviation of the current machine load, the average absolute deviation of the current machine energy consumption, the idle rate of the selected machine, and the waiting time of the current workpiece and store them in the machine strategy feature vector; Based on the reward function weight vector of the machine agent, the weighted sum of the machine policy feature vectors is calculated as the reward value of the machine agent; The original workpiece state vector, the original state vectors of all available machines, the selected machine number, the new workpiece state vector, the new state vectors of all available machines, and the machine reward samples are stored in the corresponding sample playback sets.

7. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 5, characterized in that, The process of completing the matching procedure through the AGV intelligent agent includes: Extract the process state vector of the current process and the AGV state vector of each available AGV, merge them and input them into the multilayer sensor network of the AGV agent to obtain the Q value of each process-AGV pairing, and select the AGV with the largest Q value as the transportation equipment for that process. Extract the average absolute deviation of the current load of each AGV, the idle rate of the selected AGV, the idle rate of the selected AGV, and the waiting time of the current workpiece and store them in the AGV strategy feature vector. Based on the reward function weight vector of the AGV agent, the weighted sum of the AGV strategy feature vectors is calculated as the reward value of the AGV agent. The original process state vector, the original state vectors of all available AGVs, the selected AGV number, the new process state vector, the new state vectors of all available AGVs, and the reward value obtained by the AGV agent are stored in the corresponding sample playback set.

8. The distributed hybrid flow shop scheduling method based on inverse reinforcement learning deep Q-network considering transportation resources as described in claim 5, characterized in that, Initialize the machine agent and AGV agent, including initializing the optimizer of the machine agent and AGV agent and configuring the training parameters; The configured training parameters include the number of training generations for the deep Q-network and the number of iterations for inverse reinforcement learning.

Citation Information

Patent Citations

  • A distributed hybrid flow shop scheduling method based on multi-agent deep reinforcement learning

    CN117891220B

  • Distributed hybrid flow shop scheduling method based on multi-agent deep reinforcement learning

    CN117891220A

  • Motion planning method based on inverse reinforcement learning

    CN118504808A