An optimization method for permanent magnet brushless DC motor based on improved mayfly algorithm

By improving the ephemera algorithm and combining it with the golden sine algorithm, the inefficiency problem of the traditional algorithm in optimizing the permanent magnet brushless DC motor is solved, high-precision and fast optimization design is achieved, and the motor performance is improved.

CN117408120BActive Publication Date: 2024-08-23HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311525743.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2024-08-23
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

When traditional algorithms optimize permanent magnet brushless DC motors, as the search dimension increases, the search space increases exponentially, resulting in high time costs and difficulty in achieving expected results, and cannot effectively solve complex optimization problems.

Method used

A method based on the improved ephemera algorithm is used to establish the finite element model, determine the optimization parameters and objective functions, and optimize the ephemera algorithm with the golden sine algorithm to obtain the optimal design parameters of the permanent magnet brushless DC motor.

Benefits of technology

It improves the search accuracy and speed, improves the optimization capability, reduces the complexity and parameter adjustments, and realizes the rapid finding of the optimal solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117408120B
    Figure CN117408120B
Patent Text Reader

Abstract

The present invention discloses a permanent magnet brushless DC motor optimization method based on an improved mayfly algorithm, including: establishing a finite element model of a permanent magnet brushless DC motor, determining optimization parameters, constraints and objective functions; based on the mayfly algorithm, determining the population size and the initial position and initial speed of the optimization parameters; improving the mayfly algorithm through a golden sine algorithm, bringing the motor optimization parameters into the improved mayfly algorithm to process the position, speed, fitness and boundary of the mayfly. Finally, mating iterations are performed on male and female mayflies until the objective function is met, and optimal parameters and optimal solutions are obtained to achieve the optimization of the permanent magnet brushless DC motor. The present invention optimizes the mayfly algorithm through the golden sine algorithm, so that the mayfly algorithm has higher solution accuracy and convergence speed, improves search accuracy and optimization ability, and also has the advantages of low complexity and fewer adjustable parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a permanent magnet brushless DC motor optimization method, and in particular to a permanent magnet brushless DC motor optimization method based on an improved mayfly algorithm. Background Art

[0002] The optimization problem of permanent magnet brushless DC motor is a highly nonlinear problem, and genetic algorithms, ant colony algorithms, etc. are usually used for optimization design. However, with the increase of search dimension, the search space of traditional algorithm optimization will increase exponentially. Therefore, traditional numerical solution methods are not suitable for complex optimization problems, and they require a lot of time and are difficult to achieve the expected results. Summary of the invention

[0003] Purpose of the invention: The purpose of the present invention is to provide a permanent magnet brushless DC motor optimization method based on an improved mayfly algorithm with high search accuracy and high speed.

[0004] Technical solution: The permanent magnet brushless DC motor optimization method based on the improved mayfly algorithm described in the present invention comprises:

[0005] (1) Establish a finite element model of the permanent magnet brushless DC motor and determine the optimization parameters, constraints and objective function;

[0006] (2) Based on the Mayfly algorithm, determine the population size and the initial position and initial speed of the optimization parameters;

[0007] (3) The mayfly algorithm is improved by the golden sine algorithm, and the improved mayfly algorithm is used to obtain the optimal solution of the objective function as the optimal design parameters of the permanent magnet brushless DC motor.

[0008] Furthermore, in step (1), the objective function is:

[0009]

[0010] Among them, f1 = B(x) represents the air gap magnetic flux target function, f2 = T(x) min represents the minimum cogging torque objective function, f3 = η(x) max represents the maximum efficiency objective function.

[0011] Furthermore, the air gap magnetic flux objective function is:

[0012] B slotting =εB average ;

[0013] Among them, B slotting To consider the air gap flux density when the stator slot effect is taken into account, B average is the average air gap flux density of the motor, ε is the Carter coefficient;

[0014]

[0015] Among them, A m A is the area through which the permanent magnet flux passes. m = lω m , l is the axial length of the permanent magnet, ω m is the width of the permanent magnet;

[0016] A g is the air gap magnetic flux passing area, g e is the air gap length, r z is the outer radius of the rotor, θ r is the central angle of the outer end of the permanent magnet;

[0017] R g is the air gap reluctance, μ o is the vacuum permeability;

