A reducer design method based on SWA algorithm
Through the reducer design method based on the SWA algorithm and using Bezier curves to update candidate solutions, the problem of difficult optimization of reducer design parameters in the existing technology is solved, and lower-cost and more robust design parameter acquisition is achieved.
Patent Information
- Application Number
- CN202210628150.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-06
AI Technical Summary
There is a lack of effective methods to optimize reducer design parameters in the existing technology, resulting in high design costs.
The reducer design method based on the SWA algorithm is used to obtain the global optimal solution through modeling and objective function optimization, combined with Bezier curve update candidate solutions.
It effectively reduces the design cost of the reducer, improves the optimization effect and robustness of the design parameters, avoids the stuck problem of the local optimal solution, and improves the design accuracy.
Smart Images

Figure CN114818203B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of engineering design, and in particular to a reducer design method based on a SWA algorithm. Background Art
[0002] Engineering design problems range from the design of parts in small-scale projects to the design of key structures in large-scale projects. Therefore, engineering design problems are crucial in engineering projects. They are not only related to the cost of the project, but also to the level of engineering quality. Therefore, it is very meaningful to design a class of algorithms for engineering design problems.
[0003] Reducer design is one of the engineering design problems, which is essentially an optimization problem. The prior art lacks a method to solve this optimization problem in order to obtain reasonable design parameters for the reducer. Summary of the invention
[0004] The purpose of the present invention is to provide a reducer design method based on the SWA algorithm, which can obtain better parameters and effectively reduce the reducer design cost according to the characteristics of the reducer design problem.
[0005] To achieve the above objectives, this application proposes a reducer design method based on the SWA algorithm, including:
[0006] Step 1: Model the reducer design problem, determine the range and constraints of the design variables, and obtain the objective function of the reducer design problem, that is, the optimal cost value of the reducer under the constraints;
[0007] Step 2: Set the maximum number of iterations T and the population size N to generate the initial population X; each individual X i The position of corresponds to a candidate solution;
[0008] Step 3: Obtain the cost value of each candidate solution according to the objective function of the reducer design problem; update the current best candidate solution BestX and the best cost value BestF;
[0009] Step 4: Set the N / 3 candidate solutions with the worst cost values as Class 1 candidate solutions, and update the Class 1 candidate solutions;
[0010] Step 5: Set the N / 3 candidate solutions with cost values in the middle as Class 2 candidate solutions, and update the Class 2 candidate solutions;
[0011] Step 6: Set the N / 3 candidate solutions with the best cost values as three types of candidate solutions, and update the three types of candidate solutions;
[0012] Step 7: Determine whether the maximum number of iterations has been reached. If so, proceed to step 8, otherwise return to step 3;
[0013] Step 8: Output the best candidate solution BestX and the best cost value BestF.
[0014] Furthermore, the updating method of the first type of candidate solutions is:
[0015] Step 1: Given the number of control points n, the upper bound of the mapping area ub_t, the lower bound of the mapping area lb_t and the candidate solution X to be updated i ;
[0016] Step 2: Randomly generate sequence points r_c sorted from small to large i (i=1,2,3,…,n-1), and use the sequence point r_c i Generate the corresponding sequence point x_c i , the sequence point x_c i = r_c i ×(ub_t-lb_t)+lb_t(i=1,2,3,…,n-1); where i represents the i-th sequence point;
[0017] Step 3: X i as the first control point, and the second control point is X i The mapping point x_t1 passes through x_c1. The third control point is the mapping point x_t2 of x_t1 passing through x_c2. And so on to generate n control points. Substitute the n control points into the Bezier curve formula to obtain the initial position S O ;
[0018] Step 4: Set the initial position S O Substitute into formula (1) to obtain the first candidate solution X i Final location:
[0019] X i =X i +S O ×cos(2πr a ) (1)
[0020] where r a is a random number between [0,1].
[0021] Furthermore, the two types of candidate solutions are updated as follows:
[0022] Step 1: Given the number of control points n and the candidate solution X to be updated i ;
[0023] Step 2: Randomly generate sequence points r_ra sorted from large to small i (i=1,2,3,…,n-1) and sequence point r_roi (i=1,2,3,…,n-1), X i Rotate to get a series of rotation points x_ra i =X i +X i ×cos(2π×r_ra i )(i=1,2,3,…,n-1), then multiply the rotation point by r_ro i Get a series of points x_ro i =r_ra i ×x_ra i (i=1,2,3,…,n-1), these points x_ro i and X i Together they serve as control points of the Bezier curve to obtain the final updated candidate solution.
[0024] Furthermore, the three types of candidate solutions are updated as follows:
[0025] Step 1: Given the number of control points n and the current optimal solution BS;
[0026] Step 2: Get several nearby points x_s using the current optimal solution BS i (i=1,2,3,…,n), the formula for obtaining it is:
[0027]
[0028] Where d is the total number of latitudes, the random step length x_d = rand × (ub–lb) + lb, rand and r are random numbers between [0, 1]; c is a coefficient used to control the winding strength, and the winding coefficient gradually decreases with the increase in the number of iterations, as shown in formula (3):
[0029]
[0030] Among them, Rank1 = 0, Used to control the approximate range of search accuracy; iter is the current iteration number, T is the total iteration number;
[0031] Step 3: Move the nearby point x_s i (i=1,2,3,…,n) are used as the control points of the Bezier curve to obtain the final optimal solution.
[0032] Furthermore, the Bezier curve mathematical model is:
[0033]
[0034] Where P i is the control point, B(t) is the random point found, and t is the random number used to control the position of the random point.
[0035] Compared with the prior art, the above technical solution adopted by the present invention has the following advantages: 1. The present invention marks the candidate solutions into different categories in each iteration and uses different updating methods, which is conducive to obtaining the globally optimal candidate solution and the optimal cost value for better design parameters.
[0036] 2. The invention introduces the Bezier curve, which not only improves the algorithm's exploration ability, but also ensures the algorithm's development ability. It balances the two behaviors well, avoids the optimal candidate solution and the optimal cost value being stuck in a local optimum in some cases, and also improves the accuracy to a certain extent, effectively increasing the robustness of the reducer design problem.
[0037] 3. The present invention can obtain excellent design parameters and effectively reduce the cost of reducer design. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Flowchart of the reducer design method based on SWA algorithm. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application, that is, the embodiments described are only part of the embodiments of the present application, not all of the embodiments.
[0040] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0041] In order to prove the effectiveness of the method proposed in the present invention, the following examples are selected for comparative calculation. The design problem of the reducer involves a total of seven design variables, including the width b (x1) of the surface, the number of tooth modules m (x2), the number of teeth on the pinion z (x3), the length l1 (x4) of the first shaft between the bearings, the length l2 (x5) of the second shaft between the bearings, the diameter d1 (x6) of the first shaft, and the diameter d2 (x7) of the second shaft.
[0042] Example 1
[0043] like Figure 1 As shown, the present application provides a reducer design method based on the SWA algorithm, which specifically includes:
[0044] Step 1: Model the reducer design problem, determine the range and constraints of the design variables; and obtain the objective function of the reducer design problem, that is, the optimal cost value of the reducer under the constraints; the objective function is:
[0045]
[0046] The ranges of the design variables are:
[0047]
[0048] The constraints are:
[0049]
[0050] Step 2: Set the maximum number of iterations T = 1000 and the population size N = 60 to generate the initial population X; each individual X i The position of corresponds to a candidate solution;
[0051] Step 3: Obtain the cost value of each candidate solution according to the objective function of the reducer design problem; update the current best candidate solution BestX and the best cost value BestF;
[0052] Step 4: Set the N / 3 candidate solutions with the worst cost values as Class 1 candidate solutions, and update the Class 1 candidate solutions;
[0053] Step 5: Set the N / 3 candidate solutions with cost values in the middle as Class 2 candidate solutions, and update the Class 2 candidate solutions;
[0054] Step 6: Set the N / 3 candidate solutions with the best cost values as three types of candidate solutions, and update the three types of candidate solutions;
[0055] Step 7: Determine whether the number of iterations reaches 1000. If it reaches the maximum number of iterations, proceed to step 8; otherwise, return to step 3.
[0056] Step 8: Count the results and output the optimal solution BestX and the optimal cost value BestF. The final design parameters are shown in Table 1:
[0057] Table 1. Optimal solutions obtained by SWA for the reducer design problem
[0058]
[0059] The optimal value, average value and standard deviation finally obtained are shown in Table 2:
[0060] Table 2. Optimal values, average values, and standard deviations obtained by SWA for solving the reducer design problem
[0061]
[0062] The present invention performs simulation experiments on the method with the help of MATLAB under Intel(R) Core(TM) i5-10500 3.10 GHz CPU and 16.00 GB memory, Windows 10 operating environment. The experimental results show that the method results of the present invention are better than the experimental results of other algorithms.
[0063] Method comparison:
[0064] In order to compare the robustness of the algorithms, each algorithm was run independently 30 times, and the optimal value, average value, standard deviation and optimal solution were taken as evaluation indicators. The comparison algorithms are Seagull optimization algorithm (SOA), Sooty Tern Optimization Algorithm (STOA), Tunicate SWArm Algorithm (TSA), Aquila Optimizer (AO), Arithmetic Optimization Algorithm (AOA) and Atomic orbital search (AOS). The comparison results are shown in Table 3. The best optimal value and average value of all algorithms will be bolded.
[0065] Table 3. Optimal solutions, optimal values, average values and standard deviations obtained by several algorithms for solving the reducer design problem
[0066]
[0067] Comparative analysis: From the results in Table 3, the reducer design method based on the SWA algorithm can obtain the best optimal value among all the methods, which shows that the method of the present invention can reduce the design cost to a certain extent in actual design. From the comparison of the average values, it can be seen that the reducer design method based on the SWA algorithm has the best average value, which shows that the present invention has good robustness.
[0068] In summary, the reducer design method based on the SWA algorithm proposed in the present invention has better performance and robustness than other advanced methods, can obtain excellent design parameters and reduce the design cost value to a certain extent.
[0069] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A reducer design method based on SWA algorithm, characterized in that: include: Step 1: Model the reducer design problem and determine the range and constraints of the design variables; And the objective function of the reducer design problem is obtained, that is, the optimal cost value of the reducer under the constraint conditions; The design problem of the reducer involves a total of seven design variables, including the width of the face b (x1), the number of tooth modules m (x2), the number of teeth on the pinion z (x3), the length of the first shaft between the bearings l1 (x4), the length of the second shaft between the bearings l2 (x5), the diameter of the first shaft d1 (x6) and the diameter of the second shaft d2 (x7); The objective function is: The ranges of the design variables are: The constraints are: Step 2: Set the maximum number of iterations T and the population size N to generate the initial population X; each individual X i The position corresponds to a candidate solution; Step 3: Obtain the cost value of each candidate solution according to the objective function of the reducer design problem; update the current optimal candidate solution BestX and the optimal cost value BestF; Step 4: Set the N / 3 candidate solutions with the worst cost values as Class 1 candidate solutions, and update the Class 1 candidate solutions in the following manner: Step 1: Given the number of control points n, the upper bound of the mapping area ub_t, the lower bound of the mapping area lb_t and the candidate solution X to be updated i ; Step 2: Randomly generate sequence points r_c sorted from small to large i (i=1,2,3,…,n-1), and use the sequence point r_c i Generate the corresponding sequence point x_c i , the sequence point x_c i = r_c i ×(ub_t-lb_t)+lb_t(i=1,2,3,…,n-1); where i represents the i-th sequence point; Step 3: X i as the first control point, and the second control point is X i The mapping point x_t1 passes through x_c1. The third control point is the mapping point x_t2 of x_t1 passing through x_c2. And so on to generate n control points. Substitute the n control points into the Bezier curve formula to obtain the initial position S O ; Step 4: Set the initial position S O Substitute into formula (1) to obtain the first candidate solution X i Final location: X i =X i +S O ×cos(2πr a ) (1) where r a is a random number between [0,1]; Step 5: Set the N / 3 candidate solutions with the middle cost values as the second category of candidate solutions, and update the second category of candidate solutions in the following manner: Step 1: Given the number of control points n and the candidate solution X to be updated i ; Step 2: Randomly generate sequence points r_ra sorted from large to small i (i=1,2,3,…,n-1) and sequence point r_ro i (i=1,2,3,…,n-1), X i Rotate to get a series of rotation points x_ra i =X i +X i ×cos(2π×r_ra i )(i=1,2,3,…,n-1), then multiply the rotation point by r_ro i Get a series of points x_ro i =r_ra i ×x_ra i (i=1,2,3,…,n-1), these points x_ro i and X i Together they serve as control points of the Bezier curve to obtain the final updated candidate solution; Step 6: Set the N / 3 candidate solutions with the best cost values as three types of candidate solutions, and update the three types of candidate solutions in the following way: Step 1: Given the number of control points n and the current optimal solution BS; Step 2: Get several nearby points x_s using the current optimal solution BS i (i=1,2,3,…,n), the formula for obtaining it is: Where d is the total number of latitudes, the random step length x_d = rand × (ub–lb) + lb, rand and r are random numbers between [0, 1]; c is a coefficient used to control the winding strength, and the winding coefficient gradually decreases with the increase in the number of iterations, as shown in formula (3): Among them, Rank1 = 0, Used to control the range of search accuracy; iter is the current iteration number, T is the total iteration number; Step 3: Move the nearby point x_s i (i=1,2,3,…,n) are used as the control points of the Bezier curve to obtain the final optimal solution; Step 7: Determine whether the maximum number of iterations has been reached. If so, proceed to step 8, otherwise return to step 3; Step 8: Output the best candidate solution BestX and the best cost value BestF.
2. According to the reducer design method based on SWA algorithm as claimed in claim 1, it is characterized in that: The Bezier curve mathematical model is: Where P i is the control point, B(t) is the random point found, and t is the random number used to control the position of the random point.
Citation Information
Patent Citations
Improved quantum-behaved particle swarm optimization algorithm-based multi-region economic dispatch method
CN105976052A
Small-world echo state network time sequence prediction method based on MCP penalty function
CN111832817A
