Coal mine micro-grid dynamic demand collaborative control method, system, medium and product

CN122890494APending Publication Date: 2026-10-09CECEP WEILV (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611197788.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

[0004]然而,由于煤矿生产的动态性和瓦斯抽采的复杂性,瓦斯发电机组的实际运行状态愈发复杂多变

Benefits of technology

通过采用上述技术方案,首先获取煤矿微电网中双回路的关口有功功率、瓦斯发电机组的输出功率以及储能系统的荷电状态,并根据连续多个采样周期内的输出功率计算波动强度指标,进而基于所述波动强度指标动态确定对应的偏差死区宽度。这一过程打破了传统固定偏差阈值难以适应瓦斯发电输出功率动态演变的局限性,能够根据瓦斯发电的实际波动状态自适应调整判断基准,有效避免了因频繁波动导致的控制滞后或设备频繁动作。进一步地,本申请根据关口有功功率和输出功率计算实际交换功率,并与预设的合并最大需量阈值比对得到需量偏差值,仅在需量偏差值大于动态调整的偏差死区宽度时,才计算二者的差值得到目标补偿功率,从而在滤除合理波动干扰的同时精准明确了需量调控的功率需求。在此基础上,本申请结合储能系统的荷电状态和波动强度指标对应的波动分级,将目标补偿功率科学分解为储能补偿分量和线路互济补偿分量,并分别控制储能系统按照储能补偿分量执行充放电,以及控制配置在双回路之间的柔性互联装置按照线路互济补偿分量执行功率转移。这种协同控制机制不仅充分利用了双回路间的互济能力,避免了单一储能系统的过度充放电,还实现了多元设备的优势互补,最终使得需量偏差值稳定在偏差死区宽度以内,提高了煤矿微电网需量控制在复杂动态场景下的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122890494A_ABST
    Figure CN122890494A_ABST
Patent Text Reader

Abstract

A coal mine micro-grid dynamic demand collaborative control method, system, medium and product, relate to the technical field of data processing. In the method, first, the active power, output power and state of charge are obtained, and a flexible interconnection device is provided between the double circuits. Second, the fluctuation intensity index is calculated according to the output power of the continuous sampling period to determine the deviation dead zone width, and the demand deviation value after comparing the actual exchange power with the combined maximum demand threshold value. When the demand deviation value is greater than the dead zone width, the difference between the two is calculated to obtain the target compensation power. Subsequently, based on the state of charge and the fluctuation classification, the target compensation power is decomposed into a storage compensation component and a line mutual aid compensation component. Finally, the storage system charging and discharging and the flexible interconnection device are controlled to transfer power between the double circuits, so that the demand deviation value is controlled within the dead zone width. The technical scheme provided in the application can improve the accuracy of coal mine micro-grid demand control in complex dynamic scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a method, system, medium, and product for dynamic demand coordinated control of coal mine microgrids. Background Technology

[0002] With the transformation and upgrading of my country's coal industry, coal mining enterprises are gradually building microgrid systems that include diversified equipment such as gas power generation, energy storage systems, and flexible interconnection devices. As a regional energy network integrating distributed energy and loads, coal mine microgrids play an increasingly important role in improving energy utilization efficiency and reducing operating costs. Coal mine microgrids typically use a dual-circuit power supply method to connect to the upper-level grid, ensuring power supply reliability while fully utilizing associated coal mine gas resources for distributed power generation, achieving cascaded energy utilization. To reduce electricity costs, coal mining enterprises usually sign demand-based electricity contracts with power supply companies, agreeing to use the combined maximum demand value as the billing benchmark. Their demand management technology is showing a trend towards refinement and collaboration, and its control accuracy and response strategies under complex operating conditions are crucial for ensuring the stable operation of the microgrid.

[0003] Gas power generation, as an important distributed power source in coal mine microgrids, is gradually becoming one of the key technological routes for the comprehensive utilization of coal mine energy due to its advantages in utilizing associated coal resources and significant environmental benefits. Compared with traditional thermal power generation, gas power generation exhibits unique advantages in resource utilization and safe production, and has received widespread attention in the field of coal mine microgrids. Currently, demand control methods for coal mine microgrids based on gas power generation mainly rely on fixed deviation threshold technology. This involves monitoring the deviation between the power grid outlet power and the combined maximum demand threshold, and determining whether to activate energy storage systems or flexible interconnection devices for power regulation based on the fixed deviation threshold. This fixed threshold-based control method can reflect the basic needs of demand management and has been widely used in the field of energy management in coal mine microgrids.

[0004] However, due to the dynamic nature of coal mine production and the complexity of gas extraction, the actual operating conditions of gas generator units are becoming increasingly complex and variable. In practical applications, control methods based on fixed thresholds are insufficient to cope with the dynamic evolution of gas power generation output under various operating conditions, and the adaptability of the deviation threshold setting is difficult to guarantee. In particular, when gas power generation experiences frequent fluctuations and its output characteristics and disturbance levels change, the actual fluctuation state of power generation exhibits dynamic evolution characteristics under different conditions. Existing methods, which use simple fixed deviation threshold judgments, are prone to causing frequent actions or even control lags in energy storage systems and flexible interconnection devices, thereby reducing the accuracy of demand control in coal mine microgrids under complex dynamic scenarios. Summary of the Invention

[0005] This application provides a method, system, medium, and product for dynamic demand coordination control of coal mine microgrids, which can improve the accuracy of demand control in complex dynamic scenarios.

[0006] The first aspect of this application provides a method for dynamic demand coordination control of a coal mine microgrid, comprising: The active power at the junction of the two circuits in the coal mine microgrid, the output power of the gas generator set, and the state of charge of the energy storage system are obtained. The two circuits are equipped with a flexible interconnection device. The fluctuation intensity index is calculated based on the output power over multiple consecutive sampling periods, and the corresponding deviation dead zone width is determined based on the fluctuation intensity index. The actual switching power is calculated based on the active power at the gate and the output power, and the actual switching power is compared with the preset maximum combined demand threshold to obtain the demand deviation value. When the demand deviation value is greater than the deviation dead zone width, the difference between the demand deviation value and the deviation dead zone width is calculated to obtain the target compensation power; Based on the fluctuation classification corresponding to the state of charge and the fluctuation intensity index, the target compensation power is decomposed into energy storage compensation component and line mutual assistance compensation component. The energy storage system is controlled to perform charging and discharging according to the energy storage compensation component, and the flexible interconnection device is controlled to perform power transfer between the two circuits according to the line mutual assistance compensation component, so that the demand deviation value is less than or equal to the deviation dead zone width.

[0007] By adopting the above technical solution, the active power at the gate of the dual-circuit in the coal mine microgrid, the output power of the gas generator set, and the state of charge of the energy storage system are first obtained. Then, a fluctuation intensity index is calculated based on the output power over multiple consecutive sampling periods. Finally, the corresponding deviation dead zone width is dynamically determined based on this fluctuation intensity index. This process overcomes the limitation of traditional fixed deviation thresholds, which are difficult to adapt to the dynamic evolution of gas generator output power. It can adaptively adjust the judgment benchmark according to the actual fluctuation state of gas generators, effectively avoiding control lag or frequent equipment operation caused by frequent fluctuations. Furthermore, this application calculates the actual exchange power based on the gate active power and output power, and compares it with a preset combined maximum demand threshold to obtain the demand deviation value. Only when the demand deviation value is greater than the dynamically adjusted deviation dead zone width is the difference between the two calculated to obtain the target compensation power. This accurately defines the power requirement for demand regulation while filtering out reasonable fluctuation interference. Based on this, this application scientifically decomposes the target compensation power into an energy storage compensation component and a line mutual compensation component, combining the state of charge and fluctuation intensity indices of the energy storage system. The application then controls the energy storage system to charge and discharge according to the energy storage compensation component, and controls the flexible interconnection device configured between the two circuits to transfer power according to the line mutual compensation component. This collaborative control mechanism not only fully utilizes the mutual support capability between the two circuits and avoids overcharging and discharging of a single energy storage system, but also achieves complementary advantages among multiple devices. Ultimately, this stabilizes the demand deviation within the deviation dead zone, improving the accuracy of demand control in complex dynamic scenarios for coal mine microgrids.

[0008] Optionally, the output power within multiple consecutive sampling periods is extracted to construct a rolling time window; the standard deviation of the output power within the rolling time window is calculated, and the standard deviation is used as the fluctuation intensity index; the preset fluctuation range to which the fluctuation intensity index belongs is determined, and the fluctuation level of the current period is determined; the preset level and dead zone mapping relationship is queried according to the fluctuation level to determine the corresponding deviation dead zone width, wherein the fluctuation level and the deviation dead zone width are positively correlated.

[0009] Optionally, the active power at the junctions of the two loops is summed to obtain the total load power; the difference between the total load power and the output power is calculated to obtain the actual switching power; the difference between the actual switching power and the preset combined maximum demand threshold is calculated to obtain the demand deviation value.

[0010] Optionally, a preset set of fluctuation intensity thresholds is obtained, and the fluctuation intensity index is compared with the set of fluctuation intensity thresholds for the Yisu River to determine the fluctuation level corresponding to the fluctuation intensity index. The fluctuation level includes a stable level, a warning level, and a severe level. It is determined whether the state of charge is within a preset safe charging and discharging range. If the state of charge is within the preset safe charging and discharging range, and the fluctuation level is the stable level or the warning level, then the entire target compensation power is used as the energy storage compensation component, and the line mutual assistance compensation component is zero. If the state of charge exceeds the preset safe charging and discharging range, or the fluctuation level is the severe level, then the target compensation power is decomposed into the energy storage compensation component and the line mutual assistance compensation component according to the available capacity margin ratio of the dual circuit.

[0011] Optionally, the rated capacity of the transformers in the dual circuit and the current actual load power are obtained; the difference between the rated capacity of the transformers and the current actual load power is calculated to obtain the available capacity margin of the dual circuit; a margin ratio is calculated based on the available capacity margin of the dual circuit; and the target compensation power is proportionally allocated based on the margin ratio and the maximum available charging and discharging power of the energy storage system to obtain the energy storage compensation component and the line mutual assistance compensation component.

[0012] Optionally, a charging / discharging command corresponding to the energy storage compensation component and a power transfer command corresponding to the line mutual assistance compensation component are generated; the charging / discharging command is simultaneously sent to the energy storage system, and the power transfer command is sent to the flexible interconnect device to perform power compensation; after performing power compensation, the current active power and current output power are obtained, and the corrected demand deviation value is calculated based on the current active power and current output power; if the corrected demand deviation value is greater than the deviation dead zone width, the power compensation steps are iteratively performed based on the corrected demand deviation value until the corrected demand deviation value is less than or equal to the deviation dead zone width.

[0013] Optionally, the voltage and frequency parameters of the public power grid to which the coal mine microgrid is connected are obtained; when the voltage or frequency parameters are detected to exceed the preset safe operating range, or when the dual circuit loses power, the steps of calculating the demand deviation value and compensating for the actual exchange power are stopped, and an emergency backup control command is generated; based on the emergency backup control command, the energy storage system and the flexible interconnection device are controlled to supply power to the preset target load; when the voltage and frequency parameters are detected to return to the safe operating range and the dual circuit resumes power supply, the current target active power and target output power are obtained, and the steps of calculating the demand deviation value and compensating for the actual exchange power are resumed based on the target active power and target output power.

[0014] Secondly, embodiments of this application provide a dynamic demand coordination control system for a coal mine microgrid. The dynamic demand coordination control system for a coal mine microgrid includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the dynamic demand coordination control system for a coal mine microgrid to perform the method described in the first aspect and any possible implementation thereof.

[0015] Thirdly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a dynamic demand-coordinated control system for a coal mine microgrid, cause the dynamic demand-coordinated control system for a coal mine microgrid to perform the method described in the first aspect and any possible implementation thereof.

[0016] Fourthly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a dynamic demand coordination control system for a coal mine microgrid, causes the dynamic demand coordination control system for the coal mine microgrid to execute the method described in the first aspect and any possible implementation thereof.

[0017] In summary, one or more technical solutions provided in this application have at least the following technical effects or advantages: By adopting the above technical solution, the active power at the gate of the dual-circuit in the coal mine microgrid, the output power of the gas generator set, and the state of charge of the energy storage system are first obtained. Then, a fluctuation intensity index is calculated based on the output power over multiple consecutive sampling periods. Finally, the corresponding deviation dead zone width is dynamically determined based on this fluctuation intensity index. This process overcomes the limitation of traditional fixed deviation thresholds, which are difficult to adapt to the dynamic evolution of gas generator output power. It can adaptively adjust the judgment benchmark according to the actual fluctuation state of gas generators, effectively avoiding control lag or frequent equipment operation caused by frequent fluctuations. Furthermore, this application calculates the actual exchange power based on the gate active power and output power, and compares it with a preset combined maximum demand threshold to obtain the demand deviation value. Only when the demand deviation value is greater than the dynamically adjusted deviation dead zone width is the difference between the two calculated to obtain the target compensation power. This accurately defines the power requirement for demand regulation while filtering out reasonable fluctuation interference. Based on this, this application scientifically decomposes the target compensation power into an energy storage compensation component and a line mutual compensation component, combining the state of charge and fluctuation intensity indices of the energy storage system. The application then controls the energy storage system to charge and discharge according to the energy storage compensation component, and controls the flexible interconnection device configured between the two circuits to transfer power according to the line mutual compensation component. This collaborative control mechanism not only fully utilizes the mutual support capability between the two circuits and avoids overcharging and discharging of a single energy storage system, but also achieves complementary advantages among multiple devices. Ultimately, this stabilizes the demand deviation within the deviation dead zone, improving the accuracy of demand control in complex dynamic scenarios for coal mine microgrids. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating the dynamic demand coordinated control method for coal mine microgrids disclosed in the embodiments of this application; Figure 2 This is another schematic diagram of the dynamic demand coordinated control method for coal mine microgrids disclosed in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of a system provided in an embodiment of this application.

[0019] Explanation of reference numerals in the attached drawings: 301, Central Processing Unit; 302, Read-Only Memory; 303, Random Access Memory; 304, Bus; 305, Input / Output Interface; 306, Input Section; 307, Output Section; 308, Storage Section; 309, Communication Section; 310, Driver; 311, Removable Media. Detailed Implementation

[0020] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0021] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.

