Reinforcement learning agent interaction strategy network training method suitable for job shop scheduling, program product and system

Through the reinforcement learning agent interaction strategy network training method, the workshop scheduling decision-making is optimized, which solves the efficiency and quality problems of traditional methods under real-time and flexible requirements, and achieves an efficient scheduling solution suitable for a variety of workshop sizes.

CN118657337APending Publication Date: 2024-09-17HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410861456.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

When facing real-time and flexible requirements, traditional workshop scheduling methods are difficult to effectively optimize the scheduling plan, resulting in slow solution speed and low quality, and cannot meet the improvement of real-time requirements of modern production systems.

Method used

The reinforcement learning agent interaction strategy network training method is adopted. By observing the machine status and buffer information, the discrete or continuous action space algorithm is used to select the workpiece for processing. It is combined with deep reinforcement learning to optimize the scheduling decision, and updates the strategy network through the reward mechanism to improve The quality and efficiency of scheduling solutions.

Benefits of technology

It significantly shortens the time to obtain satisfactory solutions, improves the quality of scheduling plans, enhances production stability and product quality, reduces manufacturing cycles, brings economic benefits, and is suitable for workshop problems of various sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657337A
    Figure CN118657337A
Patent Text Reader

Abstract

The invention belongs to the field of job shop scheduling, and discloses a reinforcement learning agent interaction strategy network training method, program product and system suitable for job shop scheduling. According to the method, a deep reinforcement learning method is applied to solve the workshop scheduling problem, and aiming at the current situation that existing reinforcement learning environment design research is very insufficient, two continuous and discrete action modes are provided, the method is adaptive to almost all classic reinforcement learning algorithms, and various tested algorithms can achieve the effects of short calculation time, high efficiency and the like. And the production stability and the product quality are further improved, the product manufacturing period is shortened and the like, so that considerable economic benefits are brought. By using the method to construct a reinforcement learning environment and an interaction strategy, a job shop scheduling scheme generation model with high reusability, high efficiency and high quality can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of workshop scheduling, and relates to a reinforcement learning environment design method applied to a job shop, and more specifically, to a reinforcement learning agent interaction strategy network training method, program product and system suitable for job shop scheduling. Background Art

[0002] With the development of the Internet of Things, cloud computing and artificial intelligence, today's manufacturing industry is facing a surge in personalized needs. This intelligent trend brings new opportunities for the transformation and upgrading of the manufacturing industry. The job shop scheduling problem is one of the most classic problem models in the manufacturing industry. It considers a model abstracted from the modern production system and well describes scenarios with diverse needs, such as semiconductor manufacturing workshops, painting workshops, machine tool workshops, etc.

[0003] In the past, evolutionary algorithms such as genetic algorithms were often used to solve scheduling problems. The best solutions for almost all public data sets were obtained by metaheuristic algorithms or solvers. However, as modern production systems have increasingly high requirements for real-time scheduling solutions and production workshops are becoming more flexible, it will become more time-consuming for metaheuristic algorithms to obtain a good scheduling solution.

[0004] In practice, in order to meet the above requirements, factories generally choose to use traditional scheduling rules for scheduling. Many existing scheduling rules are usually based on actual production experience to quickly obtain a satisfactory solution. However, there is still a lot of room for optimization of scheduling rules. How to optimize the quality of the solution as much as possible while ensuring the speed of solution is an urgent problem to be solved in response to the increasing real-time requirements of traditional workshop scheduling. Summary of the invention

[0005] In response to the above defects or improvement needs of the prior art, the present invention provides a reinforcement learning agent interaction strategy network training method, program product and system suitable for job shop scheduling, with the aim of solving the technical problem of the ever-increasing real-time requirements of current traditional workshop scheduling.

[0006] To achieve the above object, according to one aspect of the present invention, a reinforcement learning agent interaction strategy network training method suitable for job shop scheduling is provided, comprising the following steps:

[0007] S1: Observe the processing state of each machine. Whenever a machine changes from the processing state to the idle state, a decision is made. The agent extracts the global information of production, its own state information, and the information of the workpiece in the buffer of the machine from the environment according to the current state. This information is used as the input of the agent's strategy network.

