Power control method, device, storage medium and program product

By acquiring historical load operation data and utilizing a load power prediction model, the target output power of the diesel generator module can be controlled in advance, solving the stability problem of microgrids under traditional SOC threshold control when the load fluctuates, and improving the operational stability of the microgrid and the stability of the energy storage module.

CN121710388BActive Publication Date: 2026-05-15SHENZHEN QIDIAN ENERGY TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN QIDIAN ENERGY TECH CO LTD
Filing Date
2026-01-29
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

When the load power fluctuates drastically or during peak periods, traditional SOC threshold-based control methods may prevent diesel generators from charging the energy storage system, resulting in an excessively low SOC of the energy storage system and affecting the stable operation of the microgrid.

Method used

By acquiring historical load operation data and using a load power prediction model to predict future load power changes, we can identify the risks of insufficient power supply and power spikes in the energy storage module, and control the output target power of the diesel generator module in advance to provide power to the load in a coordinated manner, thus preventing the energy storage module from shutting down.

Benefits of technology

This improves the microgrid's ability to withstand load power spikes and the operational stability of energy storage modules, ensuring the stable operation of the microgrid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121710388B_ABST
    Figure CN121710388B_ABST
Patent Text Reader

Abstract

The application discloses a power control method, device, storage medium and program product, and belongs to the technical field of computers. The method comprises the following steps: acquiring historical load operation data; determining target load power data according to the historical load operation data, wherein the target load power data comprises estimated load power in a future first time period; in the case that it is determined according to the target load power data that the energy storage module has a power supply shortage risk and a power peak risk in the first time period, determining target power and a target time point corresponding to the diesel generating module according to the target load power data; and controlling the diesel generating module to start outputting the target power at the target time point. According to the application, the power supply shortage risk and the power peak risk can be known in advance through the target load power data, and the diesel generating module is controlled to intervene in advance and supply power in cooperation with the energy storage module when the risk exists, so that the energy storage module is charged. In this way, the carrying capacity for the power peak can be improved, and the micro-grid operation stability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a power control method, device, storage medium, and program product. Background Technology

[0002] With the continuous growth of global energy demand and the gradual promotion of renewable energy, microgrids, as a flexible and reliable power supply solution, are increasingly being used in areas without mains power or where mains power capacity cannot meet demand. Microgrids typically include multiple energy sources, such as diesel generators and energy storage systems. Through effective energy management and dispatch, microgrids can provide a stable and reliable power supply to loads.

[0003] In related technologies, in a microgrid architecture based on diesel-storage hybrid systems, the start-up, shutdown, and power of the diesel generator are controlled according to the state of charge (SOC) threshold of the energy storage system. When the SOC of the energy storage system is high, the energy storage system supplies power to the load; when the SOC of the energy storage system is low, the energy storage system and the diesel generator supply power to the load simultaneously.

[0004] However, when the load power fluctuates drastically or reaches a peak, this control method may cause the diesel generator to be unable to charge the energy storage system due to excessive load power, resulting in an excessively low SOC of the energy storage system and affecting the stable operation of the microgrid. Summary of the Invention

[0005] This application provides a power control method, device, storage medium, and program product, which can improve the operational stability of microgrids. The technical solution is as follows:

[0006] In a first aspect, a power control method is provided, the method comprising:

[0007] Obtain historical load operation data;

[0008] The target load power data is determined based on the historical load operation data, and the target load power data includes the estimated load power at each time point in the first future time period.

[0009] If it is determined from the target load power data that the energy storage module has the risk of insufficient power supply and the risk of power spikes in the first time period, the target power and target time point corresponding to the diesel generator module are determined from the target load power data.

[0010] The diesel generator module is controlled to start outputting the target power at the target time point.

[0011] In this application, historical load operation data can accurately reflect the correlation between load power changes, time changes, and environmental changes over historical periods. Based on this data, the load power changes in the first time period in the future can be determined relatively accurately, and potential risks within that period can be predicted. If the risk of insufficient power supply and power spikes are identified, the target power and target time point for the diesel generator module are determined. This ensures the diesel generator module starts outputting the target power at the target time point, allowing it to intervene before the risk materializes and work in conjunction with the energy storage module to supply power to the load. This prevents the energy storage module from shutting down due to low remaining power in the first time period. This improves the microgrid's ability to handle power spikes and the operational stability of the energy storage module, thereby enhancing the overall stability of the microgrid.

[0012] Optionally, the historical load operation data includes the load power at each time point in the second historical time period and the time and environmental data at each time point in the second time period. The time data includes one or more of the following: hour, weekday, month, and whether it is a holiday. The environmental data includes one or more of the following: ambient temperature, ambient humidity, and weather information. Determining the target load power data based on the historical load operation data includes:

[0013] The load power characteristics are generated based on the load power at each time point in the second time period.

[0014] Generate time features based on the time data of each time point in the second time period;

[0015] Environmental features are generated based on the environmental data at each time point in the second time period;

[0016] Target features are generated based on the load power characteristics, the time characteristics, and the environmental characteristics;

[0017] The target features are input into the load power prediction model to obtain the target load power data output by the load power prediction model.

[0018] Optionally, after determining the target load power data based on the historical load operation data, the method further includes:

[0019] The first power is determined based on the target load power data, and the first power is the power consumed by the energy storage module during the first time period.

[0020] If the difference between the current remaining power of the energy storage module and the first power is less than the first preset power, it is determined that the energy storage module is at risk of insufficient power supply during the first time period.

[0021] If the estimated load power at at least one time point in the target load power data is greater than the rated output power of the energy storage module, it is determined that the energy storage module has a power spike risk in the first time period.

[0022] Optionally, determining the target power and target time point corresponding to the diesel generator module based on the target load power data includes:

[0023] The target time period is determined based on the target load power data. The start time of the target time period is the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module for the first time. The end time of the target time period is the time point after the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module for the last time.

[0024] The second power is determined based on the first preset power corresponding to the diesel generator module, the first preset power corresponding to the energy storage module, the target time period, and the estimated load power at each time point in the target time period. The second power is the remaining power that the energy storage module needs to achieve at the beginning time point of the target time period.

[0025] The target power and the target time point are determined based on the first preset power and the second power level.

[0026] Optionally, determining the target power and the target time point based on the first preset power and the second power level includes:

[0027] The first energy to be charged of the energy storage module is obtained by multiplying the difference between the second energy and the current remaining energy of the energy storage module by the rated total capacity of the energy storage module.

[0028] Determine the estimated rechargeable energy of the energy storage module at each time point in the third time period between the current time point and the start time point of the target time period;

[0029] Based on the first energy to be charged of the energy storage module and the estimated rechargeable energy of the energy storage module from each time point in the third time period to the start time point of the target time period, the first time point corresponding to the first preset power is determined. The first time point is the time point when the diesel generator module needs to start outputting the first preset power.

[0030] The target power and the target time point are determined based on the first preset power and the first time point.

[0031] Optionally, the first preset power is one of a plurality of preset powers, and the step of determining the target power and the target time point based on the first preset power and the first time point includes:

[0032] For any one of the multiple preset power, the unit charging fuel consumption corresponding to the preset power is determined based on the second power, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power.

[0033] The preset power with the lowest unit charging fuel consumption among the multiple preset power is determined as the target power, and the first time point corresponding to the target power is determined as the target time point.