[0022] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0023] This application provides a dynamic demand-coordinated control method for coal mine microgrids, referring to... Figure 1 , Figure 1 This is a flowchart illustrating a dynamic demand coordination control method for a coal mine microgrid provided in an embodiment of this application. The method is applied to a system, which refers to a hardware and software integrated platform capable of executing a dynamic demand coordination control program for a coal mine microgrid. The system can execute a dynamic demand coordination control program for a coal mine microgrid. The method includes steps 101 to 106, as follows: Step 101: Obtain the active power at the junction of the two circuits in the coal mine microgrid, the output power of the gas generator set, and the state of charge of the energy storage system. A flexible interconnection device is configured between the two circuits.

[0024] In this embodiment, a dual-circuit refers to two independent power supply lines connecting the coal mine microgrid to the upper-level public power grid. Each line transmits power through its own transformer. For example, a 10 kV dual-circuit power supply system includes two lines, Circuit 1 and Circuit 2. The active power at the metering point refers to the actual active power value flowing from the upper-level power grid into the coal mine microgrid, measured at the metering point of the dual-circuit system. This power value reflects the amount of electrical energy drawn by the coal mine microgrid from the external power grid. A gas generator set refers to a distributed power generation device that uses methane gas extracted during coal mining as fuel to generate electricity. It typically consists of a gas internal combustion engine or gas turbine and a generator. Output power represents the actual active power value delivered by the gas generator set to the coal mine microgrid at the current moment. This value fluctuates with changes in the methane gas supply and the unit's operating conditions. An energy storage system refers to a device used to store electrical energy in the power grid and release it when needed. It typically consists of battery banks, converters, and an energy management system. State of charge (SBC) represents the percentage of an energy storage system's current stored electrical capacity relative to its rated capacity, ranging from 0 to 100%. For example, a SBC of 60% means that the currently stored electrical capacity is 60% of the rated capacity. Flexible interconnection devices are power electronic devices installed between two circuits to achieve flexible bidirectional power transfer, using a back-to-back converter structure to achieve power regulation between the two lines.

[0025] Specifically, power measurement devices deployed at each metering point of the dual-loop system collect real-time active power values ​​for loops 1 and 2, respectively. These devices convert voltage and current signals into digital quantities and transmit them to the data acquisition system. Simultaneously, the current output power is read from the monitoring system of the gas generator set, a value measured and uploaded in real-time by the power transmitter at the generator set's output. Furthermore, the current state of charge (SOC) value is obtained from the battery management unit of the energy storage system, calculated by the battery management system based on parameters such as battery voltage, current, and temperature using a state estimation algorithm. The collected active power at the dual-loop points, the output power of the gas generator set, and the SOC data of the energy storage system are then integrated into the energy management system of the coal mine microgrid. This data serves as the foundational input for subsequent fluctuation analysis, demand deviation calculation, and power coordination control. The data acquisition time interval is set as the sampling period, typically 1 to 5 minutes, to ensure timely reflection of changes in the operating status of the coal mine microgrid.

[0026] Step 102: Calculate the fluctuation intensity index based on the output power over multiple consecutive sampling periods, and determine the corresponding deviation dead zone width based on the fluctuation intensity index.

