Intelligent Scheduling Method for Paint Shop Based on Graph Neural Network

Through the reinforcement learning method based on graph neural network, the directed heterogeneous graph features of the paint workshop are extracted, which solves the complexity and migration problems of production scheduling in the paint workshop, achieves fast response and efficient scheduling performance, and is suitable for larger scales. and changing workshop environments.

CN117764360BActive Publication Date: 2024-10-15CNOOC INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311866569.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-10-15
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

The existing technology is difficult to quickly solve the optimal production schedule in the paint shop, especially when the processing sequence requirements in the paint shop are complex. The existing algorithm takes several hours or even longer to find a feasible solution, and the production parameters are Scheduling quality deteriorates when changes occur, and migration and adaptability are lacking.

Method used

Adopt a reinforcement learning method based on graph neural network, extract the features of directed heterogeneous graphs through graph attention network, use Q-Learning and softmax activation layer to implement policy learning, train a scheduling model that can respond in seconds, and pass The migration matrix maintains good solution performance across different workshops.

Benefits of technology

It realizes the scheduling solution with second-level response after the model training is completed. It does not rely on the professional understanding of production at all. It can handle larger-scale complex problems and maintain efficient scheduling performance when the number of machines and work orders changes. It has good migration and Resilience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117764360B_ABST
    Figure CN117764360B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a paint workshop intelligent scheduling method based on a graph neural network, comprising the following steps: step 1: when an action is completed or in the initial state, reinforcement learning takes action according to the current state and in combination with the trained strategy, step 2: the action assigns a work order that is currently not assigned to a machine to an idle machine, step 3: according to the migration matrix and the choice of action, the state is updated to the state after the action is executed, step 4: the reward of this action is determined according to the updated state, step 5: the probability distribution of each action in the strategy is corrected by increasing or decreasing the reward, and the strategy is learned by Q-Learning combined with a softmax activation layer, step 6: repeating steps 1 to 5 until all work orders are assigned to available machines. The above method can achieve better scheduling performance while maintaining high efficiency, and can be effectively extended to larger-scale problems not seen in training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an intelligent scheduling method for a paint shop based on a graph neural network. Background Art

[0002] Production scheduling is a major application scenario for the development of various precise algorithms and heuristic algorithms due to its wide business applications and high computational complexity. The intelligent scheduling of paint workshops is one of the most complex FJSP problems. Each work order that needs to be scheduled can be processed on multiple machines. At the same time, it also has special constraints on the paint, namely the processing order of colors. When two work orders are processed continuously on the same machine, the colors are often expected to be from light to dark, otherwise additional cleaning time is required, which makes the algorithm model more complex. In large-scale production workshops, it is difficult to obtain the optimal feasible solution within an effective time. The existing solutions are generally divided into precise algorithms represented by mixed integer programming, non-precise algorithms represented by meta-heuristic algorithms such as genetics, annealing, and ant colonies, and pure rule-based algorithms based on past historical experience.

[0003] Due to the complexity of the FJSP problem, especially in the paint workshop, it also involves the requirements of the processing sequence, which further increases the complexity of the problem. It often takes several hours or even more than a day to solve an acceptable solution. This is absolutely unacceptable in the workshop scheduling that often needs to dynamically adjust the plan. Although the meta-heuristic algorithm and the pure rule-based algorithm can meet the requirements in terms of time, the quality of the scheduling solution given is too dependent on past experience of the problem. When the production parameters of the workshop or the composition of the work order change, the quality of the solution will drop significantly, and it does not have the ability to migrate and adapt.

[0004] In view of this, it is necessary to design an intelligent scheduling method for paint workshops based on graph neural networks that can overcome the above-mentioned technical difficulties and effectively solve or alleviate the above-mentioned technical difficulties. Summary of the invention

[0005] The basic technical problem to be solved by the present invention is to provide a paint workshop intelligent scheduling method based on graph neural network, which can only have time-consuming considerations in the learning process. After the model training is completed, each solution process can respond quickly in seconds.

[0006] Furthermore, during the strategy training process, this method does not rely on any professional understanding of production. It can train a scheduling model through small batches of data to solve larger and more complex problems.

