Permanent magnet synchronous motor parameter identification method, device, equipment and storage medium

By establishing a reference model and an adjustable model of the permanent magnet synchronous motor, and combining the genetic algorithm to optimize the parameters, the problems of reduced population diversity and excessive computational resources were solved, achieving highly accurate and efficient parameter identification.

CN118631121BActive Publication Date: 2024-11-19JIANGSU CHAIWEI PRECISION MASCH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411114736.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-19
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Existing technologies for parameter identification of permanent magnet synchronous motors suffer from reduced population diversity, weakened global search capabilities, and excessive computational resources, leading to a decrease in the effectiveness and accuracy of the control system.

Method used

By establishing a reference model and an adjustable model of the permanent magnet synchronous motor, a genetic algorithm is used to perform selection, crossover, and mutation operations on the initial population. Combined with the fitness function, the parameter estimates of stator resistance, inductance, and rotor flux are iteratively optimized to ensure global search capability and identification accuracy.

Benefits of technology

It improves the accuracy of parameter identification, reduces identification errors, avoids local optima, enhances the system's global search capability, and reduces computational burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631121B_ABST
    Figure CN118631121B_ABST
Patent Text Reader

Abstract

The present invention discloses a permanent magnet synchronous motor parameter identification method, device, equipment and storage medium, and the present invention relates to the technical field of motor parameter identification. The method comprises the following steps: according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor, a reference model of the permanent magnet synchronous motor is established, an adjustable model is designed according to the established reference model, the same voltage is input to the established reference model and the adjustable model, the current value obtained is used as the output, the current values ​​output by different models are subtracted to obtain the difference in the output current of different models, and a fitness function is established according to the error of the current; according to the value range of the stator resistance, inductance and rotor flux of the motor, several groups of parameter sets are generated, an initial population is established by using a genetic algorithm, and according to the established fitness function, a certain parameter group is found to maximize the fitness function, and the iterative operation is stopped at this time, and the individual with the largest fitness in the current population is the estimated value closest to the actual parameter value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motor parameter identification, and specifically relates to a permanent magnet synchronous motor parameter identification method, device, equipment and storage medium. Background Art

[0002] Permanent magnet synchronous motor (PMSM) is increasingly used in defense, aerospace, electric vehicle drive and other fields due to its various advantages. With the development of science and technology and social level, the high reliability and high stability of motor control systems have become the focus of attention in many fields. However, when the motor is running in a variety of complex and changeable application scenarios such as long-term operation, temperature changes, load changes, etc., the relevant parameters of the motor will change, which will also cause a certain degree of degradation of the controller performance.

[0003] Under actual working conditions, the parameters of the motor will also change with the influence of environmental factors such as temperature. For example, temperature changes can cause stator resistance to produce deviations of up to 40%, affecting the operating efficiency of the motor. The permanent magnet flux will also have a parameter fluctuation of about 20%. Excessive temperature may even cause permanent magnet demagnetization, causing complete damage to the motor. In addition, parameter inaccuracy will reduce the reliability of the vector control front-end controller, resulting in a reduction in its control performance. On the one hand, the operating state of the motor itself can be inferred through the real-time parameter changes of the motor, which provides a research basis for the research of fault detection and fault-tolerant systems of motor control systems. On the other hand, real-time and accurate acquisition of motor parameter values ​​can adjust the parameter configuration of the speed and current loop controller to improve the reliability and accuracy of the control system.

[0004] In the prior art, publication number CN112861427A discloses a permanent magnet synchronous motor parameter identification method based on an improved gray wolf optimization algorithm, by establishing a theoretical model and an actual model of the permanent magnet synchronous motor, comparing the output value of the theoretical model and the output value of the actual model; setting algorithm parameters, initializing the population using Fuch mapping and reverse learning strategy, and correcting the difference between the output values ​​of the theoretical model and the actual model according to the fitness function; updating the gray wolf position according to the introduction of a nonlinear convergence factor combined with a gray wolf attack strategy, an adaptive normal cloud model, and an individual memory function of a particle swarm optimization algorithm, until the maximum iteration value is reached and the calculation is stopped; however, in this method, as the iteration proceeds, the diversity of the population may decrease, which may lead to a weakening of the exploration ability, thereby reducing the ability of the global search, resulting in a reduction in the effectiveness of the system, which may cause the scheduling strategy to deviate from the optimal solution, and at the same time, the introduction of a nonlinear convergence factor combined with a gray wolf attack strategy, an adaptive normal cloud model, and a particle swarm optimization algorithm may require a large amount of computing resources, which may lead to an excessive computing burden on the system.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0006] The object of the present invention is to provide a method, device, equipment and storage medium for identifying parameters of a permanent magnet synchronous motor to solve the problems raised in the above background technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] The method for identifying parameters of a permanent magnet synchronous motor includes the following specific steps:

