A method and system for optimizing CFRP milling process parameters

The gray wolf algorithm is used to optimize the SVR model, which solves the problem of parameter optimization in the CFRP milling process, reduces production costs and scrap rates, and improves the controllability of processing quality.

CN114398732BInactive Publication Date: 2024-09-06FUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210026177.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-11
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Processing defects such as burrs, tears, and delamination are prone to occur in the CFRP milling process, making it difficult to control the processing quality and causing high production costs and high scrap rates.

Method used

The gray wolf algorithm is used to improve the support vector regression machine (SVR) model, and a CFRP milling process parameter optimization model is constructed based on experimental data. The spindle speed, feed speed, axial depth of cut, and radial depth of cut are optimized through full factor experiments and the gray wolf algorithm. and other parameters to achieve process parameter setting under optimal surface quality.

Benefits of technology

It achieves rapid and effective optimization of CFRP milling process parameters, reduces production costs and scrap rates, and improves the controllability of processing quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398732B
    Figure CN114398732B
Patent Text Reader

Abstract

The present invention relates to an optimization system for CFRP milling process parameters, comprising the following steps: step S1: taking the surface quality of milled carbon fiber materials as a target, and constructing an experimental scheme based on preset optimization variables and constraints; step S2: acquiring a training set and a test set according to the experimental results, and using the GWO algorithm to improve the SVR algorithm to fit the target, and obtaining a GSVR model; step S3: establishing a CFRP milling process parameter optimization model based on the GWO algorithm, using the GSVR model as the fitness function of the GWO algorithm, obtaining a GWO‑GSVR model, and optimizing the CFRP milling process parameters based on the GWO‑GSVR model to obtain the process parameters under the optimal surface quality. The present invention realizes fast and effective optimization of CFRP milling process parameters, and effectively reduces production costs and scrap rates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mechanical processing, and in particular to a method and system for optimizing CFRP milling process parameters. Background Art

[0002] Carbon fiber reinforced polymer (CFRP) has been widely used in aerospace, wind power, sports equipment, automobile and other fields due to its excellent comprehensive performance. CFRP components are generally manufactured by a one-step integral molding process. After molding, in order to ensure the manufacturing accuracy and assembly accuracy required by the design, secondary processing of composite parts is usually required. Due to the laminated structure, non-uniform distribution, anisotropy and other characteristics of CFRP, burrs, tears, delamination and other processing defects are prone to occur during the milling process, and the processing quality is difficult to control. Therefore, it is very important to optimize the CFRP milling process parameters, which can reduce production costs and scrap rates to a certain extent. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method and system for optimizing CFRP milling process parameters, so as to achieve fast and effective optimization of CFRP milling process parameters and effectively reduce production costs and scrap rates.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A method for optimizing milling process parameters of carbon fiber reinforced polymer (CFRP), characterized by comprising the following steps:

[0006] Step S1: constructing an experimental plan based on the surface quality of the milled carbon fiber material and preset optimization variables and constraints;

[0007] Step S2: According to the experimental results, the training set and the test set are obtained, and the support vector regression (SVR) algorithm is improved by using the Grey Wolf Optimization (GWO) algorithm to fit the target and obtain the GSVR model;

[0008] Step S3: Based on the GWO algorithm, a CFRP milling process parameter optimization model is established, and the GSVR model is used as the fitness function of the GWO algorithm to obtain the GWO-GSVR model. The CFRP milling process parameters are optimized based on the GWO-GSVR model to obtain the process parameters with the optimal surface quality.

[0009] Furthermore, the optimization variables include the cutting spindle speed n z , feed speed v j , axial cutting depth a p and radial depth of cut a e ; Among them, the axial cutting depth a p and radial depth of cut a e Set it as a fixed value and design the spindle speed n z and feed speed v j Perform full factorial experiments at different levels.

[0010] Furthermore, the constraints are specifically:

[0011] Spindle speed n min ≤n z ≤n max

[0012] Feed speed v min ≤v j ≤v max

[0013] Among them, n min 、n max is the spindle speed n z The minimum and maximum values ​​of v min 、v max is the feed speed v j The minimum and maximum values ​​of .

[0014] Furthermore, the step S2 is specifically as follows:

[0015] Step S21: Arrange the data set according to the experimental results into D = {(x1, y1), (x2, y2), ... (x i ,y i )...,(x m ,y m )}, divide the data set according to the preset ratio and divide it into training set D train and the test set D test ;

[0016] Step S22: normalize the data;

[0017] Step S23: Use the GWO algorithm to optimize the parameters of the SVR algorithm to obtain the GSVR model.

[0018] Furthermore, the step S22 is specifically as follows: the original independent variable is X={x1, x2, ...x i ...,x m}, Normalization method After transformation, D = {(x g1 ,y1),(x g2,y2),...(x gi ,y i )...,(x gm ,y m )}.

[0019] Among them, x i is the initial value of the variable; x gi is the normalized variable; Max(x) is the maximum value of the original variable; Min(x) is the minimum value of the original variable.

[0020] Furthermore, the step S23 is specifically as follows:

[0021] (1) Construct the target form of the SVR algorithm: f(x) = a T ·x+b.

[0022] Among them, f(x) is the regression value, which is the representation of the three-dimensional surface roughness of CFRP; x is the input data vector, which is the spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e Combined vector; a is the weight vector, b is the intercept vector;