[0007] In addition, the reinforcement learning of this method uses graph neural networks to simulate the entire production process and successfully realizes the portability of the model. Since the graph neural network can classify each work order and extract the relationship between the work order and the machine in the production network, this enables the present invention to migrate to different workshops. Even if the number of machines and the number of work orders change, the model can still have good solving performance in the new workshop through the learned node classification and the relationship between nodes, thereby achieving better scheduling performance while maintaining high efficiency, and can be effectively extended to larger-scale problems not seen in training.

[0008] In order to solve the above problems, the present invention provides a paint shop intelligent scheduling method based on graph neural network, comprising the following steps:

[0009] Step 1: When an action is completed or in the initial state, reinforcement learning takes action based on the current state and the trained strategy;

[0010] Step 2: Action assigns a work order that is currently not assigned to a machine to an idle machine;

[0011] Step 3: Update the state to the state after the action is executed according to the transition matrix and the action selection;

[0012] Step 4: Determine the reward for this action based on the updated status;

[0013] Step 5: Modify the probability distribution of each action in the strategy by increasing or decreasing the reward, and learn the strategy through Q-Learning combined with the softmax activation layer;

[0014] Step 6: Repeat steps 1 to 5 until all work orders are assigned to available machines.

[0015] Specifically, the state is determined by a directed heterogeneous graph formed by information of all current work orders and machines, wherein the directed heterogeneous graph includes an arc, a work order node connected to one end of the arc, and a machine node connected to the end of the arc away from the work order node.

[0016] Preferably, in step one, before reinforcement learning takes action based on the current system state and strategy, features in the directed heterogeneous graph are extracted through a graph attention network, and graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning is converted into a fixed-dimensional characterization vector that can be used for reinforcement learning.

[0017] Specifically and preferably, the graph attention network extracts features in the directed heterogeneous graph, and converts the graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning into a fixed-dimensional feature vector that can be used for reinforcement learning, including the following steps:

[0018] a: Encode the features of each machine node and the features of the work order node into a one-dimensional vector v k and u i , the v k is the characteristic of the machine node, the u i is the feature of the work order node;

[0019] b: Use two linear transformations W M and W O To process the feature v of the machine node k and work order node u i Features;

[0020] c: Concatenate the features of the processed machine nodes and operation nodes and input them into a multi-layer perceptron to calculate the attention coefficient e of each operation node ik , the e ik is LeakyReLU(a T [W M v k ||W O u i ]);

[0021] d: Use the softmax function for all e ik Normalize and get the normalized attention coefficient α ik ;

[0022] e: Use the adjacency matrix to represent the overall properties of the graph;

[0023] f: According to the adjacency matrix, the features of the operation nodes are weighted and summed according to the attention coefficient, and the features of the machine node are added to obtain the feature vector v′ of the machine node combined with the adjacent work order nodes k , neural network construction for reinforcement learning.

[0024] Specifically, the

[0025] The σ is an activation function, and the activation function is a Sigmoid function or a ReLU function;

[0026] The α is the weight of the multi-layer perceptron;

[0027] The || is a vector concatenation operation.

[0028] Specifically, determining the reward for this action according to the updated status in step 4 includes the following steps:

[0029] a: After the action is executed, the model compares the previous and next states;

[0030] b: Calculate the reward through the reward formula and update it.

[0031] Specifically, the reward formula is r(s t ,a t ,s t+1 )=C max (s t +1)-C max (s t ) is used to calculate the time difference between the two states when they are finally completed.

[0032] More specifically, in the reward formula, C max is the time when the last process is completed, and C max Including processing time and changeover time, the s t is the state before the action, the s t+1 is the state after the action, the r(s t ,a t ,s t+1 ) is the difference between the time taken to complete the state before the action and the time taken to complete the state after the action. t For the current action.

[0033] Specifically, the strategy is the probability distribution of selecting each action in a state, and the probability distribution of selecting each action in a state is π(a t |s T ).

[0034] Specifically, the reinforcement learning includes the following steps:

[0035] Step 1: Perform iterative updates each time a reward is returned, and update the parameters of the value function through continuous iteration;

[0036] Step 2: Gradually converge to the optimal value function through Q-learning and obtain a probability distribution strategy.

[0037] More specifically, the value function is Q(s t ,a t );