[0034] Optionally, determining the unit charging fuel consumption corresponding to the preset power based on the second power level, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power includes:

[0035] The second energy to be charged is obtained by multiplying the difference between the second energy and the estimated remaining energy of the energy storage module at the first time point by the rated total capacity of the energy storage module.

[0036] The charging time is determined based on the second energy to be charged and the preset power.

[0037] Multiply the charging time by the fuel consumption rate corresponding to the preset power to obtain the total fuel consumption;

[0038] Divide the total fuel consumption by the net charging power corresponding to the preset power to obtain the unit charging fuel consumption corresponding to the preset power.

[0039] Optionally, controlling the diesel generator module to start outputting the target power at the target time point includes:

[0040] At the target time point, a control command is sent to the diesel generator module, the control command being used to instruct the diesel generator module to output the target power.

[0041] Optionally, after determining the target load power data based on the historical load operation data, the method further includes:

[0042] If, based on the target load power data, it is determined that the energy storage module faces a risk of insufficient power supply but no risk of power spikes during the first time period, the diesel generator module is controlled to output a first preset power; or...

[0043] If, based on the target load power data, it is determined that the energy storage module has a power peak risk but no power shortage risk during the first time period, a target time period is determined from the first time period based on the target load power data. The target time period is the time period with a power peak risk. The diesel generator module is controlled to start outputting the first preset power at the beginning time of the target time period.

[0044] Optionally, after controlling the diesel generator module to output a first preset power, the method further includes:

[0045] The remaining power of the energy storage module is periodically acquired;

[0046] If the remaining power of the energy storage module is greater than the second preset power, the diesel generator module is controlled to stop operating.

[0047] Secondly, a power control device is provided, the device comprising:

[0048] The first acquisition module is used to acquire historical load operation data;

[0049] The first determining module is used to determine the target load power data based on the historical load operation data, wherein the target load power data includes the estimated load power at each time point in the future first time period;

[0050] The second determining module is used to determine the target power and target time point corresponding to the diesel generator module based on the target load power data when it is determined that the energy storage module has a risk of insufficient power supply and a risk of power spike during the first time period based on the target load power data.

[0051] The first control module is used to control the diesel generator module to start outputting the target power at the target time point.

[0052] Thirdly, a computer device is provided, the computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program implementing the power control method described in the first aspect when executed by the processor.

[0053] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the power control method described in the first aspect.

[0054] Fifthly, a computer program product is provided that, when the computer program product is run on a computer device, causes the computer device to perform the power control method described in the first aspect.

[0055] It is understood that the beneficial effects of the second, third, fourth, and fifth aspects mentioned above can be found in the relevant descriptions in the first aspect above, and will not be repeated here. Attached Figure Description

[0056] Figure 1 This is a schematic diagram of a microgrid structure provided in an embodiment of this application;

[0057] Figure 2 This is a flowchart of a model training method provided in an embodiment of this application;

[0058] Figure 3 This is a flowchart of a power control method provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of the structure of a power control device provided in an embodiment of this application;

[0060] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0061] In the following description, specific details such as particular system architectures and technologies are set forth for illustrative purposes and not for limiting purposes, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details.

[0062] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0063] It should be understood that "one or more" as used in this application refers to one, two, or more, and "multiple" as used in this application refers to two or more. In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0064] To facilitate a clear description of the technical solutions of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" do not necessarily imply that they are different.

[0065] The terms "one embodiment" or "some embodiments" used in this application mean that one or more embodiments of this application include the specific features, structures, or characteristics described in that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this application do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0066] The application scenarios involved in the embodiments of this application are described below.

[0067] With the continuous growth of global energy demand and the gradual promotion of renewable energy, microgrids, as a flexible and reliable power supply solution, are increasingly being widely used in areas without grid power or where grid power capacity cannot meet demand. Microgrids typically incorporate multiple energy sources, such as diesel generators, energy storage systems, and renewable energy generation. Through effective energy management and dispatch, microgrids can provide a stable and reliable power supply to loads.

[0068] In related technologies, in microgrids based on diesel-storage hybrid systems, the start-up, shutdown, and power output of diesel generators (also known as generators) are often controlled solely based on the SOC (State of Charge) threshold of the energy storage system. However, when the remaining energy of the energy storage system falls below a certain threshold (e.g., 20%), the generator is started to charge the system; when the remaining energy exceeds another threshold (e.g., 90%), the generator is shut down, while maintaining a fixed power output during operation. This simple threshold control strategy can generally maintain microgrid operation under stable load conditions, but it can pose serious risks during periods of drastic load fluctuations or peak demand. Specifically, when the load power demand exceeds the generator's fixed power supply and the remaining energy of the energy storage system is low, the generator may be unable to provide sufficient charging power, leading to the depletion of the energy storage system's power, resulting in undervoltage or even power outages, and compromising the continuity of power supply to critical loads. This problem is particularly pronounced during peak electricity demand periods. Traditional SOC threshold control cannot anticipate peak loads and often only starts the generator when the energy storage module's power is nearly depleted, resulting in delayed startup. Meanwhile, prolonged operation of the generator under light load can lead to problems such as high fuel consumption, low efficiency, and carbon buildup. This means that the generator does not burn fuel completely under low load, resulting in efficiency far below the optimal operating conditions, which wastes fuel and may damage the equipment.

[0069] Therefore, this application provides a power control method applied to a microgrid. In this method, historical load operation data is acquired. Then, target load power data is determined based on this historical load operation data. The target load power data includes the estimated load power at each time point in a future first time period. If, based on the target load power data, it is determined that the energy storage module faces risks of insufficient power supply and power spikes in the first time period, the target power and target time point corresponding to the diesel generator module are determined based on the target load power data. Finally, the diesel generator module is controlled to start outputting the target power at the target time point. Since historical load operation data can accurately reflect the correlation between load power changes, time changes, and environmental changes over historical time periods, the load power changes in the future first time period can be determined relatively accurately based on this data, and the potential risks in the first time period can be predicted accordingly. In cases where risks of insufficient power supply and power spikes are determined, the target power and target time point corresponding to the diesel generator module are determined so that the diesel generator module starts outputting the target power at the target time point. This allows the diesel generator module to intervene in advance before the risks materialize, working in conjunction with the energy storage module to supply power to the load, preventing the energy storage module from shutting down due to low remaining power in the first time period. This can improve the microgrid's ability to withstand load power spikes and the operational stability of energy storage modules, thereby enhancing the overall operational stability of the microgrid.

[0070] The microgrid provided in the embodiments of this application will be described below.

[0071] Figure 1 This is a schematic diagram of a microgrid structure provided in an embodiment of this application. See also... Figure 1 The microgrid 10 may include an Internet module 101, a control module 102, an energy storage module 103, a diesel generator module 104, and a load 105.

[0072] The Internet module 101 can communicate with the control module 102 via a wired or wireless connection. For example, the control module 102 can communicate with the Internet module 101 to obtain time data and environmental data. For example, the time data may include one or more of the following: hour, day of the week, month, and whether it is a holiday, etc., and this embodiment of the application does not limit this. For example, the environmental data may include one or more of the following: ambient temperature, ambient humidity, weather information, etc., and this embodiment of the application does not limit this.