[0027] In this embodiment, the sampling period refers to a fixed time interval between two adjacent data acquisition operations. For example, a sampling period of 3 minutes means that the output power data of the gas generator set is collected every 3 minutes. The fluctuation intensity index is used to quantify the degree of fluctuation in the output power of the gas generator set over a period of time. The larger the index value, the more severe the power fluctuation. The deviation dead zone width refers to the threshold range for determining whether power regulation needs to be initiated when the demand deviation value is less than or equal to this width. Power regulation is not performed when the absolute value of the demand deviation value is less than or equal to this width, and regulation is initiated only when it is greater than this width. For example, a deviation dead zone width of ±30 kW means that no regulation is performed when the demand deviation value is within the range of ±30 kW to ±30 kW.

[0028] Specifically, the output power values ​​of gas generator sets recorded in the most recent consecutive sampling periods are extracted in chronological order to construct a rolling time window containing a fixed number of power samples. For example, the output power data from the most recent 10 sampling periods are extracted to form a time window containing 10 sample points. Statistical analysis is performed on all output power sample values ​​within this rolling time window. First, the arithmetic mean of these sample values ​​is calculated. Then, the square of the difference between each sample value and the mean is calculated. All squares are summed and divided by the number of samples. Finally, the square root of the result is taken, and the resulting value is the standard deviation of the output power within this time window. This standard deviation is used as the current fluctuation intensity index. The calculated fluctuation intensity index is compared one by one with multiple pre-set fluctuation interval thresholds to determine which fluctuation interval the index value falls into, thereby determining the fluctuation level of the current period. Fluctuation levels are typically divided into three levels: stable, warning, and severe. Based on the determined fluctuation level, the corresponding deviation dead zone width value is queried in the pre-established mapping relationship table between the level and the dead zone. The higher the fluctuation level in the mapping relationship table, the larger the corresponding deviation dead zone width. For example, the deviation dead zone width corresponding to the stable level is ±10 kW, the warning level is ±30 kW, and the severe level is ±50 kW, thereby realizing the dynamic adjustment of the deviation dead zone width with the fluctuation intensity.

[0029] In one possible implementation, a fluctuation intensity index is calculated based on the output power over multiple consecutive sampling periods, and the corresponding deviation dead zone width is determined based on the fluctuation intensity index. Specifically, this includes steps 1021-1023, as follows: Step 1021: Extract the output power within multiple consecutive sampling periods to construct a rolling time window.

[0030] In this embodiment, the sampling period refers to a fixed time interval between two adjacent data acquisition operations. This time interval is typically set to 1 to 5 minutes. For example, a sampling period of 3 minutes means that data is collected every 3 minutes. Output power represents the actual active power delivered by the gas generator set to the coal mine microgrid at a given moment. This value varies depending on the generator set's operating status and the gas supply. A rolling time window refers to a fixed-length data set containing multiple consecutive sampling periods arranged chronologically. This window is updated as new data is added, maintaining a fixed number of data samples. For example, a rolling time window containing 10 sampling periods will remove the oldest sample data when new sample data is added.

[0031] Specifically, historical output power data of the gas generator set is extracted from the data storage system in reverse chronological order to determine the number of sampling periods to be included in the rolling time window. This number is typically set to 8 to 12 sampling periods. Starting from the current moment and working backward, the output power values ​​recorded within the corresponding number of sampling periods are continuously extracted and arranged chronologically to form a data sequence. This data sequence constitutes the rolling time window used for fluctuation analysis. The first data point in the window represents the earliest output power, and the last data point represents the most recent output power. The data length of the rolling time window is validated to ensure that the number of output power samples included in the window meets the preset minimum sample size requirement. If the sample size is insufficient, the rolling time window is constructed only after sufficient historical data has been collected. At the arrival of each subsequent new sampling period, the newly collected output power value is added to the end of the rolling time window, while the earliest output power value at the beginning of the window is removed, maintaining a fixed number of samples within the rolling time window and implementing a rolling update mechanism for the time window.

[0032] Step 1022: Calculate the standard deviation of the output power within the rolling time window, and use the standard deviation as an indicator of fluctuation intensity.

[0033] In this embodiment, the rolling time window refers to a fixed-length set of output power data from multiple consecutive sampling periods, arranged chronologically. This window is dynamically updated over time. Output power represents the measured active power delivered by the gas generator set to the coal mine microgrid at each sampling moment, and the window contains output power values ​​from multiple different times. Standard deviation represents the dispersion of a set of data relative to its mean; a larger value indicates more severe data fluctuations, while a smaller value indicates more stable data. Fluctuation intensity index is a statistical parameter used to quantify the severity of output power fluctuations in the gas generator set; the magnitude of this index directly reflects the strength of the power fluctuations.

[0034] Specifically, all output power sample values ​​within the rolling time window are extracted, summed, and then divided by the number of samples to obtain the arithmetic mean of the output power within the rolling time window. The arithmetic mean is subtracted from each output power sample value within the window to obtain the deviation of each sample value from the mean. Each deviation is squared, and the squared deviations of all samples are summed to obtain the total sum of squared deviations. The total sum of squared deviations is divided by the number of samples to obtain the variance. The square root of the variance is then taken, and the result is the standard deviation of the output power within the rolling time window. The calculated standard deviation is directly used as the fluctuation intensity index for the current period. This index is expressed in power units; for example, a standard deviation of 15 kilowatts indicates a fluctuation intensity index of 15 kilowatts. A larger standard deviation indicates a greater difference in output power between sampling times within the rolling time window, while a smaller standard deviation indicates a smaller difference in output power between sampling times. The calculated fluctuation intensity index value is saved as a quantitative basis for subsequent judgment of fluctuation levels and determination of the deviation dead zone width.

[0035] Step 1023: Determine the preset fluctuation range to which the fluctuation intensity index belongs, and determine the fluctuation level of the current period; query the preset level and dead zone mapping relationship according to the fluctuation level, and determine the corresponding deviation dead zone width, wherein the fluctuation level and the deviation dead zone width are positively correlated.

[0036] In this embodiment, the fluctuation intensity index refers to a numerical parameter calculated using standard deviation to quantify the degree of power fluctuation in a gas generator set. The magnitude of this value reflects the severity of the power fluctuation. The preset fluctuation range refers to dividing the fluctuation intensity index's value range into several non-overlapping numerical intervals, each interval corresponding to a fluctuation level. For example, a fluctuation intensity index between 0 and 10 kW is a stable range, between 10 and 30 kW is a warning range, and above 30 kW is a severe range. The fluctuation classification indicates the current power fluctuation level category determined based on the fluctuation intensity index's range, typically divided into three levels: stable, warning, and severe. The classification and dead zone mapping relationship represents the correspondence between different fluctuation classifications and their corresponding deviation dead zone widths. This mapping relationship is pre-set and stored in tabular or functional form. The deviation dead zone width refers to the threshold range width for determining whether power compensation should be initiated; a larger value indicates a larger allowable demand deviation range. Positive correlation refers to the relationship characteristic between two variables; when one variable increases, the other variable also increases. In this embodiment, the higher the fluctuation classification level, the larger the deviation dead zone width.

[0037] Specifically, the fluctuation range division parameters are read from a preset configuration file, which define the boundary threshold values ​​for each fluctuation range. The calculated fluctuation intensity index value is compared with the boundary thresholds of each fluctuation range to determine which range the index value falls into. Based on the fluctuation range in which the fluctuation intensity index falls, the corresponding fluctuation classification category is determined; for example, a fluctuation intensity index of 8 kW is classified as stable, 25 kW as warning, and 40 kW as severe. A query is performed from a pre-established classification and dead zone mapping table, using the determined fluctuation classification category as the query key. The deviation dead zone width value corresponding to the queried fluctuation classification is extracted; this value is the deviation dead zone width required for the current period. Since the mapping table sets a rule that higher fluctuation classifications correspond to larger deviation dead zone widths (e.g., stable level corresponds to 10 kW, warning level to 30 kW, and severe level to 50 kW), the deviation dead zone width is dynamically adjusted according to the fluctuation intensity.

[0038] Step 103: Calculate the actual exchange power based on the active power and output power at the gate, and compare the actual exchange power with the preset maximum combined demand threshold to obtain the demand deviation value.

[0039] In this embodiment, the actual exchange power represents the actual power exchange between the coal mine microgrid and the upper-level public power grid. A positive value indicates that the coal mine microgrid draws power from the upper-level grid, while a negative value indicates that the coal mine microgrid feeds power back to the upper-level grid. The combined maximum demand threshold refers to the maximum demand benchmark value for dual-circuit combined billing agreed upon by the coal mining enterprise and the power supply enterprise in the demand charge contract. This value serves as the basis for demand charge calculation; exceeding this threshold will result in additional electricity expenses. For example, the combined maximum demand threshold is set at 8000 kilowatts. The demand deviation value indicates the degree of deviation between the actual exchange power and the combined maximum demand threshold. A positive value indicates that the actual exchange power exceeds the threshold and the power draw needs to be reduced, while a negative value indicates that the actual exchange power is below the threshold and there is a demand margin.