[0009] Obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor;

[0010] The same voltage component is input into the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities;

[0011] According to the reference model and the adjustable model of the permanent magnet synchronous motor, the corresponding current is output respectively, the error of the reference model and the adjustable model of the permanent magnet synchronous motor corresponding to the current is calculated, and the fitness function is established according to the error of the current;

[0012] Determine the range of parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the stationary state, and generate several sets of estimated value sets of the stator resistance, inductance and rotor flux according to the range of the stator resistance, inductance and rotor flux parameters;

[0013] The generated sets of stator resistance, inductance and rotor flux estimation values ​​are used as individuals to establish an initial population, and selection, crossover and mutation operations are performed on the initial population according to the established fitness function, and the initial population is iterated.

[0014] Setting a termination condition for iteration, when the population reaches the termination condition for iteration, stopping the iteration operation, selecting the individual with the largest fitness in the current population as the optimal solution for the permanent magnet synchronous motor parameter identification, wherein the optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor;

[0015] The reference model of the permanent magnet synchronous motor is established based on the stator voltage equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system, wherein the stator current equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system is based on the formula:

[0016]

[0017] In the formula, i d and i q They represent the current components on the direct axis d and the quadrature axis q in the synchronous rotating coordinate system dq coordinate system, respectively. and They represent the rate of change of the current components on the direct axis d and the quadrature axis q with time t, R s Indicates the stator resistance of the permanent magnet synchronous motor in static state, L s is the synchronous inductance of the stator in a stationary state, ω e is the electrical angular velocity, Ψ f is the flux generated by the permanent magnet when the motor is stationary, u d and u q are the voltage components on the direct axis d and the quadrature axis q.

[0018] The reference model input of the permanent magnet synchronous motor is the voltage component u on the direct axis d and the quadrature axis q d and u q , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula:

[0019]

[0020] In the formula, represents the current value output by the reference model of the permanent magnet synchronous motor, where A is the parameter matrix of the current vector i, and the formula based on it is:

[0021]

[0022] Where B is the parameter vector of the voltage vector u, and the formula it is based on is:

[0023]

[0024] Where M is the parameter vector of vector z, and the formula it is based on is:

[0025]

[0026] Among them, vectors i, u and z are specifically expressed as:

[0027]

[0028] In the expression of vector z, ω eis the electrical angular velocity.

[0029] The method for designing an adjustable model of a permanent magnet synchronous motor based on the established reference model of the permanent magnet synchronous motor is as follows: the parameters in the reference model are expressed as estimated values ​​to obtain an adjustable model, wherein the input of the adjustable model is the same as that of the reference model and is u d and u q , the output is the current estimate, and the formula based on the adjustable model is:

[0030]

[0031] In the formula, is the estimated value of the adjustable model output current, is the current vector The parameter matrix of is based on the formula:

[0032]

[0033] In the formula, and are the estimated values ​​of stator resistance and stator inductance respectively;

[0034] In the formula is the voltage vector estimate The parameter vector of is based on the formula:

[0035]

[0036] In the formula For vector The parameter vector of is based on the formula:

[0037]

[0038] In the formula, is the estimated value of the rotor flux;

[0039] Among them, the vector and Specifically expressed as:

[0040]

[0041] In the formula, and are the estimated values ​​of dq axis current respectively.

[0042] The reference model input of the permanent magnet synchronous motor is the voltage component u on the direct axis d and the quadrature axis q d and u q , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula:

[0043]

[0044] In the formula, represents the actual current value output by the reference model of the permanent magnet synchronous motor, where A is the parameter matrix of the current vector i, and the formula based on it is:

[0045]

[0046] Where B is the parameter vector of the voltage vector u, and the formula it is based on is:

[0047]

[0048] Where M is the parameter vector of vector z, and the formula it is based on is:

[0049]

[0050] Among them, vectors i, u and z are specifically expressed as:

[0051]

[0052] In the expression of vector z, ω e is the electrical angular velocity.

[0053] The formula for calculating the error of the corresponding current output by the reference model and the adjustable model of the permanent magnet synchronous motor is:

[0054]

[0055] In the formula, ε is the error of the corresponding current;

[0056] The formula for establishing the fitness function based on the current error is:

[0057]

[0058] In the formula, is the fitness function, ω1 and ω2 are the weight coefficients of the direct-axis and quadrature-axis current differences, respectively, and both ω1 and ω2 are greater than 0.

