A parallel discharge method, storage medium and electronic equipment
By calculating and controlling the discharge current of each target discharge device, the problem of current imbalance in parallel discharge is solved, efficiency and service life are improved, and the equipment's equalization loss and efficient discharge are achieved.
Patent Information
- Application Number
- CN202211650312.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-12-21
AI Technical Summary
During the parallel discharge process, it is difficult for the prior art to effectively balance the discharge current of each target discharge device, resulting in a short service life or low discharge efficiency.
By obtaining the data information of each target discharge device, calculating the minimum voltage and maximum amount to be discharged, determining the discharge current of each device, to control each device to discharge with the minimum voltage and corresponding current, and to ensure that the equipment with large amount to be discharged is relatively small. High current discharge extends service life.
The efficiency of parallel discharge and the service life of the equipment are improved, ensuring that each equipment completes discharge at the same time, and avoiding the problem of unbalanced equipment loss.
Smart Images

Figure CN115954970B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charge and discharge control, and in particular to a parallel discharge method, a storage medium and an electronic device. Background Art
[0002] A mobile energy storage vehicle is a movable power supply device. A mobile energy storage vehicle can generally discharge energy to a charging device in the power grid to charge the device to be charged.
[0003] At present, one mobile energy storage vehicle is generally used to discharge to the device to be charged through one charging port of the device to be charged at the same time. For devices to be charged with a large maximum charging current such as power grids, in order to improve the efficiency of charging the devices to be charged, multiple mobile energy storage vehicles of the same model connected in parallel can be used to discharge to the device to be charged through one charging port of the device to be charged. Because the multiple mobile energy storage vehicles connected in parallel are of the same model, each mobile energy storage vehicle is generally controlled to discharge with the same discharge current.
[0004] However, if a larger current is used as the above-mentioned discharge current, the service life of the mobile energy storage vehicle performing parallel discharge will be shorter; if a smaller current is used as the above-mentioned discharge current, the discharge amount discharged in parallel to the device to be charged within a certain period of time is small, thereby making the discharge efficiency of the mobile energy storage vehicle performing parallel discharge low. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is:
[0006] According to one aspect of the present invention, a parallel discharge method is provided, the method comprising the following steps:
[0007] S100, controlling a plurality of target discharge devices connected in parallel to perform discharge processing periodically.
[0008] The discharge process includes the following steps:
[0009] S110, obtaining a data information group H corresponding to a number of target discharge devices = (h1, h2, ..., h i ,...,h n ), i=1,2,...,n,h i =(Q i ,U i ), where h i is the data information of the i-th target discharge device, Q i is the amount of battery to be discharged in the i-th target discharge device, U iis the terminal voltage of the battery inside the i-th target discharge device, n is the number of target discharge devices; n>1; several target discharge devices are all discharge devices of the same model; the terminal voltage is positively correlated with the amount of discharge to be discharged of the corresponding battery.
[0010] S120, obtaining target discharge time t=Q max / (U min *I max ), where Q max is the maximum discharge capacity, Q max =max(Q1,Q2,...,Q i ,...,Q n ), max() is the preset maximum value determination function; U min is the minimum voltage, U min =min(U1,U2,...,U i ,...,U n ), min() is the preset minimum value determination function; I max The rated maximum discharge current of the battery inside the target discharge device.
[0011] S130, obtaining a discharge current group CUR corresponding to a number of target discharge devices = (I1, I2, ..., I i ,...,I n ); where I i is the discharge current corresponding to the i-th target discharge device, I i =Q i / (U min *t).
[0012] S140, controlling the i-th target discharge device among the plurality of target discharge devices to min and I i Discharge.
[0013] According to another aspect of the present invention, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned parallel discharge method.
[0014] According to another aspect of the present invention, there is also provided an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.
[0015] The present invention has at least the following beneficial effects:
[0016] In the present invention, when a plurality of target discharge devices are used for parallel discharge, it can be determined that each target discharge device is connected with U min Discharge, then according to t = Q max / (U min *I max ), it can be determined that the target discharge device with the largest amount of discharge to be discharged is at the maximum discharge current and U min The corresponding target discharge time t in the case of discharge, and then according to I i =Q i / (U min *t), the discharge current corresponding to each target discharge device can also be determined, and then the i-th target discharge device can be controlled to be U min and I i Discharge. Compared with the related art in which each target discharge device uses the same discharge current for parallel discharge, the present invention tries to make each target discharge device complete discharge at the same time, and then, the discharge current of the target discharge device with a larger amount to be discharged is larger, so that the time for the parallel discharge of several target discharge devices is shorter and more efficient, and the discharge current of the target discharge device with a smaller amount to be discharged is smaller, so as to extend the service life of the target discharge device as much as possible. Therefore, the present invention can make the discharge efficiency of several target discharge devices for parallel discharge higher, and at the same time can extend the service life of the target discharge devices as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flow chart of a discharge process provided by an embodiment of the present invention.
[0019] Figure 2 A schematic diagram of a parallel discharge structure provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0021] An embodiment of the present invention provides a parallel discharge method, wherein the method can be completed by any one of the following or any combination thereof: a terminal, a server, and other devices with processing capabilities, which are not limited in the embodiment of the present invention.
[0022] The embodiment of the present invention takes a server as an example, and the parallel discharge method will be introduced below.
[0023] The method comprises the following steps:
[0024] S100, controlling a plurality of target discharge devices connected in parallel to perform discharge processing periodically.
[0025] Among them, refer to Figure 1 The discharge process shown in the flow chart includes the following steps:
[0026] S110, obtaining a data information group H corresponding to a number of target discharge devices = (h1, h2, ..., h i ,...,h n ), i=1,2,...,n,h i =(Q i ,U i ).
[0027] Among them, h i is the data information of the i-th target discharge device, Q i is the amount of battery to be discharged in the i-th target discharge device, U i is the terminal voltage of the battery inside the i-th target discharge device, n is the number of target discharge devices; n>1; several target discharge devices are all discharge devices of the same model; the terminal voltage is positively correlated with the amount of discharge to be discharged of the corresponding battery.
[0028] Specifically, the target discharge device may be a mobile energy storage vehicle that performs parallel discharge.
[0029] S120, obtaining target discharge time t=Q max / (U min *I max ).
[0030] Among them, Q max is the maximum discharge capacity, Q max =max(Q1,Q2,...,Q i ,...,Q n ), max() is the preset maximum value determination function; U min is the minimum voltage, U min =min(U1,U2,...,U i ,...,U n ), min() is the preset minimum value determination function; I max The rated maximum discharge current of the battery inside the target discharge device.
[0031] Specifically, the target discharge device is internally installed with a battery for providing power for its external discharge and its own movement.min ≤U i .
[0032] S130, obtaining a discharge current group CUR corresponding to a number of target discharge devices = (I1, I2, ..., I i ,...,I n ).
[0033] Among them, I i is the discharge current corresponding to the i-th target discharge device, I i =Q i / (U min *t).
[0034] S140, controlling the i-th target discharge device among the plurality of target discharge devices to min and I i Discharge.
[0035] Specifically, a transformer for adjusting the working voltage of the target discharge device is installed in the target discharge device.
[0036] Based on this, a specific implementation of the above step S140 may be: after determining U min and I i After that, the server can control the transformer in each target discharge device to adjust the working voltage of the target discharge device to U min , and then the server can control each target discharge device to U min and I i Discharge.
[0037] A specific implementation of the above step S140 may be as follows: controlling the i-th target discharge device among the plurality of target discharge devices to discharge at U min and I i Discharging to the grid so that the grid is charged.
[0038] It can be seen from this that in the present invention, when a plurality of target discharge devices are used for parallel discharge, it can be determined that each target discharge device is connected with U min Discharge, then according to t = Q max / (U min *I max ), it can be determined that the target discharge device with the largest amount of discharge to be discharged is at the maximum discharge current and U min The corresponding target discharge time t in the case of discharge, and then according to I i =Q i / (U min *t), the discharge current corresponding to each target discharge device can also be determined, and then the i-th target discharge device can be controlled to be U min and Ii Discharge. Compared with the related art in which each target discharge device uses the same discharge current for parallel discharge, the present invention tries to make each target discharge device complete discharge at the same time, and then, the discharge current of the target discharge device with a larger amount to be discharged is larger, so that the time for the parallel discharge of several target discharge devices is shorter and more efficient, and the discharge current of the target discharge device with a smaller amount to be discharged is smaller, so as to extend the service life of the target discharge device as much as possible. Therefore, the present invention can make the discharge efficiency of several target discharge devices for parallel discharge higher, and at the same time can extend the service life of the target discharge devices as much as possible.
[0039] Optionally, before step S100, the method further includes the following steps:
[0040] S200, obtaining a group of to-be-discharged quantities corresponding to a number of candidate discharge devices A=(a1, a2, ..., a j ,...,a m ), j=1,2,...,m.
[0041] Among them, a j is the amount of discharge to be discharged of the jth candidate discharge device, a1≥a2≥...,a j ≥...≥a m ; m is the number of candidate discharge devices, m≥n.
[0042] Specifically, the candidate discharge device can be a mobile energy storage vehicle corresponding to the server, or a mobile energy storage vehicle whose distance from the target charging position is less than a preset threshold. The preset threshold can be set according to the specific usage scenario. For example, if the parallel discharge is performed outdoors on the power grid in parallel, the preset threshold is greater than 500 meters or less than 2000 meters.
[0043] S300, obtaining the first p1 to-be-discharged quantities in A to obtain a first to-be-discharged quantity group A 1 =(a1,a2,...,a p1 ).
[0044] Among them, a p1 is the p1th to-be-discharged quantity in A; p1 is the quantity of to-be-discharged quantities obtained in A; if (a1-a m )≤a0, then p1=m; if (a1-a m )>a0, then p1<m, (a1-a p1 )≤a0 and (a1-a p1+1 )>a0; a0 is the preset power.
[0045] Specifically, if (a1-a m)≤a0, it means that the difference between any two to-be-discharged quantities in A is less than or equal to a0, and p1=m; if (a1-a m )>a0, it means that the difference between at least two to-be-discharged quantities in A is greater than a0, at this time p1<m, (a1-a p1 )≤a0 and (a1-a p1+1 The preset power may be 1%-15% of the battery capacity of the battery inside the target discharge device. For example, if the battery capacity of the battery inside the target discharge device is 700 kWh, the preset power may be 7 kWh.
[0046] A specific implementation of the above step S300 may be as follows:
[0047] Step S300 includes the following steps:
[0048] S310, for a in A m A first determination process is performed to determine p1.
[0049] S320, according to p1, obtain the first p1 to-be-discharged quantities in A to obtain a first to-be-discharged quantity group A 1 =(a1,a2,...,a p1 ).
[0050] The first determination process includes the following steps.
[0051] S311, the to-be-discharged amount subjected to the first determination process is used as the to-be-processed to-be-discharged amount.
[0052] S312, determine whether the difference between the to-be-processed discharge amount and a1 is less than or equal to a0; if so, proceed to step S313; otherwise, proceed to step S314.
[0053] S313, determine whether the amount of discharge to be processed is a m ; If so, p1 = m, and the first determination process is terminated; otherwise, p1 is the arrangement order of the to-be-processed discharge amounts in A, and the first determination process is terminated.
[0054] S314, determining whether the to-be-processed to-be-discharged amount is a1; if so, ending the first determination process; otherwise, performing the first determination process on the previous to-be-discharged amount of the to-be-processed to-be-discharged amount in A.
[0055] S400, if p1>1, then A 1 At least two candidate discharge devices corresponding to the amounts to be discharged are used as target discharge devices.
[0056] S500: If p1=1, at least two candidate discharge devices corresponding to the amounts to be discharged in A are taken as target discharge devices.
[0057] A specific implementation of the above step S500 may be that, if p1=1, the candidate discharge devices corresponding to a1 and a2 in A are both used as target discharge devices.
[0058] From this we can see that if p1>1, then A 1 The difference between any two to-be-discharged amounts in is less than or equal to a0, and then A 1 At least two candidate discharge devices corresponding to the amounts to be discharged in the target discharge devices are all used as target discharge devices, so that the difference between the amounts to be discharged of different target discharge devices among the target discharge devices can be minimized as much as possible. Because under the same other conditions, the smaller the difference between the amounts to be discharged of the target discharge devices in parallel discharge, the greater the discharge amount of the parallel discharge, thereby improving the discharge efficiency of the parallel discharge of the target discharge devices. In addition, the smaller the difference between the amounts to be discharged of the target discharge devices in parallel discharge, the smaller the difference between the discharge currents of the target discharge devices will be as small as possible, at which time the loss of the target discharge devices can be more balanced to reduce the possibility of serious loss of any target discharge device.
[0059] Optionally, after step S300 and before step S400, the method further includes the following steps:
[0060] S600, determine a1+a2+...+a p1 Is it greater than or equal to C? If so, proceed to step S400; otherwise, take at least two candidate discharge devices as target discharge devices.
[0061] Wherein, C is the charge amount corresponding to the device to be charged, and a plurality of target discharge devices are used to discharge to the device to be charged.
[0062] For example, Figure 2 The schematic diagram of the parallel discharge structure shown is used to represent that two target discharge devices discharge in parallel to the device to be charged. Figure 2 1 in the figure is a fast parallel interface for connecting two target discharge devices in parallel.
[0063] Specifically, the device to be charged may be a power grid or an electric vehicle with a large rated maximum charging current. A specific implementation of taking at least two candidate discharge devices as target discharge devices in step S600 may be: taking the candidate discharge devices corresponding to a1 and a2 in A as target discharge devices. p1 Less than C, indicating A 1Even if all candidate discharge devices corresponding to each amount to be discharged in parallel are discharged, the demand for the amount to be charged of the device to be charged cannot be met at one time. At this time, the server can first schedule the candidate discharge devices corresponding to a1 and a2 as target discharge devices for parallel discharge to avoid using too many target discharge devices to execute a parallel discharge task.
[0064] Step S400 includes the following steps:
[0065] S410, if p1>1, obtain A 1 The first p2 to-be-discharged quantities in the , to obtain the second to-be-discharged quantity group A 2 =(a1,a2,...,a p2 ).
[0066] Among them, a p2 A 1 The p2th amount to be discharged in the p2 ≥C and (a1+a2+...+a p2 )-a p2 <C.
[0067] Specifically, if p2=1, then the above a1+a2+...+a p2 ≥C and (a1+a2+...+a p2 )-a p2 <C means: p2≤p1, a1≥C and 0<C.
[0068] S420, if 1<p2<p1, then in A 1 Obtain the third to-be-discharged amount group list A1=(A 3 1,A 3 2,...,A 3 s ,...,A 3 r ),
[0069] s=1,2,...,r,A 3 s =(a s ,a s+1 ,...,a s-1+p2 ).
[0070] Among them, A 3 s is the sth third group of quantities to be discharged; r is the number of the third groups of quantities to be discharged, r=p1-p2+1.
[0071] For example, if p1=4, p2=3, then A 1 =(a1,a2,a3,a4), A1 = (A3 1,A 3 2), A 3 1=(a1,a2,a3),A 3 2=(a2,a3,a4).
[0072] S430, obtaining the first f third to-be-discharged amount groups in A1 to obtain a target third to-be-discharged amount group list A2 = (A 3 1,A 3 2,...,A 3 e ,...,A 3 f ), e=1,2,...,f.
[0073] Among them, A 3 e is the eth third group of discharge quantities to be discharged in A1; if a r +a r+1 +...+a r-1+p2 ≥C, then f=r; if a r +a r+1 +...+a r-1+p2 <C, then f<r, a f +a f+1 +...+a f-1+p2 ≥C and a f+1 +a f+2 +...+a f+p2 <C.
[0074] S440, according to A2, obtain the difference value group of the amount to be discharged Δa=(Δa 1 ,Δa 2 ,...,Δa e ,...,Δa f ). Among them, Δa e A 3 e The corresponding difference in the amount of discharge to be discharged, Δa e =a e -a e-1+p2 .
[0075] S450, the minimum difference in the amount of discharge to be discharged Δa min The candidate discharge devices corresponding to each amount to be discharged in the corresponding third amount to be discharged group are all used as target discharge devices; wherein Δa min =min(Δa 1 ,Δa 2 ,...,Δa e ,...,Δa f ).
[0076] It can be seen that, through C, the minimum number p2 of candidate discharge devices that meet the charging requirements of the device to be charged can be determined from among several candidate discharge devices, and then A1 can be determined according to p2, and A2 can be determined in A1, and then the target discharge device with a smaller difference in the corresponding amount to be discharged can be determined according to A2, that is, the target discharge device with a smaller number in parallel, which meets the charging requirements of the device to be charged and has a smaller difference in the corresponding amount to be discharged can be determined. Among them, minimizing the number of target discharge devices can make the target discharge device consume less power for movement. At the same time, if other conditions are the same, the smaller the difference between the amounts to be discharged of several target discharge devices in parallel discharge, the more the discharge amount of parallel discharge, and thus the discharge efficiency of several target discharge devices in parallel discharge can be improved. Therefore, the parallel discharge of several target discharge devices in the present invention can not only meet the charging requirements of the device to be charged, but also maximize the effective use rate of power and improve the discharge efficiency.
[0077] Optionally, after step S410, step S400 further includes the following steps:
[0078] S460, if p2=p1, then A 2 Each candidate discharge device corresponding to the amount to be discharged in is used as the target discharge device.
[0079] Optionally, after step S410, step S400 further includes the following steps:
[0080] S470, if p2=1, then A 1 The candidate discharge devices corresponding to a1 and a2 in are all used as target discharge devices.
[0081] Optionally, before step S140, the discharge process further includes the following steps:
[0082] S150, determine the total current I amo Is it less than or equal to I c max .
[0083] Among them, I amo =I1+I2+...+I i +...+I n :I c max is the rated maximum charging current of the device to be charged; if so, proceed to step S140; a plurality of target discharge devices are used to discharge to the device to be charged.
[0084] Specifically, if the device to be charged is a power grid, then I c max If the device to be charged is an electric vehicle, etc., then I cmax Smaller.
[0085] Optionally, step S150 further includes the following steps:
[0086] S151, determine the total current I amo Is it less than or equal to I c max :Among them, I amo =I1+I2+...+I i +...+I n :I c max is the rated maximum charging current of the device to be charged; if so, proceed to step S140; otherwise, proceed to step S160;
[0087] The discharge process also includes the following steps:
[0088] S160, obtaining a second target current group CUR 1 =(I1 1 ,I2 1 ,...,I i 1 ,...,I n 1 ).
[0089] Among them, I i 1 is the second target current corresponding to the i-th target discharge device, I i 1 =I i / I amo *I c max .
[0090] S170, controlling the i-th target discharge device among the plurality of target discharge devices to U min and I i 1 Discharge to the device to be charged.
[0091] Optional, Q i =X i -Q 0 i , X i is the remaining power of the i-th target discharge device, Q 0 i is the reserve power corresponding to the i-th target discharge device, Q 0 i It is obtained according to the distance between the corresponding target discharging device and the device to be charged and the distance between the device to be charged and the charging position. The target discharging devices are used to discharge to the device to be charged, and the charging position is used to charge the target discharging devices.
[0092] For example, Q 0 i =(dis1 i +dis2 i )*(W / DIS)+β,dis1 i is the distance between the corresponding target discharge device and the device to be charged, dis2 i is the distance between the device to be charged and the charging position, W is the rated full charge of the target discharge device, DIS is the estimated driving distance when the target discharge device is fully charged, β is the preset power, optional, β = 0.01*W.
[0093] Similarly, each amount to be discharged in the embodiment of the present invention can be obtained by i The method is similar to that described in the embodiment of the present invention, and the details will not be described in detail here.
[0094] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.
[0095] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0096] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0097] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A parallel discharge method, It is characterized in that The method comprises the following steps: S100, controlling a plurality of target discharge devices connected in parallel to perform discharge processing periodically; The discharge process comprises the following steps: S110, obtaining a data information group H corresponding to a number of target discharge devices = (h 1 ,h 2 ,...,h i ,...,h n ), i=1,2,...,n,h i =(Q i ,U i ), where h i is the data information of the i-th target discharge device, Q i is the amount of battery to be discharged in the i-th target discharge device, U i is the terminal voltage of the battery inside the i-th target discharge device, n is the number of the target discharge devices; n>1; the target discharge devices are all discharge devices of the same model; the terminal voltage is positively correlated with the amount of discharge to be discharged of the corresponding battery; S120, obtaining target discharge time t=Q max / (U min *I max ), where Q max is the maximum discharge capacity, Q max =max(Q 1 ,Q 2 ,...,Q i ,...,Q n ), max() is the preset maximum value determination function; U min is the minimum voltage, U min =min(U 1 ,U 2 ,...,U i ,...,U n ), min() is the preset minimum value determination function; I max The rated maximum discharge current of the battery inside the target discharge device; S130, obtaining a discharge current group CUR corresponding to a plurality of target discharge devices = (I 1 ,I 2 ,...,I i ,...,I n ); where I i is the discharge current corresponding to the i-th target discharge device, I i =Q i / (U min *t); S140, controlling the i-th target discharge device among the plurality of target discharge devices to discharge at U min and I i Discharge is performed; Wherein, before step S100, the parallel discharge method further includes the following steps: S200, obtaining a group of to-be-discharged quantities A corresponding to a number of candidate discharge devices = (a 1 ,a 2 ,...,a j ,...,a m ), j = 1, 2, ..., m; where a j is the amount of discharge to be discharged by the jth candidate discharge device, a 1 ≥a 2 ≥...,a j ≥...≥a m ; m is the number of candidate discharge devices, m≥n; S300, obtaining the first p1 to-be-discharged quantities in A to obtain a first to-be-discharged quantity group A 1 =(a 1 ,a 2 ,...,a p1 ), where a p1 is the p1th to-be-discharged quantity in A; p1 is the number of to-be-discharged quantities obtained in A; if (a 1 -a m )≤a 0 , then p1=m; if (a 1 -a m )>a 0 , then p1<m, (a 1 -a p1 )≤a 0 And (a 1 -a p1+1 )>a 0 ; a 0 The preset power level; S400, if p1>1, then A 1 At least two candidate discharge devices corresponding to the to-be-discharged amounts in the above are used as the target discharge devices; S500, if p1=1, taking at least two candidate discharge devices corresponding to the to-be-discharged amounts in A as the target discharge devices; Wherein, after step S300 and before step S400, the parallel discharge method further includes the following steps: S600, confirm a 1 +a 2 +...+a p1 Is it greater than or equal to C? If so, proceed to step S400; otherwise, use at least two of the candidate discharge devices as the target discharge devices; C is the charge amount corresponding to the device to be charged, and the target discharge devices are used to discharge to the device to be charged; The step S400 includes the following steps: S410, if p1>1, obtain A 1 The first p2 to-be-discharged quantities in the , to obtain the second to-be-discharged quantity group A 2 =(a 1 ,a 2 ,...,a p2 ), where a p2 A 1 The p2th amount to be discharged in the 1 +a 2 +...+a p2 ≥C and (a 1 +a 2 +...+a p2 )-a p2 <C; S420, if 1<p2<p1, then in A 1 Obtain the third to-be-discharged amount group list A1=(A 3 1 ,A 3 2 ,...,A 3 s ,...,A 3 r ), s=1,2,...,r,A 3 s =(a s ,a s+1 ,...,a s-1+p2 ), where A 3 s is the sth third group of quantities to be discharged; r is the number of the third groups of quantities to be discharged, r=p1-p2+1; S430, obtaining the first f third to-be-discharged amount groups in A1 to obtain a target third to-be-discharged amount group list A2 = (A 3 1 ,A 3 2 ,...,A 3 e ,...,A 3 f ), e=1,2,...,f; where A 3 e is the eth third group of discharge quantities to be discharged in A1; if a r +a r+1 +...+a r-1+p2 ≥C, then f=r; if a r +a r+1 +...+a r-1+p2 <C, then f<r, a f +a f+1 +...+a f-1+p2 ≥C and a f+1 +a f+2 +...+a f+p2 <C; S440, according to A2, obtain the difference value group of the amount to be discharged Δa=(Δa 1 ,Δa 2 ,...,Δa e ,...,Δa f ), where Δa e A 3 e The corresponding difference in the amount of discharge to be discharged, Δa e =a e -a e-1+p2 ; S450, the minimum difference in the amount of discharge to be discharged Δa min The candidate discharge devices corresponding to each amount to be discharged in the corresponding third amount to be discharged group are all used as the target discharge devices; wherein Δa min =min(Δa 1 ,Δa 2 ,...,Δa e ,...,Δa f ).
2. The method according to claim 1, It is characterized in that After step S410, step S400 further includes the following steps: S460, if p2=p1, then A 2 Each candidate discharge device corresponding to the amount to be discharged in is used as the target discharge device.
3. The method according to claim 2, It is characterized in that After step S410, step S400 further includes the following steps: S470, if p2=1, then A 1 a 1 and a 2 The corresponding candidate discharge devices are all used as the target discharge devices.
4. The method according to claim 1, It is characterized in that Before step S140, the discharge process further includes the following steps: S150, determine the total current I amo Is it less than or equal to I c max :Among them, I amo =I 1 +I 2 +...+I i +...+I n :I c max is the rated maximum charging current of the device to be charged; if so, proceed to step S140; a plurality of the target discharge devices are used to discharge to the device to be charged.
5. The method according to claim 4, It is characterized in that The step S150 further includes the following steps: S151, determine the total current I amo Is it less than or equal to I c max :Among them, I amo =I 1 +I 2 +...+I i +...+I n :I c max is the rated maximum charging current of the device to be charged; if so, proceed to step S140; otherwise, proceed to step S160; The discharge process further comprises the following steps: S160, obtaining a second target current group CUR 1 =(I 1 1 ,I 2 1 ,...,I i 1 ,...,I n 1 ); where I i 1 is the second target current corresponding to the i-th target discharge device, I i 1 =I i / I amo *I c max ; S170, controlling the i-th target discharge device among the plurality of target discharge devices to U min and I i 1 Discharge to the device to be charged.
6. The method according to claim 1, It is characterized in that Q i =X i -Q 0 i , X i is the remaining power of the i-th target discharge device, Q 0 i is the reserve power corresponding to the i-th target discharge device, Q 0 i It is obtained according to the distance between the corresponding target discharging device and the device to be charged and the distance between the device to be charged and the charging position, and the target discharging devices are used to discharge to the device to be charged, and the charging position is used to charge the target discharging devices.
7. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the method as claimed in any one of claims 1 to 6.
8. An electronic device, It is characterized in that Comprising a processor and the non-transitory computer-readable storage medium of claim 7.
