Permanent magnet synchronous motor harmonic elimination method and system based on parrot optimization algorithm

By combining the Parrot optimization algorithm with the dual closed-loop control structure of the permanent magnet synchronous motor, the harmonic signal data is extracted and optimized, which solves the dynamic adaptability problems of motor harmonic identification and dead zone compensation, and realizes efficient harmonic elimination and dynamic performance optimization of the motor.

CN120658157APending Publication Date: 2025-09-16CHANGSHA BEST ELECTRICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510824975.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the existing technology, the motor harmonic identification and dead zone compensation methods cannot adapt to the dynamic changes of actual working conditions, resulting in unsatisfactory compensation effects. They are also easily interfered by high-order harmonics and nonlinear factors, affecting the dynamic performance and stability of the motor.

Method used

The Parrot optimization algorithm is combined with the dual closed-loop control structure of the permanent magnet synchronous motor. The signal data is extracted through the harmonic extraction module, and the Parrot optimization algorithm is used to determine the optimal compensation dead zone phase and amplitude, to achieve balanced compensation of phase and amplitude and optimize the motor control parameters.

Benefits of technology

The dynamic adaptability of the compensation strategy is enhanced, more accurate harmonic elimination is achieved, the control strategy is simplified, the computational burden of the microcontroller is reduced, and the control response speed of the motor is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658157A_ABST
    Figure CN120658157A_ABST
Patent Text Reader

Abstract

The invention provides a permanent magnet synchronous motor harmonic elimination method and system based on a parrot optimization algorithm. The method comprises the following steps: extracting running harmonic signal data by using a harmonic extraction module connected with a double-closed-loop control structure of a permanent magnet synchronous motor; determining an optimal compensation dead zone phase and amplitude matched with the harmonic signal data by using a parrot optimization algorithm; and performing phase and amplitude compensation on the permanent magnet synchronous motor based on the optimal compensation dead zone phase and amplitude, thereby realizing harmonic elimination optimization, and providing support for control parameter decision of the permanent magnet synchronous motor according to the optimized operation signal. By adopting the scheme, the problems of low identification accuracy and susceptibility to interference in the prior art can be solved, the parrot algorithm is adopted to adapt to various working conditions and parameter changes, the dynamic adaptability of a compensation strategy is enhanced, and harmonic optimization control is reliably realized based on a simple control strategy.
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 performance optimization, and in particular to a method and system for eliminating harmonics in a permanent magnet synchronous motor based on a Parrot optimization algorithm. Background Art

[0002] Motor harmonics are caused by the dead zone effect of the motor, which affects the dynamic performance and stability of the motor. In order to overcome the dead zone effect, it is necessary to compensate for the disturbance error voltage caused by the dead zone. Traditional dead zone compensation methods are often based on fixed parameters for compensation, without taking into account the dynamic changes of parameters under actual working conditions. Therefore, existing technologies are often unable to accurately identify the dead zone error voltage, resulting in unsatisfactory compensation effects. In addition, under actual working conditions, the motor may be affected by high-order harmonics and other nonlinear factors, which interfere with the identification of the dead zone error voltage and further increase the difficulty of accurate compensation processing. Therefore, practical engineering applications urgently need a scientific and reasonable motor harmonic identification and processing method to dynamically and effectively compensate for the motor dead zone.

[0003] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art known to those skilled in the art. Summary of the Invention

[0004] In order to solve the above problems, the present invention provides a method for eliminating harmonics of a permanent magnet synchronous motor based on the Parrot optimization algorithm. This solution can overcome the problems of low recognition accuracy and susceptibility to interference in the existing technology. The Parrot algorithm is used to adapt to various working conditions and parameter changes, thereby enhancing the dynamic adaptability of the compensation strategy and reliably realizing harmonic optimization control based on a simple control strategy. The method utilizes a harmonic extraction module connected to the dual closed-loop control structure of the permanent magnet synchronous motor to extract the running harmonic signal data; utilizes the Parrot optimization algorithm to determine the optimal compensation dead zone phase and amplitude adapted to the harmonic signal data; and then compensates the permanent magnet synchronous motor for both phase and amplitude to achieve harmonic elimination optimization, so as to determine the control parameters of the permanent magnet synchronous motor based on the optimized operating signal. Preferably, in one embodiment, the method includes:

[0005] Step S110: extracting harmonic signal data during the operation of the permanent magnet synchronous motor using a harmonic extraction module connected to the permanent magnet synchronous motor double closed-loop control structure;

[0006] Step S120: using the Parrot optimization algorithm to determine the optimal solution for the harmonic signal data adaptation, and characterize the optimal compensation dead zone phase and amplitude;

[0007] Step S130: Compensating the permanent magnet synchronous motor for both phase and amplitude based on the optimal compensation dead zone phase and amplitude to achieve harmonic elimination optimization;

[0008] Step S140: determining the control parameters of the permanent magnet synchronous motor according to the optimized operating signal.

[0009] Optionally, in one embodiment, in step S110, a harmonic extraction module is used to measure the PMSM current feedback and extract matching subharmonic voltage data of the permanent magnet synchronous motor as harmonic signal data.

[0010] Furthermore, in a preferred embodiment, in step S110, matching subharmonic voltage data of the permanent magnet synchronous motor is obtained through low-pass filter processing.

[0011] In one embodiment, in step S120, based on the set configuration parameters, individual optimization operations are performed according to the food discovery phase, the following phase, and the local search phase;

[0012] The configuration parameters include the number of iterations, the probability of finding food, the following probability, and the local search range coefficient.

[0013] Furthermore, in one embodiment, in step S120, during the calculation process, the harmonic content data of the dead zone phase and amplitude combination corresponding to each parrot individual is calculated in real time as the fitness, and the role status of each individual is determined based on the fitness.

[0014] Optionally, in one embodiment, in step S120, at the end of each round of iteration, the global optimal solution is updated and the solution represented by the best performing parrot individual is recorded; the algorithm gradually converges through repeated iterations, and finally the optimal solution closest to the harmonic signal data is determined.

[0015] Based on other aspects of the method described in any one or more of the above embodiments, the present invention further provides a storage medium storing program codes that can implement the method described in any one or more of the above embodiments.

[0016] Based on the application aspects of the method described in any one or more of the above embodiments, the present invention also provides a permanent magnet synchronous motor harmonic elimination system based on the Parrot optimization algorithm, which executes the method described in any one or more of the above embodiments.

[0017] Compared with the closest prior art, the present invention also has the following beneficial effects:

[0018] The present invention provides a method and system for eliminating harmonics in a permanent magnet synchronous motor based on the Parrot optimization algorithm. The method utilizes a harmonic extraction module connected to a dual-closed-loop control structure of the permanent magnet synchronous motor to extract harmonic signal data during the operation of the permanent magnet synchronous motor. The Parrot optimization algorithm is then used to determine the optimal solution, obtaining the optimal compensation dead-zone phase and amplitude adapted to the harmonic signal data. The permanent magnet synchronous motor is then compensated for both phase and amplitude, achieving harmonic elimination optimization, thereby better determining the control parameters of the permanent magnet synchronous motor based on the optimized operating signal. This solution utilizes the Parrot algorithm to adapt to various operating conditions and parameter changes, enhancing the dynamic adaptability of the compensation strategy and reliably implementing harmonic optimization control based on a concise control strategy. By injecting equivalent dead-zone time, the motor can achieve more accurate compensation effects under various operating conditions. This not only improves the control response speed but also reduces the computational burden of the microcontroller.

[0019] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0021] Figure 1 1 is a flow chart of a method for eliminating harmonics in a permanent magnet synchronous motor based on the Parrot optimization algorithm according to an embodiment of the present invention;

[0022] Figure 2 Schematic diagram of the functional structure setting relationship of the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided in an embodiment of the present invention;

[0023] Figure 3 1. It is a schematic flow chart of the operation principle of the Parrot optimization algorithm of the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided in an embodiment of the present invention;

[0024] Figure 4 3. This is a schematic diagram comparing the A-phase current before and after the harmonic elimination of the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided in an embodiment of the present invention;

[0025] Figure 5 This is a schematic diagram of the PMSM speed after harmonic elimination at different speeds when the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided in an embodiment of the present invention is applied. DETAILED DESCRIPTION

[0026] The following will describe in detail the implementation methods of the present invention in conjunction with the accompanying drawings and embodiments, so that practitioners of the present invention can fully understand how the present invention applies technical means to solve technical problems and achieve the implementation process of technical effects, and can implement the present invention in accordance with the above implementation process. It should be noted that as long as no conflict exists, the various embodiments and various features of each embodiment in the present invention can be combined with each other, and the resulting technical solutions are all within the scope of protection of the present invention.

