A multi-objective optimization method for process routes based on deep reinforcement learning

By transforming the process route optimization problem into a Markov decision process and using the deep reinforcement learning method with the Actor-Critic structure, the flexible and changeable problems in the process route optimization of small batch customized products are solved, and efficient and stable multi-objective optimization decisions are achieved. , which improves the intelligent level of process route optimization.

CN115016405BActive Publication Date: 2024-09-24TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210582122.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-09-24
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

The existing manufacturing system cannot meet the production needs of small batches of customized products, and traditional process route optimization methods cannot cope with the diversification and dynamic changes of process conditions, resulting in low flexibility and low intelligence.

Method used

The process route multi-objective optimization method based on deep reinforcement learning is adopted. By defining the state space, action space and reward function, the process route optimization problem is transformed into a Markov decision-making process, and is solved using the deep reinforcement learning method with the Actor-Critic structure. Achieve multi-objective optimization.

Benefits of technology

It achieves efficient, stable and adaptable multi-objective optimization decision-making capabilities when processing resources dynamically change, improves the intelligent level of process route optimization, and can flexibly respond to the production needs of small batch customized products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016405B
    Figure CN115016405B
Patent Text Reader

Abstract

The present invention relates to a multi-objective optimization method for a process route based on deep reinforcement learning, comprising the following steps: a first step, setting four mandatory priority relationships between processes, establishing a multi-objective optimization function with total process cost, total process time and total carbon emissions as optimization targets, and establishing a process route optimization model; a second step, converting the process route optimization problem into a Markov decision process to simulate the random strategy and reward that can be achieved by an intelligent agent: the determination of the process route of a part to be processed is regarded as a complete Markov decision process, that is, from the selection of the first process and processing resources to the determination of the last process and processing resources, the entire process route includes the sequential arrangement of the processes and the selected processing equipment, thereby defining the state space, action space and reward function of the Markov decision process; a third step, solving the problem using a deep reinforcement learning method based on an Actor-Critic structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of process route optimization, and specifically is a process route multi-objective optimization method based on deep reinforcement learning. Background Art

[0002] In the information age, product demand is becoming more personalized, diversified, and dynamic. The market share of small-batch customized products based on user needs is gradually increasing. However, the existing manufacturing system is difficult to meet the production needs of such small-batch customized products. The reason is that customized products are frequently updated in structural design, and the slight changes in the process caused by changes in demand will affect the formulation of the overall process route, which poses a new challenge to the efficiency of process planning. At present, enterprises have weak organizational capabilities for process resources, and most process routes are manually formulated, which are highly dependent on experience, and the level of intelligence shown in the process of process design is low.

[0003] Process planning can be regarded as a bridge connecting product design and manufacturing. It is an activity that combines manufacturing process knowledge with specific design to prepare specific operating instructions under the constraints of workshop or factory manufacturing resources. Process route optimization is the core link of process planning. It mainly refers to the maximization of economic benefits by rationally allocating processing resources and arranging processing sequence under the constraints of the process procedures. Since it involves multi-objective optimization, it has also been proved to be a type of combinatorial optimization problem with NP-hard properties. However, in process route optimization, there are phenomena such as non-unique processing sequence of part processing features, non-unique processing methods available for processing features, and non-unique processing equipment for realizing corresponding processing methods. Therefore, it is flexible and changeable. In the production and processing of multi-variety small batch products, due to the large number of process conditions and large dynamic changes, there are more uncertain factors in process route optimization, which makes it impossible for traditional process route optimization methods to meet such dynamic processing needs. The existing solutions generally use heuristic algorithms to solve multiple objectives, but this type of method requires special treatment of the constraints of each type of problem. At the same time, all processes are optimized as a whole when solving the problem. When faced with dynamic changes in resources, the solution range must be adjusted and planning must be restarted. It does not have dynamic response capabilities. Summary of the invention