[0023] (2) Introduce the relaxation factor and transform the problem into solving the minimization objective function:

[0024]

[0025] The constraints are:

[0026]

[0027] Among them, ξ i , is the slack variable; C is the penalty function; ε is the loss limit;

[0028] (3) The Lagrange multiplier method is introduced to transform the objective function using dual transformation and nonlinear transformation. Since the model problem is a nonlinear problem, the independent variable x is mapped to a high-dimensional feature space through a kernel function, thereby transforming the nonlinear regression problem into a linear regression problem.

[0029] (4) The factors that have the greatest impact on the fitting performance of the SVR algorithm are the penalty coefficient C, the kernel coefficient γ and the loss limit ε. The gray wolf algorithm is used for intelligent optimization and the most appropriate parameters are used to fit the model.

[0030] Furthermore, the intelligent optimization is performed according to the grey wolf algorithm, specifically:

[0031] (1) Initialize the population in three-dimensional space. Suppose there are N gray wolf individuals and the number of iterations is set to T. The initial gray wolf individuals are Let the first dimension be the size of the penalty coefficient C, the second dimension be the size of the kernel function coefficient γ, the third dimension be the size of the loss limit ε, and the population generation method be the good point set generation method:

[0032] P i =[{d1*i},{d2*i},{d3*i}],i=1,2,...,N

[0033]

[0034]

[0035]

[0036] Where P i represents the set of good points corresponding to the gray wolf numbered i; {d j *i} represents the best point element corresponding to gray wolf i in the jth dimension, and the value is d j *i is the decimal part; p represents the smallest prime number that satisfies the constraint (p-3) / 2≥3; represents the value of the i-th gray wolf in the j-th dimension; represents the good point coefficient, corresponding to the element of the jth dimension in the good point set; N represents the number of individuals in the gray wolf population; T represents the maximum number of iterations required; lb 1 ,ub 1 Indicates the minimum and maximum values ​​of the penalty coefficient C constraint; lb 2 ,ub 2 represents the minimum and maximum values ​​of the kernel function coefficient γ constraint; lb 3 ,ub 3 represents the minimum and maximum values ​​on the loss bound ε constraint;

[0037] (2) Bring the initialized gray wolf population individuals into the SVR algorithm for fitting and obtain the fitting prediction value Y p ={y p1 ,y p2 ,...y pN}, calculate the pre-test value and the actual value And the fitness value of the gray wolf is Y s =MSE;

[0038] Among them, Y p represents the predicted value of the gray wolf population; y pi represents the predicted value of gray wolf; y i represents the true value of the gray wolf; Y s represents the fitness value of the gray wolf;

[0039] (3) Sort the gray wolf individuals by their fitness, where the gray wolf with the smallest fitness is α, the gray wolf with the second smallest fitness is β, the gray wolf with the third smallest fitness is δ, and the remaining gray wolves are called ω gray wolves;

[0040] (4) The wolf pack surrounds the prey, and the gray wolf approaches the prey;

[0041] d=|B·X p (t)-X(t)|

[0042] X(t+1)=X p (t)-A·d

[0043] A=2a·r1-a

[0044] B=2·r2

[0045]

[0046] Where d represents the distance between the individual gray wolf and the prey; t represents the current number of iterations; A and B represent the coefficient vectors; X p represents the location of the prey; X represents the current location of the gray wolf; the convergence factor of type a decreases nonlinearly from 2 to 0 as the number of iterations increases; r1 and r2 are random vectors, and their moduli are random numbers between [0,1];

[0047] (5) Hunting: The gray wolf identifies the location of the prey and surrounds the prey. Assuming that α, β, and δ know the potential location of the prey better, we retain these three optimal solutions in the iterative process and update the individual positions of other gray wolves. The model of the gray wolf tracking prey is as follows:

[0048] d α =|B1·X α -X|

[0049] d β =|B2·X β -X|

[0050] d δ =|B3·X δ -X|

[0051] Among them, d α ,d β and d δ is the distance between α, β and δ gray wolves and other gray wolves; X α , X β and X δ represents the current position of α, β and δ gray wolves; B1, B2 and B3 are random vectors;

[0052] (6) Gray wolves are hunting. The wolf pack approaches its prey.

[0053] X1=X α -A·d α

[0054] X2=X β -A·d β

[0055] X3=X δ -A·d δ

[0056]

[0057] Among them, X1, X2, and X3 represent the step length and direction of the ω gray wolf moving towards the α, β, and δ gray wolves; X(t+1) represents the updated position of the ω gray wolf;

[0058] (7) Iterate. When the iteration condition is not met, iterate according to (3)-(6). When the iteration condition is met, output the gray wolf α to obtain the optimal solution of the optimization target. The position coordinates of the gray wolf α represent the penalty coefficient C, the kernel coefficient γ and the loss limit ε of the SVR.

[0059] (8) Substitute the optimized penalty coefficient C, kernel coefficient γ and loss limit ε into the SVR algorithm to obtain the GSVR fitting model. train and the test set D test Substitute into GSVR for cross-training, and retain the fitted model after training.

[0060] Furthermore, the kernel function type is a Gaussian radial basis kernel function; the specific regression form is converted to:

[0061]

[0062] K(x i ,x)=exp(-γ||x i -x|| 2 )

[0063]