[0027] Although the flowcharts depict the operations as sequential processes, many of the operations can be performed in parallel, concurrently, or simultaneously. The order of the operations can be rearranged. A process can be terminated when its operations are completed, but can also have additional steps not included in the figures. A process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0028] Computer devices include user devices and network devices. User devices or clients include, but are not limited to, computers, smartphones, and PDAs (Personal Digital Assistants). Network devices include, but are not limited to, a single network server, a server group consisting of multiple network servers, or a cloud computing-based cloud consisting of a large number of computers or network servers. Computer devices can operate independently to implement the present invention, or they can connect to a network and interact with other computer devices in the network to implement the present invention. The network in which the computer device resides includes, but is not limited to, the Internet, wide area networks, metropolitan area networks, local area networks, and VPN networks.

[0029] The terms used herein are intended only to describe specific embodiments and are not intended to limit exemplary embodiments. Unless the context clearly indicates otherwise, the singular forms "a", "an", "an item" used herein are also intended to include the plural. It should also be understood that the terms "comprise" and / or "include" used herein specify the presence of stated features, integers, steps, operations, units and / or components, and do not preclude the presence or addition of one or more other features, integers, steps, operations, units, components and / or combinations thereof.

[0030] In the field of motor control technology, dynamic performance optimization and precise control of motors have always been a key research topic. Among them, motor harmonics are a common problem that limits the accuracy and performance of motor control.

[0031] Motor harmonics are caused by the dead zone effect of the motor, which affects the dynamic performance and stability of the motor. In order to overcome the dead zone effect, it is necessary to compensate for the disturbance error voltage caused by the dead zone. Traditional dead zone compensation methods are often based on fixed parameters for compensation, without taking into account the dynamic changes of parameters under actual working conditions. Therefore, existing technologies are often unable to accurately identify the dead zone error voltage, resulting in unsatisfactory compensation effects. In addition, under actual working conditions, the motor may be affected by high-order harmonics and other nonlinear factors, which interfere with the identification of the dead zone error voltage and further increase the difficulty of accurate compensation processing. Therefore, practical engineering applications urgently need a scientific and reasonable motor harmonic identification and processing method to dynamically and effectively compensate for the motor dead zone.

[0032] To overcome the above technical problems, the present invention provides a method for eliminating harmonics in a permanent magnet synchronous motor (PMSM) based on the Parrot optimization algorithm. This method, employing the Parrot algorithm, can adapt to various operating conditions and parameter changes, enhancing the dynamic adaptability of the compensation strategy. Through a harmonic suppression strategy, it accurately compensates for dead-zone error voltages, optimizing the control process and operating results of the PMSM. Furthermore, this approach can simplify the motor's control strategy, reduce the computational burden on the microcontroller, and improve control response speed.

[0033] Next, the detailed process of the method according to the embodiment of the present invention is described in detail based on the accompanying drawings. The steps shown in the flowcharts of the accompanying drawings can be executed in a computer system including, for example, a set of computer-executable instructions. Although the logical order of the steps is shown in the flowcharts, in some cases, the steps shown or described can be executed in a different order than here.

[0034] Example 1

[0035] Due to the existence of the dead zone effect, the amplitude and phase of the system control signal will be affected during the system control process. Among them, the amplitude effect will act on the control system in the form of a time delay of the control signal. Taking phase A as an example, the expression is:

[0036]

[0037] Where T′ d is the equivalent dead zone time, Δu is the equivalent dead zone amplitude, T PWM is the PWM signal cycle time, u dc is the bus voltage, t d , t on , t off They are the dead time, power device turn-on delay time and turn-off delay time, R on is the resistance of the IGBT. Based on the actual application analysis requirements, formula (1) can be rewritten as the following formula (2):

[0038] T′ d =a+b|i a | (2)

[0039] in,

[0040] In the control of permanent magnet synchronous motor (PMSM), due to the dead zone effect of the inverter and the influence of sampling circuit delay, the three-phase current will be distorted, generating high-order harmonics, affecting the stability of motor control. In the process of improving the dynamic performance of the motor through compensation methods, unilateral compensation based on amplitude or unilateral compensation based on phase cannot perfectly suppress the harmonic current, so it is necessary to compensate based on amplitude. and phase Compensation on both sides at the same time.

