PI fuzzy control method and device for intelligent terminal of direct current charging pile, and medium
By combining fuzzy control and PI control in the DC charging pile, and using the vertical and horizontal cross algorithm to modify the PI controller parameters, the problems of slow response speed and cumbersome parameter adjustment in the existing technology are solved, and flexible control and rapid control of the DC charging process are achieved. response.
Patent Information
- Application Number
- CN202410707855.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-23
AI Technical Summary
The existing DC charging pile PI control method has slow response speed when faced with nonlinear problems and load uncertainty, and the parameter adjustment is cumbersome, making it difficult to effectively solve the flexibility and fast response requirements in the DC charging process.
The method of combining fuzzy control and PI control is used to calculate the quantization factor and scaling factor through the fuzzy controller and the cross-over algorithm, modify the PI controller parameters, and combine the PWM drive circuit to generate the drive signal to improve the control response speed.
It effectively solves the nonlinear problem in the DC charging process, improves the response speed under load changes, achieves strong adaptability and high reliability, and quickly adjusts the output voltage to a steady state.
Smart Images

Figure CN118539762A
Abstract
Description
Technical Field
[0001] The present application relates to the field of direct current charging pile control technology, and in particular to a PI fuzzy control method, device and medium for a direct current charging pile intelligent terminal. Background Art
[0002] General DC charging piles usually use traditional PI control to control the DC-DC converter of the charging pile. This PI control method is easy to implement and has a simple structure. It generates a drive signal by processing the voltage or current error signal and is widely used in the closed-loop control of power electronic converters. However, the shortcomings of the existing technology are: (1) The control is not flexible enough, and the controlled object model needs to be accurately modeled, which makes it difficult to solve the nonlinear problem in the DC charging process. (2) The response speed is not fast enough, and it is difficult to solve the problems of DC charging load uncertainty and slow feedback speed. (3) The parameter adjustment of the PI controller in engineering is cumbersome. Summary of the invention
[0003] The present application provides a PI fuzzy control method, device and medium for a DC charging pile intelligent terminal, which are used to solve the nonlinear problem that is easy to exist in the DC charging process and improve the response speed of control under load change conditions.
[0004] In view of this, the first aspect of the present application provides a PI fuzzy control method for a DC charging pile intelligent terminal, which is applied to a first circuit consisting of a main circuit and a control circuit; wherein the control circuit includes: a fuzzy controller, a vertical and horizontal cross algorithm, a PI controller, and a PWM drive circuit, and the main circuit adopts a phase-shifted full-bridge DC-DC converter;
[0005] The main circuit is applied to a DC charging pile and is used to feed back the output voltage to the control circuit;
[0006] The fuzzy controller uses the error between the output voltage and the given voltage and the rate of change of the error as input variables, and then obtains the correction value of the PI controller parameter through the action of quantization factor, fuzzification, fuzzy control rule, defuzzification and proportional factor, thereby outputting the control quantity of the fuzzy controller;
[0007] The quantization factor and the scale factor are calculated by the cross-cutting algorithm.
[0008] Optionally, the expression of the modified PI controller parameter is:
[0009]
[0010] In the formula, and is the final parameter value of fuzzy PI, and is the initial value of PI, and is the change after fuzzy output; and is the scaling factor.
[0011] Optionally, the step of outputting the control quantity of the fuzzy controller further includes the following steps:
[0012] The PWM driving circuit combines the control amount and the sawtooth wave to generate a driving signal.
[0013] Optionally, the calculation process of the quantization factor and the scale factor includes:
[0014] S01, set the initial population size, vertical crossover probability, maximum number of iterations, variable dimensions and the interval range of each dimension to complete the population initialization, where the individuals in the population are 4-dimensional variables X = [ K e , K e c , K Δ p , K Δ i ] ;
[0015] S02, randomly generate an initial population and determine the target fitness function;
[0016] S03, calculate the value of the target fitness function of all individuals in the population and record the individual with the best target value;
[0017] S04, executing the vertical crossover operator to generate vertical offspring, and comparing with the parent generation to retain the generation with a smaller target value;
[0018] S05, execute the horizontal crossover operator to generate horizontal offspring, and compare with the parent generation to retain the generation with a smaller target value;
[0019] S06. Assign the individual with the best target value to , determine whether the number of iterations has reached the maximum number, if so, end the process and output the optimal value, otherwise returns to step S03.
[0020] Optionally, the expression of the objective fitness function is:
[0021]
[0022] Where, ts is the adjustment time, mp is the output overshoot, tp is the peak time, err is the absolute value of the difference between the steady-state value and the reference value; w1, w2, w3, w4 are the weights of each indicator; T1, T2, T3, T4 are the reference values of each indicator respectively.
[0023] Optionally, calculating the values of the target fitness functions of all individuals in the population and recording the individuals with the best target values specifically includes:
[0024] Check whether each parameter of the individual is within the allowed range. If not, set the parameter value to the nearest boundary value;
[0025] After the parameters are set, the target values of the individuals in the population are calculated according to the target fitness function, and the individuals with the best target values are recorded after comparison.
[0026] Optionally, the performing of the vertical crossover operator to generate vertical offspring and comparing with the parent generation to retain a generation with a smaller target value specifically includes:
[0027] For all individuals in the population, randomly select the kth and lth dimensional variables for pairing, and the vertical crossover probability determines whether to perform arithmetic crossover expressed by the following formula. If crossover is performed, offspring individuals are generated, the target values of the offspring individuals are calculated, and compared with the parent individuals, and the individuals with smaller target values are retained.
[0028] Optionally, the step of executing a horizontal crossover operator to generate horizontal offspring and comparing the generation with the parent generation to retain a generation with a smaller target value specifically includes:
[0029] Randomly select individuals i and j in the population to pair, perform arithmetic crossover expressed by the following formula on the variables of the same dimension of the two individuals, generate offspring individuals, calculate the target value of the offspring individuals, compare them with the parent individuals, and retain the individuals with smaller target values.
[0030] A second aspect of the present application provides a PI fuzzy control device for a DC charging pile intelligent terminal, the device comprising a processor and a memory:
[0031] The memory is used to store program code and transmit the program code to the processor;
[0032] The processor is used to execute the steps of PI fuzzy control of the DC charging pile intelligent terminal as described in the first aspect according to the instructions in the program code.
[0033] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the PI fuzzy control method of the DC charging pile intelligent terminal described in the first aspect above.
[0034] It can be seen from the above technical solutions that this application has the following advantages:
[0035] The present application provides a PI fuzzy control method for a DC charging pile intelligent terminal. (1) The method of combining fuzzy control with PI control can solve the nonlinear problems that may exist in the DC charging process. (2) The vertical and horizontal cross algorithm is used to quickly optimize the parameters of the PI fuzzy controller through the rapid calculation of the intelligent terminal, thereby accelerating the parameter adjustment speed and improving the control response speed under load change conditions.
[0036] Compared with existing technologies:
[0037] 1. Strong adaptability: Fuzzy control is added, suitable for linear and nonlinear converters.
[0038] 2. High reliability and rapid response: Under complex working conditions such as load changes, the vertical and horizontal cross algorithm is adopted to quickly optimize the parameters of the PI fuzzy controller through rapid calculation by the intelligent terminal, so that the output voltage can quickly return to a steady state. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A PI fuzzy control strategy diagram of a DC charging pile intelligent terminal provided in an embodiment of the present application;
[0040] Figure 2 A fuzzy controller provided in an embodiment of the present application;
[0041] Figure 3 A flow chart of a vertical and horizontal cross algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] See also Figure 1 , a PI fuzzy control method for a DC charging pile intelligent terminal provided in an embodiment of the present application is applied to a first circuit consisting of a main circuit and a control circuit; wherein the control circuit includes: a fuzzy controller, a vertical and horizontal cross algorithm, a PI controller, and a PWM drive circuit, and the main circuit adopts a phase-shifted full-bridge DC-DC converter;
[0044] The main circuit is applied to the DC charging pile to feed back the output voltage to the control circuit;
[0045] The fuzzy controller takes the error between the output voltage and the given voltage and the rate of change of the error as input variables, and then obtains the correction value of the PI controller parameters through the action of quantization factor, fuzzification, fuzzy control rules, defuzzification and proportional factor, thereby outputting the control quantity of the fuzzy controller;
[0046] Among them, the quantization factor and the scale factor are calculated by the vertical and horizontal cross algorithm.
[0047] It should be noted that the main circuit Figure 1 As shown, a phase-shifted full-bridge DC-DC converter is used for a DC charging pile, which mainly includes a front-stage inverter circuit, an intermediate-stage LLC resonant network, a rear-stage rectifier circuit and an LC filter circuit, and the output voltage is collected through a voltage transformer and fed back to the control circuit.
[0048] like Figure 2 As shown, the fuzzy controller uses the output voltage V of the phase-shifted full-bridge DC-DC converter o With a given voltage V ref The error e between and the error change rate de / dt are used as input variables, and then the correction value of the PI controller parameters is obtained through the action of quantization factor, fuzzification, fuzzy control rules, defuzzification and proportional factor, thereby outputting the fuzzy controller control quantity u. The quantization factor is K e and K ec , the scaling factor is K Δp and K Δi .
[0049] According to the fuzzy relationship between PI parameters and voltage error and the rate of change of error, the PI parameters are modified online using the fuzzy control principle. The corrected PI control parameters can be expressed as:
[0050]
[0051] Where K p and K i is the final parameter value of fuzzy PI, and is the initial value of PI, ∆K p and ∆K i is the change after fuzzy output.
[0052] Further, in one embodiment, if Figure 3 As shown, the calculation process of the quantization factor and the scale factor includes:
[0053] S01, set the initial population size, vertical crossover probability, maximum number of iterations, variable dimensions and the interval range of each dimension to complete the population initialization, where the individuals in the population are 4-dimensional variables X = [ K e , K e c , K Δ p , K Δ i ] ;
[0054] It should be noted that the initial population size is set to X and the vertical crossover probability is set to P v , the maximum number of iterations is gen times, and the individuals in the population can be represented as a 4-dimensional variable X=[K e , K ec , K Δp , K Δi], represents a solution of fuzzy PI control, each dimensional variable corresponds to a parameter of fuzzy PI control, according to the actual situation, set the allowable interval of each dimensional parameter to form a solution space, and randomly generate an initial population in the solution space. e , K ec is the quantization factor, K Δp , K Δi is the scaling factor, thus completing the population initialization.
[0055] S02, randomly generate an initial population and determine the target fitness function;
[0056] It should be noted that, specifically, the target fitness function is set as:
[0057]
[0058] Wherein, ts is the adjustment time, mp is the output overshoot, tp is the peak time, err is the absolute value of the difference between the steady-state value and the reference value; w1, w2, w3, w4 are the weights of each indicator. In order to minimize the steady-state error of the system, the weight of err should be much greater than the weights of other indicators; T1, T2, T3, T4 are the reference values of each indicator respectively, in order to normalize each indicator.
[0059] For a given reference input of the system, the smaller the mp, the less the deviation between the system and the reference input; the smaller the tp and ts, the better the rapid performance of the system. Find the appropriate fuzzy PI control parameters to minimize the dynamic performance indicators to meet the performance requirements of the actual control system.
[0060] S03, calculate the value of the target fitness function of all individuals in the population and record the individual with the best target value;
[0061] It should be noted that to calculate the target value of the individual in the population: first check whether each parameter of the individual is within the allowed range. If not, set the parameter value to the nearest boundary value. After setting the parameters, calculate the target value of the individual in the population according to the target fitness function, and record the individual with the best target value after comparison.
[0062] S04, executing the vertical crossover operator to generate vertical offspring, and comparing with the parent generation to retain the generation with a smaller target value;
[0063] It should be noted that the vertical crossover operator is executed: for all individuals in the population, the kth and lth dimension variables are randomly selected for pairing, and the vertical crossover probability P is used. v Decide whether to perform arithmetic crossover as shown below. If crossover is performed, the offspring individuals produced are recorded as ZD z (i,k). r is a random number in [0,1]. Then calculate the target value of the offspring individual, compare it with the parent individual, and retain the individual with a smaller target value.
[0064]
[0065] S05, execute the horizontal crossover operator to generate horizontal offspring, and compare with the parent generation to retain the generation with a smaller target value;
[0066] It should be noted that the horizontal crossover operator is executed: individuals i and j in the population are randomly selected for pairing, and the variables of the same dimension of the two individuals are subjected to arithmetic crossover as shown below, and the offspring individuals are recorded as ZD h (i) ZD h (j). r1 and r2 are random numbers in [0,1]; diffusion factors c1 and c2 are random numbers in [-1,1]. Then calculate the target value of the offspring individual, compare it with the parent individuals X(i) and X(j), and retain the individual with a smaller target value.
[0067]
[0068] S06. Assign the individual with the best target value to , determine whether the number of iterations has reached the maximum number, if so, end the process and output the optimal value, otherwise returns to step S03.
[0069] It should be noted that the optimal target value W individuals are assigned to K e , K ec , K Δp , K Δi, Loop criterion judgment: judge whether the loop exit condition is met. If not, transfer to process S03 and recalculate; if satisfied, exit the loop and the algorithm ends the search process.
[0070] The optimal K is solved by the algorithm on the smart terminal e , K ec , K Δp , K Δi The value of , and then assign it to the fuzzy controller, and then calculate the K of PI control p , K i .
[0071] Furthermore, in an embodiment of the present application, a PI fuzzy control device for a DC charging pile intelligent terminal is provided, the device comprising a processor and a memory:
[0072] The memory is used to store program code and transmit the program code to the processor;
[0073] The processor is used to execute the steps of the PI fuzzy control method of the DC charging pile intelligent terminal as described in the above method embodiment according to the instructions in the program code.
[0074] Furthermore, a computer-readable storage medium is provided in an embodiment of the present application, and the computer-readable storage medium is used to store program code, and the program code is used to execute the PI fuzzy control method of the DC charging pile intelligent terminal described in the above method embodiment.
[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0076] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0077] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0078] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0079] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0082] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A PI fuzzy control method for a DC charging pile intelligent terminal, characterized in that: Applied to a first circuit consisting of a main circuit and a control circuit; wherein the control circuit includes: a fuzzy controller, a crossbar algorithm, a PI controller, and a PWM drive circuit; and the main circuit adopts a phase-shifted full-bridge DC-DC converter; The main circuit is applied to a DC charging pile and is used to feed back the output voltage to the control circuit; The fuzzy controller uses the error between the output voltage and the given voltage and the rate of change of the error as input variables, and then obtains the correction value of the PI controller parameter through the action of quantization factor, fuzzification, fuzzy control rule, defuzzification and proportional factor, thereby outputting the control quantity of the fuzzy controller; The quantization factor and the scale factor are calculated by the cross-cutting algorithm.
2. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 1 is characterized in that: The modified expression of the PI controller parameters is: In the formula, and is the final parameter value of fuzzy PI, and is the initial value of PI, and is the change after fuzzy output; and is the scaling factor.
3. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 1 is characterized in that: The control quantity of the fuzzy controller is outputted, and then the following steps are included: The PWM driving circuit combines the control amount and the sawtooth wave to generate a driving signal.
4. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 2 is characterized in that: The calculation process of the quantization factor and the scale factor includes: S01, set the initial population size, vertical crossover probability, maximum number of iterations, variable dimensions and the interval range of each dimension to complete the population initialization, where the individuals in the population are 4-dimensional variables ; S02, randomly generate an initial population and determine the target fitness function; S03, calculate the value of the target fitness function of all individuals in the population and record the individual with the best target value; S04, executing the vertical crossover operator to generate vertical offspring, and comparing with the parent generation to retain the generation with a smaller target value; S05, execute the horizontal crossover operator to generate horizontal offspring, and compare with the parent generation to retain the generation with a smaller target value; S06. Assign the individual with the best target value to , determine whether the number of iterations has reached the maximum number, if so, end the process and output the optimal value, otherwise returns to step S03.
5. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 4 is characterized in that: The expression of the objective fitness function is: Where, ts is the adjustment time, mp is the output overshoot, tp is the peak time, err is the absolute value of the difference between the steady-state value and the reference value; w1, w2, w3, w4 are the weights of each indicator; T1, T2, T3, T4 are the reference values of each indicator respectively.
6. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 4 is characterized in that: The calculation of the target fitness function values of all individuals in the population and recording the individual with the best target value specifically includes: Check whether each parameter of the individual is within the allowed range. If not, set the parameter value to the nearest boundary value; After the parameters are set, the target values of the individuals in the population are calculated according to the target fitness function, and the individuals with the best target values are recorded after comparison.
7. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 4 is characterized in that: The execution of the vertical crossover operator to generate vertical offspring and compare with the parent generation to retain the generation with a smaller target value specifically includes: For all individuals in the population, randomly select the kth and lth dimensional variables for pairing, and the vertical crossover probability determines whether to perform arithmetic crossover expressed by the following formula. If crossover is performed, offspring individuals are generated, the target values of the offspring individuals are calculated, and compared with the parent individuals, and the individuals with smaller target values are retained.
8. The PI fuzzy control method of the DC charging pile intelligent terminal according to claim 4 is characterized in that: The execution of the horizontal crossover operator to generate horizontal offspring and compare with the parent generation to retain a generation with a smaller target value specifically includes: Randomly select individuals i and j in the population to pair, perform arithmetic crossover expressed by the following formula on the variables of the same dimension of the two individuals, generate offspring individuals, calculate the target value of the offspring individuals, compare them with the parent individuals, and retain the individuals with smaller target values.
9. A PI fuzzy control device for a DC charging pile intelligent terminal, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the PI fuzzy control method of the DC charging pile intelligent terminal according to any one of claims 1-8 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the PI fuzzy control method of the DC charging pile intelligent terminal according to any one of claims 1-8.
