Energy output distribution method and device, electronic equipment and storage medium
By prioritizing the DC source and calculating the target output power, the problem of frequent output power fluctuations in the DC microgrid is solved, and smoother power changes and more efficient energy management are achieved.
Patent Information
- Application Number
- CN202411996003.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, the energy management system of the DC microgrid uses segmented conditions in the priority logic judgment, resulting in the inverter output power changes not being smooth enough and fluctuating frequently, affecting the stability of the system and possibly damaging the life of the energy storage system.
By dividing multiple DC sources into at least one priority, and calculating the target output power required for each DC source to output for each priority, the energy distribution under each priority is accurately controlled using the calculation of the compensation coefficient and power adjustment amount.
Make the output power changes of each DC source smoother, improve the stability and efficiency of the energy management system, and extend the life of the energy storage system.
Smart Images

Figure CN119834195A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of direct current microgrids, and in particular to an energy output distribution method, device, electronic equipment and storage medium. Background Art
[0002] With the development of energy management and distributed power generation technology, the application of energy management system (EMS) of DC microgrid or DC system is becoming more and more widespread. In the prior art, the energy management system is usually responsible for monitoring and controlling the operating status of various devices in the microgrid to achieve efficient and stable power supply. Among them, the energy management system needs to make priority logic judgments based on the collected output power of each converter and the target power of the energy storage system, and then control the output power of each converter.
[0003] However, this priority logic judgment is often processed using segmented conditional limitations, which causes the output power of the converter to change in a step-like manner, making the power change not smooth enough and fluctuating frequently. Such fluctuations will not only affect the stability of the system, but may also have a significant impact on the life of the energy storage system. Summary of the invention
[0004] In view of this, an object of embodiments of the present invention is to provide an energy output distribution method, device, electronic device and storage medium to at least partially improve the above-mentioned problem.
[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0006] In a first aspect, an embodiment of the present invention provides an energy output allocation method, the method comprising:
[0007] Acquire the sampled power and target total output power of multiple DC sources at the current moment; the target total output power represents the total power requested by the load; each of the DC sources is divided into at least one priority; the priority represents the priority order of energy output of each of the DC sources;
[0008] Obtaining the power reference value of each priority at the current moment;
[0009] The target output power of each of the DC sources at the next moment is calculated according to each of the power reference values, each of the sampled powers and the target total output power.
[0010] Optionally, calculating the target output power of each of the DC sources at a next moment according to each of the power reference values, each of the sampled powers and the target total output power includes:
[0011] Calculating the target power reference value of each priority level at the next moment according to each power reference value, each sampled power and the target total output power;
[0012] According to each of the target power reference values, the target output power of each of the DC sources at the next moment is determined.
[0013] Optionally, calculating the target power reference value of each priority at the next moment according to each power reference value, each sampled power and the target total output power includes:
[0014] For any of the priorities, the priority sampling total power of the priority is calculated according to each of the sampling powers; the priority sampling total power includes the priority and each of the sampling powers of the DC sources corresponding to the priority and higher than the priority;
[0015] Calculating a power difference between the priority sampling total power and the target output total power;
[0016] Multiplying the power difference by the compensation coefficient of the priority to obtain a power adjustment amount;
[0017] Using the power reference value of the priority at the current moment plus the power adjustment amount, obtain the target power reference value of the priority at the next moment;
[0018] Each of the priorities is traversed to obtain a target power reference value of each of the priorities at the next moment.
[0019] Optionally, the target power reference value is calculated as follows:
[0020]
[0021] Among them, Pref next_k is the power reference value of any priority at the next moment, Pref cur_k is the power reference value of any priority at the current moment, Pref Bat is the target total output power, Psamp m The total power of the priority samples, Kcomp k is the compensation coefficient.
[0022] Optionally, the multiple DC sources include a photovoltaic DC source and a mains DC source;
[0023] The compensation coefficient of the priority level corresponding to the photovoltaic DC source is greater than the compensation coefficient of the priority level corresponding to the mains DC source.
[0024] Optionally, determining the target output power of each of the DC sources at the next moment according to each of the target power reference values includes:
[0025] For each priority level, obtaining a power reference value upper limit and a power reference value lower limit of the priority level;
[0026] If the target power reference value is greater than the power reference value upper limit, setting the target power reference value to the power reference value upper limit;
[0027] If the target power reference value is less than the power reference value lower limit, setting the target power reference value to the power reference value lower limit;
[0028] The target output power of each of the DC sources of the priority level is set as the target power reference value.
[0029] Optionally, the method further comprises:
[0030] For each of the DC sources, generating a power adjustment instruction of the DC source according to the target output power of the DC source at the next moment;
[0031] The corresponding power adjustment instruction is sent to the DC source; the power adjustment instruction is used to instruct the DC source to provide the target output power for the load.
[0032] In a second aspect, an embodiment of the present invention provides an energy output distribution device, the device comprising:
[0033] A power acquisition unit, used to acquire the sampled power and target total output power of multiple DC sources at the current moment; the target total output power represents the total power requested by the load; each of the DC sources is divided into at least one priority; the priority represents the priority order of energy output of each of the DC sources;
[0034] A power reference value acquisition unit, used to acquire the power reference value of each priority at the current moment;
[0035] The target output power calculation unit is used to calculate the target output power of each of the DC sources at the next moment according to each of the power reference values, each of the sampled powers and the target output total power.
[0036] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above-described methods when executing the program.
[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program implements any of the above-described methods when executed by a processor.
[0038] An energy output allocation method, device, electronic device and storage medium provided by an embodiment of the present invention divide multiple DC sources into at least one priority level, calculate the target output power that each DC source needs to output corresponding to each priority level, so that the output power change of each DC source is smoother. By calculating the compensation coefficient and the power adjustment amount, the energy allocation under each priority level can be controlled more accurately, thereby improving the energy management efficiency.
[0039] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of an energy output allocation method provided by an embodiment of the present invention;
[0043] Figure 3 Another schematic diagram of a flow chart of an energy output allocation method provided by an embodiment of the present invention;
[0044] Figure 4 Another schematic diagram of a flow chart of an energy output allocation method provided by an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of controlling charging of an energy storage battery provided by an embodiment of the present invention;
[0046] Figure 6 A schematic structural block diagram of an energy output distribution device provided in an embodiment of the present invention.
[0047] Icons: 100 - electronic device; 101 - memory; 102 - communication interface; 103 - processor; 104 - bus; 300 - energy output distribution device; 310 - power acquisition unit; 320 - power reference value acquisition unit; 330 - target output power calculation unit. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0049] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0052] As described in the background technology, the energy management system needs to perform priority logic judgment based on the collected output power of each converter and the target power of the energy storage system, and then control the output power of each converter. For example, multiple DC sources charge the energy storage battery, and different output powers are assigned to each DC source. The existing priority logic judgment is often configured by configuring multiple conditions. How much power should each DC source output under each condition? This will cause the output power of the converter to change in a step-type, making the power change not smooth enough and fluctuating frequently. This fluctuation will not only affect the stability of the system, but may also have a significant impact on the life of the energy storage system.
[0053] Based on the above situation, an embodiment of the present invention provides an energy output distribution method, device, electronic device and storage medium. By obtaining the total power required by the load and the relevant power of each DC source at the current moment, the target output power of each DC source at the next moment is calculated. The output power change of each DC source can be made smoother through calculation, thereby making the energy management system more stable.
[0054] To implement the process steps and functions of each example of the present invention, please refer to Figure 1 , Figure 1 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention. The electronic device 100 includes a memory 101 and a processor 103, and the memory 101 and the processor 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses 104 or signal lines. The memory 101 can be used to store software programs and modules, and the processor 103 executes the software programs and modules stored in the memory 101 to perform various functional applications and data processing.
[0055] The electronic device 100 may be, but is not limited to, a personal computer (PC), a server, a distributed computer, etc. It is understandable that the electronic device 100 is not limited to a physical server, but may also be a virtual machine on a physical server, a virtual machine built on a cloud platform, etc., which can provide the same functions as the server or virtual machine. The operating system of the electronic device 100 may be, but is not limited to, a Windows system, a Linux system, etc.
[0056] Among them, the memory 101 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0057] The communication connection between the electronic device 100 and an external device is achieved through at least one communication interface 102 (which can be wired or wireless).
[0058] The processor 103 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the embodiment of the present invention can be completed by the hardware integrated logic circuit in the processor 103 or the instructions in the form of software. The processor 103 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0059] Understandably, Figure 1 The structure shown is for illustration only. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0060] The following is an exemplary description of the energy output allocation method provided by the present invention. Specifically, Figure 2 For, see Figure 2 , the execution subject of this method can be the above Figure 1 The electronic device 100 shown in FIG. 1 includes: Figure 2 The following steps are described:
[0061] S210: Obtaining the sampled power and target total output power of multiple DC sources at the current moment, wherein the target total output power represents the total power requested by the load; each DC source is divided into at least one priority; and the priority represents the priority order of energy output of each DC source.
[0062] There are multiple DC sources in the EMS, which together power a load (such as an energy storage battery). In order to manage the output of these DC sources, the EMS needs to control the output power of each DC source according to a certain priority order (priority) to meet the total power demand of the load.
[0063] The target total output power refers to the total power currently required by the load. For example, if the load requires 1000KW of power, then the target total output power is 1000KW.
[0064] The current sampled power refers to the actual output power collected from each DC source at the current moment. For example, if there are three DC sources, read their current output power values respectively.
[0065] Each DC source is assigned a different priority, such as level 1, level 2, etc. Multiple DC sources can also have the same priority. Priority indicates the order of energy output of each DC source in the system. For example, level 1 priority means that the DC source is used first, while level 2 priority means that the DC source is enabled only when the level 1 power source cannot meet the load demand. For example, there are three DC sources, DC source 1, DC source 2, and DC source 3. The priority of DC source 1 and DC source 2 can be level 1, and the priority of DC source 3 can be level 2.
[0066] S220: Obtain the power reference value of each priority level at the current moment.
[0067] The power reference value will be changed in subsequent calculations at each moment. It can be set during initialization, for example, the power reference value of each priority level is set to 0.
[0068] S230: Calculate the target output power of each DC source at the next moment according to each power reference value, each sampled power and the target total output power.
[0069] After obtaining the power reference values, sampled powers and target total output power at the current moment, the target output power that each DC source needs to output at the next moment can be calculated based on these values.
[0070] The target output power of each DC source at the next moment may be calculated at a certain frequency, for example, once every 10 ms.
[0071] This method obtains the actual power of each DC source at the current moment, the total power required by the load, and the power reference value of each priority level, and calculates the target output power that each DC source needs to output at the next moment. The output power of each DC source can be continuously adjusted through calculation, which can make the output power change of each DC source smoother, thereby making the energy management system more stable.
[0072] There are many ways to calculate the target output power of each DC source at the next moment. In one possible implementation, the target power reference value of each priority at the next moment can be calculated first, and then the target output power can be calculated based on the target power reference value. Figure 3 , the above step S230 may include the following steps:
[0073] S231: Calculate the target power reference value of each priority level at the next moment according to each power reference value, each sampled power and the target total output power.
[0074] According to the current power reference value, sampled power and target total output power of each DC source, the target power reference value of each priority at the next moment is dynamically adjusted and calculated. These new reference values will guide the output allocation of each power source at the next moment.
[0075] In one possible implementation, see Figure 4 , step S231 may include the following steps:
[0076] S2311: For any priority level, calculate the priority level sampled total power according to each sampled power, wherein the priority level sampled total power includes the priority level and each sampled power of each DC source higher than the priority level.
[0077] S2312: Calculate the power difference between the priority sampling total power and the target output total power.
[0078] S2313: Multiply the priority compensation coefficient by the power difference to obtain a power adjustment amount.
[0079] S2314: Use the power reference value of the priority at the current moment plus the power adjustment amount to obtain the target power reference value of the priority at the next moment.
[0080] S2315: Traverse each priority level to obtain a target power reference value for each priority level at the next moment.
[0081] One priority level may include multiple DC sources, therefore, the total adopted power of the DC sources included in each priority level is calculated first, wherein the sampled total power of each priority level also includes the sampled power of the DC sources included in the priority level higher than its own priority level.
[0082] For example, the priority includes level 1 and level 2, and there are three DC sources, DC source 1, DC source 2, and DC source 3. The priority of DC source 1 and DC source 2 can be level 1, and the priority of DC source 3 is level 2. The sampling powers of DC source 1, DC source 2, and DC source 3 are 300KW, 300KW, and 100KW respectively. Then, the total priority sampling power of level 1 priority is the sum of the sampling powers of DC source 1 and DC source 2, which is 600KW, and the total priority sampling power of level 2 priority is the sum of the sampling powers of DC source 1, DC source 2, and DC source 3, which is 700KW.
[0083] The power difference between the total sampling power of each priority level and the target output total power is calculated respectively. Continuing with the above example, if the target output total power is 1000KW, the power difference of level 1 priority is 400KW, and the power difference of level 2 priority is 300KW.
[0084] For example, the power difference of the priority level 1 is 0.1, and the power difference of the priority level 2 is also 0.1, and the power adjustment amounts of the two are 40KW and 30KW respectively.
[0085] If the power reference values of the level 1 priority and the level 2 priority at the current moment are 280KW and 80KW respectively, then the target power reference values of each priority at the next moment will be 320KW and 110KW.
[0086] The calculation formula of the above target power reference value can be:
[0087]
[0088] Among them, Pref next_k Pref is the power reference value of any priority at the next moment. cur_k is the power reference value of any priority at the current moment, Pref Bat is the target total output power, is the total power of priority sampling, Kcomp k is the compensation coefficient.
[0089] According to the explanation of the above examples, special explanation is needed. Including the priority level and the sampling power of each DC source corresponding to a higher priority level. As above, the total priority sampling power of level 1 priority is the sum of the sampling powers of DC source 1 and DC source 2, and the total priority sampling power of level 2 priority is the sum of the sampling powers of DC source 1, DC source 2, and DC source 3.
[0090] Optionally, the multiple DC sources include a photovoltaic DC source and a mains DC source; and a compensation coefficient of a priority level corresponding to the photovoltaic DC source is greater than a compensation coefficient of a priority level corresponding to the mains DC source.
[0091] Different priorities can use the same compensation coefficient. If there are different control delays or DC sources with slow dynamic response, different compensation coefficients can be used. By giving the photovoltaic DC source a higher priority compensation coefficient, the power of the photovoltaic DC source can change faster, that is, photovoltaic power generation can be used more preferentially, which helps to make full use of renewable energy.
[0092] It is also understandable that the compensation coefficient of a high priority may be set to be greater than the compensation coefficient of a low priority, so that the DC source corresponding to the high priority may be adjusted more quickly.
[0093] S232: Determine the target output power of each DC source at the next moment according to each target power reference value.
[0094] Then, according to the updated target power reference values of each priority level, the specific target output power of each DC source at the next moment is determined.
[0095] The method for determining the specific target output power of each DC power supply at the next moment can directly use the updated target power reference value of each priority level. For example, in the above example, the target power reference values of level 1 priority and level 2 priority at the next moment are 320KW and 110KW respectively. The target output powers of DC source 1 and DC source 2 can be directly set to 320KW, and the target output power of DC source 3 can be set to 110KW.
[0096] In order to make the target output power of the DC source exceed its maximum output power, in a possible implementation, step S232 may include the following steps:
[0097] S2321: For each priority level, obtain an upper limit and a lower limit of a power reference value of the priority level.
[0098] S2322: If the target power reference value is greater than the power reference value upper limit, set the target power reference value as the power reference value upper limit.
[0099] S2323: If the target power reference value is less than the power reference value lower limit, the target power reference value is set as the power reference value lower limit.
[0100] S2324: Set the target output power of each DC source of priority to a target power reference value.
[0101] For each priority level, first obtain the power reference value upper limit and power reference value lower limit of the priority level. If the calculated target power reference value is greater than the power reference value upper limit, set the target power reference value to the power reference value upper limit. If the calculated target power reference value is less than the power reference value lower limit, set the target power reference value to the power reference value lower limit. Then set the target output power of each DC source corresponding to each priority level to the target power reference value.
[0102] For example, the target power reference value at the next moment calculated by the level 1 priority is 500KW, and the upper limit of the power reference value of the level 1 priority is 400KW. Then the target power reference value of the level 1 priority is set to 400KW. Correspondingly, the target output powers of DC source 1 and DC source 2 with priority level 1 are both set to 400KW.
[0103] After the target output power of each DC source is calculated, the target output power may be sent to the corresponding DC source so that each DC source performs power adjustment. The method may further include the following steps:
[0104] S240: For each DC source, generate a power adjustment instruction of the DC source according to the target output power of the DC source at the next moment.
[0105] The corresponding power adjustment instructions are calculated based on the target output power of each DC source at the next moment (i.e. the power value it is expected to provide). The "target output power" here can be understood as the power level that the system expects each DC source to reach at a certain moment in the future. The power adjustment instructions are specific commands generated based on this target power value, telling each DC source how to adjust its output power to achieve this goal.
[0106] S250: Send a corresponding power adjustment instruction to the DC source; the power adjustment instruction is used to instruct the DC source to provide a target output power for the load.
[0107] After the success rate adjustment instructions are generated, these instructions are sent to the corresponding DC source. The power adjustment instructions sent out contain specific power values. After receiving these instructions, the DC source will adjust its own output power according to the requirements of the instructions to ensure that it can provide the correct target output power for the load.
[0108] Reference Figure 5 , the capacity allocation control is performed on the three DC sources 1, DC source 2, and DC source 3. The three DC sources are connected to the DC bus, and the DC bus charges the energy storage battery. DC source 1 and DC source 2 are set to level 1 priority, and DC source 3 is set to level 1 priority.
[0109] Psamp1 is the input power of all DC sources included in the first priority, that is, Psamp1 = P PV1 +P PV2 .P PV1 With P PV2 They are the real-time sampled powers of DC source 1 and DC source 2 respectively.
[0110] Psamp2 is the input power of all DC sources included in the second priority, that is, Psamp2 = P PV3 .P PV3 is the real-time sampled power of DC source 3.
[0111] First, initialize the target output power Pref of DC source 1, DC source 2, and DC source 3 in EMS PV1 、Pref PV2 、Pref PV3 The power reference values Pref1 and Pref2 of level 1 priority and level 2 priority, at this time, Pref PV1 =0,Pref PV2 =0, Pref PV3 =0, Pref1=0, Pref2=0.
[0112] The power reference value of level 1 priority Pref1=Pref1+(Pref Bat-Psamp1)×Kcomp1, the power reference value Pref2 of level 2 priority = Pref2+[Pref Bat -(Psamp1+Psamp2)]×Kcomp2, and then the target output power Pref of DC source 1, DC source 2, and DC source 3 PV1 、Pref PV2 、Pref PV3 Assign value, Pref PV1 =Pref1,Pref PV2 =Pref1,Pref PV3 =Pref2.
[0113] Furthermore, the present invention also provides an energy output distribution device, see Figure 6 , the energy output distribution device 300 comprises:
[0114] The power acquisition unit 310 is used to obtain the sampled power and target total output power of multiple DC sources at the current moment; the target total output power represents the total power requested by the load; each DC source is divided into at least one priority; the priority represents the priority order of energy output of each DC source.
[0115] The power reference value acquisition unit 320 is used to acquire the power reference value of each priority at the current moment.
[0116] The target output power calculation unit 330 is used to calculate the target output power of each DC source at the next moment according to each power reference value, each sampled power and the target total output power.
[0117] In summary, the embodiments of the present invention provide an energy output allocation method, device, electronic device and storage medium, which divide multiple DC sources into at least one priority level, calculate the target output power that each DC source needs to output corresponding to each priority level, so that the output power change of each DC source is smoother. By calculating the compensation coefficient and the power adjustment amount, the energy allocation under each priority level can be more accurately controlled to improve the energy management efficiency.
[0118] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0119] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0120] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0121] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0122] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. An energy output allocation method, characterized in that: The method comprises: Acquire the sampled power and target total output power of multiple DC sources at the current moment; the target total output power represents the total power requested by the load; each of the DC sources is divided into at least one priority; the priority represents the priority order of energy output of each of the DC sources; Obtaining the power reference value of each priority at the current moment; The target output power of each of the DC sources at the next moment is calculated according to each of the power reference values, each of the sampled powers and the target total output power.
2. The method according to claim 1, characterized in that The step of calculating the target output power of each of the DC sources at the next moment according to each of the power reference values, each of the sampled powers and the target total output power comprises: Calculating the target power reference value of each priority level at the next moment according to each power reference value, each sampled power and the target total output power; According to each of the target power reference values, the target output power of each of the DC sources at the next moment is determined.
3. The method according to claim 2, characterized in that The calculating, according to each of the power reference values, each of the sampled powers and the target total output power, a target power reference value of each of the priorities at the next moment comprises: For any of the priorities, the priority sampling total power of the priority is calculated according to each of the sampling powers; the priority sampling total power includes the priority and each of the sampling powers of the DC sources corresponding to the priority and higher than the priority; Calculating a power difference between the priority sampling total power and the target output total power; Multiplying the power difference by the compensation coefficient of the priority to obtain a power adjustment amount; Using the power reference value of the priority at the current moment plus the power adjustment amount, obtain the target power reference value of the priority at the next moment; Each of the priorities is traversed to obtain a target power reference value of each of the priorities at the next moment.
4. The method according to claim 3, characterized in that The calculation formula of the target power reference value is: Among them, Pref next_k is the power reference value of any priority at the next moment, Pref cur_k is the power reference value of any priority at the current moment, Pref Bat is the target total output power, Psamp m The total power of the priority samples, Kcomp k is the compensation coefficient.
5. The method according to claim 4, characterized in that The multiple DC sources include a photovoltaic DC source and a mains DC source; The compensation coefficient of the priority level corresponding to the photovoltaic DC source is greater than the compensation coefficient of the priority level corresponding to the mains DC source.
6. The method according to claim 2, characterized in that Determining the target output power of each of the DC sources at the next moment according to each of the target power reference values includes: For each priority level, obtaining a power reference value upper limit and a power reference value lower limit of the priority level; If the target power reference value is greater than the power reference value upper limit, setting the target power reference value to the power reference value upper limit; If the target power reference value is less than the power reference value lower limit, setting the target power reference value to the power reference value lower limit; The target output power of each of the DC sources of the priority level is set as the target power reference value.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: For each of the DC sources, generating a power adjustment instruction of the DC source according to the target output power of the DC source at the next moment; The corresponding power adjustment instruction is sent to the DC source; the power adjustment instruction is used to instruct the DC source to provide the target output power for the load.
8. An energy output distribution device, characterized in that: The device comprises: A power acquisition unit, used to acquire the sampled power and target total output power of multiple DC sources at the current moment; the target total output power represents the total power requested by the load; each of the DC sources is divided into at least one priority; the priority represents the priority order of energy output of each of the DC sources; A power reference value acquisition unit, used to acquire the power reference value of each priority at the current moment; The target output power calculation unit is used to calculate the target output power of each of the DC sources at the next moment according to each of the power reference values, each of the sampled powers and the target output total power.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.