[0059] The generated sets of stator resistance, inductance and rotor flux parameter sets are used as individuals to establish the initial population. The logic for establishing the initial population is as follows: the stator resistance, inductance and rotor flux parameter in each set of parameters are encoded into a gene, and the individual chromosome S is generated according to the obtained gene. i Each individual chromosome has three gene positions corresponding to the estimated value of stator resistance, estimated value of inductance and estimated value of rotor flux. According to the generated genes, m individual chromosomes are formed. The m individual chromosomes are selected to form an initial population. in

[0060] The initial population is subjected to selection, crossover and mutation operations in a cycle, and the two newly obtained individual chromosomes are placed in the iteration population each time until the number of individual chromosomes in the iteration population reaches m-2. The two individual chromosomes with the highest fitness in the initial population are copied to the iteration population, the initial population is cleared, and the m individual chromosomes in the iteration population are transferred to the initial population. At this time, the initial population contains a new generation of m individual chromosomes, the individual chromosomes in the iteration population are cleared, and the mutation probability is set to 0.5;

[0061] Set the termination condition. When the population reaches the termination condition, stop the iteration operation. The logic for setting the termination condition is: calibrate the maximum fitness of the individual chromosomes in the Kth generation population as f maxK (S i ), the average fitness of individual chromosomes in the Kth generation population is f aveK (S i ), the fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the Kth generation population. The fitness change rate is calculated based on the formula:

[0062]

[0063] In the formula, HL is the fitness change rate, f maxK+1 (S i ) is the maximum fitness of individual chromosomes in the K+1 generation population, f aveK+1 (S i ) is the average fitness of individual chromosomes in the K+1 generation population, yz is the set fitness threshold, ω3, ω4 and ω5 are the weight coefficients of the maximum fitness of the two populations, the average fitness and the ratio of the maximum fitness of the two populations to the set threshold, where ω3, ω4 and ω5 are all greater than 0 and ω3<ω4<ω5;

[0064] Set the fitness change rate threshold to yz hl ;

[0065] When HL <yz hl When , it is judged that the iteration termination threshold is reached, the iteration operation is stopped, and the individual with the highest fitness in the current population is selected as the optimal optimization parameter combination;

[0066] When HL ≥ yz hl , it is judged that the iteration termination threshold has not been reached, and the generated iteration population is used as the initial population for iteration operation until the iteration termination condition is met.

[0067] The present invention further provides a permanent magnet synchronous motor parameter identification device, which is used to execute the above-mentioned permanent magnet synchronous motor parameter identification method, comprising:

[0068] A model building module is used to obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor;

[0069] An input-output selection module is used to input the same voltage component to the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities;

[0070] A fitness function generation module is used to output corresponding currents according to a reference model and an adjustable model of the permanent magnet synchronous motor, calculate errors in the corresponding currents output by the reference model and the adjustable model of the permanent magnet synchronous motor, and establish a fitness function according to the errors in the currents;

[0071] A parameter set generation module is used to determine the range of parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the stationary state, and generate several sets of estimated value sets of the stator resistance, inductance and rotor flux according to the range of the stator resistance, inductance and rotor flux parameters;

[0072] A population iteration module is used to establish an initial population using the generated sets of stator resistance, inductance and rotor flux estimation values ​​as individuals, perform selection, crossover and mutation operations on the initial population according to the established fitness function, and perform iterative operations on the initial population;

[0073] The optimal solution generation module is used to set the termination iteration condition. When the population reaches the termination iteration condition, the iterative operation is stopped, and the individual with the largest fitness in the current population is selected as the optimal solution for the permanent magnet synchronous motor parameter identification. The optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor.

[0074] The present invention also provides a permanent magnet synchronous motor parameter identification device, which is used to execute the above-mentioned permanent magnet synchronous motor parameter identification method, including a memory and a processor, and a computer program is stored in the memory. When the computer program is executed by the processor, the above-mentioned permanent magnet synchronous motor parameter identification method is implemented.

[0075] The present invention also provides a storage medium, wherein a computer program stored in the storage medium can be executed by one or more processors, and when the computer program is executed by the processor, the above-mentioned permanent magnet synchronous motor parameter identification method can be implemented.

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

