A motor design optimization method based on surrogate model and multi-objective particle swarm

Through the optimization method based on the agent model and multi-objective particle swarm, the problems of high cost and poor effect of the traditional motor optimization method are solved, and efficient multi-objective optimization is achieved, which is suitable for the design of complex structure motors.

CN118504435BActive Publication Date: 2024-10-11HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410966900.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-11
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

The traditional motor optimization method has high optimization cost and poor optimization effect. It is difficult to optimize multiple conflicting performance indicators at the same time, especially in high-dimensional situations, it is difficult to achieve efficient motor design.

Method used

Using an optimization method based on the surrogate model and multi-objective particle swarm, the hyperparameters are optimized by constructing a gradient boosting regression tree surrogate model and Bayesian optimization method, combined with the multi-objective particle swarm algorithm, to optimize motor performance, reduce the dimensionality of optimization variables and improve Optimizing speed.

Benefits of technology

It achieves fast and precise motor performance optimization under high-dimensional conditions, significantly improves the optimization speed and efficiency, and is suitable for new motor designs with complex structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504435B_ABST
    Figure CN118504435B_ABST
Patent Text Reader

Abstract

The present invention discloses a motor design optimization method based on a proxy model and a multi-objective particle swarm, comprising: S1. establishing an initialized finite element simulation model; S2. constructing an objective function; S3. obtaining the sensitivity corresponding to each optimization variable, further selecting a priority variable to be optimized from the optimization variables according to the sensitivity, and determining the variation range of the priority variable to be optimized; S4. sampling original data within the variation range based on the initialized finite element simulation model; S5. constructing a proxy model according to the sampling points, and optimizing the hyperparameters of the proxy model to obtain an optimized proxy model; S6. using the optimized proxy model as a model of a multi-objective particle swarm optimization algorithm to optimize the performance of the motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor design optimization, and in particular to a motor design optimization method based on an agent model and a multi-objective particle swarm. Background Art

[0002] Stirling motors have the advantages of strong stability, adaptability to a variety of heat sources, high thermal efficiency, high specific power, simple structure, low noise, maintenance-free and long life, and are widely used in remote areas and aerospace fields. As the core component of Stirling motors to achieve self-starting and thermoelectric energy conversion, embedded linear motors need to have the characteristics of high power density, high efficiency and low voltage distortion rate.

[0003] In order to achieve the compactness and high power of the Stirling motor, the linear motor needs to meet the comprehensive performance requirements such as output power and distortion rate within the given compact space constraints of the Stirling system to achieve high-performance motor design. However, the geometric structure parameters and optimization objectives of the motor have high dimensions, and the importance of motor performance optimization is highlighted. At the same time, in the motor design process, it is usually necessary to comprehensively optimize multiple performance indicators of the motor, but these indicators are often contradictory. Traditional optimization methods can often only optimize one parameter at a time. As typical representatives of traditional methods, scanning methods and single-factor experiments are limited by computational costs, the optimization effect of the method itself, the asymmetry of the magnetic circuit at the end of the linear motor, and high performance sensitivity, making it difficult to cope with multi-objective optimization problems. Summary of the invention

[0004] In view of this, the present invention provides a motor design optimization method based on an agent model and a multi-objective particle swarm, which is used to at least solve the problems of high optimization cost and poor optimization effect of traditional motor optimization methods.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A motor design optimization method based on an agent model and a multi-objective particle swarm includes the following steps:

[0007] S1. Analyze the motor design requirements and size constraints, determine the initial topology and basic size parameters of the motor, and establish an initial finite element simulation model;

[0008] S2. Analyze and determine the corresponding constraints based on the motor application scenario, clarify the optimization target of the motor, obtain the corresponding optimization variables according to the optimization target, and then construct an objective function including the optimization variables and optimization target based on the optimization target and optimization variables;

[0009] S3. Obtain the sensitivity corresponding to each optimization variable according to the change relationship between the objective function and the optimization variable, and divide the optimization variables into priority variables to be optimized and remaining optimization variables according to the sensitivity, wherein the priority variables to be optimized are optimized, while the remaining optimization variables are not optimized or are optimized after the priority variables to be optimized are optimized, and determine the change range of the priority variables to be optimized or the remaining variables to be optimized according to the initialization of the finite element simulation model, the sensitivity analysis results and the actual working conditions of the motor;

[0010] S4. Sampling is performed within the variation range based on the initialized finite element simulation model to obtain raw data, so that the sampling points are evenly distributed within the variation range, thereby characterizing the variation trend of the objective function within the variation range;

[0011] S5. Build a gradient boosting regression tree proxy model based on LightGBM according to the sampling points, and use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model to obtain the optimized proxy model, and verify it. If it meets the accuracy, proceed to the next step. If it does not meet the accuracy, narrow the search range based on the model prediction minimum area and build a local proxy model.

[0012] S6. Optimize motor performance based on the optimized proxy model or the local proxy model according to a multi-objective particle swarm optimization algorithm.

[0013] Preferably, weighted addition is performed on optimization objectives with consistent dimensions and the same optimization direction of maximization or minimization to reduce the dimension of the optimization objective.

