Simplified fidelity evaluation and optimization method for digital twin geometric model of manufacturing equipment

By combining the quadratic error measurement and edge folding methods with Wasserstein distance and multi-objective optimization, the gap in fidelity evaluation in the simplification of digital twin geometric models of manufacturing equipment is solved, and efficient simplification and preservation of mesh models with large differences in shape distribution are achieved. Authenticity maintained.

CN118674902APending Publication Date: 2024-09-20CHONGQING UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410691034.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult with the existing technology to fully simplify the digital twin geometric model of manufacturing equipment while maintaining high fidelity in key areas. Especially for irregular grid models with large differences in shape distribution, the overall simplification method can easily destroy key shape features, and It is difficult to effectively evaluate the results of simplification.

Method used

The quadratic error measure and edge folding method are used to simplify the grid model. By calculating the fidelity of each geometric shape feature after the grid model is simplified, Wasserstein distance is used to measure the difference in frequency density distribution, and a multi-objective optimization problem is constructed to solve the optimal problem. Optimal edge folding cost weights are combined with the TOPSIS method to screen cost weights to balance fidelity and simplification.

Benefits of technology

It achieves full simplification of the digital twin geometric model of manufacturing equipment while maintaining high fidelity, reducing computational complexity, retaining sufficient geometric feature information, and providing a basis for subsequent simulation, analysis and optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674902A
    Figure CN118674902A
Patent Text Reader

Abstract

The invention belongs to the technical field of digital twinning geometric models, and particularly relates to a manufacturing equipment digital twinning geometric model simplification fidelity evaluation and optimization method, which comprises the following steps: S1, realizing grid model simplification by adopting secondary error measurement and edge folding; s2, calculating the fidelity of the simplified grid model; S3, constructing a multi-objective optimization problem by taking the maximum total fidelity value of the simplified grid model as an objective function and taking the cost weight of edge folding optimization as a decision variable; s4, a plurality of multi-target meta-heuristic algorithms are used to solve the multi-target optimization problem in the S3; s5, screening the cost weights solved by various multi-target meta-heuristic algorithms to obtain an optimal cost weight; and S6, simplifying the grid model by using the optimal cost weight. According to the method, the digital twinning geometric model of the manufacturing equipment can be fully simplified, and meanwhile, the high fidelity of the key area in the lightweight process of the digital twinning geometric model is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of digital twin geometric models, and in particular relates to a simplified fidelity evaluation and optimization method for a digital twin geometric model of manufacturing equipment. Background Art

[0002] For the lightweight problem of digital twin geometric models of manufacturing equipment, it is necessary to adopt appropriate simplification strategies according to the distribution differences of the shape features of the geometric models. In existing studies on mesh model simplification, the evaluation of simplification quality and fidelity mostly uses methods based on vertex difference metrics such as Hausdorff distance. Such methods are suitable for smooth and continuous meshes or meshes with uniform shape distribution, but are less applicable to irregular meshes with large shape distribution differences. Therefore, there is a gap in the evaluation method of mesh model simplification fidelity.

[0003] There are many effective mesh simplification methods for mesh model simplification, but they are mainly aimed at the overall simplification of meshes. The simplification of the manufacturing equipment twin geometry model needs to maintain the integrity of the shape of the key mesh area, and the overall simplification method is difficult to simplify different shape features to different degrees according to the actual simplification needs. Since the manufacturing equipment twin geometry model belongs to an irregular mesh with large differences in shape distribution, if overall simplification is used, the key shape features are easily destroyed (that is, the fidelity is destroyed). However, if overall simplification is not performed, the existing mesh simplification fidelity evaluation method is difficult to effectively evaluate the simplification guarantee, which makes it difficult to evaluate the mesh simplification results and prone to insufficient simplification.

[0004] Therefore, how to fully simplify the digital twin geometric model of manufacturing equipment while ensuring the high fidelity of key areas in the lightweight process as much as possible has become an urgent problem to be solved. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for evaluating and optimizing the simplified fidelity of the digital twin geometric model of manufacturing equipment, which can fully simplify the digital twin geometric model of manufacturing equipment while ensuring the high fidelity of key areas in its lightweighting process.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] The simplified fidelity evaluation and optimization method of the digital twin geometric model of manufacturing equipment includes the following steps:

[0008] S1. After setting the initial value of the cost weight of edge folding optimization, the quadratic error metric and edge folding are used to simplify the mesh model, and the edge with the smallest simplification cost is folded each time to complete the mesh simplification;

[0009] S2, based on the mesh model simplification process of S1, the fidelity F of the kth geometric shape feature after mesh model simplification is calculated by the following formula: k total :

[0010]

[0011] Where n M Indicates the number of grid regions divided by the grid model; Indicates the importance of the preset i-th grid area; represents the fidelity of the kth geometric shape feature of the i-th region of the mesh model; W represents the Wasserstein distance, and Respectively represent the frequency density distribution of the kth geometric shape feature of the i-th region of the mesh model before and after simplification;

[0012] S3, taking the maximum total fidelity value of each geometric shape feature after mesh model simplification as the objective function and the cost weight of edge collapse optimization as the decision variable, constructing a multi-objective optimization problem;

[0013] S4, set the simplification rate, and use a variety of multi-objective meta-heuristic algorithms to solve the multi-objective optimization problem of S3 respectively, and optimize the cost weight of edge folding optimization;

[0014] S5, using the TOPSIS method to screen the cost weights solved by various multi-objective meta-heuristic algorithms in S4 to obtain the optimal cost weight;

[0015] S6. Use the optimal cost weight obtained in S5 to simplify the mesh model through the edge collapse method.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] 1. When using this method, first, based on the quadratic error metric and edge folding method, the edge with the smallest simplification cost is selected for folding each time to achieve the purpose of mesh simplification. Then, the fidelity of each geometric shape feature after the mesh model is simplified is calculated. The fidelity calculation takes into account the number of mesh regions divided by the mesh model, the importance of each mesh region, and the difference in frequency density distribution of geometric shape features in the corresponding regions of the mesh model before and after simplification (measured using the Wasserstein distance). Compared with conventional overall simplification, this simplification method can better adapt to the characteristics of the manufacturing equipment twin geometric model, which has large differences in shape distribution, and can effectively avoid the problem of key shape features being destroyed.

[0018] This method proposes a simplified fidelity evaluation method based on the Wasserstein distance of the characteristic frequency distribution of mesh geometry, which can effectively measure the fidelity of the simplified mesh model and make up for the gap in the existing methods in the fidelity evaluation of digital twin geometric models.

[0019] 2. Next, a multi-objective optimization problem is constructed with the maximization of the total fidelity value of the geometric shape features after the mesh model is simplified as the objective function and the cost weight of the edge folding optimization as the decision variable. The simplification rate is set, and then a variety of multi-objective metaheuristic algorithms are used to solve the constructed multi-objective optimization problem, and the cost weight of the edge folding optimization is optimized to find the best weight that can balance the fidelity and simplification rate. Then, the TOPSIS (Technique for Order Preference by Similarity to an Ideal Solution) method is used to screen the cost weights obtained by various algorithms. TOPSIS sorts the evaluation object based on the distance between it and the optimal solution and the worst solution, thereby selecting the best cost weight. Finally, the mesh model is simplified by the edge folding method using the best cost weight screened in step S5. In this way, the simplification of the mesh model can be fully guaranteed.

[0020] Through the above process, this method can effectively simplify the geometric model of the digital twin of manufacturing equipment while maintaining a high fidelity. Through multi-objective optimization and TOPSIS method screening, the optimal edge folding cost weight can be found to achieve a balance between fidelity and simplification rate. In addition, the simplified model can reduce the computational complexity and retain sufficient geometric shape feature information, providing a basis for subsequent simulation, analysis and optimization.

[0021] In summary, this method can fully simplify the digital twin geometric model of manufacturing equipment while ensuring the high fidelity of key areas in its lightweight process.

[0022] Preferably, in S1, a quadratic error metric method is used to calculate the simplification cost of the folded edges.

[0023] The quadratic error metric method can accurately evaluate the impact of edge folding operations on model shape and geometric features by calculating the average of the squares of the differences between the predicted values ​​and the true values. This method can quantify the error generated by each edge folding operation and provide a basis for selecting the best edge folding sequence. Edges that have less impact on the model shape can be preferentially selected for folding, thereby maximizing the geometric features and shape accuracy of the model while achieving model simplification.

[0024] Preferably, in S1, the expression with the minimum simplification cost is:

[0025]

