An energy optimization strategy for permanent magnet synchronous motors in electric vehicles

The particle swarm optimization algorithm and the Hopfield-Lagrange network are used to optimize the stator current and consider the core loss, which solves the problems of temperature fluctuation and hysteresis loss of motor parameters in the existing technology, and improves the energy utilization rate and system efficiency of the permanent magnet synchronous motor. .

CN116522841BActive Publication Date: 2024-09-06HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310454969.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-09-06
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

Existing permanent magnet synchronous motor control methods fail to effectively consider temperature fluctuations and hysteresis losses of motor parameters, resulting in limited energy utilization and system efficiency.

Method used

The particle swarm optimization algorithm is used for global search, combined with the Hopfield-Lagrange network for local search, an equivalent circuit model considering core loss is established, the stator current is optimized to reduce copper and iron losses, and improve the energy economy of the motor.

Benefits of technology

It effectively reduces motor temperature changes, improves motor optimization efficiency, avoids the problem of the Hopfield-Lagrange network falling into local minima, and shortens the calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116522841B
    Figure CN116522841B
Patent Text Reader

Abstract

The present invention discloses an energy optimization strategy for a permanent magnet synchronous motor of an electric vehicle, and belongs to the field of energy optimization of a pure electric vehicle drive motor. The optimization strategy comprises the following steps: establishing an equivalent circuit model, determining the source of energy loss and obtaining an energy loss function; establishing an energy optimization model for a permanent magnet synchronous motor in combination with the physical constraints and dynamic characteristics of the permanent magnet synchronous motor; giving an energy optimization function E and a Hopfield-Lagrange network input iteration mechanism; using a particle swarm optimization algorithm to find a permanent magnet synchronous motor stator current that meets the accuracy requirements; and using a Hopfield-Lagrange network to obtain the optimal solution for the energy optimization strategy. The method of the present invention has a good effect of reducing energy loss, improves the energy economy of the motor, and can be used to improve the driving efficiency of electric vehicles and increase battery life.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of energy optimization of pure electric vehicle drive motors, and specifically relates to an energy optimization strategy for a permanent magnet synchronous motor of an electric vehicle. Background Art

[0002] Motor drive and control technology is one of the key technologies of pure electric vehicles. The entire drive system of electric vehicles includes a motor drive system and a mechanical transmission mechanism. Permanent magnet synchronous motors have no excitation loss, high power factor and hard mechanical properties, and have significant advantages such as high energy utilization, compact size, and low mass. They meet the requirements of pure electric vehicles for high reliability, large electromagnetic torque, and high efficiency of drive motors. They have become the most widely used drive motors in pure electric vehicles. In the process of permanent magnet synchronous motors converting electrical energy into mechanical energy, there will inevitably be energy loss. These losses can be divided into three categories in nature: iron loss, copper loss, and mechanical loss. Mechanical loss is uncontrollable current vector control, and its value is low. It is generally ignored when calculating losses. The energy loss optimization scheme of permanent magnet synchronous motors can be divided into two categories according to the working object: starting from the structure of the motor itself, updating the material and electromagnetic design; using a more efficient motor control strategy to optimize the electric energy loss of the motor and improve the energy economy of the motor. This is also the energy optimization strategy adopted by the present invention, which reduces energy loss by controlling the stator current.

[0003] At present, the research on energy optimization of electric vehicle motors is mainly focused on the MTPA control method. By obtaining the optimal current angle, the stator current with the minimum consumption and the required output torque can be obtained. The maximum torque-to-current ratio is an optimization of the salient pole motor in vector control, which can improve the utilization rate of the inverter voltage, reduce losses, and improve the efficiency of the motor.

[0004] Such as the invention patent applications "A permanent magnet synchronous motor MTPA control system and method based on torque closed loop" (CN109194229B) and "MTPA control method for maximum torque current ratio control of position sensorless built-in permanent magnet synchronous motor IPMSM" (CN1 13783494A).

[0005] Among them, the Chinese invention patent application publication (CN109194229B) published on September 27, 2018, "A permanent magnet synchronous motor MTPA control system and method based on torque closed loop", first measures the stator current, DC bus voltage and motor position signal of the permanent magnet synchronous motor at random moments; estimates the motor parameters of the control system using parameter identification methods; sets a given speed, converts the motor position signal into a motor speed signal through differential calculation, and uses the difference between the given speed and the motor speed signal as the input signal of the speed loop PI controller, and then uses the output signal after adjustment by the speed loop PI controller as the given torque; uses the given torque as the input signal of the torque closed loop control to calculate the d and q axis given current signals under the output MTPA condition; obtains the d and q axis currents in the two-phase rotating coordinate system according to the stator current and formula and makes a difference with the d and q axis given current signals, and uses the result as the input signal of the current loop PI controller, and then the d and q axis voltages output are compensated to obtain the given voltage signal; finally, according to the motor signal, the given voltage signal Park is inversely transformed and output to the SVPWM module at the same time as the DC bus voltage to calculate the drive signal at the next moment. However, this method has the following shortcomings:

[0006] 1) This motor control method directly estimates the motor parameters without considering that the motor parameters will fluctuate with the motor temperature during motor operation, which will affect the accuracy of MTPA.

[0007] 2) This motor control method uses flux parameters in calculations, but does not consider the hysteresis loss caused by magnetic flux, which will affect the energy utilization of the motor.

[0008] The "MTPA control method for maximum torque current ratio control of position sensorless internal permanent magnet synchronous motor IPMSM" published in the Chinese invention patent application publication (CN113783494A) on August 30, 2021, first inputs a high-frequency voltage signal to the estimated d-axis, and obtains the rotor position and speed information by demodulating the estimated q-axis current high-frequency signal; inputs a DC signal to the estimated d and q axes respectively, calculates the corresponding power demodulation, and implements MTPA control, reducing copper loss. However, this method has the following shortcomings:

[0009] 1) This motor control method does not take iron loss into account, which affects system efficiency.

[0010] 2) The motor control method uses the inductance difference parameter in the high-frequency current calculation process. When the inductance difference is small, the reluctance torque is small and the improvement effect of MTPA is not obvious. Summary of the invention

[0011] The technical problem to be solved by the present invention is the above-mentioned technical deficiencies. The present invention proposes an energy optimization strategy for permanent magnet synchronous motors of electric vehicles. The method not only considers copper and iron losses to improve the energy economy of the motor, but also effectively reduces energy loss and thus reduces the change in motor temperature. The particle swarm optimization algorithm is used for global search and then the Hopfield-Lagrange network is used for local search, which not only avoids the problem that the Hopfield-Lagrange network may fall into local minima, but also shortens the calculation process and improves the efficiency of motor optimization.

[0012] The purpose of the present invention is achieved in this way. The present invention provides an energy optimization strategy for a permanent magnet synchronous motor of an electric vehicle, wherein the energy optimization refers to optimizing the energy loss of the permanent magnet synchronous motor under working conditions, and the steps are as follows:

[0013] Step 1: Establish an equivalent circuit model, determine the energy loss source and obtain the energy loss function. The process is as follows:

[0014] Step 1.1, first, in the dq system, establish a steady-state equivalent circuit model of the permanent magnet synchronous motor that takes into account the core loss and does not contain the transient component, and record it as the equivalent circuit model. Secondly, define the d-axis magnetizing current I according to the equivalent circuit model od , q-axis magnetizing current I oq , d-axis end voltage U sd , q-axis end voltage U sq and the electromagnetic torque T of the permanent magnet synchronous motor;

[0015] The d-axis magnetizing current I od and the q-axis magnetizing current I oq The expressions are:

[0016]

[0017]

[0018] Among them, R′ Fe is the equivalent iron loss resistance value, I sd is the total d-axis current, I sq is the total q-axis current, I Fed is the d-axis component of the permanent magnet synchronous motor iron loss current, I Feq is the q-axis component of the permanent magnet synchronous motor iron loss current, ω is the electrical angular velocity of the permanent magnet synchronous motor, L q is the q-axis inductance, L d is the d-axis inductance, Ψ f is the flux linkage per pole;

[0019] The electromagnetic torque T of the permanent magnet synchronous motor, the d-axis terminal voltage U sdand the q-axis terminal voltage U sq The expressions are:

[0020]

[0021]

[0022] T=1.5n p Ψ f I oq +1.5n p (L d -L q )I od I oq

[0023] Among them, R′ s is the armature winding resistance, n p is the pole pair number, n p =2;

[0024] Step 1.2, calculate the power loss of the permanent magnet synchronous motor, the power loss includes the copper loss P Cu and iron loss P Fe , and their calculation formulas are:

[0025]

[0026]

[0027] Step 1.3, ignore the mechanical loss of the permanent magnet synchronous motor, the energy loss of the permanent magnet synchronous motor is composed of copper loss and iron loss, and give the energy loss function f(X), f(X) = P Cu +P Fe , where X is the independent variable vector group of the energy loss function f(X), denoted as the loss independent variable vector group X, X = (I od I sd I oq I sq ) T ;

[0028] Step 2: Combined with the physical constraints and dynamic characteristics of the permanent magnet synchronous motor, an energy optimization model of the permanent magnet synchronous motor is established, and its expression is:

[0029]

[0030] Among them, a is the serial number of the inequality constraint, a = 1, 2, that is, there are 2 inequality constraints of the energy loss function f(X), n a (X) is any one of them, denoted as the loss inequality constraint n a(X); b is the sequence number of the equality constraint, b = 1, 2, 3, that is, there are 3 equality constraints of the energy loss function f(X), m b (X) is any one of them, denoted as the loss equality constraint m b (X);

[0031] The loss inequality constraint n a (X) and the loss equality constraint m b The specific expressions of (X) are:

[0032]

[0033]

[0034] In the formula, I max is the maximum current of the permanent magnet synchronous motor, and U max is the maximum voltage of the permanent magnet synchronous motor, and T ref is the motor reference torque;

[0035] Step 3: The Hopfield-Lagrange network is recorded as the HL network. Given the energy optimization function E and the HL network input iteration mechanism, the process is as follows:

[0036] Step 3.1, assuming that a total of Y iterations are performed during the entire HL network optimization process, any iteration in the Y iterations is recorded as the cth iteration, c = 1, 2, ..., Y;

[0037] The input of the HL network at the cth iteration is recorded as the input vector group U c , and the input vector group U c Any input vector in is denoted as input vector U ce , the output of the HL network at the cth iteration is recorded as the output vector group V c , and the output vector group V c Any output vector in is denoted as output vector V ce , e=1,2,3,4;

[0038] Step 3.2, define the output vector group in, is the d-axis magnetizing current output by the HL network at the cth iteration, is the total d-axis current output by the HL network at the cth iteration, is the q-axis magnetizing current output by the HL network at the cth iteration, is the total q-axis current output by the HL network at the cth iteration; it is combined with the output vector V c The corresponding q-axis terminal voltage is recorded as With the output vector group V c The corresponding d-axis end voltage is recorded as

[0039] Use the output vector V c After replacing the loss independent variable vector group X in the energy loss function f(X), we can get the intermediate function f(V c ), using the output vector group V c Replace the loss inequality constraint n a (X), loss equality constraint m b The loss independent variable vector group X in (X) is obtained by optimizing the inequality constraints n a (V c ) and optimize the equality constraint m b (V c ), whose expressions are:

[0040]

[0041]

[0042] The energy function of the energy optimization strategy of the permanent magnet synchronous motor of an electric vehicle is recorded as the energy optimization function E, and its expression is:

[0043]