[0038] The Q(s t ,a t )=Q(s t ,a t )+α(r+γmax(Q(s t+1 ,a t+1 )-Q(s t ,a t ));

[0039] The π(a t |s t )=exp(Q(st ,a t ) / τ) / ∑(exp(Q(s,a ′ ) / τ);

[0040] The a t+1 For the next action;

[0041] The a ′ for all possible actions;

[0042] The α is a learning rate, and the learning rate is a fixed constant;

[0043] The γ is the attenuation factor;

[0044] The τ is a hyperparameter that controls the smoothness of the distribution in softmax.

[0045] Through the above basic technical scheme of the present invention, the paint workshop intelligent scheduling method based on graph neural network of the present invention successfully realizes the migration of the model by simulating the entire production process through the graph neural network. The graph neural network can classify each work order node and extract the association between the work order node and the machine node in the production network, so that when the method is migrated to different workshops, even if the number of machines and the number of work orders change, the model can still have good solution performance in the new workshop through the learned node classification and the association between nodes;

[0046] In addition, after the model training is completed, each solution process can respond quickly within seconds. Moreover, the model training process is completely independent of professional understanding of production. The scheduling model can be trained through small batches of data to solve larger and more complex problems.

[0047] Therefore, this method can achieve better scheduling performance while maintaining high efficiency, and can be effectively generalized to larger-scale problems not seen in training.

[0048] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0050] Figure 1 is a reinforcement learning flow chart of a specific implementation mode of the present invention;

[0051] Figure 2 is a flowchart of a graph neural network according to a specific embodiment of the present invention;

[0052] Figure 3 It is a heterogeneous graph of the paint shop arrangement problem according to a specific embodiment of the present invention. DETAILED DESCRIPTION

[0053] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0054] See also Figures 1 to 3 The basic embodiment of the present invention provides a method for intelligent scheduling of a paint shop based on a graph neural network, comprising the following steps:

[0055] Step 1: When an action is completed or in the initial state, reinforcement learning takes action based on the current state and the trained strategy;

[0056] Step 2: Action assigns a work order that is currently not assigned to a machine to an idle machine;

[0057] Step 3: Update the state to the state after the action is executed according to the transition matrix and the action selection;

[0058] Step 4: Determine the reward for this action based on the updated status;

[0059] Step 5: Modify the probability distribution of each action in the strategy by increasing or decreasing the reward, and learn the strategy through Q-Learning combined with the softmax activation layer;

[0060] Step 6: Repeat steps 1 to 5 until all work orders are assigned to available machines.

[0061] In order to facilitate understanding of the technical solution of the paint shop intelligent scheduling method based on graph neural network of the present invention, the technical effects of the paint shop intelligent scheduling method based on graph neural network of the present invention will be specifically described below.

[0062] like Figure 1 As shown, the paint shop intelligent scheduling method based on graph neural network of the present invention includes the following steps:

[0063] Step 1: When an action is completed or in the initial state, reinforcement learning takes action based on the current state and the trained strategy;

[0064] Step 2: Action assigns a work order that is currently not assigned to a machine to an idle machine;

[0065] Step 3: Update the state to the state after the action is executed according to the transition matrix and the action selection;

[0066] Step 4: Determine the reward for this action based on the updated status;

[0067] Step 5: Modify the probability distribution of each action in the strategy by increasing or decreasing the reward, and learn the strategy through Q-Learning combined with the softmax activation layer;

[0068] Step 6: Repeat steps 1 to 5 until all work orders are assigned to available machines;

[0069] Through reinforcement learning, a work order that has not yet been assigned to a machine is assigned to an idle machine according to the current state and the trained strategy. After the assignment is completed, the state is updated to the state after the action is executed through the migration matrix and the selection of actions. The reward of this action is determined according to the updated state and the increase or decrease of the reward is used to correct the probability distribution of each action in the strategy, thereby realizing reinforcement learning. Then, steps 1 to 5 are repeated until all work orders are assigned to available machines, thereby achieving better scheduling performance while maintaining high efficiency, and can be effectively extended to larger-scale problems not seen in training.

[0070] See also Figure 3 Specifically, the state is determined by a directed heterogeneous graph composed of the information of all current work orders and machines. The directed heterogeneous graph includes arcs, work order nodes connected at one end of the arcs, and machine nodes connected at the end of the arcs away from the work order nodes. The directed heterogeneous graph is formed by the work order nodes, machine nodes, and arcs connected between the work order nodes and the machine nodes to reflect the states of the work order nodes, machine nodes, and arcs connected between the work order nodes and the machine nodes at the current step;