[0064] Where γ is the kernel coefficient, and δ represents the bandwidth of the Gaussian kernel; α i , is the Lagrange multiplier; K(x i ,x) is the Gaussian radial basis kernel function.

[0065] Furthermore, the step S3 is specifically as follows:

[0066] Step S31: Initialize the gray wolf population, assuming N ogray wolf individuals, and set the number of iterations to T o , let the first dimension be the spindle speed n z The second dimension is the feed rate v j The third dimension is the axial cutting depth a p The fourth dimension is the radial depth of cut a e The size of the individual gray wolf is initialized as And the axial cutting depth a p and radial depth of cut a e Is a fixed value, and the initial population is generated in the two-dimensional plane using the best point set generation method:

[0067] P oi =[{d o1 *i},{d o2 *i}],i=1,2,...,N o

[0068]

[0069]

[0070]

[0071] Where P oi represents the set of good points corresponding to the gray wolf numbered i; {d oj *i} represents the best point element corresponding to gray wolf i in the jth dimension, and the value is d oj *i decimal part; p o Indicates satisfaction (p o -2) / 2≥2 is the smallest prime number within the constraint; represents the value of the i-th gray wolf in the j-th dimension; represents the good point coefficient, corresponding to the element of the jth dimension in the good point set; N o represents the number of individuals in the gray wolf population; T o Indicates the maximum number of iterations required; Indicates the spindle speed n z Minimum and maximum values ​​under constraints; Indicates feed speed v j Minimum and maximum values ​​under constraints; Indicates the axial cutting depth a p and radial depth of cut a e The size is a preset value.

[0072] Step S32: Obtain the fitting prediction value from the initialized gray wolf population individual GSVR model

[0073] Among them, Yp represents the predicted value of the gray wolf population; y pi Represents the predicted value of the gray wolf. This value is the three-dimensional surface roughness and serves as the fitness value of the gray wolf.

[0074] Step S33: stratify the gray wolf population, where the minimum fitness is α o Gray wolf, the second smallest fitness is β o Gray wolf, the third smallest fitness is δ o Gray wolf, the remaining gray wolf is called ω o Gray wolf;

[0075] Step S34: The wolf pack surrounds the prey, and the gray wolf approaches the prey;

[0076] Step S35: The gray wolf population hunts and uses α o , β o and δ o The position update ω of the gray wolf individual o Location of individual gray wolves.

[0077] Step S36: Perform iteration, and when the iteration condition is met, output the iteration result α o Gray wolf, get the optimal solution of the optimization target; where α o The position coordinates of the gray wolf represent the process parameters when the surface roughness of CFRP milling is the best, spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e .

[0078] Furthermore, the hierarchy of the gray wolf society is specifically as follows:

[0079] The first level is: the leader of the gray wolf pack is recorded as α gray wolf, and α gray wolf can dominate all other gray wolves;

[0080] The second layer is: the β-grey wolf in the grey wolf pack, which is dominated by the α-grey wolf but can dominate the grey wolves in other levels of the wolf pack society;

[0081] The third layer is: the δ gray wolf in the gray wolf pack, which is dominated by the α gray wolf and the β gray wolf, but can dominate the gray wolves in other levels of the wolf pack society;

[0082] The fourth layer is: the ω gray wolf in the gray wolf pack, which is dominated by the α gray wolf, β gray wolf and δ gray wolf.

[0083] A CFRP milling process parameter optimization system, characterized in that it includes a processor, a memory and a computer program stored in the memory, and when the processor executes the computer program, it specifically executes the steps in the milling process parameter optimization method as described above.

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

[0085] The present invention realizes rapid and effective optimization of CFRP milling process parameters, effectively reducing production costs and scrap rates. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0087] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0088] refer to Figure 1 In this embodiment, a method for optimizing CFRP milling process parameters is provided, comprising the following steps:

[0089] Step S1: constructing an experimental plan based on the surface quality of the milled carbon fiber material and preset optimization variables and constraints;

[0090] Step S2: Obtain training sets and test sets according to the experimental results, and use the GWO algorithm to improve the SVR algorithm to fit the target and obtain the GSVR model;

[0091] Step S3: Based on the GWO algorithm, a CFRP milling process parameter optimization model is established, and the GSVR model is used as the fitness function of the GWO algorithm to obtain the GWO-GSVR model. The CFRP milling process parameters are optimized based on the GWO-GSVR model to obtain the process parameters with the optimal surface quality.

[0092] In this embodiment, step S1 is specifically as follows:

[0093] 1.1 Select experimental factors and their levels and design the experiment. Considering that CFRP milling is mainly for finishing, the axial cutting depth a p and radial depth of cut a e In actual processing, the axial cutting depth and radial cutting depth are often given, so in the experiment, the spindle speed n is designed to be constant. z and feed speed v j Perform full factorial experiments at different levels.

[0094] Set the corresponding constraints:

[0095] Spindle speed n min ≤n z ≤n max

[0096] Feed speed v min ≤v j ≤v max

[0097] Among them, n min 、n max is the spindle speed n z The minimum and maximum values ​​of v min 、v max is the feed speed v j The minimum and maximum values ​​of .

[0098] 1.2 Measure the surface quality of the CFRP sheet after the milling experiment. The evaluation method is to use the three-dimensional surface roughness S a Make an evaluation.

[0099] In this embodiment, step S2 is specifically:

[0100] 2.1 According to the experimental results, the data set is organized into D = {(x1, y1), (x2, y2), ... (x i ,y i )...,(x m ,y m )}, divide the data set into training set D according to the ratio of 7:3 train and the test set D test .

[0101] 2.2 Normalize the data. The independent variables of the original data set are normalized. The original independent variables are X = {x1, x2, ... x i ...,x m}, Normalization method After transformation, D = {(x g1 ,y1),(x g2 ,y2),...(x gi ,y i )...,(x gm ,y m )}.

[0102] in,

[0103] x i is the initial value of the variable;

[0104] x gi is the normalized variable;

[0105] Max(x) is the maximum value of the original variable;

[0106] Min(x) is the minimum value of the original variable.

[0107] 2.3 CFRP milling surface quality fitting model

[0108] The GWO algorithm is used to optimize the parameters of the SVR algorithm to obtain the GSVR model, which is then used to train the fitting model of the CFRP surface quality. The specific steps are as follows:

[0109] 2.3.1 The GSVR model uses the GWO algorithm to optimize the SVR algorithm, and uses the Gaussian radial basis kernel function to map the high-dimensional space, converting the nonlinear problem into a linear problem; the Gaussian radial basis kernel function has the advantages of small deviation and good learning performance, and can also simplify the calculation procedure and improve the generalization ability of the model; the GWO algorithm can perform intelligent optimization and select the optimal set of parameters.

[0110] 2.3.2 Specific optimization steps of GSVR model

[0111] 2.3.2.1 Constructing the SVR algorithm target form: f(x) = a T ·x+b.

[0112] in,

[0113] f(x) is the regression value, which represents the three-dimensional surface roughness of CFRP;

[0114] x is the input data vector, which represents the spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e Combined vector;

[0115] a is the weight vector and b is the intercept vector.

[0116] 2.3.2.2 In order to ensure the good performance of the SVR algorithm, a relaxation factor is introduced to transform the problem into solving the minimization objective function:

[0117]

[0118] The constraints are:

[0119]

[0120] in,

[0121] ξ i , is the slack variable;

[0122] C is the penalty function;

[0123] ε is the loss bound.

[0124] 2.3.2.3 Introduce the Lagrange multiplier method and use dual transformation and nonlinear transformation to transform the objective function. Since the model problem is a nonlinear problem, the independent variable x will be mapped to the high-dimensional feature space through the kernel function, so as to transform the nonlinear regression problem into a linear regression problem, and the kernel function type is selected as the Gaussian radial basis kernel function; the specific regression form is converted to:

[0125]

[0126] K(x i ,x)=exp(-γ||x i -x||2)

[0127]

[0128] in,

[0129] γ is the kernel coefficient, and δ represents the bandwidth of the Gaussian kernel;

[0130] α i , is the Lagrange multiplier;

[0131] K(x i ,x) is the Gaussian radial basis kernel function.

[0132] 2.3.2.4 The factors that have the greatest impact on the fitting performance of the SVR algorithm are the penalty coefficient C, the kernel coefficient γ and the loss limit ε. The traditional method is to manually adjust the parameters to optimize the fitting model. The present invention uses the gray wolf algorithm for intelligent optimization and uses the most appropriate parameters to fit the model. Because the gray wolf algorithm has the advantages of simple structure and few parameters to be adjusted, it is suitable as the parameter optimization of the SVR algorithm.

[0133] 2.3.2.5 Initialize the population in three-dimensional space. Suppose there are N gray wolf individuals, and set the number of iterations to T. The initial gray wolf individuals are Let the first dimension be the size of the penalty coefficient C, the second dimension be the size of the kernel function coefficient γ, the third dimension be the size of the loss limit ε, and the population generation method be the best point set generation method, which can make the initial population have better ergodicity, thereby better achieving the purpose of global optimization.

[0134] P i =[{d1*i},{d2*i},{d3*i}],i=1,2,...,N

[0135]

[0136]

[0137]

[0138] in

[0139] P i represents the set of good points corresponding to the gray wolf numbered i;

[0140] {d j *i} represents the best point element corresponding to the i-th gray wolf in the j-th dimension, and the value is d j *i decimal part;

[0141] p represents the smallest prime number that satisfies the constraint (p-3) / 2≥3;

[0142] represents the value of the i-th gray wolf in the j-th dimension;

[0143] represents the good point coefficient, corresponding to the element of the jth dimension in the good point set;

[0144] N represents the number of individuals in the gray wolf population; T represents the maximum number of iterations required;

[0145] lb 1 ,ub 1 Represents the minimum and maximum values ​​of the penalty coefficient C constraint;

[0146] lb 2 ,ub 2 Represents the minimum and maximum values ​​of the kernel function coefficient γ constraint;

[0147] lb 3 ,ub 3 represents the minimum and maximum values ​​on the loss bound ε constraint.

[0148] 2.3.2.6 Bring the initialized gray wolf population individuals into the SVR algorithm for fitting and obtain the fitting prediction value Y p ={y p1 ,y p2 ,...y pN}, calculate the pre-test value and the actual value And the fitness value of the gray wolf is Y s =MSE.

[0149] in,

[0150] Y p represents the predicted value of the gray wolf population;

[0151] y pi represents the predicted value for gray wolves;

[0152] y i represents the true value of the gray wolf;

[0153] Ys Represents the fitness value of the gray wolf.