[0026] In the formula, represents the cost weight; edge represents the edge selected during each edge folding operation; E d is the corresponding edge length cost; is the corresponding triangle area cost; is the corresponding angle cost; E H is the corresponding mean curvature cost; E K is the corresponding Gaussian curvature cost.

[0027] In this way, the minimum simplification cost under the corresponding cost weight can be quickly found, and the effectiveness of the minimum simplification cost can be guaranteed through the five costs in the formula.

[0028] Preferably, the cost weight The following constraints are met:

[0029]

[0030] Such a setting can ensure the effectiveness of the minimum simplification cost, thereby ensuring the effectiveness of the edge folding method.

[0031] Preferably, the edge length cost E d The calculation formula is:

[0032]

[0033]

[0034] Where, d ij Indicates the folded edge e=(v i ,v j )’s normalized side length; Represents the spatial position coordinates of the new vertex generated by folding, and Represents the spatial position coordinates of the two vertices of the folded edge, Q i and Q j Represents two adjacent vertices v i and v j The quadratic error matrix corresponding to the neighborhood triangles of .

[0035] Preferably, the triangle area cost The calculation formula is:

[0036]

[0037] In the formula, and They represent the vertices v of the collapsed edges. i and vj The normalized neighborhood average triangle area of ​​.

[0038] Preferably, the angle cost The calculation formula is:

[0039]

[0040] In the formula, and They represent the vertices v of the collapsed edges. i and v j The standardized neighborhood average angle of .

[0041] Preferably, the average curvature cost E H The calculation formula is:

[0042]

[0043] In the formula, H i and H j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood mean curvature of .

[0044] Preferably, the Gaussian curvature cost E K The calculation formula is:

[0045]

[0046] In the formula, K i and K j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood Gaussian curvature of .

[0047] Preferably, in S4, the multiple multi-objective meta-heuristic algorithms used include NSGA-II, SPEA2, and S-MPSO.

[0048] With this setting, NSGA-II, SPEA2 and S-MPSO have different advantages in fast non-dominated sorting, elite preservation, solution set distribution, simplified operation and global / local search balance, which enable them to be applied to different multi-objective optimization problems and achieve good optimization results. This ensures the effectiveness of the optimal cost weights obtained later. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:

[0050] Figure 1 Flowchart of this method

[0051] Figure 2 A schematic diagram of fidelity evaluation and mesh simplification fidelity optimization in an embodiment;

[0052] Figure 3 Schematic diagram of the folding operation in the embodiment;

[0053] Figure 4 This is a schematic diagram of mesh simplification cost weight encoding in an embodiment;

[0054] Figure 5 A schematic diagram of decoding the mesh simplification cost weight in the embodiment;

[0055] Figure 6 This is the overall simplification effect corresponding to the simplified cost weight allocation scheme in the embodiment. DETAILED DESCRIPTION

[0056] The following is a further detailed description through specific implementation methods:

[0057] Example:

[0058] like Figure 1 , Figure 2 As shown, this embodiment discloses a simplified fidelity evaluation and optimization method for a digital twin geometric model of manufacturing equipment, comprising the following steps:

[0059] S1. Based on the quadratic error metric and edge folding method, the simplification cost weight is set and the mesh model is simplified. Each time, the edge with the smallest simplification cost is folded to complete the mesh simplification.

[0060] In specific implementation, the specific steps of mesh model simplification are as follows:

[0061] Step 1: Calculate the simplification cost of all edges and use the quadratic error metric method to calculate the simplification cost of the folded edges.

[0062] Step 2: Sort all edges according to their simplification cost from low to high, and store them in a priority queue.

[0063] Step 3: Take out the first edge from the priority queue and merge the two vertices of the collapsed edge. The vertex merging operation is divided into the following 4 sub-steps.

[0064] Step 3.1: Boundary judgment: if the edge is located at the boundary of the grid (that is, the edge has only one neighboring triangle), then the edge is placed at the end of the priority queue and this round of loop is skipped.

[0065] Step 3.2: Calculate and update the spatial position coordinates of the new vertex generated by the merger.

[0066] Step 3.3: Get the neighboring vertices of the two vertices of the collapsed edge, and update the reference relationship of the neighboring vertex to the collapsed edge vertex to the reference relationship to the new vertex.

[0067] Step 3.4: Recalculate the simplification cost of each edge associated with the new vertex and update its position in the priority queue.