[0077] According to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor, a reference model of the permanent magnet synchronous motor is established. According to the established reference model of the permanent magnet synchronous motor, an adjustable model of the permanent magnet synchronous motor is designed and established. The same voltage is input to the established reference model and the adjustable model, and the obtained current value is used as the output. The current values ​​output by different models are subtracted to obtain the difference in output currents of different models, and a fitness function is established according to the error of the current. According to the value range of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor, several groups of parameter sets are generated, and an initial population is established by using a genetic algorithm. The initial population is selected, crossed and mutated, and the population is continuously iterated. According to the established fitness function, a parameter group is found to maximize the fitness function, that is, the error of the current values ​​output by different models is minimized. At this time, the iteration operation is stopped, and the individual with the largest fitness in the current population is the estimated value closest to the actual parameter value. This method establishes two models for comparison to obtain the difference in output current, and performs parameter identification based on the difference, which effectively improves the accuracy of parameter identification and reduces identification errors. At the same time, the genetic algorithm is used to improve the global search capability of the system. Since the genetic algorithm has mutation operations, the diversity of the population will not decrease with the iteration, avoiding the occurrence of local optimal solutions. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 It is a schematic diagram of the overall method flow of the present invention;

[0079] Figure 2 It is a schematic diagram of the overall system structure of the present invention. DETAILED DESCRIPTION

[0080] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0081] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0082] Example:

[0083] See also Figure 1 , the present invention provides a technical solution:

[0084] The method for identifying parameters of a permanent magnet synchronous motor includes the following specific steps:

[0085] Step 1: Obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor;

[0086] The reference model of the permanent magnet synchronous motor is established based on the stator voltage equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system, wherein the stator current equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system is based on the formula:

[0087]

[0088] In the formula, i d and i q They represent the current components on the direct axis d and the quadrature axis q in the synchronous rotating coordinate system dq coordinate system, respectively. and They represent the rate of change of the current components on the direct axis d and the quadrature axis q with time t, R s Indicates the stator resistance of the permanent magnet synchronous motor in static state, L s is the synchronous inductance of the stator in a stationary state, ω e is the electrical angular velocity, Ψ f is the flux generated by the permanent magnet when the motor is stationary, u d and u q are the voltage components on the direct axis d and the quadrature axis q.

[0089] The reference model input of the permanent magnet synchronous motor is the voltage component u on the direct axis d and the quadrature axis q d and u q , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula:

[0090]

[0091] In the formula, represents the current value output by the reference model of the permanent magnet synchronous motor, where A is the parameter matrix of the current vector i, and the formula based on it is:

[0092]

[0093] Where B is the parameter vector of the voltage vector u, and the formula it is based on is:

[0094]

[0095] Where M is the parameter vector of vector z, and the formula it is based on is:

[0096]

[0097] Among them, vectors i, u and z are specifically expressed as:

[0098]

[0099] In the expression of vector z, ω e is the electrical angular velocity.

[0100] The method for designing an adjustable model of a permanent magnet synchronous motor based on the established reference model of the permanent magnet synchronous motor is as follows: the parameters in the reference model are expressed as estimated values ​​to obtain an adjustable model, wherein the input of the adjustable model is the same as that of the reference model and is u d and u q , the output is the current estimate, and the formula based on the adjustable model is:

[0101]

[0102] In the formula, is the estimated value of the adjustable model output current, is the current vector The parameter matrix of is based on the formula:

[0103]

[0104] In the formula, and are the estimated values ​​of stator resistance and stator inductance respectively;

[0105] In the formula is the voltage vector estimate The parameter vector of is based on the formula:

[0106]

[0107] In the formula For vector The parameter vector of is based on the formula:

[0108]

[0109] In the formula, is the estimated value of the rotor flux;

[0110] Among them, the vector and Specifically expressed as:

[0111]

[0112] In the formula, and are the estimated values ​​of dq axis current respectively.

[0113] Step 2: Input the same voltage component to the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities;

[0114] The input of the adjustable model is the same as that of the reference model, both of which are u d and u q , the output is the current estimate.

[0115] Step 3: According to the current corresponding to the reference model and the adjustable model of the permanent magnet synchronous motor, the error between the current corresponding to the reference model and the adjustable model of the permanent magnet synchronous motor is calculated, and a fitness function is established according to the error of the current;

[0116] The formula for calculating the error of the corresponding current output by the reference model and the adjustable model of the permanent magnet synchronous motor is:

[0117]

[0118] In the formula, ε is the error of the corresponding current;

[0119] The formula for establishing the fitness function based on the current error is:

[0120]

[0121] In the formula, is the fitness function, ω1 and ω2 are the weight coefficients of the direct-axis and quadrature-axis current differences, and both ω1 and ω2 are greater than 0. It is inversely proportional to the direct axis current difference, that is, the greater the direct axis current difference, the greater the fitness The smaller it is, the smaller the probability that the motor parameters are the actual parameters. It is inversely proportional to the difference in the quadrature axis current, that is, the greater the difference in the direct axis current, the greater the fitness The smaller it is, the smaller the probability that the set of motor parameters is the actual parameters.