[0014] Preferably, in S2, weighted addition is performed on optimization objectives with consistent dimensions and the same optimization direction of maximization or minimization to reduce the dimension of the optimization objective.

[0015] Preferably, the method for obtaining sensitivity in S3 is:

[0016] (1)

[0017] in, is the objective function to be optimized, To optimize variables;

[0018] When the sensitivity is positive, as the value of the optimization variable increases, the value of the objective function also increases accordingly; when the sensitivity is negative, the value of the objective function decreases as the value of the optimization variable increases; the absolute value of the sensitivity directly represents the degree of influence of the optimization variable on the objective function. The larger the absolute value of the sensitivity, the greater the influence of the variable on the objective function. The specific content of further selecting the priority variables to be optimized from the optimization variables according to the sensitivity includes: selecting multiple optimization variables with sensitivities greater than the preset sensitivity threshold as the priority variables to be optimized during the optimization process, and for the variables with sensitivities lower than the preset sensitivity threshold, the optimization strategy of not optimizing or using them as the last level of hierarchical optimization is adopted to reduce the dimension of the optimization variables;

[0019] The parametric modeling method is used to construct the initial finite element simulation model.

[0020] Preferably, in S4, the Latin hypercube sampling method is used to sample the original data: according to the integral of the probability density function of the priority variable to be optimized or the remaining optimized variables in each dimension, the variation range is pre-divided into distribution probabilities and the number of variables is equal to the sampling number. The first step is to randomly select values ​​in the divided intervals, and then randomly combine the sampled one-dimensional data to form original data with the same dimension as the priority variable to be optimized or the remaining optimization variables.

[0021] Preferably, the specific content of S5 includes:

[0022] S51. Constructing a gradient boosting regression tree proxy model:

[0023] Fitting n A weak learner, in the next fitting step, focuses on the residual between the predicted value and the actual value of the previous fitting model, that is:

[0024] (2)

[0025] in, Indicates Substitute the residuals of the fitted function, is the true value of the corresponding point, For the Generation of fitting functions;

[0026] Based on the residual fitting The fitting function and The new first Substitute fitting function, i.e. gradient boosting regression tree proxy model :

[0027] (3)

[0028] in, Indicates The fitting function of the regression tree;

[0029] Select the fitting degree evaluation index to evaluate the fitting degree of the gradient boosting regression tree proxy model;

[0030] S52. Use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model, obtain the optimized proxy model, and verify it:

[0031] Initially sample the hyperparameters of the gradient-boosted regression tree proxy model, use the Bayesian optimization algorithm to build a Gaussian regression model, sample points whose PI index is greater than the preset threshold, and determine whether the sampled points meet the index requirements. If not, update the Gaussian regression model with the point as a new sampling point, and repeat the above Gaussian regression model update steps until it meets the index requirements;

[0032] According to the final updated Gaussian regression model, a set of optimal hyperparameter combinations is finally obtained, and an optimized proxy model is obtained based on the optimal hyperparameter combination. The optimized proxy model is then verified. If the fitting degree requirement is met, the optimized proxy model is used instead of the initialized finite element simulation model as the designed motor proxy model.

[0033] S53. If the accuracy requirement is not met, the variation range of the optimization variables is reduced. The reduced variation range takes the minimum value predicted by the optimized proxy model as the center. Based on the reduced variation range, the contents of S51-S52 are repeated to construct a local proxy model, and the local proxy model is used as the designed motor proxy model.

[0034] Preferably, the specific content of S6 specifically includes:

[0035] (1) The population size is The particle swarm initializes the position and velocity of the particles based on a given range;

[0036] (2) Based on the particle position, the optimized proxy model is used to calculate the fitness of the particle, that is, the value of the optimization function;

[0037] (3) Compare the fitness solution of each particle's new position with its individual optimal solution. If the current fitness solution dominates the original individual optimal solution, that is, the current fitness solution is the dominant solution, then it is used as the new individual optimal solution.

[0038] (4) Update the group optimal solution based on density information and update its Pareto frontier;

[0039] (5) Add the newly obtained optimal solution to the solution set file and detect whether there is a non-dominated solution in the stored solution set file;

[0040] (6) Learning factors and inertia weights based on iterative algebraic nonlinear update algorithm;

[0041] (7) Update the velocity and position of the particle, and apply a penalty function to the out-of-bounds particles to make them search within the optimization range;

[0042] (8) Determine whether the required number of iterations has been reached or the iteration termination condition has been met. If not, repeat (2)-(7). If met, save the corresponding optimal solution set, calculate the corresponding Pareto frontier, and obtain the optimal solution of each optimization variable based on the Pareto frontier to optimize the motor performance.

[0043] Preferably, in step (4), density information is introduced to evenly divide the maximum and minimum values ​​of each dimension of the Pareto frontier solution obtained in the previous round, and the number of frontier solutions in each grid is the density of the grid; it is calculated according to the principle that the greater the density, the smaller the probability of selection, and the areas where the Pareto frontier solution distribution is relatively sparse are selected for further exploration.

[0044] Preferably, in step (5), after each iteration, the solution set searched by the particle swarm algorithm is checked to determine whether there is a dominant solution, and if there is a dominant solution, it is deleted; thereafter, the updated archive space is grid-segmented, and points are randomly deleted for densely distributed grids to reduce their density.

[0045] Preferably, in step (6), when updating the learning factor and the inertia weight, the values ​​thereof are updated in a nonlinear manner, specifically including: setting the inertia weight according to the number of iterations and individual learning factors and group learning factor :

[0046] (4)

[0047] (5)

[0048] (6)

[0049] in, , , They represent the initial values ​​of inertia weight, individual learning factor and group learning factor, respectively. , , Represent the final values ​​of inertia weight, individual learning factor and group learning factor, respectively. represents the current iteration number, Represents the total number of iterations for the setting.

[0050] Preferably, in step (7), the method for updating the velocity and position of the particle is:

[0051] (7)

[0052] (8)

[0053] in, Indicates Daizhongdi The velocity of a particle is dimensional vector; To characterize the Daizhongdi The speed of a particle dimensional vector; Indicates Daizhongdi The position of a particle, Indicates Daizhongdi The position of a particle; and are all random numbers between 0 and 1, used to increase the randomness in the particle swarm search. For the Daizhongdi The individual optimal solution of each particle is For the Daizhongdi The optimal solution for a group of particles;

[0054] When it exceeds the optimization variable range, a penalty function is applied to it to make it return to the optimization range, ensuring that the particle swarm searches within the optimization range;

[0055] The penalty function uses the boundary rebound method or the boundary truncation method. The boundary rebound method regards the boundary as a reflective wall. When the particle collides with the wall, its tangential velocity remains unchanged, while the normal velocity remains unchanged but in the opposite direction. When the particle exceeds the boundary, its position is bounced back to the feasible domain. The boundary truncation method is that when the particle exceeds the boundary, its value is truncated on the boundary, that is, it is taken as the maximum or minimum value that can be taken within the boundary.

[0056] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a motor design optimization method based on an agent model and a multi-objective particle swarm, which has the following beneficial effects:

[0057] Compared with the multi-objective optimization algorithm using the finite element analysis model, the present invention has a faster optimization speed; when the optimization variables and the optimization target dimensions are high, its advantages of speed and accuracy become more obvious, and it can be used to optimize new motors with complex structures. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A flow chart of the motor design optimization method based on the agent model and multi-objective particle swarm provided by the present invention;

[0060] Figure 2 Sensitivity analysis results for each optimization variable;

[0061] Figure 3 is a graph showing the variation of the proxy model error with the number of training iterations; Figure 3 (a) Figure 3 (b) Figure 3 (c) The errors of the three proxy models of no-load electromotive force, rated thrust and weighted harmonic distortion rate in the training set, test set and external validation set change with the number of training iterations;

[0062] Figure 4 is the Pareto frontier of the surrogate model particle swarm; Figure 4 (a) is a two-dimensional optimization result diagram with the optimal points of rated thrust and no-load electromotive force as the horizontal and vertical coordinates, Figure 4 (b) is a two-dimensional optimization result diagram with the optimal points of no-load electromotive force and weighted harmonic distortion as the horizontal and vertical coordinates. Figure 4 (c) is a two-dimensional optimization result diagram with the optimal points of rated thrust and weighted harmonic distortion as the horizontal and vertical coordinates. Figure 4 (d) is a spatial optimization result diagram with the optimal points of rated thrust, no-load electromotive force and weighted harmonic distortion as the horizontal, vertical and vertical coordinates. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] The present invention provides a multi-objective motor design optimization method based on an agent model, and the specific implementation steps are as shown in the attached Figure 1 As shown, the specific expansion is as follows:

[0065] Step 1: Analyze the motor design requirements and dimensional constraints, determine the initial topological structure and basic dimensional parameters of the motor, and establish an initialized finite element simulation model, namely, an FEA model. Among them, the basic dimensional parameters refer to the dimensional data of each component of the motor and the dimensional data that determines the positional relationship between the components. The simulation model is built based on ANSYS 2022. R1, and each geometric parameter in the model is modeled parametrically to reduce the workload of repeated modeling during optimization. At the same time, appropriate geometric constraints should be adopted in the modeling, and angle and length constraints should be used flexibly to reduce the workload of parametric modeling. In this embodiment, a single-phase cylindrical linear motor is taken as an example to optimize its performance.

[0066] Step 2: Combined with the motor application scenario, analyze and determine the corresponding constraints, clarify the optimization target of the motor, obtain the corresponding optimization variables according to the optimization target, and then construct an objective function containing the variables to be optimized and the optimization target. In general, the constraints include but are not limited to the frequency, stroke, operating temperature, economic cost and spatial geometric constraints of the motor itself, and the optimization targets include but are not limited to the thrust amplitude and thrust distortion rate of the drive motor for precise control. For generators, it is usually necessary to take motor efficiency, output power and output voltage distortion rate as optimization targets. The optimization targets have different emphases and different applications depending on the motor application scenario; for optimization variables, if the optimization target is to reduce the cost of the motor, the optimization variables should include the material selection and geometric dimensions of different components of the motor, and when the optimization target is to increase the power density of the motor, the optimization variables should include but are not limited to the stator and rotor core size of the motor, the size and material of the magnetic steel, the layout and number of turns of the winding, and when the optimization target is to reduce the temperature rise of the motor, the optimization variables should include the selection and geometric parameters of the cooling system of the motor, the filling material in the winding slot, etc.