[0018] R mo is the permanent magnet reluctance, h pm is the thickness of the permanent magnet, μ m is the relative magnetic permeability of the permanent magnet;

[0019] R mr is the equivalent magnetic resistance of the permanent magnet end magnetic circuit, R mn is the equivalent magnetic resistance of the adjacent permanent magnet magnetic circuit;

[0020] g k (θ) is the actual magnetic field line length, g k (θ) = g e +g c (θ), g c (θ) is the function of the length of magnetic lines of force caused by stator slotting that changes with the rotor angle θ.

[0021] Further,

[0022]

[0023] Among them, r d is the stator radius, θ1 is the angle between the magnetic force line and the lower end of the stator slot, θ2 is the angle between the magnetic force line and the intersection of the stator slot and the stator tooth tip, θ3 is the angle between the magnetic force line and the upper end of the stator tooth tip, β represents the inclination angle of the tooth tip, and h0 is the height of the stator slot;

[0024] W0 is the stator slot width, W1 is the stator tooth pitch, and h1 is the stator tooth tip height.

[0025] Furthermore, the cogging torque objective function is:

[0026]

[0027] Among them, T is the output torque; p is the number of pole pairs; k is a constant; μ is the magnetic permeability of the permanent magnet; M is the magnetic moment of the permanent magnet; N is the number of poles; u is the rated voltage; and B is the magnetic induction intensity.

[0028] Furthermore, the efficiency objective function is:

[0029]

[0030] Among them, η represents efficiency, m is the rotor mass; r is the rotor radius; and e is the cogging coefficient.

[0031] Furthermore, in step (1), the optimization parameters are:

[0032] x=[D a ,D b ,D c ,δ]

[0033] Where x represents the optimization parameter matrix, D a Indicates the stator outer diameter of the permanent magnet brushless DC motor, D b Indicates the outer diameter of the rotor of the permanent magnet brushless DC motor; D c It represents the stator slot width of the permanent magnet brushless DC motor; δ represents the air gap length of the permanent magnet brushless DC motor.

[0034] Furthermore, in step (1), the constraint condition is:

[0035]

[0036] Further, step (2) comprises:

[0037] (2.1) Determine the initial position and initial velocity of the male and female mayflies. Suppose the position of the male and female mayflies in the d-dimensional space is x = (x1, x2, x3, … x d ), let the velocity of the mayfly individual in d-dimensional space be v = (v1, v2, v3, … v d );

[0038] (2.2) The optimized parameters stator outer diameter D a 、Rotor outer diameter D b , stator slot width D c , the air gap length δ corresponds to the position and velocity of the individual mayflies, and the corresponding positions of male and female mayflies in d-dimensional space are x dk =(x d1 ,x d2 ,xd3 ,x d4 ), the corresponding velocity of the mayfly individual in d-dimensional space is v dk =(v d1 ,v d2 ,v d3 ,v d4 );

[0039] (2.3) Determine the initial population size. The total number of male and female mayflies is N, and each is N / 2. Then the position of the i-th male or female mayfly in the d-dimensional space is x idk =(x 1dk ,x 2dk ,x 3dk ,…,x idk ), the corresponding velocity of the mayfly individual in d-dimensional space is v idk =(v 1dk ,v 2dk ,v 3dk ,…,v idk ), i=N / 2.

[0040] Further, step (3) comprises:

[0041] (3.1) Initialize the population and determine the boundary of the search space. The initialization individual is represented by x ik =c×(ub-lb)+lb;

[0042] Among them, x ik represents the position of parameter k individual i; c is a random number between 0 and 1; ub represents the upper boundary, and lb represents the lower boundary;

[0043] (3.2) Golden section, which achieves a balance between search and development. The division is achieved as follows:

[0044] c1=a(1-h)+bh, c2=ah+b(1-h);

[0045] Among them, c1 and c2 represent the golden sine segmentation coefficients, which are mainly used to refine the search space; a and b are the initial values ​​of the golden section, a=π, b=-π; h is the golden section ratio, which is taken as

[0046] (3.3) The obtained golden ratio is used for position update, and the position update is expressed as:

[0047]

