Permanent magnet synchronous motor parameter identification method based on raccoon optimization algorithm

Through the parameter identification method based on the raccoon optimization algorithm, the problems of large data errors and high work intensity in permanent magnet synchronous motor parameter identification in the existing technology are solved, fast and accurate parameter identification is achieved, the labor intensity of the staff is reduced, and the labor intensity is improved. Identification accuracy.

CN118611518APending Publication Date: 2024-09-06中广核新能源安徽有限公司 +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410506764.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing permanent magnet synchronous motor parameter identification method relies on manual testing by engineers, resulting in large data errors, high work intensity and difficulty, and cannot achieve fast and accurate parameter identification.

Method used

Using the parameter identification method based on the raccoon optimization algorithm, by establishing a dynamic equation model, using the training set data to initialize the raccoon population, iteratively optimizing the training, generating a fitness value formula, screening out raccoons with high accuracy and low iteration cost, and finally obtaining parameter identification The optimal solution of the model.

Benefits of technology

It achieves rapid and accurate identification of permanent magnet synchronous motor parameters, reduces the labor intensity of staff, and improves the accuracy and comprehensive performance of parameter identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611518A
    Figure CN118611518A
Patent Text Reader

Abstract

The invention provides a permanent magnet synchronous motor parameter identification method based on a raccoon optimization algorithm, and relates to the technical field of motor parameter identification, and the method comprises the steps: building a parameter identification model; generating a calculation formula of the fitness value according to the number of iterations, the actual parameter value and the predicted parameter value of the parameter identification model; training and testing the parameter identification model; according to the method, the parameter identification model used for identifying the parameters of the permanent magnet synchronous motor is constructed through the raccoon optimization algorithm, so that the effect of rapidly and accurately identifying the parameters of the permanent magnet synchronous motor is achieved; the calculation formula of the fitness value is jointly constructed according to the number of iterations and the error between the predicted parameter value and the actual parameter value, the raccoon with high prediction accuracy and low iterative training cost is screened out, the optimal solution corresponding to the raccoon serves as the parameter of the parameter identification model, and the comprehensive performance of the parameter identification model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor parameter identification, and in particular to a method for identifying parameters of a permanent magnet synchronous motor based on a raccoon optimization algorithm. Background Art

[0002] Permanent magnet synchronous motor (PMSM) is increasingly widely used in various fields due to its high energy density, reliable operation, stable performance and other advantages. However, the speed regulation performance of PMSM often depends to a large extent on the accuracy of motor parameters. The motor parameters will change due to factors such as temperature change, magnetic saturation and motor aging. Therefore, online acquisition of motor parameters is conducive to monitoring the motor operating status and online correction of motor controller parameters to achieve better speed regulation performance. Therefore, since the online identification technology of permanent magnet synchronous motor parameters was proposed, it has attracted widespread attention from scholars at home and abroad and has become a research hotspot in the field of motor control. At present, the identification of permanent magnet synchronous motor parameters mostly adopts the method of engineers conducting multiple experiments. Not only does the final experimental data obtained have a large error, which is not conducive to the subsequent control scheme setting, but it also greatly increases the work intensity and difficulty of engineers. Summary of the invention

[0003] The object of the present invention is to provide a method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm to solve the problems raised in the above background technology.

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

[0005] A method for identifying parameters of a permanent magnet synchronous motor based on a raccoon optimization algorithm comprises the following steps:

[0006] S1, establish parameter identification model based on the dynamic equation of permanent magnet synchronous motor;

[0007] S2, determining the type of permanent magnet synchronous motor parameters that need to be identified and the maximum number of iterations of the raccoon in the parameter identification model, and generating a calculation formula for the fitness value according to the number of iterations of the parameter identification model, the actual parameter value after each iteration, and the predicted parameter value output by the parameter identification model;