[0008] S2: Add the workpiece to the machine buffer and select a workpiece for processing; the processing algorithm is divided into discrete action space algorithm and continuous action space algorithm; according to the difference between discrete action space and continuous action space algorithms, different actions are output, and the weight of the workpiece to be processed is assigned to the corresponding action, and then the workpiece is selected for processing;

[0009] S3: Each time the machine completes a decision, it executes a state transition of the environment;

[0010] After selecting a workpiece to be processed, the time is moved forward to the time when the workpiece is completed. According to the idle time of each machine at this time, the machine with the smallest idle time is selected as the machine agent for the next decision, and the state in the production environment is simulated and updated at the new moment as the state input of the machine agent at the next decision moment;

[0011] S4: After the environment executes state transfer, it rewards the machine agent according to the current state after the transfer. The machine agent updates the policy network according to the policy network update method of the reinforcement learning algorithm adopted and the reward given by the environment, and uses the updated policy network to make decisions in the next decision;

[0012] S5: repeat steps S1-S4 until all processing machines are in an idle state and there are no workpieces to be processed in the buffer, completing one training of the strategy network;

[0013] S6: Reset the workshop scheduling environment and repeat steps S1-S5 until the results converge or the predetermined number of iterations is reached to obtain a trained policy network, which is used to obtain a workshop scheduling solution based on the environment state input.

[0014] Furthermore, in step S1, only information related to the current decision is observed and extracted, and state information irrelevant to the current decision is eliminated;

[0015] After the current decision is executed and before the next decision begins, the state space is updated, and the machine agent observes and extracts from the updated state space again to obtain information for the next decision.

[0016] Furthermore, before observation and decision-making, a unique machine is determined to make a decision at the next decision moment. The characteristics of this machine include: the earliest release time among all machines. If multiple machines with the earliest release time have the same release time, then a unique machine is determined among the earliest released machines with the same release time.

[0017] Further, a feature extraction and normalization method for the observation space converts the dimensionally uncertain and scoped observation information into dimensionally determined and scoped state information suitable for input into a reinforcement learning policy network; the observation space is composed of the state information of the machine;

[0018] Among them, the feature extraction operation is to operate on the sequence data in the observation space. For the process processing time sequence of the workpiece and the remaining processing time sequence of the workpiece, the maximum value, minimum value and average value are used to convert the sequence information into value information for input;

[0019] Normalization is an operation performed on all state information. By limiting all states to a fixed interval, the differences between different problems are eliminated. The same state information can describe all job shop scheduling problems.

[0020] Furthermore, the observation space includes the following state information:

[0021] For the status of the entire production process during factory processing, the status characteristics are described as:

[0022] (15) The maximum completion time of production, makespan;

[0023] (16) Average utilization of all machines

[0024] (17) Standard deviation of all machine utilization

[0025] (18)Completion rate of all workpieces

[0026] (19) Completion rate of all processes

[0027] The state of the machine at the decision-making moment is described as follows:

[0028] (20) Current utilization of the machine

[0029] (21) Number of workpieces processed by the machine

[0030] (22) Completion time of the current process on the machine

[0031] For the state of the buffer when the machine selects a workpiece in the buffer, the state characteristics are described as

[0032] (23) The length of the machine buffer

[0033] (24) The shortest processing time for the next step in the machine buffer

[0034] (25) The longest processing time for the next step in the machine buffer

[0035] (26) Average processing time of the next process in the machine buffer

[0036] (27) The shortest remaining processing time in the machine buffer

[0037] (28) The longest remaining processing time in the machine buffer

[0038] Furthermore, for the discrete action space, at each decision moment, a scheduling rule is selected as the current decision basis according to the output of the policy network, and the workpiece with the highest priority under the current scheduling rule is processed first;

[0039] For the continuous action space, at each decision moment, the policy network outputs the weight of the scheduling rule, combines the priorities of all workpieces under all scheduling rules according to the weights, and obtains the weighted priority of the workpiece, from which the workpiece with the highest priority is selected to be processed first.