[0154] 2.3.2.7 Sort the gray wolf individuals by their fitness. The one with the smallest fitness is α gray wolf, the second smallest fitness is β gray wolf, the third smallest fitness is δ gray wolf, and the remaining gray wolves are called ω gray wolves.

[0155] The hierarchy of gray wolf society:

[0156] The first level is: the leader of the gray wolf pack is recorded as α gray wolf, and α gray wolf can dominate all other gray wolves;

[0157] The second layer is: the β-gray wolves in the gray wolf pack, which are dominated by the α-gray wolves, but can dominate the gray wolves in other levels of the wolf pack society.

[0158] The third layer is the δ gray wolf in the gray wolf pack, which is dominated by the α gray wolf and β gray wolf, but can dominate the gray wolves in other levels of the wolf pack society.

[0159] The fourth layer is: the ω gray wolf in the gray wolf pack, which is dominated by the α gray wolf, β gray wolf and δ gray wolf.

[0160] 2.3.2.8 The wolf pack surrounded its prey and the gray wolf approached the prey.

[0161] d=|B·X p (t)-X(t)|

[0162] X(t+1)=X p (t)-A·d

[0163] A=2a·r1-a

[0164] B=2·r2

[0165]

[0166] in,

[0167] d represents the distance between the individual gray wolf and the prey;

[0168] t represents the current number of iterations;

[0169] A and B represent coefficient vectors;

[0170] X p Indicates the location of prey;

[0171] X indicates the current position of the gray wolf;

[0172] The convergence factor of type a decreases nonlinearly from 2 to 0 as the number of iterations increases;

[0173] r1 and r2 are random vectors whose modulos are random numbers between [0,1].

[0174] 2.3.2.9 Hunting, the gray wolf identifies the location of the prey and surrounds the prey. Assuming that α, β and δ know the potential location of the prey better, we retain these three optimal solutions in the iterative process and update the individual positions of other gray wolves. The model of the gray wolf tracking prey is as follows:

[0175] d α =|B1·X α -X|

[0176] d β =|B2·X β -X|

[0177] d δ =|B3·X δ -X|

[0178] in,

[0179] d α ,d β and d δ is the distance between α, β and δ gray wolves and other gray wolves;

[0180] X α , X β and X δ represents the current position of the α, β, and δ gray wolves;

[0181] B1, B2 and B3 are random vectors.

[0182] 2.3.2.10 Gray wolves are hunting, and the wolf pack is approaching its prey.

[0183] X1=X α -A·d α

[0184] X2=X β -A·d β

[0185] X3=X δ -A·d δ

[0186]

[0187] in,

[0188] X1, X2, and X3 represent the step length and direction of the ω gray wolf moving toward the α, β, and δ gray wolves;

[0189] X(t+1) represents the updated position of the gray wolf.

[0190] 2.3.2.11 Iterate. When the iteration conditions are not met, iterate according to 2.3.2.7-2.3.2.10. When the iteration conditions are met, output the α gray wolf to obtain the optimal solution of the optimization target. The position coordinates of the α gray wolf represent the penalty coefficient C, the kernel coefficient γ and the loss limit ε of the SVR.

[0191] 2.3.2.12 Substitute the optimized penalty coefficient C, kernel coefficient γ and loss limit ε into the SVR algorithm to obtain the GSVR fitting model. train and the test set D test Substitute into GSVR for cross-training, and retain the fitted model after training.

[0192] In this embodiment, step S3 is specifically:

[0193] 3.1 Establish the CFRP milling process parameter optimization model. The optimization algorithm also uses the GWO algorithm. The GWO algorithm has fast convergence speed and solution accuracy.

[0194] 3.2 Repeat the improved GWO algorithm in step 2, mainly including:

[0195] 3.2.1 Initialization of the gray wolf population, with N o gray wolf individuals, and set the number of iterations to T o , let the first dimension be the spindle speed n z The second dimension is the feed rate v j The third dimension is the axial cutting depth a p The fourth dimension is the radial depth of cut a e The size of the individual gray wolf is initialized as And the axial cutting depth a p and radial depth of cut a e Is a constant. Using the optimal point set generation method to generate the initialized population in the two-dimensional plane can make the initial population have better ergodicity, thereby better achieving the purpose of global optimization.

[0196] P oi =[{d o1 *i},{d o2 *i},{d o3 *i}],i=1,2,...,N o

[0197]

[0198]

[0199]

[0200] in,

[0201] P oi represents the set of good points corresponding to the gray wolf numbered i;

[0202] {d oj *i} represents the best point element corresponding to gray wolf i in the jth dimension, and the value is d oj *i decimal part;

[0203] p o Indicates satisfaction (p o -2) / 2≥2 is the smallest prime number within the constraint;

[0204] represents the value of the i-th gray wolf in the j-th dimension;

[0205] represents the good point coefficient, corresponding to the element of the jth dimension in the good point set;

[0206] N o represents the number of individuals in the gray wolf population; T o Indicates the maximum number of iterations required;

[0207] Indicates the spindle speed n z Minimum and maximum values ​​under constraints;

[0208] Indicates feed speed v j Minimum and maximum values ​​under constraints;

[0209] Indicates the axial cutting depth a p and radial depth of cut a e The size is a preset value.

[0210] 3.2.2 Bring the initialized gray wolf population individuals into the GSVR model trained in 2.3.2.12 to obtain the fitted prediction value

[0211] in,