[0073] The control module 102 can communicate with the energy storage module 103 and the diesel generator module 104 via wired or wireless connections. For example, the control module 102 can communicate with the energy storage module 103 to obtain its remaining power. For example, the control module 102 can communicate with the diesel generator module 104 to obtain parameters such as its operating status. For example, the control module 102 can obtain the current load power of the load 105.

[0074] It should be noted that, in this embodiment, during the operation of the microgrid 10, the control module 102 can acquire parameters such as the remaining power of the energy storage module 103, the operating status of the diesel generator module 104, and the load power of the load 105, and control the output power of the energy storage module 103 and the diesel generator module 104 accordingly. When the remaining power of the energy storage module 103 is low, the control module 102 starts operating to supply power to the load 105. When the output power of the diesel generator module 104 is greater than the load power of the load 105, the excess output power of the diesel generator module 104 (i.e., the power obtained by subtracting the load power of the load 105 from the output power of the diesel generator module 104) is input into the energy storage module 103 to charge the energy storage module 103. When the rated output power of the energy storage module 103 is less than the load power of the load 105, the control module 102 starts operating to supply power to the load 105 simultaneously with the energy storage module 103. When the rated output power of the energy storage module 103 is greater than or equal to the load power of the load 105 and the remaining power of the energy storage module 103 reaches the upper limit of the power, the diesel generator module 104 is controlled to stop operating.

[0075] The Internet module 101 is used to provide time data and environmental data to the control module 102.

[0076] Control module 102 acquires historical load operation data and determines target load power data based on this data. The target load power data includes the estimated load power at each point in time within the first future time period. Based on the target load power data, it determines whether the microgrid 10 faces any risks within the first future time period. If, based on the target load power data, it is determined that the energy storage module 103 faces risks of insufficient power supply and power spikes during the first time period, the target power and target time point corresponding to the diesel generator module 104 are determined based on the target load power data, and the diesel generator module 104 is controlled to start outputting the target power at the target time point.

[0077] For example, the historical load operation data may include the load power at each time point in the historical second time period and the time data and environmental data at each time point in the second time period. For example, the control module 102 may obtain the time data and environmental data at each time point in the historical second time period from the Internet module 101. For example, the control module 102 may determine the load power at each time point obtained from the load 105 in the historical second time period as the load power at each time point in the historical second time period in the historical load operation data.

[0078] The estimated load power is the power required by the load at each point in time within a first time period. For example, the start time of the first time period can be the current time, and the end time of the first time period can be a point in time after the current time. For example, the time length between any two sets of adjacent time points in the first time period is the same. For example, the time length between any two sets of adjacent time points in the first time period can be a preset duration.

[0079] The risk of insufficient power supply refers to the risk that the energy storage module 103 may be unable to supply power to the load 105 normally during a future first time period due to low remaining power. Optionally, the control module 102 can determine a first power level based on the target load power data. The first power level is the power consumed by the energy storage module 103 during the first time period. If the difference between the current remaining power of the energy storage module 103 and the first power level is less than a first preset power level, it is determined that the energy storage module 103 has a risk of insufficient power supply during the first time period. For example, for any one of the multiple time points in the first time period, the control module 102 can multiply the estimated load power at that time point by a preset duration to obtain the power consumed by the energy storage module 103 during operation at that time point, and then sum up the multiple power levels corresponding to the multiple time points to obtain the first power level. The first preset power level can be preset. For example, the first preset power level can be set to 20%.

[0080] The power spike risk refers to the risk that the rated output power of the energy storage module 103 cannot meet the estimated load power at at least one time point in the target load power data. For example, for any one of multiple time points in the first time period, the control module 102 can compare the estimated load power at that time point with the rated output power of the energy storage module 103. If the estimated load power at that time point is greater than the rated output power of the energy storage module 103, it is determined that the energy storage module 103 has a power spike risk in the first time period.

[0081] It should be noted that the embodiments of this application are only illustrated by taking the risks of insufficient power supply and power spikes as examples. In actual applications, the control module 102 can also determine whether there are other risks in the microgrid 10 in the first time period in the future based on the target load power data. The embodiments of this application do not limit this.

[0082] For example, the control module 102 can determine the target load power data based on historical load operation data through a load power prediction model. For example, the load power prediction model can be a long short-term memory network (LSTM), a feedforward neural network (FNN), or a self-attention network (transformers), etc., and this embodiment of the application does not limit it.

[0083] For example, control module 102 can send control commands to diesel generator module 104 to control diesel generator module 104 to start outputting target power at a target time point. For example, control module 102 can also send start / stop commands to diesel generator module 104 to control diesel generator module 104 to start or stop.

[0084] For example, the control module 102 may send a charging and discharging power constraint strategy to the energy storage module 103 to constrain the upper limit of charging, the lower limit of discharging, the upper limit of output power, the lower limit of output power, etc. of the energy storage module 103. This application embodiment does not limit this.

[0085] The energy storage module 103 is used to supply power to the load 105 and to receive charging from the diesel generator module 104. For example, the energy storage module 103 can receive a charging and discharging power constraint strategy sent by the control module 102, and set charging upper limit, discharging lower limit, output power upper limit, output power lower limit, etc. according to the charging and discharging power constraint strategy. This application embodiment does not limit this.

[0086] The diesel generator module 104 supplies power to the load 105 and to the energy storage module 103 to charge the energy storage module 103. For example, the diesel generator module 104 can receive control commands sent by the control module 102 and start outputting a target power at a target time point according to the control commands. For example, the diesel generator module 104 can control the start / stop commands sent by the control module 102 and start or stop according to the start / stop commands.

[0087] Load 105 is used to convert the electrical energy output from energy storage module 103 and diesel generator module 104 into other forms of energy.

[0088] In some cases, when the control module 102 determines that the energy storage module 103 has a risk of insufficient power supply and no risk of power spikes in the first time period based on the target load power data, it controls the diesel generator module 104 to output the first preset power to supply power to the load 105 and charge the energy storage module 103 at the same time.

[0089] In other cases, if the control module 102 determines that the energy storage module 103 has a power peak risk but no power supply shortage risk in the first time period based on the target load power data, the control module 102 can determine a target time period from the first time period based on the target load power data. The target time period is the time period with power peak risk. The control module 102 can then control the diesel generator module 104 to start outputting the first preset power at the beginning of the target time period to supply power to the load 105.

[0090] In this embodiment, the control module 102 acquires historical load operation data and determines target load power data based on this data. If, based on the target load power data, it is determined that the energy storage module 103 faces risks of insufficient power supply and power spikes in the first time period, the control module 102 determines the target power and target time point corresponding to the diesel generator module 104 based on the target load power data, and controls the diesel generator module 104 to start outputting the target power at the target time point. Since historical load operation data can accurately reflect the correlation between load power changes, time changes, and environmental changes of the load 105 over historical time periods, the load power changes of the load 105 in the future first time period can be determined relatively accurately based on this data, and the potential risks in the first time period can be predicted accordingly. Given the identified risks of insufficient power supply and power spikes in the energy storage module 103, the target power and target time point for the diesel generator module 104 are determined. This ensures that the diesel generator module 104 begins outputting the target power at the target time point, allowing it to intervene before the risks materialize and work in conjunction with the energy storage module 103 to supply power to the load 105. This prevents the energy storage module 103 from shutting down due to low remaining power during the initial time period. This improves the operational stability of the energy storage module 103 and its ability to withstand power spikes, thereby enhancing the overall operational stability of the microgrid 10.