[0048] in, is the updated position of the i-th individual with parameter k at the t+1th iteration; is the position of the i-th individual with parameter k at the t-th iteration; r1 and r2 are random numbers, r1∈[0,2π], r2∈[0,π]; is the optimal position of the i-th individual with parameter k at the t-th iteration;

[0049] (3.4) The speed of the male mayfly is updated to:

[0050]

[0051] in, is the speed of the mayfly i with parameter k in the tth iteration in the d dimension; a1 and a2 are the attraction coefficients of the mayfly's swimming behavior; β is the visibility coefficient, which is used to control the visibility range of the mayfly; r p Indicates the current position and pbest idk distance; pbest idk It is the best location for history; is the position of the k-parameter ephemera i at the t-th iteration in the d dimension; r g For the current location and gbest d distance; gbest d is the global optimal position;

[0052] (3.5) The distance calculation formula is:

[0053]

[0054] Among them, X ik is the optimal position of the i-th individual with parameter k; n represents the total number of d-dimensional spaces, X idk is the optimal position of the tth iteration of the i-th individual with parameter k in the d-dimensional space;

[0055] In order to obtain the optimal position, the mayfly must constantly update its speed;

[0056] (3.6) The speed is updated as:

[0057]

[0058] Among them, λ represents the dance coefficient, which constantly attracts the opposite sex; τ∈[-1,1] is a random coefficient;

[0059] (3.7) The speed of female mayflies is updated as follows:

[0060]

[0061] Among them, r m represents the distance between male and female mayflies; represents the position of female mayfly i with parameter k at the tth iteration in dimension d; fl is the random walk coefficient, which only works when the female mayfly is not attacked; τ∈[-1,1] is a random number;

[0062] Calculate r according to the formula in step (3.5) p 、r g , compare the male fitness and the global fitness, and then update the male mayfly speed according to the formula in step (3.6); calculate r according to the formula in step (3.5) m , if the male fitness is greater than the female fitness, then the speed of the female mayfly is updated according to the first formula in step (3.7); if the male fitness is less than the female fitness, then the speed of the female mayfly is updated according to the second formula in step (3.7);

[0063] (3.8) The best male individual and the best female individual of the current iteration perform golden sine operation to obtain a new offspring offs1; the second-best male individual and the second-best female individual perform golden crossover to obtain a new offspring offs2; then, the golden mating results of the two offspring are used to update the speed, and the offspring expression obtained by crossover with the golden section factor is:

[0064]

[0065]

[0066] in, represents the initial position of the male mayfly with parameter k in the i-dimensional space; pbest x Represents the optimal position of the male mayfly under the current number of iterations; represents the initial position of the female mayfly in the i-dimensional space; pbest y Represents the optimal position of the female mayfly at the current iteration number;

[0067] If the termination criteria are met, the optimal solution is output as the parameter of the optimization model; otherwise, go to step (3.1).

[0068] The mayfly optimization algorithm (MOA) is composed of a group of female mayflies and a group of male mayflies, and is inspired by the mating behavior of mayflies. In the mating behavior, the best male mayfly mates with the best female mayfly to obtain an optimal offspring; similarly, the second-best male mayfly mates with the second-best female mayfly to obtain the second-best offspring, and so on. This process conforms to the law of survival of the fittest, and individuals with poor fitness are gradually eliminated.

[0069] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the present invention optimizes the mayfly algorithm through the golden sine algorithm, so that the mayfly algorithm has higher solution accuracy and convergence speed, improves the search accuracy and optimization ability, and also has the advantages of low complexity and fewer adjustable parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a flowchart of a permanent magnet brushless DC motor optimization method based on an improved mayfly algorithm provided in the implementation of this application. DETAILED DESCRIPTION

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

[0072] like Figure 1 As shown, a permanent magnet brushless DC motor optimization method based on an improved mayfly algorithm includes the following steps.

[0073] (1) Establish a finite element model of the permanent magnet brushless DC motor and determine the optimization parameters, constraints and objective function;

[0074] The objective function is:

[0075]

[0076] Among them, f1 = B(x) represents the air gap magnetic flux target function, f2 = T(x) min represents the minimum cogging torque objective function, f3 = η(x) max represents the maximum efficiency objective function.

[0077] (1.1) The air gap magnetic flux objective function is:

[0078] B slotting =εB average ;