[0067] For the motor in this example, it has special working requirements, that is, it can be operated as a generator and a motor. Therefore, the optimization needs to comprehensively consider the performance in both operating states. and distortion rate , as the effective value of the no-load voltage when the motor is running and distortion rate As the optimization target of the motor. Since the optimization function usually takes the lowest value as the best, the optimization target and constraints of this example can be summarized as follows:

[0068] (9)

[0069] in, To optimize the variable vector, it consists of a set of motor structural parameters to be optimized. For this example, Axial length of permanent magnet , Axial length of permanent magnet , , Air gap length between permanent magnets , Air gap length between permanent magnets , External stator slot width , outer stator shaft length and inner stator shaft length Seven parameters are optimized variables, namely . To characterize the optimization goal The relationship of To optimize the design space of the variables, that is, their range of variation, for this example, the values ​​can be found in Table I below. is the inner radius of the inner stator, is the outer radius of the outer stator, is the vibration frequency, is the vibration amplitude.

[0070] In this embodiment, since the no-load voltage harmonic distortion rate and the load current harmonic distortion rate have the same dimension and the same optimization target, a weighted harmonic distortion rate is defined to achieve the purpose of reducing the optimization target. is defined as follows:

[0071] (10)

[0072] in, and are the corresponding weight factors, which can be adjusted according to the importance of the optimization target.

[0073] Since the motor operates as a generator for a long time, Take 0.7, Take 0.3.

[0074] Step 3: According to the change relationship between the objective function and the optimization variable, the sensitivity corresponding to each optimization variable is obtained. According to the sensitivity, the optimization variables are divided into priority variables to be optimized and remaining optimization variables. The priority variables to be optimized are optimized, while the remaining optimization variables are not optimized or are optimized after the priority variables to be optimized are optimized. The change range of the priority variables to be optimized or the remaining variables to be optimized is determined according to the initialization of the finite element simulation model, the sensitivity analysis results and the actual working conditions of the motor. The determination of the change range includes that the sum of the thickness values ​​of the motor components should not be higher than the thickness requirement of the motor itself; when the length of the permanent magnet is reduced to a certain value, the performance drops sharply, and its change range should not be lower than this value; some components should not be lower than the minimum support thickness due to strength requirements, etc.

[0075] Motors often have multiple variables to be optimized, and too high a dimension will lead to a sharp increase in the amount of calculation. Therefore, reducing the dimension of the optimization variable has become one of the cores of improving the efficiency of motor optimization. The sensitivity analysis method is used in the present invention to achieve dimensionality reduction of the optimization variable: the influence of different variables on the optimization variable is quantified, and the sensitivity index defined by this method is as follows:

[0076] (1)

[0077] in, is the objective function to be optimized, To optimize the variables, this formula represents When changes, relative changes in .

[0078] When the sensitivity is positive, as the variable value increases, the objective function value also increases accordingly. Similarly, if the value is negative, the objective function value decreases as the optimization variable value increases. The absolute value of the sensitivity directly represents the degree of influence of the variable on the objective function. The larger the sensitivity, the greater the influence of the variable on the objective function. Therefore, in the optimization process, multiple optimization variables with large sensitivity can be selected for optimization, while for variables with low sensitivity, the optimization strategy of not optimizing or using them as the last level of hierarchical optimization is adopted. In this way, the dimension of the optimization variable can be reduced.

[0079] For the established finite element simulation model, the variation range of the variables to be optimized is determined by combining the sensitivity analysis results and the actual working conditions of the motor. The variation range of the optimized variables in this example is shown in Table 1 below:

[0080] Based on the variation range of the variable, a sensitivity analysis is performed on the optimized variable. The analysis results are shown in the attached figure. Figure 2 As shown in the figure, the seven selected variables are all important to the optimization target. For example, its sensitivity to the four optimization objectives is negative, which means that as its value increases, the four optimization objectives all show a downward trend, that is, the optimization variable and the four optimization objectives all show a negative correlation characteristic:

[0081] .

[0082] Step 4: Sampling is performed within the range of variation based on the initialized finite element simulation model to obtain the original data, so that the sampling points are evenly distributed within the range of variation, thereby characterizing the variation trend of the objective function within the range of variation. The sampling method adopts the LHS Latin hypercube sampling method: according to the integral of the probability density function of the priority variable to be optimized or the remaining optimized variables in each dimension, the range of variation is pre-divided into distribution probabilities and the number of samples is equal to the sampling number. intervals, and then randomly select values ​​in the divided intervals, and randomly combine the one-dimensional data obtained by sampling to form original data with the same dimension as the priority variable to be optimized or the remaining optimization variable, which can still ensure the uniform distribution of sampling points in the sampling space in multidimensional space. Therefore, this method can ensure that the obtained sampling points represent the change law of the optimization target in the sampling space to a large extent at a lower sampling cost.