[0008] S3, obtaining training set data according to the type of permanent magnet synchronous motor parameters to be identified, and determining the initial value and variation range of the permanent magnet synchronous motor parameters to be identified based on the training set data, initializing the raccoon group in the parameter identification model, using the training set data to perform iterative optimization training on the raccoons in the parameter identification model, and stopping the iteration after completing the maximum number of iterations, and taking the optimal solution corresponding to the raccoon with a fitness value not greater than the fitness threshold and the smallest fitness value as the parameter of the parameter identification model;

[0009] S4, obtaining test set data according to the type of permanent magnet synchronous motor parameters to be identified, and inputting the test set data into the parameter identification model for testing, and entering step S5 when the absolute error of the predicted parameter value output by the parameter identification model is not greater than the absolute error threshold, and returning to step S3 when the absolute error of the predicted parameter value output by the parameter identification model is greater than the absolute error threshold;

[0010] S5, inputting data used for calculating the permanent magnet synchronous motor parameters to be identified in the permanent magnet synchronous motor to be tested into a parameter identification model to output the permanent magnet synchronous motor parameters to be identified.

[0011] Furthermore, the dynamic equation includes the following equation:

[0012]

[0013] Among them, i d Indicates the direct axis current value, i q Indicates the quadrature axis current value, v d Indicates the direct axis voltage value, v q Indicates the quadrature axis voltage value, L d Indicates the direct-axis inductance value, L q Represents the quadrature-axis inductance, R s represents resistance, ω represents rotor angular velocity, T e represents the electromagnetic torque, ψ d represents the direct axis flux value, ψ q represents the cross-axis flux value, and P represents the number of pole pairs.

[0014] Furthermore, the calculation formula of the fitness value is as follows:

[0015]

[0016] Where f(k,z) represents the fitness value of the zth raccoon after the kth iteration in the parameter identification model training, CS i j (k) indicates that multiple groups of data in the training set are input into the parameter identification model. After the kth iteration in the parameter identification model training, the zth raccoon outputs the jth predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified. Represents the training set and predicted parameter values The corresponding actual parameter value, z represents the number of different raccoons in the parameter identification model, and z = 1, 2, 3, ..., Z, and Z represents the total number of raccoons in the parameter identification model, and Z∈N + , k represents the number of different iterations, and k = 1, 2, 3, ..., K z , and K zrepresents the maximum number of iterations for the zth raccoon in the parameter identification model, and K z ∈N + , i represents the number of different types of permanent magnet synchronous motor parameters that need to be identified, and i = 1, 2, 3, ..., m, and m represents the total number of types of permanent magnet synchronous motor parameters that need to be identified, and m∈N + , j represents the number of different predicted parameter values ​​of the same permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and j = 1, 2, 3, ..., n i , and n i represents the total number of predicted parameter values ​​of the i-th permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and n i ∈N + ;

[0017] Among them, λ1, λ2, λ3, ω1, ω2,…,ω i ,…,ω m , τ1, τ2 are all preset proportional coefficients, and λ1+λ2+λ3=1, and 0<λ3<λ2<λ1<1, and ω1+ω2+…+ω i +…+ω m =1, and τ1+τ2=1, and 0<τ2<τ1<1.

[0018] Furthermore, the value range of λ1 is 0.5-0.7, the value range of λ2 is 0.2-0.3, and the value range of λ3 is 0.1-0.2.

[0019] Furthermore, there are three types of permanent magnet synchronous motor parameters that need to be identified, namely, direct axis inductance value L d , quadrature axis inductance L q , and resistor R s , m is 3, which is equal to the direct axis inductance L d The corresponding preset proportionality coefficient ω1 = 0.3 is related to the quadrature axis inductance L q The corresponding preset proportionality coefficient of ε2(k,z) is ω2=0.3, which is proportional to the resistance R s The corresponding preset proportional coefficient ω3=0.4 of ε3(k,z).

[0020] Furthermore, the value range of τ1 is 0.55-0.75, and the value range of τ2 is 0.25-0.45.

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