[0068] Step 3.5: Remove the two triangles corresponding to the two half-edges of the folded edge from the half-edge structure, as well as the six half-edges related to the two triangles and the two vertices of the folded edge.

[0069] Step 4: Repeat Step 3 until the number of remaining mesh vertices reaches the set simplification rate.

[0070] The half-edge neighborhood structure before and after the edge collapse operation is as follows: Figure 3 shown.

[0071] The quadratic error metric method can accurately evaluate the impact of edge folding operations on model shape and geometric features by calculating the average of the squares of the differences between the predicted values ​​and the true values. This method can quantify the error generated by each edge folding operation and provide a basis for selecting the best edge folding order. Edges that have less impact on the model shape can be preferentially selected for folding, thereby maximizing the geometric features and shape accuracy of the model while achieving model simplification. To facilitate understanding of the technical content of this method, the quadratic error metric method is explained as follows.

[0072] Quadratic Error Metric (QEM) is a shape error metric method widely used in mesh simplification. The distance from the new vertex generated by the folding operation to its neighboring triangle face is used as the simplification cost. The calculation method is as follows.

[0073] For any adjacent triangle face of two vertices of the folded edge, its normal The calculation method of is shown in formula 1, where Represent the vertices v of the triangular face respectively i 、v j 、v k The spatial position coordinates of .

[0074]

[0075] Thus, the equation of the plane where the triangular face is located is obtained, as shown in Formula 2.

[0076]

[0077] Based on this, we define the plane iThe quadratic error metric matrix Q i , as shown in Formula 3.

[0078]

[0079] For any vertex v of the collapsed edge j The error metric matrix Q is defined as the plane where each triangle face in the vertex neighborhood is located i The corresponding error metric matrix Q i The sum of is shown in Formula 4.

[0080]

[0081] From this, the quadratic error E corresponding to the folded edge can be calculated, as shown in Equation 5.

[0082]

[0083] For the new vertex v generated, its spatial position coordinates The local cost should be minimized. The quadratic error E is The convex function of , its gradient is shown in Equation 6.

[0084]

[0085] To calculate the optimal solution of the convex function, make the gradient in each direction 0, then:

[0086]

[0087] Expressed in homogeneous coordinates, we have:

[0088]

[0089] If the matrix Reversible, then by calculating the inverse matrix Get the spatial position coordinates of the new vertex; if the matrix Irreversible, then the folded edge (v i ,v j ) as the spatial position coordinates of the new vertex, as shown in Formula 9.

[0090]

[0091] Based on the quadratic error metric matrix Q, in order to more accurately measure the shape loss after mesh simplification, five simplification costs are introduced, including the edge length cost E d , triangle area cost Average angle cost Mean curvature cost E H and Gaussian curvature cost E KThe above five costs can be quickly calculated through the Half-Edge neighborhood structure of the grid after each edge collapse operation. Due to the different ranges and dimensions of the simplification costs, the standardization method used in Chapter 3 is used, including robust scaling, Sigmoid transformation, and Min-Max normalization. On this basis, the processed grid side length d and the neighborhood average triangle area are used. Neighborhood average angle The neighborhood average curvature H and neighborhood Gaussian curvature K are used to calculate five kinds of mesh simplification costs.

[0092] The expression with the minimum simplified cost is:

[0093]

[0094] In the formula, represents the cost weight; edge represents the edge selected during each edge folding operation; E d is the corresponding edge length cost; is the corresponding triangle area cost; is the corresponding angle cost; E H is the corresponding mean curvature cost; E K is the corresponding Gaussian curvature cost.

[0095] Cost Weight The following constraints are met:

[0096]

[0097] Edge length cost E d The calculation formula is:

[0098]

[0099] Where, d ij Indicates the folded edge e=(v i ,v j )’s normalized side length; Represents the spatial position coordinates of the new vertex generated by folding, and Represents the spatial position coordinates of the two vertices of the folded edge, Q i and Q j Represents two adjacent vertices v i and v j The quadratic error matrix corresponding to the neighborhood triangles of .

[0100] Triangle Area Cost The calculation formula is:

[0101]

[0102] In the formula, and They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood average triangle area of ​​.

[0103] Angle Cost The calculation formula is:

[0104]

[0105] In the formula, and They represent the vertices v of the collapsed edges. i and v j The standardized neighborhood average angle of .

[0106] Mean curvature cost E H The calculation formula is:

[0107]

[0108] In the formula, H i and H j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood mean curvature of .