[0212] Y p represents the predicted value of the gray wolf population;

[0213] y pi Represents the predicted value of the gray wolf. This value is the three-dimensional surface roughness and serves as the fitness value of the gray wolf.

[0214] 3.2.3 The same as step 2.3.2.7, gray wolf population level stratification, where the minimum fitness is α o Gray wolf, the second smallest fitness is βo Gray wolf, the third smallest fitness is δ o Gray wolf, the remaining gray wolf is called ω o Gray wolf.

[0215] 3.2.4 In the same way as in 2.3.2.8, the wolves surround the prey and approach it.

[0216] 3.2.5 Consistent with steps 2.3.2.9-2.3.2.10, the gray wolf population conducts hunting and o , β o and δ o The position update ω of the gray wolf individual o Location of individual gray wolves.

[0217] 3.2.6 Iterate, perform iterative processing according to 3.2.3-3.2.5, and output the iterative result α when the iterative conditions are met o Gray wolf, get the optimal solution of the optimization objective. o The position coordinates of the gray wolf represent the process parameters when the surface roughness of CFRP milling is the best, spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e .

[0218] Embodiment 1:

[0219] This embodiment is to perform side milling on a T300 composite layer CFRP plate with a length of 200mm, a width of 100mm, and a thickness of 5mm on a VMC850E vertical machining center. Considering that CFRP milling is a finishing process, the axial cutting depth and radial cutting depth are set on the process diagram, so in this experiment, the axial cutting depth and radial cutting depth are set to fixed values, the axial cutting depth is set to a fixed value of 5mm, the radial cutting depth is set to a fixed value of 1.5mm, the spindle speed and feed speed are set to 4 levels, and a full factor experimental table is designed. The full factor experimental table is shown in Table 1.

[0220] Table 1 Factors and levels of full factorial experimental design

[0221]

[0222] Table 2 Full factorial experimental design table

[0223]

[0224]

[0225] According to the experimental arrangement in Table 2, the T300 composite layer CFRP plate with a length of 200mm, a width of 100mm, and a thickness of 5mm is profile milled. This experiment requires the use of a three-dimensional topography instrument to measure the surface after milling. The evaluation index is the three-dimensional surface roughness. Table 3 gives the three-dimensional surface roughness measured after milling the T300 composite layer CFRP plate with a length of 200mm, a width of 100mm, and a thickness of 5mm. The measurement method is: after milling based on a set of process parameters, the surface roughness is measured three times and the average value is taken. Table 3 gives the data after the CFRP profile milling experiment.

[0226] Table 3 CFRP profile milling experimental data

[0227]

[0228]

[0229] 1 GSVR model training

[0230] Before training the GSVR model, the parameters of the algorithm need to be specified. First, set the SVR algorithm parameters: select the SVR kernel function type. Since the milling process parameters and the three-dimensional surface roughness are linearly inseparable, the SVR kernel function selects the Gaussian kernel function (RadialBasisFunction, RBF); set the SVR penalty coefficient C, kernel function coefficient γ, and loss limit ε. The conventional method is to manually adjust the parameters to find the most suitable parameters, but manual parameter adjustment takes a long time, requires multiple attempts, and the debugging effect is not good. In view of the selection of the SVR penalty coefficient C, kernel function coefficient γ, and loss limit ε, this method uses the GWO algorithm for intelligent optimization, sets the GWO population size N = 50, and initializes the population with the best point set method; the number of iterations T = 100; and sets the gray wolf dimension to 3, and the gray wolf position coordinates to X = {x 1 ,x 2 ,x 3}, the first dimension is the size of the penalty coefficient C, the second dimension is the size of the kernel function coefficient γ, and the third dimension is the size of the loss limit ε; according to experience and parameter recommendations, the upper and lower limits of the three parameters are set as: 0<C<100, 0<γ<10, 0<ε<1; the fitness function of this GWO algorithm is the size of MSE.

[0231] The data set in Table 3 is sorted, standardized, and substituted into the SVR model. The GWO intelligent optimization algorithm is used to obtain the optimal parameters of SVR and the best fitting effect. Table 4 shows the test set accuracy of SVR and the test set accuracy of GSVR after GWO optimization.

[0232] Table 4 Model verification machine accuracy table

[0233]

[0234] As can be seen from Table 4, GSVR has a higher accuracy, so the GSVR model is selected as the fitness function of the GWO algorithm.

[0235] 2 GWO algorithm optimization results

[0236] Before optimizing the GWO algorithm, set the GWO algorithm parameters. Set the GWO population size N0 = 50, and use the good point set method to initialize the population; the number of iterations T0 = 100; and set the gray wolf dimension to 4, and the gray wolf position coordinates to The first dimension is the spindle speed n z The second dimension is the feed rate v j The third dimension is the axial cutting depth a p The fourth dimension is the radial depth of cut a e The value range of process parameters is set according to the vertical machining center and CFRP milling experience: 5000 (r / min) < n z <8000(r / min),100(mm / min)<v j <100(mm / min),a p =5mm, a e =1.5mm.

[0237] The GSVR training model is used as the fitness function of the GWO algorithm for iterative output. Table 5 shows the process parameter values ​​(spindle speed, feed speed, axial cutting depth, radial cutting depth) obtained by the GWO-GSVR algorithm optimization. The three-dimensional surface roughness of CFRP contour milling obtained based on these parameters is shown in Table 5.