[0040] Specifically, the active power at the junction of loop 1 and loop 2 in the dual-loop system is numerically summed to obtain the total load power currently drawn by the coal mine microgrid from the upper-level grid. The output power of the gas generator set is then subtracted from the calculated total load power; the difference is the actual exchange power between the coal mine microgrid and the upper-level grid. This calculation reflects the power demand that the coal mine microgrid needs to exchange with the external grid after self-consumption within its own system. The calculated actual exchange power is then subtracted from a pre-set maximum combined demand threshold. A positive difference indicates that the current power drawn from the grid exceeds the agreed demand baseline and power reduction is required. A negative difference indicates that the current power drawn is within the agreed range and has a demand margin. This difference is the demand deviation value. The sign and magnitude of this value directly reflect the deviation status of the current demand management of the coal mine microgrid, providing a quantitative basis for subsequent judgments on whether power compensation needs to be initiated and the magnitude of the compensation power.

[0041] In one possible implementation, the actual switching power is calculated based on the active power and output power at the gate, and the actual switching power is compared with a preset maximum combined demand threshold to obtain the demand deviation value. Specifically, step 1031 is included, and the above steps are as follows: Step 1031: Sum the active power at the junctions of the two circuits to obtain the total load power; calculate the difference between the total load power and the output power to obtain the actual switching power; calculate the difference between the actual switching power and the preset combined maximum demand threshold to obtain the demand deviation value.

[0042] In this embodiment, a dual-circuit refers to two independent power supply lines connecting the coal mine microgrid to the upper-level public power grid. Each of these lines is equipped with an independent transformer and metering device. The active power at the metering point refers to the actual active power value flowing from the upper-level power grid into the coal mine microgrid, measured at each metering point of the dual-circuit. Each circuit has its own measured active power value at the metering point. The total load power represents the sum of active power currently drawn by the coal mine microgrid from the upper-level power grid, reflecting the power demand of the entire coal mine microgrid on the external power grid. The output power represents the actual active power value currently transmitted from the gas generator set to the coal mine microgrid, which is self-generated and self-consumed within the coal mine microgrid. The actual exchange power represents the net power exchange value between the coal mine microgrid and the upper-level power grid, reflecting the actual power that needs to be drawn from or sent to the grid after deducting internal generation. The combined maximum demand threshold refers to the maximum demand benchmark value agreed upon by the coal mining enterprise and the power supply enterprise for combined dual-circuit billing, which serves as the basis for demand charge calculation. Demand deviation refers to the difference between the actual exchange power and the combined maximum demand threshold. This difference reflects the degree of deviation of the current power consumption from the agreed demand benchmark.

[0043] Specifically, the active power measurements at the junctions of loops 1 and 2 in the dual-loop system are obtained separately. These two power values ​​are then added together, and the sum represents the total load power currently drawn by the coal mine microgrid from the upper-level grid. Simultaneously, the current output power of the gas generator set is obtained, representing the power supplied by the coal mine microgrid's own power generation. The calculated total load power is subtracted from the gas generator set's output power; the difference is the actual exchange power, reflecting the net demand of the coal mine microgrid for power exchange with the upper-level grid after deducting its own power generation. The pre-set maximum combined demand threshold value is read from the system configuration parameters; this threshold value is determined according to the power supply contract. The calculated actual exchange power is subtracted from the maximum combined demand threshold value; the difference is the demand deviation value. When the actual exchange power is greater than the maximum combined demand threshold, the demand deviation value is positive, indicating that the current power drawn from the grid exceeds the agreed benchmark. When the actual exchange power is less than the maximum combined demand threshold, the demand deviation value is negative, indicating that the current power drawn is lower than the agreed benchmark and there is a demand margin.

[0044] Step 104: When the demand deviation value is greater than the deviation dead zone width, calculate the difference between the demand deviation value and the deviation dead zone width to obtain the target compensation power.

[0045] In the embodiments of this application, the target compensation power refers to the power value that needs to be compensated by the coordinated action of the energy storage system and the flexible interconnection device in order to bring the demand deviation value back to the deviation dead zone width range. The positive or negative value of this value indicates the direction of compensation. A positive value indicates that the power supply to the microgrid needs to be increased or the power supply to the grid needs to be reduced, and a negative value indicates that the power supply to the microgrid needs to be reduced or the power supply to the grid needs to be increased.

[0046] Specifically, the absolute value of the demand deviation is calculated to obtain its absolute amplitude. This absolute amplitude is then compared with the deviation dead zone width. When the absolute amplitude of the demand deviation is less than or equal to the deviation dead zone width, the current demand deviation is considered within an acceptable range, and no power adjustment is required. In this case, the target compensation power is not calculated, and subsequent power decomposition and control steps are not initiated, maintaining the current operating state of the energy storage system and flexible interconnection devices. When the absolute amplitude of the demand deviation is greater than the deviation dead zone width, the current demand deviation is considered to exceed the acceptable range, requiring power compensation adjustment. In this case, the absolute amplitude of the demand deviation is subtracted from the deviation dead zone width, and the resulting difference is the power amplitude required to compensate for the excess dead zone. The sign information of the demand deviation value is retained, and the calculated power amplitude is combined with this sign to obtain a directional target compensation power value. For example, when the demand deviation is positive 80 kW and the deviation dead zone width is 50 kW, the target compensation power is calculated as 80 minus 50, which equals positive 30 kW. This positive value indicates that 30 kW of power needs to be supplemented to the coal mine microgrid through energy storage discharge or line power transfer to reduce the amount of electricity drawn from the upper-level grid. When the demand deviation is negative 70 kW and the deviation dead zone width is 50 kW, the target compensation power is calculated as the absolute value of negative 70 minus 50, retaining the negative sign, resulting in negative 20 kW. This negative value indicates that 20 kW of power needs to be absorbed through energy storage charging or line power transfer to increase the amount of electricity sent to the upper-level grid or reduce the amount of electricity drawn from it.

[0047] Step 105: Based on the fluctuation classification corresponding to the state of charge and fluctuation intensity index, the target compensation power is decomposed into energy storage compensation component and line mutual compensation component.

[0048] In this embodiment, fluctuation classification refers to the classification of the fluctuation state of the gas generator set's output power into different levels based on the magnitude of the fluctuation intensity index. These typically include a stable level, a warning level, and a severe level, reflecting the severity of the current power fluctuation. The energy storage compensation component represents the portion of the target compensation power borne by the energy storage system through charging or discharging operations. When this component is positive, the energy storage system performs a discharging operation to supply power to the microgrid; when this component is negative, the energy storage system performs a charging operation to absorb energy from the microgrid. The line mutual assistance compensation component represents the portion of the target compensation power borne by the flexible interconnection device through power transfer operations between two circuits. This component reflects the ability of the two circuits to mutually support each other and achieve load balancing.

[0049] Specifically, the fluctuation intensity index is compared with a preset set of fluctuation intensity thresholds, and the corresponding fluctuation classification is determined based on the range in which the index falls. Simultaneously, the state of charge (SOC) value of the energy storage system is acquired to determine if it falls within a preset safe charging / discharging range, typically set between 30% and 90%. When the SOC is within the safe charging / discharging range and the fluctuation classification is determined to be stable or warning level, the entire target compensation power is assigned to the energy storage compensation component, while the line mutual compensation component is set to zero. In this case, the energy storage system alone undertakes all power compensation tasks. When the SOC exceeds the safe charging / discharging range, or the fluctuation classification is determined to be severe level, power compensation needs to be shared by the energy storage system and flexible interconnection devices. At this time, the rated capacity and current actual load power of each transformer in the dual-circuit are acquired, and the available capacity margin of each circuit is calculated by subtracting the current actual load power from the rated capacity of the transformer in each circuit. This margin reflects the circuit's ability to carry additional power. The margin ratio is calculated based on the available capacity margins of each of the two circuits. Simultaneously, the maximum available charging and discharging power of the energy storage system under the current state of charge is obtained, which is constrained by upper and lower limits of the state of charge. Based on the margin ratio and the maximum available charging and discharging power of the energy storage system, the target compensation power is proportionally allocated to obtain the specific values ​​of the energy storage compensation component and the line mutual compensation component.

[0050] Step 106: Control the energy storage system to perform charging and discharging according to the energy storage compensation component, and control the flexible interconnection device to perform power transfer between the two circuits according to the line mutual compensation component, so that the demand deviation value is less than or equal to the deviation dead zone width.

[0051] In this embodiment, charging and discharging refers to a bidirectional energy conversion process in which the energy storage system absorbs electrical energy and stores it in the battery pack, or releases the electrical energy stored in the battery pack. During charging, the energy storage system acts as a load, absorbing power from the microgrid; during discharging, the energy storage system acts as a power source, supplying power to the microgrid. Power transfer refers to the transfer and allocation of power between the two circuits through flexible interconnection devices, transferring a portion of the power from the circuit with a heavier load to the circuit with a lighter load, or vice versa, thereby achieving power balance and mutual support between the two circuits.