[0044] Among them, λ a is the absolute value weight of the inequality constraint violation, μ b is the absolute value weight of the equality constraint violation degree, and the continuously differentiable function sign′(.) is a non-differentiable sign function, which is used to determine whether the current working condition meets the inequality constraint and obtain the corresponding violation degree.

[0045] Step 3.3, given the input iteration mechanism of the HL network, its expression is:

[0046]

[0047] Among them, U c+1 is the input vector group at the c+1th iteration, δ is the neural node learning rate of the HL network, and ΔT is the sampling interval of the HL network;

[0048] Set the output vector group V c The input vector group U c And the activation function S(U c ) is calculated, and the calculation formula is:

[0049]

[0050] Step 4: Use the improved HL network to obtain the optimal solution of the energy optimization strategy. The specific process is as follows:

[0051] Step 4.1: Use the particle swarm optimization algorithm to find the d-axis magnetizing current I that meets the accuracy requirements. od , d-axis total current I sd , q-axis magnetizing current I oq and the q-axis total current I sq Specifically, establish the fitness function E of the particle swarm optimization algorithm * ; Obtain the d-axis magnetizing current sampling value by random sampling Q-axis magnetizing current sampling value D-axis total current sampling value And the q-axis total current sampling value As the input of the particle swarm optimization algorithm; after J iterations, the optimal position P of the particle swarm is obtained g,gbest , P g,gbest =[P g,gbest1 , P g , gbest2 , P g,gbest3 , P g,gbest4 ] T , where P g,gbest1 is the first row of the best position of the particle swarm, P g,gbest2 is the second row of the best position of the particle swarm, P g,gbest3 is the third row of the best position of the particle swarm, P g,gbest4 It is the fourth row of the best position of the particle swarm group;

[0052] Define the optimal position P of the particle swarm g,pbest is the input vector group U1 of the first iteration of the HL network, and its expression is:

[0053] U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 P g,gbest2 P g,pbest3 P g,gbest4 ] T

[0054] Step 4.2, when iterating for the first time, the input vector group U1 and the output vector group V1 are as follows:

[0055] U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 Pg,gbl2 P g,gbest3 P g,gbest4 ] T

[0056]

[0057] The output vector group V1 of the first iteration is obtained by the input vector group U1 of the first iteration and the activation function S(U1), that is,

[0058] Step 4.3, when the cth iteration, the input vector group U of the cth iteration c According to the input iteration mechanism of the HL network, the input vector group U of the c-1th iteration c-1 and the output vector group V of the c-1th iteration c-1 Get, output vector group V c According to the input vector group U of the cth iteration c And the activation function S(U c ) is obtained, the specific expression is:

[0059]

[0060]

[0061] Step 4.4, iterate in the same manner as step 4.3, and end the iteration when c=Y;

[0062] Substitute the obtained Y output vector groups into the energy optimization function E to obtain an energy loss value matrix E consisting of Y energy loss values 1 , in, is the energy loss value of the HL network at the cth iteration;

[0063] Take the energy loss value matrix E 1 The one with the smallest energy loss value is recorded as the minimum energy loss value Minimum energy loss The corresponding output vector group is recorded as the optimal output vector group V cf , the optimal output vector group V cf The four output vectors are the optimal d-axis magnetizing current Optimal d-axis total current Optimal q-axis magnetizing current and the optimal q-axis total current The stator current value of the permanent magnet synchronous motor is controlled by the four optimal currents.

[0064] Preferably, the equivalent circuit model consists of a d-axis equivalent circuit model and a q-axis equivalent circuit model;

[0065] The topological structure of the d-axis equivalent circuit model includes a d-axis power supply Armature winding resistance R s , equivalent iron loss resistance R Fe and d-axis equivalent voltage source γ d , γ d =ωLqI oq , the d-axis power One end of the armature winding resistance R s Connect in series with d-axis equivalent voltage source γ d The negative pole of the d-axis equivalent voltage source γ d The positive electrode, equivalent iron loss resistance R Fe With d-axis power Parallel; d-axis power supply The voltage at the d-axis end is the voltage U sd ;

[0066] The topology of the q-axis equivalent circuit model includes the q-axis power supply Armature winding resistance R s , equivalent iron loss resistance R Fe , q-axis equivalent voltage source γ q and back EMF Γ,γ q =ωL d I od , Γ=ωΨ f , the q-axis power One end of the armature winding resistance R s Connect in series with q-axis equivalent voltage source γ q The negative pole of the q-axis is connected to the q-axis equivalent voltage source γ in series with the back electromotive force Γ. q The positive electrode, equivalent iron loss resistance R Fe With q-axis power Parallel; q-axis power supply The voltage at the q-axis end is the voltage U sq .

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

[0068] 1. Compared with the traditional motor control strategy, the optimal current angle is obtained to obtain the stator current with the minimum current angle consumption and the required output torque. Starting from the energy loss, the present invention not only considers the copper and iron losses to improve the energy economy of the motor, but also can effectively reduce the energy loss and thus reduce the change of the motor temperature.

[0069] 2. The reluctance torque is not used as a parameter to control the motor, so as to avoid the problem of poor optimization effect caused by small inductance difference.

[0070] 3. After using the particle swarm optimization algorithm for global search, the method of local search for the optimal solution through the Hopfield-Lagrange network not only avoids the problem that the Hopfield-Lagrange network may fall into the local minimum, but also shortens the calculation process and improves the efficiency of motor optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is an implementation flow chart of the present invention;

[0072] Figure 2 It is the topological diagram of the d-axis equivalent circuit model of the permanent magnet synchronous motor;

[0073] Figure 3 It is the topological diagram of the q-axis equivalent circuit model of the permanent magnet synchronous motor;

[0074] Figure 4 It is the process diagram of particle swarm optimization algorithm. DETAILED DESCRIPTION

[0075] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