[0238] Table 5 GWO-GSVR algorithm optimization results

[0239]

[0240] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0241] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0242] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0243] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0244] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A method for optimizing CFRP milling process parameters, characterized in that: The following steps are involved: Step S1: Taking the surface quality of the milled carbon fiber material as the goal and constructing an experimental plan based on preset optimization variables and constraints; Step S2: Obtain the training set and test set according to the experimental results, and use the GWO to improve the SVR algorithm to fit the target and obtain the GSVR model; Step S3: establishing a CFRP milling process parameter optimization model based on the GWO algorithm, taking the GSVR model as the fitness function of the GWO algorithm to obtain the GWO-GSVR model, and optimizing the CFRP milling process parameters based on the GWO-GSVR model to obtain the process parameters with the optimal surface quality; The step S2 is specifically as follows: Step S21: Arrange the data set according to the experimental results into D = {(x1, y1), (x2, y2), ... (x i ,y i )...,(x m ,y m )}, divide the data set according to the preset ratio and divide it into training set D train and the test set D test ; Step S22: normalize the data; Step S23: Optimize the parameters of the SVR algorithm using the GWO algorithm to obtain a GSVR model; The step S23 is specifically as follows: (1) Construct the target form of the SVR algorithm: f(x) = a T x+b; Among them, f(x) is the regression value, which is the representation of the three-dimensional surface roughness of CFRP; x is the input data vector, which is the spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e Combined vector; a is the weight vector, b is the intercept vector; (2) Introduce the relaxation factor and transform the problem into solving the minimization objective function: The constraints are: Among them, ξ i , is the slack variable; C is the penalty function; ε is the loss limit; (3) The Lagrange multiplier method is introduced, and the objective function is transformed by dual transformation and nonlinear transformation. Since the model problem is a nonlinear problem, the independent variable x is mapped to a high-dimensional feature space through a kernel function, thereby transforming the nonlinear regression problem into a linear regression problem. The kernel function type is a Gaussian radial basis kernel function, and the specific regression form is converted to: K(x i ,x)=exp(-γ||x i -x|| 2 ) Where γ is the kernel coefficient, and δ represents the bandwidth of the Gaussian kernel; α i , is the Lagrange multiplier; K(x i ,x) is the Gaussian radial basis kernel function; (4) The penalty coefficient C, kernel coefficient γ and loss limit ε have the greatest impact on the fitting performance of the SVR algorithm, and the GWO algorithm is used for intelligent optimization to fit the model with the most appropriate parameters; The intelligent optimization using the GWO algorithm is specifically as follows: (1) Initialize the population in three-dimensional space. Suppose there are N gray wolf individuals, and set the number of iterations to T. The initial gray wolf individuals are Let the first dimension be the size of the penalty coefficient C, the second dimension be the size of the kernel function coefficient γ, the third dimension be the size of the loss limit ε, and the population generation method be the good point set generation method: P i =[{d1*i},{d2*i},{d3*i}],i=1,2,...,N Where P i represents the set of good points corresponding to the gray wolf numbered i; {d j *i} represents the best point element corresponding to the i-th gray wolf in the j-th dimension, and the value is d j *i is the decimal part; p represents the smallest prime number that satisfies the constraint (p-3) / 2≥3; represents the value of the i-th gray wolf in the j-th dimension; represents the good point coefficient, corresponding to the element of the jth dimension in the good point set; N represents the number of individuals in the gray wolf population; T represents the maximum number of iterations required; lb 1 ,ub 1 Indicates the minimum and maximum values ​​of the penalty coefficient C constraint; lb 2 ,ub 2 represents the minimum and maximum values ​​of the kernel function coefficient γ constraint; lb 3 ,ub 3 represents the minimum and maximum values ​​on the loss bound ε constraint; (2) Bring the initialized gray wolf population individuals into the SVR algorithm for fitting and obtain the fitting prediction value Y p ={y p1 ,y p2 ,...y pN }, calculate the pre-test value and the actual value And the fitness value of the gray wolf is Y s =MSE; Among them, Y p represents the predicted value of the gray wolf population; y pi represents the predicted value of gray wolf; y i represents the true value of the gray wolf; Y s represents the fitness value of the gray wolf; (3) Sort the gray wolf individuals by their fitness, where the gray wolf with the smallest fitness is α, the gray wolf with the second smallest fitness is β, the gray wolf with the third smallest fitness is δ, and the remaining gray wolves are called ω; (4) The wolf pack surrounds the prey, and the gray wolf approaches the prey; d=|B·X p (t)-X(t)| X(t+1)=X p (t)-A·d A=2a·r1-a B=2·r2 Where d represents the distance between the individual gray wolf and the prey; t represents the current number of iterations; A and B represent the coefficient vectors; X p represents the location of the prey; X represents the current location of the gray wolf; the convergence factor of type a decreases nonlinearly from 2 to 0 as the number of iterations increases; r1 and r2 are random vectors, and their moduli are random numbers between [0,1]; (5) Hunting: The gray wolf identifies the location of the prey and surrounds the prey. Assuming that α, β, and δ know the potential location of the prey better, we retain these three optimal solutions in the iterative process and update the individual positions of other gray wolves. The model of the gray wolf tracking prey is as follows: d α =|B1·X α -X| d β =|B2·X β -X| d δ =|B3·X δ -X| Among them, d α d β and d δ is the distance between α, β and δ gray wolves and other gray wolves; X α , X β and X δ represents the current position of α, β and δ gray wolves; B1, B2 and B3 are random vectors; (6) Gray wolves are hunting. The wolf pack approaches its prey. X1=X α -A·d α X2=X β -A·d β X3=X δ -A·d δ Among them, X1, X2, and X3 represent the step length and direction of the ω gray wolf moving towards the α, β, and δ gray wolves; X(t+1) represents the updated position of the ω gray wolf; (7) Iterate. When the iteration condition is not met, iterate according to (3)-(6). When the iteration condition is met, output the gray wolf α to obtain the optimal solution of the optimization target. The position coordinates of the gray wolf α represent the penalty coefficient C, the kernel coefficient γ and the loss limit ε of the SVR. (8) Substitute the optimized penalty coefficient C, kernel coefficient γ and loss limit ε into the SVR algorithm to obtain the GSVR fitting model. train and the test set D test Substitute into GSVR for cross-training, and retain the fitted model after training; The step S3 is specifically as follows: Step S31: Initialize the gray wolf population, assuming N o gray wolf individuals, and set the number of iterations to T o , let the first dimension be the spindle speed n z The second dimension is the feed rate v j The third dimension is the axial cutting depth a p The fourth dimension is the radial depth of cut a e The size of the individual gray wolf is initialized as And the axial cutting depth a p and radial depth of cut a e Is a fixed value, and the initialization population is generated using the good point set generation method in the two-dimensional plane: P oi =[{d o1 *i},{d o2 *i}],i=1,2,...,N o Where P oi represents the set of good points corresponding to the gray wolf numbered i; {d oj *i} represents the best point element corresponding to gray wolf i in the jth dimension, and the value is d oj *i decimal part; p o Indicates satisfaction (p o -2) / 2≥2 is the smallest prime number within the constraint; represents the value of the i-th gray wolf in the j-th dimension; represents the good point coefficient, corresponding to the element of the jth dimension in the good point set; N o represents the number of individuals in the gray wolf population; T o Indicates the maximum number of iterations required; Indicates the spindle speed n z Minimum and maximum values ​​under constraints; Indicates feed speed v j Minimum and maximum values ​​under constraints; Indicates the axial cutting depth a p and radial depth of cut a e The size of is a preset value; Step S32: Obtain the fitting prediction value from the initialized gray wolf population individual GSVR model Among them, the fitted predicted value Y op is the three-dimensional surface roughness and serves as the fitness value of the gray wolf; Step S33: stratify the gray wolf population, where the minimum fitness is α o Gray wolf, the second smallest fitness is β o Gray wolf, the third smallest fitness is δ o Gray wolf, the remaining gray wolf is called ω o Gray wolf; Step S34: The wolf pack surrounds the prey, and the gray wolf approaches the prey; Step S35: The gray wolf population hunts and uses α o , β o and δ o The position update ω of the gray wolf individual o The location of individual gray wolves; Step S36: Perform iteration, and when the iteration condition is met, output the iteration result α o Gray wolf, get the optimal solution of the optimization target; where α o The position coordinates of the gray wolf represent the process parameters when the surface roughness of CFRP milling is the best, spindle speed n z , feed speed v j , axial cutting depth a p , radial cutting depth a e .