[0122] Step 4: Determine the range of parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the stationary state, and generate several sets of estimated value sets of the stator resistance, inductance and rotor flux according to the range of the stator resistance, inductance and rotor flux parameters;

[0123] The range of the estimated parameter values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor under the actual working state is determined according to the stator resistance, inductance and rotor flux of the motor in the stationary state, where the minimum value of the stator resistance estimated value is calibrated as The maximum value is marked as The minimum value of the estimated stator inductance is calibrated as The maximum value is marked as The minimum value of the rotor flux estimation is calibrated as The maximum value is marked as The range of parameter estimates is based on the formula:

[0124]

[0125] The calibration T represents all optional sets of all parameters, where T = {P1, P2, ..., P u ,…,P n}, where P u ={p u1 ,p u2 ,p u3}, P u represents the parameter set of the uth group, n represents the number of parameter combinations, and according to the generated stator resistance, inductance and rotor flux parameter combinations, the parameters in the optimized parameter combination are encoded into a gene one by one. The genes generated by the same type of data are alleles to each other, that is, p 11 ,p 21 ,…,p n1 Alleles of each other; According to the obtained genes, individual chromosomes are formed, and the individual chromosomes are composed of 3 genes, and each individual chromosome S i There are 3 gene positions, each corresponding to a gene, namely p11 ,p 21 ,…,p n1 They are all optional values ​​of individual chromosome gene bits, and the three gene bits correspond to a gene of sub-resistance, inductance and rotor flux parameters respectively.

[0126] Step 5: Use the generated sets of stator resistance, inductance and rotor flux parameter sets as individuals to establish an initial population, perform selection, crossover and mutation operations on the initial population according to the established fitness function, and perform iterative operations on the initial population;

[0127] The generated sets of stator resistance, inductance and rotor flux parameter sets are used as individuals to establish the initial population. The logic for establishing the initial population is: generate individual chromosomes S according to the obtained genes i Each individual chromosome has three gene positions corresponding to stator resistance, inductance and rotor flux, and m individual chromosomes are formed according to the generated genes. The m individual chromosomes are selected to form an initial population. in

[0128] The initial population is selected according to the established fitness function: the individual chromosomes in the population are selected according to the fitness, and two individuals are selected from the current population. The formula for calculating the probability of selection is:

[0129]

[0130] In the formula, f(S i ) represents the fitness of the i-th individual chromosome, pro(S i ) is the probability of the i-th individual chromosome being selected. The roulette method is used to select individuals. The system randomly generates a random number in the interval [0, 1]. According to the generated probability of selection, the random number is distributed in the selection interval of the individual chromosome to determine which individual chromosome to select in this round. The process of selecting individuals is based on the fitness of the individual. The greater the fitness of the individual, the greater the possibility of being selected, and vice versa. The possibility of being selected is smaller, and an individual may be selected multiple times;

[0131] The selection operation imitates the evolutionary theory of biologist Darwin. Individuals with better adaptability to nature will have a better chance of obtaining mating rights and passing on their good genes to their offspring. In each generation of genetic evolution, a part of the individuals need to be selected from the current population to evolve into the next generation of population.

[0132] A crossover operation is performed on the two individuals selected in the selection operation. The current mainstream crossover operations include: single-point crossover, multi-point crossover, etc. Among them, single-point crossover is to randomly select the same gene position on the chromosomes of the parent individuals as the crossover point, and exchange the gene fragments on the right side of the chromosome crossover point of the parents. In this way, two new individuals are obtained, each of which contains part of the genetic information of the parents.

[0133] A crossover operation is performed on the two selected individuals, and the chromosomes of the two selected individuals are exchanged from a certain gene position and the chromosome fragment after the gene position to obtain two crossed individual chromosomes, wherein the crossover operation is performed on the two selected individuals, and the logic of the crossover operation is: a single-point crossover method is used to process the two individual chromosomes selected in the selection operation process, which are respectively expressed as and in represents the value of the jth gene of chromosome i of individual i, randomly generates a random integer in the interval [1, 3], which is the crossover point on the chromosome, and selects individual S i and individual S j The yth gene position of the chromosome is used as the crossover point, where 1≤y≤3, that is, and Then S i and S j The chromosomes from and The two intersection points are cut off and S i and S j The chromosome segments composed of genes at and after the crossover point are exchanged to obtain two individual chromosomes S' after the crossover i and S′ j , respectively expressed as and The introduction of crossover operation can greatly increase the search range of the algorithm and promote rapid convergence of the algorithm. It is the core operation of the algorithm.