[0076] Figure 1 It is an implementation flow chart of the present invention, consisting of Figure 1 It can be seen that the present invention provides an energy optimization strategy for a permanent magnet synchronous motor of an electric vehicle. The energy optimization refers to optimizing the energy loss of the permanent magnet synchronous motor under working conditions. The steps are as follows:

[0077] Step 1: Establish an equivalent circuit model, determine the energy loss source and obtain the energy loss function. The process is as follows:

[0078] Step 1.1, first, in the dq system, establish a steady-state equivalent circuit model of the permanent magnet synchronous motor that takes into account the core loss and does not contain the transient component, and record it as the equivalent circuit model. Secondly, define the d-axis magnetizing current I according to the equivalent circuit model od , q-axis magnetizing current I oq , d-axis end voltage U sd , q-axis end voltage U sq and the electromagnetic torque T of the permanent magnet synchronous motor;

[0079] The d-axis magnetizing current I od and the q-axis magnetizing current I oq The expressions are:

[0080]

[0081]

[0082] Among them, R′ Feis the equivalent iron loss resistance value, I sd is the total d-axis current, I sq is the total q-axis current, I Fed is the d-axis component of the permanent magnet synchronous motor iron loss current, I Feq is the q-axis component of the permanent magnet synchronous motor iron loss current, ω is the electrical angular velocity of the permanent magnet synchronous motor, L q is the q-axis inductance, L d is the d-axis inductance, Ψ f is the flux linkage per pole;

[0083] The electromagnetic torque T of the permanent magnet synchronous motor, the d-axis terminal voltage U sd and the q-axis terminal voltage U sq The expressions are:

[0084]

[0085]

[0086] T=1.5n p Ψ f I oq +1.5n p (L d -L q )I od I oq

[0087] Among them, R′ s is the armature winding resistance, n p is the pole pair number, n p =2.

[0088] 1.5n of the first term p Ψ f I oq is the permanent magnet torque generated by the permanent magnet and the q-axis current, and the second term of 1.5n p (L d -L q )I od I oq It is the reluctance torque generated by the difference in reluctance between the d-axis and q-axis.

[0089] In this embodiment, the equivalent circuit model consists of a d-axis equivalent circuit model and a q-axis equivalent circuit model.

[0090] Figure 2 is the topological diagram of the d-axis equivalent circuit model, Figure 2 It can be seen that the topological structure of the d-axis equivalent circuit model includes the d-axis power supply Armature winding resistance R s , equivalent iron loss resistance R Feand d-axis equivalent voltage source γ d , γ d =ω3L q I oq , the d-axis power One end of the armature winding resistance R s Connect in series with d-axis equivalent voltage source γ d The negative pole of the d-axis equivalent voltage source γ d The positive electrode, equivalent iron loss resistance R Fe With d-axis power Parallel; d-axis power supply The voltage at the d-axis end is the voltage U sd ;

[0091] Figure 3 is the topological diagram of the q-axis equivalent circuit model, Figure 3 It can be seen that the topological structure of the q-axis equivalent circuit model includes the q-axis power supply B q , armature winding resistance R s , equivalent iron loss resistance R Fe , q-axis equivalent voltage source γ q and back EMF Γ,γ q =ωL d I od , Γ=ωΨ f , the q-axis power One end of the armature winding resistance R s Connect in series with q-axis equivalent voltage source γ q The negative pole of the q-axis is connected to the q-axis equivalent voltage source γ in series with the back electromotive force Γ. q The positive electrode, equivalent iron loss resistance R Fe With q-axis power Parallel; q-axis power supply The voltage at the q-axis end is the voltage U sq .

[0092] Step 1.2, calculate the power loss of the permanent magnet synchronous motor, the power loss includes the copper loss P Cu and iron loss P Fe , and their calculation formulas are:

[0093]

[0094]

[0095] Step 1.3, ignoring the mechanical loss of the permanent magnet synchronous motor, the energy loss of the permanent magnet synchronous motor is composed of copper loss and iron loss, and the energy loss function f(X) is given, / (X) = P Cu +P Fe, where X is the independent variable vector group of the energy loss function f(X), denoted as the loss independent variable vector group X, X = (I od I sd I sq ) T ;

[0096] The energy consumption of a permanent magnet synchronous motor includes electrical energy loss and mechanical loss, wherein mechanical loss is an uncontrollable current vector control and its value is relatively low, so it can be ignored. Electrical energy loss includes copper loss and iron loss. Therefore, the energy loss of the motor described in the present invention is composed of copper loss and iron loss.

[0097] Step 2: Combined with the physical constraints and dynamic characteristics of the permanent magnet synchronous motor, an energy optimization model of the permanent magnet synchronous motor is established, and its expression is:

[0098]

[0099] Among them, a is the serial number of the inequality constraint, a = 1, 2, that is, there are 2 inequality constraints of the energy loss function f(X), n a (X) is any one of them, denoted as the loss inequality constraint n a (X); b is the sequence number of the equality constraint, b = 1, 2, 3, that is, there are 3 equality constraints of the energy loss function f(X), m b (X) is any one of them, denoted as the loss equality constraint m b (X);

[0100] The loss inequality constraint n a (X) and the loss equality constraint m b The specific expressions of (X) are:

[0101]

[0102]

[0103] In the formula, I max is the maximum current of the permanent magnet synchronous motor, and U max is the maximum voltage of the permanent magnet synchronous motor, and T ref is the motor reference torque.

[0104] Step 3: The Hopfield-Lagrange network is recorded as the HL network. Given the energy optimization function E and the HL network input iteration mechanism, the process is as follows:

[0105] Step 3.1, assuming that a total of Y iterations are performed during the entire HL network optimization process, any iteration in the Y iterations is recorded as the cth iteration, c = 1, 2, ..., Y;

[0106] The input of the HL network at the cth iteration is recorded as the input vector group U e , and the input vector group U c Any input vector in is denoted as input vector U ce , the output of the HL network at the cth iteration is recorded as the output vector group V c , and the output vector group V c Any output vector in is denoted as output vector V ce , e=1,2,3,4;

[0107] Step 3.2, define the output vector group in, is the d-axis magnetizing current output by the HL network at the cth iteration, is the total d-axis current output by the HL network at the cth iteration, is the q-axis magnetizing current output by the HL network at the cth iteration, is the total q-axis current output by the HL network at the cth iteration; it is combined with the output vector V c The corresponding q-axis terminal voltage is recorded as With the output vector group V c The corresponding d-axis end voltage is recorded as

[0108] Use the output vector V c After replacing the loss independent variable vector group X in the energy loss function f(X), we can get the intermediate function f(V c ), using the output vector group V c Replace the loss inequality constraint n a (X), loss equality constraint m b The loss independent variable vector group X in (X) is obtained by optimizing the inequality constraints n a (V c ) and optimize the equality constraint m b (V c ), whose expressions are:

[0109]

[0110]

[0111] The energy function of the energy optimization strategy of the permanent magnet synchronous motor of an electric vehicle is recorded as the energy optimization function E, and its expression is:

[0112]

[0113] Among them, λ a is the absolute value weight of the inequality constraint violation, μ b is the absolute value weight of the equality constraint violation degree, and the continuously differentiable function sign′(·) is a non-differentiable sign function, which is used to determine whether the current working condition meets the inequality constraint and obtain the corresponding violation degree.

[0114] Step 3.3, given the input iteration mechanism of the HL network, its expression is:

[0115]

[0116] Among them, U c+1 is the input vector group at the c+1th iteration, δ is the neural node learning rate of the HL network, and ΔT is the sampling interval of the HL network.

[0117] Set the output vector group V c The input vector group U c And the activation function S(U c ) is calculated, and the calculation formula is:

[0118]

[0119] Step 4: Use the improved HL network to obtain the optimal solution of the energy optimization strategy. The specific process is as follows:

[0120] Step 4.1: Use the particle swarm optimization algorithm to find the d-axis magnetizing current I that meets the accuracy requirements. od , d-axis total current I sd , q-axis magnetizing current I oq and the q-axis total current I sq Specifically, establish the fitness function E of the particle swarm optimization algorithm * ; Obtain the d-axis magnetizing current sampling value by random sampling Q-axis magnetizing current sampling value D-axis total current sampling value And the q-axis total current sampling value As the input of the particle swarm optimization algorithm; after J iterations, the optimal position P of the particle swarm is obtained g,gbest , P g,gbest =[P g,gbest1 , P g,gbest2 , P g,gbest3 , P g,gbest4 ] T , where P g,gbest1 is the first row of the best position of the particle swarm, P g,gbest2 is the second row of the best position of the particle swarm, P g,gbest3is the third row of the best position of the particle swarm, P g,gbest4 It is the fourth row of the best position of the particle swarm group;

[0121] Define the optimal position P of the particle swarm g,gbest is the input vector group U1 of the first iteration of the HL network, and its expression is:

[0122] U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 P g,gbest2 P g,gbest3 P g,gbest4 ] T

[0123] Step 4.2, when iterating for the first time, the input vector group U1 and the output vector group V1 are as follows:

[0124] U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 P g,gbest2 P g,gbest3 P g,gbest4 ] T

[0125]

[0126] The output vector group V1 of the first iteration is obtained by the input vector group U1 of the first iteration and the activation function S(U1), that is,

[0127] Step 4.3, when the cth iteration, the input vector group U of the cth iteration c According to the input iteration mechanism of the HL network, the input vector group U of the c-1th iteration c-1 and the output vector group V of the c-1th iteration c-1 Get, output vector group V c According to the input vector group U of the cth iteration c And the activation function S(U c ) is obtained, the specific expression is:

[0128]

[0129]

[0130] Step 4.4, iterate in the same manner as step 4.3, and end the iteration when c=Y;

[0131] Substitute the obtained Y output vector groups into the energy optimization function E to obtain an energy loss value matrix E consisting of Y energy loss values 1 , in, is the energy loss value of the HL network at the cth iteration;

[0132] Take the energy loss value matrix E 1 The one with the smallest energy loss value is recorded as the minimum energy loss value Minimum energy loss The corresponding output vector group is recorded as the optimal output vector group V cf , the optimal output vector group V cf The four output vectors are the optimal d-axis magnetizing current Optimal d-axis total current Optimal q-axis magnetizing current and the optimal q-axis total current The stator current value of the permanent magnet synchronous motor is controlled by the four optimal currents.

[0133] Considering that the HL network is a neural network based on the gradient descent method, and the energy optimization function E of the HL network is a surface with multiple poles, it may fall into the local minimum and thus affect the solution of the entire optimization problem. Therefore, the particle swarm optimization algorithm is introduced to accurately locate the first input of the HL network, thereby improving the energy optimization effect of the HL network.

[0134] In this embodiment, the particle swarm optimization algorithm is used in step 4 to find the d-axis magnetizing current I that meets the accuracy requirements. od , d-axis total current I sd , q-axis magnetizing current I oq and the q-axis total current I sq See the process Figure 3 ,Depend on Figure 3 It can be seen that the process of step 4 is as follows:

[0135] Establish the fitness E of particle swarm optimization algorithm * , denoted as particle fitness E * , which is expressed as follows:

[0136]

[0137] The particle swarm optimization algorithm is used to find the d-axis magnetizing current I that meets the accuracy requirements. od Value, d-axis total current I sd Value, q-axis magnetizing current I oq Value, q-axis total current Isq The value makes the fitness function of the particle swarm optimization algorithm maximum. The specific steps are as follows:

[0138] Step 4.1, set the particle swarm size to N, the number of variables in the particle swarm optimization algorithm fitness function D to 4, the individual learning factor of the particle swarm optimization algorithm to c1, the group learning factor of the particle swarm optimization algorithm to c2, and the inertia weight of the particle swarm optimization algorithm to ω * , the number of iterations of the particle swarm optimization algorithm is J, and the maximum particle speed is v max ;

[0139] Step 4.2, randomly generate a two-dimensional matrix of 4 rows and N columns and record it as the particle swarm optimization algorithm population t 4×N , where any one of the N columns is the g-th column, g = 1, 2, ..., N, g is a positive integer, any one of the 4 rows is the j-th row, j = 1, 2, 3, 4, j is a positive integer, and the particle swarm optimization algorithm population t 4×N Any particle in is denoted as t jg , j = 1, 2, 3, 4, g = 1, 2..., N, particle swarm optimization algorithm population t 4×N Any column of particles in is denoted as t g , g = 1, 2..., N, any column of particles t g Contains particles t in the first row of any column 1g , g = 1, 2..., N, any column of particles t g Contains particles t in the second row of any column 2g , g = 1, 2..., N, any column of particles t g Contains particles t in the third row of any column 3g , g = 1, 2..., N, any column of particles t g Contains particle t in the fourth row of any column 4g , g = 1, 2, ..., N;

[0140] Particle swarm optimization algorithm particle t 4×N and particle swarm optimization algorithm particles t 4×N Any column of particles t g as follows:

[0141]

[0142] t g =(t 1g t 2g t 3g t 4g ) T

[0143] A randomly generated two-dimensional matrix of 4 rows and N columns is recorded as the particle speed b of the particle swarm optimization algorithm.4×N , particle swarm optimization algorithm particle velocity v 4×N The random number of each element must be within the particle maximum speed v max Within, where the particle speed v of the particle swarm optimization algorithm 4×N The velocity of any particle in is denoted as v jg , j = 1, 2, 3, 4, g = 1, 2..., N, particle swarm optimization algorithm particle velocity v 4×N The velocity of any particle in the g , g = 1, 2..., N, any column of particle speed v g Contains the particle velocity v in the first row of any column g1 , g = 1, 2..., N, any column of particle speed v g Contains the particle velocity v in the second row of any column g2 , g = 1, 2..., N, any column of particle speed v g Contains the particle velocity v in the third row of any column g3 , g = 1, 2..., N, any column of particle speed v g Contains the particle velocity v in the fourth row of any column g4 , g = 1, 2, ..., N;

[0144] Particle swarm optimization algorithm particle speed v 4×N and particle swarm optimization algorithm particle velocity v 4×N Any column of particle speed v in g as follows:

[0145]

[0146] v g =(v 1g v 2g v 3g v 4g ) T

[0147] Step 4.3, calculate the particle swarm optimization algorithm population t 4×N Any column of particles t g The particle fitness of Particle fitness The values ​​are as follows:

[0148]

[0149] The best position of any column of particle swarm is P g,pbest , g = 1, 2..., N, P g,pbest =(P g,pbest1 P g,pbest2 P g,pbest3 P g,pbest4 ) T , where the first row of the best position of any column of particle swarm is P g,pbest1 , g=1,2...,N, the second row of the best position of any column of particle swarm is P g,pbest2 , g=1,2...,N, the third row of the best position of any column of particle swarm is P g,pbest3 , g=1,2...,N, the fourth row of the best position of any column of particle swarm is P g,pbest4 , g=1,2...,N, the best position P of any column of particle swarm g,pbest as follows:

[0150] P g,pbest1 =t 1g

[0151] P g,pbest2 =t 2g

[0152] P g,pbest3 =t 3g

[0153] P g,pbest4 =t 4g

[0154] Particle fitness The maximum value is recorded as the maximum fitness of the particle swarm Maximum fitness of particle swarm The corresponding column of particles is recorded as the particle t with the maximum fitness of the particle swarm. g max , t g max =(t 1g max t 2g max t 3g max t 4g max ) T , where t 1g max is the first row of particles with the maximum fitness of the particle swarm, t 2g max is the second row particle with the maximum fitness of the particle swarm, t 3g max is the third row particle with the maximum fitness of the particle swarm, t 4g max The fourth row of particles is the maximum fitness of the particle swarm;

[0155] The optimal position of the particle swarm is P g,gbest , P g,gbest =(P g,gbest1 P g,gbest 2P g,gbest3 P g,gbest4 ) T , where P g,gbest1 is the first row of the best position of the particle swarm, P g,gbest2The second row is the best position of the particle swarm, P g,gbest3 The third row is the best position of the particle swarm, P g,gbest4 The fourth row is the best position of the particle swarm group. The best position of the particle swarm group is Pg ,best as follows:

[0156] P g,gbest1 =t 1g max P g,gbest3 =t 3g max

[0157] P g,gbest2 =t 2g max P g,pbest4 =t 4g max

[0158] P g , gbest =t g max

[0159] Step 4.4, the particle swarm optimization algorithm population t 4×N and particle swarm optimization algorithm particle velocity v 4×N Perform W iterations, and denote any iteration in the W iterations as the w-th iteration, w=1, 2, ...W, where w is a positive integer;

[0160] The particle swarm optimization algorithm population of the wth iteration is The particle swarm optimization algorithm population at the wth iteration Any particle in The particle swarm optimization algorithm population at the wth iteration Any column of particles in g=1,2...,N, For any column of particles The first row of particles, g = 1, 2..., N, For any column of particles The second row of particles, g = 1, 2..., N, For any column of particles The third row of particles, g = 1, 2..., N, For any column of particles The fourth row of particles, g = 1, 2..., N,

[0161] The d-axis magnetizing current sampling value is obtained by random sampling Q-axis magnetizing current sampling value D-axis total current sampling value And the q-axis total current sampling value And substitute the independent variable vector group X, and will Re-expressed as

[0162] The particle speed of the particle swarm optimization algorithm in the wth iteration is Particle velocity of particle swarm optimization algorithm at the wth iteration The velocity of any particle in Particle velocity of particle swarm optimization algorithm at the wth iteration The velocity of any particle in the is the velocity of any particle in the The first row of particle velocities, g = 1, 2, ..., N, is the velocity of any particle in the The second row particle speed, g = 1, 2..., N, is the velocity of any particle in the The third row particle speed, g = 1, 2..., N, is the velocity of any particle in the The fourth row is the particle velocity, g = 1, 2, ..., N;

[0163] The population of the particle swarm optimization algorithm at the wth iteration and the particle swarm optimization algorithm population at the wth iteration An arbitrary column of particles in is as follows:

[0164]

[0165]

[0166] Particle swarm optimization algorithm particle velocity at the wth iteration and the particle swarm optimization algorithm particle velocity at the wth iteration Any column of particle speeds in as follows:

[0167]

[0168]

[0169] The steps for the wth iteration are as follows:

[0170] 1) Particle swarm optimization algorithm population at the wth iteration The iteration formula is as follows:

[0171]

[0172] Wherein, w=1, 2, ... W;

[0173] when If there is one particle in the column that does not satisfy the constraints of the permanent magnet synchronous motor energy optimization model in step 2, then the particle column The particle fitness at the wth iteration is set to the minimum;

[0174] 2) The particle speed of the particle swarm optimization algorithm in the wth iteration is The iteration formula is as follows:

[0175]

[0176] Wherein, r1, r2 are random numbers in the range of 0 to 1, w = 1, 2, ... W;

[0177] When the last iteration, i.e. w = W, the particle swarm optimization algorithm ends.

[0178] when One of them is greater than v max , then its value is replaced by v max ;

[0179] 3) Particle swarm optimization algorithm population at the wth iteration Any column of particles The particle fitness of Particle fitness The values ​​are as follows:

[0180]

[0181] Wherein, w=1, 2, ... W;

[0182] like but like The best position P of any column of particle swarm g,pbest constant;

[0183] search The maximum value is recorded as the maximum fitness of the particle swarm in the wth iteration Maximum fitness of particle swarm The corresponding column of particles is recorded as the maximum fitness column of the particle swarm in the wth iteration. in is the particle in the first row of the maximum fitness column of the particle swarm in the wth iteration, is the particle in the second row of the maximum fitness column of the particle swarm in the wth iteration, is the particle in the third row of the maximum fitness column of the particle swarm in the wth iteration, It is the particle in the fourth row of the maximum fitness column of the particle swarm in the wth iteration;

[0184] like but like The optimal position P of particle swarm g,gbest constant;

[0185] Step 4.5: Output the optimal position P of the particle swarm g,gbest .

Claims

1. An energy optimization strategy for a permanent magnet synchronous motor of an electric vehicle, wherein the energy optimization refers to optimizing the energy loss of the permanent magnet synchronous motor under working conditions, characterized in that: Here are the steps: Step 1: Establish an equivalent circuit model, determine the energy loss source and obtain the energy loss function. The process is as follows: Step 1.1, first, in the dq system, establish a steady-state equivalent circuit model of the permanent magnet synchronous motor that takes into account the core loss and does not contain the transient component, and record it as the equivalent circuit model. Secondly, define the d-axis magnetizing current I according to the equivalent circuit model od , q-axis magnetizing current I oq , d-axis end voltage U sd , q-axis end voltage U sq and the electromagnetic torque T of the permanent magnet synchronous motor; The d-axis magnetizing current I od and the q-axis magnetizing current I oq The expressions are: Among them, R′ Fe is the equivalent iron loss resistance value, I sd is the total d-axis current, I sq is the total q-axis current, I Fed is the d-axis component of the permanent magnet synchronous motor iron loss current, I Feq is the q-axis component of the permanent magnet synchronous motor iron loss current, ω is the electrical angular velocity of the permanent magnet synchronous motor, L q is the q-axis inductance, L d is the d-axis inductance, Ψ f is the flux linkage per pole; The electromagnetic torque T of the permanent magnet synchronous motor, the d-axis terminal voltage U sd and the q-axis terminal voltage U sq The expressions are: T=1.5n p Ψ f I og +1.5n p (L d -L q )I od I oq Among them, R′ s is the armature winding resistance, n p is the pole pair number, n p =2; Step 1.2, calculate the power loss of the permanent magnet synchronous motor, the power loss includes the copper loss P Cu and iron loss P Fe , and the calculation formulas are: Step 1.3, ignoring the mechanical loss of the permanent magnet synchronous motor, the energy loss of the permanent magnet synchronous motor is composed of copper loss and iron loss, and the energy loss function f(X) is given. Among them, X is the independent variable vector group of the energy loss function f(X), denoted as the loss independent variable vector group X, X=(I od I sd I oq I sq ) T ; Step 2: Combined with the physical constraints and dynamic characteristics of the permanent magnet synchronous motor, an energy optimization model of the permanent magnet synchronous motor is established, and its expression is: Among them, a is the serial number of the inequality constraint, a = 1, 2, that is, there are 2 inequality constraints of the energy loss function f(X), n a (X) is any one of them, denoted as the loss inequality constraint n a (X); b is the sequence number of the equality constraint, b = 1, 2, 3, that is, there are 3 equality constraints of the energy loss function f(X), m b (X) is any one of them, denoted as the loss equality constraint m b (X); The loss inequality constraint n a (X) and the loss equality constraint m b The specific expressions of (X) are: In the formula, I max is the maximum current of the permanent magnet synchronous motor, and U max is the maximum voltage of the permanent magnet synchronous motor, and T ref is the motor reference torque; Step 3: The Hopfield-Lagrange network is recorded as the HL network. Given the energy optimization function E and the HL network input iteration mechanism, the process is as follows: Step 3.1, assuming that a total of Y iterations are performed during the entire HL network optimization process, any iteration in the Y iterations is recorded as the cth iteration, c = 1, 2, ..., Y; The input of the HL network at the cth iteration is recorded as the input vector group U c , and the input vector group U c Any input vector in is denoted as input vector U ce , the output of the HL network at the cth iteration is recorded as the output vector group V c , and the output vector group V c Any output vector in is denoted as output vector V ce , e=1,2,3,4; Step 3.2, define the output vector group in, is the d-axis magnetizing current output by the HL network at the cth iteration, is the total d-axis current output by the HL network at the cth iteration, is the q-axis magnetizing current output by the HL network at the cth iteration, is the total q-axis current output by the HL network at the cth iteration; it is combined with the output vector V c The corresponding q-axis terminal voltage is recorded as With the output vector group V c The corresponding d-axis end voltage is recorded as Use the output vector V c After replacing the loss independent variable vector group X in the energy loss function f(X), we can get the intermediate function f(V c ), using the output vector group V c Replace the loss inequality constraint n a (X), loss equality constraint m b The loss independent variable vector group X in (X) is obtained by optimizing the inequality constraints n a (V c ) and optimize the equality constraint m b (V c ), whose expressions are: The energy function of the energy optimization strategy of the permanent magnet synchronous motor of an electric vehicle is recorded as the energy optimization function E, and its expression is: Among them, λ a is the absolute value weight of the inequality constraint violation, μ b is the absolute value weight of the equality constraint violation degree, and the continuously differentiable function sign′(.) is a non-differentiable sign function, which is used to determine whether the current working condition meets the inequality constraint and obtain the corresponding violation degree. Step 3.3, given the input iteration mechanism of the HL network, its expression is: Among them, U c+i is the input vector group at the c+1th iteration, δ is the neural node learning rate of the HL network, and ΔT is the sampling interval of the HL network; Set the output vector group V c The input vector group U c And the activation function S(U c ) is calculated, and the calculation formula is: Step 4: Use the improved HL network to obtain the optimal solution of the energy optimization strategy. The specific process is as follows: Step 4.1: Use the particle swarm optimization algorithm to find the d-axis magnetizing current I that meets the accuracy requirements. od , d-axis total current I sd , q-axis magnetizing current I oq and the q-axis total current I sq Specifically, establish the fitness function E of the particle swarm optimization algorithm * ; Obtain the d-axis magnetizing current sampling value by random sampling Q-axis magnetizing current sampling value D-axis total current sampling value And the q-axis total current sampling value And as the input of the particle swarm optimization algorithm; after J iterations, the optimal position P of the particle swarm is obtained g,gbest , P g,gbest =[P g,gbest1 , P g,gbest2 , P g,gbest3 , P g,gbest4 ] T , where P g,gbest1 is the first row of the best position of the particle swarm, P g,gbest2 is the second row of the best position of the particle swarm, P g,gbest3 is the third row of the best position of the particle swarm, P g,gbest4 It is the fourth row of the best position of the particle swarm; Define the optimal position P of the particle swarm g,gbest is the input vector group U1 of the first iteration of the HL network, and its expression is: U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 P g,gbest2 P g,gbest3 P g,gbest4 ] T Step 4.2, when iterating for the first time, the input vector group U1 and the output vector group V1 are as follows: U1=[U 11 U 12 U 13 U 14 ] T =[P g,gbest1 P g,gbest2 P g,gbest3 P g,gbest4 ] T The output vector group V1 of the first iteration is obtained by the input vector group U1 of the first iteration and the activation function S(U1), that is, Step 4.3, when the cth iteration, the input vector group U of the cth iteration c According to the input iteration mechanism of the HL network, the input vector group U of the c-1th iteration c-1 and the output vector group V of the c-1th iteration c-1 Get, output vector group V c According to the input vector group U of the cth iteration c And the activation function S(U c ) is obtained, the specific expression is: Step 4.4, iterate in the same manner as step 4.3, and end the iteration when c=Y; Substitute the obtained Y output vector groups into the energy optimization function E to obtain an energy loss value matrix E consisting of Y energy loss values 1 , in, is the energy loss value of the HL network at the cth iteration; Take the energy loss value matrix E 1 The one with the smallest energy loss value is recorded as the minimum energy loss value Minimum energy loss The corresponding output vector group is recorded as the optimal output vector group V cf , the optimal output vector group V cf The four output vectors are the optimal d-axis magnetizing current Optimal d-axis total current Optimal q-axis magnetizing current and the optimal q-axis total current The stator current value of the permanent magnet synchronous motor is controlled by the four optimal currents.

2. The energy optimization strategy of a permanent magnet synchronous motor for an electric vehicle according to claim 1, characterized in that: The equivalent circuit model consists of a d-axis equivalent circuit model and a q-axis equivalent circuit model; The topological structure of the d-axis equivalent circuit model includes a d-axis power supply Armature winding resistance R s , equivalent iron loss resistance R Fe and d-axis equivalent voltage source γ d , γ d =ωL q I oq , the d-axis power One end of the armature winding resistance R s Connect in series with d-axis equivalent voltage source γ d The negative pole of the d-axis equivalent voltage source γ d The positive electrode, equivalent iron loss resistance R Fe With d-axis power Parallel; d-axis power supply The voltage at the d-axis end is the voltage U sd ; The topological structure of the q-axis equivalent circuit model includes the q-axis power supply Armature winding resistance R s , equivalent iron loss resistance R Fe , q-axis equivalent voltage source γ q and back EMF Γ,γ q =ωL d I od , Γ=ωΨ f , the q-axis power One end of the armature winding resistance R s Connect in series with q-axis equivalent voltage source γ q The negative pole of the q-axis is connected to the q-axis equivalent voltage source γ in series with the back electromotive force Γ. q The positive electrode, equivalent iron loss resistance R Fe With q-axis power Parallel; q-axis power supply The voltage at the q-axis end is the voltage U sq .