[0052] Specifically, based on the value and direction of the energy storage compensation component, corresponding charging and discharging control commands are generated. When the energy storage compensation component is positive, the control command is set to discharge mode and specifies the discharge power; when the energy storage compensation component is negative, the control command is set to charging mode and specifies the charging power. Simultaneously, based on the value and direction of the line mutual compensation component, corresponding power transfer control commands are generated. These commands include the direction and magnitude of power transfer, specifying from which loop to which loop the power is transferred. The generated charging and discharging control commands are synchronously sent to the converter control unit of the energy storage system via the communication network, and the power transfer control command is simultaneously sent to the control system of the flexible interconnection device. The two control commands are executed collaboratively to achieve power compensation. After the energy storage system and the flexible interconnection device perform power compensation operations, the current active power at the dual-loop points and the current output power data of the gas generator set are re-acquired. The current active power at the dual-loop points is summed to obtain the current total load power. Subtracting the current output power yields the corrected actual exchange power. This corrected actual exchange power is then subtracted from the combined maximum demand threshold to calculate the corrected demand deviation value. The absolute magnitude of the corrected demand deviation value is compared with the deviation dead zone width. If the corrected demand deviation value is still greater than the deviation dead zone width, the target compensation power is recalculated using the corrected demand deviation value as a new input, and power decomposition and compensation control are executed again. This process is iterated until the corrected demand deviation value is less than or equal to the deviation dead zone width, thus achieving closed-loop regulation control of the demand deviation.

[0053] In one possible implementation, the energy storage system is controlled to perform charging and discharging according to the energy storage compensation component, and the flexible interconnection device is controlled to perform power transfer between the two circuits according to the line mutual assistance compensation component, so that the demand deviation value is less than or equal to the deviation dead zone width. Specifically, this includes steps 1061-1063, as follows: Step 1061: Generate charging and discharging commands corresponding to the energy storage compensation component, and power transfer commands corresponding to the line mutual compensation component.

[0054] In this embodiment, the energy storage compensation component represents the portion of the target compensation power allocated to the energy storage system. The value and sign of this component determine the charging / discharging direction and power magnitude of the energy storage system. The charging / discharging command is a control command issued to the energy storage system to control its charging or discharging operations. This command includes charging / discharging mode selection and power setpoint information; for example, a command stating "discharge mode power 50 kW" indicates that the energy storage system is controlled to discharge 50 kW to the microgrid. The line mutual assistance compensation component represents the portion of the target compensation power allocated to the flexible interconnect device. This component reflects the ability to achieve load mutual assistance through power transfer between the two loops. The power transfer command is a control command issued to the flexible interconnect device to control its power transfer operations between the two loops. This command includes transfer direction and transfer power magnitude information; for example, a command stating "transfer 30 kW from loop 1 to loop 2."

[0055] Specifically, the energy storage compensation component value obtained through power decomposition calculation is acquired, and its sign is determined. When the energy storage compensation component is positive, a discharge mode charge / discharge command is generated, with the power setpoint in the command set to the absolute value of the energy storage compensation component, instructing the energy storage system to release electrical energy to the coal mine microgrid according to this power value. When the energy storage compensation component is negative, a charging mode charge / discharge command is generated, with the power setpoint in the command set to the absolute value of the energy storage compensation component, instructing the energy storage system to absorb electrical energy from the coal mine microgrid according to this power value. Simultaneously, the line mutual assistance compensation component value is acquired, and its sign is determined to determine the direction of power transfer. When the line mutual assistance compensation component is positive, a power transfer command is generated to transfer power from loop 1 to loop 2, or from a heavily loaded loop to a lightly loaded loop, with the transfer power value in the command set to the absolute value of the line mutual assistance compensation component. When the line mutual assistance compensation component is negative, a power transfer command in the opposite direction is generated. The generated charge / discharge commands and power transfer commands are encapsulated into data packets conforming to the device communication protocol format, and are prepared to be sent to the corresponding execution devices through the communication network.

[0056] Step 1062: Simultaneously send charging and discharging commands to the energy storage system and send power transfer commands to the flexible interconnection device to perform power compensation; after performing power compensation, obtain the current active power and current output power, and calculate the corrected demand deviation value based on the current active power and current output power.

[0057] In this embodiment, the charge / discharge command refers to the control command used to control the energy storage system to perform charging or discharging operations. This command includes parameter information such as operating mode and power setpoint. The energy storage system refers to a device for storing and releasing electrical energy, consisting of a battery pack, converter, and energy management system. The power transfer command is a control command used to control the flexible interconnection device to perform power transfer operations between the two loops. This command includes parameters for transfer direction and power magnitude. The flexible interconnection device refers to a power electronic device installed between the two loops to achieve flexible bidirectional power transfer. Power compensation refers to the process of adjusting demand deviation through the coordinated action of the energy storage system and the flexible interconnection device. The current active power refers to the real-time measured value of active power at each point of the two loops, re-acquired after power compensation. The current output power represents the real-time measured value of the output power of the gas generator set, re-acquired after power compensation. The corrected demand deviation value refers to the demand deviation value recalculated based on the current active power and current output power after the power compensation operation. This value reflects the demand deviation state after the power compensation operation.

[0058] Specifically, the generated charge / discharge commands and power transfer commands are sent to the energy storage system and the flexible interconnect device via the communication network. The two commands are executed synchronously to ensure that both systems respond to power compensation tasks simultaneously. Upon receiving the charge / discharge command, the energy storage system's converter control unit adjusts the converter's operating state according to the mode parameters and power setpoints in the command, performing charging or discharging operations. Upon receiving the power transfer command, the flexible interconnect device's control system adjusts the converter's power transmission amount according to the transfer direction and power parameters in the command, performing power transfer between the two loops. After a complete adjustment cycle of power compensation operations by the energy storage system and the flexible interconnect device, the data acquisition process is restarted. The current active power values ​​at the cutoff points of loop 1 and loop 2 are collected from the power measurement devices of both loops, and the current output power value is collected from the gas generator set's monitoring system. The current total load power is obtained by summing the active power at the current gate of the dual loop. The current output power is then subtracted from the current total load power to obtain the corrected actual switching power. The difference between the corrected actual switching power and the combined maximum demand threshold is the corrected demand deviation value. This value reflects the improvement of the demand deviation after performing a power compensation operation.

[0059] Step 1063: If the corrected demand deviation value is greater than the deviation dead zone width, then iteratively execute the power compensation step based on the corrected demand deviation value until the corrected demand deviation value is less than or equal to the deviation dead zone width.

[0060] In this embodiment, the corrected demand deviation value refers to the demand deviation value recalculated after performing a power compensation operation. This value reflects the new degree of deviation between the actual exchange power after power compensation and the combined maximum demand threshold. The deviation dead zone width refers to the threshold for judging whether the demand deviation is within the acceptable range. When the absolute value of the demand deviation value is less than or equal to this width, the deviation is considered to be within the acceptable range. Iterative execution represents a cyclical process of repeatedly performing power compensation calculations and control. Each iteration performs a new round of compensation actions based on the latest deviation value after the previous compensation. Power compensation represents the complete process of adjusting the demand deviation through the coordinated action of the energy storage system and flexible interconnection devices, including steps such as target compensation power calculation, power decomposition, command generation, and equipment control.

[0061] Specifically, the absolute value of the corrected demand deviation is calculated to obtain its absolute amplitude, which is then compared with the deviation dead zone width. When the absolute amplitude of the corrected demand deviation is less than or equal to the deviation dead zone width, the current demand deviation is considered to be within an acceptable range, and subsequent power compensation operations are not performed, ending the current demand control process. When the absolute amplitude of the corrected demand deviation is greater than the deviation dead zone width, the current demand deviation is considered to still exceed the acceptable range, requiring continued power compensation adjustment. In this case, the corrected demand deviation is used as a new input parameter, and the difference between the demand deviation and the deviation dead zone width is recalculated to obtain a new target compensation power. Based on the new target compensation power, combined with the current energy storage system's state of charge and the fluctuation intensity index corresponding to the fluctuation classification, a new power decomposition calculation is performed to obtain new energy storage compensation components and line mutual assistance compensation components. Corresponding new charge / discharge commands and new power transfer commands are generated and sent to the energy storage system and flexible interconnection devices to execute a new round of power compensation actions. After a new round of power compensation is completed, the current active power and current output power are collected again, and the new corrected demand deviation value is calculated. The above cycle of judgment, calculation, decomposition, control and collection is repeated until the corrected demand deviation value obtained after a certain iteration is less than or equal to the deviation dead zone width, thus realizing closed-loop iterative regulation and control of demand deviation.