[0091] The power control method provided in the embodiments of this application will be explained in detail below.

[0092] It should be noted that, in this embodiment of the application, before the control module 102 determines the target load power data based on the historical load operation data and the load power prediction model, it can train the neural network model to obtain the load power prediction model. The training process of the target model is described below.

[0093] Figure 2This is a flowchart illustrating the training process of the load power prediction model provided in this application embodiment. See also... Figure 2 The model training process may include the following steps 201 to 203.

[0094] The model training process can be executed by a computer device, which can be a terminal, a server, or other devices; this application does not limit this. For example, the computer device can be one described above. Figure 1 Control module 102 in the embodiment.

[0095] Step 201: The computer device acquires historical load operation data, which includes the load power at each point in time during the historical period and the time and environmental data at each point in time during the historical period.

[0096] For example, the time data may include hours, days of the week, and months, and the environmental data may include ambient temperature, ambient humidity, and weather information.

[0097] For example, after obtaining the historical load operation data, the historical load operation data can be preprocessed to remove noisy data and improve the accuracy of the historical load operation data.

[0098] Time data and environmental data can reflect the relationship with load power changes. Obtaining time data and environmental data at each point in time in historical periods allows for a multi-dimensional and more comprehensive understanding of the factors affecting load changes, thereby ensuring the comprehensiveness and diversity of subsequent model training.

[0099] Step 202: The computer device generates training samples based on historical load operation data.

[0100] Specifically, the computer device can generate load power features based on the load power at each time point within the historical time period, generate time features based on the time data at each time point within the historical time period, and generate environmental features based on the environmental data at each time point within the historical time period. Input data is generated based on the load power features, the time features, and the environmental features. The load power at each time point in the next time period within the historical time period is determined as a sample label, and the input data and the corresponding sample labels are determined as training samples. For example, the computer device can generate multiple training samples.

[0101] For example, the input data can be defined as:

[0102]

[0103] in, The input feature vector (i.e., input data) is used for load power prediction, where t is the discrete time step and N is the length of the historical time window (i.e., the length of time points in the historical time period).

[0104] The feature vector at each time step It can be defined as:

[0105]

[0106] in, For load feature vectors, Indicates a point in time The actual load power; This is a time feature vector used to represent the periodicity and regularity of time; This is an environmental feature vector used to represent environmental features.

[0107] Time feature vector Defined as:

[0108]

[0109] in, For time points The corresponding number of hours; For time points The corresponding week number; For months.

[0110] Environmental feature vector Defined as:

[0111]

[0112] in, For ambient temperature, For ambient humidity, This is weather information.

[0113] Based on the above definitions, the input data can be represented as a three-dimensional tensor: .

[0114] in, The length of the historical time window; The feature dimension at a single time point.

[0115] Step 203: The computer device trains the neural network model based on the training samples to obtain the load power prediction model.

[0116] Specifically, the computer device inputs the training sample into the neural network model to obtain the output data of the neural network model (i.e., the load power sequence in the future prediction time domain); determines the loss value between the output data and the sample labels in this training sample through a loss function; and adjusts the parameters in the neural network model based on the loss value. After adjusting the parameters in the neural network model based on each of the multiple training samples, the neural network model with adjusted parameters is the load power prediction model.

[0117] For example, the load power sequence for the next time period after this historical time period can be represented as:

[0118]

[0119] For example, this load power prediction model can be represented as a mapping function:

[0120]

[0121] in, To estimate load power; To predict the length of time; This refers to the load power prediction model, such as a load power prediction model based on a recurrent neural network.

[0122] After training the load power prediction model through the above model training process, predictions can be made using the load power prediction model.

[0123] Figure 3 This is a flowchart of a power adjustment method provided in an embodiment of this application. See also... Figure 3 The method may include the following steps:

[0124] Step 301: The computer device acquires historical load operation data.

[0125] The computer device can acquire historical load operation data periodically. The period for acquiring this data can be preset. For example, the acquisition of historical operation data can occur at the beginning of each scheduling cycle. Alternatively, within each scheduling cycle, the computer device can acquire real-time data such as the remaining power of the energy storage module, the current load power, and the status parameters of the diesel generator module.

[0126] This historical load operation data refers to the data from the historical operation of the load. For example, this historical load operation data may include the load power at each point in time within a second historical time period, and the time and environmental data at each point in the second time period. The time data may include one or more of the following: hour, day of the week, month, whether it is a holiday, etc. The environmental data may include one or more of the following: ambient temperature, ambient humidity, weather information, etc. The second time period can be a period preceding the current time point.

[0127] Step 302: The computer device determines the target load power data based on the historical load operation data. The target load power data includes the estimated load power at each time point in the first future time period.

[0128] For example, the start time of the first time period can be the next time point after the current time point. For example, the duration of the first time period and the duration of the second time period can be the same or different, and this application embodiment does not limit this.

[0129] Since the historical load operation data can accurately reflect the load power change pattern in the second time period, as well as the corresponding time and environmental patterns, the estimated load power at each time point in the first time period can be determined relatively accurately based on this historical load operation data.

[0130] For example, the target load power data could be:

[0131]

[0132] in, To estimate load power, This represents the estimated load power at the next time point from the current time point. This represents the estimated load power at the Hth time point after the current time point.

[0133] In some implementations, step 302 may be performed as follows: the computer device generates load power characteristics based on the load power at each time point in the second time period; generates time characteristics based on the time data at each time point in the second time period; generates environmental characteristics based on the environmental data at each time point in the second time period; generates target characteristics based on the load power characteristics, the time characteristics, and the environmental characteristics; and inputs the target characteristics into the load power prediction model to obtain the target load power data output by the load power prediction model.

[0134] Load power characteristics directly reflect the changing patterns of the load, time characteristics reflect the regularity of energy demand at different points in time, and environmental characteristics reflect changes in electricity demand. Therefore, by combining load power characteristics, time characteristics, and environmental characteristics, a multi-dimensional target characteristic is obtained. This multi-dimensional target characteristic can comprehensively reflect the complexity of load power changes, and based on the target characteristic, more accurate target load power data can be determined.

[0135] In some implementations, after the computer device determines the target load power data based on the historical load operation data, it can determine a first power consumption based on the target load power data. The first power consumption is the power consumed by the energy storage module during operation in the first time period. If the difference between the current remaining power of the energy storage module and the first power consumption is less than a first preset power consumption, it is determined that the energy storage module is at risk of insufficient power supply in the first time period. If the estimated load power at at least one point in the target load power data is greater than the rated output power of the energy storage module, it is determined that the energy storage module is at risk of power spike in the first time period.

[0136] The first preset battery level can be set in advance. For example, the first preset battery level can be set to 19%, 20%, or 21%, etc., but this application embodiment does not limit this.

[0137] For example, for any one of the multiple time points in the first time period, the computer device can multiply the estimated load power at that time point by a preset duration to obtain the power consumption required by the energy storage module from that time point to the next time point. The power consumption corresponding to the multiple time points is then summed to obtain a first power consumption. For example, the computer device can determine the estimated remaining power of the energy storage module at each of the multiple time points in the first time period, thus obtaining the trajectory of the estimated remaining power of the energy storage module in the first time period.