[0041] The present invention provides a method for eliminating harmonics in a permanent magnet synchronous motor based on the Parrot optimization algorithm. Figure 1 FIG. 1 shows a flow chart of a method for eliminating harmonics in a permanent magnet synchronous motor based on the Parrot optimization algorithm according to an embodiment of the present invention. Figure 1 As shown, the method includes the following operations.

[0042] Step S110: extracting harmonic signal data during the operation of the permanent magnet synchronous motor (PMSM) using a harmonic extraction module connected to the PMSM double closed-loop control structure;

[0043] Step S120: using the Parrot optimization algorithm to determine the optimal solution corresponding to the harmonic signal data, and characterize the optimal compensation dead zone phase and amplitude.

[0044] Step S130: Compensating the permanent magnet synchronous motor for both phase and amplitude based on the optimal compensation dead zone phase and amplitude to achieve harmonic elimination optimization;

[0045] Step S140: determining the control parameters of the permanent magnet synchronous motor according to the optimized operating signal.

[0046] This paper presents a method for eliminating harmonics in permanent magnet synchronous motors (PMSMs) based on the Parrot optimization algorithm. The improved Parrot algorithm effectively eliminates harmonics during operation of permanent magnet synchronous motors (PMSMs). The paper also analyzes the dead-time effect in detail and proposes a hysteresis scheme for the compensation position. By injecting an equivalent dead-time, the present invention achieves more accurate compensation under various motor operating conditions.

[0047] First, based on step S110, a harmonic extraction module connected to a permanent magnet synchronous motor (PMSM) double closed-loop control structure is used to extract harmonic signal data during the operation process of the permanent magnet synchronous motor.

[0048] In a preferred embodiment, in step S110, a harmonic extraction module is used to measure the PMSM current feedback and extract matching subharmonic voltage data of the permanent magnet synchronous motor as harmonic signal data.

[0049] Considering the nonlinear characteristics of the drive circuit and the dead zone effect, the three-phase voltage and current of the motor will be distorted, thereby generating harmonics. The three-phase power supply system of a PMSM is generally symmetrical. Taking a stacked three-phase power supply system as an example, these harmonic components mainly include the 5th, 7th, 11th, and 13th harmonics. The amplitude of the harmonic decreases with increasing order. Therefore, in a preferred embodiment, the harmonic elimination method provided by the present invention focuses on the 5th and 7th harmonics.

[0050] In the stationary three-phase coordinate system, the 5th / 7th harmonic voltage in the three-phase PMSM can be expressed as:

[0051]

[0052] Where u a 、u b 、u c are the amplitudes of the three-phase voltages of ABC, u1, u5, and u7 are the amplitudes of the fundamental, 5th, and 7th harmonic voltages, respectively; θ1, θ2, and θ3 are the initial phase angles of the fundamental, 5th, and 7th harmonic voltages, respectively.

[0053] Furthermore, in an optional embodiment, the matching subharmonic voltage data of the permanent magnet synchronous motor is obtained after being processed by a low-pass filter.

[0054] Furthermore, in an optional embodiment, the matching subharmonic voltage data of the permanent magnet synchronous motor is obtained after being processed by a low-pass filter.

[0055] In practical applications, it is preferred to perform analysis and calculation based on the 5th / 7th harmonic voltage data of the PMSM three-phase, but this does not mean that it is an absolute restriction. The extraction and analysis objects of the harmonic signals can be flexibly set according to the calculation requirements.

[0056] The harmonic extraction module and the Parrot algorithm (PO) program are associated with the dual closed-loop control system structure of the permanent magnet synchronous motor (PMSM). Figure 2 The figure shows the functional structure setting relationship of the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided in the embodiment of the present invention; in actual application, such as Figure 2As shown in the figure, the structure within the dashed box represents the dual closed-loop control system structure of a permanent magnet synchronous motor (PMSM). The harmonic extraction module a is connected to the dual closed-loop control structure of the permanent magnet synchronous motor (PMSM), and the Parrot algorithm (PO) program is connected to the harmonic extraction module. During application, the harmonic extraction module a extracts harmonic signals during the operation of the permanent magnet synchronous motor, such as the 5th and 7th harmonic signals, and converts them into value functions for the Parrot algorithm (PO), which can automatically eliminate harmonics during operation. The harmonic extraction module b is the Parrot algorithm (PO) program.