[0109] Gaussian curvature cost E K The calculation formula is:

[0110]

[0111] In the formula, K i and K j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood Gaussian curvature of .

[0112] S2, based on the mesh model simplification process of S1, the fidelity of the kth geometric shape feature after mesh model simplification is calculated by the following formula:

[0113]

[0114] Where n M Indicates the number of grid regions divided by the grid model; Indicates the importance of the preset i-th grid area; represents the fidelity of the kth geometric shape feature of the i-th region of the mesh model; W represents the Wasserstein distance, and represent the frequency density distribution of the kth geometric shape feature of the i-th region of the mesh model before and after simplification. Figure 2 As shown, the geometric shape features include neighborhood geometric features and shape semantic features.

[0115] S3, taking the maximum total fidelity value of each geometric shape feature after mesh model simplification as the objective function and the cost weight of edge collapse optimization as the decision variable, constructing a multi-objective optimization problem;

[0116] S4. Set the simplification rate and use a variety of multi-objective meta-heuristic algorithms to solve the multi-objective optimization problem of S3 respectively, and optimize the cost weight of edge folding optimization.

[0117] Among them, the various multi-objective meta-heuristic algorithms used include NSGA-II, SPEA2, and S-MPSO. Thus, NSGA-II, SPEA2, and S-MPSO each have different advantages in terms of fast non-dominated sorting, elite preservation, solution set distribution, simplified operation, and global / local search balance, which enable them to be applied to different multi-objective optimization problems and achieve good optimization results. This ensures the effectiveness of the optimal cost weights obtained subsequently.

[0118] When using NSGAII, SPEAII, and SMPSO algorithms for optimization, the solution set individuals (i.e., simplification cost weights) need to be encoded. To perform grid simplification, the individual codes need to be decoded to obtain the weights corresponding to the five simplification costs. The specific operations are as follows.

[0119] Simplified cost weight encoding

[0120] First, determine the number of bits for cost weight allocation. Use hexadecimal encoding to encode each cost function weight using 1 byte, and its value range is 0x 00 to 0x FF. For the five cost functions selected in this method, the encoding value range of the overall cost weight is 0x 00 00 00 00 00 to 0x FF FF FF FF, Figure 4 shown.

[0121] Simplified cost weight decoding

[0122] Before calculating the simplified cost, the encoded cost weight needs to be decoded to obtain the corresponding weight value. First, the encoding corresponding to each cost function weight can be obtained through mask shift and bitwise AND operation. The process is as follows Figure 5 As shown, B i Represents the cost weight The corresponding hexadecimal code.

[0123] Convert the hexadecimal cost weight encoding to decimal encoding as shown below.

[0124]

[0125] In the formula, Represents the cost weight The decimal code of Indicates hexadecimal code B i The corresponding value of each binary bit (0 or 1).

[0126] On this basis, normalization is performed to obtain the weights corresponding to each cost function As shown in the following formula.

[0127]

[0128] The calculation process of optimizing the mesh simplification cost weight using several multi-objective optimization methods is as follows.

[0129] (1)NSGAII

[0130] NSGAII introduces crowding distance to select individuals (i.e., feasible solutions to the optimization problem, which refers to the weights of the five simplification costs of the grid in this embodiment) based on NSGA (Non-dominated Sorting Genetic Algorithm), which can more effectively maintain the differences between individuals in the population, thereby obtaining a better solution set with a greater probability. The pseudo code for optimizing the weights of the grid simplification cost based on the NSGAII algorithm is shown in Table 1.

[0131] Table 1 Optimization of mesh simplification cost weights based on NSGAII

[0132]

[0133]

[0134] The following is an explanation of some key operations in the NSGAII calculation process.

[0135] ① Non-dominated sorting

[0136] For the solution set of multi-objective optimization problems (multiple objectives are maximized), the Pareto front solution can be obtained by non-dominated sorting. and For any maximization objective to be optimized Both The solution Dominate Recorded as (Also known as ),in is called a non-dominated solution (also called Pareto dominant). is called the dominated solution.

[0137] First, the target values ​​of all solutions in the solution set are compared pairwise to obtain each solution. The dominant solution subset of and dominate The number of solutions

[0138] For the solution like This indicates that the solution is not dominated by other solutions, and its non-dominated level is recorded as for The dominant solution subset of Any solution in like Right now Not subject to elimination If the solution outside the control is Non-dominated level By analogy, we can obtain the non-dominated levels of all solutions, and on this basis complete the Pareto non-dominated sorting of the solution set.