2. The method for optimizing CFRP milling process parameters according to claim 1, characterized in that: The optimization variables include the cutting spindle speed n z , feed speed v j , axial cutting depth a p and radial depth of cut a e ; Among them, the axial cutting depth a p and radial depth of cut a e Set it as a fixed value and design the spindle speed n z and feed speed v j Perform full factorial experiments at different levels.

3. The method for optimizing CFRP milling process parameters according to claim 1, characterized in that: The constraints are specifically: Spindle speed n min ≤n z ≤n max Feed speed v min ≤v j ≤v max Among them, n min 、n max is the spindle speed n z The minimum and maximum values ​​of v min 、v max is the feed speed v j The minimum and maximum values ​​of .

4. The method for optimizing CFRP milling process parameters according to claim 1, characterized in that: The specific step S22 is: the original independent variable is X={x1, x2, ...x i ...,x m }, Normalization method After transformation, D = {(x g1 ,y1),(x g2 ,y2),...(x gi ,y i )...,(x gm ,y m )}; Among them, x i is the initial value of the variable; x gi is the normalized variable; Max is the maximum value of the original variable; Min is the minimum value of the original variable.

5. The method for optimizing CFRP milling process parameters according to claim 1, characterized in that: The hierarchical classification of the gray wolf society is as follows: The first level is: the leader of the gray wolf pack is recorded as α gray wolf, and α gray wolf can dominate all other gray wolves; The second layer is: the β-grey wolf in the grey wolf pack, which is dominated by the α-grey wolf but can dominate the grey wolves in other levels of the wolf pack society; The third layer is: the δ gray wolf in the gray wolf pack, which is dominated by the α gray wolf and the β gray wolf, but can dominate the gray wolves in other levels of the wolf pack society; The fourth layer is: the ω gray wolf in the gray wolf pack, which is dominated by the α gray wolf, β gray wolf and δ gray wolf.

6. A CFRP milling process parameter optimization system, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory. When the processor executes the computer program, the method specifically executes the steps in the method for optimizing milling process parameters according to any one of claims 1 to 5.