[0083] Step 5: Build a gradient boosting regression tree proxy model based on LightGBM according to the sampling points, and use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model to obtain the optimized proxy model and verify it. If it does not meet the accuracy, proceed to the next step. If it does not meet the accuracy, narrow the search range based on the model prediction minimum area and build a local proxy model:

[0084] Construct a gradient boosted regression tree proxy model:

[0085] Fitting n A weak learner, in the next fitting step, focuses on the residual between the predicted value and the actual value of the previous fitting model, that is:

[0086] (2)

[0087] in, Indicates Substitute the residuals of the fitted function, is the true value of the corresponding point, For the Generation of fitting functions;

[0088] Based on the residual fitting The fitting function and The new first Substitute fitting function, i.e. gradient boosting regression tree proxy model :

[0089] (3)

[0090] in, Indicates The fitting function of the regression tree;

[0091] Select the fitting degree evaluation index to evaluate the fitting degree of the gradient boosting regression tree proxy model;

[0092] Use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model, obtain the optimized proxy model, and verify it:

[0093] Initially sample the hyperparameters of the gradient-boosted regression tree proxy model, use the Bayesian optimization algorithm to build a Gaussian regression model, sample points whose PI index is greater than the preset threshold, and determine whether the sampled points meet the index requirements. If not, update the Gaussian regression model with the point as a new sampling point, and repeat the above Gaussian regression model update steps until it meets the index requirements;

[0094] According to the final updated Gaussian regression model, a set of optimal hyperparameter combinations is finally obtained, and the optimized proxy model is obtained based on the optimal hyperparameter combination. The optimized proxy model is then verified. If the fitting degree requirement is met, the optimized proxy model replaces the initialized finite element simulation model as the designed motor proxy model. If the accuracy requirement is not met, the range of variation of the optimization variables is reduced. The range of variation takes the minimum value predicted by the optimized proxy model as the center. Based on this, the above steps are repeated to construct a local proxy model, and the local proxy model is used as the designed motor proxy model.

[0095] As a data-driven, highly universal black box model, the basic idea of ​​the surrogate model is to establish a model with low computational time cost based on an appropriate amount of sample data through interpolation or fitting to replace the subject analysis model with high computational time cost. Currently, the commonly used surrogate models mainly include Kriging regression model, polynomial fitting regression model, support vector machine regression model, neural network regression model and decision tree regression model. This example uses the gradient boosting decision tree model implemented by the Microsoft open source project LightGBM.

[0096] For the gradient boosting decision tree regression model constructed above, it has multiple hyperparameters, and the fitting effect is closely related to these hyperparameters. Therefore, it is necessary to introduce a sub-optimization problem when constructing the proxy model. In this example, Bayesian optimization is used to optimize the hyperparameters. In the fitted model, an indicator is defined to express the fitting effect of the model, usually using indicators such as Mean Absolute Error (MAE), Mean Absolute Percent Error (MAPE) and Median Absolute Percent Error (MdAPE). Thus, a sub-optimization problem is established in which the optimization variables are the hyperparameters of the LightGBM proxy model, and the optimization target is the MAPE and other fitting evaluation indexes. By solving this problem, the fitting model is optimized to obtain a gradient boosting decision tree regression model with better fitting effect.

[0097] In Bayesian optimization, the point addition criteria such as Minimize Surrogate Prediction (MSP) and Expected Improvement (EI) are used. Under the guidance of previous sampling point experience, new sampling points are added purposefully to achieve the effect of achieving a better optimization goal with fewer sampling points.

[0098] The proxy model is constructed using the training set and the test set, and its hyperparameters are optimized using Bayesian optimization. The changes in the errors of the three dimensions of the training set, the test set, and the external validation set with the number of training iterations are shown in the attached figure. Figure 3 As shown in the figure, (a), (b), and (c) correspond to the three proxy models of no-load electromotive force, rated thrust, and weighted harmonic distortion rate, respectively. As can be seen from the figure, after the iteration converges, the model is verified using the external validation set not used in the training, and the errors are 2%, 4%, and 1%, respectively. Therefore, the models that have converged after training can accurately represent the original model, achieving the purpose of saving the calculation cost in the optimization.

[0099] Step 6: Based on the optimized proxy model or local proxy model, the motor performance is optimized according to the multi-objective particle swarm optimization algorithm. The multi-objective particle swarm optimization algorithm is derived from the imitation of bird foraging behavior. In the iterative process, the particles will move towards the optimal point they have reached. and the optimal point reached by the group At the same time, it is also affected by its own speed, that is, it is affected by individual optimality, group optimality and inertia during the iteration process. Therefore, three parameters are introduced to control the speed of the next generation during iteration, namely, individual learning factor , Group Learning Factor and inertia weight .

[0100] The main process of the multi-objective particle swarm described in the present invention is:

[0101] (1) The population size is The particle swarm initializes the position and velocity of the particles based on a given range;

[0102] (2) Based on the particle position, the optimized proxy model is used to calculate the fitness of the particle, that is, the value of the optimization function;

