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

By establishing the reference model and adjustable model of the permanent magnet synchronous motor, and using genetic algorithms to optimize parameter estimates, the problem of reduced population diversity and excessive consumption of computing resources is solved, and the accuracy of parameter identification and the global search capability of the system are improved. .

CN118631121AActive Publication Date: 2024-09-10JIANGSU CHAIWEI PRECISION MASCH TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing permanent magnet synchronous motor parameter identification method reduces the population diversity during the iterative process, resulting in weakened exploration capabilities, reduced system effectiveness, and excessive consumption of computing resources.

Method used

By establishing the reference model and adjustable model of the permanent magnet synchronous motor, genetic algorithms are used to select, cross and mutate the initial population, establish a fitness function based on the current error, and iteratively optimize parameter estimates to ensure population diversity and global search. ability.

Benefits of technology

The accuracy of parameter identification is improved, the identification error is reduced, the local optimal solution is avoided, and the global search capability of the system is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631121A
    Figure CN118631121A
Patent Text Reader

Abstract

The invention discloses a permanent magnet synchronous motor parameter identification method, device and equipment and a storage medium, and relates to the technical field of motor parameter identification. Comprising the following steps: establishing a reference model of the permanent magnet synchronous motor according to the stator resistance, inductance and rotor flux linkage of the permanent magnet synchronous motor, designing an adjustable model according to the established reference model, inputting the same voltage quantity to the established reference model and the adjustable model, taking the obtained current value as output, and subtracting the current values output by different models to obtain a difference value; obtaining the difference of output current of different models, and establishing a fitness function according to the error of the magnitude of current; the method comprises the following steps: generating a plurality of parameter sets according to the value ranges of stator resistance, inductance and rotor flux linkage of a motor, establishing an initial population by using a genetic algorithm, finding a certain parameter set according to an established fitness function, enabling the fitness function to be maximum, and stopping iterative operation at the moment; the individual with the maximum 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] In 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 the stator resistance to increase by as much as 40%. The deviation will affect the operating efficiency of the motor, and the permanent magnet flux will also have a 20 If the parameters fluctuate, the temperature will be too high and even cause permanent magnet demagnetization, resulting in complete damage to the motor. In addition, the inaccuracy of the parameters will reduce the reliability of the vector control front-end controller, resulting in a decrease in its control performance. On the one hand, the real-time parameter changes of the motor can be used to infer the operating state of the motor itself, providing a research basis for the fault detection and fault-tolerant system of the motor control system. On the other hand, the real-time and accurate acquisition of the motor parameter values ​​can adjust the speed and current loop controller parameter configuration 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] The termination iteration condition is set. When the population reaches the termination iteration condition, the iteration 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.

[0015] Furthermore, 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, and Represent the synchronous rotating coordinate system Direct axis in coordinate system and cross axis The current component on and Respectively represent the direct axis and cross axis The current component on The rate of change, Indicates the stator resistance of the permanent magnet synchronous motor in static state, is the synchronous inductance of the stator in a stationary state, is the electrical angular velocity, is the flux generated by the permanent magnet when the motor is stationary, and For straight axis and cross axis The voltage component on .

[0018] Furthermore, the reference model input of the permanent magnet synchronous motor is a direct-axis and cross axis The voltage component on and , 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 is the current vector The parameter matrix of is based on the formula:

[0021]

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

[0023]

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

[0025]

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

[0027]

[0028]

[0029]

[0030] vector In the expression of is the electrical angular velocity.

[0031] Furthermore, the method for designing and establishing 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 , the output is the current estimate, and the formula based on the adjustable model is:

[0032]

[0033] 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:

[0034]

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

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

[0037]

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

[0039]

[0040] In the formula, is the estimated value of the stator-rotor flux;

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

[0042]

[0043]

[0044]

[0045] In the formula, and They are Axis current estimates.