[0004] In view of the deficiencies of the prior art, the present invention proposes a multi-objective optimization method for process routes based on deep reinforcement learning. After analyzing various economic indicators and low-carbon indicators in the process, a multi-objective optimization model is established in combination with the priority relationship between processes. The significant advantages of deep reinforcement learning in complex modeling and decision-making problems are utilized to transform the optimization problem into a Markov decision process, define the state space, action space and reward function, and further use the hypervolume as a multi-objective evaluation index to design a deep reinforcement learning method based on the Actor-Critic structure to solve the optimization model. This method can make flexible decisions when processing resources change dynamically, and realizes efficient, stable and adaptable multi-objective optimization decision-making capabilities, thereby solving the flexible and changeable problems faced in optimizing the process routes of small-batch customized products.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A multi-objective optimization method for a process route based on deep reinforcement learning comprises the following steps:

[0007] In the first step, four mandatory priority relationships between processes are set, a multi-objective optimization function is established with total process cost, total process time and total carbon emissions as optimization targets, and a process route optimization model is established;

[0008] Among them, the four mandatory priority constraints between the processes are set as follows:

[0009] Roughing first, then finishing type constraint relationship: that is, the roughing type of process is arranged first, and the finishing type of process is arranged later;

[0010] Datum priority constraint relationship: When processing a datum feature and its dependent features, the datum feature should be processed first;

[0011] Priority relationship of surface first and hole later: When processing surface features and their corresponding hole features, in order to meet the position accuracy requirements of the hole and the plane, the surface features should be processed first and then the hole features;

[0012] Primary-secondary priority constraint relationship: The primary and secondary characteristics are determined by the application functions of the parts. The part structure is designed according to user needs during the design phase, and the primary-secondary priority relationship can be obtained by combining the actual functional characteristics;

[0013] The second step is to transform the process route optimization problem into a Markov decision process to simulate the random strategies and rewards that the agent can achieve.

[0014] The determination of the process route of the parts to be processed is regarded as a complete Markov decision process, that is, from the selection of the first process and processing resources to the determination of the last process and processing resources. The entire process route includes the sequence of processes and the selected processing equipment, thereby defining the state space, action space and reward function of the Markov decision process;

[0015] In the definition of state space, static variables and dynamic variables are introduced. Static variables are values ​​that do not change during the decision-making process, while dynamic variables are updated before each decision step. Specifically:

[0016] The available machine tools and tool resources under each process are considered as a combination in the form of pairs. All processes of the workpiece to be processed total L types of combinations. The static variable contains the serial number ID of the candidate combination. x , the process ME of the candidate combination i , Machine number and tool number Dynamic variables include the current state s t The remaining process ratio Current Status t Next process ME i Has it been selected? and the current state s t Next process ME i The remaining proportion of the preceding process

[0017] There may be several candidate machine tool combinations for one process. Respectively represent process ME i The kth type of optional machine tool and the mth type of optional tool under this machine tool;

[0018] Dynamic variables Represents the current state s t The remaining process ratio, The initial state is 1, and its update rule is:

[0019]

[0020] In the formula, m t Indicates that it is in state s t The number of selected processes when m t When it is equal to the total number of processes n, the sequence decision reaches the termination condition;

[0021] Dynamic variables Represents the current state s t Check whether the process has been selected. Its update rule is:

[0022]

[0023] Dynamic variables Represents the current state s t Next process ME i The remaining proportion of the preceding process, When ME i When there is no preceding process, Always 0; when ME i When there is a previous process, The update rule is:

[0024]

[0025] Where P i Indicates process ME i The total number of predecessor processes, Indicates that it is in state s t Time i The number of selected processes in the initial state is 0 or 1, when When it is 0, it means that the ME i Can be selected;

[0026] and The values ​​of are all within [0,1], which can effectively treat the different numbers of processing steps of the workpiece, allowing the model to have a better perception of the data;

[0027] In the action space definition, action a t Indicates that the Agent is in the current state s t The actions that can be taken under state s are related to the decision-making strategy. In the process route optimization problem, the action set A(s) represents all the optional serial number IDs under state s. x gather;