[0062] In one possible implementation, the flexible interconnection device is controlled to perform power transfer between the two circuits according to the line mutual compensation component, specifically including steps 1064-1066, as follows: Step 1064: Obtain the voltage and frequency parameters of the public power grid to which the coal mine microgrid is connected; when the voltage or frequency parameters are detected to exceed the preset safe operating range, or when a power failure occurs in the dual circuit, stop the steps of calculating the demand deviation value and compensating for the actual exchange power, and generate an emergency backup control command.

[0063] In this embodiment, the public power grid refers to the upstream power system to which the coal mine microgrid is connected. This grid provides power to the coal mine microgrid and receives power feedback from it. The voltage parameter represents the measured voltage amplitude of the public power grid at the connection point of the coal mine microgrid. This parameter reflects the magnitude of the grid voltage; for example, the nominal voltage parameter of a 10 kV dual-circuit is 10 kV. The frequency parameter represents the measured AC frequency of the public power grid. This parameter reflects the stability of the grid frequency; the nominal frequency of the Chinese power grid is 50 Hz. The safe operating range refers to the normal range within which the voltage and frequency parameters are allowed to fluctuate. The voltage parameter is typically allowed to fluctuate within ±7% of the nominal value, and the frequency parameter is typically allowed to fluctuate within ±0.2 Hz of the nominal value. Power outage refers to the state where one or both lines in the dual-circuit stop supplying power due to a fault or other reason. The demand deviation value represents the difference between the actual exchange power and the combined maximum demand threshold, reflecting the degree of deviation in demand management. The actual exchange power represents the net power exchange value between the coal mine microgrid and the public power grid. Emergency standby control commands are control commands generated when a grid anomaly or power failure is detected, which are used to activate the emergency power supply mode. These commands instruct energy storage systems and flexible interconnection devices to switch to islanded operation mode to supply power to critical loads.

[0064] Specifically, voltage and frequency parameters are collected in real time from voltage and frequency measurement devices deployed at the public power grid access point. The collected voltage parameter values ​​are compared with the preset upper and lower limits of the safe voltage operating range to determine if the voltage parameter exceeds the safe range. Similarly, the collected frequency parameter values ​​are compared with the preset upper and lower limits of the safe frequency operating range to determine if the frequency parameter exceeds the safe range. Simultaneously, the power supply status of each circuit is monitored through dual-circuit circuit breaker status monitoring devices to determine if a power outage has occurred. When a voltage parameter or frequency parameter exceeds the safe operating range, or a power outage occurs in either of the dual circuits, the ongoing demand deviation calculation process is immediately stopped, halting all steps related to actual power compensation, including stopping target compensation power calculation, power decomposition, and compensation command issuance. After stopping the demand management function, an emergency backup control command is immediately generated. This command includes a command to switch to islanded operation mode and a list of target loads requiring guaranteed power supply. This emergency backup control command is then sent to the energy storage system and flexible interconnection devices via the communication network, activating the emergency power supply response mechanism.

[0065] Step 1065: Based on the emergency backup control command, control the energy storage system and flexible interconnection device to supply power to the pre-set target load.

[0066] In this embodiment, the emergency backup control command refers to the control command issued to activate the emergency power supply mode when an anomaly or power outage of the public power grid is detected. This command includes operating mode switching parameters and power supply object information. The energy storage system refers to an energy storage and release device composed of battery packs and converters, capable of rapidly responding to power supply demands, and used as a backup power source in emergency situations. The flexible interconnection device refers to power electronic equipment installed between two circuits, enabling power distribution and load isolation between the two circuits in emergency situations. The target load indicates important load equipment or load areas that require priority power supply in emergency situations. These loads typically include critical equipment such as ventilation systems, drainage systems, and monitoring systems in coal mines. For example, the target load list may include a 1000 kW main ventilation fan load and an 800 kW main drainage pump load.

[0067] Specifically, upon receiving the emergency backup control command, the energy storage system's energy management system immediately responds to the mode switching command in the command, switching the energy storage system's operating mode from grid-connected mode to islanded power supply mode. Based on the target load information provided in the command, the energy storage system calculates the total power demand required by the target load and adjusts the converter's output power to match the target load's power demand. Upon receiving the emergency backup control command, the flexible interconnect device's control system adjusts the converter's operating state according to the command parameters. If a single circuit of the public grid fails, the power from the active circuit is transferred to the failed circuit through the flexible interconnect device. If both circuits fail, they work together with the energy storage system to jointly supply power to the target load. The flexible interconnect device adjusts the direction and magnitude of power transmission based on the target load's location within the two circuits to ensure a continuous power supply to the target load. During emergency power supply, the energy storage system and the flexible interconnect device monitor their respective output power and the actual power demand of the target load in real time, dynamically adjusting their respective output power allocation to maintain the stability of the target load's power supply. During emergency power supply, the state of charge of the energy storage system is continuously monitored. When the state of charge drops to the preset lower threshold, the load priority management mechanism is activated, and secondary loads are cut off step by step according to the preset load importance level to ensure that the most important target loads can continue to be powered.

[0068] Step 1066: After the voltage and frequency parameters are detected to have returned to the safe operating range and the dual-circuit power supply is restored, obtain the current target active power and target output power, and based on the target active power and target output power, restore the steps of calculating the demand deviation value and compensating for the actual switching power.

[0069] In this embodiment, the voltage parameter represents the voltage amplitude measured at the access point of the public power grid at the coal mine microgrid, reflecting the grid voltage level. The frequency parameter represents the measured AC frequency of the public power grid, reflecting the grid frequency stability. The safe operating range refers to the normal range of allowable fluctuations in the voltage and frequency parameters; voltage and frequency within this range indicate normal grid operation. A dual-circuit refers to the two power supply lines connecting the coal mine microgrid to the public power grid; power restoration indicates the re-establishment of power transmission in the lost circuit. The target active power represents the active power measurement re-collected from each point of the dual-circuit after the grid is restored to normal, reflecting the power intake of the coal mine microgrid from the grid after power restoration. The target output power represents the output power measurement re-collected from the gas generator set after the grid is restored to normal, reflecting the current output of the generator set. The demand deviation value represents the difference between the actual exchange power and the combined maximum demand threshold. The actual exchange power represents the net power exchange value between the coal mine microgrid and the public power grid.

[0070] Specifically, during emergency power supply, the voltage and frequency parameters of the public power grid are continuously monitored. The real-time voltage parameters are compared with the upper and lower limits of the safe operating range to determine if the voltage has returned to a safe range. Similarly, the real-time frequency parameters are compared with the upper and lower limits of the safe operating range to determine if the frequency has returned to a safe range. Simultaneously, the power supply status of each circuit is monitored using a dual-circuit circuit breaker status monitoring device to determine if the lost circuit has been restored. When the voltage and frequency parameters are both back to a safe operating range, and both circuits have resumed normal power supply, the switchover process from emergency mode to normal operation mode is initiated. The target active power values ​​for circuits 1 and 2 are re-acquired from the dual-circuit gate power measurement devices, and the target output power values ​​are re-acquired from the gas generator monitoring system. The acquired dual-circuit target gate active power values ​​are summed to obtain the target total load power. The target output power is subtracted from the target total load power to obtain the restored actual exchange power. The demand deviation value is obtained by subtracting the combined maximum demand threshold from this actual exchange power. Based on the recalculated demand deviation value, the complete demand management process is restored, including demand deviation value calculation, fluctuation intensity analysis, target compensation power calculation, power decomposition, and coordinated compensation control of energy storage system and flexible interconnection device, so that the coal mine microgrid can be restored to the normal demand optimization operation state.

[0071] In the above embodiments, precise adjustment of demand deviation and power balance management are achieved through the coordinated control of energy storage compensation components and line mutual compensation components. To further improve the scientific nature of power decomposition and the rationality of resource allocation, and to enhance the system's allocation accuracy and dynamic adaptability under different energy storage states and grid fluctuation conditions, this application also provides a dynamic demand coordinated control method for coal mine microgrids. This method establishes a hierarchical model for power fluctuation level identification by integrating the correlation determination of fluctuation intensity threshold and fluctuation level, constructs a judgment system for state-of-charge safety assessment by combining a preset safe charging and discharging range, and uses an available capacity margin proportional allocation algorithm to achieve dynamic intelligent decomposition of target compensation power. This enables the system to scientifically and rationally allocate energy storage compensation components and line mutual compensation components based on a comprehensive consideration of the energy storage system's state of charge and grid power fluctuation characteristics, reflecting the optimal resource scheduling strategy under different operating conditions. The following is a detailed explanation of the appendix... Figure 2 Another dynamic demand coordinated control method for coal mine microgrids is described in the embodiments of this application: Please see Figure 2 This is another flowchart illustrating a different dynamic demand coordinated control method for coal mine microgrids in this application embodiment.