[0138] For example, the trajectory of the estimated remaining power of the energy storage module during the first time period can be:

[0139]

[0140] in, This represents the estimated remaining power of the energy storage module at the next point in time from the current point in time. This represents the estimated remaining power of the energy storage module at the Hth time point after the current time.

[0141] If the difference between the current remaining power of the energy storage module and the first power level is less than the first preset power level, it indicates that the power consumed by the energy storage module during the first time period will cause its remaining power to drop to the SOC safety lower limit. This may affect the normal power supply of the energy storage module, so it can be determined that the energy storage module faces a risk of insufficient power supply during the first time period. If the difference between the current remaining power of the energy storage module and the first power level is greater than or equal to the first preset power level, it indicates that the power consumed by the energy storage module during the first time period will not cause its remaining power to drop to the SOC safety lower limit, so it can be determined that the energy storage module does not face a risk of insufficient power supply during the first time period.

[0142] If the estimated load power at at least one time point in the target load power data exceeds the rated output power of the energy storage module, it indicates that the energy storage module cannot meet the load's power requirements at that time point. This could lead to the load malfunctioning or even damage to equipment (such as energy storage devices or load devices). Therefore, it can be determined that the energy storage module faces a power spike risk in the first time period. Conversely, if the estimated load power at multiple time points in the target load power data is less than or equal to the rated output power of the energy storage module, it indicates that the energy storage module can provide the required power to the load during the first time period. Therefore, it can be determined that the energy storage module does not face a power spike risk during the first time period.

[0143] In this way, potential risks in the future (i.e., the first time period) can be known in advance, which provides a basis for the advance scheduling of subsequent diesel generator modules.

[0144] Step 303: If the computer device determines that the energy storage module has the risk of insufficient power supply and the risk of power spikes in the first time period based on the target load power data, it determines the target power and target time point corresponding to the diesel generator module based on the target load power data.

[0145] The target power is the power that the diesel generator module needs to output. The target time point is the time point at which the diesel generator module begins to output the target power. The target time point is a time point within the first time period.

[0146] Since the target load power indicates a high probability of insufficient power supply and power spikes for the energy storage module during the first time period, the target power and target time point for the diesel generator module can be determined based on the target load power data. This allows the diesel generator module and the energy storage module to work together to supply power to the load while simultaneously charging the energy storage module. In this way, while ensuring the power required by the load is met, insufficient power supply to the energy storage module during the first time period can be avoided, thereby improving the stability of the microgrid operation.

[0147] In some implementations, step 303 may be performed as follows: the computer device determines a target time period based on the target load power data, the start time of the target time period being the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module, and the end time of the target time period being the time point after the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module; a second energy level is determined based on the first preset power corresponding to the diesel generator module, the first preset energy level corresponding to the energy storage module, the target time period, and the estimated load power at each time point in the target time period, the second energy level being the remaining energy level that the energy storage module needs to reach at the start time of the target time period; and the target power and target time point are determined based on the first preset power and the second energy level.

[0148] The first preset power (also known as the planned power) can be set in advance. For example, the first preset power corresponding to the diesel generator module can be the output power of the diesel generator module at its optimal efficiency point.

[0149] The target time period is the period within the first time period during which power spikes occur. For example, the target time period may also be referred to as the load power spike event window. For example, the computer device can determine the target time period based on target load power data in the following manner.

[0150]

[0151] in, For the target time period, This refers to the time point within the first time period when the estimated load power first exceeds the rated output power of the energy storage module. The next time point after the last time point in the first time period when the estimated load power exceeds the rated output power of the energy storage module.

[0152] Since the load requires a large amount of power during the target time period, the diesel generator module is unlikely to be able to charge the energy storage module when operating at the first preset power. The energy storage module and the diesel generator module need to work together to supply power to the load. In other words, the energy storage module is in a power-consuming state during the target time period. Therefore, it can be determined that the second amount of power can ensure that the energy storage device will not have the risk of insufficient power supply during the target time period.

[0153] Optionally, the operation of the computer device to determine the second energy level based on the first preset power corresponding to the diesel generator module, the first preset energy level corresponding to the energy storage module, the target time period, and the estimated load power at each time point within the target time period can be as follows: For each time point within the target time period, the estimated load power at that time point is subtracted from the first preset power to obtain the estimated compensation power of the energy storage module at that time point; the required discharge energy of the energy storage module is determined based on the estimated compensation power at each time point within the target time period and the target time period; and the second energy level is determined based on the required discharge energy of the energy storage module and the first preset energy level.

[0154] For example, the computer device can determine the estimated compensation power of the energy storage module at that time point based on the estimated load power and the first preset power using the following formula.

[0155]

[0156] in, The estimated compensation power at this point in time. The estimated load power at this point in time. This is the first preset power.

[0157] For example, the computer device can determine the required discharge energy of the energy storage module using the following formula, based on the estimated compensation power at each of the multiple time points within the target time period and the target time period.

[0158]

[0159] in, This is the required discharge energy for the energy storage module. This represents the discharge efficiency of the energy storage module.

[0160] In some cases, the computer device can determine the second charge based on the required discharge energy of the energy storage module and the first preset charge using the following formula.

[0161]

[0162] in, For the second battery level, This is the maximum capacity of the energy storage module. The first preset battery level, This is the rated total capacity of the energy storage module.

[0163] In other cases, the computer device can determine the second charge based on the required discharge energy of the energy storage module and the first preset charge using the following formula.

[0164]

[0165] in, For the second battery level, This is the maximum capacity of the energy storage module. The first preset battery level, For safety margin coefficient, This is the rated total capacity of the energy storage module.

[0166] By introducing a safety margin factor, the energy storage module has sufficient power to handle the entire peak load, avoiding the risk of insufficient power supply during the target period due to prediction errors, capacity degradation caused by battery aging, or other reasons. This improves the operational stability of the energy storage device.

[0167] In some embodiments, the operation of the computer device to determine the target power and target time point based on the first preset power and the second energy level can be as follows: determining the product of the difference between the second energy level and the current remaining energy level of the energy storage module and the rated total capacity of the energy storage module to obtain the first energy to be charged of the energy storage module; determining the estimated rechargeable energy of the energy storage module from each time point in a third time period between the current time point and the start time point of the target time period; determining the first time point corresponding to the first preset power based on the first energy to be charged of the energy storage module and the estimated rechargeable energy of the energy storage module from each time point in the third time period to the start time point of the target time period, wherein the first time point is the time point when the diesel generator module needs to start outputting the first preset power; and determining the target power and target time point based on the first preset power and the first time point.

[0168] The estimated rechargeable energy at each point in the third time period reflects how much energy the diesel generator module can charge the energy storage module at that point. This allows us to determine the energy required for the diesel generator module to reach its target charge level if it starts operating at the latest point in the third time period. This avoids power waste caused by the diesel generator module starting too early, thus making fuller use of its output power.

[0169] For example, the computer device can determine the first energy to be charged of the energy storage module using the following formula, based on the second energy level, the current remaining energy level of the energy storage module, and the rated total capacity of the energy storage module.

[0170]

[0171] in, This is the first energy to be charged for the energy storage module. For the second battery level, This represents the remaining power of the energy storage module at the current time.

