Variable curvature bending arc control method for roll bending machine
By combining the genetic algorithm, back propagation neural network and particle swarm optimization algorithm, the controller parameters of the rolling bending machine are optimized, which solves the problem of difficulty in controlling the forming radius of variable curvature rolling profiles and achieves the accurate variable curvature arc bending of the rolling bending machine. control, improving production efficiency and product quality.
Patent Information
- Application Number
- CN202410521415.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-04-28
AI Technical Summary
In the prior art, it is difficult to control the forming radius of roll-bent profiles with variable curvatures, resulting in the inability to achieve smooth transitions of profiles with different curvatures.
Using a method that combines genetic algorithm (GA), back propagation neural network (BP) and particle swarm optimization algorithm (PSO), preprocessing is performed by collecting the working data of the rolling bending machine, initializing and iteratively optimizing the back propagation neural network, and optimizing Controller parameters to achieve precise control of the variable curvature arc of the rolling bending machine.
It achieves precise control of the variable curvature arc bending torque of the roll bending machine, improves the control performance and robustness of the system, can respond to large changes in curvature stably and quickly, and improves production efficiency and product quality.
Smart Images

Figure CN118444563B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of industrial production control, and in particular relates to a variable curvature arc bending control method for a rolling bending machine. Background Art
[0002] Roll forming is a metal processing method that uses a roll bending machine to roll metal sheets or tubes along the axial direction. As a common metal forming process, it is widely used in aviation, rockets, ships, automobiles and construction.
[0003] The principle of roll bending is to place the metal sheet or tube between the rollers of the roll bending machine and push the metal material forward through the rolling shaft so that it is gradually bent into the desired shape through the rollers. The rollers are composed of one or more metal rollers, and their arrangement is adjusted as needed to perform flexible, semi-flexible or rigid roll bending. When the rollers pass through the metal material, they exert a certain force and bend the metal. At the same time, adjusting the position and angle of the rollers can control the degree and shape of the metal bending. Traditional roll bending machines are all manually controlled, and often have to go through many repeated forming and correction to meet the requirements. This is not only inefficient, but also costly. In addition, the processing process of making variable curvature profile parts is more complicated. At present, the roll bending of large-size and asymmetric cross-section profile parts is still in the theoretical research stage, and effective equipment and mature experience are relatively scarce. For the current stage of variable curvature roll bending profile processing, the forming radius is difficult to control, and it is impossible to achieve a smooth transition of profiles with different curvatures. Summary of the invention
[0004] The purpose of the present invention is to provide a variable curvature bending arc control method for a rolling machine, which solves the technical problem in the prior art that the forming radius of variable curvature rolling profiles is difficult to control, resulting in the inability to achieve a smooth transition of profiles with different curvatures.
[0005] The technical solution adopted by the present invention is a variable curvature arc bending control method of a roll bending machine, which is specifically implemented according to the following steps:
[0006] Step 1, collecting the working data of the roll bending machine and preprocessing the data;
[0007] Step 2, determining the number of input layer nodes, hidden layer nodes and output layer nodes of the back propagation neural network according to the preprocessed data in step 1;
[0008] Step 3, according to the real number coding rule, the weights and thresholds of the back propagation neural network are encoded into individuals in the population, and the population is initialized according to the set population size and random initialization method;
[0009] Step 4, iterate the population obtained in step 3 according to the GA-PSO algorithm rules to obtain the global optimal individual;
[0010] Step 5, decoding the global optimal individual obtained in step 4, restoring the back propagation neural network structure information, and substituting it into the back propagation neural network to obtain the initial weights and thresholds of the back propagation neural network;
[0011] Step 6, according to the preset gradient descent supervised learning method and error back propagation learning algorithm, the back propagation neural network is repeatedly trained to obtain an optimized back propagation neural network;
[0012] Step 7, applying the back propagation neural network model optimized in step 6 to the actual control system to accurately control the variable curvature bending arc of the rolled profile.
[0013] The present invention is also characterized in that:
[0014] The preprocessing in step 1 is as follows:
[0015] By collecting the working data of the rolling machine in a certain period of time as training samples, the training samples include torque To, roller pressure Pr, roller position Pot, feed speed V and material temperature Te, according to the torque value and roller position Pot1 of the rolling machine in the time period t1, the torque value and roller position Pot2 of the rolling machine in the time period t2 are predicted, wherein the time lengths of t1 and t2 are equal;
[0016] The preprocessing finally obtains the input vector P (Tot1, Prt1, Pot1, Vt1, Tet1) and the output vector T (Pot2).
[0017] Step 2 is as follows:
[0018] Step 2.1, the number of input layer nodes matches the number of features of the training sample, and each input layer node corresponds to one feature;
[0019] Step 2.2: The number of nodes in the output layer depends on whether the problem to be solved is a classification problem or a regression problem. When it is a classification problem, the number of nodes in the output layer is the same as the number of categories; when it is a regression problem, the number of output nodes is one;
[0020] The output of the kth neuron in the output layer is:
[0021]
[0022] In formula (1), a 1k is the output of node k in the output layer, a 1i is the output of hidden layer node i, ω 1ki is the connection weight between node i and node j, b 1k is the threshold of node k in the output layer, and f1(·) is the transfer function of the output layer;
[0023] Step 2.3, the number of hidden layer nodes starts from a small number of nodes, and then gradually increases until the performance is stable. The output of the i-th neuron in the hidden layer is:
[0024]
[0025] In formula (2), p j is the input of the jth neuron in the input layer, a 2i is the output of hidden layer node i, ω 2ji is the connection weight between node i and node j, b 2i is the threshold of hidden layer node i, and f2(·) is the transfer function of the hidden layer.
[0026] The number of hidden layer nodes in step 2.3 is based on the empirical formula to determine;
[0027] Where: n is the number of hidden layer nodes, n i is the number of nodes in the input layer, n o is the number of nodes in the output layer, a is a constant between 1 and 10, and n ranges from 4 to 13.
[0028] Step 4 is as follows:
[0029] Step 4.1, back propagation neural network parameter initialization setting, pre-set mutation probability P m , crossover probability P c , maximum particle speed V max , inertia constant ω, learning factors c1, c2, number of iterations epoch and the solved accuracy value E;
[0030] Step 4.1.1, crossover operator design, as shown in equation (3) and equation (4):
[0031] a. Position crossover operation:
[0032]
[0033] b. Speed cross operation:
[0034]
[0035] In formula (3) and formula (4), α1, α2 are random numbers between [0, 1], x i is the position vector of the ith particle, x j is the position vector of the jth particle, v i is the velocity vector of the ith particle, v j is the velocity vector of the jth particle;
[0036] Step 4.1.2, mutation operator design, select the i-th individual for mutation, as shown in equation (5) and equation (6):
[0037] a. Position mutation operation:
[0038]
[0039] b. Speed variation operation:
[0040]
[0041] In formula (5) and formula (6), X max ,X min are the upper and lower bounds of the particle position, V max ,V min are the maximum and minimum values of the speed, r1, r2, r3 are random numbers in [0, 1], g is the current number of iterations, x i is the position vector of the ith particle; v i is the velocity vector of the particle;
[0042] Step 4.2, population initialization, set the population size N, the particle dimension n, use the random initialization method to initialize the particle speed and position, encode the particle speed and position information according to the pre-set encoding rules, obtain the initial population, use the fitness function to calculate the individual fitness value of the particle swarm, and update the individual extreme value of the particle and the global extreme value of the particle swarm;
[0043] Step 4.3: During the iteration process, the particle swarm algorithm updates the position and velocity of the particles according to equations (7) and (8). The movement of the particle swarm is attracted by the local optimal solution and the global optimal solution, and finally converges to the global optimal solution:
[0044] v i+1 =ω*v i +c1r1(pbest i -x i )+c2r2(gbest i -x i ) (7)
[0045] x i+1 =x i +v i+1 (8)
[0046] In equations (7) and (8), ω is the inertia weight factor, c1 and c2 are learning factors, also known as acceleration constants, both of which are random numbers between (0, 2), r1 and r2 are uniform random numbers in the range of (0, 1); x i is the position vector of the ith particle, vi is the velocity vector of the particle; v i+1 is the velocity vector of the particle in the next iteration, v i ∈[-v max ,v max ],v max is a constant set by the user to limit the particle speed; pbest i is the current optimal position of the particle, that is, the individual extreme value, gbest i is the current optimal position of the particle swarm, that is, the global extreme value;
[0047] Step 4.4, particle swarm crossover operation, using the wheel selection operator to select some particles with better fitness values from the particle swarm, and using the speed crossover operator and position crossover operator to respectively adjust the speed and position of the particle group according to the set crossover probability P c Perform a crossover operation, compare the fitness values of the two generations of particles before and after the crossover operation, select particles with better fitness and put them into the particle group to enter the next iteration;
[0048] Step 4.5, particle swarm mutation operation, select some particles with poor fitness values from the particle swarm, use the speed mutation operator and position mutation operator to respectively change the speed and position of the particles according to the set mutation probability P m Perform mutation operation and put the particles obtained by mutation operation into the group;
[0049] Step 4.6, calculate the fitness value of the particle swarm and update the individual particle extreme value pbest i , update the global extreme value gbest of the particle swarm i ;
[0050] Step 4.7, the algorithm ends and determines whether the evolutionary generation of the particles meets the set maximum evolutionary generation, or whether the fitness value of the particle swarm meets the target value. If so, the algorithm ends and outputs the global extreme value gbest of the particle swarm, which is the optimal solution to the problem to be optimized; otherwise, go to step 4.3.
[0051] Step 5 is as follows:
[0052] According to the encoding rules, the reverse decoding operation is performed to restore the structural information of the back propagation neural network, including the number of nodes and connection information of the input layer, hidden layer and output layer, and the decoded weights and thresholds are recombined into the corresponding weight matrix and threshold vector;
[0053] Output error back propagation process:
[0054] The samples are calculated through the forward propagation process to obtain the output value of the back-propagation neural network, and the output error of the back-propagation neural network is used to learn and correct the weights and thresholds of the back-propagation neural network.
[0055] The error function is:
[0056]
[0057] In formula (9), t k is the expected output, a 2k is the actual output of the network, and E is the error function;
[0058] The output layer weight correction, the weight from the i-th input to the k-th output is:
[0059]
[0060] δ ki =e k f2 ′ (11)
[0061] e k =t k -a 2k (12)
[0062] In formulas (10), (11) and (12), η is the learning coefficient, E is the error criterion function, ω 2ki is the connection weight between node i and node k, a 1i is the output of hidden layer node i, δ ki is the local gradient of the i-th neuron of the k-th group of samples, f2 ′ is the first-order derivative of the output layer transfer function;
[0063] The hidden layer weight correction, the weight from the jth input to the i-th output is:
[0064]
[0065] δ ij =e i f1 ′ (14)
[0066]
[0067] In formulas (13), (14) and (15), η is the learning coefficient, E is the error criterion function, ω 1ij is the connection weight between node i and node j, δ ij is the local gradient of the jth neuron of the i-th group of samples, p j is the input of the jth neuron in the input layer, ω 2ki is the connection weight between node i and node k, f2 ′ is the first-order derivative of the output layer transfer function;
[0068] The output deviation of the back-propagation neural network is transferred from the output layer to the hidden layer and then to the input layer, and the weights of each layer of the back-propagation neural network are corrected. The threshold is regarded as the connection weight of a neuron with an input of 1, and participates in the adjustment of the weights together.
[0069] The repeated learning in step 6 is specifically: continuously repeating the process of forward transmission of the input pattern and reverse propagation of the output error, verifying whether the output error of the back-propagation neural network reaches the given expected accuracy value. If the expected accuracy value is reached, the learning ends, otherwise the cycle continues.
[0070] The beneficial effects of the present invention are:
[0071] The variable curvature arc bending control method of the roll bending machine of the present invention realizes precise control of the variable curvature arc bending torque of the roll bending machine by combining genetic algorithm (GA), back propagation neural network (BP) and particle swarm optimization algorithm (PSO); by optimizing controller parameters, the control performance and robustness of the system are improved, so that the roll bending machine can stably and quickly realize torque control when the curvature changes greatly; the present invention can effectively cope with the control requirements under complex working conditions, improve production efficiency and product quality, and has good engineering application prospects; the present invention brings significant optimization effect to the variable curvature arc bending torque control of the roll bending machine, solves the technical problem that the processing and forming radius of the variable curvature roll bending profile is difficult to control in the prior art, resulting in the inability to achieve smooth transition of profiles with different curvatures, and has important practical significance and application promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a schematic flow chart of a variable curvature arc bending control method of a roll bending machine according to the present invention;
[0073] Figure 2 It is a network topology diagram of the back propagation neural network in the variable curvature arc bending control method of the roll bending machine of the present invention. DETAILED DESCRIPTION
[0074] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0075] Example 1
[0076] like Figure 1 and Figure 2 As shown, the variable curvature arc bending control method of the roll bending machine disclosed in the present invention is specifically implemented according to the following steps:
[0077] Step 1: Collect the working data of the roll bending machine and pre-process the data. Through feature selection and extraction methods, extract key feature parameters for use in establishing a control model.
[0078] Step 2, determining the number of input layer nodes, hidden layer nodes and output layer nodes of the back propagation neural network according to the preprocessed data in step 1;
[0079] Step 3: Encode the weights and thresholds of the back propagation neural network into individuals in the population according to the real number coding rule. One encoded information contains all weights and thresholds of a back propagation neural network and also represents an individual in the population. Initialize the population according to the set population size and random initialization method.
[0080] Step 4, iteratively operate the population obtained in step 3 according to the GA-PSO algorithm rules, pre-set the evolutionary algebra or the output error accuracy of the back propagation neural network as the algorithm termination condition, and when the algorithm meets the termination condition, obtain the global optimal individual, which is an optimal structural parameter of the back propagation neural network;
[0081] Step 5, decoding the global optimal individual obtained in step 4, restoring the back propagation neural network structure information, and substituting it into the back propagation neural network to obtain the initial weights and thresholds of the back propagation neural network;
[0082] Step 6, according to the preset gradient descent supervised learning method and error back propagation learning algorithm, the back propagation neural network is repeatedly trained to obtain an optimized back propagation neural network;
[0083] Step 7, applying the back propagation neural network model optimized in step 6 to the actual control system to accurately control the variable curvature bending arc of the rolled profile.
[0084] The present invention realizes precise control of the variable curvature bending torque of the roll bending machine by combining genetic algorithm, back propagation neural network and particle swarm optimization. By optimizing the controller parameters, the control performance and robustness of the system are improved, so that the roll bending machine can stably and quickly realize torque control when the curvature changes greatly. The present invention can effectively meet the control requirements under complex working conditions, improve production efficiency and product quality, and has good engineering application prospects. The present invention brings significant optimization effects to the variable curvature bending torque control of the roll bending machine, which has important practical significance and application promotion value.
[0085] Example 2
[0086] Based on Example 1, the pretreatment in step 1 is specifically as follows:
[0087] By collecting the working data of the rolling machine in a certain period of time as training samples, the training samples include torque To, roller pressure Pr, roller position Pot, feed speed V and material temperature Te, according to the torque value and roller position Pot1 of the rolling machine in the time period t1, the torque value and roller position Pot2 of the rolling machine in the time period t2 are predicted, wherein the time lengths of t1 and t2 are equal;
[0088] The preprocessing finally obtains the input vector P (Tot1, Prt1, Pot1, Vt1, Tet1) and the output vector T (Pot2).
[0089] Furthermore, the step 2 is specifically as follows:
[0090] Step 2.1, the number of input layer nodes matches the number of features of the training sample, each input layer node corresponds to one feature, and the number of input layer nodes of the present invention is 5;
[0091] Step 2.2, the number of output layer nodes depends on whether the problem to be solved is a classification problem or a regression problem. When it is a classification problem, the output layer usually has the same number of nodes as the number of categories; when it is a regression problem, there is usually only one output node. In the present invention, the number of output layer nodes is 1.
[0092]
[0093] In formula (1), a 1k is the output of node k in the output layer, a 1i is the output of hidden layer node i, ω 1ki is the connection weight between node i and node j, b 1k is the threshold of node k in the output layer, and f1(·) is the transfer function of the output layer;
[0094] Step 2.3, the number of hidden layer nodes is determined based on experience and experiments. Usually, the number of hidden layer nodes starts with a small number of nodes, and then gradually increases until the performance is stable. The output of the i-th neuron in the hidden layer is:
[0095]
[0096] In formula (2), p j is the input of the jth neuron in the input layer, a 2i is the output of hidden layer node i, ω 2ji is the connection weight between node i and node j, b 2i is the threshold of hidden layer node i, and f2(·) is the transfer function of the hidden layer.
[0097] Furthermore, the GA-PSO algorithm in step 4 is specifically:
[0098] Step 4.1, back propagation neural network parameter initialization setting, pre-set mutation probability P m , crossover probability P c , maximum particle speed V max , inertia constant ω, learning factors c1, c2, number of iterations epoch and the solved accuracy value E;
[0099] Step 4.1.1, crossover operator design, as shown in equation (3) and equation (4):
[0100] a. Position crossover operation:
[0101]
[0102] b. Speed cross operation:
[0103]
[0104] In formula (3) and formula (4), α1, α2 are random numbers between [0, 1], x i is the position vector of the ith particle, x j is the position vector of the jth particle, v i is the velocity vector of the ith particle, v j is the velocity vector of the jth particle;
[0105] Step 4.1.2, mutation operator design, select the i-th individual for mutation, as shown in equation (5) and equation (6):
[0106] a. Position mutation operation:
[0107]
[0108] b. Speed variation operation:
[0109]
[0110] In formula (5) and formula (6), X max ,X min are the upper and lower bounds of the particle position, V max ,V min are the maximum and minimum values of the speed, r1, r2, r3 are random numbers in [0, 1], g is the current number of iterations, x i is the position vector of the ith particle; v i is the velocity vector of the particle;
[0111] Step 4.2, population initialization, set the population size N, the particle dimension n, use the random initialization method to initialize the particle speed and position, encode the particle speed and position information according to the pre-set encoding rules, obtain the initial population, use the fitness function to calculate the individual fitness value of the particle swarm, and update the individual extreme value of the particle and the global extreme value of the particle swarm;
[0112] Step 4.3: During the iteration process, the particle swarm algorithm updates the position and velocity of the particles according to equations (7) and (8). The movement of the particle swarm is attracted by the local optimal solution and the global optimal solution, and finally converges to the global optimal solution:
[0113] v i+1 =ω*v i +c1r1(pbest i -x i )+c2r2(gbest i -x i ) (7)
[0114] x i+1 =x i +v i+1 (8)
[0115] In equations (7) and (8), ω is the inertia weight factor, c1 and c2 are learning factors, also known as acceleration constants, both of which are random numbers between (0, 2), r1 and r2 are uniform random numbers in the range of (0, 1); x i is the position vector of the ith particle, v i is the velocity vector of the particle; v i+1 is the velocity vector of the particle in the next iteration, v i ∈[-v max ,v max ],v max is a constant set by the user to limit the particle speed; pbest i is the current optimal position of the particle, that is, the individual extreme value, gbest i is the current optimal position of the particle swarm, that is, the global extreme value;
[0116] Step 4.4, particle swarm crossover operation, using the wheel selection operator to select some particles with better fitness values from the particle swarm, and using the speed crossover operator and position crossover operator to respectively adjust the speed and position of the particle group according to the set crossover probability P c Perform a crossover operation, compare the fitness values of the two generations of particles before and after the crossover operation, select particles with better fitness and put them into the particle group to enter the next iteration;
[0117] Step 4.5, particle swarm mutation operation, select some particles with poor fitness values from the particle swarm, use the speed mutation operator and position mutation operator to respectively change the speed and position of the particles according to the set mutation probability P m Perform mutation operation and put the particles obtained by mutation operation into the group;
[0118] Step 4.6, calculate the fitness value of the particle swarm and update the individual particle extreme value pbest i , update the global extreme value gbest of the particle swarm i ;
[0119] Step 4.7, the algorithm ends and determines whether the evolutionary generation of the particles meets the set maximum evolutionary generation, or whether the fitness value of the particle swarm meets the target value. If so, the algorithm ends and outputs the global extreme value gbest of the particle swarm, which is the optimal solution to the problem to be optimized; otherwise, go to step 4.3.
[0120] Furthermore, the step 5 is specifically as follows:
[0121] According to the encoding rules, the reverse decoding operation is performed to restore the structural information of the back propagation neural network, including the number of nodes and connection information of the input layer, hidden layer and output layer, and the decoded weights and thresholds are recombined into the corresponding weight matrix and threshold vector;
[0122] Output error back propagation process:
[0123] The samples are calculated through the forward propagation process to obtain the output value of the back-propagation neural network, and the output error of the back-propagation neural network is used to learn and correct the weights and thresholds of the back-propagation neural network.
[0124] The error function is:
[0125]
[0126] In formula (9), t k is the expected output, a 2k is the actual output of the network, and E is the error function;
[0127] The output layer weight correction, the weight from the i-th input to the k-th output is:
[0128]
[0129] δ ki =e k f2 ′ (11)
[0130] e k =t k -a 2k(12)
[0131] In formulas (10), (11) and (12), η is the learning coefficient, E is the error criterion function, ω 2ki is the connection weight between node i and node k, a 1i is the output of hidden layer node i, δ ki is the local gradient of the i-th neuron of the k-th group of samples, f2 ′ is the first-order derivative of the output layer transfer function;
[0132] The hidden layer weight correction, the weight from the jth input to the i-th output is:
[0133]
[0134] δ ij =e i f1 ′ (14)
[0135]
[0136] In formulas (13), (14) and (15), η is the learning coefficient, E is the error criterion function, ω 1ik is the connection weight between node i and node j, δ ij is the local gradient of the jth neuron of the i-th group of samples, p j is the input of the jth neuron in the input layer, ω 2ki is the connection weight between node i and node k, f2 ′ is the first-order derivative of the output layer transfer function;
[0137] The output deviation of the back-propagation neural network is transferred from the output layer to the hidden layer and then to the input layer, and the weights of each layer of the back-propagation neural network are corrected. The threshold is regarded as the connection weight of a neuron with an input of 1, and participates in the adjustment of the weights together.
[0138] Further, according to the pre-set gradient descent supervised learning method and error back propagation learning algorithm, the back propagation neural network is repeatedly trained until the algorithm termination condition is met. When the algorithm ends, the final output of the GA-PSO-BP network is obtained. The final output refers to the parameters and weight values obtained after the back propagation neural network training. These parameters and weight values are the key factors for controlling the behavior of the model. The output result is a mapping result corresponding to the input data of the back propagation neural network. The repeated learning in step 6 is specifically: the process of continuously repeating the forward transmission of the input mode and the reverse propagation of the output error. In order to make the output error of the back propagation neural network small enough, each set of training samples of the back propagation neural network usually has to go through hundreds of repeated training processes before the back propagation neural network can master the mapping relationship between the input and output data. Each cyclic memory training needs to verify whether the output error of the back propagation neural network reaches the given expected accuracy value. If the expected accuracy value is reached, the learning ends, otherwise the cycle continues.
[0139] Example 3
[0140] Since the back propagation neural network model has five input parameters, namely torque, roller pressure, roller position, feed speed and material temperature, and one output parameter is the torque value of the roll bending machine at the next moment, the input layer has five nodes and the output layer has one node. The number of hidden layer nodes in step 2.3 is calculated according to the empirical formula to determine;
[0141] Where: n is the number of hidden layer nodes; n i is the number of nodes in the input layer; n o is the number of output layer nodes; a is a constant between 1 and 10; the value range of n is 4 to 13. In this embodiment, the number of hidden layer nodes n is 10.
Claims
1. A variable curvature arc control method for a roll bending machine, characterized in that: Follow the steps below to implement it: Step 1, collecting the working data of the roll bending machine and preprocessing the data; Step 2, determining the number of input layer nodes, hidden layer nodes and output layer nodes of the back propagation neural network according to the preprocessed data in step 1; Step 3, according to the real number coding rule, the weights and thresholds of the back propagation neural network are encoded into individuals in the population, and the population is initialized according to the set population size and random initialization method; Step 4, iterate the population obtained in step 3 according to the GA-PSO algorithm rules to obtain the global optimal individual; Step 5, decoding the global optimal individual obtained in step 4, restoring the back propagation neural network structure information, and substituting it into the back propagation neural network to obtain the initial weights and thresholds of the back propagation neural network; Step 6, according to the preset gradient descent supervised learning method and error back propagation learning algorithm, the back propagation neural network is repeatedly trained to obtain an optimized back propagation neural network; Step 7, applying the optimized back propagation neural network model in step 6 to the actual control system to accurately control the variable curvature bending arc of the rolled profile; The pretreatment in step 1 is specifically as follows: By collecting the working data of the roll bending machine in a certain period of time as training samples, the training samples include torque To, roller pressure Pr, roller position Pott, feed speed V and material temperature Te, according to the torque value and roller position Pott1 of the roll bending machine in the time period t1, the torque value and roller position Pott2 of the roll bending machine in the time period t2 are predicted, wherein the time lengths of t1 and t2 are equal; The preprocessing finally obtains the input vector P (Tot1, Prt1, Pott1, Vt1, Tet1) and the output vector T (Pott2).
2. The variable curvature arc bending control method of a roll bending machine according to claim 1, characterized in that: The step 2 is specifically as follows: Step 2.1, the number of input layer nodes matches the number of features of the training sample, and each input layer node corresponds to one feature; Step 2.2: The number of nodes in the output layer depends on whether the problem to be solved is a classification problem or a regression problem. When it is a classification problem, the number of nodes in the output layer is the same as the number of categories; when it is a regression problem, the number of output nodes is one; The output of the kth neuron in the output layer is: In formula (1), a 1k is the output of node k in the output layer, a 1i is the output of hidden layer node i, ω 1ki is the connection weight between node i and node k, b 1k is the threshold of node k in the output layer, and f1(·) is the transfer function of the output layer; Step 2.3, the number of hidden layer nodes starts from a small number of nodes, and then gradually increases until the performance is stable. The output of the i-th neuron in the hidden layer is: In formula (2), n is the number of nodes in the input layer, p j is the input of the jth neuron in the input layer, a 2i is the output of hidden layer node i, ω 2ji is the connection weight between node i and node j, b 2i is the threshold of hidden layer node i, and f2(·) is the transfer function of the hidden layer.
3. The variable curvature arc bending control method of a roll bending machine according to claim 2, characterized in that: The number of hidden layer nodes in step 2.3 is based on the empirical formula to determine; Where: n is the number of hidden layer nodes, n i is the number of nodes in the input layer, n o is the number of nodes in the output layer, a is a constant between 1 and 10, and n ranges from 4 to 13.
4. The variable curvature arc bending control method of a roll bending machine according to claim 1, characterized in that: The step 4 is specifically as follows: Step 4.1, back propagation neural network parameter initialization setting, pre-set mutation probability P m , crossover probability P c , maximum particle speed V max , inertia constant ω, learning factors c1, c2, number of iterations epoch and the solved accuracy value E; Step 4.1.1, crossover operator design, as shown in equation (3) and equation (4): a. Position crossover operation b. Speed cross operation: In formula (3) and formula (4), α1, α2 are random numbers between [0, 1], x i is the position vector of the ith particle, x j is the position vector of the jth particle, v i is the velocity vector of the ith particle, v j is the velocity vector of the jth particle; Step 4.1.2, mutation operator design, select the i-th individual for mutation, as shown in equation (5) and equation (6): a. Position mutation operation b. Speed variation operation In formula (5) and formula (6), X max ,X min are the upper and lower bounds of the particle position, V max ,V min are the maximum and minimum values of the speed, r1, r2, r3 are random numbers in [0, 1], g is the current number of iterations, x i is the position vector of the ith particle; v i is the velocity vector of the particle; Step 4.2, population initialization, set the population size N, the particle dimension n, use the random initialization method to initialize the particle speed and position, encode the particle speed and position information according to the pre-set encoding rules, obtain the initial population, use the fitness function to calculate the individual fitness value of the particle swarm, and update the individual extreme value of the particle and the global extreme value of the particle swarm; Step 4.3: During the iteration process, the particle swarm algorithm updates the position and velocity of the particles according to equations (7) and (8). The movement of the particle swarm is attracted by the local optimal solution and the global optimal solution, and finally converges to the global optimal solution: v i+1 =ω*v i +c1r1(pbest i -x i )+c2r2(gbest i -x i ) (7) x i+1 =x i +v i+1 (8) In formula (7) and formula (8), ω is the inertia weight factor, c1 and c2 are learning factors, also known as acceleration constants, both of which are random numbers between (0, 2), r1 and r2 are uniform random numbers in the range of (0, 1); x i is the position vector of the ith particle, v i is the velocity vector of the particle; v i+1 is the velocity vector of the particle in the next iteration, v i ∈[-v max ,v max ],v max is a constant set by the user to limit the particle speed; pbest i is the current optimal position of the particle, that is, the individual extreme value, gbest i is the current optimal position of the particle swarm, that is, the global extreme value; Step 4.4, particle swarm crossover operation, using the wheel selection operator to select some particles with better fitness values from the particle swarm, and using the speed crossover operator and position crossover operator to respectively adjust the speed and position of the particle group according to the set crossover probability P c Perform a crossover operation, compare the fitness values of the two generations of particles before and after the crossover operation, select particles with better fitness and put them into the particle group to enter the next iteration; Step 4.5, particle swarm mutation operation, select some particles with poor fitness values from the particle swarm, use the speed mutation operator and position mutation operator to respectively change the speed and position of the particles according to the set mutation probability P m Perform mutation operation and put the particles obtained by mutation operation into the group; Step 4.6, calculate the fitness value of the particle swarm and update the individual particle extreme value pbest i , update the global extreme value gbest of the particle swarm i ; Step 4.7, the algorithm ends and determines whether the evolutionary generation of the particles meets the set maximum evolutionary generation, or whether the fitness value of the particle swarm meets the target value. If so, the algorithm ends and the global extreme value gbest of the output particle swarm is the optimal solution to the problem to be optimized; otherwise, go to step 4.
3.
5. The variable curvature arc bending control method of a roll bending machine according to claim 1, characterized in that: The step 5 is specifically as follows: According to the encoding rules, the reverse decoding operation is performed to restore the structural information of the back propagation neural network, including the number of nodes and connection information of the input layer, hidden layer and output layer, and the decoded weights and thresholds are recombined into the corresponding weight matrix and threshold vector; Output error back propagation process: The samples are calculated through the forward propagation process to obtain the output value of the back-propagation neural network, and the output error of the back-propagation neural network is used to learn and correct the weights and thresholds of the back-propagation neural network. The error function is: In formula (9), t k is the expected output, a 2k is the actual output of the network, and E is the error function; The output layer weight correction, the weight from the i-th input to the k-th output is: δ ki =e k f2 ′ (11) e k =t k -a 2k (12) In formulas (10), (11) and (12), η is the learning coefficient, E is the error criterion function, ω 2ki is the connection weight between node i and node k, a 1i is the output of hidden layer node i, δ ki is the local gradient of the i-th neuron of the k-th group of samples, f2 ′ is the first-order derivative of the output layer transfer function; The hidden layer weight correction, the weight from the jth input to the i-th output is: δ ij =and i f1 ′ (14) In formulas (13), (14) and (15), η is the learning coefficient, E is the error criterion function, ω 1ij is the connection weight between node i and node j, δ ij is the local gradient of the jth neuron of the i-th group of samples, p j is the input of the jth neuron in the input layer, ω 2ki is the connection weight between node i and node k, f′1 is the first-order derivative of the hidden layer transfer function; The output deviation of the back-propagation neural network is transferred from the output layer to the hidden layer and then to the input layer, and the weights of each layer of the back-propagation neural network are corrected. The threshold is regarded as the connection weight of a neuron with an input of 1, and participates in the adjustment of the weights together.
6. The variable curvature arc bending control method of a roll bending machine according to claim 1, characterized in that: The repeated learning in step 6 is specifically: continuously repeating the process of forward transmission of the input pattern and reverse propagation of the output error, verifying whether the output error of the back-propagation neural network reaches a given expected accuracy value, if it reaches the expected accuracy value, the learning ends, otherwise the cycle continues.