[0028] In the definition of reward function, the reward for the agent will be determined based on three optimization goals: total process cost, total process time, and total process carbon emissions. The lower the three target values ​​are, the greater the reward should be given to the agent as feedback;

[0029] The third step is to solve the problem using a deep reinforcement learning method based on the Actor-Critic structure.

[0030] Preferably, in the second step, the established objective functions of total process cost, total process time and total carbon emission are:

[0031] The total process cost objective function is:

[0032]

[0033] In the formula, C all is the total cost, C mc is the machine tool change cost index, C tc is the tool change cost index, C m (MID i ) is the machine tool MID i The cost index, C t (TID i ) is the tool TID i The cost index, γ1 is the machine tool change function, γ2 is the tool change function, n is the total number of processes, TID i , TID i+1 MID are the tool codes used in process i and process i+1 respectively; i , MID i+1 They are the machine tool codes used for process i and process i+1 respectively;

[0034] Among them, the calculation formula of γ1 is:

[0035]

[0036] The formula for calculating γ2 is:

[0037]

[0038] In the formula,

[0039] Total process time objective function:

[0040]

[0041] In the formula, is the machining time of the machine tool, TM mc is the change time index of the machine tool, TM tc is the tool change time index;

[0042] Objective function of total carbon emissions of the process:

[0043]

[0044] In the formula, are the cutting energy consumption and auxiliary energy consumption of the i-th process, respectively, and F ele is the carbon emission factor of electricity.

[0045] Preferably, in the third step, during the training process of the Actor-Critic algorithm, the Critic updates its parameters by minimizing the mean square error (MSE) between the value estimate and the actual return; the Actor represents the policy function, which is updated according to the temporal difference method.

[0046] The beneficial effects of the technical solution provided by the present invention are as follows: the present invention utilizes the advantages of reinforcement learning in complex modeling and dynamic optimization, and proposes a new way of defining state space and action space to transform the process route optimization problem into a Markov decision process; and on this basis, various optimization indicators and influencing factors in the process are collaboratively considered, a multi-objective optimization model is established, and the solution is analyzed and determined with multi-objective optimization evaluation indicators to ensure that the solution set has a good distribution, thereby improving the adaptability and generalization of the optimization model. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 Schematic diagram of the state space definition for the process routing decision problem

[0048] Figure 2 The training process of the Actor-Critic algorithm

[0049] Figure 3 Constraint matrix of the process

[0050] Figure 4 Offline training convergence process under different optimization objectives

[0051] Figure 5 Box plots of the solution sets of each algorithm

[0052] Figure 6 Solving speed of different algorithms DETAILED DESCRIPTION

[0053] The essence of process route optimization is a multi-objective optimization problem, that is, according to the demand data and process information of the parts, the process sequence and the candidate set of manufacturing resources are reasonably arranged to achieve relevant requirements such as economic indicators and time indicators while satisfying the mandatory constraints between the processes. However, different workpieces face the problems of flexible and changeable processing methods and complex and diverse process resources, and the growing demand for multi-variety and small-batch customized products has brought new challenges to the optimization of process routes. Traditional process routes generally rely on the accumulated experience of experts or enterprises, and can only be determined after the process performance analysis and comprehensive evaluation of the processed workpieces. This method is oriented to the processing of large-scale standardized products, so it has a long implementation cycle, poor flexibility and low intelligence level, and cannot cope with the diversified market demand for small-batch customized products and the increasingly complex production plans of enterprises.

[0054] Based on this, the present invention first analyzes the relevant optimization indicators in the process and establishes a multi-objective optimization model; then the process optimization problem is transformed into a Markov decision process, the state space and action space are defined, and the solution is analyzed and determined with multi-objective optimization evaluation indicators to ensure that the solution set has good distribution. Finally, a deep reinforcement learning method based on the Actor-Critic structure is used to solve the problem and obtain the final process route. In this way, the solution set obtained has a good distribution, and the adaptability and generalization of the model are guaranteed, which improves the overall intelligence level of process route optimization decision-making.

[0055] Specifically, the following steps are included:

[0056] Step 1: Establishment of process route optimization model.

[0057] Based on the analysis of the process of process route optimization, the present invention sorted out four mandatory priority relationships between working procedures, established three types of optimization objective functions, and thus established a process route optimization model.

[0058] Among them, the four mandatory constraint relationships are: rough-first-fine-then constraint relationship, datum priority constraint relationship, face-first-hole-then priority relationship, and primary-secondary priority constraint relationship.

[0059] The four mandatory constraints are:

[0060] (1) Roughing first, then finishing type constraint relationship: that is, the roughing type of process is arranged first, and the finishing type of process is arranged later;

[0061] (2) Datum priority constraint relationship: When processing a datum feature and its dependent features, the datum feature should be processed first.

[0062] (3) Priority relationship of surface first and hole later: When processing surface features and their corresponding hole features, in order to meet the positional accuracy requirements of the hole and the plane, the surface features should be processed first and then the hole features.

[0063] (4) Primary-secondary priority constraint relationship: The primary and secondary characteristics are determined by the application functions of the parts. The part structure is designed according to user needs during the design phase, and the primary-secondary priority relationship can be obtained by combining the actual functional characteristics.

[0064] As for the optimization goal, from the perspective of the enterprise, the optimization of the process route is mainly reflected in economic benefits and processing time. On the one hand, it is necessary to consider the manufacturing costs of equipment such as machine tools and the cost of equipment changes during the processing. On the other hand, it is also necessary to coordinate the manufacturing process to control the processing time to meet the timeliness requirements of the demand side. Furthermore, in the severe environment of global warming caused by excessive carbon dioxide emissions, low-carbon production must be implemented.

[0065] Therefore, the present invention establishes a multi-objective optimization function with total process cost, total process time and total carbon emissions as optimization targets, and constructs a process route optimization model in combination with the mandatory priority relationship between processes. The three objective functions are:

[0066] (1) Total process cost objective function:

[0067]

[0068] In the formula, C all is the total cost, C mc is the machine tool change cost index, C tc is the tool change cost index, C m (MID i ) is the machine tool MID i The cost index, C t (TID i ) is the tool TID i The cost index of , γ1 is the machine tool change function, and γ2 is the tool change function.

[0069] Among them, the calculation formula of γ1 is:

[0070]

[0071] Where MID i , MID i+1 They are the machine tool codes used for process i and process i+1 respectively.

[0072] The formula for calculating γ2 is:

[0073]

[0074] Where MID i , MID i+1 are the machine tool codes used for process i and process i+1, TID i , TID i+1 They are the tool codes used in process i and process i+1 respectively.

[0075] (2) Total process time objective function:

[0076]

[0077] In the formula, is the machining time of the machine tool, TM mc is the change time index of the machine tool, TM tc is the tool change time index, γ1 is the machine tool change function, and γ2 is the tool change function, and their calculation formulas are consistent with Formula 2 and Formula 3 respectively.

[0078] (3) Objective function of total carbon emissions of the process:

[0079]

[0080] In the formula, are the cutting energy consumption and auxiliary energy consumption of the i-th process, respectively, and F ele is the carbon emission factor of electricity.

[0081] (1) Total process cost objective function:

[0082]

[0083] In the formula, C all is the total cost, C mc is the machine tool change cost index, C tc is the tool change cost index, C m (MID i ) is the machine tool MID i The cost index, C t (TID i ) is the tool TID i The cost index of , γ1 is the machine tool change function, γ2 is the tool change function, and n is the total number of processes.

[0084] Among them, the calculation formula of γ1 is:

[0085]

[0086] Where MID i , MID i+1 They are the machine tool codes used for process i and process i+1 respectively.

[0087] The formula for calculating γ2 is:

[0088]

[0089] Where MID i , MID i+1 are the machine tool codes used for process i and process i+1, TID i , TID i+1 They are the tool codes used in process i and process i+1 respectively.

[0090] (2) Total process time objective function:

[0091]