[0172] Optionally, the computer device may determine the estimated rechargeable energy of the energy storage module at each time point in the third time period between the current time point and the start time point of the target time period by: for any time point in the third time period, subtracting the estimated load power of that time point from the first preset power to obtain the net charging power corresponding to that time point; and determining the estimated rechargeable energy of each time point in the third time period based on the net charging power of each time point in the third time period and the third time period.

[0173] For example, the computer device can determine the net charging power at a given time point using the following formula, based on a first preset power and the estimated load power at that time point.

[0174]

[0175] in, This represents the net charging power at that point in time. The charging efficiency of this energy storage module.

[0176] For example, the computer device can determine the estimated rechargeable energy from each time point in the third time period to the start time of the target time period using the following formula, based on the net charging power at each time point in the third time period and the third time period.

[0177]

[0178] in, For any point in the third time period, The estimated rechargeable energy from any given time point to the start time of the target time period.

[0179] For example, the computer device can determine the first time point corresponding to the first preset power by the following formula, based on the first rechargeable energy of the energy storage module and the estimated rechargeable energy of the energy storage module from each time point in the third time period to the start time point of the target time period.

[0180]

[0181] in, As the first point in time, This represents the estimated rechargeable energy at the first point in time. This is the first energy to be charged for the energy storage module.

[0182] In some implementations, the computer device may determine the target power and target time point based on the first preset power and the first time point in two ways.

[0183] The first method: The computer device determines the first preset power as the target power and the first time point as the target time point.

[0184] In this case, the computer equipment can control the diesel generator module to start outputting the target power at the target time point.

[0185] For example, the computer device can send a control command to the diesel generator module at a target time point, the control command being used to instruct the diesel generator module to output a target power.

[0186] The second method: The first preset power is one of a plurality of preset powers. The operation of the computer device to determine the target power and target time point based on the first preset power and the first time point can be as follows: For any one of the plurality of preset powers, the unit charging fuel consumption corresponding to the preset power is determined based on the second power, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power; the preset power with the lowest unit charging fuel consumption among the plurality of preset powers is determined as the target power, and the first time point corresponding to the target power is determined as the target time point.

[0187] These preset power values ​​can be set in advance. For example, these preset power values ​​can be set according to the power output of the diesel generator module.

[0188] Unit charging fuel consumption refers to the amount of fuel consumed to charge 1 kilowatt-hour (kWh) of the energy storage module. A higher unit charging fuel consumption means that more fuel is consumed to charge 1 kWh of the energy storage module, and a lower unit charging fuel consumption means that less fuel is consumed to charge 1 kWh of the energy storage module.

[0189] Unit charging fuel consumption reflects the amount of fuel consumed to charge 1 kWh of energy storage module, and thus reflects the charging efficiency of the module. Therefore, the diesel generator module can determine the unit charging fuel consumption for each of several preset power levels, and then select the preset power with the highest charging efficiency (i.e., the lowest unit charging fuel consumption) as the target power. This improves the fuel efficiency and charging efficiency of the diesel generator module, enhances its overall operating efficiency, and reduces overall energy consumption.

[0190] In some embodiments, the operation of the computer device determining the unit charging fuel consumption corresponding to the preset power based on the second energy level, the estimated remaining energy level of the energy storage module at a first time point, the fuel consumption rate corresponding to the preset power, and the preset power can be as follows: the difference between the second energy level and the estimated remaining energy level of the energy storage module at the first time point is multiplied by the rated total capacity of the energy storage module to obtain the second energy to be charged; the charging time is determined based on the second energy to be charged and the preset power; the charging time is multiplied by the fuel consumption rate corresponding to the preset power to obtain the total fuel consumption; and the total fuel consumption is divided by the net charging power corresponding to the preset power to obtain the unit charging fuel consumption corresponding to the preset power.

[0191] For example, the computer device can determine the second energy to be charged using the following formula, based on the product of the second energy level, the difference between the estimated remaining energy level of the energy storage module at the first time point, and the rated total capacity of the energy storage module.

[0192]

[0193] in, For the second energy source to be charged, This is the estimated remaining power of the energy storage module at the first point in time.

[0194] For example, the computer device can determine the charging time based on the second energy to be charged and the preset power using the following formula.

[0195]

[0196]

[0197] in, This refers to the net charging power of the energy storage module when the diesel generator module is at the preset power (i.e., the net charging power corresponding to the preset power). This refers to the charging time.

[0198] For example, the computer device can determine the total fuel consumption using the following formula based on the charging time and the fuel consumption rate corresponding to the preset power.

[0199]

[0200] in, For total fuel consumption, This is the fuel consumption rate corresponding to the preset power.

[0201] For example, the computer device can determine the unit charging fuel consumption corresponding to the preset power using the following formula, based on the total fuel consumption and the preset power.

[0202]

[0203] in, The fuel consumption per unit charge corresponding to the preset power. This is the net charging power corresponding to the preset power.

[0204] For example, the computer device can determine the preset power with the minimum fuel consumption per unit charge from the plurality of preset power using the following formula.

[0205]

[0206] in, The preset power that minimizes fuel consumption per unit charge. This is the minimum output power of the diesel generator module. This is the maximum output power of the diesel generator module.

[0207] Step 304: The computer device controls the diesel generator module to start outputting the target power at the target time point.

[0208] For example, the computer device can send a control command to the diesel generator module at a target time point, the control command being used to instruct the diesel generator module to output a target power.

[0209] In some implementations, after the computer device determines the target load power data based on historical load operation data, it can control the diesel generator module to output a first preset power if it determines that the energy storage module has a risk of insufficient power supply and no risk of power spikes in the first time period based on the target load power data; or, if it determines that the energy storage module has a risk of power spikes and no risk of insufficient power supply in the first time period based on the target load power data, it can determine a target time period from the first time period based on the target load power data, where the target time period is the time period with the risk of power spikes; and control the diesel generator module to start outputting the first preset power at the beginning of the target time period.

[0210] If the energy storage module has a risk of insufficient power supply and no risk of power spikes in the first time period, it means that the energy storage module can provide the estimated load power for the load during the first time period. The power consumed by the energy storage module during the first time period will cause the remaining power of the energy storage module to drop to the SOC safety lower limit. Therefore, the diesel generator module can be controlled to output the first preset power so that the diesel generator module can charge the energy storage module.

[0211] If the energy storage module determines, based on the target load power data, that there is a risk of power spikes but no risk of insufficient power supply in the first time period, it means that the power consumed by the energy storage module during the first time period will not cause the remaining power of the energy storage module to drop to the SOC safety lower limit. The energy storage module cannot meet the power required by the load at at least one time point. Therefore, the diesel generator module is controlled to start outputting the first preset power at the beginning of the target time period so that the diesel generator module and the energy storage module work together to supply power to the load.

[0212] In this way, when it is determined that there is a risk of insufficient power supply and / or a risk of power spikes in the first time period, the start-up, shutdown and operation strategies of the diesel generator module can be generated in advance, thereby achieving forward-looking scheduling and control.

[0213] In some implementations, after controlling the diesel generator module to output a first preset power, the computer device can periodically acquire the remaining power of the energy storage module. If the remaining power of the energy storage module is greater than a second preset power, the computer device can control the diesel generator module to stop operating.