[0057] Furthermore, step S120 is executed to determine the optimal solution corresponding to the harmonic signal data using the Parrot optimization algorithm to characterize the optimal compensation dead zone phase and amplitude.

[0058] The researchers behind this invention considered the Parrot Optimization Algorithm (PO) an emerging intelligent optimization algorithm inspired by the foraging and social behaviors of parrots in nature. In this algorithm, the solution space of the problem to be optimized is likened to the living environment of parrots, with each possible solution being like an individual parrot. The algorithm first initializes and randomly generates a certain number of individual parrots. These individuals represent different initial solutions, covering multiple regions of the problem solution space, just like a group of parrots scattered across different locations searching for food resources.

[0059] The Parrot optimization algorithm mainly includes several key search strategy stages:

[0060] The first is the food discovery phase, which drives individual autonomous exploration with a certain probability. New solutions are generated by randomly moving around the current position, simulating the behavior of parrots trying to find better food sources in the surrounding area based on their own perception.

[0061] The second stage is the following stage. Some parrots, based on the probability of following, move closer to individuals with better performance in the group and draw on their experience to generate new solutions, just as parrots in real life will follow experienced individuals to areas with more abundant food.

[0062] The third is the local search phase, during which the system fine-tunes and explores in a small area to find potential better solutions around its current location, similar to a parrot carefully searching for food near its perch.

[0063] During the entire iteration process, the fitness of each parrot individual (solution) is continuously evaluated, usually measured by the objective function value. The better the fitness, the better the solution. At the end of each round of iteration, the global optimal solution is updated and the solution represented by the best performing parrot individual is recorded. Through repeated iterations, the algorithm gradually converges and eventually finds a solution close to the optimal one. The specific algorithm process is as follows: Figure 3 shown.

[0064] The Parrot Optimization Algorithm (PO) randomly generates a certain number (set as N) of Parrot individuals, each of which represents a set of possible motor operation harmonic signal optimization parameter solutions, which are the dead zone compensation equivalent amplitude and phase angle values ​​in this method. In an optional embodiment, a random motor operation harmonic signal optimization parameter solution is generated based on a random function. In the Parrot Optimization Algorithm, the speed and position are initialized as parameters to be optimized in the initialization individual. In actual application, the possible range of the dead zone compensation equivalent amplitude is set to 0 to the bus voltage value, and the possible range of the dead zone compensation equivalent phase is set to 0 to 360 degrees. Parrot individuals are generated based on the possible effective range.

[0065] Each parrot individual can be represented as:

[0066] X i =[x i1 , x i2 ]

[0067] Among them, x i1 is the dead zone compensation equivalent amplitude, x i2 is the dead zone compensation phase.

[0068] Set the configuration parameters of the parrot optimization algorithm, including the number of iterations T, the probability of finding food Pa, the probability of following Pf, the local search range coefficient, etc. In an optional embodiment, T = 100, Pa = 0.3, Pf = 0.6, and the local search coefficient is set to 0.1.

[0069] When determining the optimal motor operation harmonic signal optimization parameter solution corresponding to the harmonic signal data based on the Parrot optimization algorithm, the iterative optimization process includes the following operations:

[0070] (1) Calculate the objective function value corresponding to each parrot individual. In an optional embodiment, to simplify the calculation amount while taking into account the algorithm accuracy, the 5 / 7 harmonic content corresponding to the parrot individual is used as its fitness function value. The smaller the fitness value, the better the optimization parameter combination of the motor operation harmonic signal represented by the individual.

[0071] (2) The search strategy involves three stages, including:

[0072] Food discovery phase: For each parrot individual, perform food discovery behavior with probability Pa. Randomly generate a new trial solution (individual) X near the current individual new =x i +rand()*step size ; Among them, the function rand() is a random number generation function, step size is the step size, which is 1e-4s.

[0073] During the operation, the harmonic content data of the phase and amplitude combination of the compensation dead zone of each parrot individual is calculated in real time as the fitness, and the role status of each individual is determined according to the fitness; optionally, the fitness of the new solution is calculated in real time during the process. If the fitness of the new solution is better, the current individual is updated, that is, X i =x new .