[0092] In the formula, is the machining time of the machine tool, TM mc is the change time index of the machine tool, TM tcis the tool change time index; γ1 is the machine tool change function, and γ2 is the tool change function, and their calculation formulas are consistent with Formula 2 and Formula 3 respectively.

[0093] (3) Objective function of total carbon emissions of the process:

[0094]

[0095] In the formula, are the cutting energy consumption and auxiliary energy consumption of the i-th process, respectively, and F ele is the carbon emission factor of electricity.

[0096] Step 2: Convert the process route optimization problem into a Markov decision process.

[0097] As one of the paradigms and methodologies of machine learning, reinforcement learning can be used to describe and solve the problem of how an agent learns through interaction with the environment to obtain the maximum reward or achieve a predetermined goal. Reinforcement learning focuses on solving sequential decision-making problems. Unlike general supervised learning with correct sample guidance, reinforcement learning is a trial-and-error learning method, that is, the learning process is completed through feedback obtained through continuous interactive training between the agent and the environment.

[0098] Before using reinforcement learning, the problem needs to be converted into a Markov decision process (MDP). MDP can be represented by (S, A(s), P, γ, R), which contains five elements. Among them: S represents the set of all states; A(s) represents the set of executable actions in state s; P represents the state transition probability, which represents the probability that the agent performs action a in the current state s and transfers to the new state s′; γ represents the discount factor, which is used to give a certain discount to future rewards, where γ∈[0,1]; R is the reward function.

[0099] In the process route optimization problem, the determination of the process route of the parts to be processed can be regarded as a complete decision-making process, that is, from the selection of the first process and processing resources to the determination of the last process and processing resources. The entire process route includes the sequence of processes and the selected processing equipment, thereby defining the state space, action space and reward function of the process.

[0100] In the definition of state space, considering the number of processes for each part to be processed and the diversity of candidate resource sets, the present invention introduces static variables and dynamic variables in the setting of state space. Static variables are values ​​that will not change during the decision-making process, while dynamic variables are updated before each decision step. Figure 1 As shown, state s tIt can be viewed as an L×7-dimensional array, and the available machine tools and tool resources under each process are considered as a combination in the form of pairs. All processes of the workpiece to be processed total L types of combinations. The static variables in the figure contain the serial number ID of the candidate combination. x , the process ME of the candidate combination i , Machine number and tool number Dynamic variables include the current state s t The remaining process ratio Current Status t Check whether the process has been selected. and the current state s t Next process ME i The remaining proportion of the preceding process

[0101] A process may have several candidate machine tool combinations, among which Respectively represent process ME i The kth type of optional machine tool and the mth type of optional tool under this machine tool.

[0102] Dynamic variables Represents the current state s t The remaining process ratio, The initial state is 1, and its update rule is:

[0103]

[0104] In the formula, m t Indicates that it is in state s t The number of selected processes when m t When it is equal to the total number of processes n, the sequence decision reaches the termination condition.

[0105] Dynamic variables Represents the current state s t Check whether the process has been selected. Its update rule is:

[0106]

[0107] Dynamic variables Represents the current state s t Next process ME i The remaining proportion of the preceding process, When ME i When there is no preceding process, Always 0; when ME i When there is a previous process, The update rule is:

[0108]

[0109] Where P i Indicates process ME i The total number of predecessor processes, Indicates that it is in state s t Time i The number of selected processes in the initial state is 0 or 1, when When it is 0, it means that the ME i Can be selected.

[0110] and The values ​​of are all within [0,1], which can effectively treat the different numbers of processing steps for the workpiece and allow the model to have a better perception of the data.

[0111] In the action space definition, action a t Indicates that the Agent is in the current state s t The actions that can be taken under state s are related to the decision-making strategy. In the process route optimization problem, the action set A(s) can be specifically understood as the set of all optional serial number IDs under state s.