[0046] Furthermore, the reference model input of the permanent magnet synchronous motor is a direct-axis and cross axis The voltage component on and , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula:

[0047]

[0048] In the formula, represents the actual current value output by the reference model of the permanent magnet synchronous motor, where is the current vector The parameter matrix of is based on the formula:

[0049]

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

[0051]

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

[0053]

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

[0055]

[0056]

[0057]

[0058] vector In the expression of is the electrical angular velocity.

[0059] Furthermore, 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:

[0060]

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

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

[0063]

[0064] In the formula, is the fitness function, and are the weight coefficients of the direct-axis and quadrature-axis current differences, and Both are greater than 0.

[0065] Furthermore, the generated sets of stator resistance, inductance and rotor flux parameter sets are used as individuals to establish initial populations, wherein the logic for establishing the initial population is: the stator resistance, inductance and rotor flux parameters in each set of parameters are encoded into a gene, and individual chromosomes are generated according to the obtained genes. 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 .

[0066] Furthermore, the initial population is cycled through selection, crossover, and mutation operations, and the two newly generated individual chromosomes are placed in the iterative population each time until the number of individual chromosomes in the iterative population reaches , copy the two individual chromosomes with the highest fitness in the initial population to the iteration population, clear the initial population, and transfer the m individual chromosomes in the iteration population 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;

[0067] The initial population is cycled through selection, crossover, and mutation operations, and the two newly generated individual chromosomes are placed in the iterative population each time until the number of individual chromosomes in the iterative population reaches , copy the two individual chromosomes with the highest fitness in the initial population to the iteration population, clear the initial population, and transfer the m individual chromosomes in the iteration population 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;

[0068] Set the termination condition. When the population reaches the termination condition, stop the iteration operation. The logic for setting the termination condition is: The maximum fitness of individual chromosomes in the generation population is , No. The average fitness of individual chromosomes in the generation population is , according to The fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the generation population. The fitness change rate is calculated based on the formula:

[0069]

[0070] In the formula, is the fitness change rate, For the The maximum fitness of individual chromosomes in the generation population, For the The average fitness of individual chromosomes in the generation population, is the set fitness threshold, 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, respectively. are greater than 0 and ;

[0071] Set the fitness change rate threshold to ;

[0072] when 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;

[0073] when , 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.

[0074] 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:

[0075] 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;

[0076] 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;

[0077] 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;

[0078] 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;

[0079] 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;

[0080] 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.

[0081] 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.

[0082] 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.

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

[0084] 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

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

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

[0087] 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.

[0088] 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.

[0089] Example:

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

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

[0092] 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;

[0093] 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:

[0094]

[0095] In the formula, and Represent the synchronous rotating coordinate system Direct axis in coordinate system and cross axis The current component on and Respectively represent the direct axis and cross axis The current component on The rate of change, Indicates the stator resistance of the permanent magnet synchronous motor in static state, is the synchronous inductance of the stator in a stationary state, is the electrical angular velocity, is the flux generated by the permanent magnet when the motor is stationary, and For straight axis and cross axis The voltage component on .

[0096] The reference model input of the permanent magnet synchronous motor is a direct-axis and cross axis The voltage component on and , the output is the actual current value, where the reference model of the permanent magnet synchronous motor is based on the formula:

[0097]

[0098] In the formula, represents the current value output by the reference model of the permanent magnet synchronous motor, where is the current vector The parameter matrix of is based on the formula:

[0099]

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

[0101]

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

[0103]

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

[0105]

[0106]

[0107]

[0108] vector In the expression of is the electrical angular velocity.

[0109] 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 , the output is the current estimate, and the formula based on the adjustable model is:

[0110]

[0111] 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:

[0112]

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

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

[0115]

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

[0117]

[0118] In the formula, is the estimated value of the stator-rotor flux;

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

[0120]

[0121]

[0122]

[0123] In the formula, and They are Estimated axis current.

[0124] 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;

