Nonlinear active disturbance rejection control method and experimental device for permanent magnet synchronous motor of electric vehicle
By constructing a tracking differentiator and a nonlinear extended state observer, and combining the parameters with a genetic algorithm, an optimal nonlinear active disturbance rejection speed controller was designed. This solved the contradiction between dynamic response speed and overshoot in permanent magnet synchronous motors, improved the robustness and control performance of the system, and realized efficient control of permanent magnet synchronous motors in electric vehicles.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-09
- Publication Date
- 2026-04-07
AI Technical Summary
Existing control strategies for permanent magnet synchronous motors have a contradiction between dynamic response speed and overshoot, making it difficult to meet the requirements of a wide speed range and with poor anti-interference capabilities. As a result, the application of existing algorithms in practical controllers is limited.
By employing a nonlinear active disturbance rejection control method, and by constructing a tracking differentiator and a nonlinear extended state observer, combined with a genetic algorithm to optimize parameters, an optimal nonlinear active disturbance rejection speed controller is designed to achieve real-time estimation and compensation of system state and disturbance.
This improved the system's robustness and control performance, enabled precise control of the permanent magnet synchronous motor, shortened the controller development cycle, and enhanced the practicality of the control algorithm.
Smart Images

Figure CN121077313B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of permanent magnet synchronous motor control technology for electric vehicles, and particularly to a nonlinear active disturbance rejection control method and experimental apparatus for a permanent magnet synchronous motor for electric vehicles. Background Technology
[0002] With the decreasing price of permanent magnet materials such as neodymium iron boron and the development of motor control technology, permanent magnet synchronous motors (PMSMs) have been widely used in the field of new energy vehicles due to their advantages such as low maintenance costs, high energy density, and wide speed range. However, in electric vehicles, PMSMs often need to be used in combination with other types of motors. Therefore, how to utilize complex algorithms to extend performance under high-speed conditions has become a pressing technical challenge for the electric vehicle industry.
[0003] Because permanent magnet synchronous motors (PMSMs) are typically complex systems with nonlinear and strongly coupled characteristics, both internal and external disturbances in the operating environment can affect their control performance, requiring the motor control strategy to have good anti-interference capabilities. In the electric vehicle industry, existing vector control strategies for PMSMs mostly employ PI control. Traditional PI control has advantages such as simple structure and good stability, but there is a trade-off between dynamic response speed and overshoot, making it difficult to meet the requirements of a wide speed range, and it also has poor anti-interference capabilities. Existing algorithms such as adaptive sliding mode control, fast non-singular terminal sliding mode speed control, and adaptive full-order dynamic sliding mode control have complex structures and are currently difficult to widely apply in practical controllers. Most PMSM algorithms are only verified using simulation software, without considering real control and feedback signals, which limits their application in the process of converting algorithms into actual controllers. Summary of the Invention
[0004] This invention provides a nonlinear active disturbance rejection control method and experimental apparatus for a permanent magnet synchronous motor for electric vehicles, in order to overcome the above-mentioned technical problems.
[0005] To achieve the above objectives, the technical solution of the present invention is as follows:
[0006] A nonlinear active disturbance rejection control method for a permanent magnet synchronous motor in an electric vehicle includes the following steps:
[0007] S1: Establish the state equation for the total disturbance of the permanent magnet synchronous motor;
[0008] S2: Construct a tracking differentiator for a permanent magnet synchronous motor;
[0009] Based on the tracking differentiator and the state equation, a nonlinear extended state observer containing the parameters to be designed is constructed; and an initial nonlinear active disturbance rejection speed controller for the permanent magnet synchronous motor is constructed based on the nonlinear extended state observer.
[0010] S3: Optimize the parameters to be designed in the nonlinear extended state observer based on a genetic algorithm, and then obtain the optimal nonlinear active disturbance rejection speed controller based on the initial nonlinear active disturbance rejection speed controller; specifically including:
[0011] S31: Define the parameters to be designed as individuals in the population of the genetic algorithm; and set the algorithm parameters of the genetic algorithm, wherein the algorithm parameters include at least the initial population size and the maximum number of iterations;
[0012] S32: Construct the optimal performance index function containing the control input square term and the overshoot suppression term of the permanent magnet synchronous motor controller, and obtain the fitness function based on the optimal performance index function;
[0013] S33: Obtain the fitness values of individuals in each population group in the initial population according to the fitness function, and use the roulette wheel selection operator to select the best individual in the initial population;
[0014] S34: Obtain the genetic probability based on the fitness value; and perform a selection operation on the individuals in the initial population other than the best individual to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals; perform crossover / mutation genetic operations on the parent individuals to obtain the offspring population individuals;
[0015] S35: Take the best individual and the offspring population as the new generation population, and identify the globally best individual in the new generation population; check whether the maximum number of iterations has been reached. If so, output the current best individual; otherwise, take the new generation population as the initial population and repeat steps S33 to S34.
[0016] Based on the current optimal individual, the optimal nonlinear active disturbance rejection speed controller is identified and obtained;
[0017] S4: Based on the optimal nonlinear active disturbance rejection speed controller, nonlinear active disturbance rejection control of the permanent magnet synchronous motor of electric vehicle is realized.
[0018] Furthermore, the state equation for the total disturbance of the permanent magnet synchronous motor established by S1 is as follows:
[0019]
[0020] In the formula: x1 represents the state variable; ω m J represents the mechanical angular velocity of the motor; B represents the moment of inertia; T represents the damping coefficient. Lx2 represents the load torque; f represents the extended state variable; u represents the total disturbance; and b0 represents the controller output, which is a simplified form of u(t); i represents the design constant. q p represents the q-axis current of the permanent magnet synchronous motor. n ψ represents the number of pole pairs of the motor; f Indicates the magnetic flux linkage of a permanent magnet; Represents ω m The first derivative of ; y represents the output of the state equation for the total disturbance of the permanent magnet synchronous motor.
[0021] Furthermore, S2 specifically includes the following steps:
[0022] S21: Construct a tracking differentiator for a permanent magnet synchronous motor, its expression is as follows:
[0023]
[0024]
[0025] In the formula: v1 represents the given rotational speed; v2 represents the tracking output rotational speed after the tracking differentiator transitions; r represents the tracking speed factor; Let v2 represent the first derivative; e1 represent the rotational speed error; fal(e,α,δ) represent the nonlinear function; e, α, and δ represent the error signal, nonlinear factor, and filter factor, respectively.
[0026] S22: Based on the tracking differentiator and the state equation, a state observer is constructed as follows:
[0027]
[0028] In the formula: z1 and e2 represent the estimated values of the state variables and the state estimation error, respectively; l1 represents the design constant;
[0029] Based on the nonlinear feedback effect, -l1e1 is defined as the nonlinear feedback term -β1g1(e1). The state observer is then rewritten as a nonlinear state observer, with the following expression:
[0030]
[0031] Furthermore, the total disturbance f of the controller is expanded into a new state variable, and a nonlinear extended state observer containing the parameters to be designed is established based on the nonlinear state observer.
[0032] And the expression for the nonlinear extended state observer is:
[0033]
[0034] In the formula: β1, β2 represent the parameters to be designed; g1(e1), g2(e2) represent nonlinear functions and g1(e1) = fal(e1, α1, δ1); g2(e2) = fal(e2, α1, δ1); Let z1 and z2 represent the first derivatives of z2; z2 represents the total disturbance observation; α1 and δ1 represent the design parameters, i.e., the nonlinearity factor and the filtering factor.
[0035] S23: Construct the initial nonlinear active disturbance rejection speed controller for the permanent magnet synchronous motor based on the nonlinear extended state observer. Its expression is as follows:
[0036]
[0037] u0 = β k fal(e3,α2,δ2),k=1,2,
[0038]
[0039] In the formula: u0 represents the intermediate variable; β k Here, β represents the design parameters and β = 1, 2; e3 represents the error variable; α2, δ2 represent the design parameters, namely the nonlinearity factor and the filtering factor; Represents rotational speed ω m Estimated value; ω * This indicates the target rotational speed.
[0040] Furthermore, S32 constructs a control input square term u containing the permanent magnet synchronous motor controller. 2 (t) and the optimal performance index function for suppressing overshoot are expressed as follows:
[0041]
[0042] In the formula: ε(t) represents the systematic error; t u Indicates the time it takes for the system to reach a stable state; w i (i = 1, 2, 3, 4) represents the weighting value; w4|ε(t)| represents the suppression of overshoot term and w4 >> w1;
[0043] The fitness function F is expressed as: F = 1 / Q.
[0044] Furthermore, S34 specifically includes the following steps:
[0045] S341: Obtain the inheritance probability based on the fitness value, and its expression is as follows:
[0046]
[0047] In the formula: P(x if(x) represents the probability that each individual in the population will inherit the gene from the next generation; i ) represents the individual fitness value of an individual in the population; M represents the population size;
[0048] And for the individuals in the initial population other than the best individual, a selection operation is performed to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals;
[0049] S342: Perform crossover / mutation genetic operations on parent individuals to obtain offspring population individuals;
[0050] And the expression for performing crossover / mutation genetic operations is:
[0051]
[0052] In the formula: x′ i ,x′ j Indicates individuals in a population after crisscross inheritance; x i ,x j Denotes the parent individual; γ represents the crossover factor and γ∈(0,1]; x′ ik Represents an individual in the population after mutation; x ik Indicates the mutation point; x represents ik The upper and lower bounds of the value; ζ represents the variation factor and ζ∈[0,1].
[0053] An experimental device for nonlinear active disturbance rejection control of a permanent magnet synchronous motor for electric vehicles includes a PC, a switch, an NI controller, a controlled object simulator, and a data interaction box.
[0054] The PC is connected to the switch via Ethernet for bidirectional communication.
[0055] The switch is bidirectionally connected to the NI controller and the controlled object simulator via Ethernet.
[0056] The PC is used to write the nonlinear active disturbance rejection control method of the permanent magnet synchronous motor of the electric vehicle into a control algorithm program and generate an executable programming file based on Simulink software; at the same time, it can also write and obtain the PMSM simulation circuit program file of the permanent magnet synchronous motor of the electric vehicle based on Simulink software.
[0057] The PC is also used to compile programming files into .dll files and download them to the NI controller based on StarSimRCP software; and to download PMSM simulation circuit program files to the controlled object simulator based on StarSimHIL software.
[0058] The NI controller is used to compile a .dll file according to the programming file, simulate and acquire the control signal of the permanent magnet synchronous motor, and transmit the SVPWM signal to the controlled object simulator through the data interaction box.
[0059] Furthermore, the control signal includes at least a current signal, an encoder signal, and an SVPWM signal.
[0060] The controlled object simulator is used to implement nonlinear active disturbance rejection control experiments on permanent magnet synchronous motors of electric vehicles based on PMSM simulation circuit program files and control signals.
[0061] Beneficial Effects: This invention provides a nonlinear active disturbance rejection control method and experimental apparatus for a permanent magnet synchronous motor (PMSM) in an electric vehicle. It constructs a tracking differentiator for the PMSM and combines it with the state equation to obtain a nonlinear extended state observer containing the parameters to be designed. The tracking differentiator softens the reference command and utilizes the transient process to coordinate the overshoot and speed of the control process, improving the robustness of the system. The constructed nonlinear extended state observer can estimate the system's state variables and real-time disturbances. The output state of the nonlinear extended state observer efficiently compensates for nonlinear state errors, improving the system's control performance. Based on a genetic algorithm, the parameters to be designed in the nonlinear extended state observer are optimized to obtain the optimal nonlinear active disturbance rejection speed controller. Since the parameters to be designed in the nonlinear extended state observer determine the system's state estimation performance, this invention uses a genetic algorithm to optimize the parameters of the nonlinear extended state observer, making the speed estimation of the nonlinear active disturbance rejection technology more accurate and precise. Attached Figure Description
[0062] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0063] Figure 1 This is a flowchart of the nonlinear active disturbance rejection control method for permanent magnet synchronous motors in electric vehicles according to the present invention;
[0064] Figure 2 This is a block diagram illustrating the control principle of the permanent magnet synchronous motor in this embodiment;
[0065] Figure 3 This is a block diagram of the nonlinear active disturbance rejection controller for the permanent magnet synchronous motor in this embodiment;
[0066] Figure 4This is a system block diagram of a hardware-in-the-loop experimental setup for a nonlinear active disturbance rejection speed controller based on a genetic algorithm for a permanent magnet synchronous motor. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0068] This embodiment provides a nonlinear active disturbance rejection control method for a permanent magnet synchronous motor in an electric vehicle, such as... Figure 1 As shown, it includes the following steps:
[0069] S1: Establish the state equation for the total disturbance of the permanent magnet synchronous motor, such as Figure 2 As shown, the specific steps include:
[0070] S11: Set the ideal conditions for the mathematical model of permanent magnet synchronous motor; the ideal conditions for permanent magnet synchronous motor are assumed to be: (1) ignore the magnetic reluctance of the stator and rotor cores, and disregard eddy current and hysteresis losses; (2) the excitation magnetic field generated by the permanent magnet and the armature reaction magnetic field generated by the winding are sinusoidally distributed in the air gap; (3) ignore the influence of stator winding tooth and slot asymmetry on the air gap magnetic field distribution; (4) do not consider the influence of temperature on the motor;
[0071] S12: Establish the voltage and flux linkage equations for the stator winding of the permanent magnet synchronous motor;
[0072] The voltage equation for the stator winding of a permanent magnet synchronous motor is:
[0073]
[0074] The stator winding flux linkage equation is:
[0075]
[0076] Introducing equation (1) into equation (2), the voltage equation of the stator winding of the permanent magnet synchronous motor can be rewritten as:
[0077]
[0078] In the formula: u d ,u q These represent the voltages on the d-axis and q-axis of the permanent magnet synchronous motor, respectively; i d i q ψ represents the current along the d-axis and q-axis of the permanent magnet synchronous motor, respectively; fω represents the magnetic flux linkage of a permanent magnet; e L represents electric angular velocity; d ,L q These represent the inductances of the d-axis and q-axis of the permanent magnet synchronous motor, respectively.
[0079] S13: By considering the voltage equation of the stator winding of the permanent magnet synchronous motor, the electromagnetic torque equation and mechanical motion equation of the stator winding of the permanent magnet synchronous motor are established.
[0080] The electromagnetic torque equation for a permanent magnet synchronous motor is:
[0081]
[0082] The electromagnetic torque consists of two parts: permanent magnet torque and reluctance torque.
[0083] The mechanical motion equations of a permanent magnet synchronous motor are:
[0084]
[0085] In the formula: ω m J represents the mechanical angular velocity of the motor; B represents the moment of inertia; T represents the damping coefficient. L Indicates load torque;
[0086] From equations (4) and (5), we can obtain:
[0087]
[0088] In the formula: p n Indicates the number of pole pairs of the motor;
[0089] S14: If the disturbances of the motor load, friction torque, and the system's own motor sensors are considered as the total disturbance, then equation (6) can be rewritten as the state equation for the total disturbance of the permanent magnet synchronous motor, and the expression is:
[0090]
[0091] In the formula: u represents the controller output; the total disturbance f is:
[0092]
[0093] Let x1 = ω m x2=f, and equation (7) can be written in the form of a state equation:
[0094]
[0095] In the formula: b0 represents the design constant; y represents the output of the state equation for the total disturbance of the permanent magnet synchronous motor;
[0096] S2: Construct a tracking differentiator for a permanent magnet synchronous motor;
[0097] Based on the tracking differentiator and the state equation, a nonlinear extended state observer containing the parameters to be designed is constructed; and an initial nonlinear active disturbance rejection speed controller for the permanent magnet synchronous motor is constructed based on the nonlinear extended state observer.
[0098] This embodiment proposes a nonlinear active disturbance rejection controller for permanent magnet synchronous motors, based on the design principles of simple structure and convenient parameter adjustment; such as Figure 3 As shown, the core of the proposed Active Disturbance Rejection Control (ADRC) method is to estimate the system state and disturbances by designing an extended state observer, and to achieve precise control of the system by designing a nonlinear state error feedback control law. The structural block diagram of the nonlinear ADRC controller proposed in this embodiment is shown below. Figure 3 As shown, the specific components include: a nonlinear active disturbance rejection speed controller consisting of a tracking differentiator (TD), a nonlinear extended state observer (NLESO), and a nonlinear state error feedback (NLSEF); the tracking differentiator softens the reference command and utilizes the transient process to coordinate the overshoot and speed of the control process, thereby improving the robustness of the system; the nonlinear extended state observer estimates the system's state variables and real-time disturbances; the nonlinear state error feedback utilizes nonlinear error combinations, which are efficiently compensated by the output state of the nonlinear extended state observer, thereby improving the system's control performance;
[0099] Specifically, the following steps are included:
[0100] S21: Construct a tracking differentiator for a permanent magnet synchronous motor, its expression is as follows:
[0101]
[0102] In the formula: v1 represents the given rotational speed ω ref v2 represents the tracking output speed ω* after the transition of the tracking differentiator TD; r represents the tracking speed factor, the value of which is determined according to the speed of the transition process and the performance of the system itself. The larger the value of r, the faster the tracking speed. Let v2 represent the first derivative; e1 represent the rotational speed error; fal(e,α,δ) represent the nonlinear function; e, α, and δ represent the error signal, nonlinear factor, and filter factor, respectively.
[0103] When designing a nonlinear extended state observer, the perturbation information f in equation (9) is unknown, thus preventing its utilization during observer design. Therefore, the perturbation information is discarded when establishing the state observer, and the equation of the state observer is described as follows:
[0104]
[0105] In the formula: z1 and e2 represent the estimated values of the state variables and the state estimation error, respectively; l1 represents the design constant;
[0106] Although equation (12) discards the function f, the function still plays a role in the system. To better suppress disturbances, -l1e1 is defined as the nonlinear feedback term -β1g1(e1) based on the nonlinear feedback effect. Then, equation (12) is rewritten as a nonlinear state observer, and its expression is:
[0107]
[0108] Therefore, as long as the appropriate parameter β1 is chosen, the nonlinear state observer equation (13) for the nonlinear function g1(e1) can better estimate the estimated value of the state variable in equation (12);
[0109] S22: To estimate the disturbance, the total disturbance is expanded into new state variables, thereby establishing a nonlinear extended state observer, the expression of which is:
[0110]
[0111] In the formula: β1, β2 represent the parameters to be designed; g1(e1), g2(e2) represent nonlinear functions and g1(e1) = fal(e1, α1, δ1); g2(e2) = fal(e2, α1, δ1); Let z1 and z2 represent the first derivatives of z2; z2 represents the total disturbance observation; α1 and δ1 represent the design parameters, i.e., the nonlinearity factor and the filtering factor.
[0112] S23: Construct a nonlinear active disturbance rejection speed controller based on a nonlinear extended state observer;
[0113] Furthermore, the expression for the nonlinear active disturbance rejection speed controller is:
[0114]
[0115] In the formula: z2 represents the total disturbance observation value. Substituting equation (15) into equation (7) and ignoring the estimation error of the disturbance, we can obtain the intermediate variable u0 as:
[0116]
[0117] make Then the equation for u0 can be expressed as:
[0118] u0 = β k fal(e3,α2,δ2)
[0119] In the formula: u0 represents the intermediate variable; β k Here, β represents the design parameters and β = 1, 2; e3 represents the error variable; α2, δ2 represent the design parameters, namely the nonlinearity factor and the filtering factor; Represents rotational speed ω m Estimated value; ω * This indicates the target rotational speed.
[0120] This embodiment also includes:
[0121] S101: Prove the asymptotic stability of the nonlinear extended state observer:
[0122] By combining equations (9) and (13), the state error equation is obtained as follows:
[0123]
[0124] In the formula: h(t) represents a nonlinear function;
[0125] Let e 11 =e1, Equation (17) can then be rewritten as:
[0126]
[0127] The equation for constructing the Lyapunov function V1 is as follows:
[0128]
[0129] In the formula: τ represents the time variable;
[0130] By using the mean value theorem for integrals, we know that there must exist ξ∈[0,e... 11 ]satisfy:
[0131]
[0132] In the formula: ξ represents the design parameter;
[0133] Combining equations (19) and (20), we get:
[0134]
[0135] From the expression of the fal function, we know that e 11 Since fal(ξ,α1,δ1) has the same sign and β2>0, we can obtain V1>0.
[0136] Differentiating and simplifying the Lyapunov function in equation (19), we get:
[0137]
[0138] The function fal(e) 11 The expression α1, δ1) is monotonically increasing, its derivative is greater than zero, and it is a bounded real number within a finite error range. Therefore, let K = fal′(e 11 From α1,δ1)>0, we can obtain:
[0139]
[0140] When h > 0, it satisfies or And when h < 0, or Then there is When e 22 When = 0, In summary, the nonlinear extended state observer (14) has asymptotic stability, thus completing the proof;
[0141] S102: Proof of asymptotic stability of a nonlinear active disturbance rejection speed controller:
[0142] By defining the systematic error ε=x1-v1, taking its derivative and substituting equations (9) and (15) into the equation, we can obtain:
[0143]
[0144] By using the nonlinear extended state observer to determine asymptotic stability, we can deduce z1→x1, z2→x2, and v1=v2, hence ε≈e3. Therefore, equation (24) can be rewritten as:
[0145]
[0146] The equation for the Lyapunov function is constructed based on equation (25) as follows:
[0147]
[0148] Differentiating equation (26) yields:
[0149]
[0150] From the equation of the fal function, we know that ε and fal(ε,α2,δ2) have the same sign, therefore εfal(ε,α2,δ2) is greater than zero when β k When >0, there is When ε = 0, This proves that the nonlinear active disturbance rejection speed controller (15) has asymptotic stability. Q.E.D.
[0151] S3: Based on the genetic algorithm, the parameters to be designed in the nonlinear extended state observer are optimized to obtain the optimal nonlinear active disturbance rejection speed controller;
[0152] In this embodiment, the nonlinear extended state observer has a significant impact on the control performance of the nonlinear active disturbance rejection controller. The parameters β1 and β2 of the nonlinear extended state observer determine the state estimation performance of the system and directly affect the speed and accuracy of the nonlinear active disturbance rejection technology estimation. A genetic algorithm is used to automatically optimize the parameters of the nonlinear extended state observer.
[0153] Specifically, it includes:
[0154] S31: Define the parameters to be designed as individuals in the population of the genetic algorithm; and set the algorithm parameters of the genetic algorithm, wherein the algorithm parameters include at least the initial population size and the maximum number of iterations;
[0155] Specific initial population encoding and initialization: The optimization ranges of parameters β1 and β2 are determined to be [0.1, 100] and [0.1, 2500] respectively by trial and error. When initializing the population, the population size is set to 30, the number of iterations is set to 50, and the parameter pair (β1, β2) is used as the population individual.
[0156] S32: Construct the square term of the control input u including the permanent magnet synchronous motor controller 2 (t) and the optimal performance index function for suppressing overshoot, and obtain the fitness function based on the optimal performance index function;
[0157] Specifically, the constructed optimal performance index function is as follows:
[0158]
[0159] In the formula: ε(t) represents the systematic error; t u Indicates the time it takes for the system to reach a stable state; w i (i = 1, 2, 3, 4) represents the weighting value; w4|ε(t)| represents the suppression of overshoot term and w4 >> w1;
[0160] The fitness function F is expressed as: F = 1 / Q;
[0161] S33: Obtain the fitness values of individuals in each population group in the initial population according to the fitness function, and use the roulette wheel selection operator to select the best individual in the initial population;
[0162] S34: Obtain the genetic probability based on the fitness value; and perform a selection operation on the individuals in the initial population other than the best individual to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals; perform crossover / mutation genetic operations on the parent individuals to obtain the offspring population individuals;
[0163] Specifically, the following steps are included:
[0164] S341: Obtain the inheritance probability based on the fitness value, and its expression is as follows:
[0165]
[0166] In the formula: P(x i f(x) represents the probability that each individual in the population will inherit the gene from the next generation; i ) represents the individual fitness value of an individual in the population; M represents the population size;
[0167] And for the individuals in the initial population other than the best individual, a selection operation is performed to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals;
[0168] S342: Perform crossover / mutation genetic operations on parent individuals to obtain offspring population individuals;
[0169] And the expression for performing crossover / mutation genetic operations is:
[0170]
[0171] In the formula: x i ′,x′ j Indicates individuals in a population after crisscross inheritance; x i ,x j x′ represents the parent individual; γ represents the crossover factor and γ∈(0,1]; to improve the local search capability of the genetic algorithm and prevent local optima, uniform mutation is used for mutation operation; ik Represents an individual in the population after mutation; x ik Indicates the mutation point; x represents ik The upper and lower bounds of the value; ζ represents the variation factor and ζ∈[0,1] is a random number that conforms to a uniform distribution;
[0172] S35: Take the best individual and the offspring population as the new generation population, and identify the globally best individual in the new generation population; check whether the maximum number of iterations has been reached. If so, output the current best individual; otherwise, take the new generation population as the initial population and repeat steps S33 to S34.
[0173] Based on the current optimal individual, the optimal nonlinear active disturbance rejection speed controller is identified and obtained;
[0174] S4: Based on the optimal nonlinear active disturbance rejection speed controller, nonlinear active disturbance rejection control of the permanent magnet synchronous motor of electric vehicle is realized.
[0175] This embodiment proposes a nonlinear active disturbance rejection speed controller (GA-NLADRC) for permanent magnet synchronous motors by combining a genetic algorithm (GA) with nonlinear active disturbance rejection control (NLADRC). The control principle block diagram of the proposed permanent magnet synchronous motor is shown below. Figure 2 As shown, it specifically includes:
[0176] The speed control process of the permanent magnet synchronous motor is as follows:
[0177] S201: The speed loop adopts a nonlinear ADRC controller based on a genetic algorithm. The input of the controller is the difference between the speed setpoint ω* and the actual speed value ω, and the output is the current loop setpoint.
[0178] S202: The current feedback value i obtained by transforming the three-phase current signal fed back from the permanent magnet synchronous motor through Clarke transform and Park transform. d i q The difference between the set values and feedback values of the d-axis and q-axis currents is output as u by the current loop PI controller. d ,u q ;
[0179] S203:u d ,u q The Park inverse converter and SVPWM module output pulse modulation signal to the inverter, and the inverter generates three-phase current to drive the motor.
[0180] An experimental setup for nonlinear active disturbance rejection control of a permanent magnet synchronous motor in an electric vehicle, such as... Figure 4 As shown, it includes a PC, a switch, an NI controller, a controlled object simulator, and a data interaction box;
[0181] Specifically, the NI controller uses a controller from National Instruments (NI) and consists of components such as the NI PXIe-11082 baseboard, PXIe-7846R FPGA, and PXI8840 controller. The controlled object simulator consists of components such as the PXIe-11082 baseboard, PXIe-7846R FPGA, PXIe-7868R FPGA, and PXI8840 controller; the controlled object is a hardware simulation system. The advantages of this experimental setup in controller development are: the use of actual I / O signals for transmission between the controller and the controlled object simulator allows for consideration of factors such as real I / O signal transmission and real-time performance, enabling testing that would otherwise require extensive physical testing to be completed during the controller prototype development stage, significantly shortening the controller development cycle; the controller algorithm program is first built using Matlab / Simulink, and then the Matlab / Simulink program is directly converted into executable code and downloaded to the actual controller, improving the efficiency of control algorithm program development.
[0182] The PC is connected to the switch via Ethernet for bidirectional communication.
[0183] The switch is bidirectionally connected to the NI controller and the controlled object simulator via Ethernet.
[0184] The PC is used to write the nonlinear active disturbance rejection control method of the permanent magnet synchronous motor of the electric vehicle into a control algorithm program and generate an executable programming file based on Simulink software; at the same time, it can also write and obtain the PMSM simulation circuit program file of the permanent magnet synchronous motor of the electric vehicle based on Simulink software.
[0185] The PC is also used to compile programming files into .dll files and download them to the NI controller based on StarSimRCP software; and to download PMSM simulation circuit program files to the controlled object simulator based on StarSimHIL software.
[0186] The NI controller is used to compile a .dll file according to the programming file, simulate and acquire the control signal of the permanent magnet synchronous motor, and transmit the SVPWM signal to the controlled object simulator through the data interaction box;
[0187] Furthermore, the control signal includes at least a current signal, an encoder signal, and an SVPWM signal.
[0188] The controlled object simulator is used to implement nonlinear active disturbance rejection control experiments on permanent magnet synchronous motors of electric vehicles based on PMSM simulation circuit program files and control signals.
[0189] In this embodiment, the experimental device can automatically generate executable code for the control algorithm and download it to the controller. Using real I / O signals, it can realize the rapid design and development of electric vehicle magnetic synchronous motor controllers. Through this experimental platform, the nonlinear active disturbance rejection speed control of permanent magnet synchronous motors based on genetic algorithms (PMSM) and other experiments can be verified.
[0190] S524: Connect the NI controller to the controlled object simulator using a data exchange box. The NI controller transmits the SVPWM signal and load signals (such as motor speed, controller output current, and other real signals) to the controlled object simulator through the data exchange box. The controlled object simulator starts running according to the input signals and outputs the motor current signal and the encoder signal (motor speed). At the same time, the controlled object simulator transmits the current signal and the encoder signal (signal for measuring motor speed) back to the controller to facilitate subsequent experimental result verification and analysis based on expert experience.
[0191] The beneficial effects of the method and experimental apparatus described in this embodiment are as follows: By constructing a tracking differentiator for a permanent magnet synchronous motor and combining it with the state equation to obtain a nonlinear extended state observer containing the parameters to be designed; the tracking differentiator can soften the reference command, utilize the transient process to coordinate the overshoot and speed of the control process, and improve the robustness of the system; the constructed nonlinear extended state observer can estimate the system's state variables and real-time disturbances; and the output state of the nonlinear extended state observer can efficiently compensate for nonlinear state errors, improving the system's control performance; the parameters to be designed in the nonlinear extended state observer are optimized using a genetic algorithm to obtain the optimal nonlinear active disturbance rejection speed controller; since the parameters to be designed in the nonlinear extended state observer determine the system's state estimation performance, this invention optimizes the parameters of the nonlinear extended state observer using a genetic algorithm, making the speed estimation of the nonlinear active disturbance rejection technology more accurate and precise.
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A nonlinear active disturbance rejection control method for a permanent magnet synchronous motor in an electric vehicle, characterized in that, Specifically, the following steps are included: S1: Establish the state equation for the total disturbance of the permanent magnet synchronous motor, specifically including the following steps: S11: Set the ideal conditions for the mathematical model of the permanent magnet synchronous motor; the ideal conditions for the permanent magnet synchronous motor are as follows: ignore the magnetic reluctance of the stator and rotor cores, and disregard eddy current and hysteresis losses; the excitation magnetic field generated by the permanent magnet and the armature reaction magnetic field generated by the winding are sinusoidally distributed in the air gap; ignore the influence of stator winding tooth and slot asymmetry on the air gap magnetic field distribution; and do not consider the influence of temperature on the motor. S12: Establish the voltage and flux linkage equations for the stator winding of the permanent magnet synchronous motor; The voltage equation for the stator winding of a permanent magnet synchronous motor is: (1) The stator winding flux linkage equation is: (2) Introducing equation (1) into equation (2), the voltage equation of the stator winding of the permanent magnet synchronous motor can be rewritten as: (3) In the formula: These represent permanent magnet synchronous motors. d shaft and q Voltage on the shaft; These represent permanent magnet synchronous motors. d shaft and q The current in the shaft; Indicates the magnetic flux linkage of a permanent magnet; Indicates electric angular velocity; These represent permanent magnet synchronous motors. d shaft and q The inductance of the shaft; S13: By considering the voltage equation of the stator winding of the permanent magnet synchronous motor, the electromagnetic torque equation and mechanical motion equation of the stator winding of the permanent magnet synchronous motor are established. The electromagnetic torque equation for a permanent magnet synchronous motor is: (4) The electromagnetic torque consists of two parts: permanent magnet torque and reluctance torque. The mechanical motion equations of a permanent magnet synchronous motor are: (5) In the formula: This indicates the mechanical angular velocity of the motor; J Indicates the moment of inertia; B Indicates the damping coefficient; T L Indicates load torque; From equations (4) and (5), we can obtain: (6) In the formula: Indicates the number of pole pairs of the motor; S14: If the disturbances of the motor load, friction torque, and the system's own motor sensors are considered as the total disturbance, then equation (6) can be rewritten as the state equation for the total disturbance of the permanent magnet synchronous motor, and the expression is: (7) In the formula: u Indicates controller output; total disturbance. f for: (8) make = , = f Equation (7) can be written in the form of a state equation: (9) In the formula: Indicates design constants; The output of the state equation representing the total disturbance of the permanent magnet synchronous motor; S2: Construct a tracking differentiator for a permanent magnet synchronous motor; Based on the tracking differentiator and the state equation, a nonlinear extended state observer containing the parameters to be designed is constructed; and an initial nonlinear active disturbance rejection speed controller for the permanent magnet synchronous motor is constructed based on the nonlinear extended state observer. Specifically, the following steps are included: S21: Construct a tracking differentiator for a permanent magnet synchronous motor, its expression is as follows: In the formula: Indicates the given rotational speed; This indicates the tracking output speed after the tracking differentiator transitions. r Represents the tracking speed factor; express The first derivative; Indicates rotational speed error; Represents a nonlinear function; e , α , δ These represent the error signal, nonlinearity factor, and filter factor, respectively. S22: Based on the tracking differentiator and the state equation, a state observer is constructed as follows: In the formula: z 1, These represent the estimated value of the state variable and the state estimation error, respectively. Indicates design constants; And based on the nonlinear feedback effect, Defined as a nonlinear feedback term - β 1 g 1( e 1), then the state observer is rewritten as a nonlinear state observer, and its expression is: And the total disturbance of the controller f Expand into new state variables, and build a nonlinear extended state observer containing the parameters to be designed based on the nonlinear state observer; And the expression for the nonlinear extended state observer is: In the formula: Indicates the parameters to be designed; Represents a nonlinear function and ; ; express The first derivative; This represents the total disturbance observations; This refers to the design parameters, namely the nonlinearity factor and the filtering factor; S23: Construct the initial nonlinear active disturbance rejection speed controller for the permanent magnet synchronous motor based on the nonlinear extended state observer. Its expression is as follows: , In the formula: Indicates intermediate variables; Indicate design parameters and ; Indicates the error variable; This refers to the design parameters, namely the nonlinearity factor and the filtering factor; Indicates rotational speed Estimated value; Indicates the target rotational speed; S3: Optimize the parameters to be designed in the nonlinear extended state observer based on a genetic algorithm, and then obtain the optimal nonlinear active disturbance rejection speed controller based on the initial nonlinear active disturbance rejection speed controller; specifically including: S31: Define the parameters to be designed as individuals in the population of the genetic algorithm; and set the algorithm parameters of the genetic algorithm, wherein the algorithm parameters include at least the initial population size and the maximum number of iterations; S32: Construct the optimal performance index function containing the control input square term and the overshoot suppression term of the permanent magnet synchronous motor controller, and obtain the fitness function based on the optimal performance index function; Construct the control input square term including the permanent magnet synchronous motor controller The optimal performance index function for suppressing overshoot is expressed as follows: In the formula: Indicates systematic error; Indicates the time it takes for the system to reach stability; Indicates the weighted value; Indicates suppression of overshoot term and ; The fitness function F The expression is: F =1 / Q ; S33: Obtain the fitness values of individuals in each population group in the initial population according to the fitness function, and use the roulette wheel selection operator to select the best individual in the initial population; S34: Obtain the genetic probability based on the fitness value; and perform a selection operation on the individuals in the initial population other than the best individual to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals; perform crossover / mutation genetic operations on the parent individuals to obtain the offspring population individuals; S35: Take the best individual and the offspring population as the new generation population, and identify the globally best individual in the new generation population; check whether the maximum number of iterations has been reached. If so, output the current best individual; otherwise, take the new generation population as the initial population and repeat steps S33 to S34. Based on the current optimal individual, the optimal nonlinear active disturbance rejection speed controller is identified and obtained; S4: Based on the optimal nonlinear active disturbance rejection speed controller, nonlinear active disturbance rejection control of the permanent magnet synchronous motor of electric vehicle is realized.
2. The nonlinear active disturbance rejection control method for a permanent magnet synchronous motor in an electric vehicle according to claim 1, characterized in that, S34 specifically includes the following steps: S341: Obtain the inheritance probability based on the fitness value, and its expression is as follows: In the formula: This represents the probability that an individual in each population will inherit the traits of the next generation. M represents the individual fitness value of a population; M represents the population size. And for the individuals in the initial population other than the best individual, a selection operation is performed to select the individuals whose genetic probability meets the preset probability threshold as the parent individuals; S342: Perform crossover / mutation genetic operations on parent individuals to obtain offspring population individuals; And the expression for performing crossover / mutation genetic operations is: In the formula: This represents individuals in a population after crisscross inheritance. Represents the parent generation; Represents the cross factor and ; Indicates an individual in the population after the mutation; Indicates the mutation point; , express The upper and lower boundaries of the values; Indicates the variable factor and .
3. An experimental apparatus for a nonlinear active disturbance rejection control method for a permanent magnet synchronous motor in an electric vehicle according to any one of claims 1 to 2, characterized in that, This includes a PC, a switch, an NI controller, a controlled object simulator, and a data interaction box; The PC is connected to the switch via Ethernet for bidirectional communication. The switch is bidirectionally connected to the NI controller and the controlled object simulator via Ethernet. The PC is used for... The software program converts the nonlinear active disturbance rejection control method of the permanent magnet synchronous motor in the electric vehicle into a control algorithm program and generates an executable programming file; simultaneously, it can also be based on... Software for writing and acquiring PMSM simulation circuit program files for electric vehicle permanent magnet synchronous motors; The PC is also used for... RCP software compiles the programming files into The file is downloaded to the NI controller; based on HIL software downloads the PMSM simulation circuit program file to the controlled object simulator; The NI controller is used to compile according to the programming file. The file simulates and acquires the control signals of the permanent magnet synchronous motor, and transmits the SVPWM signal to the controlled object simulator through the data interaction box; Furthermore, the control signal includes at least a current signal, an encoder signal, and an SVPWM signal; The controlled object simulator is used to perform nonlinear active disturbance rejection control experiments on permanent magnet synchronous motors of electric vehicles based on PMSM simulation circuit program files and control signals.
Citation Information
Patent Citations
Permanent magnet synchronous motor torque ripple suppression method for improving active disturbance rejection control
CN116317720A