[0112] In the definition of reward function, appropriate reward can give Agent correct feedback and guide Agent to learn the strategy of action selection. Therefore, the reward of Agent in the present invention will be determined based on three types of optimization objectives: total process cost, total process time and total process carbon emissions. When the three types of target values ​​are lower, the larger the reward given to Agent should be fed back. However, there is generally no global optimal solution for multi-objective optimization problems, and what is obtained is the Pareto solution set, that is, the non-dominated solution set. The form of the solution set is difficult to compare directly. Under the existing method, the multi-objective optimization problem in reinforcement learning is generally in the form of weighted summation, which transforms multiple objectives into a single objective, but this method is highly subjective and the resulting solution distribution is poor. Therefore, the present invention uses hypervolume (Hypervolume, HV) as a multi-objective evaluation index, wherein the hypervolume index represents the volume of the hypercube surrounded by the individual in the solution set and the reference point in the target space. Under a given reference point and a limited search space, the maximization of the hypervolume measurement is equivalent to finding the Pareto set, so the HV index is an evaluation method consistent with Pareto.

[0113] For the process route optimization problem in this paper, f1, f2, and f3 represent three objective functions, and the three-dimensional target space of n Pareto points is set as:

[0114] Prt={(f1(ξ1),f2(ξ1),f3(ξ1)),(f1(ξ2),f2(ξ2),f3(ξ2)),…,(f1(ξn ),f2(ξ n ),f3(ξ n ))}#(9)

[0115] Assuming the reference point is R = (r1, r2, r3), the calculation of HV can be expressed as:

[0116]

[0117] Where λ(Prt) is the Lebesgue measure, and [r1,f1(s)]×[r2,f2(s)]×[r3,f3(s)] is the hypervolume enclosed by all points on Prt and the reference point R.

[0118] Step 3: Solve with deep reinforcement learning method based on Actor-Critic structure

[0119] The Actor-Critic algorithm is a deep reinforcement learning method that uses learning reinforcement signals generated by iterative value functions to strengthen strategies. It combines two types of learning methods: value-based and policy-based. The algorithm uses the Actor-Critic structure to store the policy function and the value function independently. The structure representing the policy function is called the Actor, which determines the actions performed by the Agent based on the state of the environment; and the structure representing the value function is called the Critic, which evaluates the actions selected by the Actor by calculating the value function.

[0120] Figure 2 This is the training process of the Actor-Critic algorithm used in the present invention. Among them, the Critic can update its parameters by minimizing the MSE (mean square error) between the value estimate and the actual return, and its loss function is:

[0121]

[0122] Where T k represents the number of sampling steps, represents the approximate value function, R t Indicates reward.

[0123] Actor represents the strategy function, which can be updated according to the temporal difference method, and its loss function is:

[0124]

[0125] The present invention is described below in conjunction with an embodiment. In this embodiment, there are 12 features in total, each feature has 27 processes, and the processing method, available machine tools, available tools and size information of each process are shown in Table 1.

[0126] Table 1. Related information of the example

[0127]

[0128] The constraints of the 27 processes are as follows: Figure 3 As shown. The value of 1 means that the process ME satisfies the four types of mandatory constraints. i Must take precedence over ME j , a value of -1 means ME i Must be after ME j , 0 means there is no mandatory constraint relationship between the two types of processes.

[0129] Based on the process information and constraints, the total process cost C under different sequence arrangements and resource combinations can be calculated. all , Total process time T all and total carbon emissions E all , and perform optimization solution.

[0130] In this case, a pre-trained model is first obtained based on the offline training process, and then the pre-trained model is loaded with the relevant data of the customized part for online training to obtain the converged solution result. Deep reinforcement learning is divided into offline training and online training processes in application. Offline training refers to training the deep reinforcement learning model through a batch of training examples, allowing the model to optimize the model parameters through exploratory learning, obtain the pre-trained model and save it; online training is to load the pre-trained model, input the data of the workpiece to be processed for online learning and training, and obtain the converged result. The advantage of doing this is that the neural network in deep reinforcement learning can be trained in advance to obtain better weight parameters, and when it is applied online, it can further implement training of new data based on the model, accelerate convergence, and quickly produce results.

[0131] The main hyperparameters set by the present invention are shown in Table 2.