[0079] Among them, B slotting To consider the air gap flux density when the stator slot effect is taken into account, B average is the average air gap flux density of the motor, ε is the Carter coefficient;

[0080]

[0081] Among them, A m A is the area through which the permanent magnet flux passes. m = lω m , l is the axial length of the permanent magnet, ω m is the width of the permanent magnet;

[0082] A g is the air gap magnetic flux passing area, g e is the air gap length, rz is the outer radius of the rotor, θ r is the central angle of the outer end of the permanent magnet;

[0083] R g is the air gap reluctance, μ o is the vacuum permeability;

[0084] R mo is the permanent magnet reluctance, h pm is the thickness of the permanent magnet, μ m is the relative magnetic permeability of the permanent magnet;

[0085] R mr is the equivalent magnetic resistance of the permanent magnet end magnetic circuit, R mn is the equivalent magnetic resistance of the adjacent permanent magnet magnetic circuit;

[0086] g k (θ) is the actual magnetic field line length, g k (θ) = g e +g c (θ), g c (θ) is the function of the length of magnetic lines of force caused by stator slotting that changes with the rotor angle θ.

[0087] Function g of magnetic field length caused by stator slotting as a function of rotor angle θ c (θ) is calculated as follows:

[0088]

[0089] Among them, r d is the stator radius, θ1 is the angle between the magnetic force line and the lower end of the stator slot, θ2 is the angle between the magnetic force line and the intersection of the stator slot and the stator tooth tip, θ3 is the angle between the magnetic force line and the upper end of the stator tooth tip, β represents the inclination angle of the tooth tip, and h0 is the height of the stator slot;

[0090] W0 is the stator slot width, W1 is the stator tooth pitch, and h1 is the stator tooth tip height.

[0091] (1.2) The cogging torque objective function is:

[0092]

[0093] Among them, T is the output torque; p is the number of pole pairs, and the ratio of the number of magnetic pole pairs to the number of pole pairs is generally 2; k is a constant; μ is the magnetic permeability of the permanent magnet; M is the magnetic moment of the permanent magnet; N is the number of poles; u is the rated voltage; and B is the magnetic induction intensity.

[0094] (1.3) The efficiency objective function is:

[0095]

[0096] Among them, η represents efficiency, m is the rotor mass; r is the rotor radius; and e is the cogging coefficient.

[0097] (1.4) The optimization parameters are:

[0098] x=[D a ,D b ,D c ,δ]

[0099] Where x represents the optimization parameter matrix, D a Indicates the stator outer diameter of the permanent magnet brushless DC motor, D b Indicates the outer diameter of the rotor of the permanent magnet brushless DC motor; D c It represents the stator slot width of the permanent magnet brushless DC motor; δ represents the air gap length of the permanent magnet brushless DC motor.

[0100] (1.5) The constraints are:

[0101]

[0102] (2) Based on the Mayfly algorithm, determine the population size and the initial position and initial speed of the optimization parameters;

[0103] (2.1) Determine the initial position and initial velocity of the male and female mayflies. Suppose the position of the male and female mayflies in the d-dimensional space is x = (x1, x2, x3, … x d ), let the velocity of the mayfly individual in d-dimensional space be v = (v1, v2, v3, … v d );

[0104] The search performance is evaluated according to the optimization function f(x). The flight direction of each mayfly is a dynamic interaction of individual and social flight experience. Both male and female individuals have the best position pbest;

[0105] (2.2) The optimized parameters stator outer diameter D a 、Rotor outer diameter D b , stator slot width D c , the air gap length δ corresponds to the position and velocity of the individual mayflies, and the corresponding positions of male and female mayflies in d-dimensional space are x dk =(x d1 ,x d2 ,x d3 ,x d4 ), the corresponding velocity of the mayfly individual in d-dimensional space is v dk =(vd1 ,v d2 ,v d3 ,v d4 );

[0106] (2.3) Determine the initial population size. The total number of male and female mayflies is N, and each is N / 2. Then the position of the i-th male or female mayfly in the d-dimensional space is x idk =(x 1dk ,x 2dk ,x 3dk ,…,x idk ), the corresponding velocity of the mayfly individual in d-dimensional space is v idk =(v 1dk ,v 2dk ,v 3dk ,…,v idk ), i=N / 2.