[0072] Step 201: Obtain the preset set of fluctuation intensity thresholds, compare the fluctuation intensity index with the set of fluctuation intensity thresholds of Yisuhe River, and determine the fluctuation level corresponding to the fluctuation intensity index. The fluctuation level includes stable level, warning level and severe level.

[0073] In this embodiment, the fluctuation intensity threshold set refers to a set of threshold data used to classify different fluctuation levels. This set includes multiple threshold boundary values ​​to distinguish between three fluctuation levels: stable, warning, and severe. For example, a threshold set of 10 kW and 30 kW indicates that 0 to 10 kW is the stable range, 10 to 30 kW is the warning range, and above 30 kW is the severe range. The fluctuation intensity index refers to a statistical parameter value calculated using standard deviation to quantify the degree of power fluctuation in a gas generator set. The larger the index value, the more severe the power fluctuation. The fluctuation grading is used to represent the power fluctuation level category based on the magnitude of the fluctuation intensity index. This grading reflects the severity of the current power fluctuation. The stable level refers to the fluctuation level corresponding to a low fluctuation intensity index value, indicating slight power fluctuation. The warning level refers to the fluctuation level corresponding to a medium fluctuation intensity index value, indicating significant power fluctuation requiring attention. The severe level refers to the fluctuation level corresponding to a fluctuation intensity index exceeding a higher threshold, indicating severe power fluctuation.

[0074] Specifically, the system reads a set of fluctuation intensity thresholds from its preset configuration parameter storage area. This set includes a first threshold to distinguish between stable and warning levels, and a second threshold to distinguish between warning and severe levels. The calculated current fluctuation intensity index value is obtained and compared with the first threshold in the threshold set. When the fluctuation intensity index is less than the first threshold, the fluctuation is classified as stable. When the fluctuation intensity index is greater than or equal to the first threshold, the value is compared with the second threshold. When the fluctuation intensity index is greater than or equal to the first threshold and less than the second threshold, the fluctuation is classified as warning level. When the fluctuation intensity index is greater than or equal to the second threshold, the fluctuation is classified as severe level. The fluctuation classification result is recorded and used as the basis for subsequent power decomposition decisions. By comparing the fluctuation intensity index with the preset threshold set level by level, the system converts continuous numerical indicators into discrete classification categories, determining the severity level of the power fluctuation in the current period as stable, warning, or severe.

[0075] Step 202: Determine whether the state of charge is within the preset safe charging and discharging range; if the state of charge is within the preset safe charging and discharging range and the fluctuation level is stable or warning level, then the entire target compensation power is used as the energy storage compensation component, and the line mutual compensation component is zero; if the state of charge exceeds the preset safe charging and discharging range, or the fluctuation level is severe level, then according to the available capacity margin ratio of the dual circuit, the target compensation power is decomposed into the energy storage compensation component and the line mutual compensation component.

[0076] In this embodiment, the state of charge (SOC) represents the percentage of electrical energy currently stored in the battery pack of the energy storage system relative to its rated capacity, typically ranging from 0 to 100%. The safe charge / discharge range refers to the SOC range within which the energy storage system is allowed to perform normal charge / discharge operations. This range is typically set between 20% and 80% to protect the battery; for example, an SOC between 30% and 75% indicates a safe charge / discharge range. The target compensation power represents the total power required to compensate for demand deviation adjustment; the sign of this value reflects the direction of compensation. The energy storage compensation component refers to the portion of the power allocated from the target compensation power to the energy storage system, determining the magnitude of the energy storage system's charge / discharge power. The line mutual compensation component represents the portion of the power allocated from the target compensation power to the flexible interconnect device, determining the magnitude of power transfer between the two loops. The available capacity margin ratio refers to the proportion of each loop's available capacity margin to the total available capacity margin of the two loops, reflecting the distribution of each loop's power transfer capability.

[0077] Specifically, the current state of charge (SOC) value of the energy storage system is obtained, and the upper and lower thresholds of the safe charging and discharging range are read from preset parameters. The SOC value is compared with the lower and upper thresholds of the safe charging and discharging range to determine whether the SOC is within the range. The current fluctuation classification result is obtained, and it is determined whether the classification is stable, warning, or severe. When the SOC value is greater than or equal to the lower threshold and less than or equal to the upper threshold, i.e., the SOC is within the safe charging and discharging range, the fluctuation classification is further determined. If the fluctuation classification is stable or warning, the target compensation power value is assigned entirely to the energy storage compensation component, and the value of the line mutual compensation component is set to zero, indicating that the energy storage system will bear the entire compensation task. If the SOC value is less than the lower threshold or greater than the upper threshold, i.e., the SOC exceeds the safe charging and discharging range, or although the SOC is within the safe range, the fluctuation classification is severe, the power decomposition process is initiated. Obtain the available capacity margin value of each circuit in the dual circuit, calculate the proportion of the available capacity margin of each circuit to the total available capacity margin of the dual circuit, and allocate the target compensation power according to this proportion and the maximum available charging and discharging power of the energy storage system to obtain the specific values ​​of the energy storage compensation component and the line mutual compensation component.

[0078] In one possible implementation, the target compensation power is decomposed into an energy storage compensation component and a line mutual assistance compensation component based on the available capacity margin ratio of the dual circuits, specifically including steps 2021-2022, as follows: Step 2021: Obtain the rated capacity of the transformer in the dual circuit and the current actual load power; calculate the difference between the rated capacity of the transformer and the current actual load power to obtain the available capacity margin of the dual circuit.

[0079] In this embodiment, a dual-circuit refers to two independent power supply lines connecting the coal mine microgrid to the upper-level public power grid, with each circuit equipped with an independent transformer and metering device. The rated capacity of the transformer represents the maximum power transmission capacity designed for each transformer in the dual-circuit, expressed in kilovolt-amperes (kVA) or megavolt-amperes (MVA). For example, a transformer with a rated capacity of 3150 kVA indicates that it can transmit a maximum of 3150 kVA of apparent power. The current actual load power refers to the measured value of the active power currently carried by each circuit in the dual-circuit system, reflecting the real-time load status of each circuit. Available capacity margin represents the difference between the rated capacity of the transformer and the current actual load power. This difference reflects the capacity of each circuit to increase its load. For example, if the rated capacity of the transformer is 3000 kW and the current actual load power is 2200 kW, the available capacity margin is 800 kW.

[0080] Specifically, the rated capacity of the transformer in loop 1 and the rated capacity of the transformer in loop 2 are read from the configuration parameters of the dual-loop circuit. Real-time measurements of the current actual load power of loop 1 and loop 2 are collected using the power measurement devices in both loops. The difference between the rated capacity of the transformer in loop 1 and the current actual load power is the available capacity margin of loop 1. Similarly, the difference between the rated capacity of the transformer in loop 2 and the current actual load power is the available capacity margin of loop 2. These two calculated available capacity margin values ​​are recorded and saved, representing the additional load power that loop 1 and loop 2 can handle, respectively. A larger available capacity margin indicates a stronger remaining transmission capacity for the loop, allowing it to handle more power transfer tasks; a smaller available capacity margin indicates a weaker remaining transmission capacity and limited power transfer capacity. The available capacity margin values ​​of the dual loops are used as the basis for subsequent calculations of margin ratios and power allocation.

[0081] Step 2022: Calculate the margin ratio based on the available capacity margin of the dual circuits; based on the margin ratio and the maximum available charging and discharging power of the energy storage system, proportionally allocate the target compensation power to obtain the energy storage compensation component and the line mutual compensation component.

[0082] In this embodiment, the margin ratio refers to the proportion of each loop's available capacity margin to the total available capacity margin of the two loops. This ratio reflects the capacity allocation relationship of each loop when undertaking power transfer. For example, if the available capacity margin of loop 1 is 800 kW and the available capacity margin of loop 2 is 1200 kW, the margin ratio of loop 1 is 0.4 and the margin ratio of loop 2 is 0.6. The maximum available charge / discharge power represents the maximum charging or discharging power capability that the energy storage system can provide under its current state. This power is constrained by factors such as the energy storage system's state of charge, the inverter's rated power, and the battery's health status. Proportional allocation refers to the reasonable division of the target compensation power between the energy storage system and the flexible interconnect device based on the margin ratio and the energy storage system's capacity. This allocation ensures that each device collaboratively completes the compensation task within its capacity.