[0022] The method for identifying parameters of a permanent magnet synchronous motor based on a raccoon optimization algorithm of the present invention constructs a parameter identification model for identifying parameters of a permanent magnet synchronous motor through the raccoon optimization algorithm, thereby achieving the effect of quickly and accurately identifying parameters of the permanent magnet synchronous motor. Compared with the method in which a worker manually conducts multiple experiments to identify parameters of a permanent magnet synchronous motor, the accuracy of identifying parameters of the permanent magnet synchronous motor is improved, and the labor intensity of the worker is reduced. In the parameter identification model, a calculation formula for a fitness value is jointly constructed using the number of iterations and the error between a predicted parameter value and an actual parameter value, so that the fitness value comprehensively considers two factors, namely, the accuracy of the predicted parameter value and the iterative cost spent on training the raccoon, thereby screening out a raccoon with high prediction accuracy and low iterative training cost, and using the optimal solution corresponding to the raccoon as a parameter of the parameter identification model, thereby improving the comprehensive performance of the parameter identification model. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flow chart of the method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm in the present invention. DETAILED DESCRIPTION

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

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

[0026] Embodiment 1:

[0027] See also Figure 1 The present invention provides a method for identifying parameters of a permanent magnet synchronous motor based on a raccoon optimization algorithm, comprising the following steps:

[0028] S1, establish parameter identification model based on the dynamic equation of permanent magnet synchronous motor;

[0029] It should be noted that when establishing a parameter identification model based on the dynamic equation of the permanent magnet synchronous motor, the dynamic equation used may be an existing dynamic equation that represents the relationship between different parameters of the permanent magnet synchronous motor. For example, the dynamic equation may include the following equation:

[0030]

[0031] It should be noted that i d Indicates the direct axis current value, i q Indicates the quadrature axis current value, v d Indicates the direct axis voltage value, v q Indicates the quadrature axis voltage value, L d Indicates the direct-axis inductance value, L q Represents the quadrature-axis inductance, R s represents resistance, ω represents rotor angular velocity, T e represents the electromagnetic torque, ψ d represents the direct axis flux value, ψ q represents the quadrature-axis flux value, P represents the number of pole pairs, and the above-mentioned dynamic equations between the direct-axis current value, quadrature-axis current value, direct-axis voltage value, quadrature-axis voltage value, direct-axis inductance value, quadrature-axis inductance value, resistance, rotor angular velocity, electromagnetic torque, direct-axis flux value, quadrature-axis flux value and the number of pole pairs are all existing formulas, which will not be elaborated here;

[0032] S2, determine the type of permanent magnet synchronous motor parameters that need to be identified, and the maximum number of iterations of the raccoon in the parameter identification model, and generate a calculation formula for the fitness value based on the number of iterations of the parameter identification model, the actual parameter value after each iteration, and the predicted parameter value output by the parameter identification model. The calculation formula is as follows:

[0033]

[0034] It should be noted that It means that multiple groups of data in the training set are input into the parameter identification model. After the kth iteration in the parameter identification model training, the zth raccoon outputs the jth predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified. Represents the training set and predicted parameter values The corresponding actual parameter value, z represents the number of different raccoons in the parameter identification model, and z = 1, 2, 3, ..., Z, and Z represents the total number of raccoons in the parameter identification model, and Z∈N + , k represents the number of different iterations, and k = 1, 2, 3, ..., K z , and K z represents the maximum number of iterations for the zth raccoon in the parameter identification model, and K z ∈N +, where for convenience, the maximum number of iterations of each raccoon in the parameter identification model can be set to the same number, i represents the number of different types of permanent magnet synchronous motor parameters that need to be identified, and i = 1, 2, 3, ..., m, and m represents the total number of types of permanent magnet synchronous motor parameters that need to be identified, and m∈N + , j represents the number of different predicted parameter values ​​of the same permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and j = 1, 2, 3, ..., n i , and n i represents the total number of predicted parameter values ​​of the i-th permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and n i ∈N + ;