[0074] Following stage: With probability Pf, let the parrot follow the best individual or better individual in the group. Select a better individual X best (global optimum in the current iteration), generate a new solution X new =X i +rand()*(X best -X i ), similarly evaluate the fitness of the new solution, and if it is better, update the current solution to a better individual.

[0075] Local search stage: Under the residual probability, search in a small local range of the current individual, generate new solutions by fine-tuning parameters and evaluate the update, X new =X i +rand(-local range, local range), where local_range is the local search range.

[0076] (3) Update the global optimum: After each round of iteration, compare the fitness of all parrot individuals and find the global optimal individual for real-time recording. Through repeated iterations, the algorithm gradually converges and eventually finds the optimal solution close to the harmonic signal data of the permanent magnet synchronous motor, and then determines the corresponding motor parameter combination.

[0077] The signal data of the permanent magnet synchronous motor is further optimized based on the optimal compensation dead zone phase and amplitude determined by the Parrot optimization algorithm.

[0078] Step S130 is executed to compensate the permanent magnet synchronous motor for both phase and amplitude based on the determined optimal compensation dead zone phase and amplitude, and to compensate and correct the original system signal error to achieve harmonic elimination optimization.

[0079] Figure 4 A schematic diagram showing a comparison of the A-phase current before and after the harmonic elimination of the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm according to an embodiment of the present invention is shown; Figure 5 A schematic diagram of the PMSM speed after harmonic elimination at different speeds when the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm provided by an embodiment of the present invention is applied is shown.

[0080] In actual applications, since the motor's own parameters may change during operation, it is usually necessary to continuously execute the operation of step S130 to perform continuous and stable compensation.

[0081] The optimized and compensated operating signal can more accurately characterize the dynamic real-time operating state of the permanent magnet synchronous motor. Based on this, step S140 is further executed to determine the control parameters of the permanent magnet synchronous motor according to the optimized operating signal; thereby effectively optimizing the control process and operating results of the permanent magnet synchronous motor.

[0082] For simplicity of description, the aforementioned method embodiments are described as a series of actions. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, as certain steps can be performed in other orders or simultaneously according to the present invention. Furthermore, those skilled in the art should also be aware that the embodiments described in this specification are preferred embodiments, and the actions and modules involved are not necessarily required for the present invention.

[0083] It should be pointed out that in other embodiments of the present invention, the method can also obtain a new permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm by combining one or several of the above embodiments to achieve high-quality harmonic elimination of the permanent magnet synchronous motor and improve the dynamic performance of the motor.

[0084] Example 2

[0085] It should be noted that, based on the method in any one or more of the above-mentioned embodiments of the present invention, the present invention also provides a storage medium, which stores program code that can implement the method described in any one or more of the above-mentioned embodiments. When the code is executed by the operating system, it can implement the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm as described above.

[0086] Example 3

[0087] The methods disclosed in the above embodiments of the present invention are described in detail. The methods of the present invention can be implemented using various devices or systems. Therefore, based on other aspects of the methods described in any one or more of the above embodiments, the present invention also provides a permanent magnet synchronous motor harmonic elimination system based on the Parrot optimization algorithm. This system is used to execute the permanent magnet synchronous motor harmonic elimination method based on the Parrot optimization algorithm described in any one or more of the above embodiments. A specific embodiment is provided below for detailed description.

[0088] Specifically, the permanent magnet synchronous motor harmonic elimination system based on the Parrot optimization algorithm provided in the embodiment of the present invention includes:

[0089] a harmonic extraction module connected to the permanent magnet synchronous motor double closed-loop control structure and configured to extract harmonic signal data during the operation of the permanent magnet synchronous motor;

[0090] A compensation value calculation module, connected to the harmonic extraction module, is configured to determine an optimal solution for the adaptation of the harmonic signal data using a Parrot optimization algorithm, and characterize an optimal compensation dead zone phase and amplitude;

[0091] The compensation implementation module is configured to compensate the permanent magnet synchronous motor for both phase and amplitude based on the optimal compensation dead zone phase and amplitude, thereby achieving harmonic elimination optimization.

[0092] The control optimization module is configured to determine the control parameters of the permanent magnet synchronous motor according to the optimized operating signal.