[0040] Furthermore, in the discrete action space and the continuous action space, the workpieces waiting to be selected include: workpieces that have completed the previous process and are waiting to be processed by the current machine, and workpieces that have not completed the previous process but are being processed by the current machine in the next process. At the same time, the completed and waiting workpieces have a higher weight than the unfinished workpieces.

[0041] Furthermore, after the workpiece selection is completed, the processing history of the machine is searched forward. If there is a period of idle time, the duration is longer than the processing time of the currently selected process, and the start of the idle time is later than the completion time of the previous process of the workpiece, then the workpiece is arranged to be processed during this idle time.

[0042] According to another aspect of the present invention, there is provided a reinforcement learning agent interaction program product suitable for job shop scheduling, comprising a policy network trained using the reinforcement learning agent interaction policy network training method as described in any of the preceding items.

[0043] According to another aspect of the present invention, a reinforcement learning agent interaction system suitable for job shop scheduling is provided, including the reinforcement learning agent interaction program product suitable for job shop scheduling as described above.

[0044] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0045] (1) The present invention provides a reinforcement learning environment design method for a job shop. By providing two action modes, continuous and discrete, the method is adaptable to almost all classic reinforcement learning algorithms. A scheduling solution with short computation time and high quality can be obtained for the six algorithms tested.

[0046] (2) The present invention applies deep reinforcement learning methods to solve the workshop scheduling problem. In view of the fact that existing research on reinforcement learning environment design is very insufficient, a reinforcement learning interactive environment design method is proposed. By using the environment design method proposed by the present invention, the time to obtain a satisfactory solution can be effectively shortened, and the quality of the scheduling solution obtained by the traditional scheduling method can be significantly improved. This can improve production stability and product quality, reduce product manufacturing cycle, etc., thereby bringing considerable economic benefits.

[0047] (3) The present invention sets and normalizes the state, so that the method can be applied to standard workshop problems of all sizes. In other words, regardless of the process planning and scale of the workshop, the method provided by the present invention is applicable. At the same time, the method proposed by the present invention does not need to be repeatedly trained in different environments. A model trained in one environment can solve problems in other environments well. It is more universal and more convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a schematic diagram of a method for job shop scheduling constructed according to a preferred embodiment of the present invention;

[0049] Figure 2 It is a schematic diagram of the process flow of deep reinforcement learning execution constructed in the preferred embodiment of the present invention;

[0050] Figure 3 It is a schematic diagram of the action execution flow of the discrete action space algorithm constructed in the preferred embodiment of the present invention;

[0051] Figure 4 It is a schematic diagram of the action execution flow of the continuous action space algorithm constructed in the preferred embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0053] The preferred embodiment of the present invention integrates deep reinforcement learning and decentralized partially observable Markov decision process, and the steps of the job shop scheduling method in the interactive environment established thereby are as follows:

[0054] In this embodiment, a multi-agent system for job shop scheduling based on a decentralized partially observable Markov decision process is established, and an interaction strategy between the multi-agent and the environment is designed;

[0055] In this embodiment, each machine in the production workshop is used as an intelligent agent. Each intelligent agent observes and makes decisions according to its own conditions to interact with the environment, which can effectively eliminate the interference of irrelevant information in the environment and make the decision more focused on the important information of the production system and the decision-making intelligent agent. The traditional multi-agent architecture method either uses a single intelligent agent to coordinate all decisions, or uses completely decentralized multiple intelligent agents to make independent decisions and evaluate the joint effect of the decisions; the former can only be evaluated based on the global production information, and cannot accurately grasp the information related to the current decision at each decision; the latter is difficult to apply to actual production scenarios because the system architecture is too large and requires a lot of computing power support. The multi-agent architecture in the present invention uses a centralized training distributed execution architecture. When only one policy network (MLP) is used, decisions are made by adjusting the observation range of the intelligent agent in the environment each time a decision is made, and effective information is screened out from the complex environmental information, and the cost of training is reduced.

[0056] Based on the above design concept, the present invention provides a preferred interaction strategy between multiple agents and the environment, that is, the specific steps of the agent observing and interacting in the environment are described as follows:

[0057] S1, monitors (i.e. observes) the processing state of each machine (i.e. each agent). Whenever a machine changes from a processing state to an idle state, a decision is made. The agent extracts global information about production, its own state information, and information about workpieces in the buffer of the machine to which it belongs from the environment based on its current state. This information is used as the input of the agent strategy network.

[0058] S2 adds the workpiece to the machine buffer and selects a workpiece for processing; the processing algorithms are divided into discrete action space algorithms and continuous action space algorithms. The discrete action space algorithms are as follows: Figure 3 , algorithms for continuous action spaces such as Figure 4 ; According to the differences between discrete action space and continuous action space algorithms, different actions are output, and the workpiece to be processed is selected according to the weight assigned to the workpiece by the action.

[0059] S3: Each time the machine completes a decision, it executes a state transition of the environment. After selecting a workpiece to be processed, it moves the time to the time when the workpiece is completed. According to the idle time of each machine at this time, it selects the machine with the smallest idle time as the machine agent for the next decision, and simulates and updates the state in the production environment at the new moment as the state input of the machine agent at the next decision moment.

[0060] S4, after the environment executes the state transfer, it gives the machine agent a reward according to the current state after the transfer. The machine agent updates the policy network according to the policy network update method of the reinforcement learning algorithm adopted and the reward given by the environment, and uses the updated policy network to make decisions in the next decision;

[0061] S5 repeats steps S1-S4 until all processing machines are in an idle state and there are no workpieces to be processed in the buffer, completing one training of the strategy network;

[0062] The environment constructed by the present invention is suitable for a variety of different reinforcement learning algorithms, such as the five algorithms in the example in Table 1.

[0063] S6, reset the workshop scheduling environment, repeat steps S1-S5 until the result converges or reaches a predetermined number of iterations, and obtain a trained policy network, which is used to obtain a workshop scheduling solution based on the environment state input.

[0064] Furthermore, in step S2, an action space and an execution process in the interactive environment of job shop scheduling are established; based on the interaction mode between the machine agent and the environment described in the present invention, the execution processes of the actions are designed for the two space definitions of discrete action space and continuous action space existing in the reinforcement learning algorithm, so as to ensure that different reinforcement learning algorithms can obtain the final selected workpiece to be processed according to the output of the policy network in the environment designed by the present invention;

[0065] When the processing machine is at a decision-making moment and needs to select a workpiece from the buffer for processing, the usual practice is to scan the buffer of the current machine, select a workpiece and process it. However, this method limits the decision-making scope of the agent. According to the workpiece selection method designed by the present invention, the workpieces visible to the machine include not only the workpieces currently in the buffer, but also the workpieces that are in the processing state and the next process is being processed on the current machine. In this way, when executing actions according to the output of the agent strategy network, the range of workpieces that the agent can select will be greatly increased, which is conducive to the advantages of the reinforcement learning algorithm from the perspective of long-term training;

[0066] Preferably, step S2 further includes:

[0067] S21, when the reinforcement learning algorithm used has a discrete action space, the workpieces in the buffer and the workpieces about to enter the buffer are spliced ​​into the candidate set in the manner described above; for the scheduling rule set A = {FIFO, FILO, SPT, LPT, MOPNR, LOPNR, MWKR, LWKR, Random}, according to the output value of the reinforcement learning algorithm with a discrete action space, one of the scheduling rules is selected, and all workpieces are assigned priorities from n to 1 according to the priority from high to low under the currently selected rule; for all workpieces to be processed, if the previous process has not been completed, their priorities are discounted by multiplying them by a discount factor, and the workpiece with the highest priority is selected as the next workpiece to be processed;

[0068] Among them, FIFO, First In First Out, gives priority to processing the workpiece that enters the buffer first;

[0069] FILO, First In Last Out, gives priority to processing the workpiece that enters the buffer last;

[0070] SPT, Shortest Processing Time, gives priority to processing the workpiece with the shortest processing time for the next process;

[0071] LPT, Longest Processing Time, gives priority to processing the workpiece that takes the longest time in the next process;

[0072] MOPNR, Most Operations Remain, gives priority to processing the workpiece with the most remaining operations;

[0073] LOPNR, Least Operations Remain, gives priority to processing the workpiece with the least remaining operations;

[0074] MWKR, Most Work Remain, gives priority to processing the workpiece with the longest remaining processing time;

[0075] LWKR, Least Work Remain, gives priority to processing the workpiece with the shortest remaining processing time;

[0076] Random, randomly select workpieces for processing;

[0077] S22, when the algorithm used has a continuous action space, for the spliced ​​candidate set, the scheduling rule set A = {FIFO, SPT, MOPNR, MWKR, Random} is used to limit the output range of the policy network to [-1, 1], and all rules are expanded in the opposite direction; according to the output vector w of the reinforcement learning algorithm with a continuous action space, for each scheduling rule, all workpieces are given a priority from n to 1 according to the priority from high to low under the rule, and for the workpiece that has not been processed in the previous process, its priority is discounted by multiplying a discount factor, and the result is spliced ​​into the priority matrix score, indicating that the final priority vector of all workpieces is calculated as score = w score, and the workpiece with the highest priority is selected as the next workpiece to be processed;

[0078] S23, before selecting a workpiece to be executed according to the action taken, traverse the processing history of the workpieces that have been scheduled on the machine to find out whether there is a gap that meets the processing sequence constraint and is longer than the length of the current processing step to be processed. If there is, insert it (the current workpiece to be processed) into the gap to optimize the existing scheduling sequence; if not, directly place the current workpiece to be processed at the end of the processing sequence of the machine agent;

[0079] Further, in step S1, an observation space in the job shop scheduling interaction environment is established as data input each time the agent makes an observation in the environment;

[0080] Preferably, the observation space in this embodiment includes the following state information:

[0081] For the status of the entire production process during factory processing, the status characteristics are described as:

[0082] (1) The maximum completion time of production, makespan;

[0083] (2) Average utilization of all machines

[0084] (3) Standard deviation of all machine utilization

[0085] (4) Completion rate of all workpieces

[0086] (5) Completion rate of all processes

[0087] The state of the machine at the decision-making moment is described as follows:

[0088] (6) Current utilization of the machine

[0089] (7) Number of workpieces processed by the machine

[0090] (8) Completion time of the current process on the machine

[0091] For the state of the buffer when the machine selects a workpiece in the buffer, the state characteristics are described as

[0092] (9) The length of the machine buffer

[0093] (10) The shortest processing time for the next step in the machine buffer

[0094] (11) The longest processing time for the next step in the machine buffer

[0095] (12) Average processing time of the next process in the machine buffer

[0096] (13) The shortest remaining processing time in the machine buffer

[0097] (14) The longest remaining processing time in the machine buffer

[0098] All of the above state features together constitute the observation space of the intelligent agent, which serves as the information input before the intelligent agent makes a decision through the policy network; this information is directly input into the policy network to obtain the corresponding action output.

[0099] Preferably, during the training process of step S4, an advantage function is used instead of an action-value function as an update method of the critic network to obtain a more stable learning effect. The advantage function is calculated in the following way:

[0100] A(s,a)=Q(s,a)-V(s)=r+γV(s′)-V(s)

[0101] Preferably, during the training process of step S4, when training is performed in a different strategy manner, an ∈ greedy algorithm is used for strategy exploration, which ensures that there are sufficient and diverse experiences in the experience replay buffer for the agent to learn.

[0102] Preferably, during the training process of step S4, when the near-segment policy optimization algorithm is used for learning, the target loss is expressed as follows using the clipping together with the value loss function and the entropy reward function:

[0103]

[0104] Preferably, in step S4 of this embodiment, a reward method in the job shop scheduling interactive environment is established; in order to combat the situation where the policy network is difficult to converge due to sparse rewards, a reward method that is sensitive to each decision step is provided, and is calculated based on the maximum completion time change of each decision:

[0105] R(s,a)=c(s)-c(s′)