[0035] As an implementation method, there are three types of permanent magnet synchronous motor parameters that need to be identified, namely, the direct axis inductance value L d , quadrature axis inductance L q , and resistor R s , the maximum number of iterations can be 3000, 5000, etc., and there is no limit here;

[0036] It should be noted that It represents the jth predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training. and the corresponding actual parameter value The degree of deviation between The larger the value, the greater the degree of deviation, that is, the jth predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified is output by the z-th raccoon after the k-th iteration in the parameter identification model training. The less precise;

[0037] It should be noted that is the maximum deviation of the predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training. is the minimum deviation of the predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training. is the average deviation of the predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training;

[0038] It should be noted that ε i(k,z) represents the comprehensive value of the deviation of the predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training, which is composed of the maximum deviation degree Minimum deviation and the deviation from the mean Together, the predicted parameter values ​​of the i-th permanent magnet synchronous motor parameters to be identified output by the parameter identification model are comprehensively analyzed to see whether they are accurate, and the maximum deviation degree is Minimum deviation and the deviation from the mean The larger it is, the greater the degree of deviation is, that is, the less accurate the predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified output by the z-th raccoon after the k-th iteration in the parameter identification model training is;

[0039] It should be noted that λ1, λ2, and λ3 are all preset proportional coefficients, and λ1 represents the average value of the degree of deviation. The overall value of the deviation degree ε i The weight in the (k,z) calculation, λ2 represents the maximum deviation The overall value of the deviation degree ε i The weight in the (k,z) calculation, λ3 represents the minimum deviation The overall value of the deviation degree ε i (k, z) is the weight in the calculation, and λ1+λ2+λ3=1, and 0<λ3<λ2<λ1<1, and the specific values ​​of λ1, λ2, and λ3 are generally determined by those skilled in the art according to actual conditions;

[0040] As an implementation mode, the value range of λ1 is 0.5-0.7, the value range of λ2 is 0.2-0.3, and the value range of λ3 is 0.1-0.2;

[0041] It should be noted that ε(k,z) represents the combined value of the degree of deviation of the predicted parameter values ​​of the m types of permanent magnet synchronous motor parameters that need to be identified output by the zth raccoon after the kth iteration in the parameter identification model training, which is obtained by multiplying the comprehensive value of the degree of deviation of the predicted parameter values ​​of the m types of permanent magnet synchronous motor parameters that need to be identified by the corresponding preset proportional coefficient and then accumulating them, so as to comprehensively analyze whether the predicted parameter values ​​of the m types of permanent magnet synchronous motor parameters that need to be identified output by the parameter identification model are accurate, and the larger the comprehensive value of the degree of deviation of the predicted parameter values ​​of the m types of permanent magnet synchronous motor parameters that need to be identified, the greater the degree of deviation, that is, the less accurate the predicted parameter values ​​of the m types of permanent magnet synchronous motor parameters that need to be identified output by the zth raccoon in the parameter identification model training after the kth iteration;

[0042] It should be noted that ω1,ω2,…,ω i ,…,ω m are preset proportional coefficients, ω1 represents the weight of the comprehensive value of the degree of deviation ε1(k,z) in the calculation of the combined value of the degree of deviation ε(k,z), ω2 represents the weight of the comprehensive value of the degree of deviation ε2(k,z) in the calculation of the combined value of the degree of deviation ε(k,z), ω i Indicates the comprehensive value of deviation degree ε i The weight of (k,z) in the calculation of the deviation degree combined value ε(k,z), ω m Indicates the comprehensive value of deviation degree ε m The weight of (k,z) in the calculation of the deviation degree combined value ε(k,z), and ω1+ω2+…+ω i +…+ω m =1,ω1,ω2,…,ω i ,…,ω m The specific value of is generally determined by those skilled in the art according to actual conditions;