[0139] ②Crowding distance

[0140] Based on non-dominated sorting, crowding distance is introduced to measure the difference between solutions. The crowding distance As shown in the following formula.

[0141]

[0142] Where n W represents the size of the solution set, n F Indicates the number of targets.

[0143] ③Binary Tournament Method

[0144] Based on the non-dominated sorting of the solution set and the calculation of the crowding distance, two solutions are randomly selected by replacement sampling. and If the non-dominated ranks of two solutions are the same, the solution with the larger crowding distance is added to the parent population for crossover operation; if the non-dominated ranks of two solutions are different, the solution with the lower non-dominated rank is added to the parent population.

[0145] ④Cross operation

[0146] For two random individuals in the parent population and The SBX (Simulated Binary Crossover) method is used to obtain offspring individuals. First, random numbers ε~U[0,1] are sampled from a uniform distribution, and the propagation factor β is calculated based on this. P , as shown below.

[0147]

[0148] Where gen and maxgen represent the current generation and the maximum number of iterations respectively, η c Represents the crossover distribution index. When the crossover operation updates the solution set individuals, the search space gradually shrinks as the number of iterations increases.

[0149] According to the transmission factor and Perform crossover operation to obtain offspring individuals and As shown in the following formula.

[0150]

[0151] ⑤ Mutation operation

[0152] In the optimization process, mutation operations on individuals can increase the probability of jumping out of the local optimal search space. The polynomial mutation method is used with the mutation probability p m The individuals obtained by the crossover operation are mutated. First, random numbers ε~U[0,1] are sampled from the uniform distribution, and the mutation factor δ is calculated on this basis. m , as shown below.

[0153]

[0154] Where η m Represents the variation distribution index, gen and maxgen represent the current generation and maximum number of iterations respectively. The degree of variation of individuals decreases as the number of iterations increases.

[0155] According to the variation factor δ m For individuals Perform mutation operation to obtain new individuals As shown in the following formula.

[0156]

[0157] Where w EU and w EL Indicates the upper and lower bounds of the solution range.

[0158] (II) SPEA2

[0159] Based on SPEA (Strength Pareto Evolutionary Algorithm), SPEA2 introduces a KNN-based individual neighbor density calculation method to address the problem of unclear individual differences and narrow search space in the population retained by SPEA, and introduces individual strength in the fitness function to increase the difference between individuals. The pseudo code for optimizing the mesh simplification cost weight based on the SPEAII algorithm is shown in Table 2.

[0160] Table 2 Optimization of mesh simplification cost weights based on SPEA2

[0161]

[0162]

[0163] The non-dominated sorting, binary tournament selection, crossover and mutation operations and related parameters used in the SPEA2 method are the same as those in the NSGA-II method.

[0164] (3) S-MPSO

[0165] S-MPSO (Speed-constrained Multi-objective Particle Swarm Optimization) is based on the multi-objective particle swarm algorithm (MOPSO). In order to solve the problem that the better position may be skipped due to excessive speed when updating the particle position (i.e., the particle swarm explosion problem), a speed limiting factor is introduced to limit the particle speed. The pseudo code for optimizing the mesh simplification cost weight based on the S-MPSO algorithm is shown in Table 3.

[0166] Table 3 Optimization of mesh simplification cost weights based on S-MPSO

[0167]

[0168]

[0169] In the SMPSO method, the particle The speed at the gen iteration As shown in the following formula.

[0170]

[0171] In the formula, and Respectively represent the particle velocity and particle position at the last iteration, C W1 and C W2Represent the own acceleration factor and the global acceleration factor respectively, and W E * Respectively represent the historical optimal position and global optimal position of the particle, ε1 and ε2 represent two independent random numbers that obey the uniform distribution U[0,1]. W represents the particle velocity limiting factor, and its calculation method is shown in the following formula.

[0172]

[0173] On this basis, the particle speed is further restricted as shown in the following formula.

[0174]

[0175] Where v WU and v WL They represent the upper and lower bounds of the particle velocity range respectively.

[0176] According to the speed of the gen update and the previous generation's position The current particle position can be obtained

[0177]

[0178] S5. Use the TOPSIS method to screen the cost weights solved by various multi-objective metaheuristic algorithms in S4 to obtain the optimal cost weight.

