Power control method and device of charger, storage medium and electronic equipment
By acquiring charging terminal data and using differential evolution algorithm to optimize power switching strategy, the problems of low energy utilization and poor allocation fairness in urban public charging stations are solved, achieving more efficient utilization of charging resources and fair power allocation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE GRID BEIJING ELECTRIC POWER CO
- Filing Date
- 2022-12-29
- Publication Date
- 2026-06-05
AI Technical Summary
In the context of disordered urban public charging stations, the power allocation method of the chargers results in low energy utilization and poor allocation fairness, leading to waste of charging resources and a poor user experience.
By acquiring charging data from charging terminals, and based on request order and power utilization, a differential evolution algorithm is used to optimize the power switching strategy, prioritizing the charging needs of vehicles that arrive first, and adjusting power group allocation when necessary to improve system utilization.
It improves the power allocation efficiency of charging terminals, enhances energy utilization and charging fairness, ensures that vehicles that arrive first receive more power allocation, and reduces resource waste.
Smart Images

Figure CN116207815B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of new energy vehicle charging technology, and more specifically, to a power control method, device, storage medium, and electronic device for a charger. Background Technology
[0002] In the context of disordered urban public charging stations, charging modules can be categorized into idle and non-idle modules based on their usage. When a charging module is idle, meaning each terminal can meet the vehicle's power demand after a module is switched on, power group switching can proceed normally without affecting the charging system's utilization or the user's charging experience. However, when all charging modules are active, meaning even switching them all to charging terminals cannot meet the total charging demand of connected vehicles, traditional power group allocation methods result in low module utilization. This leads to wasted charging resources and reduced charging station revenue, and also fails to guarantee that vehicles starting charging first receive a higher power allocation, lacking fairness in queuing. Currently, no effective solution has been proposed to address these issues. Summary of the Invention
[0003] This invention provides a power control method, device, storage medium, and electronic device for a charger, to at least solve the technical problems of low energy utilization and poor allocation fairness in the power allocation and control methods of chargers in the related art.
[0004] According to one aspect of the present invention, a power control method for a charger is provided, comprising: acquiring charging data corresponding to a plurality of charging terminals corresponding to the charger, wherein the charging data includes at least: the required power, the actual allocated power, the actual charging power, the request order of issuing charging requests for the plurality of charging terminals respectively, and the idle state of the charging module in the charger; when it is detected that the plurality of charging terminals cannot meet the actual charging power requirement, determining a first power switching strategy corresponding to the plurality of charging terminals based on the request order of issuing charging requests for the plurality of charging terminals respectively, wherein the first power switching strategy is used to indicate the number of first power groups allocated to the plurality of charging terminals respectively; determining the power utilization rate corresponding to the plurality of charging terminals based on the actual allocated power and the actual charging power respectively; when it is detected that there is a first charging terminal among the plurality of charging terminals with a power utilization rate less than a utilization rate threshold, optimizing the first power switching strategy based on the charging data to obtain a target power switching strategy corresponding to the plurality of charging terminals, wherein the target power switching strategy is used to indicate the number of target power groups allocated to the plurality of charging terminals respectively.
[0005] According to another aspect of the present invention, a power control device for a charger is also provided, comprising: a first acquisition module, configured to acquire charging data corresponding to a plurality of charging terminals corresponding to the charger, wherein the charging data includes at least: the required power, the actual allocated power, the actual charging power, the request order of the charging requests issued by the plurality of charging terminals, and the idle state of the charging module in the charger; a first determination module, configured to determine a first power switching strategy corresponding to the plurality of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals when it is detected that the plurality of charging terminals cannot meet the actual charging power requirements, wherein the first power switching strategy is used to indicate the number of first power groups allocated to the plurality of charging terminals; a second determination module, configured to determine the power utilization rate corresponding to the plurality of charging terminals based on the actual allocated power and the actual charging power; and a second acquisition module, configured to optimize the first power switching strategy based on the charging data when it is detected that there is a first charging terminal among the plurality of charging terminals with a power utilization rate less than a utilization rate threshold, to obtain a target power switching strategy corresponding to the plurality of charging terminals, wherein the target power switching strategy is used to indicate the number of target power groups allocated to the plurality of charging terminals.
[0006] According to another aspect of the present invention, a non-volatile storage medium is also provided, which stores a plurality of instructions adapted for loading by a processor and executing any one of the above-described power control methods for a charger.
[0007] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described power control methods for a charger.
[0008] In this embodiment of the invention, charging data corresponding to multiple charging terminals corresponding to a charger is obtained. This charging data includes at least: the required power, actual allocated power, actual charging power, request order of the charging requests issued by each of the multiple charging terminals, and the idle state of the charging module in the charger. When it is detected that the multiple charging terminals cannot meet the actual charging power requirement, a first power switching strategy is determined based on the request order of the charging requests issued by the multiple charging terminals. This first power switching strategy is used to indicate the number of first power groups allocated to each of the multiple charging terminals. Based on the actual allocated power and actual charging power corresponding to each of the multiple charging terminals, the number of charging terminals is determined. The power utilization rate of each terminal is determined. When a first charging terminal with a power utilization rate less than the utilization rate threshold is detected among the multiple charging terminals, the first power switching strategy is optimized based on the charging data to obtain the target power switching strategy corresponding to the multiple charging terminals. The target power switching strategy is used to indicate the number of target power groups allocated to the multiple charging terminals respectively. This achieves the purpose of accurately obtaining and optimizing the power switching strategy of multiple charging terminals and improving the power allocation efficiency. This realizes the power group allocation efficiency of the substitute charging terminal, thereby improving the power utilization rate and charging fairness. This solves the technical problems of low power utilization rate and poor allocation fairness in the power allocation and control methods of chargers in related technologies. Attached Figure Description
[0009] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0010] Figure 1 This is a schematic diagram of a power control method for a charger according to an embodiment of the present invention;
[0011] Figure 2 This is a schematic diagram illustrating an application scenario of an optional power control method for a charger according to an embodiment of the present invention.
[0012] Figure 3 This is a flowchart of an optional power control method for a charger according to an embodiment of the present invention;
[0013] Figure 4 This is a flowchart of an optional differential evolution algorithm for optimizing the power gain of a group-controlled charger according to an embodiment of the present invention;
[0014] Figure 5 This is an optimization result diagram of an optional differential evolution algorithm according to an embodiment of the present invention;
[0015] Figure 6 This is a schematic diagram of the structure of a power control device for a charger according to an embodiment of the present invention. Detailed Implementation
[0016] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0017] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0018] Currently, the new energy vehicle industry is experiencing rapid development, demonstrating enormous potential in controlling air pollution and reducing carbon emissions. To meet the industry's development needs, the construction of supporting infrastructure for new energy vehicles has gradually become a priority. Among these issues, insufficient high-power charging capacity, low utilization of charging resources, and low levels of charging intelligence are pressing problems that need to be addressed. Due to its compatibility and high system utilization, group-controlled charging systems are perfectly suited to address these issues.
[0019] In group charging systems, a good power allocation method is key to improving the utilization rate of the charging terminal system and user satisfaction. Due to the diversity and complexity of charging system application scenarios, different scenarios place different demands on group charging systems. Therefore, targeted power allocation methods need to be developed for different scenarios. In the case of urban public charging stations, vehicle charging is often unordered, with diverse power demands. It is necessary to maintain a high system utilization rate while meeting the needs of vehicles that arrive first.
[0020] In the context of disordered urban public charging stations, charging modules can be categorized into idle and non-idle modules based on their usage by the chargers. When charging modules are idle, meaning that each terminal can meet the vehicle's power demand after a module is switched on, power group module switching can proceed normally without affecting the charging system's utilization rate or the user's charging experience. However, when all charger power modules are active, meaning that even switching all modules to charging terminals cannot meet the total charging demand of connected vehicles, the traditional power group allocation method results in low utilization of charging modules. This can easily lead to a waste of charging resources and reduce charging station revenue; furthermore, it cannot guarantee that vehicles that start charging first will receive a larger power allocation, lacking fairness in queuing.
[0021] To address the aforementioned issues, this invention provides a method embodiment for power control of a charger. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0022] Figure 1 This is a flowchart of a power control method for a charger according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0023] Step S102: Obtain charging data corresponding to multiple charging terminals corresponding to the charger. The charging data includes at least: the required power, actual allocated power, actual charging power, the order of sending charging requests, and the idle state of the charging module in the charger.
[0024] Optionally, charging data from each charging terminal is collected. Based on the order in which each charging terminal issues a charging request, the charging terminal numbers are sorted in descending order according to time sequence. The required power, actual allocated power, actual charging power, and idle status of the charging modules in each charging terminal are recorded from the vehicle management system (BMS) of the vehicle to be charged. The collected charging data is stored in the Powerset dataset in matrix form. The matrix form is q×s, where q represents the number of currently used charging terminals, and s represents the number of dimensions such as required power, actual allocated power, actual charging power, the order in which charging requests are issued, and the idle status of the charging modules, all sorted in descending order. s is expandable; in this invention, the value of s is 5.
[0025] Step S104: When it is detected that the above-mentioned multiple charging terminals cannot meet the actual charging power requirements, a first power switching strategy corresponding to the above-mentioned multiple charging terminals is determined based on the request order of the charging requests issued by the above-mentioned multiple charging terminals. The first power switching strategy is used to indicate the number of first power groups allocated to the above-mentioned multiple charging terminals respectively.
[0026] In an optional embodiment, when it is detected that the plurality of charging terminals cannot meet the actual charging power demand, determining the first power switching strategy corresponding to the plurality of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals includes: determining the initial number of power groups corresponding to the plurality of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals; when it is detected that the first number of charging terminals in the later ranks among the plurality of charging terminals have not been allocated a power group, determining the second number of charging terminals that are ranked before the first number of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals; and cutting off a predetermined number of power groups from the second number of charging terminals and allocating them to the first number of charging terminals to obtain the number of first power groups allocated to the plurality of charging terminals.
[0027] Using the above method, based on the order in which each charging terminal requests charging, priority is given to the charging terminal that sends the charging request first, and the required number of power groups are allocated to it. If no power group is available for allocation, a power group is switched from the charging terminal that starts charging later and put into the charging terminal of the following vehicle, ensuring that the following vehicle is charged with the minimum allocated power. This yields the first power switching strategy for multiple charging terminals.
[0028] Step S106: Based on the actual allocated power and actual charging power of the multiple charging terminals respectively, determine the power utilization rate of the multiple charging terminals respectively.
[0029] Optionally, based on the actual allocated power and actual charging power of the aforementioned charging terminals, the power utilization rate of each of the aforementioned charging terminals is determined in the following way:
[0030]
[0031] in, ( This represents the power utilization rate of any one of the multiple charging terminals. This represents the actual charging power of any one of the multiple charging terminals mentioned above, and 'i' represents the identifier of any one of the multiple charging terminals mentioned above. Represents the actual allocated power corresponding to any one of the above-mentioned multiple charging terminals.
[0032] Step S108: When it is detected that there is a first charging terminal among the above-mentioned multiple charging terminals whose power utilization rate is less than the utilization rate threshold, optimize the above-mentioned first power switching strategy based on the above-mentioned charging data to obtain the target power switching strategy corresponding to the above-mentioned multiple charging terminals, where the above-mentioned target power switching strategy is used to indicate the target power group numbers respectively allocated to the above-mentioned multiple charging terminals.
[0033] In an optional embodiment, the above-mentioned step of optimizing the above-mentioned first power switching strategy based on the above-mentioned charging data to obtain the target power switching strategy corresponding to the above-mentioned multiple charging terminals when it is detected that there is a first charging terminal among the above-mentioned multiple charging terminals whose power utilization rate is less than the utilization rate threshold includes: determining a loss function based on the actual allocated power and the actual charging power respectively corresponding to the above-mentioned multiple charging terminals; when there is a first charging terminal among the above-mentioned multiple charging terminals whose power utilization rate is less than the utilization rate threshold, optimizing the above-mentioned first power switching strategy based on the above-mentioned charging data and the loss function by using a differential evolution algorithm to obtain the above-mentioned target power switching strategy.
[0034] In the above manner, it is detected whether there is a situation where a charging terminal ends charging or the demand decreases during the charging process (that is, the power utilization rate of a single charging terminal < A%, where A is a set utilization rate threshold). If so, the solution of the optimal strategy is further completed, the power group resources are released, and they are successively invested in other charging terminals with earlier start times and unmet power demands, so as to obtain the target power switching strategy corresponding to the multiple charging terminals. If there is no situation where a charging terminal ends charging or the demand decreases during the charging process, the first power switching strategy corresponding to the multiple charging terminals is used as the target power switching strategy, thereby obtaining an optimal power switching strategy and achieving the purpose of improving the power distribution efficiency. [
[0035] In an optional embodiment, the above-mentioned determining a loss function based on the actual allocated power and the actual charging power respectively corresponding to the above-mentioned multiple charging terminals includes: determining the above-mentioned loss function based on the actual allocated power and the actual charging power respectively corresponding to the above-mentioned multiple charging terminals through the following method:
[0036]
[0037] where represents the loss value corresponding to the above-mentioned loss function, ( )represents the actual allocated power corresponding to any one of the above-mentioned multiple charging terminals, This represents the actual charging power of any one of the multiple charging terminals mentioned above, where i represents the identifier of any one of the multiple charging terminals mentioned above, and n represents the number of charging terminals among the multiple charging terminals.
[0038] In an optional embodiment, the method further includes: if there is no first charging terminal among the plurality of charging terminals with a power utilization rate less than the utilization rate threshold, the first power switching strategy is used as the target power switching strategy.
[0039] In the above manner, in the absence of a first charging terminal with a power utilization rate less than the utilization rate threshold, the first power switching strategy obtained according to the request order of multiple charging terminals issuing charging requests is used as the target power switching strategy for power group allocation.
[0040] In an optional embodiment, the method further includes: obtaining the rated output power corresponding to the charger; obtaining the overall power utilization rate of the charger based on the actual charging power corresponding to the plurality of charging terminals and the rated output power; and obtaining the power matching degree of the charger based on the actual charging power and demand power corresponding to the plurality of charging terminals, wherein the overall power utilization rate and the power matching degree are used to indicate the adjustment performance of the target power switching strategy.
[0041] Optionally, based on the actual charging power of each of the aforementioned charging terminals and the aforementioned rated output power, the overall power utilization rate is obtained in the following manner:
[0042]
[0043] in, This indicates the overall power utilization rate mentioned above. ( () represents the actual charging power of any one of the multiple charging terminals, i represents the identifier of any one of the multiple charging terminals, and n represents the number of charging terminals. This indicates the rated output power mentioned above.
[0044] Based on the actual charging power and required power of the aforementioned charging terminals, the power matching degree is obtained as follows:
[0045]
[0046] in, This indicates the power matching degree mentioned above. This indicates the power requirement for any one of the multiple charging terminals mentioned above.
[0047] Through the above steps S102 to S108, the power switching strategies of multiple charging terminals can be accurately obtained and optimized to improve the power allocation efficiency, thereby achieving the power group allocation efficiency of the substitute charging terminal, and thus improving the power utilization rate and charging fairness. This solves the technical problems of low power utilization rate and poor allocation fairness in the power allocation and control methods of chargers in related technologies.
[0048] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation method. Figure 2 This is a schematic diagram illustrating an application scenario of an optional power control method for a charger according to an embodiment of the present invention. Figure 3 This is a flowchart of an optional power control method for a charger according to an embodiment of the present invention. Figure 4 This is a flowchart illustrating an optional differential evolution algorithm for optimizing the power gain of a group-controlled charger according to an embodiment of the present invention. Figure 5 This is an optimization result diagram of an optional differential evolution algorithm according to an embodiment of the present invention, such as... Figure 3 As shown, the method includes:
[0049] Step S1: Collect charging data from the group-controlled charger. Collect the required power, actual allocated power, actual charging power, request order of charging requests for each charging terminal, and idle status of the charging modules in the charger to establish a raw charging information sample set, Powerset. This includes the following sub-steps:
[0050] Step S11: Collect charging data from each charging terminal. Based on the order in which each charging terminal sends its charging request, sort the charging terminal numbers in descending order according to time sequence, and record the required power, actual allocated power, actual charging power, and idle status of the charging module in the charger for each charging terminal, as fed back by the vehicle management system (BMS) of the vehicle to be charged.
[0051] Step S12: Store the collected charging data in the Powerset dataset in matrix form. The matrix is q×s, where q represents the number of currently used charging terminals, and s represents the number of dimensions such as the demand power, actual allocated power, actual charging power, the order of charging requests, and the idle state of the charging modules in the charger, arranged in descending order. s is expandable, and in this invention, the value of s is 5.
[0052] Step S2 involves establishing a group power utilization calculation method and a charging priority power switching model. This includes constructing calculation methods for the overall charging system and individual charging terminals, and configuring a power switching model (i.e., the first power switching strategy) that prioritizes arriving vehicles in both idle and non-idle modes. Specifically, this includes the following sub-steps:
[0053] Step S21, Power utilization rate of a single charging terminal and the overall power utilization rate of the system The calculation model is as follows.
[0054] Power utilization rate of a single charging terminal :
[0055]
[0056] Overall system power utilization :
[0057]
[0058] in, ( This represents the power utilization rate of any one of the multiple charging terminals. This indicates the overall power utilization rate mentioned above. This represents the actual charging power of any one of the multiple charging terminals mentioned above, where i represents the identifier of any one of the multiple charging terminals, and n represents the number of charging terminals. This indicates the rated output power mentioned above. This indicates the actual allocated power for any one of the multiple charging terminals mentioned above.
[0059] Step S22, based on the data in the Powerset dataset collected in step S12, determines whether the actual charging power requirement is met after all normally operating and idle charging terminals are switched on and off. This specifically includes the following two steps:
[0060] Step S221: If the actual charging power requirement is met, then based on the power requirement agreed upon by the BMS for the vehicles to be charged corresponding to the multiple charging terminals, power groups are allocated to the multiple charging terminals to charge the corresponding vehicles to be charged normally.
[0061] Step S222: If the actual charging power requirement is not met, the charging process will continuously detect and enter one of the following two power switching strategies:
[0062] Step S2221: Based on the order in which each charging terminal requests charging, prioritize the charging terminal that sends the charging request first and allocate the required number of power groups to it. If no power groups are available for allocation, switch a power group from the charging terminal that starts charging later and put it into the charging terminal of the following vehicle to ensure that the following vehicle is charged with the minimum allocated power. This yields the first power switching strategy for multiple charging terminals.
[0063] Step S2222, during the charging process, check if there is a situation where a charging terminal ends charging or the demand decreases (i.e., the power utilization rate of a single charging terminal <A%, where A is the set utilization threshold). If so, proceed to step S3 to solve the optimal strategy, release the power group resources, and sequentially allocate them to other charging terminals with earlier start times and unmet power demands, thereby obtaining the target power switching strategy corresponding to multiple charging terminals. If there is no situation where a charging terminal ends charging or the demand decreases during the charging process, use the first power switching strategy corresponding to multiple charging terminals as the target power switching strategy, and continue to perform the detection in steps S2221 to S2222.
[0064] Step S3, perform group optimization of the charging power group resource allocation. Based on the power utilization rates corresponding to multiple charging terminals, use the Differential Evolution (DE) algorithm to dynamically optimize the first power switching strategy, and complete the allocation of power group resources according to the calculated value of the loss function to obtain the target power switching strategy corresponding to multiple charging terminals. As Figure 4 shown, it specifically includes the following sub-steps:
[0065] Step S31, before using the differential evolution algorithm to calculate the optimal strategy, a loss function needs to be designed as follows:
[0066]
[0067] where, represents the loss value corresponding to the above loss function, ( )represents the actual allocated power corresponding to any one of the above multiple charging terminals, represents the actual charging power corresponding to any one of the above multiple charging terminals, i represents the identifier corresponding to any one of the above multiple charging terminals, and n represents the number of charging terminals of multiple charging terminals.
[0068] Step S32, perform the initialization operation of the differential evolution algorithm, which specifically includes initializing the Powerset dataset, initializing the population size NP, the mutation factor F, and the crossover rate CR. For example, initialize the population size NP = 100, the mutation factor F = 0.5, and the crossover rate CR = 0.5.
[0069] Step S33, design the differential evolution algorithm, including the design of the algorithm's mutation strategy, the algorithm's crossover strategy, and the configuration of the greedy mechanism in the algorithm, which specifically includes the following sub-steps:
[0070] Step S331, design the mutation strategy of the algorithm as:
[0071]
[0072] Let represent a mutation vector generated in the i-th iteration. , This represents the vectors of three randomly selected individuals from the population.
[0073] Step S332, the crossover strategy of the algorithm is designed as follows:
[0074]
[0075] Where the variable D represents the number of dimensions, This represents the new individual formed by swapping the j-th dimension among individuals (optimal power switching strategy) in the i-th iteration.
[0076] Step S333: Configure a greedy mechanism in the algorithm, that is, select the optimal strategy from all individuals (power switching strategies) based on the value of the loss function.
[0077] Step S34: Set the number of iterations. It's understandable that as the number of iterations increases, the loss function value will gradually decrease. For example... Figure 5 In the diagram showing the optimization results of the differential evolution algorithm, the loss function can reach a stable minimum value when the number of algorithm iterations Generation=100. Therefore, the number of algorithm iterations Generation=100 is set, and the differential evolution algorithm is used to solve for the optimal power switching strategy, thus obtaining the target power switching strategy.
[0078] Step S4, determine the overall power utilization rate and power matching degree of the charger, which includes the following sub-steps:
[0079] Step S41: Based on the actual charging power of each of the above-mentioned charging terminals and the above-mentioned rated output power, the overall power utilization rate is obtained in the following manner:
[0080]
[0081] in, This indicates the overall power utilization rate mentioned above. ( () represents the actual charging power of any one of the multiple charging terminals, i represents the identifier of any one of the multiple charging terminals, and n represents the number of charging terminals. This indicates the rated output power mentioned above.
[0082] Step S42: Based on the actual charging power and required power corresponding to the above-mentioned multiple charging terminals, the power matching degree is obtained in the following way:
[0083]
[0084] in, This indicates the power matching degree mentioned above. This indicates the power requirement for any one of the multiple charging terminals mentioned above.
[0085] Step S5 outputs the optimal power switching strategy, and two indicators: overall system power utilization and power matching degree, to more intuitively observe the adjustment results and performance of the target power switching strategy.
[0086] It should be noted that the "first-come, first-served, optimized efficiency" strategy of this invention ensures fairness in user queuing, allowing vehicles that start charging first to receive a larger power allocation, achieving high-power rapid charging. Tables 1 and 2 show the comparison results of the optimized overall power utilization and power matching degree in a set of actual scenarios based on this invention. It can be seen that compared with the traditional power switching strategy, this invention can effectively improve power utilization. At the same time, vehicles starting later maintain minimum power charging, maintaining user stickiness. Furthermore, a power utilization adjustment step is added, so that when the system power does not meet the current total demand, it serves the vehicles at the current moment with the highest possible output power, improving equipment operating efficiency. Therefore, this strategy is suitable for urban public charging stations. Vehicle charging at urban public charging stations is a disorderly activity, with diverse vehicle types and power demands, making it suitable to prioritize the needs of vehicles that arrive first.
[0087] Table 1
[0088]
[0089] Table 2
[0090]
[0091] This embodiment also provides a power control device for a charger, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module" and "device" can refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0092] According to an embodiment of the present invention, an apparatus embodiment for implementing the power control method of the charger described above is also provided. Figure 6 This is a schematic diagram of the structure of a power control device for a charger according to an embodiment of the present invention, as shown below. Figure 6As shown, the power control device of the charger includes: a first acquisition module 600, a first determination module 602, a second determination module 604, and a second acquisition module 606, wherein:
[0093] The first acquisition module 600 is used to acquire charging data corresponding to multiple charging terminals corresponding to the charger. The charging data includes at least: the required power, actual allocated power, actual charging power, request order of sending charging requests, and idle state of the charging module in the charger.
[0094] The first determining module 602, connected to the first acquiring module 600, is used to determine the first power switching strategy corresponding to the multiple charging terminals based on the request order of the multiple charging terminals when it is detected that the multiple charging terminals cannot meet the actual charging power requirements. The first power switching strategy is used to indicate the number of first power groups allocated to the multiple charging terminals respectively.
[0095] The second determining module 604 is connected to the first determining module 602 and is used to determine the power utilization rate of the multiple charging terminals based on the actual allocated power and actual charging power of the multiple charging terminals respectively.
[0096] The second acquisition module 606, connected to the second determination module 604, is used to optimize the first power switching strategy based on the charging data when a first charging terminal with a power utilization rate less than the utilization rate threshold is detected among the plurality of charging terminals, thereby obtaining a target power switching strategy corresponding to the plurality of charging terminals. The target power switching strategy is used to indicate the number of target power groups allocated to the plurality of charging terminals respectively.
[0097] In this embodiment of the invention, a first acquisition module 600 is configured to acquire charging data corresponding to multiple charging terminals corresponding to the charger. The charging data includes at least: the required power, actual allocated power, actual charging power, request order of the charging requests issued by each of the multiple charging terminals, and the idle state of the charging modules in the charger. A first determination module 602, connected to the first acquisition module 600, is configured to determine a first power switching strategy corresponding to the multiple charging terminals based on the request order of the charging requests issued by each of the multiple charging terminals when the actual charging power requirement is detected to be unmet. The first power switching strategy indicates the number of first power groups allocated to each of the multiple charging terminals. A second determination module 604, connected to the first determination module 602, is configured to determine the first power switching strategy based on the request order of the charging requests issued by each of the multiple charging terminals. The actual allocated power and actual charging power are used to determine the power utilization rate of the multiple charging terminals respectively. The second acquisition module 606, connected to the second determination module 604, is used to optimize the first power switching strategy based on the charging data when a first charging terminal with a power utilization rate less than the utilization rate threshold is detected among the multiple charging terminals. The optimization results in a target power switching strategy for the multiple charging terminals. The target power switching strategy is used to indicate the number of target power groups allocated to the multiple charging terminals respectively. This achieves the goal of accurately acquiring and optimizing the power switching strategy of multiple charging terminals and improving power allocation efficiency. This improves the power group allocation efficiency of the charging terminals, thereby enhancing the energy utilization rate and charging fairness. This solves the technical problems of low energy utilization rate and poor allocation fairness in the power allocation and control methods of chargers in related technologies.
[0098] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0099] It should be noted that the first acquisition module 600, the first determination module 602, the second determination module 604, and the second acquisition module 606 mentioned above correspond to steps S102 to S108 in the embodiments. The instances and application scenarios implemented by the above modules and their corresponding steps are the same, but they are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.
[0100] It should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the embodiments, and will not be repeated here.
[0101] The power control device of the charger described above may also include a processor and a memory. The first acquisition module 600, the first determination module 602, the second determination module 604, the second acquisition module 606, etc. are all stored in the memory as program modules, and the processor executes the program modules stored in the memory to realize the corresponding functions.
[0102] The processor contains a core that retrieves the corresponding program modules from memory. One or more cores may be configured. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory includes at least one memory chip.
[0103] According to an embodiment of this application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein, when the program is running, it controls the device containing the non-volatile storage medium to execute any of the power control methods of the charger.
[0104] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals, and the non-volatile storage medium includes stored programs.
[0105] Optionally, during program execution, the device containing the non-volatile storage medium performs the following functions: acquiring charging data corresponding to multiple charging terminals corresponding to the charger, wherein the charging data includes at least: the required power, actual allocated power, actual charging power, request order of the charging requests issued by the multiple charging terminals, and the idle state of the charging module in the charger; when it is detected that the multiple charging terminals cannot meet the actual charging power requirements, determining a first power switching strategy for the multiple charging terminals based on the request order of the charging requests issued by the multiple charging terminals, wherein the first power switching strategy is used to indicate the number of first power groups allocated to the multiple charging terminals; determining the power utilization rate of the multiple charging terminals based on the actual allocated power and actual charging power; when it is detected that there is a first charging terminal among the multiple charging terminals with a power utilization rate less than the utilization rate threshold, optimizing the first power switching strategy based on the charging data to obtain a target power switching strategy for the multiple charging terminals, wherein the target power switching strategy is used to indicate the number of target power groups allocated to the multiple charging terminals.
[0106] According to an embodiment of this application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any of the above-described power control methods for a charger.
[0107] According to an embodiment of this application, an embodiment of a computer program product is also provided, which, when executed on a data processing device, is adapted to execute a program that initializes the power control method steps of a charger having any of the above-described steps.
[0108] Optionally, when the aforementioned computer program product is executed on a data processing device, it is suitable to execute an initialization program with the following method steps: acquiring charging data corresponding to multiple charging terminals corresponding to the charger, wherein the charging data includes at least: the required power, actual allocated power, actual charging power, request order of issuing charging requests for each of the multiple charging terminals, and the idle state of the charging module in the charger; when it is detected that the multiple charging terminals cannot meet the actual charging power requirement, determining a first power switching strategy for the multiple charging terminals based on the request order of issuing charging requests for each of the multiple charging terminals, wherein the first power switching strategy is used to indicate the number of first power groups allocated to each of the multiple charging terminals; determining the power utilization rate of each of the multiple charging terminals based on the actual allocated power and actual charging power; when it is detected that there is a first charging terminal among the multiple charging terminals with a power utilization rate less than a utilization rate threshold, optimizing the first power switching strategy based on the aforementioned charging data to obtain a target power switching strategy for the multiple charging terminals, wherein the target power switching strategy is used to indicate the number of target power groups allocated to each of the multiple charging terminals.
[0109] This invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: acquiring charging data corresponding to multiple charging terminals corresponding to a charger, wherein the charging data includes at least: the required power, actual allocated power, actual charging power, request order of the charging requests issued by each of the multiple charging terminals, and the idle state of the charging module in the charger; when it is detected that the multiple charging terminals cannot meet the actual charging power requirement, determining a first power switching strategy corresponding to the multiple charging terminals based on the request order of the charging requests issued by the multiple charging terminals, wherein the first power switching strategy is used to indicate the number of first power groups allocated to each of the multiple charging terminals; determining the power utilization rate corresponding to each of the multiple charging terminals based on the actual allocated power and actual charging power; when it is detected that there is a first charging terminal among the multiple charging terminals with a power utilization rate less than a utilization rate threshold, optimizing the first power switching strategy based on the charging data to obtain a target power switching strategy corresponding to the multiple charging terminals, wherein the target power switching strategy is used to indicate the number of target power groups allocated to each of the multiple charging terminals.
[0110] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0111] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of modules described above can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between modules, and may be electrical or other forms.
[0113] The modules described above as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0114] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0115] If the aforementioned integrated modules are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of this invention, in essence, 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. This computer software product is stored in a non-volatile storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned non-volatile storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0116] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A power control method for a charger, characterized in that, include: Obtain charging data corresponding to multiple charging terminals corresponding to the charger, wherein the charging data includes at least: the required power, actual allocated power, actual charging power, the order in which charging requests are issued for each of the multiple charging terminals, and the idle state of the charging module in the charger. If it is detected that the multiple charging terminals cannot meet the actual charging power demand, a first power switching strategy is determined based on the request order of the charging requests issued by the multiple charging terminals. This includes: determining the initial number of power groups corresponding to each of the multiple charging terminals based on the request order of the charging requests issued by the multiple charging terminals; if it is detected that a first number of charging terminals at the end of the multiple charging terminals have not been allocated a power group, a second number of charging terminals preceding the first number of charging terminals are determined based on the request order of the charging requests issued by the multiple charging terminals; a predetermined number of power groups are switched out from the second number of charging terminals and allocated to the first number of charging terminals, resulting in the number of first power groups allocated to each of the multiple charging terminals; wherein, the first power switching strategy is used to indicate the number of first power groups allocated to each of the multiple charging terminals. Based on the actual allocated power and actual charging power of the multiple charging terminals respectively, the power utilization rate of the multiple charging terminals is determined. If a first charging terminal with a power utilization rate less than a utilization threshold is detected among the plurality of charging terminals, the first power switching strategy is optimized based on the charging data to obtain a target power switching strategy corresponding to the plurality of charging terminals. This includes: determining a loss function based on the actual allocated power and actual charging power corresponding to each of the plurality of charging terminals; and optimizing the first power switching strategy using a differential evolution algorithm based on the charging data and the loss function to obtain the target power switching strategy. The target power switching strategy is used to indicate the number of target power groups allocated to each of the plurality of charging terminals. The method further includes: obtaining the rated output power corresponding to the charger; obtaining the overall power utilization rate corresponding to the charger based on the actual charging power corresponding to the plurality of charging terminals and the rated output power; obtaining the power matching degree corresponding to the charger based on the actual charging power and demand power corresponding to the plurality of charging terminals, wherein the overall power utilization rate and the power matching degree are used to indicate the adjustment performance of the target power switching strategy.
2. The method according to claim 1, characterized in that, The step of determining the loss function based on the actual allocated power and actual charging power corresponding to the multiple charging terminals includes: Based on the actual allocated power and actual charging power corresponding to the multiple charging terminals, the loss function is determined in the following manner: ; in, This represents the loss value corresponding to the loss function. ( () represents the actual allocated power corresponding to any one of the plurality of charging terminals. The value represents the actual charging power of any one of the multiple charging terminals, i represents the identifier of any one of the multiple charging terminals, and n represents the number of charging terminals among the multiple charging terminals.
3. The method according to claim 1, characterized in that, Based on the actual charging power corresponding to each of the multiple charging terminals and the rated output power, the overall power utilization rate is obtained in the following way: ; in, This indicates the overall power utilization rate. ( () represents the actual charging power of any one of the plurality of charging terminals, i represents the identifier of any one of the plurality of charging terminals, and n represents the number of charging terminals in the plurality of charging terminals. This indicates the rated output power; Based on the actual charging power and required power corresponding to the multiple charging terminals, the power matching degree is obtained in the following way: ; in, Indicates the power matching degree, This indicates the required power for any one of the plurality of charging terminals.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If there is no first charging terminal among the plurality of charging terminals with a power utilization rate less than the utilization rate threshold, the first power switching strategy shall be used as the target power switching strategy.
5. A power control device for a charger, characterized in that, include: The first acquisition module is used to acquire charging data corresponding to multiple charging terminals corresponding to the charger. The charging data includes at least: the required power, actual allocated power, actual charging power, request order of sending charging requests, and idle state of the charging module in the charger. A first determining module is configured to, when it is detected that the plurality of charging terminals cannot meet the actual charging power demand, determine a first power switching strategy corresponding to the plurality of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals, including: determining the initial number of power groups corresponding to each of the plurality of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals; when it is detected that a first number of charging terminals at the end of the plurality of charging terminals have not been allocated a power group, determining a second number of charging terminals preceding the first number of charging terminals based on the request order of the charging requests issued by the plurality of charging terminals; and cutting off a predetermined number of power groups from the second number of charging terminals and allocating them to the first number of charging terminals, thereby obtaining the number of first power groups allocated to each of the plurality of charging terminals; wherein, the first power switching strategy is used to indicate the number of first power groups allocated to each of the plurality of charging terminals. The second determining module is used to determine the power utilization rate of the multiple charging terminals based on the actual allocated power and actual charging power of the multiple charging terminals respectively. The second acquisition module is used to optimize the first power switching strategy based on the charging data when a first charging terminal with a power utilization rate less than a utilization threshold is detected among the plurality of charging terminals, to obtain a target power switching strategy corresponding to the plurality of charging terminals. This includes: determining a loss function based on the actual allocated power and actual charging power corresponding to each of the plurality of charging terminals; and optimizing the first power switching strategy using a differential evolution algorithm based on the charging data and the loss function when a first charging terminal with a power utilization rate less than a utilization threshold is detected among the plurality of charging terminals, to obtain the target power switching strategy. The target power switching strategy is used to indicate the number of target power groups allocated to each of the plurality of charging terminals. The device is further configured to: obtain the rated output power corresponding to the charger; obtain the overall power utilization rate corresponding to the charger based on the actual charging power corresponding to the plurality of charging terminals and the rated output power; and obtain the power matching degree corresponding to the charger based on the actual charging power and demand power corresponding to the plurality of charging terminals, wherein the overall power utilization rate and the power matching degree are used to indicate the adjustment performance of the target power switching strategy.
6. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores multiple instructions adapted for loading by a processor and executing the power control method of the charger according to any one of claims 1 to 4.
7. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the power control method of the charger according to any one of claims 1 to 4.