[0043] As an implementation method, m is set to 3, which is equal to the direct axis inductance L d The corresponding deviation degree comprehensive value ε1(k,z) has a preset proportional coefficient ω1=0.3, which is proportional to the quadrature axis inductance value L q The corresponding deviation degree comprehensive value ε2(k,z) has a preset proportional coefficient ω2=0.3, which is proportional to the resistance R s The corresponding preset proportionality coefficient of the integrated value of the degree of deviation ε3(k,z) is ω3=0.4;

[0044] It should be noted that f(k,z) represents the fitness value of the zth raccoon after the kth iteration in the parameter identification model training, which is composed of the deviation degree combined value ε(k,z), the kth iteration number and the maximum iteration number K z The ratio between Together, the accuracy of the predicted parameter value output by the zth raccoon after the kth iteration in the parameter identification model training and the iteration cost of training the zth raccoon are comprehensively evaluated. The larger the combined value of the degree of deviation ε(k,z), the worse the accuracy of the predicted parameter value output by the zth raccoon after the kth iteration in the parameter identification model training. The kth iteration number is related to the maximum iteration number K. z The ratio between The larger the value, the more iterations it takes to train the zth raccoon, and the higher the iteration cost, that is, the combined value of the degree of deviation ε(k,z), the number of kth iterations and the maximum number of iterations K z The ratio between The larger it is, the worse the quality of the zth raccoon after the kth iteration in the parameter identification model training, the lower its fitness, and the larger the corresponding fitness value f(k,z);

[0045] It should be noted that τ1 and τ2 are both preset proportional coefficients. τ1 represents the weight of the deviation degree combined value ε(k, z) in the calculation of the fitness value f(k, z). τ2 represents the ratio of the kth iteration to the maximum iteration number K. z The ratio between The weight in the calculation of the fitness value f(k,z), and τ1+τ2=1, and 0<τ2<τ1<1, the specific values ​​of τ1 and τ2 are generally determined by those skilled in the art according to actual conditions;

[0046] As an implementation mode, the value range of τ1 is 0.55-0.75, and the value range of τ2 is 0.25-0.45.

[0047] S3, obtaining training set data according to the type of permanent magnet synchronous motor parameters to be identified, and determining the initial value and variation range of the permanent magnet synchronous motor parameters to be identified based on the training set data, initializing the raccoon group in the parameter identification model, using the training set data to perform iterative optimization training on the raccoons in the parameter identification model, and stopping the iteration after completing the maximum number of iterations, and taking the optimal solution corresponding to the raccoon with a fitness value not greater than the fitness threshold and the smallest fitness value as the parameter of the parameter identification model;

[0048] It should be noted that the above step S3 is a conventional operation of the Raccoon optimization algorithm, where the types of permanent magnet synchronous motor parameters to be identified include the direct axis inductance value L d , quadrature axis inductance L q , and resistor R s As an example, the specific steps of step S3 are given below, which are as follows:

[0049] S31, obtaining training set data according to the type of permanent magnet synchronous motor parameters to be identified, the training set data including the direct axis inductance value L in the permanent magnet synchronous motor parameters d , quadrature axis inductance L q and resistor R s The actual parameter value of the permanent magnet synchronous motor and the direct axis inductance value L used to calculate the permanent magnet synchronous motor parameters d , quadrature axis inductance L q , and resistor R s For other actual parameter values, the training set data can use the historical operation data of the permanent magnet synchronous motor;

[0050] S32, according to the direct axis inductance value L in the training set data d , quadrature axis inductance L q and resistor R sThe actual parameter value defines the predicted initial value of the direct-axis inductance L d (0), the predicted initial value of the direct-axis inductance is L d (0) Variation range (ΔL d min,ΔL d max), the predicted initial value of the quadrature-axis inductance is L q (0), the predicted initial value of the quadrature-axis inductance L q (0) Variation range (ΔL q min,ΔL q max), the resistance prediction initial value R s (0), the resistance prediction initial value R s (0) Variation range (ΔR s min,ΔR s max), where the direct-axis inductance is predicted to have an initial value of L d (0) and direct axis inductance L d The absolute difference between the actual parameter values ​​and the predicted initial value of the quadrature-axis inductance L q (0) and the quadrature axis inductance L q The absolute difference between the actual parameter values ​​and the predicted initial resistance value R s (0) and resistor R s The absolute difference between the actual parameter values ​​is no more than 5%;