[0134] The logic behind the mutation operation on the chromosomes of two individuals after the crossover is: the mutation operation is performed on the two new individuals S′ generated by the crossover operation i and S′ j To perform the operation, the system first randomly generates an integer in the interval [1, 3] to represent the chromosome S′ i A gene position on the m The selected gene is mutated into one of its alleles, and the mutated gene is used to replace the gene at the gene position, thereby obtaining a new individual S″ i , expressed as is the mutated allele, where the mutation probability R m Set to 0.5; the mutation operation can ensure and enrich the diversity of the population, that is, it can increase the search range of the algorithm and prevent it from falling into the local optimal solution, which will slow down or even stop the evolution of the population.

[0135] After the three major operations, two new individuals are obtained. Repeat these three operations to continuously generate new individuals until the number of individual chromosomes in the iterative population reaches m-2. Copy the two individual chromosomes with the highest fitness in the initial population to the iterative population. At this time, the iterative population contains a new generation of m individual chromosomes. The iterative population at this time is used as the initial population of the next generation. At the same time, the individuals in the initial population are cleared and enter the inheritance of the next generation population as a new iterative population. The above process is repeated for each generation of inheritance.

[0136] Step 6: Set the maximum number of iterations. When the population reaches the maximum number of iterations, stop the iteration operation and select the individual with the largest fitness in the current population as the optimal solution for the permanent magnet synchronous motor parameter identification. The optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor.

[0137] The initial population is cyclically selected, crossed over, and mutated, and the two newly obtained individual chromosomes are placed in the iterative population until the number of individual chromosomes in the iterative population reaches m-2. The two individual chromosomes with the highest fitness in the initial population are copied to the iterative population, the initial population is cleared, and the m individual chromosomes in the iterative population are transferred to the initial population. At this time, the initial population contains a new generation of m individual chromosomes, and the individual chromosomes in the iterative population are cleared.

[0138] Set the termination condition. When the population reaches the termination condition, stop the iteration operation. The logic for setting the termination condition is: calibrate the maximum fitness of the individual chromosomes in the Kth generation population as f maxK (S i ), the average fitness of individual chromosomes in the Kth generation population is f aveK (S i ), the fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the Kth generation population. The fitness change rate is calculated based on the formula:

[0139]

[0140] In the formula, HL is the fitness change rate, f maxK+1 (S i ) is the maximum fitness of individual chromosomes in the K+1 generation population, f aveK+1 (S i) is the average fitness of individual chromosomes in the K+1 generation population, yz is the set fitness threshold, ω3, ω4 and ω5 are the difference between the maximum fitness and average fitness of the two populations and the weight coefficients of the ratio of the maximum fitness of the two populations to the set threshold, where ω3, ω4 and ω5 are all greater than 0 and ω3<ω4<ω5; the fitness change rate HL is proportional to the difference between the maximum fitness of the two populations, that is, the larger the difference between the maximum fitness and the average fitness of the two populations, the greater the fitness change has not reached a relatively stable state and needs to be iterated further; the fitness change rate HL is inversely proportional to the ratio of the maximum fitness of the two populations to the set threshold, the larger the ratio of the maximum fitness of the two populations to the set threshold, the greater the difference between the estimated value and the actual value and needs to be iterated further.

[0141] Set the fitness change rate threshold to yz hl ;

[0142] When HL <yz hl When , it is judged that the iteration termination threshold is reached, the iteration operation is stopped, and the individual with the highest fitness in the current population is selected as the optimal optimization parameter combination;

[0143] When HL ≥ yz hl , it is judged that the iteration termination threshold has not been reached, and the generated iteration population is used as the initial population for iteration operation until the iteration termination condition is met.

[0144] An iterative operation is performed according to an initial population including m individual chromosomes of a new generation. After reaching a termination condition, the iterative operation is stopped, and the individual with the highest fitness is selected from the initial population generated by the last iterative operation as the optimal solution for parameter identification. The optimal solution for parameter identification of the permanent magnet synchronous motor includes estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor.

[0145] See also Figure 2 The present invention further provides a permanent magnet synchronous motor parameter identification device, which is used to execute the above-mentioned permanent magnet synchronous motor parameter identification method, including:

[0146] A model building module is used to obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor;

[0147] An input-output selection module is used to input the same voltage component to the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities;

[0148] A fitness function generation module is used to output corresponding currents according to a reference model and an adjustable model of the permanent magnet synchronous motor, calculate errors in the corresponding currents output by the reference model and the adjustable model of the permanent magnet synchronous motor, and establish a fitness function according to the errors in the currents;