[0179] In order to further screen the grid simplification cost weight solution set obtained by NSGA-II, SPEA2, and S-MPSO, and finally determine the grid simplification cost weight, the TOPSIS method is used to screen the solution set. TOPSIS is a classic method for multi-objective decision-making. It determines the optimal decision by measuring the distance between each decision and the ideal solution. The decision-making process includes decision matrix construction, decision weight calculation, determination of the ideal solution, calculation of the separation measure and relative proximity between the alternative decisions and the ideal solution, and finally selecting the optimal decision according to the ranking result of the relative proximity of the ideal solution. Each Pareto front solution obtained previously is used as a simplified cost weight allocation scheme, and the TOPSIS method is used to make decisions on the simplified scheme. The main steps of the TOPSIS method are as follows.

[0180] (1) Construction of decision matrix and calculation of decision weights

[0181] The decision matrix is ​​composed of the scores of each plan under each goal and is used for multi-plan decision making under multiple goals. In order to better measure the relative advantages and disadvantages of each plan under each goal, the decision matrix Y = {y ij} n×mNormalize as shown below.

[0182]

[0183] In the formula, the element y of the decision matrix Y is ij represents the score of simplified scheme i under fidelity target j, which is the simplified fidelity of each simplified cost weight under each geometric shape feature; n W Indicates the number of alternatives, n F Indicates the number of targets; r ij Represents the elements of the normalized decision matrix, that is, the normalized scores of each simplified cost weight under each feature simplification fidelity target.

[0184] On this basis, we continue to assign weights to each target to obtain the weighted decision matrix M, as shown in the following formula.

[0185] m ij =w j r ij ;

[0186] In the formula, m ij represents the score corresponding to scheme i under target j, w j represents the weight assigned to target j.

[0187] (2) Determine the ideal solution

[0188] The ideal solutions of TOPSIS are divided into positive ideal solutions and negative ideal solutions. For the maximization objective problem, the objective values ​​corresponding to the positive and negative ideal solutions are the maximum and minimum objective values ​​of all alternative solutions, respectively, as shown in the following formula.

[0189]

[0190] In the formula, and They represent the target values ​​of the positive ideal solution and the negative ideal solution under target j respectively.

[0191] (3) Calculate the relative closeness between the alternative solution and the ideal solution

[0192] First, calculate the separation measure between the alternative solution and the ideal solution, that is, each alternative solution m i To each objective, positive and negative ideal solutions and The Euclidean distance is shown below.

[0193]

[0194] On this basis, the relative approximation of the alternative solution to the ideal solution is calculated, as shown in the following formula.

[0195]

[0196] According to the relative closeness between the alternative solutions and the ideal solution, the alternative solutions are arranged in descending order to obtain the TOPSIS optimal solution.

[0197] S6. Use the optimal cost weight obtained in S5 to simplify the mesh model through the edge collapse method.

[0198] Taking the geometric mesh model of gear hobbing machine parts as an example, the simplified results at a simplification rate of 0.8 are as follows: Figure 6 shown.

[0199] When using this method, first, a greedy strategy is adopted to select the edge with the smallest simplification cost for folding each time to achieve the purpose of mesh simplification. Then, based on the mesh model simplification process, the fidelity of each geometric shape feature after the mesh model is simplified is calculated. The fidelity calculation takes into account the number of mesh regions divided by the mesh model, the importance of each mesh region, and the difference in frequency density distribution of geometric shape features in the corresponding regions of the mesh model before and after simplification (measured using the Wasserstein distance). Compared with conventional overall simplification, this simplification method can better adapt to the characteristics of the manufacturing equipment twin geometric model, which has large shape distribution differences, and can effectively avoid the problem of key shape features being destroyed. This method proposes a simplified fidelity evaluation method based on the Wasserstein distance of the frequency distribution of mesh geometric shape features, which can effectively measure the fidelity of the mesh model after simplification and make up for the gaps in the existing methods in the fidelity evaluation of digital twin geometric models.