[0103] (3) Compare the fitness solution of each particle's new position with its individual optimal solution. If the current fitness solution dominates the original individual optimal solution, that is, the current fitness solution is the dominant solution, then it is used as the new individual optimal solution.

[0104] (4) Update the group optimal solution based on density information and update its Pareto frontier;

[0105] (5) Add the newly obtained optimal solution to the solution set file and detect whether there is a non-dominated solution in the stored solution set file;

[0106] (6) Learning factors and inertia weights based on iterative algebraic nonlinear update algorithm;

[0107] (7) Update the velocity and position of the particle, and apply a penalty function to the out-of-bounds particles to make them search within the optimization range;

[0108] (8) Determine whether the required number of iterations has been reached or the iteration termination condition has been met. If not, repeat (2)-(7). If met, save the corresponding optimal solution set, calculate the corresponding Pareto frontier, and obtain the optimal solution of each optimization variable based on the Pareto frontier to optimize the motor performance.

[0109] In step (4), density information is introduced to evenly divide the maximum and minimum values ​​of each dimension of the Pareto frontier solution obtained in the previous round. The number of frontier solutions in each grid is the density of the grid. The density is calculated according to the principle that the greater the density, the smaller the probability of selection. Places where the Pareto frontier solution is sparsely distributed are selected for further exploration.

[0110] Since multi-objective optimization often has a set of optimal Pareto front solutions, and any one of this set of solutions can be selected as the group optimal solution, in order to make the optimization search range as comprehensive as possible, density information is introduced in this example. According to the principle that the greater the density, the smaller the probability of selection, the areas where the Pareto front solutions are sparsely distributed are selected for further exploration.

[0111] In step (5), after each iteration, the solution set searched by the particle swarm algorithm is checked to determine whether there is a dominant solution. If there is a dominant solution, it is deleted; after that, the updated archive space is grid-segmented, and points are randomly deleted for densely distributed grids to reduce their density.

[0112] In order to save computer storage space and the memory required by the algorithm, the storage space established by the algorithm needs to be constrained. This also means that the Pareto frontier needs to be guaranteed as comprehensively as possible within a limited space. Therefore, after each iteration, it is necessary to check whether there is a dominant solution among the points, and if there is a dominant solution, it is deleted. After that, the updated archive space is grid-segmented, and points are randomly deleted for densely distributed grids to reduce their density.

[0113] In step (6), when updating the learning factor and the inertia weight, their values ​​are updated in a nonlinear manner, specifically including: setting the inertia weight, the individual learning factor, and the group learning factor according to the number of iterations;

[0114] The weight update for the algorithm's learning factor and inertia weight changes according to the following formula:

[0115] (4)

[0116] (5)

[0117] (6)

[0118] in, , , They represent the initial values ​​of inertia weight, individual learning factor and group learning factor, respectively. , , Represent the final values ​​of inertia weight, individual learning factor and group learning factor, respectively. represents the current iteration number, Represents the total number of iterations for the setting.

[0119] In step (6), when updating the learning factor and the inertia weight, their values ​​are updated in a nonlinear manner, specifically including: setting the inertia weight, the individual learning factor and the group learning factor according to the number of iterations; in the early stage of exploration, that is, when the iteration number is less than 1 / 2 of the maximum number of iterations, the inertia weight and the individual learning factor are relatively large, so as to ensure that the particles rely more on their own experience, so that each particle can explore a wider range of optimization, usually taking values ​​of 0.8-1.2 and 1.5-2.5 respectively, while the group learning factor is relatively small, taking values ​​of 0.5-1.5, so as to ensure that the particles rely more on their own experience, so that each particle can explore a wider range of optimization; in the late stage of exploration, that is, when the iteration number is less than 1 / 2 of the maximum number of iterations, the inertia weight and the individual learning factor are relatively small, taking values ​​of 0.4-0.8 and 0.5-1.5 respectively, at this time, the group learning factor is relatively large, taking values ​​of 1.5-2.5, so that each particle can explore the optimal value of the group search to ensure its rapid convergence.

[0120] When updating the velocity and position of the particle in step (7), the position velocity and position update formula are as follows:

[0121] (7)

[0122] (8)

[0123] When it exceeds the optimization variable range, a penalty function is applied to it to make it return to the optimization range, ensuring that the particle swarm searches within the optimization range;

[0124] The penalty function uses the boundary rebound method or boundary truncation method. The boundary rebound method regards the boundary as a reflection wall. When the particle collides with the wall, its tangential velocity remains unchanged, while the normal velocity remains unchanged but in the opposite direction. When the particle exceeds the boundary, its position is rebounded back to the feasible domain. The boundary truncation method is that when the particle exceeds the boundary, its value is truncated on the boundary, that is, it is taken as the maximum or minimum value that can be taken within the boundary.

[0125] The speed and position are updated according to the above formulas (4)-(8). After the update, it is necessary to judge whether they are within the constraint range. If they are not within the limit, a penalty function is applied to them, ignoring the calculation results outside the limit, and guiding the particle to return to the limit.