[0051] S33, performing random initialization for each raccoon to generate an initial position and initial velocity for each raccoon, wherein the initial position of the zth raccoon is denoted as X z (0), and the initial velocity of the zth raccoon is calibrated as V z (0), the initial position and initial velocity reflect the predicted initial values ​​of the direct-axis inductance, quadrature-axis inductance, and resistance and their changing speed;

[0052] It should be noted that the random initialization of each raccoon is a prior art and will not be described in detail here;

[0053] S34, using the training set data to perform iterative optimization training on the raccoons in the parameter identification model, including calculating the fitness value of each raccoon after completing one iterative optimization according to the fitness value calculation formula, and updating the position of the raccoon according to the fitness value and the conventional raccoon optimization algorithm, and the update formula is as follows:

[0054] X z (k+1)=X z (k)+V z (k)*Δk

[0055] It should be noted that X z (k) represents the position of the zth raccoon after the kth iteration, V z(k) represents the speed of the zth raccoon after the kth iteration, Δk represents the time step of the kth iteration, which is used to control the speed of the raccoon position update, and X z (k+1) represents the position of the zth raccoon after the k+1th iteration;

[0056] S35, repeating step S34, and stopping the iteration after completing the maximum number of iterations, and taking the optimal solution corresponding to the raccoon with a fitness value not greater than the fitness threshold and the smallest fitness value as the parameter of the parameter identification model;

[0057] It should be noted that the specific value of the fitness threshold is generally determined by those skilled in the art according to actual conditions, such as 0.3.

[0058] S4, obtaining test set data according to the type of permanent magnet synchronous motor parameters to be identified, and inputting the test set data into the parameter identification model for testing, and entering step S5 when the absolute error of the predicted parameter value output by the parameter identification model is not greater than the absolute error threshold, and returning to step S3 when the absolute error of the predicted parameter value output by the parameter identification model is greater than the absolute error threshold;

[0059] It should be noted that the test set data is obtained in the same way as the training set data, which will not be elaborated here. The calculation logic of the absolute error of the predicted parameter value is: the ratio of the absolute difference after subtracting the actual parameter value from the predicted parameter value to the actual parameter value is taken as the absolute error. The absolute error threshold can be 2%, 3%, 5%, etc., and there is no restriction here.

[0060] S5, inputting data used for calculating the permanent magnet synchronous motor parameters to be identified in the permanent magnet synchronous motor to be tested into a parameter identification model to output the permanent magnet synchronous motor parameters to be identified.

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

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

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

[0064] 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 permanent magnet synchronous motor parameter identification based on raccoon optimization algorithm, It is characterized in that The steps include: S1, establish parameter identification model based on the dynamic equation of permanent magnet synchronous motor; S2, determining the type of permanent magnet synchronous motor parameters that need to be identified and the maximum number of iterations of the raccoon in the parameter identification model, and generating a calculation formula for the fitness value according to the number of iterations of the parameter identification model, the actual parameter value after each iteration, and the predicted parameter value output by the parameter identification model; S3, obtaining training set data according to the type of permanent magnet synchronous motor parameters to be identified, and determining the initial value and variation range of the permanent magnet synchronous motor parameters to be identified based on the training set data, initializing the raccoon group in the parameter identification model, using the training set data to perform iterative optimization training on the raccoons in the parameter identification model, and stopping the iteration after completing the maximum number of iterations, and taking the optimal solution corresponding to the raccoon with a fitness value not greater than the fitness threshold and the smallest fitness value as the parameter of the parameter identification model; S4, obtaining test set data according to the type of permanent magnet synchronous motor parameters to be identified, and inputting the test set data into the parameter identification model for testing, and entering step S5 when the absolute error of the predicted parameter value output by the parameter identification model is not greater than the absolute error threshold, and returning to step S3 when the absolute error of the predicted parameter value output by the parameter identification model is greater than the absolute error threshold; S5, inputting data used for calculating the permanent magnet synchronous motor parameters to be identified in the permanent magnet synchronous motor to be tested into a parameter identification model to output the permanent magnet synchronous motor parameters to be identified.