[0214] The second preset battery level can be set in advance. The second preset battery level is greater than the first preset battery level. For example, the second preset battery level can be set to 80%, 85%, or 90%, etc., but this application embodiment does not limit this.

[0215] In this way, the diesel generator module can be stopped in time after the energy storage module is fully charged, reducing unnecessary fuel consumption of the diesel generator module.

[0216] In this embodiment, the computer device acquires historical load operation data, determines target load power data based on this data, and, if the target load power data indicates a risk of insufficient power supply and power spikes for the energy storage module in the first time period, determines the target power and target time point for the diesel generator module based on the target load power data. The diesel generator module is then controlled to start outputting the target power at the target time point. Since historical load operation data accurately reflects the correlation between load power changes, time changes, and environmental changes over historical periods, it allows for a relatively accurate determination of the load power changes in the first time period and prediction of potential risks. By determining the risk of insufficient power supply and power spikes, and ensuring the diesel generator module starts outputting the target power at the target time point, the device intervenes before the risk materializes. This allows it to work in conjunction with the energy storage module to supply power to the load while preventing the energy storage module from shutting down due to low remaining power in the first time period. This can improve the microgrid's ability to withstand load power spikes and the operational stability of energy storage modules, thereby enhancing the overall operational stability of the microgrid.

[0217] Figure 4 This is a schematic diagram of a power control device provided in an embodiment of this application. The device can be implemented as part or all of a computer device by software, hardware, or a combination of both, and this computer device can be described below. Figure 5 The computer equipment shown. See also Figure 4 The device includes: a first acquisition module 401, a first determination module 402, a second determination module 403, and a first control module 404.

[0218] The first acquisition module 401 is used to acquire historical load operation data;

[0219] The first determining module 402 is used to determine the target load power data based on the historical load operation data. The target load power data includes the estimated load power at each time point in the future first time period.

[0220] The second determining module 403 is used to determine the target power and target time point of the diesel generator module based on the target load power data when it is determined that the energy storage module has a risk of insufficient power supply and a risk of power spike in the first time period based on the target load power data.

[0221] The first control module 404 is used to control the diesel generator module to start outputting the target power at the target time point.

[0222] Optionally, the historical load operation data includes the load power at each time point in the second historical time period and the time and environmental data at each time point in the second time period. The time data includes one or more of the following: hour, weekday, month, and whether it is a holiday. The environmental data includes one or more of the following: ambient temperature, ambient humidity, and weather information. The first determining module 402 is used for:

[0223] The load power characteristics are generated based on the load power at each time point in the second time period.

[0224] Generate time features based on the time data of each time point in the second time period;

[0225] Environmental features are generated based on environmental data at each time point in the second time period;

[0226] Target features are generated based on the load power characteristics, the time characteristics, and the environmental characteristics.

[0227] Input the target features into the load power prediction model to obtain the target load power data output by the load power prediction model.

[0228] Optionally, the device further includes:

[0229] The third determining module is used to determine the first energy level based on the target load power data. The first energy level is the energy consumed by the energy storage module during the first time period.

[0230] The fourth determining module is used to determine that the energy storage module is at risk of insufficient power supply in the first time period if the difference between the current remaining power of the energy storage module and the first power is less than the first preset power.

[0231] The fifth determination module is used to determine that the energy storage module has a power spike risk in the first time period if the estimated load power at at least one time point in the target load power data is greater than the rated output power of the energy storage module.

[0232] Optionally, the second determining module 403 is used for:

[0233] The target time period is determined based on the target load power data. The start time of the target time period is the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module for the first time period. The end time of the target time period is the time point after the time point in the first time period when the estimated load power is greater than the rated output power of the energy storage module for the last time period.

[0234] The second power is determined based on the first preset power corresponding to the diesel generator module, the first preset power corresponding to the energy storage module, the target time period, and the estimated load power at each time point in the target time period. The second power is the remaining power that the energy storage module needs to achieve at the beginning of the target time period.

[0235] The target power and target time point are determined based on the first preset power and the second power level.

[0236] Optionally, the second determining module 403 is used for:

[0237] The first energy to be charged of the energy storage module is obtained by multiplying the difference between the second energy level and the current remaining energy level of the energy storage module with the rated total capacity of the energy storage module.

[0238] Determine the estimated rechargeable energy of the energy storage module from the start time of the target time period at each point in the third time period between the current time and the start time of the target time period;

[0239] Based on the first energy to be charged of the energy storage module and the estimated rechargeable energy of the energy storage module from each time point in the third time period to the start time point of the target time period, the first time point corresponding to the first preset power is determined. The first time point is the time point when the diesel generator module needs to start outputting the first preset power.

[0240] The target power and target time point are determined based on the first preset power and the first time point.

[0241] Optionally, the first preset power is one of a plurality of preset power values, and the second determining module 403 is used for:

[0242] For any one of the multiple preset power, the unit charging fuel consumption corresponding to the preset power is determined based on the second power, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power.

[0243] The preset power with the lowest fuel consumption per unit charge among the multiple preset power is determined as the target power, and the first time point corresponding to the target power is determined as the target time point.

[0244] Optionally, the second determining module 403 is used for:

[0245] The second energy to be charged is obtained by multiplying the difference between the second energy and the estimated remaining energy of the energy storage module at the first time point by the rated total capacity of the energy storage module.

[0246] The charging time is determined based on the second energy to be charged and the preset power.

[0247] Multiply the charging time by the fuel consumption rate corresponding to the preset power to get the total fuel consumption;

[0248] Divide the total fuel consumption by the net charging power corresponding to the preset power to obtain the unit charging fuel consumption corresponding to the preset power.

[0249] Optionally, the first control module 404 is used for:

[0250] A control command is sent to the diesel generator module at the target time point, which instructs the diesel generator module to output the target power.

[0251] Optionally, the device further includes:

[0252] The second control module is used to control the diesel generator module to output a first preset power when, based on the target load power data, it is determined that the energy storage module faces a risk of insufficient power supply and no power spike risk in the first time period; or...

[0253] The third control module is used to determine a target time period from the first time period based on the target load power data, where the energy storage module is at risk of power spikes but not of insufficient power supply, and to control the diesel generator module to start outputting a first preset power at the beginning of the target time period, provided that the energy storage module is at risk of power spikes in the first time period based on the target load power data.

[0254] Optionally, the device further includes:

[0255] The second acquisition module is used to periodically acquire the remaining power of the energy storage module;

[0256] The fourth control module is used to control the diesel generator module to stop operating when the remaining power of the energy storage module is greater than the second preset power.

[0257] In this embodiment, historical load operation data is acquired, and target load power data is determined based on this data. If the target load power data indicates a risk of insufficient power supply and power spikes for the energy storage module in the first time period, the target power and target time point for the diesel generator module are determined based on the target load power data. The diesel generator module is then controlled to start outputting the target power at the target time point. Since historical load operation data accurately reflects the correlation between load power changes, time changes, and environmental changes over historical periods, it allows for a relatively accurate determination of the load power changes in the first time period and the prediction of potential risks. By determining the presence of insufficient power supply and power spike risks, the target power and target time point for the diesel generator module are determined so that the module starts outputting the target power at the target time point. This allows the diesel generator module to intervene before the risks materialize, working in conjunction with the energy storage module to supply power to the load while preventing the energy storage module from shutting down due to low remaining power in the first time period. This improves the microgrid's ability to withstand power spikes and the operational stability of the energy storage module, thereby enhancing the overall stability of the microgrid.