[0106] s and s′ represent the current state and the next state of the environment, respectively. a is the action performed by the agent after the action space processing designed by the present invention. c(s) and c(s′) represent the maximum completion time of the environment in state s and S′, respectively. According to the reward given by the environment, the agent updates the policy network. Taking the PPO-clip algorithm as an example, the agent policy network is updated by calculating the loss of the current network and back propagating. The optimization objective is defined as:

[0107]

[0108] in, represents the agent strategy network after iterating k times, s represents the current environment state, and v represents the value of the current state. Indicated in strategy The average value of the current state under the current strategy. The action selected according to the current environment state s is: Indicates that in the current strategy The total value of all possible actions based on the current environment state s, Indicates that in the current strategy The average value of all possible actions taken according to the current environment state s, π θ (a|s) means that in the target strategy π θ The action selected according to the current environment state s is: Indicates that in the current strategy The action selected according to the current environment state s is: Indicated in strategy The advantage function of the next state-action pair, ∈ represents the cutoff range for parameter update.

[0109] The loss function is defined as:

[0110]

[0111] This indicates that a clipped objective function is used to avoid excessive policy updates:

[0112] L CLIP (θ) = E t[min(r t (θ)A t ,clip(r t (θ),1-∈,1+∈)A t )]

[0113] Where E t represents the average value at time t, r t (θ) represents the target network strategy π at time t θ With the current policy network The ratio of clip(r t (θ),1-∈,1+∈) represents r t The range of (θ) is limited to [1-∈, 1+∈], A t is the advantage function defined above.

[0114] is the value loss function, which is used to minimize the gap between the value function and the target value, usually expressed as mean square error:

[0115]

[0116] Where E t represents the average value at time t, V θ (S t ) indicates that in state S t The value function under parameter θ, V t target Represents the value function of the target network at the same time.

[0117] S[π θ ](s t ) is the entropy regularization term, which is used to encourage the exploration of the strategy:

[0118]

[0119] where π θ (a|s t ) indicates that in the target strategy π θ The action selected according to the current environment state s, logπ θ (a|s t ) indicates that in the target strategy π θ The log-likelihood of selecting action a.

[0120] On the basis of the above models and algorithms, in order to verify the practical application effect of the present invention, some Taillard instances were selected in the standard test examples of the job shop for simulation testing and compared with the traditional scheduling rules. Among them, 5 reinforcement learning algorithms were all trained using the environment designed by the present invention.

[0121] Table 1 Comparison results of examples

[0122]

[0123] It can be seen from the table that the environment designed by the present invention enables the reinforcement learning agent to obtain results that are comprehensively superior to traditional scheduling rules after learning, and the calculation time is close to that of the scheduling rules, which is fully applicable to large-scale production scheduling.

[0124] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A reinforcement learning agent interaction strategy network training method for job shop scheduling, It is characterized in that The steps include: S1: Observe the processing state of each machine. Whenever a machine changes from the processing state to the idle state, a decision is made. The agent extracts the global information of production, its own state information, and the information of the workpiece in the buffer of the machine from the environment according to the current state. This information is used as the input of the agent's strategy network. S2: Add the workpiece to the machine buffer and select a workpiece for processing; the processing algorithm is divided into discrete action space algorithm and continuous action space algorithm; according to the difference between discrete action space and continuous action space algorithms, different actions are output, and the weight of the workpiece to be processed is assigned to the corresponding action, and then the workpiece is selected for processing; S3: Each time the machine completes a decision, it executes a state transition of the environment; After selecting a workpiece to be processed, the time is moved forward to the time when the workpiece is completed. According to the idle time of each machine at this time, the machine with the smallest idle time is selected as the machine agent for the next decision, and the state in the production environment is simulated and updated at the new moment as the state input of the machine agent at the next decision moment; S4: After the environment executes state transfer, it gives the machine agent a reward based on the current state after the transfer. The machine agent updates the policy network based on the policy network update method of the reinforcement learning algorithm adopted and the reward given by the environment, and uses the updated policy network to make decisions in the next decision; S5: repeat steps S1-S4 until all processing machines are in an idle state and there are no workpieces to be processed in the buffer, completing one training of the strategy network; S6: Reset the workshop scheduling environment and repeat steps S1-S5 until the results converge or the predetermined number of iterations is reached to obtain a trained policy network, which is used to obtain a workshop scheduling solution based on the environment state input.

2. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 1, It is characterized in that In step S1, only the information related to the current decision is observed and extracted, and the state information irrelevant to the current decision is eliminated; After the current decision is executed and before the next decision begins, the state space is updated, and the machine agent observes and extracts from the updated state space again to obtain information for the next decision.

3. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as described in claim 1 or 2, It is characterized in that Before observation and decision-making, a unique machine is determined to make the decision at the next decision moment. The characteristics of this machine include: the earliest release time among all machines. If multiple machines with the earliest release time have the same release time, then a unique machine is determined among the earliest machines with the same release time.

4. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 1 or 2, It is characterized in that A method for extracting and normalizing features of an observation space, characterized in that observation information of uncertain dimension and uncertain range is converted into state information of certain dimension and certain range suitable for input into a reinforcement learning policy network; the observation space is composed of state information of a machine; Among them, the feature extraction operation is to operate on the sequence data in the observation space. For the process processing time sequence of the workpiece and the remaining processing time sequence of the workpiece, the maximum value, minimum value and average value are used to convert the sequence information into value information for input; Normalization is an operation performed on all state information. By limiting all states to a fixed interval, the differences between different problems are eliminated. The same state information can describe all job shop scheduling problems.

5. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 4, It is characterized in that The observation space includes the following state information: For the status of the entire production process during factory processing, the status characteristics are described as: (1) The maximum completion time of production, makespan; (2) Average utilization of all machines (3) Standard deviation of all machine utilization (4) Completion rate of all workpieces (5) Completion rate of all processes The state of the machine at the decision-making moment is described as follows: (6) Current utilization of the machine (7) Number of workpieces processed by the machine (8) Completion time of the current process on the machine For the state of the buffer when the machine selects a workpiece in the buffer, the state characteristics are described as (9) Length of the machine buffer (10) The shortest processing time for the next step in the machine buffer (11) The longest processing time for the next step in the machine buffer (12) Average processing time of the next process in the machine buffer (13) The shortest remaining processing time in the machine buffer (14) The longest remaining processing time in the machine buffer 6. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 1 or 2, It is characterized in that For discrete action space, at each decision moment, a scheduling rule is selected as the current decision basis according to the output of the policy network, and the workpiece with the highest priority under the current scheduling rule is processed first; For the continuous action space, at each decision moment, the policy network outputs the weight of the scheduling rule, combines the priorities of all workpieces under all scheduling rules according to the weights, and obtains the weighted priority of the workpiece, from which the workpiece with the highest priority is selected to be processed first.

7. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 6, It is characterized in that In the discrete action space and the continuous action space, the workpieces waiting to be selected include: workpieces that have completed the previous process and are waiting to be processed by the current machine, and workpieces that have not completed the previous process but are being processed by the current machine in the next process. At the same time, the completed and waiting workpieces have a higher weight than the unfinished workpieces.

8. A reinforcement learning agent interaction strategy network training method suitable for job shop scheduling as claimed in claim 6, It is characterized in that After the workpiece selection is completed, the processing history of the machine is searched forward. If there is a period of idle time that is longer than the processing time of the currently selected process, and the start of the idle time is later than the completion time of the previous process of the workpiece, the workpiece will be arranged for processing during this idle time.

9. A reinforcement learning agent interactive program product suitable for job shop scheduling, It is characterized in that It includes a strategy network trained by the reinforcement learning agent interaction strategy network training method described in any one of claims 1 to 8.

10. A reinforcement learning agent interaction system for job shop scheduling, It is characterized in that Including the reinforcement learning agent interactive program product suitable for job shop scheduling as described in claim 9.

Citation Information

Cited By

  • Flexible job shop scheduling method and system based on deep reinforcement learning and with transportation time

    CN119758906A

  • Flexible job shop scheduling method and system based on deep reinforcement learning with transportation time

    CN119758906B

  • Scheduling simulation method and device of processing equipment, computer readable storage medium, terminal and computer program product

    CN120630864A