[0107] (3) The Mayfly algorithm is improved by the golden sine algorithm (Gold-SA), and the improved Mayfly algorithm is used to obtain the optimal solution of the objective function as the optimal design parameters of the permanent magnet brushless DC motor.

[0108] (3.1) Initialize the population and determine the boundary of the search space. The initialization individual is represented by x ik =c×(ub-lb)+lb;

[0109] Among them, x ik represents the position of parameter k individual i; c is a random number between 0 and 1; ub represents the upper boundary, and lb represents the lower boundary;

[0110] (3.2) Golden section, which achieves a balance between search and development. The division is achieved as follows:

[0111] c1=a(1-h)+bh, c2=ah+b(1-h);

[0112] Among them, c1 and c2 represent the golden sine segmentation coefficients, which are mainly used to refine the search space and are the key to the Gold-SA search method; a and b are the initial values ​​of the golden section. The golden sine is divided into standard sine intervals. Since the period of the sine function sin(x) is 2π, according to its definition and the relationship with the unit element, in order to enable the population to traverse the searched space of each dimension within the entire period, a=π, b=-π are taken here; h is the golden section ratio, usually taken The golden ratio coefficient reduces the space with each iteration, and each division guides the individual to gradually approach the optimal value.

[0113] (3.3) The obtained golden ratio is used for position update, and the position update is expressed as:

[0114]

[0115] in, is the updated position of the i-th individual with parameter k at the t+1th iteration; is the position of the i-th individual with parameter k at the t-th iteration; r1 and r2 are random numbers, r1∈[0,2π], r2∈[0,π]; is the optimal position of the i-th individual with parameter k at the t-th iteration;

[0116] (3.4) The speed of the male mayfly is updated to:

[0117]

[0118] in, is the speed of the mayfly i with parameter k in the tth iteration in the d dimension; a1 and a2 are the attraction coefficients of the mayfly's swimming behavior; β is the visibility coefficient, which is used to control the visibility range of the mayfly; r p Indicates the current position and pbest idk distance; pbest idk It is the best location for history; is the position of the k-parameter ephemera i at the t-th iteration in the d dimension; r g For the current location and gbest d distance; gbest d is the global optimal position;

[0119] (3.5) The distance calculation formula is:

[0120]

[0121] Among them, X ik is the optimal position of the i-th individual with parameter k; n represents the total number of d-dimensional spaces, X idk is the optimal position of the tth iteration of the i-th individual with parameter k in the d-dimensional space.

[0122] In order to obtain the optimal position, the mayfly must constantly update its speed;

[0123] (3.6) The speed is updated as:

[0124]

[0125] Among them, λ represents the dance coefficient, which constantly attracts the opposite sex; τ∈[-1,1] is a random coefficient;

[0126] (3.7) The speed of female mayflies is updated as follows:

[0127]

[0128] Among them, r m represents the distance between male and female mayflies; represents the position of female mayfly i with parameter k at the tth iteration in dimension d; fl is the random walk coefficient, which only works when the female mayfly is not attacked; τ∈[-1,1] is a random number;

[0129] Calculate r according to the formula in step (3.5) p 、r g , compare the male fitness and the global fitness, and then update the male mayfly speed according to the formula in step (3.6); calculate r according to the formula in step (3.5) m , if the male fitness is greater than the female fitness, then the speed of the female mayfly is updated according to the first formula in step (3.7); if the male fitness is less than the female fitness, then the speed of the female mayfly is updated according to the second formula in step (3.7);

[0130] (3.8) The best male individual and the best female individual of the current iteration perform golden sine operation to obtain a new offspring offs1; the second-best male individual and the second-best female individual perform golden crossover to obtain a new offspring offs2; then, the golden mating results of the two offspring are used to update the speed, and the offspring expression obtained by crossover with the golden section factor is:

[0131]

[0132]

[0133] in, represents the initial position of the male mayfly with parameter k in the i-dimensional space; pbest x Represents the optimal position of the male mayfly under the current number of iterations; represents the initial position of the female mayfly in the i-dimensional space; pbest y Represents the optimal position of the female mayfly at the current iteration number;

[0134] If the termination criteria are met, the optimal solution is output as the parameter of the optimization model; otherwise, go to step (3.1).