[0258] It should be noted that the power control device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling power. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0259] The functional modules in the above embodiments can be integrated into one processing unit, or each functional module can exist as a separate physical processing unit, or two or more functional modules can be integrated into one processing unit. The processing unit can be implemented in hardware or software. Furthermore, the specific names of the functional modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.

[0260] The power control device and power control method embodiments provided in the above embodiments belong to the same concept. The specific working process and technical effects of the functional modules in the above embodiments can be found in the method embodiment section, and will not be repeated here.

[0261] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 5As shown, the computer device 5 includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, it implements the steps in the power control method in the above embodiments.

[0262] Computer device 5 can be a general-purpose computer device or a special-purpose computer device. In specific implementations, computer device 5 can be a desktop computer, portable computer, network server, handheld computer, mobile phone, tablet computer, wireless terminal device, communication device, or embedded device. This application embodiment does not limit the type of computer device 5. Those skilled in the art will understand that... Figure 5 The computer device 5 is merely an example and does not constitute a limitation on the computer device 5. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0263] Processor 50 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0264] In some embodiments, memory 51 may be an internal storage unit of the computer device 5, such as a hard disk or RAM of the computer device 5. In other embodiments, memory 51 may be an external storage device of the computer device 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device 5. Furthermore, memory 51 may include both internal storage units and external storage devices of the computer device 5. Memory 51 is used to store the operating system, applications, boot loader, data, and other programs. Memory 51 may also be used to temporarily store data that has been output or will be output.

[0265] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0266] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0267] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.

[0268] This application provides a computer program product that, when run on a computer, causes the computer to perform the steps described in the various method embodiments above.

[0269] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above method embodiments of this application can be implemented by a computer program. This computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate form. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a computer device, recording media, computer memory, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage devices. The computer-readable storage medium mentioned in this application can be a non-volatile storage medium; in other words, it can be a non-transient storage medium.

[0270] It should be understood that all or part of the steps of the above embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part as a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-described computer-readable storage medium.

[0271] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0272] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer devices and methods can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units 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 indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this application according to actual needs.

[0273] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0274] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A power control method, characterized in that, The method includes: Obtain historical load operation data; The target load power data is determined based on the historical load operation data, and the target load power data includes the estimated load power at each time point in the first future time period. If, based on the target load power data, it is determined that the energy storage module faces risks of insufficient power supply and power spikes during the first time period, a target time period is determined based on the target load power data. The start time of the target time period is the time point within the first time period when the estimated load power first exceeds the rated output power of the energy storage module, and the end time of the target time period is the time point following the time point after the last occurrence of the estimated load power exceeding the rated output power of the energy storage module within the first time period. A second energy level is determined based on the first preset power corresponding to the diesel generator module, the first preset energy level corresponding to the energy storage module, the target time period, and the estimated load power at each time point within the target time period. The second energy level is the energy storage module's energy level at the start time of the target time period. The remaining power required to be achieved at the specified time; the difference between the second power and the current remaining power of the energy storage module is multiplied by the rated total capacity of the energy storage module to obtain the first energy to be charged of the energy storage module; the estimated rechargeable energy of the energy storage module from each time point in the third time period between the current time point and the start time point of the target time period is determined; based on the first energy to be charged and the estimated rechargeable energy of the energy storage module from each time point in the third time period to the start time point of the target time period, the first time point corresponding to the first preset power is determined, and the first time point is the time point when the diesel generator module needs to start outputting the first preset power; the target power and target time point are determined based on the first preset power and the first time point; The diesel generator module is controlled to start outputting the target power at the target time point.

2. The method as described in claim 1, characterized in that, The historical load operation data includes the load power at each time point in the second historical time period and the time and environmental data at each time point in the second time period. The time data includes one or more of the following: hour, day of the week, month, and whether it is a holiday. The environmental data includes one or more of the following: ambient temperature, ambient humidity, and weather information. Determining the target load power data based on the historical load operation data includes: The load power characteristics are generated based on the load power at each time point in the second time period. Generate time features based on the time data of each time point in the second time period; Environmental features are generated based on the environmental data at each time point in the second time period; Target features are generated based on the load power characteristics, the time characteristics, and the environmental characteristics; The target features are input into the load power prediction model to obtain the target load power data output by the load power prediction model.

3. The method as described in claim 1, characterized in that, After determining the target load power data based on the historical load operation data, the method further includes: The first power is determined based on the target load power data, and the first power is the power consumed by the energy storage module during the first time period. If the difference between the current remaining power of the energy storage module and the first power is less than the first preset power, it is determined that the energy storage module is at risk of insufficient power supply during the first time period. If the estimated load power at at least one time point in the target load power data is greater than the rated output power of the energy storage module, it is determined that the energy storage module has a power spike risk in the first time period.

4. The method as described in claim 1, characterized in that, The first preset power is one of a plurality of preset powers. The step of determining the target power and target time point based on the first preset power and the first time point includes: For any one of the multiple preset power, the unit charging fuel consumption corresponding to the preset power is determined based on the second power, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power. The preset power with the lowest unit charging fuel consumption among the multiple preset power is determined as the target power, and the first time point corresponding to the target power is determined as the target time point.

5. The method as described in claim 4, characterized in that, The step of determining the unit charging fuel consumption corresponding to the preset power based on the second power level, the estimated remaining power of the energy storage module at the first time point, the fuel consumption rate corresponding to the preset power, and the preset power includes: The second energy to be charged is obtained by multiplying the difference between the second energy and the estimated remaining energy of the energy storage module at the first time point by the rated total capacity of the energy storage module. The charging time is determined based on the second energy to be charged and the preset power. Multiply the charging time by the fuel consumption rate corresponding to the preset power to obtain the total fuel consumption; Divide the total fuel consumption by the net charging power corresponding to the preset power to obtain the unit charging fuel consumption corresponding to the preset power.

6. The method as described in claim 1, characterized in that, The control of the diesel generator module to start outputting the target power at the target time point includes: At the target time point, a control command is sent to the diesel generator module, the control command being used to instruct the diesel generator module to output the target power.

7. The method according to any one of claims 1 to 6, characterized in that, After determining the target load power data based on the historical load operation data, the method further includes: If, based on the target load power data, it is determined that the energy storage module faces a risk of insufficient power supply but no risk of power spikes during the first time period, the diesel generator module is controlled to output a first preset power; or... If, based on the target load power data, it is determined that the energy storage module has a power peak risk but no power shortage risk during the first time period, a target time period is determined from the first time period based on the target load power data. The target time period is the time period with a power peak risk. The diesel generator module is controlled to start outputting the first preset power at the beginning time of the target time period.

8. The method as described in claim 7, characterized in that, After controlling the diesel generator module to output a first preset power, the method further includes: The remaining power of the energy storage module is periodically acquired; If the remaining power of the energy storage module is greater than the second preset power, the diesel generator module will be controlled to stop operating.

9. A computer device, characterized in that, The computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program, when executed by the processor, implements the method as claimed in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 8.

11. A computer program product, characterized in that, When the computer program product is run on a computer device, the computer device causes the computer device to perform the method as described in any one of claims 1 to 8.