[0083] Specifically, the available capacity margins of loop 1 and loop 2 are summed to obtain the total available capacity margin of both loops. The available capacity margin of loop 1 is divided by the total available capacity margin of both loops to obtain the margin ratio of loop 1. The available capacity margin of loop 2 is also divided by the total available capacity margin of both loops to obtain the margin ratio of loop 2. The maximum available charge / discharge power corresponding to the current state of charge is obtained from the energy management unit of the energy storage system; this value is dynamically adjusted according to the state of charge. The absolute value of the target compensation power is compared with the maximum available charge / discharge power of the energy storage system. When the absolute value of the target compensation power is less than or equal to the maximum available charge / discharge power, the entire target compensation power is allocated to the energy storage system as the energy storage compensation component, and the line mutual compensation component is set to zero. When the absolute value of the target compensation power is greater than the maximum available charge / discharge power, the maximum available charge / discharge power is used as the absolute value of the energy storage compensation component, and the sign of the energy storage compensation component is determined according to the sign of the target compensation power. The difference between the target compensation power and the energy storage compensation component is used as the line mutual compensation component. Through the above proportional allocation calculation, the target compensation power is reasonably decomposed between the energy storage compensation component and the line mutual compensation component, ensuring that the energy storage system operates within its capacity range, and the excess is borne by the flexible interconnection device through dual-loop power transfer.

[0084] The following describes a dynamic demand-coordinated control system for a coal mine microgrid from a hardware processing perspective, as described in the embodiments of this invention. Please refer to [link / reference]. Figure 3 This is a schematic diagram of the structure of a dynamic demand coordinated control system for a coal mine microgrid in an embodiment of this application.

[0085] It should be noted that, Figure 3 The structure of the dynamic demand coordination control system for a coal mine microgrid shown is merely an example and should not impose any limitations on the functionality and scope of application of the embodiments of the present invention.

[0086] like Figure 3 As shown, a dynamic demand coordination control system for a coal mine microgrid includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage section 308 into a random access memory (RAM) 303, such as executing the methods described in the above embodiments. The RAM 303 also stores various programs and data required for system operation. The CPU 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0087] The following components are connected to I / O interface 305: input section 306 including audio input devices, push-button switches, etc.; output section 307 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 308 including a hard disk, etc.; and communication section 309 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 309 performs communication processing via a network such as the Internet. Drive 310 is also connected to I / O interface 305 as needed. Removable media 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 310 as needed so that computer programs read from them can be installed into storage section 308 as needed.

[0088] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 309, and / or installed from removable medium 311. When the computer program is executed by central processing unit (CPU) 301, it performs the various functions defined in the present invention.

[0089] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0090] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those shown in the drawings.

[0091] Specifically, the dynamic demand coordination control system for a coal mine microgrid in this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, it implements the dynamic demand coordination control method for a coal mine microgrid provided in the above embodiment.

[0092] In another aspect, the present invention also provides a computer-readable storage medium, which may be included in the dynamic demand coordination control system for coal mine microgrids described in the above embodiments; or it may exist independently and not incorporated into the dynamic demand coordination control system for coal mine microgrids. The storage medium carries one or more computer programs, which, when executed by a processor of the dynamic demand coordination control system for coal mine microgrids, enable the dynamic demand coordination control system to implement the dynamic demand coordination control method for coal mine microgrids based on encrypted data transmission via the Internet of Things provided in the above embodiments.

Claims

1. A method for dynamic demand coordination control of a coal mine microgrid, characterized in that, The method includes: The active power at the junction of the two circuits in the coal mine microgrid, the output power of the gas generator set, and the state of charge of the energy storage system are obtained. The two circuits are equipped with a flexible interconnection device. The fluctuation intensity index is calculated based on the output power over multiple consecutive sampling periods, and the corresponding deviation dead zone width is determined based on the fluctuation intensity index. The actual switching power is calculated based on the active power at the gate and the output power, and the actual switching power is compared with the preset maximum combined demand threshold to obtain the demand deviation value. When the demand deviation value is greater than the deviation dead zone width, the difference between the demand deviation value and the deviation dead zone width is calculated to obtain the target compensation power; Based on the fluctuation classification corresponding to the state of charge and the fluctuation intensity index, the target compensation power is decomposed into energy storage compensation component and line mutual assistance compensation component. The energy storage system is controlled to perform charging and discharging according to the energy storage compensation component, and the flexible interconnection device is controlled to perform power transfer between the two circuits according to the line mutual assistance compensation component, so that the demand deviation value is less than or equal to the deviation dead zone width.

2. The method according to claim 1, characterized in that, The step of calculating the fluctuation intensity index based on the output power over multiple consecutive sampling periods, and determining the corresponding deviation dead zone width based on the fluctuation intensity index, includes: Extract the output power within multiple consecutive sampling periods to construct a rolling time window; Calculate the standard deviation of the output power within the rolling time window, and use the standard deviation as the fluctuation intensity index; Determine the preset fluctuation range to which the fluctuation intensity index belongs, and determine the fluctuation level for the current period. Based on the fluctuation classification query, a preset classification and dead zone mapping relationship is obtained to determine the corresponding deviation dead zone width, wherein the fluctuation classification and the deviation dead zone width are positively correlated.

3. The method according to claim 1, characterized in that, The step of calculating the actual switching power based on the active power at the gate and the output power, and comparing the actual switching power with a preset maximum combined demand threshold to obtain a demand deviation value includes: The total load power is obtained by summing the active power at the shut-off points of the two loops. The difference between the total load power and the output power is calculated to obtain the actual switching power; The difference between the actual switching power and the preset maximum combined demand threshold is calculated to obtain the demand deviation value.

4. The method according to claim 1, characterized in that, The fluctuation classification based on the state of charge and the fluctuation intensity index decomposes the target compensation power into an energy storage compensation component and a line mutual assistance compensation component, including: Obtain a preset set of fluctuation intensity thresholds, compare the fluctuation intensity index with the set of fluctuation intensity thresholds of the Yisu River, and determine the fluctuation level corresponding to the fluctuation intensity index. The fluctuation level includes a stable level, a warning level, and a severe level. Determine whether the state of charge is within a preset safe charging and discharging range; If the state of charge is within the preset safe charging and discharging range, and the fluctuation level is the stable level or the warning level, then the entire target compensation power will be used as the energy storage compensation component, and the line mutual compensation component will be zero. If the state of charge exceeds the preset safe charging and discharging range, or the fluctuation level is the severe level, then according to the available capacity margin ratio of the dual circuit, the target compensation power is decomposed into the energy storage compensation component and the line mutual compensation component.

5. The method according to claim 4, characterized in that, The step of decomposing the target compensation power into the energy storage compensation component and the line mutual assistance compensation component based on the available capacity margin ratio of the dual circuits includes: Obtain the rated capacity of the transformers in the dual circuit and the current actual load power; Calculate the difference between the rated capacity of the transformer and the current actual load power to obtain the available capacity margin of the dual circuit; Calculate the margin ratio based on the available capacity margin of the dual loops; Based on the margin ratio and the maximum available charging and discharging power of the energy storage system, the target compensation power is proportionally allocated to obtain the energy storage compensation component and the line mutual assistance compensation component.

6. The method according to claim 1, characterized in that, The control of the energy storage system to perform charging and discharging according to the energy storage compensation component, and the control of the flexible interconnection device to perform power transfer between the two circuits according to the line mutual assistance compensation component, so that the demand deviation value is less than or equal to the deviation dead zone width, includes: Generate charging and discharging commands corresponding to the energy storage compensation component, and power transfer commands corresponding to the line mutual compensation component; Simultaneously, the charging and discharging commands are sent to the energy storage system, and the power transfer commands are sent to the flexible interconnect device to perform power compensation; After performing power compensation, the current active power and current output power are obtained, and the corrected demand deviation value is calculated based on the current active power and current output power. If the corrected demand deviation value is greater than the deviation dead zone width, then the power compensation step is iteratively executed based on the corrected demand deviation value until the corrected demand deviation value is less than or equal to the deviation dead zone width.

7. The method according to claim 1, characterized in that, After the control of the flexible interconnection device to perform power transfer between the two circuits according to the line mutual compensation component, the method further includes: Obtain the voltage and frequency parameters of the public power grid to which the coal mine microgrid is connected; When the voltage parameter or the frequency parameter is detected to exceed the preset safe operating range, or when the dual circuit loses power, the steps of calculating the demand deviation value and compensating for the actual switching power are stopped, and an emergency backup control command is generated. Based on the emergency backup control command, the energy storage system and the flexible interconnection device are controlled to supply power to the pre-set target load; When the voltage and frequency parameters are detected to have returned to the safe operating range and the dual-circuit power supply is restored, the current target active power and target output power are obtained, and the steps of calculating the demand deviation value and compensating the actual switching power are resumed based on the target active power and target output power.

8. A dynamic demand-coordinated control system for a coal mine microgrid, characterized in that, The dynamic demand coordination control system for coal mine microgrids includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the dynamic demand coordination control system for coal mine microgrids to perform the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that, When the instruction is executed on the dynamic demand coordination control system of the coal mine microgrid, the dynamic demand coordination control system of the coal mine microgrid performs the method as described in any one of claims 1-7.

10. A computer program product, characterized in that, When the computer program product is run on the dynamic demand coordination control system of the coal mine microgrid, the dynamic demand coordination control system of the coal mine microgrid executes the method as described in any one of claims 1-7.