[0125] The inputs of the adjustable model are the same as those of the reference model. and , the output is the current estimate.

[0126] 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;

[0127] 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:

[0128]

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

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

[0131]

[0132] In the formula, is the fitness function, and are the weight coefficients of the direct-axis and quadrature-axis current differences, and 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.

[0133] 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;

[0134] 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:

[0135]

[0136]

[0137]

[0138]

[0139]

[0140]

[0141] Calibration Represents all optional sets of all parameters, where ,in , 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, Alleles of each other; According to the obtained genes, individual chromosomes are formed, and the individual chromosomes are composed of 3 genes, each individual chromosome There are 3 gene positions, each corresponding to a gene, namely They are all optional values ​​of individual chromosome gene bits, and the three gene bits correspond to a gene of the sub-resistance, inductance and rotor flux parameters respectively.

[0142] 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;

[0143] 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 according to the obtained genes 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 ;

[0144] 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:

[0145]

[0146] In the formula, represents the fitness of the i-th individual chromosome, is the probability of the i-th individual chromosome being selected, and the roulette method is used to select individuals. The system randomly generates a The random number in the interval is distributed in the selection interval of the individual chromosome according to the generated probability of being selected to determine which individual chromosome to select in this round. The process of selecting individuals is based on the fitness of the individuals. The individuals with greater fitness are more likely to be selected, and vice versa, the probability of being selected is smaller, and an individual may be selected multiple times;

[0147] 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.

[0148] 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.

[0149] 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 an individual Chromosome No. Gene value, randomly generate a The random integer in the interval is the crossover point on the chromosome, and the individual and individuals The yth gene position of the chromosome is used as the crossover point, where ,Right now and , then and The chromosomes from and The two intersection points are cut off and the and The chromosome segments composed of genes at and after the crossover point are exchanged to obtain two individual chromosomes after the crossover. and , respectively expressed as and ,The introduction of crossover operation can greatly increase the search range of the algorithm and ,promote the rapid convergence of the algorithm, which is the core ,operation of the algorithm.

[0150] 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 generated by the crossover operation. and To perform the operation, the system will randomly generate a An integer in the interval used to represent a chromosome A gene position on the The selected gene is mutated, and the gene is mutated into one of its alleles, and the gene at the gene position is replaced with the mutated gene to obtain a new individual. , expressed as , is the variant allele, where the probability of mutation is 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.

[0151] 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 , copy the two individual chromosomes with the highest fitness in the initial population to the iterative population. At this time, the iterative population contains m individual chromosomes of the new generation. 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 the new iterative population. The above process is repeated for each generation of inheritance.

[0152] 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.

[0153] The initial population is cycled through selection, crossover, and mutation operations, and the two newly generated individual chromosomes are placed in the iterative population each time until the number of individual chromosomes in the iterative population reaches , copy the two individual chromosomes with the highest fitness in the initial population to the iterative population, clear the initial population, and transfer the m individual chromosomes in the iterative population to the initial population. At this time, the initial population contains m individual chromosomes of the new generation, and the individual chromosomes in the iterative population are cleared.

[0154] Set the termination condition. When the population reaches the termination condition, stop the iteration operation. The logic for setting the termination condition is: The maximum fitness of individual chromosomes in the generation population is , No. The average fitness of individual chromosomes in the generation population is , according to The fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the generation population. The fitness change rate is calculated based on the formula:

[0155]

[0156] In the formula, is the fitness change rate, For the The maximum fitness of individual chromosomes in the generation population, For the The average fitness of individual chromosomes in the generation population, is the set fitness threshold, are the difference between the maximum fitness and average fitness of the two populations and the weight coefficient of the ratio of the maximum fitness of the two populations to the set threshold, respectively. are greater than 0 and ; Fitness change rate It is proportional to the difference between the maximum fitness of the two populations. That is, the greater 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 continued. The fitness change rate It 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 further iteration is needed.

[0157] Set the fitness change rate threshold to ;