[0071] See also Figure 2 Preferably, in step 1, before reinforcement learning takes action according to the current system state and the strategy, the features in the directed heterogeneous graph are extracted through the graph attention network, and the graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning is converted into a fixed-dimensional feature vector that can be used for reinforcement learning. By using the graph attention network to extract features in the directed heterogeneous graph, the graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning is converted into a fixed-dimensional feature vector that can be used for reinforcement learning, which facilitates the adjustment and learning of the strategy, so that the method can be effectively extended to larger-scale problems that have not been seen in training;

[0072] Specifically, the graph attention network extracts features from the directed heterogeneous graph, and converts the graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning into a fixed-dimensional feature vector that can be used for reinforcement learning, including the following steps:

[0073] a: Encode the features of each machine node and the features of the work order node into a one-dimensional vector v kand u i , v k is the feature of the machine node, u i is the feature of the work order node;

[0074] b: Use two linear transformations W M and W O To process the feature v of the machine node k and work order node u i Features;

[0075] c: Concatenate the features of the processed machine nodes and operation nodes and input them into a multi-layer perceptron to calculate the attention coefficient e of each operation node ik , e ik is LeakyReLU(a T [W M v k ||W O u i ]);

[0076] d: Use the softmax function for all e ik Normalize and get the normalized attention coefficient α ik ;

[0077] e: Use the adjacency matrix to represent the overall properties of the graph;

[0078] f: According to the adjacency matrix, the features of the operation nodes are weighted and summed according to the attention coefficient, and the features of the machine node are added to obtain the feature vector v′ of the machine node combined with the adjacent work order nodes k , neural network construction for reinforcement learning;

[0079] Further preferably, the features of the machine node may be available time and processing time, and the features of the work order node may be available time, processing time, and product color, which are used to encode the available time, processing time, and product color as one-dimensional vector features, and to convert the information in the directed heterogeneous graph of uncertain dimension into a feature vector of fixed dimension through a graph neural network, so as to facilitate the construction of a neural network for reinforcement learning.

[0080] More specifically,

[0081] Where σ is the activation function, and the activation function is the Sigmoid function or the ReLU function;

[0082] α is the weight of the multi-layer perceptron, and || is the concatenation operation of the vectors, which is used to calculate the feature vectors of adjacent work order nodes, facilitating the construction of the neural network for reinforcement learning.

[0083] Preferably, determining the reward for this action according to the updated status in step 4 includes the following steps:

[0084] a: After the action is executed, the model compares the previous and next states;

[0085] b: Calculate and update the reward through the reward formula. By comparing the two states before and after the action, calculate and update the reward through the eward formula to update the strategy, so that the model has good solving performance in the new workshop;

[0086] More specifically, the reward formula is r(s t ,a t ,s t+1 )=C max (s t +1)-C max (s t ) is used to calculate the time difference between the two states when they are finally completed, where C in the reward formula max is the time when the last process is completed, C max Including processing time and changeover time, s t is the state before the action, s t+1 is the state after the action, r(s t ,a t ,s t+1 ) is the difference between the time taken to complete the state before and after the action, a t For the current action, the strategy is updated so that the model has good solving performance in the new workshop;