[0093] Optionally, in one embodiment, the harmonic extraction module is used to measure the PMSM current feedback and extract matching subharmonic voltage data of the permanent magnet synchronous motor as harmonic signal data.

[0094] Furthermore, in a preferred embodiment, the harmonic extraction module obtains the matching subharmonic voltage data of the permanent magnet synchronous motor through low-pass filter processing.

[0095] In one embodiment, the compensation value calculation module performs individual optimization operations according to the food discovery phase, the following phase, and the local search phase based on the set configuration parameters;

[0096] The configuration parameters include the number of iterations, the probability of finding food, the following probability, and the local search range coefficient.

[0097] Furthermore, in one embodiment, the compensation value calculation module is configured to instantly calculate the harmonic content data of the compensation dead zone phase and amplitude combination corresponding to each parrot individual as fitness during the calculation process, and decide the role status of each individual based on the fitness.

[0098] Optionally, in one embodiment, the compensation value calculation module is configured as follows: at the end of each round of iteration, the global optimal solution is updated, and the solution represented by the best performing parrot individual is recorded; the algorithm gradually converges through repeated iterations, and finally the optimal solution closest to the harmonic signal data is determined.

[0099] In the permanent magnet synchronous motor harmonic elimination system based on the Parrot optimization algorithm provided by the embodiment of the present invention, each module or unit structure can operate independently or in combination according to actual parameter processing requirements and operation optimization requirements to achieve corresponding technical effects.

[0100] It should be understood that the embodiments disclosed herein are not limited to the specific structures, processing steps, or materials disclosed herein, but should extend to equivalent substitutions of these features understood by those skilled in the relevant art. It should also be understood that the terminology used herein is for the purpose of describing specific embodiments only and is not intended to be limiting.

[0101] The phrase "one embodiment" mentioned in the specification means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. Therefore, the phrase "one embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.

[0102] Although the embodiments disclosed herein are as described above, the contents described herein are merely embodiments for facilitating understanding of the present invention and are not intended to limit the present invention. Any person skilled in the art may make any modifications and variations in the form and details of the embodiments without departing from the spirit and scope of the present invention. However, the scope of patent protection of the present invention shall remain subject to the scope defined by the appended claims.

Claims

1. A method for eliminating harmonics in a permanent magnet synchronous motor based on the Parrot optimization algorithm, characterized in that: The method comprises: Step S110: extracting harmonic signal data during the operation of the permanent magnet synchronous motor using a harmonic extraction module connected to the permanent magnet synchronous motor double closed-loop control structure; Step S120: using the Parrot optimization algorithm to determine the optimal solution for the harmonic signal data adaptation, and characterize the optimal compensation dead zone phase and amplitude; Step S130: Compensating the permanent magnet synchronous motor for both phase and amplitude based on the optimal compensation dead zone phase and amplitude to achieve harmonic elimination optimization; Step S140: determining the control parameters of the permanent magnet synchronous motor according to the optimized operating signal.

2. The method according to claim 1, characterized in that In step S110 , the harmonic extraction module is used to measure the PMSM current feedback and extract the matching subharmonic voltage data of the permanent magnet synchronous motor as harmonic signal data.

3. The method according to claim 1 or 2, characterized in that In step S110 , matching subharmonic voltage data of the permanent magnet synchronous motor is obtained through low-pass filter processing.

4. The method according to claim 1, wherein In step S120, based on the set configuration parameters, individual optimization operations are performed according to the food discovery phase, the following phase, and the local search phase; The configuration parameters include the number of iterations, the probability of finding food, the following probability, and the local search range coefficient.

5. The method according to claim 1, wherein In step S120, during the operation, the harmonic content data of the dead zone phase and amplitude combination corresponding to each parrot individual is calculated in real time as the fitness, and the role status of each individual is determined based on the fitness.

6. The method according to claim 5, characterized in that In step S120, at the end of each round of iteration, the global optimal solution is updated and the solution represented by the best performing parrot individual is recorded; the algorithm gradually converges through repeated iterations and finally determines the optimal solution that is closest to the harmonic signal data.

7. A storage medium, characterized in that: The storage medium stores program code that can implement the method according to any one of claims 1 to 6.

8. A permanent magnet synchronous motor harmonic elimination system based on Parrot optimization algorithm, characterized in that: The system executes the method according to any one of claims 1 to 6.