[0158] when 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;

[0159] when , 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.

[0160] 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.

[0161] 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:

[0162] 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;

[0163] 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;

[0164] 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;

[0165] 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;

[0166] 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;

[0167] 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.

[0168] 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.

[0169] 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.

[0170] 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.

[0171] 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.

[0172] 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.

[0173] 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. Parameter identification method of permanent magnet synchronous motor, It is 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. The termination iteration condition is set. When the population reaches the termination iteration condition, the iteration 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.

2. The method for identifying parameters of a permanent magnet synchronous motor according to claim 1, Features: 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, and Represent the synchronous rotating coordinate system Direct axis in coordinate system and cross axis The current component on and Respectively represent the direct axis and cross axis The current component on The rate of change, Indicates the stator resistance of the permanent magnet synchronous motor in static state, is the synchronous inductance of the stator in a stationary state, is the electrical angular velocity, is the flux generated by the permanent magnet when the motor is stationary, and For straight axis and cross axis The voltage component on .

3. The method for identifying parameters of a permanent magnet synchronous motor according to claim 2, Features: The reference model input of the permanent magnet synchronous motor is a direct-axis and cross axis The voltage component on and , 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 is the current vector The parameter matrix of is based on the formula: In the formula is the voltage vector The parameter vector of is based on the formula: In the formula For vector The parameter vector of is based on the formula: Among them, the vector , and Specifically expressed as: vector In the expression of is the electrical angular velocity.

4. The method for identifying parameters of a permanent magnet synchronous motor according to claim 3, Features: 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 , 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 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 stator-rotor flux; Among them, the vector , and Specifically expressed as: In the formula, and They are Axis current estimates.

5. The method for identifying parameters of a permanent magnet synchronous motor according to claim 4, Features: 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, and are the weight coefficients of the direct-axis and quadrature-axis current differences, and Both are greater than 0.

6. The method for identifying parameters of a permanent magnet synchronous motor according to claim 5, Features: 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 individual chromosomes are generated according to the obtained genes. 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 .

7. The method for identifying parameters of a permanent magnet synchronous motor according to claim 6, Features: The initial population is cycled through selection, crossover, and mutation operations, and the two newly generated individual chromosomes are placed in the iterative population each time until the number of individual chromosomes in the iterative population reaches , copy the two individual chromosomes with the highest fitness in the initial population to the iteration population, clear the initial population, and transfer the m individual chromosomes in the iteration population 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: The maximum fitness of individual chromosomes in the generation population is , No. The average fitness of individual chromosomes in the generation population is , according to The fitness change rate is calculated based on the maximum fitness and average fitness of individual chromosomes in the generation population. The fitness change rate is calculated based on the formula: In the formula, is the fitness change rate, For the The maximum fitness of individual chromosomes in the generation population, For the The average fitness of individual chromosomes in the generation population, is the set fitness threshold, 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, respectively. are greater than 0 and ; Set the fitness change rate threshold to ; when 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 , 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.

8. Permanent magnet synchronous motor parameter identification device, Features: The permanent magnet synchronous motor parameter identification device is used to execute the permanent magnet synchronous motor parameter identification method according to any one of claims 1 to 7, 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; 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; 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.

9. Permanent magnet synchronous motor parameter identification equipment, Features: 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 any one of claims 1 to 7 is implemented.

10. A storage medium, Features: The computer program stored in the storage medium can be executed by one or more processors. When the computer program is executed by the processor, the permanent magnet synchronous motor parameter identification method described in any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Network coordinative production scheduling system based on Virtual-Hub and self-adapting scheduling method thereof

    CN101441468A

  • PMSM parameter online identification method and system, terminal and medium

    CN112953338A

  • Permanent magnet synchronous motor parameter identification methods, electronic equipment and storage media

    CN114938175A

  • Permanent magnet synchronous motor parameter identification method based on dung beetle optimization algorithm

    CN116938066A