[0200] Next, the multi-objective optimization problem is constructed by maximizing the total fidelity value of the geometric shape features after the mesh model is simplified as the objective function and the cost weight of the edge folding optimization as the decision variable. The simplification rate is set, and then a variety of multi-objective metaheuristic algorithms are used to solve the constructed multi-objective optimization problem, and the cost weight of the edge folding optimization is optimized to find the best weight that can balance the fidelity and simplification rate. Then, the TOPSIS (Technique for Order Preference by Similarity to an Ideal Solution) method is used to screen the cost weights obtained by various algorithms. TOPSIS sorts the evaluation objects based on the distance between the optimal solution and the worst solution, so as to select the best cost weight. Finally, the mesh model is simplified by the edge folding method using the best cost weight screened in step S5. In this way, the sufficiency of the mesh model simplification can be guaranteed. Through the above process, this method can effectively simplify the geometric model of the digital twin of manufacturing equipment while maintaining a high fidelity. Through multi-objective optimization and TOPSIS method screening, the best edge folding cost weight can be found to achieve a balance between fidelity and simplification rate. Moreover, the simplified model can not only reduce the computational complexity, but also retain sufficient geometric shape feature information, providing a basis for subsequent simulation, analysis and optimization.

[0201] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A simplified fidelity evaluation and optimization method for the geometric model of digital twins of manufacturing equipment, characterized in that: The following steps are involved: S1. After setting the initial value of the cost weight of edge folding optimization, the quadratic error metric and edge folding are used to simplify the mesh model, and the edge with the smallest simplification cost is folded each time to complete the mesh simplification; S2, based on the mesh model simplification process of S1, the fidelity of the kth geometric shape feature after mesh model simplification is calculated by the following formula: Where n M Indicates the number of grid regions divided by the grid model; Indicates the importance of the preset i-th grid area; represents the fidelity of the kth geometric shape feature of the i-th region of the mesh model; W represents the Wasserstein distance, and Respectively represent the frequency density distribution of the kth geometric shape feature of the i-th region of the mesh model before and after simplification; S3, taking the maximum total fidelity value of each geometric shape feature after mesh model simplification as the objective function and the cost weight of edge collapse optimization as the decision variable, constructing a multi-objective optimization problem; S4, set the simplification rate, and use a variety of multi-objective meta-heuristic algorithms to solve the multi-objective optimization problem of S3 respectively, and optimize the cost weight of edge folding optimization; S5, using the TOPSIS method to screen the cost weights solved by various multi-objective meta-heuristic algorithms in S4 to obtain the optimal cost weight; S6. Use the optimal cost weight obtained in S5 to simplify the mesh model through the edge collapse method.

2. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 1, characterized in that: In S1, the quadratic error metric method is used to calculate the simplification cost of the folded edges.

3. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 2, characterized in that: In S1, the expression with the minimum simplification cost is: In the formula, represents the cost weight; edge represents the edge selected during each edge folding operation; E d is the corresponding edge length cost; is the corresponding triangle area cost; is the corresponding angle cost; E H is the corresponding mean curvature cost; E K is the corresponding Gaussian curvature cost.

4. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 3 is characterized in that: Cost Weight The following constraints are met:

5. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 3, characterized in that: Edge length cost E d The calculation formula is: Where, d ij Indicates the folded edge e=(v i ,v j )’s normalized side length; Represents the spatial position coordinates of the new vertex generated by folding, and Represents the spatial position coordinates of the two vertices of the folded edge, Q i and Q j Represents two adjacent vertices v i and v j The quadratic error matrix corresponding to the neighborhood triangles of .

6. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 5, characterized in that: Triangle Area Cost The calculation formula is: In the formula, and They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood average triangle area of ​​.

7. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 6, characterized in that: Angle Cost The calculation formula is: In the formula, and They represent the vertices v of the collapsed edges. i and v j The standardized neighborhood average angle of .

8. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 7, characterized in that: Mean curvature cost E H The calculation formula is: In the formula, H i and H j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood mean curvature of .

9. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 8, characterized in that: Gaussian curvature cost E K The calculation formula is: In the formula, K i and K j They represent the vertices v of the collapsed edges. i and v j The normalized neighborhood Gaussian curvature of .

10. The simplified fidelity evaluation and optimization method of the manufacturing equipment digital twin geometric model according to claim 1, characterized in that: In S4, various multi-objective metaheuristic algorithms used include NSGA-II, SPEA2, and S-MPSO.

Citation Information

Cited By

  • Lightweight processing method and system for PDMS three-dimensional design data

    CN119600172A

  • A lightweight processing method and system for PDMS three-dimensional design data

    CN119600172B

  • Dynamic optimization and release method for digital twin model

    CN120234980A