[0149] A parameter set generation module is used to determine the range of parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the stationary state, and generate several sets of estimated value sets of the stator resistance, inductance and rotor flux according to the range of the stator resistance, inductance and rotor flux parameters;

[0150] A population iteration module is used to establish an initial population using the generated sets of stator resistance, inductance and rotor flux estimation values ​​as individuals, perform selection, crossover and mutation operations on the initial population according to the established fitness function, and perform iterative operations on the initial population;

[0151] The optimal solution generation module is used to set the termination iteration condition. When the population reaches the termination iteration condition, the iterative operation is stopped, and the individual with the largest fitness in the current population is selected as the optimal solution for the permanent magnet synchronous motor parameter identification. The optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor.

[0152] The present invention also provides a permanent magnet synchronous motor parameter identification device, which is used to execute the above-mentioned permanent magnet synchronous motor parameter identification method, including a memory and a processor, and a computer program is stored in the memory. When the computer program is executed by the processor, the above-mentioned permanent magnet synchronous motor parameter identification method is implemented.

[0153] The present invention also provides a storage medium, wherein a computer program stored in the storage medium can be executed by one or more processors, and when the computer program is executed by the processor, the above-mentioned permanent magnet synchronous motor parameter identification method can be implemented.

[0154] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0155] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for identifying parameters of a permanent magnet synchronous motor, characterized in that: The specific steps include: Obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor; The same voltage component is input into the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities; According to the reference model and the adjustable model of the permanent magnet synchronous motor, the corresponding current is output respectively, the error of the reference model and the adjustable model of the permanent magnet synchronous motor corresponding to the current is calculated, and the fitness function is established according to the error of the current; Determine the range of parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the stationary state, and generate several sets of estimated value sets of the stator resistance, inductance and rotor flux according to the range of the stator resistance, inductance and rotor flux parameters; The generated sets of stator resistance, inductance and rotor flux estimation values ​​are used as individuals to establish an initial population, and selection, crossover and mutation operations are performed on the initial population according to the established fitness function, and the initial population is iterated. Setting a termination condition for iteration, when the population reaches the termination condition for iteration, stopping the iteration operation, selecting the individual with the largest fitness in the current population as the optimal solution for the permanent magnet synchronous motor parameter identification, wherein the optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor; The reference model of the permanent magnet synchronous motor is established based on the stator voltage equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system, wherein the stator current equation of the permanent magnet synchronous motor in the synchronous rotating coordinate system is based on the formula: In the formula, i d and i q They represent the current components on the direct axis d and the quadrature axis q in the synchronous rotating coordinate system dq coordinate system, respectively. and They represent the rate of change of the current components on the direct axis d and the quadrature axis q with time t, R s Indicates the stator resistance of the permanent magnet synchronous motor in static state, L s is the synchronous inductance of the stator in a stationary state, ω e is the electrical angular velocity, ψ f is the flux generated by the permanent magnet when the motor is stationary, u d and u q are the voltage components on the direct axis d and the quadrature axis q; The reference model input of the permanent magnet synchronous motor is the voltage component u on the direct axis d and the quadrature axis q d and u q , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula: In the formula, represents the current value output by the reference model of the permanent magnet synchronous motor, where A is the parameter matrix of the current vector i, and the formula based on it is: Where B is the parameter vector of the voltage vector u, and the formula it is based on is: Where M is the parameter vector of vector z, and the formula it is based on is: Among them, vectors i, u and z are specifically expressed as: In the expression of vector z, ω e is the electrical angular velocity; The method for designing an adjustable model of a permanent magnet synchronous motor based on the established reference model of the permanent magnet synchronous motor is as follows: the parameters in the reference model are expressed as estimated values ​​to obtain an adjustable model, wherein the input of the adjustable model is the same as that of the reference model and is u d and u q , the output is the current estimate, and the formula based on the adjustable model is: In the formula, is the estimated value of the adjustable model output current, is the current vector The parameter matrix of is based on the formula: In the formula, and are the estimated values ​​of stator resistance and stator inductance respectively; In the formula is the voltage vector estimate The parameter vector of is based on the formula: In the formula For vector The parameter vector of is based on the formula: In the formula, is the estimated value of the rotor flux; Among them, the vector and Specifically expressed as: In the formula, and They are the estimated values ​​of dq axis current respectively; The formula for calculating the error of the corresponding current output by the reference model and the adjustable model of the permanent magnet synchronous motor is: In the formula, ε is the error of the corresponding current; The formula for establishing the fitness function based on the current error is: In the formula, is the fitness function, ω1 and ω2 are the weight coefficients of the direct-axis and quadrature-axis current differences, respectively, and both ω1 and ω2 are greater than 0; The generated sets of stator resistance, inductance and rotor flux parameter sets are used as individuals to establish the initial population. The logic for establishing the initial population is as follows: the stator resistance, inductance and rotor flux parameter in each set of parameters are encoded into a gene, and the individual chromosome S is generated according to the obtained gene. i Each individual chromosome has three gene positions corresponding to the estimated value of stator resistance, estimated value of inductance and estimated value of rotor flux. According to the generated genes, m individual chromosomes are formed. The m individual chromosomes are selected to form an initial population. in The initial population is subjected to selection, crossover and mutation operations in a cycle, and the two newly obtained individual chromosomes are placed in the iteration population each time until the number of individual chromosomes in the iteration population reaches m-2. The two individual chromosomes with the highest fitness in the initial population are copied to the iteration population, the initial population is cleared, and the m individual chromosomes in the iteration population are transferred to the initial population. At this time, the initial population contains a new generation of m individual chromosomes, the individual chromosomes in the iteration population are cleared, and the mutation probability is set to 0.5; Set the termination condition. When the population reaches the termination condition, stop the iteration operation. The logic for setting the termination condition is: calibrate the maximum fitness of the individual chromosomes in the Kth generation population as f maxK (S i ), the average fitness of individual chromosomes in the Kth generation population is f aveK (S i ), the fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the Kth generation population. The fitness change rate is calculated based on the formula: In the formula, HL is the fitness change rate, f maxK+1 (S i ) is the maximum fitness of individual chromosomes in the K+1 generation population, f aveK+1 (S i ) is the average fitness of individual chromosomes in the K+1 generation population, yz is the set fitness threshold, ω3, ω4 and ω5 are the weight coefficients of the maximum fitness of the two populations, the average fitness and the ratio of the maximum fitness of the two populations to the set threshold, where ω3, ω4 and ω5 are all greater than 0 and ω3<ω4<ω5; Set the fitness change rate threshold to yz hl ; When HL <yz hl When , it is judged that the iteration termination threshold is reached, the iteration operation is stopped, and the individual with the highest fitness in the current population is selected as the optimal optimization parameter combination; When HL ≥ yz hl , it is judged that the iteration termination threshold has not been reached, and the generated iteration population is used as the initial population for iteration operation until the iteration termination condition is met.