[0087] Preferably, the strategy is the probability distribution of choosing each action in a state, and the probability distribution of choosing each action in a state is π(a t |s T ), further preferably, the value function is Q(s t ,a t );Q(s t ,a t )=Q(s t ,a t )+α(r+γmax(Q(s t+1 ,a t+1 )-Q(s t ,a t ));π(a t |s t )=exp(Q(s t ,a t ) / τ) / ∑(exp(Q(s,a′) / τ); where a t+1is the next action; a′ is all possible actions; α is the learning rate, which is a fixed constant; γ is the attenuation factor; τ is the hyperparameter in softmax that controls the smoothness of the distribution. More preferably, reinforcement learning includes the following steps: Step 1: perform iterative updates each time a reward is returned, and update the parameters of the value function through continuous iterations; Step 2: gradually converge to the optimal value function through Q-learning, and obtain a probability distribution strategy. Use Q-Learning combined with the softmax activation layer to train the strategy, perform iterative updates each time a reward is returned, and continuously iteratively update the parameters of the value function. Q-learning can gradually converge to the optimal value function and obtain a probability distribution of the strategy. This probability distribution can be used to select actions so that the selection probability is proportional to the corresponding Q-value function, thereby achieving strategy learning and optimization;

[0088] In order to facilitate a deeper understanding of the technical concept and advantages of the paint shop intelligent scheduling method based on graph neural network of the present invention, the following is combined with Figures 1 to 3 A relatively comprehensive structural form is described with relatively preferred features of the present invention.

[0089] When an action is completed or in the initial state, the state is determined by a directed heterogeneous graph composed of information of all current work orders and machines. The directed heterogeneous graph includes arcs, work order nodes connected at one end of the arc, and machine nodes connected at the end of the arc away from the work order node. Reinforcement learning extracts features from the directed heterogeneous graph through the graph attention network before taking action based on the current system state and strategy. Reinforcement learning has the following steps: iterative update each time a reward is returned. By continuously iteratively updating the parameters of the value function, Q-learning gradually converges to the optimal value function and obtains a probability distribution strategy, where the strategy is the probability distribution of selecting each action in a state, and the probability distribution of selecting each action in a state is π(a t |s T ), and the value function is Q(s t ,a t ), Q(s t ,a t )=Q(s t ,a t )+α(r+γmax(Q(s t+1 ,a t+1 )-Q(s t ,a t )),π(a t |s t )=exp(Q(s t ,a t ) / τ) / ∑(exp(Q(s,a′) / τ), a t+1is the next action; a′ is all possible actions, α is the learning rate, and the learning rate is a fixed constant. The graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning is converted into a fixed-dimensional feature vector that can be used for reinforcement learning. The following steps are included: a: Encode the features of each machine node and the features of the work order node into a one-dimensional vector v k and u i , v k is the feature of the machine node, u i is the feature of the work order node; b: use two linear transformations W M and W O To process the feature v of the machine node k and work order node u i c: concatenate the features of the processed machine node and the operation node and input them into a multi-layer perceptron to calculate the attention coefficient e of each operation node ik , e ik is LeakyReLU(a T [W M v k ||W O u i ]); d: Use the softmax function for all e ik Normalize and get the normalized attention coefficient α ik ; e: Use the adjacency matrix to represent the overall properties of the graph; f: According to the adjacency matrix, the features of the operation nodes are weighted and summed according to the attention coefficient, and the features of the machine node are added to obtain the feature vector v′ of the machine node combined with the adjacent work order nodes k , Among them, σ is the activation function, which is the Sigmoid function or the ReLU function, α is the weight of the multilayer perceptron, and || is the vector concatenation operation used to build a neural network for reinforcement learning. Reinforcement learning takes action based on the current state and the trained strategy. The action assigns a work order that has not yet been assigned to a machine to an idle machine. According to the migration matrix and the choice of action, the state is updated to the state after the action is executed. The reward for this action is determined based on the updated state. Specifically, a: After the action is executed, the model compares the two states before and after, b: Through the reward formula r(s t ,a t ,s t+1 )=C max (s t +1)-C max (s t ) calculates the reward and updates it, where C max is the time when the last process is completed, C max Including processing time and changeover time, s tis the state before the action, s t+1 is the state after the action, r(s t ,a t ,s t+1 ) is the difference between the time taken to complete the state before and after the action, a t For the current action, the probability distribution of each action in the strategy is modified by increasing or decreasing the reward, and the strategy learning is realized through Q-Learning combined with the softmax activation layer. The above operations are repeated until all work orders are assigned to available machines.

[0090] It can be seen from the above description of the present invention that this method can only have time-consuming considerations in the learning process. After the model training is completed, each solution process can respond quickly in seconds.

[0091] Furthermore, during the strategy training process, this method does not rely on any professional understanding of production. It can train a scheduling model through small batches of data to solve larger and more complex problems.

[0092] In addition, the reinforcement learning of this method uses graph neural networks to simulate the entire production process and successfully realizes the portability of the model. Since the graph neural network can classify each work order and extract the relationship between the work order and the machine in the production network, this enables the present invention to migrate to different workshops. Even if the number of machines and the number of work orders change, the model can still have good solving performance in the new workshop through the learned node classification and the relationship between nodes, thereby achieving better scheduling performance while maintaining high efficiency, and can be effectively extended to larger-scale problems not seen in training.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A paint shop intelligent scheduling method based on graph neural network, characterized in that: The following steps are involved: Step 1: When an action is completed or in the initial state, reinforcement learning takes action according to the current state and in combination with the trained strategy. Before reinforcement learning takes action according to the current state and in combination with the trained strategy, features in the directed heterogeneous graph are extracted through a graph attention network, and graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning is converted into a fixed-dimensional feature vector that can be used for reinforcement learning. The steps of extracting features in the directed heterogeneous graph through a graph attention network and converting graph structure information in the directed heterogeneous graph that cannot be recognized by reinforcement learning into a fixed-dimensional feature vector that can be used for reinforcement learning include the following steps: a: Encode the features of each machine node and the features of the work order node into a one-dimensional vector v k and u i , the v k is the characteristic of the machine node, the u i is the feature of the work order node; b: Use two linear transformations W M and W O To process the feature v of the machine node k and work order node u i Features; c: Concatenate the features of the processed machine nodes and operation nodes and input them into a multi-layer perceptron to calculate the attention coefficient e of each operation node ik , the e ik is LeakyReLU(a T [W M v k ||W O u i ]); d: Use the softmax function for all e ik Normalize and get the normalized attention coefficient α ik ; e: Use the adjacency matrix to represent the overall properties of the graph; f: According to the adjacency matrix, the features of the operation nodes are weighted and summed according to the attention coefficient, and the features of the machine node are added to obtain the feature vector v′ of the machine node combined with the adjacent work order nodes k , neural network construction for reinforcement learning, in, σ is the activation function, which is the Sigmoid function or the ReLU function, α is the weight of the multi-layer perceptron, and || is the concatenation operation of the vector; Step 2: Action assigns a work order that is currently not assigned to a machine to an idle machine; Step 3: Update the state to the state after the action is executed according to the transition matrix and the action selection; Step 4: Determine the reward for this action based on the updated status; Step 5: Modify the probability distribution of each action in the strategy by increasing or decreasing the reward, and learn the strategy through Q-Learning combined with the softmax activation layer; Step 6: Repeat steps 1 to 5 until all work orders are assigned to available machines; the state is determined by a directed heterogeneous graph consisting of information of all current work orders and machines, wherein the directed heterogeneous graph includes an arc, a work order node connected to one end of the arc, and a machine node connected to the end of the arc away from the work order node.

2. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 1 is characterized in that: Determining the reward of this action according to the updated status in step 4 includes the following steps: a: After the action is executed, the model compares the previous and next states; b: Calculate the reward through the reward formula and update it.

3. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 2 is characterized in that: The reward formula is r(s t ,a t ,s t+1 )=C max (s t +1)-C max (s t ) is used to calculate the time difference between the two states when they are finally completed.

4. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 3 is characterized in that: In the reward formula, C max is the time when the last process is completed, and C max Including processing time and changeover time, the s t is the state before the action, the s t+1 is the state after the action, the r(s t ,a t ,s t+1 ) is the difference between the time taken to complete the state before the action and the time taken to complete the state after the action. t For the current action.

5. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 1 is characterized in that: The strategy is the probability distribution of selecting each action in a state, and the probability distribution of selecting each action in a state is π(a t |s T ).

6. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 5 is characterized in that: The reinforcement learning comprises the following steps: Step 1: Perform iterative updates each time a reward is returned, and update the parameters of the value function through continuous iteration; Step 2: Gradually converge to the optimal value function through Q-learning and obtain a probability distribution strategy.

7. The method for intelligent scheduling of a paint shop based on graph neural network according to claim 6 is characterized in that: The value function is Q(s t ,a t ); The Q(s t , a t ) = Q(s t , a t ) + α(r + γ max(Q(s t+1 , a t+1 )) - Q(s t , a t )); π(a t |s t ) = exp(Q(s t , a t ) / τ) / ∑(exp(Q(s, a ′ ) / τ)); The a t+1 For the next action; The a ′ for all possible actions; The α is a learning rate, and the learning rate is a fixed constant; The γ is the attenuation factor; The τ is a hyperparameter that controls the smoothness of the distribution in softmax.