[0132] Table 2 Main hyperparameters of the model

[0133]

[0134] During offline training, Figure 4 This is the change process of HV evaluation index during multi-objective optimization, which tends to converge after about 600 iterations of training. Figure 4 (b), (c), and (d) are the iterative calculation processes for single-objective optimization, which are the total process cost C all , Total process time T all, total carbon emissions E all The value changes of . Among them, the single-objective optimization with total process cost fluctuated in a small range after about 450 iterations of training and tended to converge; the single-objective optimization with total process time tended to converge after about 500 iterations of training; the single-objective optimization with total carbon emissions tended to converge after about 500 iterations of training. Overall, the multi-objective solution process with HV as the evaluation indicator will be slightly slower. During the 400th to 600th iterations of training, although there is a convergence trend, there are still large fluctuations. It may be that the three optimization objectives are being explored and weighed. At the same time, the optimization of the three objectives also increases the computational complexity, resulting in its convergence rate being slightly lower than that of the other three types of single objectives.

[0135] Table 3 is the online training optimization result of the case under multi-objective optimization, and Table 4 is a summary table of the results obtained under multi-objective optimization and three types of single-objective optimization. From Table 3, it can be found that the algorithm proposed by the present invention will arrange similar processes as much as possible when solving. And from the data in Table 4, it can be found that the total process cost C all , Total process time T all , total carbon emissions E all When optimizing as a single objective, the objective itself is minimized, but the results of other objectives are very unsatisfactory. Multi-objective optimization can balance each objective well and obtain a comprehensive optimization result. Therefore, it is very necessary to use multi-objective optimization.

[0136] Table 3 Multi-objective optimization results

[0137]

[0138]

[0139] Table 4 Objective values ​​under multi-objective and single-objective optimization

[0140]

[0141] In order to compare the comprehensive effect of the process route optimization method based on deep reinforcement learning (DRL) proposed in this invention, NSGA-III and MOPSO algorithms are used for solution comparison, where the solutions are all multi-objective optimization, and the Pareto solution sets obtained by the three algorithms are statistically analyzed to analyze the distribution of the solutions. Figure 5 It is a box plot based on the values ​​of the solution sets of the three algorithms under each objective. From the data in the figure, it can be found that the distribution of the solution sets of the three algorithms under each objective is not much different. In general, the solution sets of DRL and NSGA-III are widely distributed, with similar medians, while the solution of MOPSO is slightly worse. It proves that the DRL-based method proposed in this paper has a global search capability similar to that of the heuristic optimization algorithm.

[0142] Furthermore, in order to explore the differences in solution speed among the three types of algorithms, 10 multi-objective optimizations were performed on the case. Figure 6 The solution speed of the three types of algorithms under 10 experiments, and the statistical time interval is from the start of the algorithm to convergence. From the data in the figure, it can be seen that the DRL method proposed in this paper has the best solution speed in 10 experiments, while the NSGA-III algorithm has the slowest solution speed overall, followed by the MOPSO algorithm. This is because DRL uses the pre-trained model in actual application, and can perform online training and fine-tuning on the original basis, so the online convergence speed is fast, while other algorithms must be reinitialized and then optimized.

[0143] To sum up, the process route optimization method based on deep reinforcement learning proposed in the present invention has efficient, stable and adaptable multi-objective optimization decision-making capabilities, and can solve the flexible and changeable problems faced in optimizing the process route of small-batch customized products.

Claims

1. A multi-objective optimization method for a process route based on deep reinforcement learning, comprising the following steps: In the first step, four mandatory priority relationships between processes are set, a multi-objective optimization function is established with total process cost, total process time and total carbon emissions as optimization targets, and a process route optimization model is established; in, The four mandatory priority constraints between the processes are: Roughing first, then finishing type constraint relationship: that is, the roughing type of process is arranged first, and the finishing type of process is arranged later; Datum priority constraint relationship: When processing a datum feature and its dependent features, the datum feature should be processed first; Priority relationship of surface first and hole later: When processing surface features and their corresponding hole features, in order to meet the position accuracy requirements of the hole and the plane, the surface features should be processed first and then the hole features; Primary-secondary priority constraint relationship: The primary and secondary characteristics are determined by the application functions of the parts. The part structure is designed according to user needs during the design phase, and the primary-secondary priority relationship can be obtained by combining the actual functional characteristics; The second step is to transform the process route optimization problem into a Markov decision process to simulate the random strategies and rewards that can be achieved by the intelligent agent. The method is as follows: The determination of the process route of the parts to be processed is regarded as a complete Markov decision process, that is, from the selection of the first process and processing resources to the determination of the last process and processing resources. The entire process route includes the sequence of processes and the selected processing equipment, thereby defining the state space, action space and reward function of the Markov decision process; In the definition of state space, static variables and dynamic variables are introduced. Static variables are values ​​that do not change during the decision-making process, while dynamic variables are updated before each decision step. Specifically: The available machine tools and tool resources under each process are considered as a combination in the form of pairs. All processes of the workpiece to be processed total L types of combinations. The static variable contains the serial number ID of the candidate combination. x , the process ME of the candidate combination i , Machine number and tool number Dynamic variables include the current state s t The remaining process ratio Current Status t Next process ME i Has it been selected? and the current state s t Next process ME i The remaining proportion of the preceding process There may be several candidate machine tool combinations for one process. Respectively represent process ME i The kth type of optional machine tool and the mth type of optional tool under this machine tool; Dynamic variables Represents the current state s t The remaining process ratio, The initial state is 1, and its update rule is: In the formula, m t Indicates that it is in state s t The number of selected processes when m t When it is equal to the total number of processes n, the sequence decision reaches the termination condition; Dynamic variables Represents the current state s t Check whether the process has been selected. Its update rule is: Dynamic variables Represents the current state s t Next process ME i The remaining proportion of the preceding process, When ME i When there is no preceding process, Always 0; when ME i When there is a preceding process, The update rule is: Where P i Indicates process ME i The total number of predecessor processes, Indicates that it is in state s t Time i The number of selected processes in the initial state is 0 or 1, when When it is 0, it means that the ME i Can be selected; and The values ​​of are all within [0,1], which can effectively treat the different numbers of processing steps of the workpiece, allowing the model to have a better perception of the data; In the action space definition, action a t Indicates that the Agent is in the current state s t The actions that can be taken under state s are related to the decision-making strategy. In the process route optimization problem, the action set A(s) represents all the optional serial number IDs under state s. x gather; In the definition of reward function, the reward for the agent will be determined based on three optimization goals: total process cost, total process time, and total process carbon emissions. The lower the three target values ​​are, the greater the reward should be given to the agent as feedback; The third step is to solve the problem using a deep reinforcement learning method based on the Actor-Critic structure.

2. The method according to claim 1, characterized in that In the second step, the established objective functions of total process cost, total process time and total carbon emissions are: The total process cost objective function is: In the formula, C all is the total cost, C mc is the machine tool change cost index, C tc is the tool change cost index, C m (MID i ) is the machine tool MID i The cost index, C t (TID i ) is the tool TID i The cost index, γ1 is the machine tool change function, γ2 is the tool change function, n is the total number of processes, TID i , TID i+1 MID are the tool codes used in process i and process i+1 respectively; i , MID i+1 They are the machine tool codes used for process i and process i+1 respectively; Among them, the calculation formula of γ1 is: The formula for calculating γ2 is: In the formula, Total process time objective function: In the formula, is the machining time of the machine tool, TM mc is the change time index of the machine tool, TM tc is the tool change time index; Objective function of total carbon emissions of the process: In the formula, are the cutting energy consumption and auxiliary energy consumption of the i-th process, respectively, and F ele is the carbon emission factor of electricity.

3. The method according to claim 1, characterized in that The third step is that in the training process of the Actor-Critic algorithm, the Critic updates its parameters by minimizing the mean square error (MSE) between the value estimate and the actual return; the Actor represents the policy function, which is updated according to the temporal difference method.