Nothing Special   »   [go: up one dir, main page]

CN110323989A - Permanent magnet synchronous motor method for identification of rotational inertia based on population - Google Patents

Permanent magnet synchronous motor method for identification of rotational inertia based on population Download PDF

Info

Publication number
CN110323989A
CN110323989A CN201910641606.6A CN201910641606A CN110323989A CN 110323989 A CN110323989 A CN 110323989A CN 201910641606 A CN201910641606 A CN 201910641606A CN 110323989 A CN110323989 A CN 110323989A
Authority
CN
China
Prior art keywords
particle
inertia
particles
moment
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910641606.6A
Other languages
Chinese (zh)
Other versions
CN110323989B (en
Inventor
杨玮林
陆梓轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangnan University
Original Assignee
Jiangnan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangnan University filed Critical Jiangnan University
Priority to CN201910641606.6A priority Critical patent/CN110323989B/en
Publication of CN110323989A publication Critical patent/CN110323989A/en
Application granted granted Critical
Publication of CN110323989B publication Critical patent/CN110323989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/0077Characterised by the use of a particular software algorithm
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/14Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/022Synchronous motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P2207/00Indexing scheme relating to controlling arrangements characterised by the type of motor
    • H02P2207/05Synchronous machines, e.g. with permanent magnets or DC excitation

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Electric Motors In General (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

本发明公开了一种基于粒子群的永磁同步电机转动惯量辨识方法。本发明提出一种基于粒子群的永磁同步电机转动惯量辨识方法,包括:在PMSM转动惯量辨识的问题中,涉及的转子动力学方程为:其中Te为电磁转矩、Tl为负载转矩、J为转动惯量、ω为角速度、B为粘性摩擦系数、C为库仑摩擦系数。根据(3‑6)式可以进行电磁转矩的估计,表示为PSO算法辨识转动惯量J的关键在于建立评价函数(适应度函数),并将之优化。为了评价粒子的优劣性,第i个粒子的评价函数选取如下的二次型形式本发明的有益效果:使用粒子群算法大大提高了转动惯量的辨识精度。

The invention discloses a method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarms. The present invention proposes a method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarms, including: in the problem of identifying the moment of inertia of PMSM, the rotor dynamics equation involved is: Where T e is the electromagnetic torque, T l is the load torque, J is the moment of inertia, ω is the angular velocity, B is the viscous friction coefficient, and C is the Coulomb friction coefficient. The electromagnetic torque can be estimated according to formula (3‑6), expressed as The key to identifying moment of inertia J by PSO algorithm is to establish evaluation function (fitness function) and optimize it. In order to evaluate the pros and cons of particles, the evaluation function of the i-th particle is selected as the following quadratic form The beneficial effect of the present invention is that the identification accuracy of the moment of inertia is greatly improved by using the particle swarm algorithm.

Description

基于粒子群的永磁同步电机转动惯量辨识方法Moment of inertia identification method for permanent magnet synchronous motor based on particle swarm

技术领域technical field

本发明涉及永磁同步电机领域,具体涉及一种基于粒子群的永磁同步电机转动惯量辨识方法。The invention relates to the field of permanent magnet synchronous motors, in particular to a method for identifying the moment of inertia of permanent magnet synchronous motors based on particle swarms.

背景技术Background technique

现有的永磁同步电机(PMSM)参数在线辨识方法主要有最小二乘法、模型参考自适应算法。The existing on-line parameter identification methods for permanent magnet synchronous motors (PMSM) mainly include least squares method and model reference adaptive algorithm.

传统技术存在以下技术问题:The traditional technology has the following technical problems:

最小二乘法通过设计的模型不断地采集新数据,并使用递推算法来不断更新辨识的结果,直到使误差的平方和最小化,达到准确识别的目的。以上两种辨识算法很难实现高精度的快速辨识,使用时有一定的局限性。The least squares method continuously collects new data through the designed model, and uses a recursive algorithm to continuously update the identification results until the sum of the squares of the errors is minimized to achieve the purpose of accurate identification. The above two identification algorithms are difficult to achieve high-precision rapid identification, and there are certain limitations when used.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种基于粒子群的永磁同步电机转动惯量辨识方法,利用粒子群算法实现转动惯量辨识算法,其优点是精度高、收敛快以及无需编码等。The technical problem to be solved by the present invention is to provide a particle swarm-based permanent magnet synchronous motor moment of inertia identification method, using the particle swarm algorithm to realize the moment of inertia identification algorithm, which has the advantages of high precision, fast convergence and no need for coding.

为了解决上述技术问题,本发明提供了一种基于粒子群的永磁同步电机转动惯量辨识方法,包括:在PMSM转动惯量辨识的问题中,涉及的转子动力学方程为:In order to solve the above-mentioned technical problems, the present invention provides a method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarms, including: in the problem of identifying the moment of inertia of PMSM, the rotor dynamics equation involved is:

其中Te为电磁转矩、Tl为负载转矩、J为转动惯量、ω为角速度、B为粘性摩擦系数、C为库仑摩擦系数。根据(3-6)式可以进行电磁转矩的估计,表示为 Where T e is the electromagnetic torque, T l is the load torque, J is the moment of inertia, ω is the angular velocity, B is the viscous friction coefficient, and C is the Coulomb friction coefficient. According to the formula (3-6), the electromagnetic torque can be estimated, expressed as

PSO算法辨识转动惯量J的关键在于建立评价函数(适应度函数),并将之优化。为了评价粒子的优劣性,第i个粒子的评价函数选取如下的二次型形式The key to identifying moment of inertia J by PSO algorithm is to establish evaluation function (fitness function) and optimize it. In order to evaluate the pros and cons of particles, the evaluation function of the i-th particle is selected as the following quadratic form

在其中一个实施例中,粒子群算法的基本步骤如下,对应的流程图如图1 所示:In one of the embodiments, the basic steps of the particle swarm optimization algorithm are as follows, and the corresponding flow chart is shown in Figure 1:

(1)设定粒子种群的规模,在一定范围内随机初始化一群粒子,包括粒子的位置和速度;(1) Set the size of the particle population, and randomly initialize a group of particles within a certain range, including the position and velocity of the particles;

(2)按照选取的目标函数评价所有粒子的适应度;(2) Evaluate the fitness of all particles according to the selected objective function;

(3)个体最优值Pbest的更新。针对种群中的所有粒子,将其适应度值与其历代搜索过程中自身所达到的最优值进行对比,若优于最优值Pbest,则将当前适应度值作为个体最优值Pbest(3) Updating of the individual optimal value P best . For all particles in the population, compare its fitness value with its own optimal value achieved in the previous generation search process, if it is better than the optimal value P best , then take the current fitness value as the individual optimal value P best ;

(4)全局最优值Gbest的更新。针对种群中的所有粒子,将其适应度值与整个粒子群中所有粒子在历代搜索过程中达到的最优值进行对比,若优于最优值 Gbest,则将当前适应度值作为全局最优值Gbest(4) The update of the global optimal value G best . For all particles in the population, compare its fitness value with the optimal value of all particles in the entire particle swarm in the search process of previous generations. If it is better than the optimal value G best , take the current fitness value as the global optimal value. Good value G best ;

(5)根据公式,可以得出具体的速度和位置;(5) According to the formula, the specific speed and position can be obtained;

(6)判断迭代次数是否符合实验的标准,若是则结束迭代,输出最优解Gbest;否则,转回步骤(2)继续开始新一轮的迭代优化。(6) Determine whether the number of iterations meets the standard of the experiment, if so, end the iteration, and output the optimal solution G best ; otherwise, go back to step (2) and continue to start a new round of iterative optimization.

在其中一个实施例中,通过对于群体中的个体对信息的分析,在此基础上实现信息的共享,最后可以在整个群体的运动的过程中,实现对于数据的分析和计算,最后可以得到最优解。粒子群算法的初始种群为一组随机解,粒子i在 N维空间的位置表示为Xi=(xi1,xi2,...,xiN),飞行速度表示为Vi=(vi1,vi2,...,viN)。每个粒子都有一个由目标函数决定的适应值,在迭代的过程中,粒子可以跟踪两个“极值”,实现对于自身的更新和优化,个体极值Pbest是每个粒子在历代搜索过程中自身所达到的最优值;全局极值Gbest是整个粒子群中所有粒子在历代搜索过程中达到的最优值。In one of the embodiments, by analyzing the information of individuals in the group, information sharing is realized on this basis, and finally the analysis and calculation of data can be realized during the movement of the whole group, and finally the most Excellent solution. The initial population of particle swarm optimization is a group of random solutions, the position of particle i in N-dimensional space is expressed as X i =(x i1 , xi2 ,...,x iN ), and the flight speed is expressed as V i =(v i1 ,v i2 ,...,v iN ). Each particle has an fitness value determined by the objective function. In the iterative process, the particle can track two "extreme values" to realize its own update and optimization. The optimal value reached by itself in the process; the global extremum G best is the optimal value reached by all particles in the entire particle swarm during the previous generation search process.

粒子利用以下公式更新速度信息与位置信息。Particles use the following formulas to update velocity information and position information.

其中,i=1,2,…,N,d=1,2,…,D,N和D分别表示粒子群规模和搜索空间的维数;表示第i个粒子在d维上的速度;vd,max为粒子在范围空间内的最大速度;表示第i个粒子在d维上的位置;表示第i个粒子的历史最优;表示第t次迭代群体的最优值;c1和c2称为学习因子或加速系数;r1和r2为由随机函数产生的[0,1]之间的随机数。Among them, i=1,2,...,N, d=1,2,...,D, N and D respectively represent the size of the particle swarm and the dimension of the search space; Indicates the velocity of the i-th particle on the d-dimension; v d,max is the maximum velocity of the particle in the range space; Indicates the position of the i-th particle in the d dimension; Indicates the historical best of the i-th particle; Indicates the optimal value of the t-th iteration group; c 1 and c 2 are called learning factors or acceleration coefficients; r 1 and r 2 are random numbers between [0,1] generated by random functions.

公式(3-1)主要通过三块部分更新粒子的速度:第一个部分是个体记忆项,用于描述上一次迭代速度大小和方向的影响,具有平衡粒子全局和部分搜寻能力的作用;第二个部分属于典型的个体认知项,是从当前点指向粒子自身最好点的一个矢量,表示一个矢量,方向主要是系统中的最优位置,该粒子的动作已经经过了自我的检验;第三个部分是群体认知项,也表示一个矢量,方向为粒子自身指向全局最优位置,意指粒子间的合作与信息共享。粒子根据自己的经验以及其他粒子最理想的经验来做出运动反应。Formula (3-1) mainly updates the velocity of particles through three parts: the first part It is an individual memory item, which is used to describe the influence of the size and direction of the last iteration speed, and has the function of balancing the global and partial search capabilities of the particle; the second part is a typical individual cognitive item, which is the best point from the current point to the particle itself. A vector of points, representing a vector, the direction is mainly the optimal position in the system, the action of the particle has been tested by itself; the third part is a group cognition item, which also represents a vector, and the direction is that the particle itself points to the global optimal position, which means the cooperation and information sharing among particles. Particles react to motion based on their own experience and the optimal experience of other particles.

引入惯性因子w,使其值为正。将式(3-1)更新为(3-4),Introduce the inertia factor w to make its value positive. Update formula (3-1) to (3-4),

其中w值越大,其全局搜寻能力越强,局部搜寻能力越弱;w值越小,其全局搜寻能力越弱,局部搜寻能力越强。Among them, the larger the w value is, the stronger the global search ability is, and the weaker the local search ability is; the smaller the w value is, the weaker the global search ability is, and the stronger the local search ability is.

在其中一个实施例中,利用选择权重递减法,即随着迭代次数的增加,惯性权重原来越小。In one of the embodiments, the selection weight decreasing method is used, that is, the inertia weight becomes smaller as the number of iterations increases.

w(t)=wmax-(wmax-wmin)/Nmax (3-5)w(t)=w max -(w max -w min )/N max (3-5)

其中Nmax为最大迭代数。Where N max is the maximum number of iterations.

一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现任一项所述方法的步骤。A computer device includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the steps of any one of the methods when executing the program.

一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现任一项所述方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods described above are realized.

一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行任一项所述的方法。A processor, the processor is used to run a program, wherein the program executes any one of the methods when running.

本发明的有益效果:Beneficial effects of the present invention:

使用粒子群算法大大提高了转动惯量的辨识精度。经仿真研究,常用的最小二乘法与模型参考自适应法误差在1%到5%,而粒子群算法辨识的误差在 0.1%以内。在考虑转动惯量时,使用更为精准的电机模型。为此,使用带有粘性摩擦和库仑摩擦的转子动力学模型。利用粒子群算法实现转动变量辨识,其优点是适用于带有库仑摩擦等具有非线性特征的模型,其次粒子群数量的大小可以用于调整辨识精度及速度,同时可以扩展至并行计算和分布式处理的方式 (例如在工业物联网的架构下,在云端处理大量粒子的迭代计算)。Using the particle swarm algorithm greatly improves the identification accuracy of the moment of inertia. According to the simulation research, the commonly used least squares method and model reference adaptive method have an error of 1% to 5%, while the error of particle swarm algorithm identification is within 0.1%. When considering the moment of inertia, a more accurate model of the motor is used. For this, a rotordynamic model with viscous and Coulomb friction is used. The use of particle swarm algorithm to realize rotation variable identification has the advantage of being suitable for models with nonlinear characteristics such as Coulomb friction, and secondly, the size of the number of particle swarms can be used to adjust the identification accuracy and speed, and can be extended to parallel computing and distributed The way of processing (for example, under the framework of the Industrial Internet of Things, the iterative calculation of a large number of particles is processed in the cloud).

附图说明Description of drawings

图1是本发明基于粒子群的永磁同步电机转动惯量辨识方法的流程图。FIG. 1 is a flow chart of the method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarms in the present invention.

图2是本发明基于粒子群的永磁同步电机转动惯量辨识方法中具体实施例的示意图。Fig. 2 is a schematic diagram of a specific embodiment of the method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarms in the present invention.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

粒子群(PSO)算法为解决优化问题的一种智能算法手段。通过对于群体中的个体对信息的分析,在此基础上实现信息的共享,最后可以在整个群体的运动的过程中,实现对于数据的分析和计算,最后可以得到最优解。粒子群算法的初始种群为一组随机解,粒子i在N维空间的位置表示为Xi=(xi1,xi2,...,xiN),飞行速度表示为Vi=(vi1,vi2,...,viN)。每个粒子都有一个由目标函数决定的适应值,在迭代的过程中,粒子可以跟踪两个“极值”,实现对于自身的更新和优化,个体极值Pbest是每个粒子在历代搜索过程中自身所达到的最优值;全局极值Gbest是整个粒子群中所有粒子在历代搜索过程中达到的最优值。Particle Swarm Optimization (PSO) algorithm is an intelligent algorithm method for solving optimization problems. Through the analysis of the information of the individuals in the group, information sharing is realized on this basis, and finally the analysis and calculation of the data can be realized during the movement of the whole group, and finally the optimal solution can be obtained. The initial population of particle swarm optimization is a group of random solutions, the position of particle i in N-dimensional space is expressed as X i =(x i1 , xi2 ,...,x iN ), and the flight speed is expressed as V i =(v i1 ,v i2 ,...,v iN ). Each particle has an fitness value determined by the objective function. In the iterative process, the particle can track two "extreme values" to realize its own update and optimization. The optimal value reached by itself in the process; the global extremum G best is the optimal value reached by all particles in the entire particle swarm during the previous generation search process.

粒子利用以下公式更新速度信息与位置信息。Particles use the following formulas to update velocity information and position information.

其中,i=1,2,…,N,d=1,2,…,D,N和D分别表示粒子群规模和搜索空间的维数;表示第i个粒子在d维上的速度;vd,max为粒子在范围空间内的最大速度;表示第i个粒子在d维上的位置;表示第i个粒子的历史最优;表示第t次迭代群体的最优值;c1和c2称为学习因子或加速系数;r1和r2为由随机函数产生的[0,1]之间的随机数。Among them, i=1,2,...,N, d=1,2,...,D, N and D respectively represent the size of the particle swarm and the dimension of the search space; Indicates the velocity of the i-th particle on the d-dimension; v d,max is the maximum velocity of the particle in the range space; Indicates the position of the i-th particle in the d dimension; Indicates the historical best of the i-th particle; Indicates the optimal value of the t-th iteration group; c 1 and c 2 are called learning factors or acceleration coefficients; r 1 and r 2 are random numbers between [0,1] generated by random functions.

公式(3-1)主要通过三块部分更新粒子的速度:第一个部分是个体记忆项,用于描述上一次迭代速度大小和方向的影响,具有平衡粒子全局和部分搜寻能力的作用;第二个部分属于典型的个体认知项,是从当前点指向粒子自身最好点的一个矢量,表示一个矢量,方向主要是系统中的最优位置,该粒子的动作已经经过了自我的检验;第三个部分是群体认知项,也表示一个矢量,方向为粒子自身指向全局最优位置,意指粒子间的合作与信息共享。粒子根据自己的经验以及其他粒子最理想的经验来做出运动反应。Formula (3-1) mainly updates the velocity of particles through three parts: the first part It is an individual memory item, which is used to describe the influence of the size and direction of the last iteration speed, and has the function of balancing the global and partial search capabilities of the particle; the second part is a typical individual cognitive item, which is the best point from the current point to the particle itself. A vector of points, representing a vector, the direction is mainly the optimal position in the system, the action of the particle has been tested by itself; the third part is a group cognition item, which also represents a vector, and the direction is that the particle itself points to the global optimal position, which means the cooperation and information sharing among particles. Particles react to motion based on their own experience and the optimal experience of other particles.

引入惯性因子w,使其值为正。将式(3-1)更新为(3-4),Introduce the inertia factor w to make its value positive. Update formula (3-1) to (3-4),

其中w值越大,其全局搜寻能力越强,局部搜寻能力越弱;w值越小,其全局搜寻能力越弱,局部搜寻能力越强。粒子群算法性能优良与否,非常依赖于惯性权重的选择。为了避免收敛时间长以及陷入局部最优,很多学者对于惯性权值的选择进行了学习。比较流行的做法是选择权重递减法,即随着迭代次数的增加,惯性权重原来越小。Among them, the larger the w value is, the stronger the global search ability is, and the weaker the local search ability is; the smaller the w value is, the weaker the global search ability is, and the stronger the local search ability is. Whether the performance of particle swarm optimization algorithm is good or not depends very much on the selection of inertia weight. In order to avoid long convergence time and falling into local optimum, many scholars have studied the selection of inertia weights. The more popular method is to choose the weight decreasing method, that is, as the number of iterations increases, the inertia weight becomes smaller.

w(t)=wmax-(wmax-wmin)/Nmax (3-5)w(t)=w max -(w max -w min )/N max (3-5)

其中Nmax为最大迭代数。Where N max is the maximum number of iterations.

在PMSM转动惯量辨识的问题中,涉及的转子动力学方程为:In the problem of PMSM moment of inertia identification, the rotordynamic equations involved are:

其中Te为电磁转矩、Tl为负载转矩、J为转动惯量、ω为角速度、B为粘性摩擦系数、C为库仑摩擦系数。根据(3-6)式可以进行电磁转矩的估计,表示为 Where T e is the electromagnetic torque, T l is the load torque, J is the moment of inertia, ω is the angular velocity, B is the viscous friction coefficient, and C is the Coulomb friction coefficient. According to the formula (3-6), the electromagnetic torque can be estimated, expressed as

PSO算法辨识转动惯量J的关键在于建立评价函数(适应度函数),并将之优化。为了评价粒子的优劣性,第i个粒子的评价函数选取如下的二次型形式The key to identifying moment of inertia J by PSO algorithm is to establish evaluation function (fitness function) and optimize it. In order to evaluate the pros and cons of particles, the evaluation function of the i-th particle is selected as the following quadratic form

当上述评价函数所对应的值越小,预测的电磁转矩与真实的电测转矩越接近,也意味着辨识出来的转动惯量越接近真值。When the value corresponding to the above evaluation function is smaller, the predicted electromagnetic torque is closer to the real electrical torque, which also means that the identified moment of inertia is closer to the true value.

粒子群算法的基本步骤如下,对应的流程图如图1所示:The basic steps of the particle swarm algorithm are as follows, and the corresponding flow chart is shown in Figure 1:

(1)设定粒子种群的规模,在一定范围内随机初始化一群粒子,包括粒子的位置和速度;(1) Set the size of the particle population, and randomly initialize a group of particles within a certain range, including the position and velocity of the particles;

(2)按照选取的目标函数评价所有粒子的适应度;(2) Evaluate the fitness of all particles according to the selected objective function;

(3)个体最优值Pbest的更新。针对种群中的所有粒子,将其适应度值与其历代搜索过程中自身所达到的最优值进行对比,若优于最优值Pbest,则将当前适应度值作为个体最优值Pbest(3) Updating of the individual optimal value P best . For all particles in the population, compare its fitness value with its own optimal value achieved in the previous generation search process, if it is better than the optimal value P best , then take the current fitness value as the individual optimal value P best ;

(4)全局最优值Gbest的更新。针对种群中的所有粒子,将其适应度值与整个粒子群中所有粒子在历代搜索过程中达到的最优值进行对比,若优于最优值 Gbest,则将当前适应度值作为全局最优值Gbest(4) The update of the global optimal value G best . For all particles in the population, compare its fitness value with the optimal value of all particles in the entire particle swarm in the search process of previous generations. If it is better than the optimal value G best , take the current fitness value as the global optimal value. Good value G best ;

(5)根据公式,可以得出具体的速度和位置;(5) According to the formula, the specific speed and position can be obtained;

(6)判断迭代次数是否符合实验的标准,若是则结束迭代,输出最优解Gbest;否则,转回步骤(2)继续开始新一轮的迭代优化。(6) Determine whether the number of iterations meets the standard of the experiment, if so, end the iteration, and output the optimal solution G best ; otherwise, go back to step (2) and continue to start a new round of iterative optimization.

参阅图2,设定一个4500RPM,转动惯量为0.0003617kg.m^2,额定电压 300VDC的永磁同步电机。使用PSO算法进行辨识,第30次迭代时收敛,辨识结果为0.00036163kg.m^2,误差率为0.019%。Referring to Figure 2, set a 4500RPM permanent magnet synchronous motor with a moment of inertia of 0.0003617kg.m^2 and a rated voltage of 300VDC. Using the PSO algorithm for identification, it converges at the 30th iteration, the identification result is 0.00036163kg.m^2, and the error rate is 0.019%.

以上所述实施例仅是为充分说明本发明而所举的较佳的实施例,本发明的保护范围不限于此。本技术领域的技术人员在本发明基础上所作的等同替代或变换,均在本发明的保护范围之内。本发明的保护范围以权利要求书为准。The above-mentioned embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention shall be determined by the claims.

Claims (7)

1.一种基于粒子群的永磁同步电机转动惯量辨识方法,其特征在于,包括:在PMSM转动惯量辨识的问题中,涉及的转子动力学方程为:1. A permanent magnet synchronous motor moment of inertia identification method based on particle swarm, it is characterized in that, comprises: in the problem of PMSM moment of inertia identification, the rotor dynamics equation involved is: 其中Te为电磁转矩、Tl为负载转矩、J为转动惯量、ω为角速度、B为粘性摩擦系数、C为库仑摩擦系数。根据(3-6)式可以进行电磁转矩的估计,表示为 Where T e is the electromagnetic torque, T l is the load torque, J is the moment of inertia, ω is the angular velocity, B is the viscous friction coefficient, and C is the Coulomb friction coefficient. According to the formula (3-6), the electromagnetic torque can be estimated, expressed as 粒子群算法辨识转动惯量J的关键在于建立评价函数,并将之优化。为了评价粒子的优劣性,第i个粒子的评价函数选取如下的二次型形式The key to identifying moment of inertia J by particle swarm algorithm is to establish evaluation function and optimize it. In order to evaluate the pros and cons of particles, the evaluation function of the i-th particle is selected as the following quadratic form 2.如权利要求1所述的基于粒子群的永磁同步电机转动惯量辨识方法,其特征在于,粒子群算法的基本步骤如下,对应的流程图如图3-1所示:2. The method for identifying the moment of inertia of a permanent magnet synchronous motor based on particle swarm as claimed in claim 1, wherein the basic steps of the particle swarm algorithm are as follows, and the corresponding flow chart is shown in Figure 3-1: (1)设定粒子种群的规模,在一定范围内随机初始化一群粒子,包括粒子的位置和速度;(1) Set the size of the particle population, and randomly initialize a group of particles within a certain range, including the position and velocity of the particles; (2)按照选取的目标函数评价所有粒子的适应度;(2) Evaluate the fitness of all particles according to the selected objective function; (3)个体最优值Pbest的更新。针对种群中的所有粒子,将其适应度值与其历代搜索过程中自身所达到的最优值进行对比,若优于最优值Pbest,则将当前适应度值作为个体最优值Pbest(3) Updating of the individual optimal value P best . For all particles in the population, compare its fitness value with its own optimal value achieved in the previous generation search process, if it is better than the optimal value P best , then take the current fitness value as the individual optimal value P best ; (4)全局最优值Gbest的更新。针对种群中的所有粒子,将其适应度值与整个粒子群中所有粒子在历代搜索过程中达到的最优值进行对比,若优于最优值Gbest,则将当前适应度值作为全局最优值Gbest(4) The update of the global optimal value G best . For all particles in the population, compare its fitness value with the optimal value of all particles in the entire particle swarm in the search process of previous generations. If it is better than the optimal value G best , take the current fitness value as the global optimal value. Good value G best ; (5)根据公式,可以得出具体的速度和位置;(5) According to the formula, the specific speed and position can be obtained; (6)判断迭代次数是否符合实验的标准,若是则结束迭代,输出最优解Gbest;否则,转回步骤(2)继续开始新一轮的迭代优化。(6) Determine whether the number of iterations meets the standard of the experiment, if so, end the iteration, and output the optimal solution G best ; otherwise, go back to step (2) and continue to start a new round of iterative optimization. 3.如权利要求1所述的基于粒子群的永磁同步电机转动惯量辨识方法,其特征在于,通过对于群体中的个体对信息的分析,在此基础上实现信息的共享,最后可以在整个群体的运动的过程中,实现对于数据的分析和计算,最后可以得到最优解。粒子群算法的初始种群为一组随机解,粒子i在N维空间的位置表示为Xi=(xi1,xi2,...,xiN),飞行速度表示为Vi=(vi1,vi2,...,viN)。每个粒子都有一个由目标函数决定的适应值,在迭代的过程中,粒子可以跟踪两个“极值”,实现对于自身的更新和优化,个体极值Pbest是每个粒子在历代搜索过程中自身所达到的最优值;全局极值Gbest是整个粒子群中所有粒子在历代搜索过程中达到的最优值。3. The method for identifying the moment of inertia of permanent magnet synchronous motor based on particle swarm as claimed in claim 1, characterized in that, by analyzing the information of the individuals in the group, the sharing of information is realized on this basis, and finally the entire In the process of group movement, the analysis and calculation of data can be realized, and finally the optimal solution can be obtained. The initial population of particle swarm optimization is a group of random solutions, the position of particle i in N-dimensional space is expressed as X i =(x i1 , xi2 ,...,x iN ), and the flight speed is expressed as V i =(v i1 ,v i2 ,...,v iN ). Each particle has an fitness value determined by the objective function. In the iterative process, the particle can track two "extreme values" to realize its own update and optimization. The optimal value reached by itself in the process; the global extremum G best is the optimal value reached by all particles in the entire particle swarm during the previous generation search process. 粒子利用以下公式更新速度信息与位置信息。Particles use the following formulas to update velocity information and position information. 其中,i=1,2,…,N,d=1,2,…,D,N和D分别表示粒子群规模和搜索空间的维数;表示第i个粒子在d维上的速度;vd,max为粒子在范围空间内的最大速度;表示第i个粒子在d维上的位置;表示第i个粒子的历史最优;表示第t次迭代群体的最优值;c1和c2称为学习因子或加速系数;r1和r2为由随机函数产生的[0,1]之间的随机数。Among them, i=1,2,...,N, d=1,2,...,D, N and D respectively represent the size of the particle swarm and the dimension of the search space; Indicates the velocity of the i-th particle on the d-dimension; v d,max is the maximum velocity of the particle in the range space; Indicates the position of the i-th particle in the d dimension; Indicates the historical best of the i-th particle; Indicates the optimal value of the t-th iteration group; c 1 and c 2 are called learning factors or acceleration coefficients; r 1 and r 2 are random numbers between [0,1] generated by random functions. 公式(3-1)主要通过三块部分更新粒子的速度:第一个部分是个体记忆项,用于描述上一次迭代速度大小和方向的影响,具有平衡粒子全局和部分搜寻能力的作用;第二个部分属于典型的个体认知项,是从当前点指向粒子自身最好点的一个矢量,表示一个矢量,方向主要是系统中的最优位置,该粒子的动作已经经过了自我的检验;第三个部分是群体认知项,也表示一个矢量,方向为粒子自身指向全局最优位置,意指粒子间的合作与信息共享。粒子根据自己的经验以及其他粒子最理想的经验来做出运动反应。Formula (3-1) mainly updates the velocity of particles through three parts: the first part It is an individual memory item, which is used to describe the influence of the size and direction of the last iteration speed, and has the function of balancing the global and partial search capabilities of the particle; the second part is a typical individual cognitive item, which is the best point from the current point to the particle itself. A vector of points, representing a vector, the direction is mainly the optimal position in the system, the action of the particle has been tested by itself; the third part is a group cognition item, which also represents a vector, and the direction is that the particle itself points to the global optimal position, which means the cooperation and information sharing among particles. Particles react to motion based on their own experience and the optimal experience of other particles. 引入惯性因子w,使其值为正。将式(3-1)更新为(3-4),Introduce the inertia factor w to make its value positive. Update formula (3-1) to (3-4), 其中w值越大,其全局搜寻能力越强,局部搜寻能力越弱;w值越小,其全局搜寻能力越弱,局部搜寻能力越强。Among them, the larger the w value is, the stronger the global search ability is, and the weaker the local search ability is; the smaller the w value is, the weaker the global search ability is, and the stronger the local search ability is. 4.如权利要求1所述的基于粒子群的永磁同步电机转动惯量辨识方法,其特征在于,利用选择权重递减法,即随着迭代次数的增加,惯性权重原来越小。4. The method for identifying the moment of inertia of permanent magnet synchronous motor based on particle swarm as claimed in claim 1, characterized in that, the selection weight decrement method is used, that is, as the number of iterations increases, the inertia weight is originally smaller. ω(t)=ωmax-(ωmaxmin)/Nmax (3-5)ω(t)=ω max -(ω maxmin )/N max (3-5) 其中Nmax为最大迭代数。Where N max is the maximum number of iterations. 5.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1到4任一项所述方法的步骤。5. A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the program, any one of claims 1 to 4 is realized The steps of the method. 6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1到4任一项所述方法的步骤。6. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are realized. 7.一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1到4任一项所述的方法。7. A processor, wherein the processor is used to run a program, wherein the method according to any one of claims 1 to 4 is executed when the program runs.
CN201910641606.6A 2019-07-16 2019-07-16 Particle swarm-based identification method for the moment of inertia of permanent magnet synchronous motor Active CN110323989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910641606.6A CN110323989B (en) 2019-07-16 2019-07-16 Particle swarm-based identification method for the moment of inertia of permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910641606.6A CN110323989B (en) 2019-07-16 2019-07-16 Particle swarm-based identification method for the moment of inertia of permanent magnet synchronous motor

Publications (2)

Publication Number Publication Date
CN110323989A true CN110323989A (en) 2019-10-11
CN110323989B CN110323989B (en) 2020-11-10

Family

ID=68123667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910641606.6A Active CN110323989B (en) 2019-07-16 2019-07-16 Particle swarm-based identification method for the moment of inertia of permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN110323989B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507480A (en) * 2020-11-25 2021-03-16 浙江同善人工智能技术有限公司 Inertial parameter identification method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5304905A (en) * 1991-04-25 1994-04-19 Mitsubishi Denki Kabushiki Kaisha Motor servo-system controller having comparison of detected current with model current integrations
CN102355193A (en) * 2011-09-30 2012-02-15 哈尔滨工业大学 On-line rotational inertia identification device for alternate current permanent magnet servo system and identification method
CN105471353A (en) * 2015-11-24 2016-04-06 珠海格力电器股份有限公司 Method and device for identifying rotational inertia of servo motor
CN105871282A (en) * 2016-05-12 2016-08-17 东华大学 Controller PI parameter tuning method based on rotational inertia of motor
CN107124132A (en) * 2017-05-22 2017-09-01 珠海格力节能环保制冷技术研究中心有限公司 A kind of method for identification of rotational inertia and identifier

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5304905A (en) * 1991-04-25 1994-04-19 Mitsubishi Denki Kabushiki Kaisha Motor servo-system controller having comparison of detected current with model current integrations
CN102355193A (en) * 2011-09-30 2012-02-15 哈尔滨工业大学 On-line rotational inertia identification device for alternate current permanent magnet servo system and identification method
CN105471353A (en) * 2015-11-24 2016-04-06 珠海格力电器股份有限公司 Method and device for identifying rotational inertia of servo motor
CN105871282A (en) * 2016-05-12 2016-08-17 东华大学 Controller PI parameter tuning method based on rotational inertia of motor
CN107124132A (en) * 2017-05-22 2017-09-01 珠海格力节能环保制冷技术研究中心有限公司 A kind of method for identification of rotational inertia and identifier

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507480A (en) * 2020-11-25 2021-03-16 浙江同善人工智能技术有限公司 Inertial parameter identification method
CN112507480B (en) * 2020-11-25 2024-06-07 浙江同善人工智能技术有限公司 Inertial parameter identification method

Also Published As

Publication number Publication date
CN110323989B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
Liu et al. GPU-accelerated parallel coevolutionary algorithm for parameters identification and temperature monitoring in permanent magnet synchronous machines
CN102445902B (en) For the system and method for the condition multi-output regression that machine condition monitors
CN106385211B (en) A kind of stepper motor load-toque estimate method
WO2017035964A1 (en) Method and system for determining load characteristics of electric power system
CN110729939B (en) A method for parameter setting of permanent magnet synchronous motor speed loop active disturbance rejection controller
CN111222286A (en) A Parameter Optimization Method Based on Transmission Line State Estimation
Mohammed et al. Design optimal PID controller for quad rotor system
CN112564557A (en) Control method, device and equipment of permanent magnet synchronous motor and storage medium
CN112149246A (en) Multi-objective optimization design method and system for permanent magnet motor
CN116938066A (en) A method for parameter identification of permanent magnet synchronous motor based on dung beetle optimization algorithm
CN113162491B (en) An optimization method of brushless DC motor based on improved beetle algorithm
CN107633105B (en) Improved hybrid frog-leaping algorithm-based quad-rotor unmanned aerial vehicle parameter identification method
CN119448853B (en) Hybrid excitation synchronous motor control strategy optimization method and device
CN116418260A (en) Torque estimation method, device, equipment and storage medium of permanent magnet synchronous motor
CN108573300B (en) Particle swarm algorithm feedback adaptive rate parameter optimization method and full-order state observer
CN117521491A (en) A multi-parameter identification method for permanent magnet motors based on the holographic improved Sparrow algorithm
CN110323989B (en) Particle swarm-based identification method for the moment of inertia of permanent magnet synchronous motor
CN105278332A (en) SOA-based PMLSM feed system PID parameter optimization method
CN114157199B (en) Multi-parameter identification method for permanent magnet synchronous motor
CN114266348A (en) A training method and related device of a neural network for battery power detection
CN111775140A (en) An optimization method for dynamic parameter identification of excitation trajectory of multi-joint manipulator
CN114553092A (en) Permanent magnet synchronous motor parameter identification method based on improved elephant group nomadic algorithm
Lukichev et al. Comparison of Adaptive Fuzzy PID and ANFIS Controllers for Precision Positioning of Complex Object with Nonlinear Disturbance-Study and Experiment
WO2023124893A1 (en) Torque estimation method and apparatus based on neural network, and device and storage medium
CN114679098A (en) Feedforward compensation method, device, computer equipment and medium for permanent magnet synchronous motor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant