CN117277888A - Method and device for predicting voltage vector of stator of permanent magnet synchronous motor - Google Patents
Method and device for predicting voltage vector of stator of permanent magnet synchronous motor Download PDFInfo
- Publication number
- CN117277888A CN117277888A CN202311570761.6A CN202311570761A CN117277888A CN 117277888 A CN117277888 A CN 117277888A CN 202311570761 A CN202311570761 A CN 202311570761A CN 117277888 A CN117277888 A CN 117277888A
- Authority
- CN
- China
- Prior art keywords
- stator
- vector
- axis
- voltage
- current
- 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
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/0003—Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
- H02P21/0014—Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control using neural networks
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/14—Estimation or adaptation of machine parameters, e.g. flux, current or voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/22—Current control, e.g. using a current control loop
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P25/00—Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
- H02P25/02—Arrangements 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/022—Synchronous motors
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P2207/00—Indexing scheme relating to controlling arrangements characterised by the type of motor
- H02P2207/05—Synchronous machines, e.g. with permanent magnets or DC excitation
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
本申请提供了一种永磁同步电机的定子的电压矢量的预测方法和装置,该方法通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式,求取向量表达式的最小值,且将最小值对应的定子的d轴的电压和定子的q轴的电压确定为最优预测电压向量,来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。
This application provides a method and device for predicting the voltage vector of the stator of a permanent magnet synchronous motor. This method integrates the prior estimation method and the neural network topology prediction method to obtain the optimized predicted current vector, and then constructs a vector expression. Find the minimum value of the vector expression, and determine the voltage of the d-axis of the stator and the voltage of the q-axis of the stator corresponding to the minimum value as the optimal predicted voltage vector to obtain the optimal predicted voltage vector, because it is combined with a priori estimation method and neural network topology prediction method, thereby improving the accuracy of prediction, thereby solving the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
Description
技术领域Technical field
本申请涉及永磁同步电机技术领域,具体而言,涉及一种永磁同步电机的定子的电压矢量的预测方法、装置、永磁同步电机的控制方法、计算机可读存储介质和电子设备。The present application relates to the technical field of permanent magnet synchronous motors. Specifically, it relates to a method and device for predicting the voltage vector of the stator of a permanent magnet synchronous motor, a control method of a permanent magnet synchronous motor, a computer-readable storage medium and an electronic device.
背景技术Background technique
现有方案经常采用对应的模型来预测未来一段时间内永磁同步电机的定子的d轴和q轴的电压的变化,但是传统的永磁同步电机模型预测控制使用的模型为机理模型,机理模型往往不能真实的反应现实世界中电机随环境的变化,无法模拟外界环境的不确定性和未知性。Existing solutions often use corresponding models to predict the changes in the d-axis and q-axis voltages of the stator of the permanent magnet synchronous motor in the future. However, the model used in the traditional permanent magnet synchronous motor model predictive control is a mechanism model. It often cannot truly reflect the changes of the motor in the real world with the environment, and cannot simulate the uncertainty and unknownness of the external environment.
因此亟需一种永磁同步电机的定子的电压矢量的预测方法,来解决现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。Therefore, there is an urgent need for a prediction method of the voltage vector of the stator of a permanent magnet synchronous motor to solve the problem of low accuracy of the motor model in the existing solution of permanent magnet synchronous motor model predictive control.
发明内容Contents of the invention
本申请的主要目的在于提供一种永磁同步电机的定子的电压矢量的预测方法、装置、永磁同步电机的控制方法、计算机可读存储介质和电子设备,以至少解决现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。The main purpose of this application is to provide a method and device for predicting the voltage vector of the stator of a permanent magnet synchronous motor, a control method of a permanent magnet synchronous motor, a computer-readable storage medium and an electronic device, so as to at least solve the existing permanent magnet synchronous solution. The problem of low accuracy of motor model in motor model predictive control.
为了实现上述目的,根据本申请的一个方面,提供了一种永磁同步电机的定子的电压矢量的预测方法,该方法包括:In order to achieve the above objectives, according to one aspect of the present application, a method for predicting the voltage vector of the stator of a permanent magnet synchronous motor is provided, which method includes:
获取第一定子电压、第二定子电压和当前转子角速度,所述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,所述第二定子电压为所述永磁同步电机的所述定子的q轴在当前时刻的电压,所述当前转子角速度为所述永磁同步电机的转子在当前时刻的角速度;采用先验估计方法,根据所述第一定子电压、所述第二定子电压和所述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对所述第一定子电压、所述第二定子电压和所述当前转子角速度进行处理,得到第二预测电流向量,其中,所述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,所述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,所述神经网络拓扑模型是使用多组训练数据训练得到的,所述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与所述输入数据对应的输出数据,所述输入数据包括所述定子的d轴的电压、所述定子的q轴的电压和所述转子的角速度,所述输出数据包括所述定子的q轴的预测电流和所述定子的d轴的预测电流;对所述第一预测电流向量和所述第二预测电流向量进行加权处理,得到优化预测电流向量,所述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;采用所述优化预测电流向量和定子电压向量构建向量表达式,求取所述向量表达式的最小值,且将所述最小值对应的所述定子的d轴的电压和所述定子的q轴的电压确定为最优预测电压向量,所述定子电压向量是包括所述第一定子电压和所述第二定子电压的向量。Obtain the first stator voltage, the second stator voltage and the current rotor angular speed. The first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The second stator voltage is the permanent magnet The voltage of the q-axis of the stator of the synchronous motor at the current moment, and the current rotor angular velocity is the angular velocity of the rotor of the permanent magnet synchronous motor at the current moment; using a priori estimation method, according to the first stator voltage, The second stator voltage and the current rotor angular velocity are used to obtain a first predicted current vector, and a neural network topology model is used to process the first stator voltage, the second stator voltage and the current rotor angular velocity. , obtain the second predicted current vector, wherein the first predicted current vector is a vector including the first q-axis predicted current and the first d-axis predicted current, and the second predicted current vector is a vector including the second q-axis predicted current and the vector of the second d-axis predicted current. The neural network topology model is trained using multiple sets of training data. Each set of training data in the multiple sets of training data includes input data obtained within a historical time period. and output data corresponding to the input data. The input data includes the voltage of the d-axis of the stator, the voltage of the q-axis of the stator, and the angular velocity of the rotor. The output data includes the q-axis of the stator. The predicted current of the d-axis of the stator and the predicted current of the d-axis of the stator; the first predicted current vector and the second predicted current vector are weighted to obtain an optimized predicted current vector, and the optimized predicted current vector includes optimization The vector of the q-axis predicted current and the optimized d-axis predicted current; use the optimized predicted current vector and the stator voltage vector to construct a vector expression, obtain the minimum value of the vector expression, and convert the The voltage of the d-axis of the stator and the voltage of the q-axis of the stator are determined as the optimal predicted voltage vector, and the stator voltage vector is a vector including the first stator voltage and the second stator voltage.
可选地,采用先验估计方法,根据所述第一定子电压、所述第二定子电压和所述当前转子角速度,得到第一预测电流向量,包括:采用所述第一定子电压、所述第二定子电压和所述当前转子角速度,构建第一预测电流向量表达式,所述第一预测电流向量表达式包括所述定子的q轴的电感值和所述定子的d轴的电感值的比例关系、所述定子的电阻值和所述定子的q轴的电感值的比例关系、所述定子的电阻值和所述定子的d轴的电感值的比例关系、采样周期和所述定子的q轴的电感值的比例关系、所述采样周期和所述定子的d轴的电感值的比例关系,根据所述第一预测电流向量表达式,确定所述第一预测电流向量。Optionally, a priori estimation method is used to obtain the first predicted current vector according to the first stator voltage, the second stator voltage and the current rotor angular velocity, including: using the first stator voltage, The second stator voltage and the current rotor angular velocity construct a first predicted current vector expression, which includes the inductance value of the q-axis of the stator and the inductance of the d-axis of the stator. The proportional relationship between the value, the proportional relationship between the resistance value of the stator and the inductance value of the q-axis of the stator, the proportional relationship between the resistance value of the stator and the inductance value of the d-axis of the stator, the sampling period and the The first predicted current vector is determined based on the proportional relationship between the inductance value of the q-axis of the stator, the sampling period and the inductance value of the d-axis of the stator, based on the first predicted current vector expression.
可选地,所述神经网络拓扑模型中的神经网络包括多个输入层、多个隐藏层和多个输出层,各所述输入层、各所述隐藏层和各所述输出层之间以全连接的方式连接。Optionally, the neural network in the neural network topology model includes multiple input layers, multiple hidden layers and multiple output layers, with each input layer, each hidden layer and each output layer separated by Fully connected.
可选地,在采用神经网络拓扑模型,对所述第一定子电压、所述第二定子电压和所述当前转子角速度进行处理,得到第二预测电流向量的过程中,所述方法还包括:Optionally, in the process of using a neural network topology model to process the first stator voltage, the second stator voltage and the current rotor angular velocity to obtain the second predicted current vector, the method further includes :
构建d轴预测性能表达式和q轴预测性能表达式,所述d轴预测性能表达式包括采用所述神经网络拓扑模型得到的第t次预测的d轴的电流与采用所述神经网络拓扑模型得到的第t+1次预测的d轴的电流的差值,所述q轴预测性能表达式包括采用所述神经网络拓扑模型得到的第t次预测的q轴的电流与采用所述神经网络拓扑模型得到的第t+1次预测的q轴的电流的差值;Construct a d-axis prediction performance expression and a q-axis prediction performance expression. The d-axis prediction performance expression includes the t-th predicted d-axis current obtained by using the neural network topology model and the d-axis current using the neural network topology model. The difference between the d-axis current predicted at the t+1th time obtained, and the q-axis prediction performance expression includes the q-axis current predicted at the t-th time obtained using the neural network topology model and the q-axis current predicted using the neural network The difference in the q-axis current predicted at the t+1th time obtained by the topological model;
确定预测性能向量,所述预测性能向量是包括d轴预测性能和q轴预测性能的向量。A prediction performance vector is determined, which is a vector including d-axis prediction performance and q-axis prediction performance.
可选地,在确定预测性能向量之后,所述方法还包括:Optionally, after determining the predicted performance vector, the method further includes:
根据,according to ,
确定采用所述神经网络拓扑模型进行第t+1次预测时的所述输入层和所述隐藏层的神经元之间的连接权值以及所述隐藏层和所述输出层的神经元之间的连接权值;Determine the connection weights between the neurons of the input layer and the hidden layer and the connections between the neurons of the hidden layer and the output layer when the neural network topology model is used for the t+1th prediction. The connection weight;
其中,为采用所述神经网络拓扑模型进行第t+1次预测时的所述输入层和所述隐藏层的神经元之间的连接权值,/>为采用所述神经网络拓扑模型进行第t+1次预测时的所述隐藏层和所述输出层的神经元之间的连接权值,/>为采用所述神经网络拓扑模型进行第t次预测时的所述输入层和所述隐藏层的神经元之间的连接权值,/>为采用所述神经网络拓扑模型进行第t次预测时的所述隐藏层和所述输出层的神经元之间的连接权值,/>为预设系数,loss为所述预测性能向量,i用于表征所述输入层的第i个神经元,j用于表征所述隐藏层的第j个神经元,k用于表征所述输出层的第k个神经元。in, is the connection weight between the neurons of the input layer and the hidden layer when the neural network topology model is used for the t+1th prediction,/> is the connection weight between the neurons of the hidden layer and the output layer when the neural network topology model is used for the t+1th prediction,/> is the connection weight between the neurons of the input layer and the hidden layer when the neural network topology model is used for the tth prediction,/> is the connection weight between the neurons of the hidden layer and the output layer when the neural network topology model is used for the tth prediction,/> is the preset coefficient, loss is the prediction performance vector, i is used to characterize the i-th neuron of the input layer, j is used to characterize the j-th neuron of the hidden layer, and k is used to characterize the output The kth neuron of the layer.
可选地,采用所述优化预测电流向量和定子电压向量构建向量表达式,求取所述向量表达式的最小值,且将所述最小值对应的所述定子的d轴的电压和所述定子的q轴的电压确定为最优预测电压向量,包括:Optionally, the optimized predicted current vector and the stator voltage vector are used to construct a vector expression, the minimum value of the vector expression is obtained, and the voltage of the d-axis of the stator corresponding to the minimum value and the The voltage of the q-axis of the stator is determined as the optimal predicted voltage vector, including:
采用所述优化预测电流向量和定子电压向量构建向量表达式,求取所述向量表达式的最小值,且将所述最小值对应的所述定子的d轴的电压和所述定子的q轴的电压确定为最优预测电压向量,包括:Use the optimized predicted current vector and the stator voltage vector to construct a vector expression, find the minimum value of the vector expression, and combine the voltage of the d-axis of the stator and the q-axis of the stator corresponding to the minimum value. The voltage of is determined as the optimal predicted voltage vector, including:
根据,according to ,
确定所述最优预测电压向量,其中,为所述最优预测电压向量,/>为预测得到的未来第N步的所述优化预测电流向量,/>为/>的转置矩阵,/>为预测未来第a步的所述优化预测电流向量与对应的电流向量的实际值的差值,/>为/>的转置矩阵,/>为所述定子电压向量,/>为/>的转置矩阵,P、R、Q分别为预设权重矩阵,所述电流向量的实际值为所述永磁同步电机实时反馈的所述定子的d轴的电流和所述定子的q轴的电流。Determine the optimal predicted voltage vector, where, is the optimal predicted voltage vector,/> The optimized prediction current vector for the predicted future Nth step,/> for/> The transposed matrix,/> To predict the difference between the optimized predicted current vector and the actual value of the corresponding current vector in step a of the future,/> for/> The transposed matrix,/> is the stator voltage vector,/> for/> The transpose matrix of current.
根据本申请的另一方面,提供了一种永磁同步电机的定子的电压矢量的预测装置,该装置包括:According to another aspect of the present application, a device for predicting the voltage vector of the stator of a permanent magnet synchronous motor is provided, which device includes:
获取单元,用于获取第一定子电压、第二定子电压和当前转子角速度,所述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,所述第二定子电压为所述永磁同步电机的所述定子的q轴在当前时刻的电压,所述当前转子角速度为所述永磁同步电机的转子在当前时刻的角速度;An acquisition unit is used to acquire the first stator voltage, the second stator voltage and the current rotor angular velocity. The first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The second stator voltage is the voltage of the q-axis of the stator of the permanent magnet synchronous motor at the current moment, and the current rotor angular velocity is the angular velocity of the rotor of the permanent magnet synchronous motor at the current moment;
第一处理单元,用于采用先验估计方法,根据所述第一定子电压、所述第二定子电压和所述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对所述第一定子电压、所述第二定子电压和所述当前转子角速度进行处理,得到第二预测电流向量,其中,所述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,所述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,所述神经网络拓扑模型是使用多组训练数据训练得到的,所述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与所述输入数据对应的输出数据,所述输入数据包括所述定子的d轴的电压、所述定子的q轴的电压和所述转子的角速度,所述输出数据包括所述定子的q轴的预测电流和所述定子的d轴的预测电流;The first processing unit is configured to use a priori estimation method to obtain the first predicted current vector based on the first stator voltage, the second stator voltage and the current rotor angular velocity, and use a neural network topology model to calculate The first stator voltage, the second stator voltage and the current rotor angular velocity are processed to obtain a second predicted current vector, wherein the first predicted current vector includes a first q-axis predicted current and a first The vector of the d-axis predicted current, the second predicted current vector is a vector including the second q-axis predicted current and the second d-axis predicted current, the neural network topology model is trained using multiple sets of training data, the Each set of training data in the multiple sets of training data includes input data obtained within a historical time period and output data corresponding to the input data. The input data includes the voltage of the d-axis of the stator, the stator The voltage of the q-axis and the angular velocity of the rotor, the output data include the predicted current of the q-axis of the stator and the predicted current of the d-axis of the stator;
第二处理单元,用于对所述第一预测电流向量和所述第二预测电流向量进行加权处理,得到优化预测电流向量,所述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;A second processing unit configured to weight the first predicted current vector and the second predicted current vector to obtain an optimized predicted current vector. The optimized predicted current vector includes optimized q-axis predicted current and optimized d-axis predict the vector of current;
第三处理单元,用于采用所述优化预测电流向量和定子电压向量构建向量表达式,求取所述向量表达式的最小值,且将所述最小值对应的所述定子的d轴的电压和所述定子的q轴的电压确定为最优预测电压向量,所述定子电压向量是包括所述第一定子电压和所述第二定子电压的向量。A third processing unit configured to construct a vector expression using the optimized predicted current vector and the stator voltage vector, obtain the minimum value of the vector expression, and obtain the voltage of the d-axis of the stator corresponding to the minimum value. and the voltage of the q-axis of the stator are determined as the optimal predicted voltage vector, and the stator voltage vector is a vector including the first stator voltage and the second stator voltage.
根据本申请的另一方面,提供了一种永磁同步电机的控制方法,该方法包括:获取第一定子电压、第二定子电压和当前转子角速度,所述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,所述第二定子电压为所述永磁同步电机的所述定子的q轴在当前时刻的电压,所述当前转子角速度为所述永磁同步电机的转子在当前时刻的角速度;采用先验估计方法,根据所述第一定子电压、所述第二定子电压和所述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对所述第一定子电压、所述第二定子电压和所述当前转子角速度进行处理,得到第二预测电流向量,其中,所述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,所述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,所述神经网络拓扑模型是使用多组训练数据训练得到的,所述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与所述输入数据对应的输出数据,所述输入数据包括所述定子的d轴的电压、所述定子的q轴的电压和所述转子的角速度,所述输出数据包括所述定子的q轴的预测电流和所述定子的d轴的预测电流;对所述第一预测电流向量和所述第二预测电流向量进行加权处理,得到优化预测电流向量,所述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;采用所述优化预测电流向量和定子电压向量构建向量表达式,求取所述向量表达式的最小值,且将所述最小值对应的所述定子的d轴的电压和所述定子的q轴的电压确定为最优预测电压向量,所述定子电压向量是包括所述第一定子电压和所述第二定子电压的向量;对最优预测电压向量进行坐标逆变换处理,得到目标三相电压,基于所述目标三相电压对所述永磁同步电机进行控制。According to another aspect of the present application, a control method for a permanent magnet synchronous motor is provided. The method includes: obtaining a first stator voltage, a second stator voltage and a current rotor angular speed. The first stator voltage is a permanent magnet The voltage of the d-axis of the stator of the synchronous motor at the current moment, the second stator voltage is the voltage of the q-axis of the stator of the permanent magnet synchronous motor at the current moment, and the current rotor angular speed is the voltage of the permanent magnet synchronous motor. The angular velocity of the motor's rotor at the current moment; using a priori estimation method, obtaining the first predicted current vector based on the first stator voltage, the second stator voltage and the current rotor angular velocity, and using a neural network topology model , the first stator voltage, the second stator voltage and the current rotor angular velocity are processed to obtain a second predicted current vector, wherein the first predicted current vector includes the first q-axis predicted current and The vector of the first d-axis predicted current, the second predicted current vector is a vector including the second q-axis predicted current and the second d-axis predicted current, and the neural network topology model is trained using multiple sets of training data, Each set of training data in the plurality of sets of training data includes input data obtained within a historical time period and output data corresponding to the input data. The input data includes the voltage of the d-axis of the stator, the The voltage of the q-axis of the stator and the angular velocity of the rotor, the output data include the predicted current of the q-axis of the stator and the predicted current of the d-axis of the stator; for the first predicted current vector and the The second predicted current vector is weighted to obtain an optimized predicted current vector. The optimized predicted current vector is a vector including an optimized q-axis predicted current and an optimized d-axis predicted current; a vector is constructed using the optimized predicted current vector and the stator voltage vector. Expression, find the minimum value of the vector expression, and determine the voltage of the d-axis of the stator and the voltage of the q-axis of the stator corresponding to the minimum value as the optimal predicted voltage vector, the stator The voltage vector is a vector including the first stator voltage and the second stator voltage; an inverse coordinate transformation process is performed on the optimal predicted voltage vector to obtain a target three-phase voltage, and the permanent voltage is calculated based on the target three-phase voltage. Magnetic synchronous motor is controlled.
根据本申请的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行任意一种所述的永磁同步电机的定子的电压矢量的预测方法。According to another aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any arbitrary A method for predicting the voltage vector of the stator of a permanent magnet synchronous motor.
根据本申请的另一方面,提供了一种电子设备,电子设备包括一个或多个处理器,存储器,以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述一个或多个程序包括用于执行任意一种所述的永磁同步电机的定子的电压矢量的预测方法。According to another aspect of the present application, an electronic device is provided. The electronic device includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory. , and configured to be executed by the one or more processors, the one or more programs include a prediction method for executing any one of the voltage vectors of the stator of the permanent magnet synchronous motor.
应用本申请的技术方案,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。Applying the technical solution of this application, by integrating the prior estimation method and the neural network topology prediction method, the optimal predicted current vector is obtained, and then a vector expression is constructed to obtain the optimal predicted voltage vector. Because the prior estimation method and the neural network topology prediction method are combined, the optimal predicted current vector is obtained. The network topology prediction method improves the accuracy of prediction and solves the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
附图说明Description of the drawings
构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The description and drawings that constitute a part of this application are used to provide a further understanding of this application. The illustrative embodiments and their descriptions of this application are used to explain this application and do not constitute an improper limitation of this application. In the attached picture:
图1示出了根据本申请的实施例提供的一种永磁同步电机的定子的电压矢量的预测方法的流程示意图;Figure 1 shows a schematic flow chart of a method for predicting the voltage vector of the stator of a permanent magnet synchronous motor provided according to an embodiment of the present application;
图2示出了神经网络拓扑模型的拓扑示意图;Figure 2 shows the topology schematic diagram of the neural network topology model;
图3示出了根据第一定子电压、第二定子电压和当前转子角速度得到优化预测电流向量的过程的示意图;Figure 3 shows a schematic diagram of the process of obtaining an optimized predicted current vector based on the first stator voltage, the second stator voltage and the current rotor angular velocity;
图4示出了一种永磁同步电机的控制方法的流程示意图;Figure 4 shows a schematic flow chart of a control method for a permanent magnet synchronous motor;
图5示出了根据本申请的实施例提供的一种永磁同步电机的定子的电压矢量的预测装置的结构框图;Figure 5 shows a structural block diagram of a device for predicting the voltage vector of the stator of a permanent magnet synchronous motor provided according to an embodiment of the present application;
图6示出了另一种永磁同步电机的控制方法的流程示意图。Figure 6 shows a schematic flow chart of another control method of a permanent magnet synchronous motor.
具体实施方式Detailed ways
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those in the technical field to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that data so used may be interchanged where appropriate for the embodiments of the application described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
正如背景技术中所介绍的,现有方案经常采用对应的模型来预测未来一段时间内永磁同步电机的定子的d轴和q轴的电压的变化,但是传统的永磁同步电机模型预测控制使用的模型为机理模型,机理模型往往不能真实的反应现实世界中电机随环境的变化,无法模拟外界环境的不确定性和未知性,为解决现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题,本申请的实施例提供了一种永磁同步电机的定子的电压矢量的预测方法、装置、永磁同步电机的控制方法、计算机可读存储介质和电子设备。As introduced in the background art, existing solutions often use corresponding models to predict the changes in the d-axis and q-axis voltages of the stator of the permanent magnet synchronous motor in a period of time in the future. However, the traditional permanent magnet synchronous motor model predictive control uses The model is a mechanism model. The mechanism model often cannot truly reflect the changes of the motor with the environment in the real world, and cannot simulate the uncertainty and unknownness of the external environment. In order to solve the existing solution of permanent magnet synchronous motor model predictive control, the motor model is accurate. To solve the problem of relatively low degree, the embodiments of the present application provide a method and device for predicting the voltage vector of the stator of a permanent magnet synchronous motor, a control method of the permanent magnet synchronous motor, a computer-readable storage medium, and an electronic device.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
在本实施例中提供了一种永磁同步电机的定子的电压矢量的预测方法,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In this embodiment, a method for predicting the voltage vector of the stator of a permanent magnet synchronous motor is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be implemented in a computer system such as a set of computer executable instructions. are performed, and, although a logical order is shown in the flowchart diagrams, in some cases the steps shown or described may be performed in a different order than herein.
图1是根据本申请的实施例提供的一种永磁同步电机的定子的电压矢量的预测方法的流程示意图。如图1所示,该方法包括以下步骤:FIG. 1 is a schematic flowchart of a method for predicting the voltage vector of the stator of a permanent magnet synchronous motor provided according to an embodiment of the present application. As shown in Figure 1, the method includes the following steps:
步骤S101,获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;Step S101: Obtain the first stator voltage, the second stator voltage and the current rotor angular speed. The first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The second stator voltage is the permanent magnet voltage. The voltage of the q-axis of the above-mentioned stator of the synchronous motor at the current moment, and the above-mentioned current rotor angular speed is the angular velocity of the rotor of the above-mentioned permanent magnet synchronous motor at the current moment;
具体地,永磁同步电机的定子的q轴和d轴在当前时刻的电压,有助于对后续电压进行预测,因此需要获取定子的q轴和d轴在当前时刻的电压,永磁同步电机的转子在当前时刻的角速度同理,也有助于于对后续电压进行预测;Specifically, the voltage of the q-axis and d-axis of the stator of the permanent magnet synchronous motor at the current moment is helpful to predict the subsequent voltage. Therefore, it is necessary to obtain the voltage of the q-axis and d-axis of the stator at the current moment. The permanent magnet synchronous motor The same is true for the angular velocity of the rotor at the current moment, which is also helpful in predicting the subsequent voltage;
, ,
该式子中的为包括定子的d轴电流的导数和q轴电流的导数的矩阵,x为包括定子的d轴电流和q轴电流的矩阵,u为包括定子的d轴电压和q轴电压的矩阵,A表示系统矩阵,B表示控制矩阵,G为常数项;/>和/>分别是定子的d轴和q轴电压;/>和/>分别是定子的d轴和q轴电流;/>和/>分别是定子的电阻值和转子的角速度;/>为转子磁链,即预设常数,该预设常数是永磁同步电机的固有特性,如果确定了某一个电机,永磁同步电机的预设常数也就是确定的;in this formula is a matrix including the derivative of the d-axis current and the derivative of the q-axis current of the stator, x is a matrix including the d-axis current and q-axis current of the stator, u is a matrix including the d-axis voltage and q-axis voltage of the stator, A represents System matrix, B represents the control matrix, G is the constant term;/> and/> are the d-axis and q-axis voltages of the stator respectively;/> and/> are the d-axis and q-axis currents of the stator respectively;/> and/> are the resistance value of the stator and the angular velocity of the rotor respectively;/> is the rotor flux linkage, that is, the preset constant. This preset constant is the inherent characteristic of the permanent magnet synchronous motor. If a certain motor is determined, the preset constant of the permanent magnet synchronous motor is also determined;
为与状态相关的未知扰动电流参数,/>为q轴的未知扰动电流参数,/>为d轴的位置扰动电流参数。 is the unknown disturbance current parameter related to the state,/> is the unknown disturbance current parameter of the q-axis,/> is the position disturbance current parameter of the d-axis.
步骤S102,采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;Step S102, using a priori estimation method to obtain the first predicted current vector based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, and using a neural network topology model to calculate the above-mentioned first stator voltage, The above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are processed to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector is a vector including the first q-axis predicted current and the first d-axis predicted current. The above-mentioned second predicted current vector The current vector is a vector including the second q-axis predicted current and the second d-axis predicted current. The above-mentioned neural network topology model is trained using multiple sets of training data. Each set of training data in the above-mentioned multiple sets of training data includes history. Obtained during the time period: input data and output data corresponding to the above input data. The above input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the q-axis of the above-mentioned stator and the angular velocity of the above-mentioned rotor. The above-mentioned output data includes the voltage of the above-mentioned stator. The predicted current of the q-axis and the predicted current of the d-axis of the above stator;
具体地,先验估计方法为:Specifically, the prior estimation method is:
采用上述第一定子电压、上述第二定子电压和上述当前转子角速度,构建第一预测电流向量表达式,上述第一预测电流向量表达式包括上述定子的q轴的电感值和上述定子的d轴的电感值的比例关系、上述定子的电阻值和上述定子的q轴的电感值的比例关系、上述定子的电阻值和上述定子的d轴的电感值的比例关系、采样周期和上述定子的q轴的电感值的比例关系、上述采样周期和上述定子的d轴的电感值的比例关系,根据上述第一预测电流向量表达式,确定上述第一预测电流向量。Using the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, a first predicted current vector expression is constructed. The above-mentioned first predicted current vector expression includes the inductance value of the q-axis of the above-mentioned stator and the d of the above-mentioned stator. The proportional relationship between the inductance value of the shaft, the proportional relationship between the resistance value of the above-mentioned stator and the inductance value of the q-axis of the above-mentioned stator, the proportional relationship between the resistance value of the above-mentioned stator and the inductance value of the d-axis of the above-mentioned stator, the sampling period and the The first predicted current vector is determined based on the proportional relationship between the inductance value of the q-axis, the sampling period and the inductance value of the d-axis of the stator, based on the first predicted current vector expression.
其中一种具体地实施例(不考虑未知扰动的情况下)为:One specific embodiment (without considering unknown disturbances) is:
根据,according to ,
确定上述第一预测电流向量,其中,为采用上述先验估计方法得到的k+1时刻时上述定子的d轴的预测电流,/>为采样周期,/>为上述定子的电阻值,/>为上述定子的d轴的电感值,/>为采用上述先验估计方法得到的k时刻时上述定子的d轴的预测电流,/>为上述定子的q轴的电感值,/>为k时刻时上述转子的角速度,/>为k时刻时上述定子的d轴的电压,/>为采用上述先验估计方法得到的k时刻时上述定子的q轴的电压,为预设常数,/>为采用上述先验估计方法得到的k时刻时上述定子的q轴的预测电流,为k+1时刻时上述定子的q轴的预测电流;Determine the first predicted current vector above, where, is the predicted current of the d-axis of the above-mentioned stator at time k+1 obtained using the above-mentioned a priori estimation method,/> is the sampling period,/> is the resistance value of the above stator,/> is the inductance value of the d-axis of the above stator,/> is the predicted current of the d-axis of the above-mentioned stator at time k obtained using the above-mentioned a priori estimation method,/> is the inductance value of the q-axis of the above stator,/> is the angular velocity of the above rotor at time k,/> is the voltage of the d-axis of the above stator at time k,/> is the voltage of the q-axis of the above-mentioned stator at time k obtained using the above-mentioned a priori estimation method, is a default constant,/> is the predicted current of the q-axis of the above-mentioned stator at time k obtained using the above-mentioned a priori estimation method, is the predicted current of the q-axis of the above stator at time k+1;
采用上一轮预测的电流,来计算当前轮预测的电流,从而提高了计算当前轮预测的电流的准确度。The current predicted in the previous round is used to calculate the current predicted in the current round, thereby improving the accuracy of calculating the current predicted in the current round.
另外关于神经网络拓扑模型,首先基于确定型号的永磁同步电机,在电机对拖平台上进行电机开环控制试验以采集训练数据。在直流母线电压确定的情况下,首先对控制输入量第一定子电压、第二定子电压和当前转子角速度离散化,其中,第一定子电压、第二定子电压的离散间隔5V,要求取遍所有定子d轴和q轴的电压范围。负载电机的当前转子角速度的离散间隔为20rpm,取遍被测电机的转速范围。编写脚本语言(Python或者MATLAB)在上位机端,以自动化的方式分别输入不同的第一定子电压、第二定子电压和当前转子角速度,脚本自动输出d轴的预测电流和q轴的预测电流,不同的输入与输出构成了整个数据集。In addition, regarding the neural network topology model, first, based on a determined model of permanent magnet synchronous motor, a motor open-loop control test was conducted on a motor towing platform to collect training data. When the DC bus voltage is determined, first the control input quantities of the first stator voltage, the second stator voltage and the current rotor angular velocity are discretized. Among them, the discrete interval of the first stator voltage and the second stator voltage is 5V, which is required to be voltage range across all stator d- and q-axes. The discrete interval of the current rotor angular speed of the load motor is 20 rpm, taken throughout the speed range of the motor under test. Write a script language (Python or MATLAB) on the host computer to input different first stator voltage, second stator voltage and current rotor angular speed in an automated manner. The script automatically outputs the predicted current of the d-axis and the predicted current of the q-axis. , different inputs and outputs constitute the entire data set.
数据预处理:采集得到数据进行数据异常点和剔除,以及数据的归一化处理。其中,数据归一化方法采用最小值和最大值方法,表达式:Data preprocessing: Collect the data, eliminate data outliers, and normalize the data. Among them, the data normalization method uses the minimum value and maximum value method, the expression:
; ;
其中,为归一化处理后的数据,/>为数据序列中的原始数据(即包括定子的d轴电流和q轴电流的矩阵),/>为数据序列中的最小值,/>为数据序列中的最大值。in, is the normalized data,/> is the original data in the data sequence (i.e., the matrix including the d-axis current and q-axis current of the stator), /> is the minimum value in the data sequence,/> is the maximum value in the data sequence.
如图2所示,上述神经网络拓扑模型中的神经网络包括多个输入层、多个隐藏层和多个输出层,各上述输入层、各上述隐藏层和各上述输出层之间以全连接的方式连接,输入层中需要输入三个值,分别为第一定子电压、第二定子电压和当前转子角速度,输出层需要输出两个值,分别为第二q轴预测电流和第二d轴预测电流。As shown in Figure 2, the neural network in the above-mentioned neural network topology model includes multiple input layers, multiple hidden layers and multiple output layers. Each of the above-mentioned input layers, each of the above-mentioned hidden layers and each of the above-mentioned output layers are fully connected. The input layer needs to input three values, which are the first stator voltage, the second stator voltage and the current rotor angular speed. The output layer needs to output two values, which are the second q-axis predicted current and the second d Axis predicted current.
其中,在采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量的过程中,上述方法还包括:Wherein, in the process of using a neural network topology model to process the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity to obtain the second predicted current vector, the above method also includes:
构建d轴预测性能表达式和q轴预测性能表达式,上述d轴预测性能表达式包括采用上述神经网络拓扑模型得到的第t次预测的d轴的电流与采用上述神经网络拓扑模型得到的第t+1次预测的d轴的电流的差值,上述q轴预测性能表达式包括采用上述神经网络拓扑模型得到的第t次预测的q轴的电流与采用上述神经网络拓扑模型得到的第t+1次预测的q轴的电流的差值;Construct a d-axis prediction performance expression and a q-axis prediction performance expression. The above d-axis prediction performance expression includes the t-th predicted d-axis current obtained by using the above-mentioned neural network topology model and the t-th predicted current obtained by using the above-mentioned neural network topology model. The difference between the d-axis current predicted at t+1 time. The above q-axis prediction performance expression includes the t-th predicted q-axis current obtained by using the above neural network topology model and the t-th predicted current obtained by using the above neural network topology model. +1 predicted difference in q-axis current;
确定预测性能向量,上述预测性能向量是包括d轴预测性能和q轴预测性能的向量。Determine a prediction performance vector, which is a vector including d-axis prediction performance and q-axis prediction performance.
保证分别求得d轴预测性能和q轴预测性能,从而提高了利用这两个预测性能求得对应的权值的准确度。It is guaranteed to obtain the d-axis prediction performance and the q-axis prediction performance respectively, thereby improving the accuracy of using these two prediction performances to obtain the corresponding weights.
其中一种具体地实施例,One of the specific embodiments is:
根据,确定d轴预测性能,上述d轴预测性能为上述神经网络拓扑模型对上述定子的d轴的电流进行预测的性能,其中,lossd为上述d轴预测性能,为采用上述神经网络拓扑模型得到的第t次预测的d轴的电流,/>为采用上述神经网络拓扑模型得到的第t+1次预测的d轴的电流;according to , determine the d-axis prediction performance. The above-mentioned d-axis prediction performance is the performance of the above-mentioned neural network topology model in predicting the d-axis current of the above-mentioned stator, where lossd is the above-mentioned d-axis prediction performance, is the d-axis current predicted at the tth time using the above neural network topology model,/> is the d-axis current predicted at the t+1th time using the above neural network topology model;
根据,确定q轴预测性能,上述q轴预测性能为上述神经网络拓扑模型对上述定子的q轴的电流进行预测的性能,其中,lossq为上述d轴预测性能,为采用上述神经网络拓扑模型得到的第t次预测的q轴的电流,/>为采用上述神经网络拓扑模型得到的第t+1次预测的q轴的电流;according to , determine the q-axis prediction performance. The above-mentioned q-axis prediction performance is the performance of the above-mentioned neural network topology model in predicting the q-axis current of the above-mentioned stator, where lossq is the above-mentioned d-axis prediction performance, is the t-th predicted q-axis current obtained using the above neural network topology model,/> is the q-axis current predicted at the t+1th time using the above neural network topology model;
确定预测性能向量,上述预测性能向量包括d轴预测性能和q轴预测性能,提高神经网络拓扑模型进行预测的精确度。Determine the prediction performance vector, which includes d-axis prediction performance and q-axis prediction performance, to improve the prediction accuracy of the neural network topology model.
另外,在确定预测性能向量之后,上述方法还包括:In addition, after determining the prediction performance vector, the above method also includes:
根据,according to ,
确定采用上述神经网络拓扑模型进行第t+1次预测时的上述输入层和上述隐藏层的神经元之间的连接权值以及上述隐藏层和上述输出层的神经元之间的连接权值;Determine the connection weights between the neurons of the above-mentioned input layer and the above-mentioned hidden layer and the connection weights between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t+1th prediction;
其中,首先,确定隐藏层层数和每一隐藏层的节点数、隐藏层神经元阈值、输出层神经元阈值。设置训练参数,包括学习率、最大迭代次数、最小容忍误差。然后,构建损失函数lossd和lossq,用来评价神经网络的预测性能,loss越小表示神经网络的预测性越好,神经网络的隐含层和输出层中的神经元的激活函数均采用sigmoid(即生物学中常见的S型函数)型激活函数。Among them, first, determine the number of hidden layers, the number of nodes in each hidden layer, the threshold of hidden layer neurons, and the threshold of output layer neurons. Set training parameters, including learning rate, maximum number of iterations, and minimum tolerance error. Then, loss functions lossd and lossq are constructed to evaluate the prediction performance of the neural network. The smaller the loss, the better the prediction performance of the neural network. The activation functions of the neurons in the hidden layer and output layer of the neural network all use sigmoid ( That is, the S-shaped function) type activation function that is common in biology.
为采用上述神经网络拓扑模型进行第t+1次预测时的上述输入层和上述隐藏层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t+1次预测时的上述隐藏层和上述输出层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t次预测时的上述输入层和上述隐藏层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t次预测时的上述隐藏层和上述输出层的神经元之间的连接权值,/>为预设系数,loss为上述预测性能向量,i用于表征上述输入层的第i个神经元,j用于表征上述隐藏层的第j个神经元,k用于表征上述输出层的第k个神经元。 is the connection weight between the neurons of the above-mentioned input layer and the above-mentioned hidden layer when making the t+1th prediction using the above-mentioned neural network topology model,/> is the connection weight between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t+1th prediction,/> is the connection weight between the neurons of the above-mentioned input layer and the above-mentioned hidden layer when the above-mentioned neural network topology model is used for the t-th prediction,/> is the connection weight between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t-th prediction,/> is the preset coefficient, loss is the above-mentioned prediction performance vector, i is used to characterize the i-th neuron of the above-mentioned input layer, j is used to characterize the j-th neuron of the above-mentioned hidden layer, and k is used to characterize the k-th neuron of the above-mentioned output layer. neurons.
由此求得了上述隐藏层和上述输出层的神经元之间的连接权值以及上述输入层和上述隐藏层的神经元之间的连接权值,从而得以根据权值将输入层输入的参数,转换为输出层输出的参数,提高了神经网络拓扑模型的预测的准确度。From this, the connection weights between the neurons of the above-mentioned hidden layer and the above-mentioned output layer and the connection weights between the above-mentioned input layer and the neurons of the above-mentioned hidden layer are obtained, so that the parameters input to the input layer can be input according to the weights, The parameters converted into the output layer improve the prediction accuracy of the neural network topology model.
步骤S103,对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;Step S103, perform weighting processing on the above-mentioned first predicted current vector and the above-mentioned second predicted current vector to obtain an optimized predicted current vector. The above-mentioned optimized predicted current vector is a vector including an optimized q-axis predicted current and an optimized d-axis predicted current;
具体地,优化预测电流向量是对上述第一预测电流向量和上述第二预测电流向量进行加权处理而得到的优化后的预测电流向量,通过对上述第一预测电流向量和上述第二预测电流向量进行加权处理,从而实现了先验估计方法和神经网络拓扑预测方法进行融合的目的,进而提高了预测电流向量的精确度,如图3所示,图3展示了如何根据第一定子电压、上述第二定子电压和上述当前转子角速度得到优化预测电流向量的过程。Specifically, the optimized predicted current vector is an optimized predicted current vector obtained by weighting the above-mentioned first predicted current vector and the above-mentioned second predicted current vector. By weighting the above-mentioned first predicted current vector and the above-mentioned second predicted current vector Weighting processing is performed, thereby achieving the purpose of integrating the prior estimation method and the neural network topology prediction method, thereby improving the accuracy of predicting the current vector, as shown in Figure 3. Figure 3 shows how to predict the current vector according to the first stator voltage, The above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are used to optimize the process of predicting the current vector.
其中一种具体地实施例为,One specific embodiment is,
1)先将永磁同步电机的数学模型,写成状态空间表达式的形式,先验预测值(即对应第a步的第一预测电流向量):1) First write the mathematical model of the permanent magnet synchronous motor in the form of a state space expression, and the a priori predicted value (That is, the first predicted current vector corresponding to step a):
; ;
为第a-1步的第一预测电流向量,/>为第a-1步的向量表达式的最小值对应的定子的d轴的电压和定子的q轴的电压; is the first predicted current vector of step a-1,/> is the voltage of the d-axis of the stator and the voltage of the q-axis of the stator corresponding to the minimum value of the vector expression in step a-1;
2)计算第a步的先验估计误差的协方差矩阵:2) Calculate the covariance matrix of the a priori estimation error in step a :
; ;
为第a-1步的后验估计误差的协方差矩阵,W1为一个常数项; is the covariance matrix of the posterior estimation error in step a-1, and W1 is a constant term;
AT为A的转置矩阵;A T is the transpose matrix of A;
3)计算第a步的系统增益Ka:3) Calculate the system gain K a in step a :
; ;
H为测量矩阵,即预设的矩阵,HT为H的转置矩阵,W2也为一个常数项;H is the measurement matrix, which is the preset matrix, H T is the transpose matrix of H, and W2 is also a constant term;
4)计算第a步的最优估计值,即第a步的优化预测电流向量:4) Calculate the optimal estimate of step a , that is, the optimized predicted current vector of step a:
; ;
za为观测值,即第a步的第二预测电流向量;z a is the observed value, which is the second predicted current vector in step a;
5)求得第a步的后验估计误差的协方差矩阵:5) Obtain the covariance matrix of the posterior estimation error in step a :
; ;
I为单位矩阵。I is the identity matrix.
步骤S104,采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量。Step S104, use the above-mentioned optimized predicted current vector and the stator voltage vector to construct a vector expression, find the minimum value of the above-mentioned vector expression, and combine the voltage of the d-axis of the above-mentioned stator and the voltage of the q-axis of the above-mentioned stator corresponding to the above-mentioned minimum value Determined as the optimal predicted voltage vector, the stator voltage vector is a vector including the first stator voltage and the second stator voltage.
将向量表达式的最小值对应的定子的d轴的电压和定子的q轴的电压确定为最优预测电压向量;The voltage of the d-axis of the stator and the voltage of the q-axis of the stator corresponding to the minimum value of the vector expression are determined as the optimal predicted voltage vector;
上述方法中,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。In the above method, by integrating the prior estimation method and the neural network topology prediction method, the optimal predicted current vector is obtained, and then a vector expression is constructed to obtain the optimal predicted voltage vector, because the prior estimation method and the neural network topology prediction are combined. This method improves the accuracy of prediction and solves the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
具体地,根据,Specifically, according to ,
确定上述最优预测电压向量,其中,为上述最优预测电压向量,/>为预测得到的未来第N步的上述优化预测电流向量,/>为/>的转置矩阵,/>为预测未来第a步的上述优化预测电流向量与对应的电流向量的实际值的差值,/>为/>的转置矩阵,/>为上述定子电压向量,/>为/>的转置矩阵,P、R、Q分别为预设权重矩阵,上述电流向量的实际值为上述永磁同步电机实时反馈的上述定子的d轴的电流和上述定子的q轴的电流。Determine the above optimal predicted voltage vector, where, is the above optimal predicted voltage vector,/> Predict the current vector for the above-mentioned optimization of the predicted Nth step in the future,/> for/> The transposed matrix,/> To predict the difference between the above-mentioned optimized predicted current vector and the actual value of the corresponding current vector in step a in the future,/> for/> The transposed matrix,/> is the above stator voltage vector,/> for/> The transpose matrix of , P, R, and Q are respectively preset weight matrices. The actual value of the above-mentioned current vector is the current of the d-axis of the above-mentioned stator and the current of the q-axis of the above-mentioned stator fed back in real time by the above-mentioned permanent magnet synchronous motor.
其中,通过考虑预测得到的未来第N步的上述优化预测电流向量、预测未来第a步的上述优化预测电流向量与对应的电流向量的实际值的差值和定子电压向量,从而提高了最优预测电压向量的准确度。Among them, by considering the above-mentioned optimized predicted current vector predicted at the nth step in the future, the difference between the above-mentioned optimized predicted current vector predicted at the a-th step in the future and the actual value of the corresponding current vector, and the stator voltage vector, thereby improving the optimal Accuracy of predicting voltage vectors.
通过两个模型(即分别为先验估计方法对应的模型和神经网络拓扑模型)融合得到模型,再以此融合后的模型进行永磁同步电机电流环的模型预测控制,可以得到更优的预测电压向量(d轴和q轴电压),从而提高了控制精度。By fusing two models (i.e., the model corresponding to the prior estimation method and the neural network topology model) to obtain a model, and then using the fused model to perform model predictive control of the permanent magnet synchronous motor current loop, a better prediction can be obtained voltage vector (d-axis and q-axis voltage), thereby improving control accuracy.
为了使得本领域技术人员能够更加清楚地了解本申请的技术方案,以下将结合具体的实施例对本申请的永磁同步电机的定子的电压矢量的预测方法的实现过程进行详细说明。In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the present application's method for predicting the voltage vector of the stator of a permanent magnet synchronous motor will be described in detail in conjunction with specific embodiments.
本实施例涉及一种具体的永磁同步电机的控制方法,如图4所示,包括如下步骤:This embodiment relates to a specific control method of a permanent magnet synchronous motor, as shown in Figure 4, including the following steps:
步骤S1:获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;Step S1: Obtain the first stator voltage, the second stator voltage and the current rotor angular speed. The above-mentioned first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The above-mentioned second stator voltage is the above-mentioned permanent magnet. The voltage of the q-axis of the above-mentioned stator of the synchronous motor at the current moment, and the above-mentioned current rotor angular speed is the angular velocity of the rotor of the above-mentioned permanent magnet synchronous motor at the current moment;
步骤S2:采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;Step S2: Use a priori estimation method to obtain the first predicted current vector based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, and use a neural network topology model to calculate the above-mentioned first stator voltage, The above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are processed to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector is a vector including the first q-axis predicted current and the first d-axis predicted current. The above-mentioned second predicted current vector The current vector is a vector including the second q-axis predicted current and the second d-axis predicted current. The above-mentioned neural network topology model is trained using multiple sets of training data. Each set of training data in the above-mentioned multiple sets of training data includes history. Obtained during the time period: input data and output data corresponding to the above input data. The above input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the q-axis of the above-mentioned stator and the angular velocity of the above-mentioned rotor. The above-mentioned output data includes the voltage of the above-mentioned stator. The predicted current of the q-axis and the predicted current of the d-axis of the above stator;
步骤S3:对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;Step S3: Perform weighting processing on the above-mentioned first predicted current vector and the above-mentioned second predicted current vector to obtain an optimized predicted current vector. The above-mentioned optimized predicted current vector is a vector including an optimized q-axis predicted current and an optimized d-axis predicted current;
步骤S4:采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量;Step S4: Use the above-mentioned optimized predicted current vector and stator voltage vector to construct a vector expression, find the minimum value of the above-mentioned vector expression, and compare the voltage of the d-axis of the above-mentioned stator and the voltage of the q-axis of the above-mentioned stator corresponding to the above-mentioned minimum value. Determined as the optimal predicted voltage vector, the above-mentioned stator voltage vector is a vector including the above-mentioned first stator voltage and the above-mentioned second stator voltage;
步骤S5:基于上述最优预测电压向量对上述永磁同步电机进行控制。Step S5: Control the above-mentioned permanent magnet synchronous motor based on the above-mentioned optimal predicted voltage vector.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowchart, in some cases, The steps shown or described may be performed in a different order than here.
本申请实施例还提供了一种永磁同步电机的定子的电压矢量的预测装置,需要说明的是,本申请实施例的永磁同步电机的定子的电压矢量的预测装置可以用于执行本申请实施例所提供的用于永磁同步电机的定子的电压矢量的预测方法。该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。The embodiment of the present application also provides a device for predicting the voltage vector of the stator of the permanent magnet synchronous motor. It should be noted that the device of predicting the voltage vector of the stator of the permanent magnet synchronous motor according to the embodiment of the present application can be used to execute the present application. The embodiment provides a prediction method for the voltage vector of the stator of a permanent magnet synchronous motor. This device is used to implement the above embodiments and preferred implementations, and what has been described will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
以下对本申请实施例提供的永磁同步电机的定子的电压矢量的预测装置进行介绍。The following is an introduction to the prediction device of the voltage vector of the stator of the permanent magnet synchronous motor provided by the embodiment of the present application.
图5是根据本申请的实施例提供的一种永磁同步电机的定子的电压矢量的预测装置的结构框图。如图5所示,该装置包括:FIG. 5 is a structural block diagram of a device for predicting the voltage vector of the stator of a permanent magnet synchronous motor provided according to an embodiment of the present application. As shown in Figure 5, the device includes:
获取单元51,用于获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;The acquisition unit 51 is used to acquire the first stator voltage, the second stator voltage and the current rotor angular velocity. The first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The second stator voltage is The voltage of the q-axis of the above-mentioned stator of the above-mentioned permanent magnet synchronous motor at the current moment, and the above-mentioned current rotor angular speed is the angular velocity of the rotor of the above-mentioned permanent magnet synchronous motor at the current moment;
第一处理单元52,用于采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;The first processing unit 52 is configured to use a priori estimation method to obtain the first predicted current vector based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, and use a neural network topology model to calculate the above-mentioned third current vector. The stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are processed to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector is a vector including the first q-axis predicted current and the first d-axis predicted current. , the above-mentioned second predicted current vector is a vector including the second q-axis predicted current and the second d-axis predicted current. The above-mentioned neural network topology model is trained using multiple sets of training data. Each set of the above-mentioned multiple sets of training data The training data all include: input data obtained during the historical time period and output data corresponding to the above input data. The above input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the q-axis of the above-mentioned stator and the angular velocity of the above-mentioned rotor. The above-mentioned output data The data includes the predicted current of the q-axis of the above-mentioned stator and the predicted current of the d-axis of the above-mentioned stator;
第二处理单元53,用于对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;The second processing unit 53 is configured to weight the first predicted current vector and the second predicted current vector to obtain an optimized predicted current vector. The optimized predicted current vector includes an optimized q-axis predicted current and an optimized d-axis predicted current. vector;
第三处理单元54,用于采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量。The third processing unit 54 is used to construct a vector expression using the above-mentioned optimized predicted current vector and the stator voltage vector, find the minimum value of the above-mentioned vector expression, and combine the voltage of the d-axis of the above-mentioned stator corresponding to the above-mentioned minimum value and the above-mentioned stator voltage The voltage of the q-axis is determined as the optimal predicted voltage vector, and the above-mentioned stator voltage vector is a vector including the above-mentioned first stator voltage and the above-mentioned second stator voltage.
上述装置中,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。In the above device, by integrating the prior estimation method and the neural network topology prediction method, the optimal predicted current vector is obtained, and then a vector expression is constructed to obtain the optimal predicted voltage vector. Because the prior estimation method and the neural network topology prediction are combined, This method improves the accuracy of prediction and solves the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
在本申请的一种实施例中,第一处理单元包括第一处理模块和第二处理模块,第一处理模块用于采用上述第一定子电压、上述第二定子电压和上述当前转子角速度,构建第一预测电流向量表达式,上述第一预测电流向量表达式包括上述定子的q轴的电感值和上述定子的d轴的电感值的比例关系、上述定子的电阻值和上述定子的q轴的电感值的比例关系、上述定子的电阻值和上述定子的d轴的电感值的比例关系、采样周期和上述定子的q轴的电感值的比例关系、上述采样周期和上述定子的d轴的电感值的比例关系;第二处理模块用于根据上述第一预测电流向量表达式,确定上述第一预测电流向量。In one embodiment of the present application, the first processing unit includes a first processing module and a second processing module, and the first processing module is used to use the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, Construct a first predicted current vector expression. The first predicted current vector expression includes the proportional relationship between the inductance value of the q-axis of the above-mentioned stator and the inductance value of the d-axis of the above-mentioned stator, the resistance value of the above-mentioned stator and the q-axis value of the above-mentioned stator. The proportional relationship between the inductance value, the proportional relationship between the resistance value of the above-mentioned stator and the inductance value of the d-axis of the above-mentioned stator, the proportional relationship between the sampling period and the inductance value of the q-axis of the above-mentioned stator, the ratio between the above-mentioned sampling period and the d-axis value of the above-mentioned stator The proportional relationship of the inductance value; the second processing module is used to determine the first predicted current vector according to the first predicted current vector expression.
在本申请的一种实施例中,上述神经网络拓扑模型中的神经网络包括多个输入层、多个隐藏层和多个输出层,各上述输入层、各上述隐藏层和各上述输出层之间以全连接的方式连接。In one embodiment of the present application, the neural network in the above-mentioned neural network topology model includes multiple input layers, multiple hidden layers and multiple output layers. Each of the above-mentioned input layers, each of the above-mentioned hidden layers and each of the above-mentioned output layers are fully connected.
在本申请的一种实施例中,第一处理单元包括第三处理模块和第四处理模块,在采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量的过程中,In one embodiment of the present application, the first processing unit includes a third processing module and a fourth processing module. Using a neural network topology model, the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are calculated. In the process of processing to obtain the second predicted current vector,
第三处理模块用于构建d轴预测性能表达式和q轴预测性能表达式,上述d轴预测性能表达式包括采用上述神经网络拓扑模型得到的第t次预测的d轴的电流与采用上述神经网络拓扑模型得到的第t+1次预测的d轴的电流的差值,上述q轴预测性能表达式包括采用上述神经网络拓扑模型得到的第t次预测的q轴的电流与采用上述神经网络拓扑模型得到的第t+1次预测的q轴的电流的差值;The third processing module is used to construct a d-axis prediction performance expression and a q-axis prediction performance expression. The above d-axis prediction performance expression includes the t-th predicted d-axis current obtained by using the above-mentioned neural network topology model and the t-th predicted current using the above-mentioned neural network topology model. The difference between the t+1th predicted d-axis current obtained by the network topology model. The above q-axis prediction performance expression includes the t-th predicted q-axis current obtained by using the above neural network topology model and the difference between the tth predicted q-axis current obtained by using the above neural network. The difference in the q-axis current predicted at the t+1th time obtained by the topological model;
第四处理模块用于确定预测性能向量,上述预测性能向量是包括d轴预测性能和q轴预测性能的向量。The fourth processing module is used to determine a prediction performance vector, where the prediction performance vector is a vector including d-axis prediction performance and q-axis prediction performance.
在本申请的一种实施例中,第一处理单元包括第一确定模块,在确定预测性能向量之后,In an embodiment of the present application, the first processing unit includes a first determination module, and after determining the prediction performance vector,
第一确定模块用于根据,The first determination module is used according to ,
确定采用上述神经网络拓扑模型进行第t+1次预测时的上述输入层和上述隐藏层的神经元之间的连接权值以及上述隐藏层和上述输出层的神经元之间的连接权值;Determine the connection weights between the neurons of the above-mentioned input layer and the above-mentioned hidden layer and the connection weights between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t+1th prediction;
为采用上述神经网络拓扑模型进行第t+1次预测时的上述输入层和上述隐藏层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t+1次预测时的上述隐藏层和上述输出层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t次预测时的上述输入层和上述隐藏层的神经元之间的连接权值,/>为采用上述神经网络拓扑模型进行第t次预测时的上述隐藏层和上述输出层的神经元之间的连接权值,/>为预设系数,loss为上述预测性能向量,i用于表征上述输入层的第i个神经元,j用于表征上述隐藏层的第j个神经元,k用于表征上述输出层的第k个神经元。 is the connection weight between the neurons of the above-mentioned input layer and the above-mentioned hidden layer when making the t+1th prediction using the above-mentioned neural network topology model,/> is the connection weight between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t+1th prediction,/> is the connection weight between the neurons of the above-mentioned input layer and the above-mentioned hidden layer when the above-mentioned neural network topology model is used for the t-th prediction,/> is the connection weight between the neurons of the above-mentioned hidden layer and the above-mentioned output layer when the above-mentioned neural network topology model is used for the t-th prediction,/> is the preset coefficient, loss is the above-mentioned prediction performance vector, i is used to characterize the i-th neuron of the above-mentioned input layer, j is used to characterize the j-th neuron of the above-mentioned hidden layer, and k is used to characterize the k-th neuron of the above-mentioned output layer. neurons.
在本申请的一种实施例中,第三处理模块包括第二确定模块;In an embodiment of the present application, the third processing module includes a second determination module;
第二确定模块用于根据,The second determination module is used according to ,
确定上述最优预测电压向量,其中,为上述最优预测电压向量,/>为预测得到的未来第N步的上述优化预测电流向量,/>为/>的转置矩阵,/>为预测未来第a步的上述优化预测电流向量与对应的电流向量的实际值的差值,/>为/>的转置矩阵,/>为上述定子电压向量,/>为/>的转置矩阵,P、R、Q分别为预设权重矩阵,上述电流向量的实际值为上述永磁同步电机实时反馈的上述定子的d轴的电流和上述定子的q轴的电流。Determine the above optimal predicted voltage vector, where, is the above optimal predicted voltage vector,/> Predict the current vector for the above-mentioned optimization of the predicted Nth step in the future,/> for/> The transposed matrix,/> To predict the difference between the above-mentioned optimized predicted current vector and the actual value of the corresponding current vector in step a in the future,/> for/> The transposed matrix,/> is the above stator voltage vector,/> for/> The transpose matrix of , P, R, and Q are respectively preset weight matrices. The actual value of the above-mentioned current vector is the current of the d-axis of the above-mentioned stator and the current of the q-axis of the above-mentioned stator fed back in real time by the above-mentioned permanent magnet synchronous motor.
上述永磁同步电机的定子的电压矢量的预测装置包括处理器和存储器,上述获取单元、第一处理单元、第二处理单元和第三处理单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。The above-mentioned device for predicting the voltage vector of the stator of a permanent magnet synchronous motor includes a processor and a memory. The above-mentioned acquisition unit, first processing unit, second processing unit, third processing unit, etc. are all stored in the memory as program units and are controlled by the processor. The above program units stored in the memory are executed to implement corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来解决现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。The processor contains a core, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control can be solved by adjusting the kernel parameters.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chip.
本发明实施例提供了一种计算机可读存储介质,上述计算机可读存储介质包括存储的程序,其中,在上述程序运行时控制上述计算机可读存储介质所在设备执行上述永磁同步电机的定子的电压矢量的预测方法。An embodiment of the present invention provides a computer-readable storage medium. The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the stator of the permanent magnet synchronous motor. Prediction methods for voltage vectors.
本发明实施例提供了一种处理器,上述处理器用于运行程序,其中,上述程序运行时执行上述永磁同步电机的定子的电压矢量的预测方法。An embodiment of the present invention provides a processor. The processor is configured to run a program. When the program is running, the prediction method for the voltage vector of the stator of the permanent magnet synchronous motor is executed.
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现至少以下步骤:获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量。本文中的设备可以是服务器、PC、PAD、手机等。An embodiment of the present invention provides a device. The device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements at least the following steps: obtaining the first stator voltage, the second stator voltage, and the second stator voltage. The stator voltage and the current rotor angular speed. The above-mentioned first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The above-mentioned second stator voltage is the voltage of the q-axis of the above-mentioned stator of the above-mentioned permanent magnet synchronous motor at the current moment. voltage, the above-mentioned current rotor angular velocity is the angular velocity of the rotor of the above-mentioned permanent magnet synchronous motor at the current moment; using a priori estimation method, the first predicted current is obtained based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity vector, and uses a neural network topology model to process the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector includes the first q axis prediction current and the vector of the first d-axis prediction current. The above-mentioned second prediction current vector is a vector including the second q-axis prediction current and the second d-axis prediction current. The above-mentioned neural network topology model is trained using multiple sets of training data. , each set of training data in the above-mentioned multiple sets of training data includes: input data obtained during the historical time period and output data corresponding to the above-mentioned input data. The above-mentioned input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the above-mentioned stator. The voltage of the q-axis and the angular velocity of the rotor, the output data include the predicted current of the q-axis of the above-mentioned stator and the predicted current of the d-axis of the above-mentioned stator; perform weighting processing on the above-mentioned first predicted current vector and the above-mentioned second predicted current vector, Obtain the optimized predicted current vector. The above optimized predicted current vector is a vector including the optimized q-axis predicted current and the optimized d-axis predicted current. Use the above optimized predicted current vector and the stator voltage vector to construct a vector expression and obtain the minimum of the above vector expression. value, and determine the d-axis voltage of the stator and the q-axis voltage of the stator corresponding to the minimum value as the optimal predicted voltage vector, and the stator voltage vector includes the first stator voltage and the second stator voltage. vector. The devices in this article can be servers, PCs, PADs, mobile phones, etc.
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有至少如下方法步骤的程序:获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量。The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with at least the following method steps: obtaining the first stator voltage, the second stator voltage and the current rotor angular velocity, the above-mentioned third The stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The above-mentioned second stator voltage is the voltage of the q-axis of the above-mentioned stator of the above-mentioned permanent magnet synchronous motor at the current moment. The above-mentioned current rotor angular speed is the above-mentioned permanent magnet synchronous motor. The angular velocity of the rotor of the magnetic synchronous motor at the current moment; using a priori estimation method, the first predicted current vector is obtained based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, and a neural network topology model is used, The above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are processed to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector includes a first q-axis predicted current and a first d-axis predicted current. The vector of the current. The above-mentioned second predicted current vector is a vector including the second q-axis predicted current and the second d-axis predicted current. The above-mentioned neural network topology model is trained using multiple sets of training data. In the above-mentioned multiple sets of training data, Each set of training data includes input data obtained during the historical time period and output data corresponding to the above input data. The above input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the q-axis of the above-mentioned stator and the angular velocity of the above-mentioned rotor. , the above-mentioned output data includes the predicted current of the q-axis of the above-mentioned stator and the predicted current of the d-axis of the above-mentioned stator; the above-mentioned first predicted current vector and the above-mentioned second predicted current vector are weighted to obtain an optimized predicted current vector, the above-mentioned optimized prediction The current vector is a vector including the optimized q-axis predicted current and the optimized d-axis predicted current; use the above optimized predicted current vector and the stator voltage vector to construct a vector expression, find the minimum value of the above vector expression, and convert the above minimum value corresponding to The voltage of the d-axis of the stator and the voltage of the q-axis of the stator are determined as the optimal predicted voltage vector, and the stator voltage vector is a vector including the first stator voltage and the second stator voltage.
本申请还提供了一种永磁同步电机的控制方法,如图6所示,该方法包括:This application also provides a control method for a permanent magnet synchronous motor, as shown in Figure 6. The method includes:
步骤S601,获取第一定子电压、第二定子电压和当前转子角速度,上述第一定子电压为永磁同步电机的定子的d轴在当前时刻的电压,上述第二定子电压为上述永磁同步电机的上述定子的q轴在当前时刻的电压,上述当前转子角速度为上述永磁同步电机的转子在当前时刻的角速度;Step S601: Obtain the first stator voltage, the second stator voltage and the current rotor angular speed. The first stator voltage is the voltage of the d-axis of the stator of the permanent magnet synchronous motor at the current moment. The second stator voltage is the permanent magnet voltage. The voltage of the q-axis of the above-mentioned stator of the synchronous motor at the current moment, and the above-mentioned current rotor angular speed is the angular velocity of the rotor of the above-mentioned permanent magnet synchronous motor at the current moment;
步骤S602,采用先验估计方法,根据上述第一定子电压、上述第二定子电压和上述当前转子角速度,得到第一预测电流向量,并采用神经网络拓扑模型,对上述第一定子电压、上述第二定子电压和上述当前转子角速度进行处理,得到第二预测电流向量,其中,上述第一预测电流向量是包括第一q轴预测电流和第一d轴预测电流的向量,上述第二预测电流向量是包括第二q轴预测电流和第二d轴预测电流的向量,上述神经网络拓扑模型是使用多组训练数据训练得到的,上述多组训练数据中的每一组训练数据均包括历史时间段内获取的:输入数据以及与上述输入数据对应的输出数据,上述输入数据包括上述定子的d轴的电压、上述定子的q轴的电压和上述转子的角速度,上述输出数据包括上述定子的q轴的预测电流和上述定子的d轴的预测电流;Step S602, using a priori estimation method to obtain the first predicted current vector based on the above-mentioned first stator voltage, the above-mentioned second stator voltage and the above-mentioned current rotor angular velocity, and using a neural network topology model to calculate the above-mentioned first stator voltage, The above-mentioned second stator voltage and the above-mentioned current rotor angular velocity are processed to obtain a second predicted current vector, wherein the above-mentioned first predicted current vector is a vector including the first q-axis predicted current and the first d-axis predicted current. The above-mentioned second predicted current vector The current vector is a vector including the second q-axis predicted current and the second d-axis predicted current. The above-mentioned neural network topology model is trained using multiple sets of training data. Each set of training data in the above-mentioned multiple sets of training data includes history. Obtained during the time period: input data and output data corresponding to the above input data. The above input data includes the voltage of the d-axis of the above-mentioned stator, the voltage of the q-axis of the above-mentioned stator and the angular velocity of the above-mentioned rotor. The above-mentioned output data includes the voltage of the above-mentioned stator. The predicted current of the q-axis and the predicted current of the d-axis of the above stator;
步骤S603,对上述第一预测电流向量和上述第二预测电流向量进行加权处理,得到优化预测电流向量,上述优化预测电流向量是包括优化q轴预测电流和优化d轴预测电流的向量;Step S603: Perform weighting processing on the above-mentioned first predicted current vector and the above-mentioned second predicted current vector to obtain an optimized predicted current vector. The above-mentioned optimized predicted current vector is a vector including an optimized q-axis predicted current and an optimized d-axis predicted current;
步骤S604,采用上述优化预测电流向量和定子电压向量构建向量表达式,求取上述向量表达式的最小值,且将上述最小值对应的上述定子的d轴的电压和上述定子的q轴的电压确定为最优预测电压向量,上述定子电压向量是包括上述第一定子电压和上述第二定子电压的向量;Step S604: Construct a vector expression using the optimized predicted current vector and the stator voltage vector, find the minimum value of the vector expression, and combine the voltage of the d-axis of the stator and the voltage of the q-axis of the stator corresponding to the minimum value. Determined as the optimal predicted voltage vector, the above-mentioned stator voltage vector is a vector including the above-mentioned first stator voltage and the above-mentioned second stator voltage;
步骤S605,对最优预测电压向量进行坐标逆变换处理,得到目标三相电压,基于上述目标三相电压对上述永磁同步电机进行控制。Step S605: Perform coordinate inverse transformation processing on the optimal predicted voltage vector to obtain the target three-phase voltage, and control the permanent magnet synchronous motor based on the target three-phase voltage.
上述方法中,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。In the above method, by integrating the prior estimation method and the neural network topology prediction method, the optimal predicted current vector is obtained, and then a vector expression is constructed to obtain the optimal predicted voltage vector, because the prior estimation method and the neural network topology prediction are combined. This method improves the accuracy of prediction and solves the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
本申请还提供了一种电子设备,电子设备包括一个或多个处理器,存储器,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置为由上述一个或多个处理器执行,上述一个或多个程序包括用于执行任意一种上述的永磁同步电机的定子的电压矢量的预测方法。通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。This application also provides an electronic device. The electronic device includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be configured by the above One or more processors execute the above one or more programs including a method for executing any one of the above prediction methods for the voltage vector of the stator of the permanent magnet synchronous motor. By integrating the prior estimation method and the neural network topology prediction method, the optimal predicted current vector is obtained, and then a vector expression is constructed to obtain the optimal predicted voltage vector. Because the prior estimation method and the neural network topology prediction method are combined, the optimization is improved. It improves the accuracy of prediction and solves the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented using general-purpose computing devices. They can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. They may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be executed in a sequence different from that shown herein. Or the described steps can be implemented by making them into individual integrated circuit modules respectively, or by making multiple modules or steps among them into a single integrated circuit module. As such, the invention is not limited to any specific combination of hardware and software.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in a process or processes in a flowchart and/or a block or blocks in a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes in the flowchart and/or in a block or blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器 (CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-volatile memory in computer-readable media, random access memory (RAM), and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存 (PRAM)、静态随机存取存储器 (SRAM)、动态随机存取存储器 (DRAM)、其他类型的随机存取存储器 (RAM)、只读存储器 (ROM)、电可擦除可编程只读存储器 (EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘 (DVD) 或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体 (transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element qualified by the statement "comprises a..." does not exclude the presence of additional identical elements in the process, method, good, or device that includes the element.
从以上的描述中,可以看出,本申请上述的实施例实现了如下技术效果:From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:
1)、本申请的永磁同步电机的定子的电压矢量的预测方法,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。1) The prediction method of the voltage vector of the stator of the permanent magnet synchronous motor in this application combines the prior estimation method and the neural network topology prediction method to obtain the optimized predicted current vector, and then constructs a vector expression to obtain the optimal prediction. The voltage vector combines the a priori estimation method and the neural network topology prediction method, thereby improving the accuracy of prediction, thereby solving the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
2)、本申请的永磁同步电机的定子的电压矢量的预测装置,通过将先验估计方法和神经网络拓扑预测方法进行融合,得到优化预测电流向量,再构建向量表达式来得到最优预测电压向量,因结合了先验估计方法和神经网络拓扑预测方法,从而提高了预测的准确度,进而解决了现有方案永磁同步电机模型预测控制中电机模型精确度较低的问题。2) The device for predicting the voltage vector of the stator of a permanent magnet synchronous motor in this application integrates the prior estimation method and the neural network topology prediction method to obtain the optimized predicted current vector, and then constructs a vector expression to obtain the optimal prediction. The voltage vector combines the a priori estimation method and the neural network topology prediction method, thereby improving the accuracy of prediction, thereby solving the problem of low accuracy of the motor model in the existing scheme of permanent magnet synchronous motor model predictive control.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311570761.6A CN117277888B (en) | 2023-11-23 | 2023-11-23 | Method and device for predicting voltage vector of stator of permanent magnet synchronous motor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311570761.6A CN117277888B (en) | 2023-11-23 | 2023-11-23 | Method and device for predicting voltage vector of stator of permanent magnet synchronous motor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117277888A true CN117277888A (en) | 2023-12-22 |
| CN117277888B CN117277888B (en) | 2024-03-19 |
Family
ID=89203129
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311570761.6A Active CN117277888B (en) | 2023-11-23 | 2023-11-23 | Method and device for predicting voltage vector of stator of permanent magnet synchronous motor |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117277888B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118508823A (en) * | 2024-07-17 | 2024-08-16 | 苏州海卓伺服驱动技术有限公司 | Position calibration optimization method and system of limited-angle motor for servo valve |
| CN119448853A (en) * | 2025-01-06 | 2025-02-14 | 珠海新业电子科技有限公司 | Hybrid excitation synchronous motor control strategy optimization method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010166714A (en) * | 2009-01-16 | 2010-07-29 | Denso Corp | Controller and control system for rotating machine |
| JP2013038946A (en) * | 2011-08-09 | 2013-02-21 | Denso Corp | Control unit for rotary machine |
| US20150039545A1 (en) * | 2013-08-05 | 2015-02-05 | City University of London | Systems, methods and devices for vector control of permanent magnet synchronous machines using artificial neural networks |
| CN108880394A (en) * | 2018-06-04 | 2018-11-23 | 江苏大学 | A kind of wavelet neural network position-less sensor of switched reluctance motor forecast Control Algorithm |
| CN110535396A (en) * | 2019-08-30 | 2019-12-03 | 长安大学 | Surface permanent magnetic Synchronous Machine Models forecast Control Algorithm based on BP neural network |
-
2023
- 2023-11-23 CN CN202311570761.6A patent/CN117277888B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010166714A (en) * | 2009-01-16 | 2010-07-29 | Denso Corp | Controller and control system for rotating machine |
| JP2013038946A (en) * | 2011-08-09 | 2013-02-21 | Denso Corp | Control unit for rotary machine |
| US20150039545A1 (en) * | 2013-08-05 | 2015-02-05 | City University of London | Systems, methods and devices for vector control of permanent magnet synchronous machines using artificial neural networks |
| CN108880394A (en) * | 2018-06-04 | 2018-11-23 | 江苏大学 | A kind of wavelet neural network position-less sensor of switched reluctance motor forecast Control Algorithm |
| CN110535396A (en) * | 2019-08-30 | 2019-12-03 | 长安大学 | Surface permanent magnetic Synchronous Machine Models forecast Control Algorithm based on BP neural network |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118508823A (en) * | 2024-07-17 | 2024-08-16 | 苏州海卓伺服驱动技术有限公司 | Position calibration optimization method and system of limited-angle motor for servo valve |
| CN119448853A (en) * | 2025-01-06 | 2025-02-14 | 珠海新业电子科技有限公司 | Hybrid excitation synchronous motor control strategy optimization method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117277888B (en) | 2024-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN117277888B (en) | Method and device for predicting voltage vector of stator of permanent magnet synchronous motor | |
| CN110163368B (en) | Deep learning model training method, device and system based on mixed precision | |
| CN110188870B (en) | Apparatus and method for performing artificial neural network self-learning operation | |
| CN110323981A (en) | A kind of method and system controlling permanent magnetic linear synchronous motor | |
| KR20200031163A (en) | Neural network structure creation method and device, electronic device, storage medium | |
| Brandstetter et al. | Sensorless control of variable speed induction motor drive using RBF neural network | |
| WO2023124921A1 (en) | Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium | |
| CN112564557A (en) | Control method, device and equipment of permanent magnet synchronous motor and storage medium | |
| CN113516246A (en) | Parameter optimization method, quantum chip control method and device | |
| CN118605147A (en) | Co-optimization method for preset time of complex system | |
| CN115407665B (en) | Based on H ∞ Efficient robot joint fault estimation method and device | |
| US20230297487A1 (en) | Method and apparatus for estimating execution time of neural network | |
| US12346789B2 (en) | System and method for execution of inference models across multiple data processing systems | |
| CN114944799B (en) | A method for online synchronous identification of multiple parameters of permanent magnet motor | |
| CN114070146B (en) | A fault detection method, device, equipment and storage medium | |
| WO2023124893A1 (en) | Torque estimation method and apparatus based on neural network, and device and storage medium | |
| CN117273069A (en) | Reasoning method, device, equipment and medium based on neural network model | |
| Lvovich et al. | Simulation of controlling alternative current actuator on neural network basis | |
| CN114862003A (en) | Request quantity prediction method and device, electronic equipment and storage medium | |
| CN115841068A (en) | Intervention execution method, device and equipment for user | |
| CN119966301B (en) | A method and device for identifying flux linkage of a six-phase permanent magnet synchronous motor | |
| Zhang et al. | The study of permanent magnetic synchronous motor control system through the combination of BP neural network and PID control | |
| CN114977941B (en) | Inertia identification method, device and medium for alternating current servo system | |
| CN110323989A (en) | Permanent magnet synchronous motor method for identification of rotational inertia based on population | |
| CN120428592A (en) | Motor controller R&D method and system based on intelligent algorithm |
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 |