V2G charging pile bidirectional AC / DC converter control method and system
Through the combination of virtual synchronous machine and fuzzy PI controller, and the use of genetic algorithm to optimize the model prediction controller, the stability and power quality problems of the V2G charging pile bidirectional AC/DC converter in the power grid are solved, and the smoothness of the power grid is achieved. Switching and cost reduction.
Patent Information
- Application Number
- CN202410680239.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-10-11
AI Technical Summary
The existing two-way AC/DC converter in V2G charging piles cannot make full use of electric vehicle resources to provide services to the grid, resulting in grid frequency fluctuations and power quality degradation, which increases grid management costs.
The virtual synchronous machine algorithm is combined with the fuzzy PI controller, and the genetic algorithm is used to optimize the model prediction controller to select the optimal switch tube on-off state to achieve power quality management and improve system dynamic performance and vehicle-network interaction stability.
The inertial damping characteristics of the bidirectional AC/DC converter of the V2G charging pile are improved to achieve smooth switching of different working states, reduce system impact, enhance grid stability, and reduce grid management costs.
Smart Images

Figure CN118763703A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of V2G charging pile control technology, and in particular to a V2G charging pile bidirectional AC / DC converter control method and system. Background Art
[0002] With the popularity of electric vehicles around the world, the number of electric vehicles is showing a rapid growth trend. The disordered charging behavior of electric vehicles will bring huge safety risks to the normal operation of the power grid. At the same time, the access of unbalanced, nonlinear loads and energy storage equipment has further aggravated the frequency fluctuations and power quality degradation of the power grid, thereby increasing the pressure on the investment and operating costs of power quality management of the power grid. In the development of the future power system, the vehicle-to-grid (V2G) operation mode is of great significance. It can provide support for the operation of the power grid by making full use of electric vehicle resources. In this context, V2G is regarded as an important energy storage support for the development of new energy. Therefore, studying how to make full use of the bidirectional AC / DC converter in the V2G charging pile to provide services for vehicle-to-grid interaction has become a direction worth exploring.
[0003] Among them, the bidirectional AC / DC converter can realize the bidirectional transmission of electric energy between electric vehicles and the power grid. In order to enable the V2G charging pile to actively respond to the power grid demand, the present invention combines the virtual synchronous machine technology on the power supply side and the load side with the bidirectional power flow to form a virtual synchronous machine control strategy (VSG control) for the bidirectional AC / DC converter of the V2G charging pile. The model predictive control based on genetic algorithm is used instead of the traditional current loop PI control to improve the dynamic performance of the system. The power quality control consists of a harmonic compensation loop and a reactive power compensation loop. The harmonic compensation loop adopts i p -i q The harmonics are extracted by the method, and together with the fundamental current generated by the VSG, they constitute the reference current, which is then input into the model predictive control; the reactive compensation loop calculates the reactive compensation value as the reactive power reference value in the VSG. The strategy proposed in the present invention has a simple structure, which enables the bidirectional AC / DC converter of the V2G charging pile to have a bidirectional inertial damping characteristic, thereby improving the stability of electric vehicle charging and discharging. At the same time, the designed power quality control loop can improve the power quality of the common connection point. Summary of the invention
[0004] In view of the above-mentioned problems, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is: how to fully utilize the bidirectional AC / DC converter in the V2G charging pile.
[0006] To solve the above technical problems, the present invention provides the following technical solutions: a V2G charging pile bidirectional AC / DC converter control method, comprising: collecting grid-side voltage and current data of the bidirectional AC / DC converter of the V2G charging pile; obtaining electromagnetic power through fuzzy PI controller optimization, obtaining fundamental current reference value through virtual synchronous machine algorithm, and calculating compensation current reference value through harmonic extraction algorithm; establishing a model prediction controller based on genetic algorithm, selecting the optimal switch tube breaking state, controlling the three-phase bridge circuit switch tube, and realizing power quality management.
[0007] As a preferred solution of the bidirectional AC / DC converter control method for a V2G charging pile described in the present invention, the electromagnetic power includes the electromagnetic power in the inverter mode and the electromagnetic power in the rectifier mode; in the inverter mode, the active power output is stabilized, and the active power control loop is adopted. The electromagnetic power in the inverter mode is expressed as:
[0008] P m1 =P set +k f (ω-ω n )
[0009] Among them, P m1 is the electromagnetic power in inverter mode, k f is the frequency adjustment coefficient, ω is the mechanical angular velocity, ω n is the rated angular velocity of the power grid, P set is the rated active power value of the bidirectional AC / DC converter during inversion; in the rectification mode, the active power control loop must be replaced by the DC bus voltage control loop, and the actual voltage value U dc , set DC voltage reference value U dcref , using the fuzzy PI controller, combined with the active frequency droop control formula, the electromagnetic power under the corresponding rectification mode is expressed as:
[0010]
[0011] Among them, P m2 is the electromagnetic power in rectification mode, U dc is the measured voltage on the DC side, U dcref is the DC side reference voltage, s is the integral variable, k P is the proportional control coefficient, k I is the integral control coefficient.
[0012] As a preferred solution of the V2G charging pile bidirectional AC / DC converter control method described in the present invention, the fundamental current reference value includes the virtual electromotive force e of the virtual synchronous machine phase A, phase B, and phase C. a 、e b 、ec Calculate the fundamental reference current, and the virtual synchronous machine algorithm of the virtual synchronous generator calculates the phase angle θ between the excitation potential and the terminal voltage as follows:
[0013]
[0014] Where θ is the phase angle between the virtual synchronous machine excitation potential and the terminal voltage, J is the moment of inertia, T e is the mechanical torque, T m is the electromagnetic torque, D p is the damping coefficient, u a 、u b 、u c are the phase voltages of phases A, B, and C respectively, i a 、i b 、i c are the three-phase line currents of A, B, and C respectively; when the bidirectional AC / DC converter works in the inverter mode, the phase angle θ between the excitation potential and the terminal voltage calculated by the virtual synchronous machine algorithm of the virtual synchronous generator is expressed as:
[0015]
[0016] When the bidirectional AC / DC converter operates in the inverter mode and the rectifier mode, the virtual synchronous machine algorithm is used to calculate the virtual potential, which is expressed as:
[0017]
[0018] Among them, E p is the virtual potential of the virtual synchronous machine, E0 is the no-load potential of the motor, k u is the voltage regulation coefficient, U ref is the reference value of the voltage at the virtual synchronous machine end, U is the instantaneous value of the voltage at the virtual synchronous machine end, Q ref is the reactive power reference value, Q is the instantaneous reactive power value, and K is the integral coefficient; in the inversion and rectification mode of the bidirectional AC / DC converter, according to the phase angle θ between the excitation potential and the terminal voltage of the virtual synchronous machine and the virtual potential E p , respectively determine the virtual electromotive force e of phase A, phase B, and phase C a 、e b 、e c , expressed as:
[0019]
[0020] Among them, e a is the virtual electromotive force of phase A when the bidirectional AC / DC converter works in inverter mode and rectification mode, e b is the virtual electromotive force of phase B when the bidirectional AC / DC converter works in inverter mode and rectification mode, ec The virtual electromotive force of phase C of the bidirectional AC / DC converter when it works in the inverter mode and the rectifier mode; according to the virtual electromotive force of phase A, phase B, and phase C of the virtual synchronous machine, e a 、e b 、e c Calculate the fundamental reference current In rectification mode and inverter mode, the fundamental reference current is expressed as:
[0021]
[0022] in, is the fundamental reference current, L f is the synchronous inductor, R f is the stator resistance, e x is the phase virtual electromotive force, u x is the instantaneous value of the three-phase voltage on the grid side, x=a, b or c, corresponding to phase A, phase B or phase C.
[0023] As a preferred solution of the V2G charging pile bidirectional AC / DC converter control method described in the present invention, the fuzzy PI controller includes a fuzzy PI controller formed by combining a fuzzy algorithm with a PI control. The fuzzy PI controller adopts the Mamdani reasoning method and is expressed in the form of if-then by setting control rules, wherein the fuzzy subsets of the input variables are {negative large NB, negative medium NM, negative small NS, zero ZE, positive small PS, positive medium PM, positive large PB}, and the membership functions of the input variables are all triangular, and the membership functions of the output variables adopt an intermediate triangle and a Gaussian type at both ends to realize input and output; the input signal of the fuzzy PI controller includes the measured voltage U on the DC side dc And DC side reference voltage U dcref The difference between x Sum difference change rate ec x The output signal is the parameter adjustment proportional adjustment coefficient k of the PI controller P and integral adjustment coefficient k I .
[0024] As a preferred solution of the V2G charging pile bidirectional AC / DC converter control method described in the present invention, the compensation current reference value includes: p -i q The three-phase current detection method obtains the three-phase harmonic current i xh , then the compensation current reference value is expressed as:
[0025]
[0026] in, is the compensation current reference value, i xhis the current harmonic component, i p is the instantaneous active current, i q is the instantaneous reactive current; the reference current of the model predictive controller It is expressed as:
[0027]
[0028] in, is the reference current of the model predictive controller; the instantaneous reactive power is expressed as:
[0029]
[0030] Among them, Q PCC is the instantaneous reactive power, V a 、V b 、V c is the grid-side instantaneous voltage of the bidirectional AC / DC converter, I q ,I b ,I c is the grid-side instantaneous current of the bidirectional AC / DC converter.
[0031] As a preferred solution of the V2G charging pile bidirectional AC / DC converter control method described in the present invention, the model predictive controller includes converting the instantaneous reactive power Q PCC The virtual potential E p The active power loop of the virtual synchronous algorithm is sent to the reactive power reference value Q in the virtual synchronous machine algorithm. ref and virtual potential reference value E ref Combined with genetic algorithm, model predictive controller design is carried out.
[0032] As a preferred solution of the V2G charging pile bidirectional AC / DC converter control method of the present invention, the model predictive controller based on the genetic algorithm includes establishing a cost function G, which is expressed as:
[0033] G=λ1×g1+λ2×g2+λ3×g3
[0034] Among them, λ1, λ2, λ3 correspond to the weight factors of the sub-cost functions, and g1, g2, g3 are expressed as:
[0035]
[0036] Among them, E ref is the virtual potential reference value, E p is the virtual potential; the cost function of the model predictive controller is based on the genetic algorithm, and S a , S b , Sc Different combination states of the three switch tubes are assigned to different genes, and the reactive power reference value Q ref and instantaneous reactive power Q PCC The difference between the virtual potential reference value E ref With virtual potential E p The difference is represented as different genes; generate the initial population, randomly select individual individuals as parents, perform crossover operations on the selected parent individuals, generate new child individuals by combining the genetic information of the parent individuals, and use single-point crossover, multi-point crossover and uniform crossover to generate new cost function values; perform selection, crossover and mutation operations through multiple iterations to optimize the population and find the minimum cost function value that meets the requirements. When the stopping conditions are met, including reaching the maximum number of iterations and finding the optimal solution that meets the safety requirements, select the change vector that minimizes G as the optimal vector, and at the same time act on the corresponding switch state of the converter switch tube. When the next sampling period comes, repeat the traversal to find the best solution and continuously optimize.
[0037] Another object of the present invention is to provide a system for a V2G charging pile bidirectional AC / DC converter control method, which can solve the problem of V2G charging pile bidirectional AC / DC converter control by constructing a bidirectional AC / DC converter control system.
[0038] To solve the above technical problems, the present invention provides the following technical solutions: a V2G charging pile bidirectional AC / DC converter control system, comprising a data acquisition module, a calculation module and a model predictive controller establishment module; the data acquisition module is used to collect the grid-side voltage and current data of the bidirectional AC / DC converter of the V2G charging pile; the calculation module is used to obtain electromagnetic power through fuzzy PI controller optimization, obtain the fundamental current reference value through a virtual synchronous machine algorithm, and calculate the compensation current reference value through a harmonic extraction algorithm; the model predictive controller establishment module is used to establish a model predictive controller based on a genetic algorithm, select the optimal switch tube on-off state, control the three-phase bridge circuit switch tube, and realize power quality management.
[0039] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned V2G charging pile bidirectional AC / DC converter control method are implemented.
[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a V2G charging pile bidirectional AC / DC converter control method as described above.
[0041] The beneficial effects of the present invention are as follows: a V2G charging pile bidirectional AC / DC converter control method provided by the present invention combines a virtual synchronization algorithm with bidirectional power flow, improves the inertial damping of the AC / DC converter, realizes smooth switching of different working states, and reduces system impact; uses a genetic algorithm to optimize the controller to achieve accurate tracking of harmonic currents, enhance the dynamic performance of the system, improve the stability of vehicle-grid interaction, and reduce the cost of grid management. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0043] Figure 1 A flow chart of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0044] Figure 2 A circuit diagram of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0045] Figure 3 A fuzzy PI controller structure diagram of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0046] Figure 4 A fuzzy PI controller rule control diagram of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0047] Figure 5 A block diagram of a method for generating a fundamental current reference value of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0048] Figure 6 A model predictive control flow chart of a V2G charging pile bidirectional AC / DC converter control method provided in the first embodiment of the present invention.
[0049] Figure 7 This is a structural diagram of a V2G charging pile bidirectional AC / DC converter control system provided in the second embodiment of the present invention.
[0050] Figure 8 A conventional bidirectional AC / DC converter reference current waveform diagram of a V2G charging pile bidirectional AC / DC converter control method provided in the third embodiment of the present invention.
[0051] Fig. 9 An improved bidirectional AC / DC converter reference current waveform diagram of a V2G charging pile bidirectional AC / DC converter control method provided in the third embodiment of the present invention.
[0052] Fig.10 A comparison diagram of active power waveforms of conventional and improved bidirectional AC / DC converters of a V2G charging pile bidirectional AC / DC converter control method provided in the third embodiment of the present invention.
[0053] Fig.11 A comparison diagram of reactive power waveforms of conventional and improved bidirectional AC / DC converters of a V2G charging pile bidirectional AC / DC converter control method provided in the third embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0055] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0056] Example 1
[0057] Reference Figure 1 to Figure 6 , which is the first embodiment of the present invention, and this embodiment provides a V2G charging pile bidirectional AC / DC converter control method, including: collecting grid-side voltage and current data of the bidirectional AC / DC converter of the V2G charging pile; obtaining electromagnetic power through fuzzy PI controller optimization, obtaining fundamental current reference value through virtual synchronous machine algorithm, and calculating compensation current reference value through harmonic extraction algorithm; establishing a model prediction controller based on genetic algorithm, selecting the optimal switch tube breaking state, controlling the three-phase bridge circuit switch tube, and realizing power quality management.
[0058] Figure 2 This is a bidirectional AC / DC converter circuit diagram, which shows the three-phase voltage u of the power grid. a 、u b 、u c , through the resistor R f and inductor L f The composed RL filter is connected to the three bridge arms of the three-phase half-bridge converter. The purpose of this filter is to reduce the high-frequency components in the voltage to reduce the impact on subsequent circuits. The three-phase voltage processed by the RL filter is then connected to the three bridge arms of the three-phase half-bridge converter.
[0059] Specifically, the three-phase half-bridge converter is composed of six switch tubes Q1 to Q6. By controlling the switching state of the switch tubes, bidirectional energy conversion between AC and DC is achieved. On the DC side, a capacitor C is connected. o Smooth the DC output voltage and reduce voltage ripple, thereby improving the stability and quality of the DC output.
[0060] Figure 3 , Figure 4 The fuzzy PI controller includes a fuzzy PI controller and a PI controller. The fuzzy PI controller is used to adjust the proportional adjustment coefficient k of the PI controller. P and integral adjustment coefficient k I .
[0061] Specifically, the control objective is analyzed, and the fuzzy algorithm is combined with PI control to form a fuzzy PI controller. The fuzzy PI controller adopts the Mamdani reasoning method and is expressed in the form of if-then by setting control rules, where the fuzzy subsets of the input variables are {negative large NB, negative medium NM, negative small NS, zero ZE, positive small PS, positive medium PM, positive large PB}, and the membership functions of the input variables are all triangular, and the membership function of the output variable adopts a middle triangle and two-end Gaussian type to realize input and output.
[0062] Select a two-dimensional fuzzy PI controller to achieve the DC side measured voltage U dc And DC side reference voltage U dcref The difference between x Sum difference change rate ec x The control is based on the input error e x and error variation ec x , dynamically adjust the proportional adjustment coefficient k of the PI controller P and integral adjustment coefficient k I , ensuring that the controller adapts to the changes in errors at different time points, thereby improving the control accuracy and the response speed of the system. The fuzzy domain of the controller's input and output variables is set in the range of [-6, 6], ensuring that the controller can maintain effective control performance under a wide range of operating conditions.
[0063] like Figure 5 As shown, a method for generating a fundamental current reference value and a reactive power reference value of a V2G charging pile bidirectional AC / DC converter control method is composed of an inverter mode and a rectifier mode virtual synchronous machine algorithm, specifically including:
[0064] In the inverter mode, in order to stabilize the active output, an active power control loop is adopted. The electromagnetic power P in the inverter mode m1It is expressed by the following formula:
[0065] P m1 =P set +k f (ω-ω n )
[0066] Among them, P m1 is the electromagnetic power in inverter mode, k f is the frequency adjustment coefficient, ω is the mechanical angular velocity, ω n is the rated angular velocity of the power grid, P set is the rated active power value of the bidirectional AC / DC converter during inversion;
[0067] The rectifier mode performs more fuzzy PI controller operations than the inverter mode. In the rectifier mode, the active power control loop must be replaced by the DC bus voltage control loop to ensure the stable output of the DC bus voltage during the charging process. dc , set DC voltage reference value U dcref , using the fuzzy PI controller and the active frequency droop control formula, the electromagnetic power P under the corresponding rectification mode is obtained. m2 The expression is:
[0068]
[0069] Among them, P m2 is the electromagnetic power in rectification mode, P set is the rated active power value of the bidirectional AC / DC converter during inversion, k f is the frequency adjustment coefficient, ω is the mechanical angular velocity, ω n is the rated angular velocity of the power grid, U dc is the measured voltage on the DC side, U dcref is the DC side reference voltage, s is the integral variable, k P is the proportional control coefficient, k I is the integral control coefficient.
[0070] When the bidirectional AC / DC converter operates in rectification mode, the virtual synchronous machine algorithm of the virtual synchronous generator calculates the phase angle θ between the excitation potential and the terminal voltage by the following formula:
[0071]
[0072] Where J is the moment of inertia, T e , T m are mechanical torque and electromagnetic torque respectively, D p is the damping coefficient, ω, ω n are the mechanical angular velocity and the rated angular velocity of the power grid, u a、u b 、u c are the phase voltages of phases A, B, and C respectively, i a 、i b 、i c They are the three-phase line currents of A, B, and C respectively, P e is the mechanical power, P m is the electromagnetic power; U dc is the measured voltage on the DC side, U dcref is the reference voltage on the DC side, k P Represents the proportional adjustment coefficient, k I represents the integral adjustment coefficient, s is the integral variable, k f is the frequency adjustment coefficient.
[0073] When the bidirectional AC / DC converter operates in the inverter mode, the virtual synchronous machine algorithm of the virtual synchronous generator calculates the phase angle θ between the excitation potential and the terminal voltage by the following formula:
[0074]
[0075] Where J is the moment of inertia, T e , T m are mechanical torque and electromagnetic torque respectively, D p is the damping coefficient, ω, ω n are the mechanical angular velocity and the rated angular velocity of the power grid, u a 、u b 、u c are the phase voltages of phases A, B, and C respectively, i a 、i b 、i c They are the three-phase line currents of A, B, and C respectively, P e is the mechanical power, P m is the electromagnetic power, P set is the rated active power value of the bidirectional AC / DC converter during inversion, k f is the frequency adjustment coefficient.
[0076] When the bidirectional AC / DC converter operates in the inverter mode and the rectifier mode, the virtual synchronous machine algorithm is used to calculate the virtual potential, and its expression is as follows:
[0077]
[0078] Among them, E p is the virtual potential of the virtual synchronous machine, E0 is the potential of the motor under no-load conditions, k u is the voltage regulation coefficient, which is used to adjust the difference between the terminal voltage and the reference value. ref is the reference value of the voltage at the virtual synchronous machine end, U is the instantaneous value of the voltage at the virtual synchronous machine end, Qref is the reactive power reference value, Q is the instantaneous value of reactive power, K is the integral coefficient, and s is the integral variable.
[0079] In the inverter and rectifier modes of the bidirectional AC / DC converter, according to the phase angle θ between the excitation potential and the terminal voltage of the virtual synchronous machine and the virtual potential E p , to determine the virtual electromotive force e of phase A, phase B, and phase C respectively a 、e b 、e c , which is expressed as follows:
[0080]
[0081] Among them, e a is the virtual electromotive force of phase A when the bidirectional AC / DC converter works in inverter mode and rectification mode, e b is the virtual electromotive force of phase B when the bidirectional AC / DC converter works in inverter mode and rectification mode, e c The virtual electromotive force of phase C when the bidirectional AC / DC converter works in the inverter mode and the rectifier mode, θ is the phase angle between the virtual synchronous machine excitation potential and the terminal voltage, E p is the virtual potential of the virtual synchronous machine.
[0082] According to the virtual electromotive force e of the virtual synchronous machine phase A, phase B, and phase C a 、e b 、e c Calculate the fundamental reference current In both rectification mode and inverter mode, the calculation of fundamental reference current follows the following formula:
[0083]
[0084] in, is the fundamental reference current, L f is the synchronous inductor, R f is the stator resistance, e x is the phase virtual electromotive force, u x is the instantaneous value of the three-phase voltage on the grid side, x=a, b or c, corresponding to phase A, phase B or phase C, and s is the integral variable.
[0085] The fuzzy algorithm is combined with PI control to form a fuzzy PI controller. The fuzzy PI controller adopts the Mamdani reasoning method and is expressed in the form of if-then by setting control rules. The fuzzy subsets of the input variables are {negative large NB, negative medium NM, negative small NS, zero ZE, positive small PS, positive medium PM, positive large PB}, and the membership functions of the input variables are all triangular, and the membership function of the output variable adopts a middle triangle and two-end Gaussian type to realize input and output.
[0086] The input signal of the fuzzy PI controller includes the measured voltage U dc And DC side reference voltage U dcref The difference between x Sum difference change rate ec x The output signal is the parameter adjustment proportional adjustment coefficient k of the PI controller P and integral adjustment coefficient k I .
[0087] Bidirectional AC / DC converter harmonic current detection using i p -i q The coordinate transformation method converts the three-phase current into a rectangular coordinate system to separate the instantaneous active current i p and instantaneous reactive current i q , the formula is as follows:
[0088]
[0089] Among them, θ0 is the initial phase angle of the synchronous reference sine, I is the effective value of the current, ω n is the rated angular velocity of the power grid, the superscripts + and - respectively represent the positive and negative sequence components, and the subscript n represents the harmonic order. Indicates the harmonic phase.
[0090] Instantaneous active current i p and instantaneous reactive current i q After low-pass filtering, the corresponding DC component is obtained:
[0091]
[0092] In the formula, θ0 is the initial phase angle of the synchronous reference sine, the superscripts + and - respectively represent the positive and negative sequence components, and the subscript n represents the harmonic order. Indicates the harmonic phase.
[0093] The DC component is i p -i q By inverse transformation, the fundamental positive sequence component of the three-phase current is obtained as:
[0094]
[0095] Among them, C αβ / abc =C T αβ / abc ; C=C -1 ;Superscript + indicates positive sequence component; Indicates harmonic phase; I is the effective value of current; ω n is the rated angular velocity of the grid.
[0096] According to the three-phase current ix The fundamental positive sequence component of the three-phase current Get the three-phase harmonic current i xh for:
[0097]
[0098] Among them, x=a, b or c, corresponding to phase A, phase B or phase C.
[0099] The reference current of the virtual synchronous charger and discharger is divided into the fundamental reference current and compensation current Two parts, fundamental reference current Generated by the virtual synchronous machine algorithm, the compensation current Equal to the harmonic component i of the current at the common connection point xh .
[0100] Its compensation current reference value The calculation is as follows:
[0101]
[0102] in, is the compensation current reference value, i xh is the three-phase harmonic current, x=a, b or c, corresponding to phase A, phase B or phase C.
[0103] Instantaneous reactive power calculation method:
[0104]
[0105] Among them, Q PCC is the instantaneous reactive power, V a 、V b 、V c is the grid-side instantaneous voltage of the bidirectional AC / DC converter, I a ,I b ,I c is the grid-side instantaneous current of the bidirectional AC / DC converter.
[0106] Figure 6 This is a model predictive control flow chart of a bidirectional AC / DC converter control method for a V2G charging pile. First, after collecting the voltage and current data of the common connection point, the compensation current reference value is calculated through the harmonic extraction algorithm, and the virtual potential and instantaneous reactive power are calculated on the other hand. The instantaneous reactive power Q PCC The virtual potential E pThe current is sent to the active power loop of the virtual synchronization algorithm for processing; a model predictive controller based on a genetic algorithm is established, and the fundamental current reference value and the compensation current reference value are simultaneously input into the model predictive controller to generate a three-phase modulation signal, and the optimal switch breaking state is selected to control the breaking of the switch in the three-phase bridge circuit, thereby realizing the power quality management function, including:
[0107] Establish the cost function G and calculate it as follows:
[0108] G=λ1×g1+λ2×g2+λ3×g3
[0109] Among them, λ1, λ2, and λ3 correspond to the weight factors of the sub-cost functions, and g1, g2, and g3 are defined as follows:
[0110]
[0111] Among them, i x (k+1) represents the grid-side current value of the bidirectional AC / DC converter at time k+1, is the reference current of the model predictive controller, Q ref is the reactive power reference value, Q PCC is the instantaneous reactive power, E ref is the virtual potential reference value, E p is a virtual potential.
[0112] Genetic algorithm is an optimization algorithm that simulates the natural evolution process. It searches and optimizes in the form of a population by simulating natural selection, crossover and mutation operations.
[0113] The cost function of the model predictive controller is based on a genetic algorithm, which transforms S a , S b , S c Different combination states of the three switch tubes are assigned to different genes, and the reactive power reference value Q ref and instantaneous reactive power Q PCC The difference between the virtual potential reference value E ref With virtual potential E p The difference is represented by different genes.
[0114] Generate an initial population, randomly select individual individuals as parents, perform crossover operations on the selected parent individuals, generate new child individuals by combining the genetic information of the parent individuals, and use single-point crossover, multi-point crossover and uniform crossover to generate new cost function values.
[0115] Through multiple iterations of selection, crossover and mutation operations, the population is optimized and the minimum cost function value that meets the requirements is found. When the stopping conditions are reached, including reaching the maximum number of iterations and finding the optimal solution that meets the safety requirements, the change vector that minimizes G is selected as the optimal vector, and its corresponding switching state is applied to the converter switch tube. When the next sampling cycle comes, the traversal is repeated to continuously optimize.
[0116] Example 2
[0117] Reference Figure 7 , which is the second embodiment of the present invention, is different from the previous embodiment in that it provides a V2G charging pile bidirectional AC / DC converter control system, including: a data acquisition module, a calculation module and a model prediction controller establishment module.
[0118] The data acquisition module is used to collect the grid-side voltage and current data of the bidirectional AC / DC converter of the V2G charging pile.
[0119] The calculation module is used to obtain electromagnetic power through fuzzy PI controller optimization, obtain fundamental current reference value through virtual synchronous machine algorithm, and calculate compensation current reference value through harmonic extraction algorithm.
[0120] The model predictive controller establishment module is used to establish a model predictive controller based on a genetic algorithm, select the optimal switch tube breaking state, control the three-phase bridge circuit switch tube, and achieve power quality management.
[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0122] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0123] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0124] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0125] Example 3
[0126] Reference Figure 8 to Figure 11 , which is the third embodiment of the present invention, and which is different from the first two embodiments in that it is used to verify and illustrate the technical effects adopted in the present invention, so as to verify the real effects of this method.
[0127] The AC / DC converter simulation model of the bidirectional V2G charging pile was built in Matlab / Simulink. Figure 8 , Fig. 9The superimposed waveforms of the fundamental current and harmonic current at the common connection point of the traditional simulation model and the improved simulation model of the present invention are shown in Figure 2 (i.e., the reference current ), the horizontal axis is time, and the vertical axis is current size. By comparing the two simulation waveforms, it can be found that due to the influence of nonlinear loads, the voltage and current waveforms of the traditional converter are distorted and harmonics are easily generated; the present invention optimizes the traditional bidirectional AC / DC converter through a model predictive control method based on a genetic algorithm, traverses possible switching states, and selects the optimal switching state to control the switch tube, thereby achieving accurate tracking of the reference current containing the harmonic compensation current. The improved output waveform presents a sinusoidally varying three-phase reference current, thereby improving the dynamic performance of the system.
[0128] Fig.10 , Fig.11 The active and reactive power waveforms of the traditional simulation model and the improved simulation model of the present invention are shown. To verify the switching capability of the bidirectional AC / DC converter of the V2G charging pile between different working modes, the simulation model is preset to switch between the three working modes of rectification, inversion and shutdown every 0.5 seconds, simulating the charging, discharging and standby states of the charging pile respectively. Due to the introduction of inertia and damping mechanisms in the virtual synchronous machine algorithm, the active and reactive power response curves of the improved model are smoother than those of the traditional model, achieving smooth switching between different working modes, thereby effectively reducing the impact on the power grid.
[0129] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A bidirectional AC / DC converter control method for a V2G charging pile. Features: include, Collect grid-side voltage and current data of bidirectional AC / DC converters of V2G charging piles; The electromagnetic power is obtained by fuzzy PI controller optimization, the fundamental current reference value is obtained by virtual synchronous machine algorithm, and the compensation current reference value is calculated by harmonic extraction algorithm; A model predictive controller based on genetic algorithm is established to select the optimal switching state of the switch tube, control the switch tube of the three-phase bridge circuit, and realize power quality management.
2. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 1, Features: The electromagnetic power includes electromagnetic power in an inverter mode and electromagnetic power in a rectifier mode; In the inverter mode, the active power output is stabilized and the active power control loop is adopted. The electromagnetic power in the inverter mode is expressed as, P m1 =P set +k f (oh-oh n ) Among them, P m1 is the electromagnetic power in inverter mode, k f is the frequency adjustment coefficient, ω is the mechanical angular velocity, ω n is the rated angular velocity of the power grid, P set is the rated active power value of the bidirectional AC / DC converter during inversion; In the rectification mode, the active power control loop must be replaced by the DC bus voltage control loop, and the actual voltage value U dc , set DC voltage reference value U dcref , using the fuzzy PI controller, combined with the active frequency droop control formula, the electromagnetic power under the corresponding rectification mode is expressed as: Among them, P m2 is the electromagnetic power in rectification mode, U dc is the measured voltage on the DC side, U dcref is the DC side reference voltage, s is the integral variable, k P is the proportional control coefficient, k I is the integral control coefficient.
3. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 2, Features: The fundamental current reference value includes the virtual electromotive force e of the virtual synchronous machine phase A, phase B, and phase C. a 、e b 、e c Calculate the fundamental reference current, and the virtual synchronous machine algorithm of the virtual synchronous generator calculates the phase angle θ between the excitation potential and the terminal voltage as follows: Where θ is the phase angle between the virtual synchronous machine excitation potential and the terminal voltage, J is the moment of inertia, T e is the mechanical torque, T m is the electromagnetic torque, D p is the damping coefficient, u a 、u b 、u c are the phase voltages of phases A, B, and C respectively, i a 、i b 、i c They are the three-phase line currents of A, B and C respectively; When the bidirectional AC / DC converter works in the inverter mode, the phase angle θ between the excitation potential and the terminal voltage calculated by the virtual synchronous machine algorithm of the virtual synchronous generator is expressed as: When the bidirectional AC / DC converter operates in inverter mode and rectifier mode, the virtual synchronous machine algorithm is used to calculate the virtual potential, which is expressed as, Among them, E p is the virtual potential of the virtual synchronous machine, E 0 is the no-load potential of the motor, k u is the voltage regulation coefficient, U ref is the reference value of the voltage at the virtual synchronous machine end, U is the instantaneous value of the voltage at the virtual synchronous machine end, Q ref is the reactive power reference value, Q is the instantaneous value of reactive power, and K is the integral coefficient; In the inverter and rectifier modes of the bidirectional AC / DC converter, according to the phase angle θ between the excitation potential and the terminal voltage of the virtual synchronous machine and the virtual potential E p , respectively determine the virtual electromotive force e of phase A, phase B, and phase C a 、e b 、e c , expressed as, Among them, e a is the virtual electromotive force of phase A when the bidirectional AC / DC converter works in inverter mode and rectification mode, e b is the virtual electromotive force of phase B when the bidirectional AC / DC converter works in inverter mode and rectification mode, e c Virtual electromotive force of phase C when the bidirectional AC / DC converter operates in inverter mode and rectification mode; According to the virtual electromotive force e of the virtual synchronous machine phase A, phase B, and phase C a 、e b 、e c Calculate the fundamental reference current In rectification mode and inverter mode, the fundamental reference current is expressed as, in, is the fundamental reference current, L f is the synchronous inductor, R f is the stator resistance, e x is the phase virtual electromotive force, u x is the instantaneous value of the three-phase voltage on the grid side, x=a, b or c, corresponding to phase A, phase B or phase C.
4. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 3, Features: The fuzzy PI controller includes a fuzzy PI controller formed by combining a fuzzy algorithm with a PI control. The fuzzy PI controller adopts the Mamdani reasoning method and is expressed in the form of if-then by setting control rules, wherein the fuzzy subsets of the input variables are {negative large NB, negative medium NM, negative small NS, zero ZE, positive small PS, positive medium PM, positive large PB}, and the membership functions of the input variables are all triangular, and the membership function of the output variable adopts a middle triangle and a Gaussian type at both ends to realize input and output; The input signal of the fuzzy PI controller includes the measured voltage U dc And DC side reference voltage U dcref The difference between x Sum difference change rate ec x The output signal is the parameter adjustment proportional adjustment coefficient k of the PI controller P and integral adjustment coefficient k I .
5. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 4, Features: The compensation current reference value includes the following: p -i q The three-phase current detection method obtains the three-phase harmonic current i xh , then the compensation current reference value is expressed as, in, is the compensation current reference value, i xh is the current harmonic component, i p is the instantaneous active current, i q is the instantaneous reactive current; Reference current for model predictive controller It is expressed as, in, is the reference current of the model predictive controller; The instantaneous reactive power is expressed as, Among them, Q PCC is the instantaneous reactive power, V a 、V b 、V c is the grid-side instantaneous voltage of the bidirectional AC / DC converter, I a ,I b ,I c is the grid-side instantaneous current of the bidirectional AC / DC converter.
6. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 5, Features: The model predictive controller includes the instantaneous reactive power Q PCC The virtual potential E p The active power loop of the virtual synchronous algorithm is sent to the reactive power reference value Q in the virtual synchronous machine algorithm. ref and virtual potential reference value E ref Combined with genetic algorithm, model predictive controller design is carried out.
7. A V2G charging pile bidirectional AC / DC converter control method as claimed in claim 6, Features: The genetic algorithm-based model predictive controller includes establishing a cost function G, expressed as, G=λ 1 ×g 1 +λ 2 ×g 2 +λ 3 ×g 3 Among them, λ 1 , 2 , 3 The weight factors corresponding to the sub-cost functions, g 1 , g 2 , g 3 Respectively expressed as, Among them, E ref is the virtual potential reference value, E p is the virtual potential; The cost function of the model predictive controller is based on a genetic algorithm, which transforms S a , S b , S c Different combination states of the three switch tubes are assigned to different genes, and the reactive power reference value Q ref and instantaneous reactive power Q PCC The difference between the virtual potential reference value E ref With virtual potential E p The difference is represented as different genes; Generate an initial population, randomly select individual individuals as parents, perform crossover operations on the selected parent individuals, generate new offspring individuals by combining the genetic information of the parent individuals, and use single-point crossover, multi-point crossover and uniform crossover to generate new cost function values; Through multiple iterations of selection, crossover and mutation operations, the population is optimized and the minimum cost function value that meets the requirements is found. When the stopping conditions are reached, including reaching the maximum number of iterations and finding the optimal solution that meets the safety requirements, the change vector that minimizes G is selected as the optimal vector, and its corresponding switching state is applied to the converter switch tube. When the next sampling cycle comes, the traversal is repeated to continuously optimize.
8. A system using a V2G charging pile bidirectional AC / DC converter control method as claimed in any one of claims 1 to 7, Features: Including, data acquisition module, calculation module and model prediction controller establishment module; The data acquisition module is used to collect grid-side voltage and current data of the bidirectional AC / DC converter of the V2G charging pile; The calculation module is used to obtain electromagnetic power through fuzzy PI controller optimization, obtain fundamental current reference value through virtual synchronous machine algorithm, and calculate compensation current reference value through harmonic extraction algorithm; The model predictive controller establishment module is used to establish a model predictive controller based on a genetic algorithm, select the optimal switch tube breaking state, control the three-phase bridge circuit switch tube, and achieve power quality management.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. Features: When the processor executes the computer program, the steps of a V2G charging pile bidirectional AC / DC converter control method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of a V2G charging pile bidirectional AC / DC converter control method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
AC / DC charging pile bidirectional power flow control method, device and equipment
CN119853127A
V2G charging pile control method and system based on system impedance mapping mechanism
CN120638365A
A control method and system of a V2G charging pile based on a system impedance mapping mechanism
CN120638365B
Vehicle network interaction method and system based on multi-mode switching
CN120816930A
