A process determination method, device, server and storage medium
By adjusting the sequence of work steps and designing a highly targeted neighborhood transformation method, the problems of low accuracy and low efficiency in traditional workpiece process planning methods are solved, and efficient optimization and precise planning of the process flow are achieved.
Patent Information
- Application Number
- CN202010865044.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-08-25
AI Technical Summary
Traditional workpiece process planning methods rely on business logic and are difficult to optimize from a global level, resulting in low accuracy of process planning solutions. In addition, meta-heuristic algorithms make insufficient use of specific problem characteristics, resulting in low solution efficiency.
By obtaining the basic data of the workpiece, adjusting the sequence of work steps, determining deletion and insertion rules, and generating target process sequences, we can avoid constructing large-scale initial populations, design highly targeted neighborhood transformation methods, enrich the solution space, and improve process planning accuracy and efficiency. .
It has improved the efficiency and accuracy of process flow solution, avoided the local optimal trap, optimized the process planning scheme, and improved the overall performance of workpiece process planning.
Smart Images

Figure CN112001637B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of process planning, and more specifically, to a process flow determination method, device, server and storage medium. Background Art
[0002] With the continuous development of society, the manufacturing industry is developing faster and faster. Workpiece process planning is becoming more and more important to the manufacturing industry. Whether the workpiece process planning scheme is reasonable and efficient will directly affect the processing efficiency of the entire production line and the overall cost of the production line layout. The workpiece process planning scheme can be considered as the process flow of the workpiece. The process flow of the workpiece can be obtained by reasonably allocating all the processing steps contained in the workpiece to a production line.
[0003] In traditional technology, the workpiece process planning scheme is a set of business logic extracted by experts based on experience, analyzing the processing characteristics of the workpiece, and then formulating the corresponding workpiece process planning scheme. This method relies on business logic to arrange the processing steps in sequence, and cannot optimize the process planning scheme from a global level. It is easy to fall into local optimality and cannot optimize the workpiece process planning scheme from a global level. Therefore, although traditional technology relies on business logic to improve the efficiency of process planning solution, it has the problem of low accuracy of process planning scheme.
[0004] The existing technology adopts a process planning method based on a meta-heuristic algorithm. Although the meta-heuristic algorithm can optimize the process planning scheme to improve the accuracy of the process planning scheme; however, the meta-heuristic method has a weak dependence on specific problems and cannot effectively utilize the specific characteristics of the problem, resulting in low efficiency in solving the workpiece process planning scheme; and the meta-heuristic method is to apply feature evolution rules (crossover, mutation, elite strategy, etc.) to a large-scale initial population, and continuously iterate to find the optimal workpiece process planning scheme. In the workpiece process planning problem, due to various business constraints, the solution space of the workpiece process planning problem is generally small, which makes it difficult to construct a large-scale initial population to use the meta-heuristic method to solve the workpiece process planning scheme. Summary of the invention
[0005] In view of this, the present invention provides a process flow determination method, device, server and storage medium to improve the process flow solution accuracy while improving the process flow solution efficiency. The technical solution is as follows:
[0006] The first aspect of the present invention discloses a method for determining a process flow, comprising:
[0007] Acquiring basic data of a workpiece, wherein the basic data includes a processing constraint and at least one process step of the workpiece;
[0008] Adjusting the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0009] Determine a target step in the first process sequence indicated by a deletion rule and a target position in the first process sequence indicated by an insertion rule;
[0010] Adjusting the position of the target process step in the first process sequence to the target position to obtain a second process sequence;
[0011] A target process sequence for the workpiece is determined according to the first process sequence and the second process sequence.
[0012] Optionally, adjusting the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece includes:
[0013] Sorting the at least one process step according to the processing order of the workpiece to generate a process step sequence of the workpiece;
[0014] Selecting each step in the step sequence in turn;
[0015] Determine each first process in the current process sequence corresponding to the machine tool type to which the currently selected process step belongs;
[0016] Adding the currently selected process step to the second process of the current process sequence to obtain a process sequence that satisfies the processing constraints;
[0017] The second process is an initially empty process added to the end of the current process sequence / a process selected from each of the first processes.
[0018] Optionally, the step of adding the currently selected process step to the second process of the current process sequence to obtain a process sequence that satisfies the processing constraint includes:
[0019] According to the order of the processes in the current process sequence, each of the first processes is detected in turn to determine whether the first process is the second process;
[0020] If the second process is detected from the first process sequence, the currently selected step is added to the second process to obtain a process sequence that satisfies the processing constraints.
[0021] Optionally, if the second process is not detected from each of the first processes, the method further includes:
[0022] Add an empty process at the end of the current process sequence;
[0023] The currently selected step is added to the process to obtain a process sequence that satisfies the processing constraints.
[0024] Optionally, the determining the target step in the first process sequence indicated by the deletion rule and the target position in the first process sequence indicated by the insertion rule includes:
[0025] Determine a target deletion rule from the at least one deletion rule according to the weight of each current deletion rule in the at least one deletion rule that is preset;
[0026] Determining a target processing step in the first process sequence indicated by the target deletion rule;
[0027] Determine a target insertion rule from the at least one insertion rule by using the weight of each current insertion rule in the at least one insertion rule that is preset;
[0028] A target position in the first process sequence indicated by the target insertion rule is determined.
[0029] Optionally, determining a target process sequence of the workpiece according to the first process sequence and the second process sequence includes:
[0030] Determine a third process sequence, and initialize the third process sequence to the first process sequence;
[0031] Determine a comparison result of first consumption information of the first process sequence, second consumption information of the second process sequence, and third consumption information of the third process sequence;
[0032] updating the first process sequence, the second process sequence and / or the third process sequence according to the comparison result;
[0033] Determine whether the preset iteration conditions are met at present;
[0034] If the iteration condition is currently satisfied, return to the step of “determining the target step in the first process sequence indicated by the deletion rule and the target position in the first process sequence indicated by the insertion rule”;
[0035] If the iteration condition is not satisfied currently, the third process sequence is determined as the target process sequence of the workpiece.
[0036] Optionally, also include:
[0037] Determine whether the number of times the step of "determining a comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence" has been performed since the last weight update in history exceeds a preset threshold;
[0038] If the number exceeds the preset threshold, updating the weight;
[0039] The updating of the weight includes updating the weight of each of the deletion rules in the at least one deletion rule and the weight of each of the insertion rules in the at least one insertion rule.
[0040] A second aspect of the present invention discloses a process flow determination device, comprising:
[0041] A first acquisition unit, configured to acquire basic data of a workpiece, wherein the basic data includes a processing constraint and at least one process step of the workpiece;
[0042] A first determining unit, configured to adjust the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0043] A second determining unit, configured to determine a target step in the first process sequence indicated by a deletion rule and a target position in the first process sequence indicated by an insertion rule;
[0044] An adjustment unit, used to adjust the position of the target step in the first process sequence to the target position to obtain a second process sequence
[0045] A third determining unit is used to determine a target process of a workpiece according to the first process sequence and the second process sequence.
[0046] The third aspect of the present invention discloses a server, comprising: at least one memory and at least one processor; the memory stores a program, the processor calls the program stored in the memory, and the program is used to implement the process flow determination method disclosed in any one of the first aspects of the present invention.
[0047] A fourth aspect of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the process flow determination method disclosed in any one of the first aspects of the present invention.
[0048] The present invention provides a process flow determination method, device, server and storage medium, which only need to construct a single feasible solution (first process sequence) of the workpiece based on the basic data of the workpiece, avoiding the disadvantage of needing to construct a large-scale initial population in the meta-heuristic method; and, starting from the single feasible solution, designing a suitable neighborhood transformation method according to the problem characteristics (a method of generating a second process sequence according to deletion rules and insertion rules), which is highly targeted at specific problems and more efficient in solving, not only avoiding the disadvantage of low solving efficiency of the meta-heuristic method, but also realizing the optimization of the process planning scheme and improving the accuracy of the process planning scheme; further, the present invention designs multiple types of neighborhood actions (deletion, insertion, etc.) to enrich the exploration direction of the understanding space, avoiding the disadvantage that traditional technologies are prone to falling into local optimality. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0050] Figure 1 A schematic diagram of a process flow determination method provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of another process flow determination method provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of the structure of a process flow determination device provided by an embodiment of the present invention;
[0053] Figure 4 A structural block diagram of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0056] See also Figure 1 , shows a flow chart of a process flow determination method provided in an embodiment of the present application, and the flow chart of the process flow determination method specifically includes the following steps:
[0057] S101: Acquire basic data of a workpiece, where the basic data includes a processing constraint of the workpiece and at least one process step;
[0058] In the embodiment of the present application, basic data corresponding to each workpiece is pre-set, wherein the basic data includes the processing constraints of the workpiece and at least one process step of the workpiece; after the workpiece of the process flow to be determined is determined, the pre-set processing constraints and at least one process step matching the workpiece of the process flow to be determined are obtained.
[0059] In the embodiment of the present application, the processing constraints of the workpiece may be: constraints on the processing sequence; production cycle constraints; requirements of the work step on the machine tool type; machine tool startup requirements (the machine tool can only be used after a specific work step is completed); processing error constraints; upper and lower limit requirements on the number of machine tools in the process; limit on the number of machine tool tools; constraints on the merging of processing tools for different work steps.
[0060] For example, a workpiece whose process flow is to be determined has four steps, and the processing order of the workpiece may be: step 1, step 2, step 3, step 4; the requirements of the step on the machine tool type may be: step 1 may be processed on the tools of machine tools of machine tool type 1 and machine tool type 2; the machine tool startup requirement may be: machine tool 3 can be used only after step 1 is processed.
[0061] S102: adjusting the order of each step in at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0062] In the embodiment of the present application, a process sequence is pre-set, and each process in the process sequence is composed of one or more process steps arranged in sequence, wherein the initial process sequence is empty. After obtaining at least one process step of a workpiece of a process flow to be determined, each process step in the at least one process step can be preliminarily arranged according to the processing sequence in the processing constraints of the workpiece to obtain a process step sequence; according to the order of arrangement of each process step in the process step sequence, the process step that is the most advanced and has not been selected is selected from the process step sequence.
[0063] Obtain a preset process sequence, and determine whether there is a process of the machine tool type required for the selected work step in the obtained process sequence; if so, determine each process of the machine tool type required for the selected work step from the process sequence (for the sake of distinction, each process in the determined processes is referred to as the first process); according to the arrangement order of each first process in the process sequence, select the first process that has not been selected and is ranked first from each first process.
[0064] And detect whether the selected first process is the second process, that is, add the selected work step to the selected first process, and update the process sequence; judge whether the updated process sequence meets the processing constraints of the workpiece. If the updated process sequence meets the processing constraints of the workpiece, that is, the first process is the second process, add the selected work step to the second process to obtain a process sequence that meets the processing constraints of the workpiece; if the updated process sequence does not meet the processing constraints, that is, the first process is not the second process, then according to the sorting order of each first process in the process sequence, re-select the first process that has not been selected and is ranked the front from each first process, and perform corresponding subsequent operations; if each process sequence obtained after adding the selected work step to each first process does not meet the processing constraints of the workpiece, that is, the second process is not detected from each first process, then add an empty process of the same machine tool type as the machine tool type required by the selected work step at the end of the process sequence, and add the selected work step to the added empty process to obtain a process sequence that meets the processing constraints of the workpiece.
[0065] If the acquired process sequence does not contain a process of the machine tool type required for the selected work step, then add an empty process of the machine tool type required for the selected work step to the end of the process sequence, and add the selected work step to the added empty process to obtain a process sequence that meets the processing constraints of the workpiece.
[0066] In the embodiment of the present application, the process sequence obtained by adding the last process step in the process step sequence is the first process sequence.
[0067] For example, the workpiece of the process flow to be determined has three steps, and the processing order of the workpiece of the process flow to be determined is step 1, step 2, and step 3; the machine tool type required for step 1 is machine tool type 1, the machine tool type required for step 2 is machine tool type 2, and the machine tool type required for step 3 is machine tool type 1.
[0068] After obtaining the three steps of the workpiece of the process flow to be determined, the three steps are preliminarily sorted according to the processing order in the processing constraints of the workpiece to obtain the step sequence of step 1, step 2, and step 3; according to the sorting order of each step in the step sequence, step 1 is selected from the step sequence; the pre-set process sequence is obtained, and since the machine tool type required for step 1 is machine tool type 1, process 1 (the first process) matching the machine tool type (machine tool type 1) required for step 1 is created in the pre-set process sequence; step 1 is added to process 1 to obtain a process sequence that meets the processing constraints of the workpiece. Among them, the machine tool type of the machine tool in process 1 is machine tool type 1.
[0069] Select step 2. Since the type of machine required for step 2 is machine type 2, it is determined that there is no first process of the machine type (machine type 2) required for step 2 in the current process sequence. Add an empty process 2 that matches the machine type (machine type 1) required for step 2 at the end of the current process sequence. Add step 2 to process 2 to obtain a process sequence that meets the processing constraints of the workpiece. Among them, the machine type of the machine tool in process 2 is machine type 2.
[0070] Select step 3. Since the machine tool type required for step 3 is machine tool type 1, it is determined that the first process of the machine tool type required for step 3 in the current process sequence is process 1; select process 1, add step 3 to process 1; update the current process sequence. If the number of machine tools in process 1 in the processing constraints of the workpiece of the process flow to be determined is 1, and the number of tools on the machine tool is also 2; according to the processing constraints of the workpiece of the process flow to be determined, it can be known that the updated current process sequence meets the processing constraints of the workpiece of the process flow to be determined, and process 1 is determined as the second process. Step 3 is added to the second process to obtain a process sequence that meets the processing constraints of the workpiece. At this time, the process sequence that meets the processing constraints of the workpiece can be considered as the first process sequence, and the first process sequence is process 1 (step 1, step 3) and process 2 (step 2).
[0071] If the number of machine tools in process 1 in the machining constraints of the workpiece of the process flow to be determined is 1, and the number of tools on the machine tool is also 1, then it is determined that the process sequence obtained after adding step 3 to process 1 does not meet the machining constraints of the workpiece of the process flow to be determined, and an empty process 3 matching the machine tool type (machine tool type 1) required by step 3 is added to the end of the current process sequence, and step 3 is added to process 3 to update the current process sequence to obtain a process sequence that meets the machining constraints of the workpiece. At this time, the process sequence that meets the workpiece can be considered as the first process sequence, and the first process sequence is process 1 (step 1), process 2 (step 2), and process 3 (step 3).
[0072] S103: Determine a target step in the first process sequence indicated by the deletion rule and a target position in the first process sequence indicated by the insertion rule;
[0073] In an embodiment of the present application, at least one deletion rule and at least one insertion rule are pre-set. After determining the first process sequence of the workpiece that satisfies the processing constraints according to at least one process step, a deletion rule can be selected from the at least one pre-set deletion rule according to the roulette method based on the weights of the pre-set deletion rules (the selected deletion rule is referred to as the target deletion rule for easy distinction), and the process step in the first process sequence indicated by the deletion rule is determined (the determined process step is referred to as the target process step for easy distinction); based on the weights of the pre-set insertion rules, an insertion rule can be selected from the at least one pre-set insertion rule according to the roulette method (the selected insertion rule is referred to as the target insertion rule for easy distinction), and the position in the first process sequence indicated by the insertion rule is determined (the determined position is referred to as the target position for easy distinction).
[0074] In the embodiment of the present application, at least one preset deletion rule may be a random deletion rule, a process deletion rule, a worst deletion rule, an associated deletion rule, etc.; at least one preset insertion rule may be a first insertion rule, an optimal insertion rule, a regretful insertion rule, a merge insertion rule, etc. Among them, the random deletion rule may be to randomly remove a preset number of steps; the process deletion rule may be to randomly remove all steps in a whole process; the worst deletion rule may be to randomly remove the step that causes the consumption information of the first process sequence to decrease the fastest until the preset removal quantity requirement is met; the associated deletion rule may be to remove a group of steps with relative processing error requirements each time until the preset removal quantity requirement is met. For example, there are 4 steps in the first process step sequence, and these 4 steps all have relative processing errors with each other. At this time, no matter how many preset removal quantities are, the 4 steps with relative processing errors in the first process step sequence will be removed.
[0075] The first insertion rule can be to insert the work step to the position of the process sequence where the work step will be added first; the optimal insertion rule can be to add the work step to the position where the consumption information of the first process sequence increases the least after the work step is inserted into the position in the first process sequence; the regret insertion rule can be that when there are multiple work steps to be inserted, for each work step to be inserted, the regret value (consumption information) of the process sequence obtained after the work step to be inserted is randomly inserted into the sequence can be calculated, and the work step to be inserted is first inserted to the position with the largest insertion regret value (that is, the work step to be inserted is inserted to the best insertion position), and after the insertion is completed, the regret values of the remaining work steps to be inserted are updated, and then the next insertion is made; the merge insertion rule can be to preferentially insert the work step to the position where the tool can be merged. For example, if work steps 2 and 3 in the first process step sequence can be merged with tools, the work step can be inserted to the position where work step 2 or work step 3 is located without violating the processing constraints.
[0076] In the embodiment of the present application, the consumption information of the first process sequence may be calculated as the total machine tool cost of all machine tools in the first process sequence * weight 1 + the total tool cost of tools with work steps on all machine tools in the first process sequence * weight 2. Among them, the costs of machine tools of the same type are the same, the costs of machine tools of different types are different, and the costs of tools on different machine tools may be the same or different.
[0077] In the present embodiment, the specific data of weight 1 and weight 2 are preset. The inventor can set the specific values of the preset weight 1 and weight 2 according to his own needs, and the present embodiment is not limited thereto.
[0078] S104: adjusting the position of the target process step in the first process sequence to the target position to obtain a second process sequence;
[0079] In an embodiment of the present application, after determining the target step in the first process indicated by the selected deletion rule and determining the target position in the first process indicated by the selected insertion rule, the position of the target step in the first process sequence is adjusted to the target position to obtain the second process sequence.
[0080] S105: Determine a target process sequence for the workpiece according to the first process sequence and the second process sequence.
[0081] In the embodiment of the present application, after adjusting the position of the target step in the first process to the target position to obtain the second process sequence, the consumption information of the first process sequence and the consumption information of the second process sequence are calculated respectively, and then the target process sequence of the workpiece of the process flow to be determined is determined according to the calculated consumption information of the first process sequence and the consumption information of the second process sequence (that is, the process flow of the workpiece of the process flow to be determined is determined). The specific process of determining the target process sequence of the workpiece of the process flow to be determined according to the calculated consumption information of the first process sequence and the consumption information of the second process sequence can be referred to below. Figure 2 The description of steps S208 to S214 will not be repeated here.
[0082] The present invention provides a process flow determination method, which only needs to construct a single feasible solution (first process sequence) of the workpiece based on the basic data of the workpiece, avoiding the disadvantage of the metaheuristic method that a large-scale initial population needs to be constructed; and, starting from the single feasible solution, a suitable neighborhood transformation method is designed according to the characteristics of the problem (a method for generating a second process sequence according to deletion rules and insertion rules), which is highly targeted at specific problems and more efficient in solving, not only avoiding the disadvantage of low solving efficiency of the metaheuristic method, but also realizing the optimization of the process planning scheme and improving the accuracy of the process planning scheme; further, the present invention designs multiple types of neighborhood actions (deletion, insertion, etc.) to enrich the exploration direction of the understanding space, avoiding the disadvantage that traditional technologies are prone to falling into local optimality.
[0083] See also Figure 2 , shows a flow chart of another process flow determination method provided by an embodiment of the present invention, the process flow determination method specifically includes the following steps:
[0084] S201: Acquire basic data of a workpiece, where the basic data includes a processing constraint and at least one process step of the workpiece;
[0085] In the specific execution process of step S201, the specific execution process and implementation principle of step S201 are the same as those disclosed in the present invention. Figure 1 The specific execution process and implementation principle of step S101 are the same as those disclosed in the above invention. Figure 1 The corresponding parts in will not be repeated here.
[0086] S202: adjusting the order of each step in at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0087] In the specific execution process of step S202, the specific execution process and implementation principle of step S202 are the same as those disclosed in the present invention. Figure 1 The specific execution process and implementation principle of step S102 are the same as those disclosed in the above-mentioned present invention. Figure 1The corresponding parts in will not be repeated here.
[0088] S203: determining a target deletion rule from at least one deletion rule according to the weight of each current deletion rule in at least one preset deletion rule;
[0089] In the embodiment of the present application, a target deletion rule may be selected from the at least one preset deletion rule according to the weight of each current deletion rule in the at least one preset deletion rule and according to the roulette method.
[0090] S204: Determine a target step in the first process sequence indicated by the target deletion rule;
[0091] In the embodiment of the present application, after determining the selected target deletion rule, the target step indicated by the target deletion rule in the first process sequence is determined. The target step can be one step or multiple steps. For example, when the target deletion rule is a process deletion rule, the target step indicated by the target deletion rule is all steps in the entire process.
[0092] S205: Determine a target insertion rule from the at least one insertion rule by using the weight of each current insertion rule in the at least one insertion rule that is preset;
[0093] In the embodiment of the present application, a target insertion rule may be selected from the at least one pre-set insertion rule according to a roulette wheel method based on the weight of each current insertion rule in the at least one pre-set insertion rule.
[0094] S206: Determine the target position in the first process sequence indicated by the target insertion rule;
[0095] In the embodiment of the present application, after the selected target insertion rule is determined, the target position in the first process sequence indicated by the target insertion rule is determined.
[0096] S207: adjusting the position of the target step in the first process sequence to the target position to obtain a second process sequence;
[0097] In an embodiment of the present application, after determining the target step indicated by the target deletion rule in the first process and determining the target position of the first process sequence indicated by the target insertion rule, the position of the target step in the first process sequence is adjusted to the target position to obtain the second process sequence.
[0098] For example, taking the example in step S102 above, the first process sequence is process 1 (process step 1, process step 3), process 2 (process step 2). The at least one preset deletion rule may be a random deletion rule, a process deletion rule, a worst deletion rule, or an associated deletion rule. Among them, the weight of the random deletion rule is 0.4, the weight of the process deletion rule is 0.3, the weight of the worst deletion rule is 0.2, and the step indicated by the worst deletion rule is step 2 in the first process sequence and the preset random removal quantity is 1, the weight of the associated deletion rule is 0.1, and the step indicated by the associated deletion rule is step 3 in the first process sequence and the preset random removal quantity is 1.
[0099] At least one pre-set insertion rule is the first insertion rule, the optimal insertion rule, the regretful insertion rule, and the combined insertion rule. Among them, the weight of the first insertion rule is 0.3, and the target position of the first process sequence indicated by the first insertion rule is process 1, the weight of the optimal insertion rule is 0.2, and the target position of the first process sequence indicated by the optimal insertion rule is process 2, the weight of the regretful insertion is 0.4, and the target position of the first process sequence indicated by the optimal insertion rule indicated by the regretful insertion rule is process 1, the weight of the combined insertion is 0.1, and the target position of the first process sequence indicated by the optimal insertion rule is process step 2.
[0100] After determining the first process sequence of the workpiece that satisfies the processing constraints according to at least one process step, if the target deletion rule selected from at least one preset deletion rule according to the roulette method based on the weights of the preset deletion rules is the worst deletion rule, the target process step indicated by the worst deletion rule in the first process sequence is determined to be process step 2. If a target insertion rule is selected from at least one preset insertion rule as the first insertion rule based on the weight of each current insertion rule in at least one preset insertion rule according to the roulette method, the target position in the first process sequence indicated by the first insertion rule is determined to be process 1; the position of process step 2 (target process step) in the first process sequence is adjusted to process 1 to obtain a second process sequence of process 1 (process step 1, process step 2, process step 3).
[0101] S208: Determine the third process sequence, and initialize the third process sequence to the first process sequence;
[0102] In an embodiment of the present application, the third process sequence is the historically optimal process sequence. Before iterative updating, the first process sequence is the third process sequence, that is, the initialized third process sequence is the first process sequence. Correspondingly, the third consumption information of the initialized third process sequence is the first consumption information of the first process sequence.
[0103] S209: Determine a comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence;
[0104] In an embodiment of the present application, after adjusting the position of the target step in the first process sequence to the target position to obtain the second process sequence, the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence are calculated respectively, and based on the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence, the comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence is determined.
[0105] For example, taking the above-mentioned step S208 as an example, the first consumption information of the first process sequence is ((machine tool cost of machine tool type 1*1+machine tool cost of machine tool type 2*1))*weight 1+(tool cost of step 1+tool cost of step 2+tool cost of step 3)*weight 2; the second consumption information of the second process sequence is machine tool cost of machine tool type 1*1*weight 1+(tool cost of step 1+tool cost of step 2+tool cost of step 3)*weight 2; if the third process sequence is an initialized third process sequence, the third consumption information of the third process sequence is equal to the first consumption information of the first process sequence ((machine tool cost of machine tool type 1*1+machine tool cost of machine tool type 2*1))*weight 1+(tool cost of step 1+tool cost of step 2+tool cost of step 3)*weight 2.
[0106] S210: updating the first process sequence, the second process sequence and / or the third process sequence according to the comparison result;
[0107] In an embodiment of the present application, it is determined whether the second consumption information exceeds the third consumption information of the third process sequence; if the second consumption information does not exceed the third consumption information, the third process sequence is updated to the second process sequence, and the first process sequence is updated to the second process sequence, that is, the historical optimal process sequence is updated to the second process sequence, and the first process sequence is updated to the second process sequence, that is, the current process sequence is updated to the second process sequence, so that the current process sequence can continue to be used for iterative update when the pre-set iteration conditions are met.
[0108] If the second consumption information exceeds the third consumption information, determine whether the second consumption information exceeds the first consumption information; if the second consumption information does not exceed the first consumption information, update the first process sequence to the second process sequence, and update the first process sequence to the second process sequence, that is, update the current process sequence to the second process sequence, so that when the preset iteration conditions are met, continue to use the current process sequence for iterative update; if the second consumption information exceeds the third consumption information, determine whether the second process sequence is accepted by the simulated annealing criterion; if the second process sequence is accepted by the simulated annealing criterion, update the first process sequence to the second process sequence, that is, update the current process sequence to the second process sequence, so that when the preset iteration conditions are met, use the current process sequence for iterative update; if the second process sequence is not accepted by the simulated annealing criterion, do not update the first process sequence and the third process sequence, and continue to use the first process sequence for iterative update when the current number of iterations meets the preset iteration conditions.
[0109] S211: Determine whether the preset iteration condition is currently met; if the preset iteration condition is met, execute S203; if the preset iteration condition is not met, execute step S212.
[0110] In the embodiment of the present application, an iteration condition is preset, and the preset iteration condition may be that the number of iterations of the process sequence cannot exceed a preset threshold indicated by the iteration condition. After the first process sequence is iterated to obtain the second process sequence, the number of iterations of the current process sequence (the first process sequence) is determined, and it is determined whether the current number of iterations exceeds the preset threshold indicated by the preset iteration condition. If the current number of iterations does not exceed the preset threshold, the iterative update continues.
[0111] When the current number of iterations exceeds a preset threshold, the current third process sequence is determined as the final process sequence of the workpiece of the process flow to be determined (for ease of distinction, the final process sequence is called the target process sequence, that is, the final process sequence is the process flow).
[0112] Furthermore, in an embodiment of the present application, the pre-set iteration condition can indicate the total iteration time. After iterating the first process sequence to obtain the second process sequence, the current time is determined, and it is judged whether the time interval from the first iteration time to the current time exceeds the total iteration time. If not, the iterative update continues; if exceeded, the current third process sequence is determined as the target process sequence of the workpiece.
[0113] Furthermore, in an embodiment of the present application, a preset threshold for updating the weights of each preset deletion rule and each insertion rule is preset; while iteratively updating the first process sequence to obtain the second process sequence, it is necessary to recalculate the weights of each preset deletion rule and each insertion rule, and judge the number of times from the most recent historical update of the weight to the current calculation of the preset deletion rules and each insertion rule, that is, judge whether the number of times from the most recent historical update of the weight to the present execution of the step of "determining the comparison results of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence" exceeds the preset threshold. If exceeded, update the preset weights of each deletion rule and each insertion rule.
[0114] In an embodiment of the present application, for at least one deletion rule, the method for calculating the weight of the deletion rule can be: determine whether the deletion rule has been selected as a target deletion rule in the process from the most recent weight update in history to the current iterative update of the first process sequence; if so, determine the number of times it has been selected, and whether the second consumption information of the second process sequence obtained by the current iterative update of the first process sequence exceeds the third consumption information of the third process sequence; if the second consumption information does not exceed the third consumption information, determine the score value of the target deletion rule If the second consumption information does not exceed the first consumption information, determine the score value of the target deletion rule If the second consumption information exceeds the third consumption information, exceeds the first consumption information, but is accepted by the simulated annealing criterion, determine the score value of the target deletion rule If the second consumption information exceeds the third consumption information, exceeds the first consumption information, and is not accepted by the simulated annealing criterion, determine the score value of the target deletion rule .
[0115] For example, if the preset threshold is 5, and the target deletion rule for the second process sequence obtained by iteratively updating the current first process sequence using the target deletion rule is the worst deletion rule, it is determined whether the number of times the step of "determining the comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence" has been executed since the most recent weight update in history exceeds 5. If it exceeds, and the second consumption information of the second process sequence obtained does not exceed the third consumption information of the third process sequence, the score value of the target deletion rule (worst deletion) is further determined. ; If the deletion rule is the current target deletion rule, and the number of times the worst deletion rule is selected as the target deletion rule from the most recent weight update in history to the current iterative update of the first process sequence is 2, the weight of the target deletion rule is calculated as shown in the following formula:
[0116]
[0117] in, is the current iteration stage, represent The weight value of the stage, represent The score value of the stage, is the parameter that controls the weight change. represent The number of times a deletion rule in a stage is selected as a target deletion rule.
[0118] If the worst deletion rule is not the current target deletion rule, the weight of the worst deletion rule is calculated as shown in the following formula:
[0119]
[0120] In an embodiment of the present application, the calculation method of the weight of the pre-set insertion rule is the same as the calculation method of the pre-set deletion rule. Please refer to the calculation process of the weight of the above-mentioned deletion rule, and this application will not repeat it here.
[0121] In an embodiment of the present application, by updating the weights of each pre-set deletion rule and each insertion rule, the possible information for selecting each deletion rule and each insertion rule can be better improved, enriching the exploration direction, thereby avoiding the disadvantage that greedy rules based on expert experience are prone to falling into local optimality.
[0122] S212: Determine the current third process sequence as the target process sequence of the workpiece.
[0123] In the embodiment of the present application, when the iteration condition is not met, the current third process sequence is determined as the target process sequence of the workpiece of the process flow to be determined. When the iteration condition is met, if the second consumption information of the second process sequence does not exceed the third consumption information of the third process sequence, the third process sequence is determined as the second process sequence, that is, the second process sequence is used as the target process sequence of the workpiece; if the second consumption information of the second process sequence exceeds the third consumption information of the third process sequence, regardless of whether the second consumption information of the second process sequence exceeds the first consumption information of the first process sequence, or whether the second process sequence is accepted by the simulated annealing criterion, the current third process sequence (the historically optimal process sequence) is determined as the target process sequence of the workpiece, that is, the current third process sequence is determined as the process flow of the workpiece.
[0124] In order to better understand the above content, the following examples are given:
[0125] For example, taking the example in step S102 above, the first process sequence is process 1 (process step 1, process step 3), process 2 (process step 2). The at least one preset deletion rule may be a random deletion rule, a process deletion rule, a worst deletion rule, and an associated deletion rule, wherein the weight of the random deletion rule is 0.4, the weight of the process deletion rule is 0.3, the weight of the worst deletion rule is 0.2, and the weight of the associated deletion rule is 0.1. The at least one preset insertion rule is a first insertion rule, an optimal insertion rule, a regretful insertion, and a merged insertion, wherein the weight of the first insertion rule is 0.3, the weight of the optimal insertion rule is 0.2, the weight of the regretful insertion is 0.4, and the weight of the merged insertion is 0.1.
[0126] After determining the first process sequence of the workpiece that satisfies the processing constraints according to at least one process step, if the target deletion rule selected from at least one preset deletion rule according to the roulette wheel method based on the weights of the preset deletion rules is a random deletion rule, it can be determined that the target process step indicated by the random deletion rule in the first process sequence is process step 2. If a target insertion rule is selected from at least one preset insertion rule as the first insertion rule based on the weight of each current insertion rule in at least one preset insertion rule according to the roulette wheel method, it can be seen from the example in the above step S102 that the target position in the first process sequence indicated by the first insertion rule is process 1; the position of process step 2 (target process step) in the first process sequence is adjusted to process 1 to obtain a second process sequence of process 1 (process step 1, process step 2, process step 3).
[0127] Calculate the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence respectively; determine whether the second consumption information exceeds the consumption information of the historical optimal process sequence (the consumption information of the third process sequence); if not, update the third process sequence to the second process sequence, and update the first process sequence to the second process sequence; and determine whether the current number of iterations exceeds the preset threshold indicated by the preset iteration condition; if exceeded, determine the current third process sequence (second process sequence) as the target process sequence of the workpiece of the process flow to be determined; if not exceeded, continue to update and iterate the current first process sequence (second process sequence).
[0128] If the second consumption information exceeds the consumption information of the historically optimal process sequence, further determine whether the second consumption information exceeds the first consumption information. If the second consumption information does not exceed the first consumption information, update the first process sequence to the second process sequence, and determine whether the current number of iterations exceeds the preset threshold indicated by the preset iteration condition. If it exceeds, determine the current third process sequence (the consumption information of the historically optimal process sequence) as the target process sequence for the workpiece of the process flow to be determined; if it does not exceed, continue to update and iterate the current first process sequence (second process sequence).
[0129] If the second consumption information exceeds the first consumption information, it is further determined whether the second process sequence is accepted by the simulated annealing criterion. If the second process sequence is accepted by the simulated annealing criterion, the first process sequence is updated to the second process sequence; and it is determined whether the current number of iterations exceeds the preset threshold indicated by the preset iteration condition. If it exceeds, the current third process sequence (the historically optimal process sequence) is determined as the target process sequence of the workpiece of the process flow to be determined; if it does not exceed, the current first process sequence (second process sequence) continues to be updated and iterated.
[0130] If the second process sequence is not accepted by the simulated annealing criterion, determine whether the current number of iterations exceeds the preset threshold indicated by the preset iteration condition. If it exceeds, determine the current third process sequence (the historically optimal process sequence) as the target process sequence of the workpiece of the process flow to be determined, that is, determine the current third process sequence as the process flow of the workpiece; if it does not exceed, continue to update and iterate the current first process sequence (first process sequence).
[0131] Based on the process flow determination method disclosed in the embodiment of the present invention, the embodiment of the present invention also discloses a process flow determination device, such as Figure 3 As shown, the process flow determination device includes:
[0132] A first acquisition unit 31 is used to acquire basic data of the workpiece, where the basic data includes a processing constraint and at least one process step of the workpiece;
[0133] A first determining unit 32, configured to adjust the order of each step in at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0134] A second determining unit 33, used to determine a target step in the first process sequence indicated by the deletion rule and a target position in the first process sequence indicated by the insertion rule;
[0135] An adjusting unit 34, used for adjusting the position of the target process step in the first process sequence to the target position to obtain a second process sequence;
[0136] The third determining unit 35 is used to determine a target process of the workpiece according to the first process sequence and the second process sequence.
[0137] The specific principles and execution processes of each unit in the process flow determination device disclosed in the above embodiment of the present invention are the same as the process flow determination method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the process flow determination method disclosed in the above embodiment of the present invention, and will not be repeated here.
[0138] The present invention provides a process flow determination device, which only needs to construct a single feasible solution (first process sequence) of the workpiece according to the basic data of the workpiece, avoiding the disadvantage of the metaheuristic method that a large-scale initial population needs to be constructed; and, starting from the single feasible solution, a suitable neighborhood transformation method is designed according to the characteristics of the problem (a method for generating a second process sequence according to deletion rules and insertion rules), which is highly targeted at specific problems and more efficient in solving, not only avoiding the disadvantage of low solving efficiency of the metaheuristic method, but also realizing the optimization of the process planning scheme and improving the accuracy of the process planning scheme; further, the present invention designs multiple types of neighborhood actions (deletion, insertion, etc.) to enrich the exploration direction of the understanding space, avoiding the disadvantage that traditional technologies are prone to falling into local optimality.
[0139] In the embodiment of the present application, preferably, the first determining unit includes:
[0140] A first generating unit, used to sort at least one working step according to the processing order of the workpiece to generate a working step sequence of the workpiece;
[0141] A selection unit, used to select each step in the step sequence in turn;
[0142] A fourth determining unit, used to determine each first process of the machine tool type corresponding to the currently selected step in the current process sequence;
[0143] A first adding unit, used for adding the currently selected process step to the second process of the current process sequence to obtain a process sequence that satisfies the processing constraints;
[0144] The second process is an initially empty process added to the end of the current process sequence / a process selected from each first process.
[0145] In the embodiment of the present application, preferably, the first adding unit includes:
[0146] A detection unit, used to detect each first process in turn according to the order of the processes in the current process sequence to determine whether the first process is the second process;
[0147] The second adding unit is used to add the currently selected step to the second process to obtain a process sequence that satisfies the processing constraints if the second process is detected from the first process sequence.
[0148] Furthermore, if the second process is not detected from each of the first processes, the process flow determination device provided in the embodiment of the present application further includes:
[0149] The third adding unit is used to add an empty process at the end of the current process sequence;
[0150] The fourth adding unit is used to add the currently selected step to the process to obtain a process sequence that meets the processing constraints.
[0151] In the embodiment of the present application, preferably, the second determining unit includes:
[0152] a fifth determining unit, configured to determine a target deletion rule from at least one deletion rule according to a weight of each current deletion rule in at least one preset deletion rule;
[0153] A sixth determining unit, configured to determine a target step in the first process sequence indicated by the target deletion rule;
[0154] a seventh determination unit, configured to determine a target insertion rule from at least one insertion rule by using a weight of each current insertion rule in at least one preset insertion rule;
[0155] The eighth determining unit is used to determine the target position in the first process sequence indicated by the target insertion rule.
[0156] In the embodiment of the present application, preferably, the third determining unit includes:
[0157] a ninth determining unit, configured to determine a third process sequence and initialize the third process sequence to be the first process sequence;
[0158] a tenth determining unit, configured to determine a comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence;
[0159] A first updating unit, used for updating the first process sequence, the second process sequence and / or the third process sequence according to the comparison result;
[0160] A judgment unit, used to judge whether a preset iteration condition is currently met;
[0161] A return unit, used to return to execute the "first determination unit" if the iteration condition is currently met;
[0162] The eleventh determining unit is used to determine the current third process sequence as the target process sequence of the workpiece if the iteration condition is not satisfied currently.
[0163] Furthermore, the process flow determination device provided in the embodiment of the present application further includes:
[0164] The twelfth determination unit is used to determine whether the number of times the "tenth determination unit" has been executed since the last weight update in history exceeds a preset threshold;
[0165] A second updating unit, used for updating the weight if the number exceeds a preset threshold;
[0166] Wherein, updating the weight includes updating the weight of each deletion rule in at least one deletion rule and the weight of each insertion rule in at least one insertion rule.
[0167] The following takes the application of the request method to the server as an example to describe in detail the hardware structure of the server to which the process flow determination method provided in the embodiment of the present application is applicable.
[0168] A process flow determination method provided in an embodiment of the present application can be applied to a server, which can be a service device on the network side that provides services to users. It can be a server cluster composed of multiple servers or a single server.
[0169] Optional, Figure 4 The hardware structure block diagram of the server side to which the process flow determination method provided in the embodiment of the present application is applicable is shown. Figure 4 , the hardware structure of the server may include: a processor 41, a memory 42, a communication interface 43 and a communication bus 44;
[0170] In the embodiment of the present invention, the number of the processor 41, the memory 42, the communication interface 43, and the communication bus 44 may be at least one, and the processor 41, the memory 42, and the communication interface 43 communicate with each other through the communication bus 44;
[0171] The processor 41 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;
[0172] The memory 42 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0173] The memory stores a program, and the processor can call the program stored in the memory, and the program is used to:
[0174] Acquiring basic data of the workpiece, the basic data including machining constraints and at least one process step of the workpiece;
[0175] Adjusting the order of each step in at least one step according to the processing constraint to generate a first process sequence of the workpiece;
[0176] Determine a target process step in the first process sequence indicated by the deletion rule and a target position in the first process sequence indicated by the insertion rule;
[0177] Adjusting the position of the target process step in the first process sequence to the target position to obtain a second process sequence;
[0178] A target process sequence for the workpiece is determined based on the first process sequence and the second process sequence.
[0179] The functions of the relevant programs can be found in the detailed description of a process flow determination method provided in an embodiment of the present application above, which will not be elaborated here.
[0180] Furthermore, an embodiment of the present application also provides a computer-readable computer storage medium, in which computer-readable storage medium is stored computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned process flow determination method.
[0181] For specific contents of the computer executable instructions, please refer to the detailed description of a process flow determination method provided in the embodiment of the present application above, which will not be repeated here.
[0182] The above is a detailed introduction to a process flow determination method, device, server and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0183] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0184] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device that includes a series of elements is inherent to the elements, or also includes elements inherent to these processes, methods, articles or devices. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0185] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for determining a process flow, characterized in that: include: Acquiring basic data of a workpiece, wherein the basic data includes a processing constraint and at least one process step of the workpiece; Adjusting the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece; Determine a target step in the first process sequence indicated by a deletion rule and a target position in the first process sequence indicated by an insertion rule; Adjusting the position of the target process step in the first process sequence to the target position to obtain a second process sequence; Determine a target process sequence for the workpiece according to the first process sequence and the second process sequence; The step of determining a target process sequence of the workpiece according to the first process sequence and the second process sequence includes: Determine a third process sequence, initialize the third process sequence to be the first process sequence, and the third process sequence is a historically optimal process sequence; Determine a comparison result of first consumption information of the first process sequence, second consumption information of the second process sequence, and third consumption information of the third process sequence; updating the first process sequence, the second process sequence and / or the third process sequence according to the comparison result; Determine whether the preset iteration conditions are met at present; If the iteration condition is currently satisfied, return to the step of "determining the target step in the first process sequence indicated by the deletion rule and the target position in the first process sequence indicated by the insertion rule"; If the iteration condition is not met currently, determining the current third process sequence as the target process sequence of the workpiece; The updating of the first process sequence, the second process sequence and / or the third process sequence according to the comparison result includes: determining whether the second consumption information exceeds the third consumption information of the third process sequence; If the second consumption information does not exceed the third consumption information, updating the third process sequence to the second process sequence, and updating the first process sequence to the second process sequence; If the second consumption information exceeds the third consumption information, determining whether the second consumption information exceeds the first consumption information; if the second consumption information does not exceed the first consumption information, updating the first process sequence to the second process sequence; If the second consumption information exceeds the first consumption information, determining whether the second process sequence is accepted by the simulated annealing criterion; if the second process sequence is accepted by the simulated annealing criterion, updating the first process sequence to the second process sequence; If the second process sequence is not accepted by the simulated annealing criterion, the first process sequence and the third process sequence are not updated.
2. The method according to claim 1, characterized in that The step of adjusting the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece includes: Sorting the at least one process step according to the processing order of the workpiece to generate a process step sequence of the workpiece; Selecting each step in the step sequence in turn; Determine each first process in the current process sequence corresponding to the machine tool type to which the currently selected process step belongs; Adding the currently selected process step to the second process of the current process sequence to obtain a process sequence that satisfies the processing constraints; The second process is an initially empty process added to the end of the current process sequence / a process selected from each of the first processes.
3. The method according to claim 2, characterized in that The step of adding the currently selected process step to the second process of the current process sequence to obtain a process sequence that satisfies the processing constraint includes: According to the order of the processes in the current process sequence, each of the first processes is detected in turn to determine whether the first process is the second process; If the second process is detected from the first process sequence, the currently selected step is added to the second process to obtain a process sequence that satisfies the processing constraints.
4. The method according to claim 3, characterized in that If the second process is not detected from each of the first processes, the method further comprises: Add an empty process at the end of the current process sequence; The currently selected step is added to the process to obtain a process sequence that satisfies the processing constraints.
5. The method according to claim 1, characterized in that The determining of the target step in the first process sequence indicated by the deletion rule and the target position in the first process sequence indicated by the insertion rule includes: Determine a target deletion rule from the at least one deletion rule according to the weight of each current deletion rule in the at least one deletion rule that is preset; Determining a target step in the first process sequence indicated by the target deletion rule; Determine a target insertion rule from the at least one insertion rule by using the weight of each current insertion rule in the at least one insertion rule that is preset; A target position in the first process sequence indicated by the target insertion rule is determined.
6. The method according to claim 1, characterized in that Also includes: Determine whether the number of times the step of "determining a comparison result of the first consumption information of the first process sequence, the second consumption information of the second process sequence, and the third consumption information of the third process sequence" has been performed since the last weight update in history exceeds a preset threshold; If the number exceeds the preset threshold, updating the weight; The updating of the weight includes updating the weight of each of the deletion rules in the at least one deletion rule and the weight of each of the insertion rules in the at least one insertion rule.
7. A process flow determination device, characterized in that: include: A first acquisition unit, configured to acquire basic data of a workpiece, wherein the basic data includes a processing constraint and at least one process step of the workpiece; A first determining unit, configured to adjust the order of each step in the at least one step according to the processing constraint to generate a first process sequence of the workpiece; A second determining unit, configured to determine a target step in the first process sequence indicated by a deletion rule and a target position in the first process sequence indicated by an insertion rule; An adjusting unit, used for adjusting the position of the target step in the first process sequence to the target position to obtain a second process sequence; a third determining unit, configured to determine a target process of a workpiece according to the first process sequence and the second process sequence; The third determining unit is specifically configured to: Determine a third process sequence, initialize the third process sequence to be the first process sequence, and the third process sequence is a historically optimal process sequence; Determine a comparison result of first consumption information of the first process sequence, second consumption information of the second process sequence, and third consumption information of the third process sequence; updating the first process sequence, the second process sequence and / or the third process sequence according to the comparison result; Determine whether the preset iteration conditions are met at present; If the iteration condition is currently satisfied, return to execute the step of "determining the target step in the first process sequence indicated by the deletion rule and the target position in the first process sequence indicated by the insertion rule"; If the iteration condition is not met currently, determining the current third process sequence as the target process sequence of the workpiece; The third determining unit updates the first process sequence, the second process sequence and / or the third process sequence according to the comparison result, including: A third determining unit determines whether the second consumption information exceeds the third consumption information of the third process sequence; If the second consumption information does not exceed the third consumption information, updating the third process sequence to the second process sequence, and updating the first process sequence to the second process sequence; If the second consumption information exceeds the third consumption information, determining whether the second consumption information exceeds the first consumption information; if the second consumption information does not exceed the first consumption information, updating the first process sequence to the second process sequence; If the second consumption information exceeds the first consumption information, determining whether the second process sequence is accepted by the simulated annealing criterion; if the second process sequence is accepted by the simulated annealing criterion, updating the first process sequence to the second process sequence; If the second process sequence is not accepted by the simulated annealing criterion, the first process sequence and the third process sequence are not updated.
8. A server, characterized in that: include: at least one memory and at least one processor; The memory stores a program, and the processor calls the program stored in the memory, and the program is used to implement the process flow determination method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the process flow determination method described in any one of claims 1-6.