2. A permanent magnet synchronous motor parameter identification device, characterized in that: The permanent magnet synchronous motor parameter identification device is used to execute the permanent magnet synchronous motor parameter identification method according to claim 1, comprising: A model building module is used to obtain the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor to be identified when it is in a stationary state, establish a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor when it is in a stationary state, and design and establish an adjustable model of the permanent magnet synchronous motor according to the established reference model of the permanent magnet synchronous motor; An input-output selection module is used to input the same voltage component to the established reference model of the permanent magnet synchronous motor and the adjustable model of the permanent magnet synchronous motor, and the reference model and the adjustable model of the permanent magnet synchronous motor respectively output corresponding current quantities; A fitness function generation module is used to output corresponding currents according to a reference model and an adjustable model of the permanent magnet synchronous motor, calculate errors in the corresponding currents output by the reference model and the adjustable model of the permanent magnet synchronous motor, and establish a fitness function according to the errors in the currents; The parameter set generation module is used to determine the value range of the parameter estimation values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor in the actual working state according to the stator resistance, inductance and rotor flux of the motor in the static state, and generate several sets of estimated value sets of stator resistance, inductance and rotor flux according to the value range of the stator resistance, inductance and rotor flux parameters: A population iteration module is used to establish an initial population using the generated sets of stator resistance, inductance and rotor flux estimation values ​​as individuals, perform selection, crossover and mutation operations on the initial population according to the established fitness function, and perform iterative operations on the initial population; The optimal solution generation module is used to set the termination iteration condition. When the population reaches the termination iteration condition, the iterative operation is stopped, and the individual with the largest fitness in the current population is selected as the optimal solution for the permanent magnet synchronous motor parameter identification. The optimal solution for the permanent magnet synchronous motor parameter identification includes the estimated values ​​of the stator resistance, inductance and rotor flux of the permanent magnet synchronous motor.

3. Permanent magnet synchronous motor parameter identification equipment, characterized by: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the permanent magnet synchronous motor parameter identification method according to claim 1 is implemented.

4. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors, and when the computer program is executed by the processor, the permanent magnet synchronous motor parameter identification method described in claim 1 can be implemented.