[0126] In particular, some parameters of the multi-objective particle swarm algorithm used in this example are shown in Table 2 below:

[0127] ;

[0128] The final result of the motor optimization algorithm based on the agent model and multi-objective particle swarm algorithm is shown in the attached figure. Figure 4 As shown, Figure 4 (a) is a two-dimensional optimization result diagram with the optimal points of rated thrust and no-load electromotive force as the horizontal and vertical coordinates, Figure 4 (b) is a two-dimensional optimization result diagram with the optimal points of no-load electromotive force and weighted harmonic distortion as the horizontal and vertical coordinates. Figure 4 (c) is a two-dimensional optimization result diagram with the optimal points of rated thrust and weighted harmonic distortion as the horizontal and vertical coordinates. Figure 4 (d) Figure 4 (a)-(c) correspond to the spatial optimization result diagram with the optimal points of rated thrust, no-load electromotive force and weighted harmonic distortion as the horizontal, vertical and vertical coordinates. Figure 4 The curves in (a)-(c) represent the Pareto frontier of the algorithm, and the five-pointed star in the figure represents the final optimized selected point. It can be seen from the figure that the optimized selected points are well distributed on the Pareto frontier, achieving the optimization purpose of simultaneously achieving the best optimization of the three optimization objectives.

[0129] In order to demonstrate the advantages of the method presented in this application, the same constraints are adopted to optimize the design of the motors respectively.

[0130] The optimized results are shown in Table 3 below. It can be seen that the proxy model multi-objective optimization algorithm achieves better optimization results on the basis of using less time and has obvious advantages:

[0131] ;

[0132] This optimization method is not limited to the motor in this example, it can solve any motor optimization problem with constraints. When the optimization variables and optimization target dimensions are high, its advantages of fastness and accuracy become more obvious, and it can be used to optimize new motors with complex structures.

[0133] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A motor design optimization method based on agent model and multi-objective particle swarm, characterized in that: The following steps are involved: S1. Analyze the motor design requirements and size constraints, determine the initial topology and basic size parameters of the motor, and establish an initial finite element simulation model; S2. Analyze and determine the corresponding constraints based on the motor application scenario, clarify the optimization target of the motor, obtain the corresponding optimization variables according to the optimization target, and then construct an objective function including the optimization variables and optimization target based on the optimization target and optimization variables; S3. Obtain the sensitivity corresponding to each optimization variable according to the change relationship between the objective function and the optimization variable, and divide the optimization variables into priority variables to be optimized and remaining optimization variables according to the sensitivity, wherein the priority variables to be optimized are optimized, while the remaining optimization variables are not optimized or are optimized after the priority variables to be optimized are optimized, and determine the change range of the priority variables to be optimized or the remaining variables to be optimized according to the initialization of the finite element simulation model, the sensitivity analysis results and the actual working conditions of the motor; S4. Sampling is performed within the variation range based on the initialized finite element simulation model to obtain raw data, so that the sampling points are evenly distributed within the variation range, thereby characterizing the variation trend of the objective function within the variation range; S5. Build a gradient boosting regression tree proxy model based on LightGBM according to the sampling points, and use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model to obtain the optimized proxy model, and verify it. If it meets the accuracy, proceed to the next step. If it does not meet the accuracy, narrow the search range based on the model prediction minimum area and build a local proxy model. S6. Optimize motor performance based on the optimized proxy model or the local proxy model according to a multi-objective particle swarm optimization algorithm.

2. A motor design optimization method based on agent model and multi-objective particle swarm according to claim 1, characterized in that: In S2, weighted addition is performed on optimization objectives with the same dimension and the same optimization direction of maximization or minimization to reduce the dimension of the optimization objective.

3. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 1 is characterized in that: The method for obtaining sensitivity in S3 is: (1) in, is the objective function to be optimized, To optimize variables; When the sensitivity is positive, as the value of the optimization variable increases, the value of the objective function also increases accordingly; when the sensitivity is negative, the value of the objective function decreases as the value of the optimization variable increases; the absolute value of the sensitivity directly represents the degree of influence of the optimization variable on the objective function. The larger the absolute value of the sensitivity, the greater the influence of the variable on the objective function. The specific content of further selecting the priority variables to be optimized from the optimization variables according to the sensitivity includes: selecting multiple optimization variables with sensitivities greater than the preset sensitivity threshold as the priority variables to be optimized during the optimization process, and for the variables with sensitivities lower than the preset sensitivity threshold, the optimization strategy of not optimizing or using them as the last level of hierarchical optimization is adopted to reduce the dimension of the optimization variables; The parametric modeling method is used to construct the initial finite element simulation model.

4. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 1, characterized in that: In S4, the Latin hypercube sampling method is used to sample the original data: according to the integral of the probability density function of the priority variable to be optimized or the remaining optimized variables in each dimension, the variation range is pre-divided into distribution probabilities and the number of variables is equal to the sampling number. The first step is to randomly select values ​​in the divided intervals, and then randomly combine the sampled one-dimensional data to form original data with the same dimension as the priority variable to be optimized or the remaining optimization variables.

5. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 1, characterized in that: The specific contents of S5 include: S51. Constructing a gradient boosting regression tree proxy model: Fitting n A weak learner, in the next fitting step, focuses on the residual between the predicted value and the actual value of the previous fitting model, that is: (2) in, Indicates Substitute the residuals of the fitted function, is the true value of the corresponding point, For the Generation of fitting functions; Based on the residual fitting The fitting function and The new first Substitute fitting function, i.e. gradient boosting regression tree proxy model : (3) in, Indicates The fitting function of the regression tree; Select the fitting degree evaluation index to evaluate the fitting degree of the gradient boosting regression tree proxy model; S52. Use the Bayesian optimization method to optimize the hyperparameters of the gradient boosting regression tree proxy model, obtain the optimized proxy model, and verify it: Initially sample the hyperparameters of the gradient-boosted regression tree proxy model, use the Bayesian optimization algorithm to build a Gaussian regression model, sample points whose PI index is greater than the preset threshold, and determine whether the sampled points meet the index requirements. If not, update the Gaussian regression model with the point as a new sampling point, and repeat the above Gaussian regression model update steps until it meets the index requirements; According to the final updated Gaussian regression model, a set of optimal hyperparameter combinations is finally obtained, and an optimized proxy model is obtained based on the optimal hyperparameter combination. The optimized proxy model is then verified. If the fitting degree requirement is met, the optimized proxy model is used instead of the initialized finite element simulation model as the designed motor proxy model. S53. If the accuracy requirement is not met, the variation range of the optimization variables is reduced. The reduced variation range takes the minimum value predicted by the optimized proxy model as the center. Based on the reduced variation range, the contents of S51-S52 are repeated to construct a local proxy model, and the local proxy model is used as the designed motor proxy model.

6. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 1, characterized in that: The specific contents of S6 include: (1) The population size is The particle swarm initializes the position and velocity of the particles based on a given range; (2) Based on the particle position, the optimized proxy model is used to calculate the fitness of the particle, that is, the value of the optimization function; (3) Compare the fitness solution of each particle's new position with its individual optimal solution. If the current fitness solution dominates the original individual optimal solution, that is, the current fitness solution is the dominant solution, then it is used as the new individual optimal solution. (4) Update the group optimal solution based on density information and update its Pareto frontier; (5) Add the newly obtained optimal solution to the solution set file and detect whether there is a non-dominated solution in the stored solution set file; (6) Learning factors and inertia weights based on iterative algebraic nonlinear update algorithm; (7) Update the velocity and position of the particle, and apply a penalty function to the out-of-bounds particles to make them search within the optimization range; (8) Determine whether the required number of iterations has been reached or the iteration termination condition has been met. If not, repeat (2)-(7). If met, save the corresponding optimal solution set, calculate the corresponding Pareto frontier, and obtain the optimal solution of each optimization variable based on the Pareto frontier to optimize the motor performance.

7. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 6, characterized in that: In step (4), density information is introduced to evenly divide the maximum and minimum values ​​of each dimension of the Pareto frontier solution obtained in the previous round. The number of frontier solutions in each grid is the density of the grid. The density is calculated according to the principle that the greater the density, the smaller the probability of selection. Places where the Pareto frontier solution is sparsely distributed are selected for further exploration.

8. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 6, characterized in that: In step (5), after each iteration, the solution set searched by the particle swarm algorithm is checked to determine whether there is a dominant solution. If there is a dominant solution, it is deleted; after that, the updated archive space is grid-segmented, and points are randomly deleted for densely distributed grids to reduce their density.

9. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 6, characterized in that: In step (6), the learning factor and inertia weight are updated in a nonlinear manner, including: setting the inertia weight according to the number of iterations and individual learning factors and group learning factor : (4) (5) (6) in, , , They represent the initial values ​​of inertia weight, individual learning factor and group learning factor, respectively. , , Represent the final values ​​of inertia weight, individual learning factor and group learning factor, respectively. represents the current iteration number, Represents the total number of iterations for the setting.

10. The motor design optimization method based on agent model and multi-objective particle swarm according to claim 9, characterized in that: In step (7), the method for updating the particle's velocity and position is: (7) (8) in, Indicates Daizhongdi The velocity of a particle is dimensional vector; To characterize the Daizhongdi The speed of a particle dimensional vector; Indicates Daizhongdi The position of a particle, Indicates Daizhongdi The position of a particle; and are all random numbers between 0 and 1, used to increase the randomness in the particle swarm search. For the Daizhongdi The individual optimal solution of each particle is For the Daizhongdi The optimal solution for a group of particles; When it exceeds the optimization variable range, a penalty function is applied to it to make it return to the optimization range, ensuring that the particle swarm searches within the optimization range; The penalty function uses the boundary rebound method or the boundary truncation method. The boundary rebound method regards the boundary as a reflective wall. When the particle collides with the wall, its tangential velocity remains unchanged, while the normal velocity remains unchanged but in the opposite direction. When the particle exceeds the boundary, its position is bounced back to the feasible domain. The boundary truncation method is that when the particle exceeds the boundary, its value is truncated on the boundary, that is, it is taken as the maximum or minimum value that can be taken within the boundary.