[0135] The optimal solution obtained is the optimal design parameters that achieve the optimal air gap flux density B, the minimum cogging torque T, and the maximum operating efficiency η. Based on the optimal solution and optimal design parameters, the finite element model is modified using Ansys Maxwell to achieve the purpose of optimal design.

[0136] The present invention aims at the performance optimization problem of permanent magnet brushless DC motor, improves the mayfly algorithm by golden sine method, brings the motor optimization parameters into the improved mayfly algorithm, and processes the position, speed, fitness and boundary of the mayfly. Finally, the male and female mayflies are mated iteratively until the objective function is satisfied, and the optimal parameters and optimal solution are obtained to achieve the optimization of the permanent magnet brushless DC motor. The present invention can realize the rapid and accurate finding of the optimal solution.

Claims

1. A permanent magnet brushless DC motor optimization method based on improved mayfly algorithm, It is characterized in that include: (1) Establish a finite element model of the permanent magnet brushless DC motor and determine the optimization parameters, constraints and objective function; (2) Based on the Mayfly algorithm, determine the population size and the initial position and initial speed of the optimization parameters; (3) The mayfly algorithm is improved by the golden sine algorithm, and the optimal solution of the objective function is obtained by using the improved mayfly algorithm as the optimal design parameters of the permanent magnet brushless DC motor; In step (1), the objective function is: Among them, f 1 =B(x) represents the air gap flux density objective function, f 2 =T(x) min represents the minimum cogging torque objective function, f 3 =η(x) max represents the maximum efficiency objective function; The air gap magnetic flux objective function is: B slotting =εB average ; Among them, B slotting To consider the air gap flux density when the stator slot effect is taken into account, B average is the average air gap flux density of the motor, ε is the Carter coefficient; Among them, A m A is the area through which the permanent magnet flux passes. m = lω m , l is the axial length of the permanent magnet, ω m is the width of the permanent magnet; A g is the air gap magnetic flux passing area, g e is the air gap length, r z is the outer radius of the rotor, θ r is the central angle of the outer end of the permanent magnet; R g is the air gap reluctance, μ o is the vacuum permeability; R mo is the permanent magnet reluctance, h pm is the thickness of the permanent magnet, μ m is the relative magnetic permeability of the permanent magnet; R mr is the equivalent magnetic resistance of the permanent magnet end magnetic circuit, R mn is the equivalent magnetic resistance of the adjacent permanent magnet magnetic circuit; g k (θ) is the actual magnetic field line length, g k (θ) = g e +g c (θ), g c (θ) is the function of the length of magnetic lines of force caused by stator slotting that changes with the rotor angle θ; The cogging torque objective function is: Among them, T is the output torque; p is the number of pole pairs; k is a constant; μ is the magnetic permeability of the permanent magnet; M is the magnetic moment of the permanent magnet; N is the number of poles; u is the rated voltage; B is the magnetic induction intensity; The efficiency objective function is: Among them, η represents efficiency, m is the rotor mass; r is the rotor radius; e is the toothing coefficient; In step (1), the optimization parameters are: x=[D a ,D b ,D c ,δ] Where x represents the optimization parameter matrix, D a Indicates the stator outer diameter of the permanent magnet brushless DC motor, D b Indicates the rotor outer diameter of the permanent magnet brushless DC motor; D c represents the stator slot width of the permanent magnet brushless DC motor; δ represents the air gap length of the permanent magnet brushless DC motor; In step (1), the constraints are: Step (2) comprises: (2.1) Determine the initial position and initial velocity of the male and female mayflies. Suppose the position of the male and female mayflies in the d-dimensional space is x = (x 1 ,x 2 ,x 3 ,…x d ), let the velocity of the mayfly in d-dimensional space be v = (v 1 ,v 2 ,v 3 ,…v d ); (2.2) The optimized parameters stator outer diameter D a 、Rotor outer diameter D b , stator slot width D c , the air gap length δ corresponds to the position and velocity of the individual mayflies, and the corresponding positions of male and female mayflies in d-dimensional space are x dk =(x d1 ,x d2 ,x d3 ,x d4 ), the corresponding velocity of the mayfly individual in d-dimensional space is v dk =(v d1 ,v d2 ,v d3 ,v d4 ); (2.3) Determine the initial population size. The total number of male and female mayflies is N, and each is N / 2. Then the position of the i-th male or female mayfly in the d-dimensional space is x idk =(x 1dk ,x 2dk ,x 3dk ,…,x idk ), the corresponding velocity of the mayfly individual in d-dimensional space is v idk =(v 1dk ,v 2dk ,v 3dk ,…,v idk ), i = N / 2; Step (3) includes: (3.1) Initialize the population and determine the boundary of the search space. The initialization individual is represented by x ik =c×(ub-lb)+lb; Among them, x ik represents the position of individual i with parameter k; c is a random number between 0 and 1; ub represents the upper boundary, and lb represents the lower boundary; (3.2) Golden section, which achieves a balance between search and development. The division is achieved as follows: c 1 =a(1-h)+bh,c 2 =ah+b(1-h); Among them, c 1 and c 2 represents the golden sine segmentation coefficient, which is mainly used to refine the search space; a and b are the initial values ​​of the golden section, a = π, b = -π; h is the golden section ratio, which is taken as (3.3) The obtained golden ratio is used for position update, and the position update is expressed as: in, is the updated position of the i-th individual with parameter k at the t+1th iteration; is the position of the i-th individual with parameter k at the t-th iteration; r 1 、r 2 is a random number, r 1 ∈[0,2π], r 2 ∈[0,π]; is the optimal position of the i-th individual with parameter k at the t-th iteration; (3.4) The speed of the male mayfly is updated to: in, is the speed of the t-th iteration of the parameter k in dimension d; a 1 and a 2 is the attraction coefficient of the mayfly's swimming behavior; β is the visibility coefficient, which is used to control the visibility range of the mayfly; r p Indicates the current position and pbest idk distance; pbest idk It is the best location for history; is the position of the k-parameter ephemera i at the t-th iteration in the d dimension; r g For the current location and gbest d distance; gbest d is the global optimal position; (3.5) The distance calculation formula is: Among them, X ik is the optimal position of the i-th individual with parameter k; n represents the total number of d-dimensional spaces, X idk is the optimal position of the tth iteration of the i-th individual with parameter k in the d-dimensional space; In order to obtain the optimal position, the mayfly must constantly update its speed; (3.6) The speed is updated as: Among them, λ represents the dance coefficient, which constantly attracts the opposite sex; τ∈[-1,1] is a random coefficient; (3.7) The speed of female mayflies is updated as follows: Among them, r m represents the distance between male and female mayflies; represents the position of female mayfly i with parameter k at the tth iteration in dimension d; fl is the random walk coefficient, which only works when the female mayfly is not attacked; τ∈[-1,1] is a random number; Calculate r according to the formula in step (3.5) p 、r g , compare the male fitness and the global fitness, and then update the male mayfly speed according to the formula in step (3.6); calculate r according to the formula in step (3.5) m , if the male fitness is greater than the female fitness, then the speed of the female mayfly is updated according to the first formula in step (3.7); if the male fitness is less than the female fitness, then the speed of the female mayfly is updated according to the second formula in step (3.7); (3.8) The best male individual and the best female individual in the current iteration perform golden sine operation to obtain the new offspring offs 1 ; The current male suboptimal individual and the female suboptimal individual perform golden crossover to obtain new offspring offs 2 ; Then, the golden mating results of the two offspring are used to update the speed, and the offspring expression obtained by crossing with the golden section factor is: in, represents the initial position of the male mayfly with parameter k in the i-dimensional space; pbest x Represents the optimal position of the male mayfly under the current number of iterations; represents the initial position of the female mayfly in the i-dimensional space; pbest y Represents the optimal position of the female mayfly at the current iteration number; If the termination criteria are met, the optimal solution is output as the parameter of the optimization model; otherwise, go to step (3.1).

2. The permanent magnet brushless DC motor optimization method according to claim 1, It is characterized in that Among them, r d is the stator radius, θ 1 is the angle between the magnetic field line and the lower end of the stator slot, θ 2 is the angle corresponding to the intersection of the magnetic field lines with the stator slot and the stator tooth tip, θ 3 is the angle between the magnetic field line and the upper end of the stator tooth tip, β represents the inclination angle of the tooth tip, and h 0 Stator slot height; W 0 is the stator slot width, W 1 is the stator tooth pitch, h 1 is the stator tooth tip height.