2. The method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm according to claim 1, Features: The dynamic equations include the following equations: Among them, i d Indicates the direct axis current value, i q Indicates the quadrature axis current value, v d Indicates the direct axis voltage value, v q Indicates the quadrature axis voltage value, L d Indicates the direct-axis inductance value, L q Represents the quadrature-axis inductance, R s represents resistance, ω represents rotor angular velocity, T e represents the electromagnetic torque, ψ d represents the direct axis flux value, ψ q represents the cross-axis flux value, and P represents the number of pole pairs.

3. The method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm according to claim 1, Features: The calculation formula of the fitness value is as follows: Among them, f(k,z) represents the fitness value of the zth raccoon after the kth iteration in the parameter identification model training. It means that multiple groups of data in the training set are input into the parameter identification model. After the kth iteration in the parameter identification model training, the zth raccoon outputs the jth predicted parameter value of the i-th permanent magnet synchronous motor parameter to be identified. Represents the training set and predicted parameter values The corresponding actual parameter value, z represents the number of different raccoons in the parameter identification model, and z = 1, 2, 3, ..., Z, and Z represents the total number of raccoons in the parameter identification model, and Z∈N + , k represents the number of different iterations, and k = 1, 2, 3, ..., K z , and K z represents the maximum number of iterations for the zth raccoon in the parameter identification model, and K z ∈N + , i represents the number of different types of permanent magnet synchronous motor parameters that need to be identified, and i = 1, 2, 3, ..., m, and m represents the total number of types of permanent magnet synchronous motor parameters that need to be identified, and m∈N + , j represents the number of different predicted parameter values ​​of the same permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and j = 1, 2, 3, ..., n i , and n i represents the total number of predicted parameter values ​​of the i-th permanent magnet synchronous motor parameter to be identified output by the parameter identification model, and n i ∈N + ; Among them, λ1, λ2, λ3, ω 1 , ω 2 , …, ω i , …, ω m , τ1, τ2 are all preset proportionality coefficients, and λ1 + λ2 + λ3 = 1, and 0 < λ3 < λ2 < λ1 < 1, and ω 1 + ω 2 + … + ω i + … + ω m = 1, and τ1 + τ2 = 1, and 0 < τ2 < τ1 < 1.

4. The method for identifying parameters of a permanent magnet synchronous motor based on the raccoon optimization algorithm according to claim 3, Features: The value range of λ1 is 0.5-0.7, the value range of λ2 is 0.2-0.3, and the value range of λ3 is 0.1-0.

2.

5. The method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm according to claim 3, Features: There are three types of permanent magnet synchronous motor parameters that need to be identified, namely, direct axis inductance value L d , quadrature axis inductance L q , and resistor R s , m is 3, which is equal to the direct axis inductance L d The corresponding ε 1 The preset scale factor ω of (k,z) 1 =0.3, and the quadrature axis inductance value L q The corresponding ε 2 The preset scale factor ω of (k,z) 2 =0.3, and the resistor R s The corresponding ε 3 The preset scale factor ω of (k,z) 3 =0.

4.

6. The method for permanent magnet synchronous motor parameter identification based on the raccoon optimization algorithm according to claim 3, Features: The value range of τ1 is 0.55-0.75, and the value range of τ2 is 0.25-0.45.

Citation Information

Cited By

  • Recall hard constraint double-threshold screening and sorting method for permanent magnet synchronous motor parameter design

    CN121580698A