Community-oriented photovoltaic micro-grid supply and demand deviation rolling correction method

By collecting electricity consumption and photovoltaic supply data in the community photovoltaic microgrid, dividing the supply and demand direction segments, decomposing and correcting the reduction in coverage, and generating a rolling correction benchmark, the problem of unclear sources of supply and demand deviations is solved, and accurate identification and effective correction of supply and demand balance are achieved.

CN123117650APending Publication Date: 2026-11-17ZHEJIANG JIASHUO SMART ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611316885.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing technologies struggle to distinguish between the natural recovery and correction coverage sources of supply-demand discrepancies in community photovoltaic microgrids, leading to unclear sources of reduced correction execution and potentially causing misjudgments and ineffective corrections of supply-demand imbalances.

Method used

By collecting data on community electricity consumption, photovoltaic power supply, and the actual operating status of the execution process, the original supply-demand deviation, the correction execution amount, and the remaining supply-demand deviation are determined, forming a correction monitoring sequence. The natural recovery amount and correction coverage amount are divided according to the supply and demand direction segments, and the reduction amount of correction coverage is decomposed within the current effective correction interval to generate a rolling correction benchmark.

Benefits of technology

It enables accurate identification and segmented processing of supply and demand discrepancies, reduces misjudgments of supply and demand differences, lowers the occurrence of ineffective corrections, and ensures the continuity of supply and demand balance and the effectiveness of corrections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123117650A_ABST
    Figure CN123117650A_ABST
Patent Text Reader

Abstract

This invention discloses a rolling correction method for supply and demand deviations in community photovoltaic microgrids, specifically relating to the field of microgrid supply and demand control. It addresses the problem of distinguishing between natural recovery and correction coverage sources for remaining supply and demand deviations. By collecting data on community power consumption, photovoltaic power supply, and the actual operating status of the execution process, the original supply and demand deviation, correction execution amount, and remaining supply and demand deviation are determined, forming a correction monitoring sequence. Supply and demand direction segments are divided according to the original supply and demand deviation direction, determining the natural recovery amount and correction coverage amount. Within the current effective correction interval, the reduction in correction coverage is decomposed into natural replacement correction amount and deviation recurrence amount, and a continuous correction retention amount is determined. Based on the natural replacement correction amount, deviation recurrence amount, continuous correction retention amount, and remaining supply and demand deviation, a correction completion status is formed, generating a rolling correction benchmark consisting of a release record, a continuous correction portion, and a recorrection portion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of microgrid supply and demand control, and more specifically, to a method for rolling correction of supply and demand deviations for community photovoltaic microgrids. Background Technology

[0002] Community photovoltaic microgrids utilize photovoltaic power to supply electricity to the community, and an execution mechanism responsible for supply-demand correction adjusts the power difference between photovoltaic supply and community electricity consumption. Affected by factors such as changes in sunlight and community electricity consumption, the initial supply-demand deviation will change over a continuous rolling cycle. Current processing methods typically collect the remaining supply-demand deviation after correction execution and adjust the correction execution amount and the correction benchmark for the next rolling cycle based on changes in this remaining deviation.

[0003] However, the reduction in the remaining supply-demand imbalance may stem from either the gradual restoration of matching between photovoltaic supply and community electricity consumption, or from the continued coverage of the original supply-demand imbalance by the correction execution volume. Especially when the correction execution volume gradually decreases, it is difficult to determine whether the reduced correction coverage has been replaced by the natural recovery of supply and demand, or to identify the supply-demand imbalance that re-emerges due to the withdrawal of the correction effect, based solely on the change in net power after control. This can easily lead to the premature release of the correction portion that still needs to be maintained, or the continued participation of the portion that has already naturally recovered in the rolling correction. Therefore, it is necessary to process the continuous changes in the original supply-demand imbalance, the correction execution volume, and the remaining supply-demand imbalance to distinguish the different sources of the reduction in correction coverage. Summary of the Invention

[0004] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a rolling correction method for supply and demand deviations in community photovoltaic microgrids, addressing the problem of difficulty in distinguishing between natural recovery and correction coverage sources for remaining supply and demand deviations. By collecting data on community power consumption, photovoltaic power supply, and the actual operating status of the execution process, the original supply and demand deviation, correction execution amount, and remaining supply and demand deviation are determined, forming a correction monitoring sequence. Supply and demand direction segments are divided according to the original supply and demand deviation direction, determining the natural recovery amount and correction coverage amount. Within the current effective correction interval, the reduction in correction coverage is decomposed into a natural replacement correction amount and a deviation recurrence amount, and a continuous correction retention amount is determined. Based on the natural replacement correction amount, deviation recurrence amount, continuous correction retention amount, and remaining supply and demand deviation, a correction completion status is formed, generating a rolling correction benchmark consisting of a release record, a continuous correction portion, and a recorrection portion, thereby solving the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: A method for rolling correction of supply and demand deviations in community photovoltaic microgrids, characterized by comprising: Based on the sampling sequence, the original supply and demand deviation is determined by subtracting the photovoltaic power supply from the community's power consumption. The actual effect of the execution link is calibrated according to the direction of the original supply and demand deviation to form the correction execution amount. The remaining supply and demand deviation is determined by subtracting the correction execution amount from the original supply and demand deviation. The supply and demand direction segments are divided according to the direction of the original supply and demand deviation. The portion of the decrease in the absolute value of the original supply and demand deviation at adjacent sampling times within the same supply and demand direction segment is determined as the natural recovery amount. The portion of the original supply and demand deviation at the same sampling time that coincides with the correction execution amount in the same direction is determined as the correction coverage amount. A continuous correction segment is formed by tracing the continuous correction execution amounts with the same direction of action from the end of the rolling cycle. The overlapping interval between the continuous correction segment and the supply and demand direction segment at the end of the rolling cycle is determined as the current effective correction interval. The reduction in correction coverage at adjacent sampling times is determined as the correction coverage reduction amount. The smaller of the correction coverage reduction amount and the natural recovery amount in the same group is determined as the natural replacement correction amount. The deviation recurrence amount is determined by subtracting the natural replacement correction amount from the correction coverage reduction amount. Based on the natural succession correction amount, the correction coverage at the end of the current effective correction interval, and the remaining supply and demand deviation, the release record, continuous correction portion, and recorrection portion are determined respectively. The source of the recorrection portion is marked by the deviation recurrence amount, forming a rolling correction benchmark.

[0006] Furthermore, the natural recovery amount is determined only within the supply and demand direction segment according to adjacent sampling times. The absolute value of the original supply and demand deviation at the earlier sampling time is subtracted from the absolute value of the original supply and demand deviation at the later sampling time. If the difference is greater than zero, the difference is determined as the natural recovery amount; if the difference is less than or equal to zero, the natural recovery amount is determined as zero. When the original supply and demand deviation is in the same direction as the correction execution amount, the smaller of the two absolute values ​​is taken and the direction of the original supply and demand deviation is inherited to form the correction coverage amount. When the two directions are not in the same direction, the correction coverage amount is determined to be zero.

[0007] Furthermore, within the current effective correction interval, the absolute value of the correction coverage at the earlier sampling time is subtracted from the absolute value of the correction coverage at the later sampling time. If the difference is greater than zero, the difference is determined as the reduction in correction coverage; if the difference is less than or equal to zero, the reduction in correction coverage is determined as zero. The smaller value between the natural recovery amount and the correction coverage reduction amount in the same group is used to determine the natural succession correction amount. The portion of the correction coverage reduction amount minus the natural succession correction amount is determined as the deviation recurrence amount.

[0008] Furthermore, the points where the original supply-demand deviation changes from positive to negative and from negative to positive are defined as the points of supply-demand direction reversal; If the supply and demand direction reversal point exists within the continuous correction interval, the sampling time of the first clearly defined supply and demand direction after the most recent supply and demand direction reversal point shall be taken as the starting point of the current effective correction interval. If the supply and demand direction reversal point does not exist within the continuous correction interval, the starting point of the continuous correction interval shall be taken as the starting point of the current effective correction interval. In both cases, the end of the rolling cycle is taken as the endpoint, and the correction coverage at that endpoint is determined as the continuous correction retention amount.

[0009] Furthermore, the sampling time interval where the original supply-demand deviation is continuously zero and lies between two non-zero values ​​is defined as the zero-value run; When the nearest original supply and demand deviations on both sides of the zero-value run are non-zero and in opposite directions, the zero-value run is determined as the boundary for the change in supply and demand direction, and a new supply and demand direction segment begins from the first sampling time after the zero-value run when the supply and demand direction is clearly defined; when the nearest original supply and demand deviations on both sides of the zero-value run are non-zero and in the same direction, the zero-value run is retained in the same supply and demand direction segment.

[0010] Furthermore, when the correction execution amount at the end of the rolling cycle is non-zero, the correction execution amount is tracked in the direction of action of the correction execution amount towards the earlier sampling time. When the correction execution amount at the end of the rolling cycle is zero and there is an earlier non-zero correction execution amount, the zero-value tail segment between the most recent non-zero correction execution amount and the end of the rolling cycle is included in the continuous correction segment, and the same-direction non-zero correction execution amount continues to be tracked towards the earlier sampling time. When all correction execution values ​​are zero within the rolling cycle, the end of the rolling cycle is determined as the start and end sampling times of the continuous correction segment.

[0011] Furthermore, the remaining supply-demand deviation at the end of the current effective correction interval is determined as the re-correction portion; When the recalibrated portion is non-zero, select the deviation recurrence value that is greater than zero and whose supply and demand direction is consistent with the direction of the recalibrated portion. Then, form the deviation recurrence source sequence by the occurrence time, supply and demand direction, and value of the deviation recurrence value according to the sampling time sequence. When the recalibrated portion is zero, the deviation recurrence source sequence is set to empty. The release record, continuous correction section, recorrection section, and deviation reproduction source sequence are organized sequentially into a rolling correction reference.

[0012] Furthermore, the community's power consumption, photovoltaic power supply, and actual operating status of the execution process are obtained within the same sampling window according to the absolute sampling time. The original supply-demand deviation, correction execution amount, and remaining supply-demand deviation at the same sampling time are formed into a correction monitoring record in a fixed order of sampling time, original supply-demand deviation, correction execution amount, and remaining supply-demand deviation. The calibration monitoring records are arranged from earliest to latest according to the absolute sampling time to form a calibration monitoring sequence. When a new processing sampling time is formed, the new calibration monitoring record is appended to the existing calibration monitoring record.

[0013] Furthermore, the execution phase includes multiple action units. The actual power of each action unit providing supplementary power to the community photovoltaic microgrid is calibrated as a positive value, and the actual power of each action unit absorbing the surplus photovoltaic power is calibrated as a negative value. The net power action amount is synthesized according to the algebraic relationship and the correction execution amount is determined. The calibration execution quantity adopts the power value corresponding to the actual operation result of the execution link, and establishes a synchronous correspondence with the community's power consumption and photovoltaic power supply through the absolute sampling time.

[0014] Furthermore, the release record consists of release record items corresponding to natural succession correction amounts with values ​​greater than zero, and each release record item is established in a fixed order of occurrence time, supply and demand direction, and natural succession correction amount; The combination of the occurrence time and the supply and demand direction is used as the unique identifier of the release record item. When the new release record item has the same unique identifier as the existing release record item, the existing release record item is updated with the new natural succession correction amount. When they have different unique identifiers, the new release record item is continued according to the occurrence time.

[0015] The technical effects and advantages of the supply-demand deviation rolling correction method for community photovoltaic microgrids proposed in this invention are as follows: This invention unifies the community's electricity consumption, photovoltaic power supply, and the actual operating status of the execution process to the same sampling time and the same positive and negative directions, thus maintaining a recalcible power relationship between the original supply-demand deviation, the corrected execution amount, and the remaining supply-demand deviation. This allows for the simultaneous preservation of supply-demand status, actual correction effect, and the corrected difference, reducing the source mixing caused by observing only net power changes.

[0016] By separately determining the natural recovery amount and the correction coverage amount, and decomposing the reduction in correction coverage amount into the natural replacement correction amount and the deviation recurrence amount, it is possible to identify the portion of the reduction in correction effect that has been replaced by photovoltaic supply and community electricity consumption itself, while retaining the supply and demand deviation that has re-emerged due to the reduction in correction coverage, thus reducing the possibility that the real supply and demand gap may be prematurely identified as having been eliminated.

[0017] By defining the current effective correction interval through the position of supply and demand direction conversion and continuous correction segments, the correction process formed under different supply and demand directions can be maintained in a segmented manner. The rolling correction benchmark records the correction reduction portion that has been naturally replaced, the portion still covered by the correction execution amount, and the remaining supply and demand deviation that has been revealed. This provides a clear data source for the release, retention, and re-correction of the correction effect, reduces ineffective continuous correction, and maintains continuous processing of the actual supply and demand difference. Attached Figure Description

[0018] Figure 1 A flowchart illustrating the overall process of a rolling correction method for supply and demand discrepancies in community photovoltaic microgrids; Figure 2 A flowchart is formed for the supply and demand directional segments and the deviation recovery sequence. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figure 1 This invention provides a rolling correction method for supply and demand deviations in community photovoltaic microgrids, comprising: Based on the sampling sequence, the original supply and demand deviation is determined by subtracting the photovoltaic power supply from the community's power consumption. The actual effect of the execution link is calibrated according to the direction of the original supply and demand deviation to form the correction execution amount. The remaining supply and demand deviation is determined by subtracting the correction execution amount from the original supply and demand deviation. The supply and demand direction segments are divided according to the direction of the original supply and demand deviation. The portion of the decrease in the absolute value of the original supply and demand deviation at adjacent sampling times within the same supply and demand direction segment is determined as the natural recovery amount. The portion of the original supply and demand deviation at the same sampling time that coincides with the correction execution amount in the same direction is determined as the correction coverage amount. A continuous correction segment is formed by tracing the continuous correction execution amounts with the same direction of action from the end of the rolling cycle. The overlapping interval between the continuous correction segment and the supply and demand direction segment at the end of the rolling cycle is determined as the current effective correction interval. The reduction in correction coverage at adjacent sampling times is determined as the correction coverage reduction amount. The smaller of the correction coverage reduction amount and the natural recovery amount in the same group is determined as the natural replacement correction amount. The deviation recurrence amount is determined by subtracting the natural replacement correction amount from the correction coverage reduction amount. Based on the natural succession correction amount, the correction coverage at the end of the current effective correction interval, and the remaining supply and demand deviation, the release record, continuous correction portion, and recorrection portion are determined respectively. The source of the recorrection portion is marked by the deviation recurrence amount, forming a rolling correction benchmark.

[0021] This invention uses the community's electricity consumption, photovoltaic power supply, and actual operating status of the execution process collected within a rolling cycle as the processing basis. It determines the original supply-demand deviation, correction execution amount, and remaining supply-demand deviation according to a unified positive and negative direction, and forms a correction monitoring sequence based on the sampling time sequence. Supply-demand direction segments are divided according to the directional changes of the original supply-demand deviation. Within each supply-demand direction segment, a natural recovery amount reflecting the changes in the supply-demand state itself and a correction coverage amount reflecting the actual control coverage area are determined, forming a deviation recovery sequence. A continuous correction segment is defined by the correction execution amount that continues to maintain its direction of action at the end of the rolling cycle. The current effective correction interval is determined by combining the most recent supply-demand direction conversion position. Within this interval, the reduction in correction coverage is divided into a natural replacement correction amount and a deviation recurrence amount. The continuous correction retention amount and the remaining supply-demand deviation at the end of the interval are extracted to form a correction completion status. Based on the correction completion status, release records, continuous correction portions, and re-correction portions are established to form and periodically correct the rolling correction benchmark.

[0022] Before the current rolling cycle begins, the controller has already configured the rolling cycle duration and sampling interval, and unified the sampling windows for the actual power of community electricity consumption, photovoltaic supply, and execution links with absolute sampling times. Both steps S2 and S3 require calling the power relationship formed in step S1. However, only by first unifying the three types of actual power to the same metering caliber and sampling time, and calibrating the actual power of the execution links according to predetermined positive and negative directions, and then forming a repeatable correction monitoring sequence, can continuous input be provided for the division of supply and demand directions and the identification of the end-point correction process.

[0023] S11. Establish the same-time sampling sequence for the current rolling period: The controller is pre-configured with the rolling cycle duration and sampling interval. The start time of the current rolling cycle is the first sampling time after the end time of the immediately preceding earlier rolling cycle. The end time of the current rolling cycle is determined by both the start time and the rolling cycle duration. Using the start time as a reference, the controller generates absolute sampling times sequentially according to the sampling interval. to ,in, For the first Each sampling time, The sampling time number. This represents the total number of sampling moments falling within the start and end range of the current rolling cycle. The rolling cycle duration and sampling interval are initialized when the controller is put into operation and maintain the same configuration in consecutive rolling cycles, allowing sampling moments in different rolling cycles to be arranged in absolute chronological order.

[0024] At sampling time The controller obtains data from the community's electricity metering location. The average active power of community electricity consumption at the end time, with the sampling interval as the duration, is determined as the community electricity consumption power. The average active power of photovoltaic supply within the same sampling window is obtained from the photovoltaic supply metering location and determined as the photovoltaic supply power. Community electricity consumption and photovoltaic power supply They use the same power units and the same sampling window, and are all correlated with the absolute sampling time. The controller performs matching based on the sampling time. Once both power values ​​in the same sampling window have been acquired, they are combined into a power supply-demand pair for the same moment.

[0025] The actual operational status of the execution phase responsible for supply and demand correction is related to the sampling time. The controller obtains the actual power action within the same sampling window from the power exchange metering interface between the execution unit and the community photovoltaic microgrid. When the execution unit contains multiple action units, the actual power provided by each action unit for supplementary supply is first calibrated as a positive value, and the actual power absorbed by each action unit from the photovoltaic supply surplus is calibrated as a negative value. Then, the net power action is synthesized according to the algebraic relationship, and this net power action is determined as the correction execution amount. The calibration execution quantity adopts the power value corresponding to the actual operating results of the execution process, and is jointly correlated with the community's power consumption and photovoltaic power supply at the sampling time. .

[0026] For example, during a rolling cycle where the residential load in a community is continuously consumed and the rooftop photovoltaic array is affected by cloud movement, the controller simultaneously obtains the community's power consumption and the photovoltaic power supply at each sampling moment, and also obtains the operating status of the execution link responsible for supply and demand correction at that time, which is actually providing supplementary supply or absorbing the supply surplus. Each set of states retains its sampling time, and the controller corresponds to each set according to the sampling time, thereby ensuring that the changes in photovoltaic supply when cloud shading occurs, the changes in community power consumption at the same time, and the correction actions that have already occurred are all processed in the same position.

[0027] S12. Determine the original supply and demand deviation according to a unified positive and negative direction: After completing the simultaneous sampling sequence, the controller proceeds according to the sampling time. to The power supply and demand pairs at each sampling moment are called sequentially, and the difference calculation is performed at each sampling moment. The original supply-demand deviation at each sampling time is denoted as . Determined according to the following formula: in, Sampling time The original supply and demand discrepancy, The community's power consumption at the same sampling time. The photovoltaic power supplied at the same sampling time. All terms in the formula are in the dimension of power. The original supply-demand deviation represents the signed power difference between community electricity consumption and photovoltaic supply before the actual effect of the execution process is taken into account for supply-demand balance.

[0028] Controller according to The comparison with zero preserves the direction of the original supply and demand deviation. When the sampling time is set as the positive original supply-demand deviation, it indicates that the community's electricity consumption is higher than the photovoltaic supply; when When this sampling time is marked as a negative original supply-demand deviation, it indicates that photovoltaic supply is higher than community electricity consumption; when At that time, the original supply-demand deviation at that sampling moment is recorded as zero. The zero value is used as the sampling position for step S2 to check the continuity of the original supply-demand deviation direction. When the original supply-demand deviation changes direction after passing the zero value, step S2 uses the zero value position as the supply-demand direction conversion boundary.

[0029] In a scenario where residential electricity consumption remains constant while cloud cover reduces photovoltaic (PV) supply, the community's electricity consumption at the same sampling time is higher than the PV supply, creating a positive initial supply-demand bias. As the clouds disperse, PV supply gradually increases, and the difference between community electricity consumption and PV supply decreases. If PV supply continues to increase and exceeds community electricity consumption, the initial supply-demand bias first reaches zero and then forms a negative initial supply-demand bias. The controller retains each difference and its direction according to the sampling sequence, allowing step S2 to directly rely on... The positive and negative changes divide the supply and demand directions into segments, and are based on adjacent segments. The change in absolute value determines the amount of natural recovery.

[0030] S13. Calibrate the calibration execution amount and calculate the remaining supply-demand deviation: The original supply and demand deviation at each sampling time Once determined, the controller calls the same sampling time. The actual operating status of the execution phase is used to uniformly convert the net power output represented by the actual operating status to the positive and negative directions used in the original supply and demand deviation. The correction execution amount at each sampling time is denoted as Its value is taken as the net power effect that has actually been applied in the execution process, and its sign is determined according to the direction of the effect of the net power effect on the supply and demand relationship.

[0031] When supplementing the supply to the community's photovoltaic microgrid during the execution phase, this function is used to offset the positive original supply-demand deviation and correct the execution volume. Take a positive value; when the execution phase absorbs the surplus of photovoltaic supply, this actual effect is used to offset the negative original supply and demand deviation and correct the execution quantity. Take the negative value; when the execution phase has not generated net power at the sampling time, correct the execution quantity. The value is set to zero. Therefore, the corrected execution amount and the original supply-demand deviation share a common directional benchmark: a positive value indicates that community electricity consumption exceeds photovoltaic supply, and a negative value indicates that photovoltaic supply exceeds community electricity consumption. Corrected execution amount The actual operating state of the execution phase is retained, so that when there is a difference between the planned instructions and the actual effect, the net power effect that has already occurred is entered into the calculation.

[0032] The controller completes and After matching at the same time, the sampling time is determined according to the signed algebraic difference. The remaining supply and demand discrepancy : in, Sampling time The remaining supply and demand discrepancy, This represents the original supply and demand deviation at the same sampling time. These are the correction execution quantities at the same sampling time. All three are expressed in power units. The controller first retains... and Each sign is then subtracted to make It simultaneously expresses the remaining amplitude and direction after the correction. When the correction execution amount is in the same direction as the original supply-demand deviation and the absolute value of the correction execution amount is less than the absolute value of the original supply-demand deviation, the remaining supply-demand deviation maintains the original supply-demand deviation direction; when the absolute values ​​of the two are equal, the remaining supply-demand deviation is zero; when the absolute value of the correction execution amount is greater than the absolute value of the original supply-demand deviation, the remaining supply-demand deviation retains the direction reversal information generated after the correction effect exceeds the original supply-demand deviation. When the correction execution amount is in the opposite direction to the original supply-demand deviation, the algebraic difference result records the superposition state of the actual effect of the execution link on the current supply-demand difference.

[0033] For example, after cloud cover causes a positive initial supply-demand deviation, the execution phase actually provides supplementary supply. The controller calibrates this actual effect as a positive correction execution amount and subtracts this correction execution amount from the positive initial supply-demand deviation to obtain the remaining positive residual supply-demand deviation. After photovoltaic supply recovers, the initial supply-demand deviation gradually shrinks, and the execution phase may still maintain a portion of supplementary supply. When the supplementary supply exceeds the then-current initial supply-demand deviation, the remaining supply-demand deviation turns negative. This directional change is retained along with the initial supply-demand deviation and the correction execution amount, enabling step S2 to limit the correction coverage and step S3 to identify the post-control power difference at the end of the current rolling cycle.

[0034] S14. Generate and output the calibration monitoring sequence: Raw supply and demand deviation at each sampling time Correction execution quantity and remaining supply and demand discrepancy Once determined, the controller uses the sampling time For the purpose of connection, three power quantities at the same sampling time were organized into a calibration monitoring record. The calibration monitoring record is arranged according to... , , and The fixed sequence is established, wherein the sampling time is used to limit the recording position, the original supply and demand deviation is used to represent the supply and demand difference before the correction action is included, the correction execution amount is used to represent the actual control action that has occurred, and the remaining supply and demand deviation is used to represent the supply and demand difference that is still retained after the actual control action is included.

[0035] The controller arranges all calibration monitoring records from morning to night according to the sampling time, forming the calibration monitoring sequence for the current rolling cycle. : in, This is the correction monitoring sequence for the current rolling cycle, the [number]th [item] in the sequence. Item corresponding sampling time and keep The synchronous operation relationship. Sequence sorting is based on the sampling time number. When a new processable sampling time is formed, the correction monitoring record corresponding to that sampling time is appended to the existing record; after the current rolling cycle reaches its termination time, it is based on the sequence number containing... to The ordered results of all calibration monitoring records are used as the output of step S1.

[0036] During the continuous process of the community's photovoltaic supply declining, recovering, and exceeding the community's electricity consumption, the correction monitoring sequence sequentially records the original supply-demand deviation direction at each sampling time, the correction execution amount formed by the actual supplementary supply or absorption of supply surplus in the execution process, and the remaining supply-demand deviation after the correction. The changes in the photovoltaic supply status itself and the changes in the execution process thus maintain their respective time positions, and the remaining supply-demand deviation can be recalculated at any sampling time based on the original supply-demand deviation and the correction execution amount.

[0037] Step S1 outputs the calibration monitoring sequence arranged according to the absolute sampling time. The community power consumption, photovoltaic power supply, and correction execution quantity in the sequence all use the same sampling window, and each correction execution quantity comes from the actual net power effect already formed in the execution stage. Step S2 calls accordingly. The supply and demand direction segments are divided according to their zero value locations, and step S3 is called. Identify the continuous correction process at the end and set the end of the current effective correction interval as the end of the interval. Proceed to step S4.

[0038] Step S1 has formed a calibration monitoring sequence according to the absolute sampling time and established a synchronous correspondence between the original supply and demand deviation, the calibration execution amount, and the remaining supply and demand deviation within a unified sampling window. However, the original supply and demand deviation may undergo directional changes through one or more consecutive zero-value locations. If the segment attribution and calculation location of the zero-value run are not clearly defined, the natural recovery amount will lose continuity at the directional boundaries. Therefore, step S2 first determines the supply and demand directional segments and zero-value runs based on the calibration monitoring sequence, and then extracts the natural recovery amount and calibration coverage amount respectively.

[0039] S21. Divide the supply and demand direction segments and determine the locations of supply and demand direction reversals: like Figure 2 As shown, the controller receives the calibration monitoring sequence formed in step S1. In, according to the sampling time to Extract the original supply and demand deviations sequentially Construct the original supply and demand deviation input sequence : in, The original supply and demand deviation input sequence is arranged according to the sampling time sequence of the current rolling cycle. The sampling time determined in step S1 The original supply and demand discrepancy, This represents the total number of sampling moments within the current rolling cycle. After the original supply and demand deviation input sequence is formed, the controller uses a signed run-length partitioning algorithm to check each item. The positive and negative directions, and the first The supply and demand direction markers at each sampling time are denoted as follows: : in, Original supply and demand deviation Supply and demand direction markers Corresponding to the positive original supply and demand deviation, This corresponds to a negative original supply-demand imbalance. The corresponding zero-value location. Supply and demand direction markers are only used to maintain the original direction of the supply and demand deviation and to perform segmentation; their sampling time corresponds to the zero-value location in the correction monitoring sequence. Maintain consistency.

[0040] The controller establishes a supply-demand direction segment starting from the first sampling moment with a clear supply-demand direction in the original supply-demand deviation input sequence, and compares the supply-demand direction markers of adjacent sampling positions along the sampling time sequence. (Continuous occurrence...) The sampling times are sequentially assigned to the same positive supply and demand direction segment, appearing consecutively. The sampling times are sequentially assigned to the same negative supply and demand direction segment. When two adjacent sampling times with a clear supply and demand direction have respectively and When marking the supply and demand directions, the time interval between the two is determined as the supply and demand direction conversion position, and the later sampling time with a clear supply and demand direction is taken as the starting sampling time of the new supply and demand direction segment.

[0041] When one or more consecutive sampling times satisfy When the controller identifies consecutive zero-value sampling moments as zero-value runs, it records the start and end sampling moments of the zero-value runs. The controller then searches for the nearest non-zero supply / demand direction marker before and after the zero-value run. When the supply / demand directions on both sides are opposite, the entire zero-value run is defined as the supply / demand direction transition boundary, and a new supply / demand direction segment begins from the first sampling moment with a clear supply / demand direction after the zero-value run. When the supply / demand directions on both sides are the same, the zero-value run is retained within the time range of that supply / demand direction segment. When the zero-value run is located at the beginning of the current rolling cycle, the first supply / demand direction segment is established from the first clear supply / demand direction after the zero-value run. When the zero-value run continues to the end of the current rolling cycle, the zero-value run is retained as the end range of the previous supply / demand direction segment.

[0042] For example, during a period of continuous electricity consumption in a residential community and a decrease in photovoltaic supply due to cloud cover, the initial supply-demand deviation remains positive, and the corresponding sampling times are classified into the same positive supply-demand direction segment. After the clouds move away, the photovoltaic supply gradually increases, and the initial supply-demand deviation first decreases to zero, then turns negative because the photovoltaic supply exceeds the community's electricity consumption. The controller marks the zero-value position as the supply-demand direction conversion boundary and establishes a negative supply-demand direction segment starting from the first negative initial supply-demand deviation after the zero-value position. Thus, each supply-demand direction segment only carries the amplitude change under the same supply-demand relationship direction, and the supply-demand direction conversion position serves as the temporal boundary for step S3 to define the current effective correction interval.

[0043] S22. Determine the natural recovery amount within the supply and demand direction segment: After the supply and demand direction segments and zero-value runs are determined, the controller selects adjacent sampling times according to the sampling sequence of each supply and demand direction segment. When two adjacent sampling times have the same non-zero supply and demand direction marker, the corresponding original supply and demand deviation is used to calculate the natural recovery. When the later sampling time is the first sampling time of the zero-value run and the earlier sampling time has a clear supply and demand direction, the zero-value position is used as the end calculation position of the earlier supply and demand direction segment, and the original supply and demand deviation of the earlier sampling time and the zero-value original supply and demand deviation are used to calculate the natural recovery. The first sampling time with a clear supply and demand direction after the supply and demand direction conversion boundary is used as the starting sampling time of the new supply and demand direction segment.

[0044] No. The natural recovery at each sampling time point is denoted as It is determined according to the reduced portion of the absolute value of the original supply-demand deviation: in, Sampling time The corresponding amount of natural recovery, This represents the absolute value of the original supply-demand deviation at the earliest sampling time within the same supply-demand direction segment. This represents the absolute value of the original supply-demand deviation at the later sampling time. The natural recovery is expressed in power units and is correlated to the later sampling time among adjacent sampling times. This ensures that the correction coverage reduction determined in step S3 for adjacent sampling times in the same group is at the same time position.

[0045] The controller first calculates the difference between the absolute values ​​of the original supply-demand deviation at the earlier sampling time and the absolute values ​​at the later sampling time, and then compares this difference with zero. If the difference is positive, it is used as the natural recovery value at the later sampling time; if the difference is zero or negative, the natural recovery value is zero. The natural recovery value at the initial sampling time of each supply-demand direction segment is initialized to zero. The natural recovery value at the first zero-value position entering the zero-value run is determined according to the difference between the absolute value of the original supply-demand deviation at the earlier sampling time and the zero value. The natural recovery values ​​at the remaining sampling times within the zero-value run and at the first definite direction sampling time after the zero-value run are zero. Thus, the amplitude of the original supply-demand deviation recovering to zero is retained within the earlier supply-demand direction segment, and no natural recovery value is formed between the two definite direction sampling times that cross the supply-demand direction conversion boundary.

[0046] In the positive supply-demand segment where cloud cover movement increases photovoltaic supply, if community power consumption remains constant and the original positive supply-demand deviation gradually decreases, the controller records the decrease in each group of adjacent sampling times as the natural recovery amount at the later sampling time. If residents activate their electricity loads in a concentrated manner, causing the original positive supply-demand deviation to increase again, the natural recovery amount at that group of adjacent sampling times is recorded as zero. Upon entering the negative supply-demand segment, as the photovoltaic supply surplus gradually decreases, the absolute value of the original negative supply-demand deviation decreases accordingly. The controller records the natural recovery amount according to the same absolute value difference relationship, ensuring that the reduction of the positive gap and the reduction of the negative surplus use the same calculation scale.

[0047] S23. Determine the correction coverage in the original supply-demand deviation: After the natural recovery amount is formed according to the changes in supply and demand, the controller continues to monitor the calibration sequence under the same sampling time sequence. Extracting the original supply and demand deviation in time and correction execution amount Each group and All from the same sampling time The controller first compares the positive and negative directions of the two, and then compares their absolute values ​​to determine the portion of the original supply and demand deviation covered by the actual correction effect.

[0048] No. The correction coverage at each sampling time is denoted as Determined according to the following formula: in, Sampling time Correction coverage This serves as a marker for the supply and demand direction at the same sampling time. This represents the absolute value of the original supply-demand deviation. To correct the absolute value of the executed quantity. Conditions. This indicates that the original supply-demand deviation is consistent with the direction of the corrective execution quantity; conditions This corresponds to either the two directions being opposite or at least one being zero. The corrected coverage is measured in power units and is determined through... Inherit the positive and negative directions of the original supply and demand deviation.

[0049] when and When the directions are consistent, the controller will and When comparing with a smaller input value, if the actual correction amount is within the original supply-demand deviation range, then... As the absolute value of the correction coverage; when the actual correction execution exceeds the original supply-demand deviation, it is used as... As the absolute value of the correction coverage. The correction execution amount exceeding the original supply-demand deviation range has been determined by step S1 as the remaining supply-demand deviation. By retaining the direction reversal information, the correction coverage is thus limited to the actual original supply and demand deviation range at that sampling moment. When the original supply and demand deviation is opposite to the direction of the correction execution amount, the controller sets the correction coverage to zero, so that the actual operating state in that direction continues to be expressed by the correction execution amount and the remaining supply and demand deviation.

[0050] For example, when community electricity consumption exceeds photovoltaic supply, the positive original supply-demand deviation and the positive correction execution amount formed by the supplementary supply provided by the execution stage are in the same direction. The controller takes the smaller of the two absolute values ​​and assigns it a positive direction, forming a positive correction coverage amount. When photovoltaic supply exceeds community electricity consumption, the negative original supply-demand deviation and the negative correction execution amount formed by the absorption of supply surplus by the execution stage are in the same direction. The controller takes the smaller of the two absolute values ​​and assigns it a negative direction, forming a negative correction coverage amount. If the execution stage still provides supplementary supply but the original supply-demand deviation has turned negative, the two directions are opposite. The correction coverage amount at that sampling moment is recorded as zero, and the remaining supply-demand deviation continues to record the direction of the supply-demand difference caused by this actual action.

[0051] S24. Form a bias recovery sequence according to the sampling time sequence: Natural recovery volume in each supply and demand segment and the correction coverage at each sampling time Once determined, the controller uses the sampling time Based on this connection, the two are matched to the calibration monitoring sequence. The same sampling location in the record. The natural recovery quantity is matched according to the later sampling time among adjacent sampling times, and the correction coverage quantity is directly matched according to its sampling time, so that the two power quantities in the same record express the cutoff values ​​respectively. The original supply and demand deviation that occurred narrowed and The actual area covered by the correction.

[0052] Controller according to to The natural recovery amount and correction coverage amount at each sampling time are arranged in chronological order to form the bias recovery sequence. : in, The deviation recovery sequence for the current rolling cycle; Used to maintain the same index between the deviation recovery sequence and the correction monitoring sequence; Used to record the supply and demand direction segment within the same segment. to The decrease in the absolute value of the original supply-demand deviation; Used to record sampling time The portion of the original supply and demand deviation actually covered by the corrective execution amount. The supply and demand direction segments and the supply and demand direction conversion positions are synchronously used as the segment boundaries of the deviation recovery sequence, so that each natural recovery amount can be traced back to its respective supply and demand direction segment.

[0053] During the sampling process of the community's photovoltaic supply transitioning from decline to recovery, the deviation recovery sequence hourly retains the natural recovery amount and positive correction coverage amount of the original positive supply-demand deviation. After the original supply-demand deviation turns negative from zero, the deviation recovery sequence re-records the natural recovery amount from the starting sampling time of the negative supply-demand direction segment, and simultaneously records the negative correction coverage amount. Thus, the self-recovery of the supply-demand state and the actual coverage in the execution phase maintain independent values, while establishing a comparable relationship through the sampling time.

[0054] Step S2 outputs the supply and demand direction segment, zero-value run, supply and demand direction reversal position, and deviation recovery sequence. The deviation recovery sequence connects the natural recovery amount and the correction coverage amount at the absolute sampling time. The recovery amount entering the zero-value run is assigned to the earlier supply / demand direction segment, and the natural recovery amount is reinitialized for new supply / demand directions after the zero-value run. Step S3 extracts the same group within the current effective correction interval accordingly. and The decomposition correction coverage reduction process.

[0055] Step S1 has generated a correction monitoring sequence arranged according to the absolute sampling time, and step S2 has generated a deviation recovery sequence including the zero-value run boundary, natural recovery amount, and correction coverage amount. However, the correction execution amount at the end of the current rolling cycle may remain positive, remain negative, or have decreased to zero, and the supply and demand directions may also change during the duration of the same correction action. Therefore, step S3 first retains the correction process in the same direction at the end and its zero-value tail segment, then defines the current effective correction interval and decomposes the actual destination of the reduction in correction coverage amount.

[0056] S31. Determine the continuous correction segment that includes the end of the current rolling cycle: The controller generates a calibration monitoring sequence from step S1. In, according to the sampling time to Extract the correction execution amount sequentially Construct the input sequence of the correction execution quantity : in, The input sequence of correction execution quantities is arranged according to the sampling time sequence within the current rolling cycle. Sampling time The amount of correction performed. This represents the total number of sampling moments within the current rolling cycle. After the correction execution quantity input sequence is formed, the controller performs signed run identification on each correction execution quantity, and assigns the first... The direction of the correction at each sampling time is marked as . : in, To correct execution quantity The direction marking of the correction action, This indicates that the execution process has a positive corrective effect. This indicates that the execution process has a negative corrective effect. This indicates that the net power action at this sampling moment is zero. The correction direction marker and the supply / demand direction marker formed in step S2 are compared. These represent the actual direction of the correction and the original direction of the supply-demand deviation, respectively, while retaining their respective physical meanings.

[0057] The controller selects the sampling time at the end of the current rolling cycle. .when When it is a non-zero value, As the direction of end-point correction, from The direction markers of the correction action are traced back to earlier sampling times, and sampling times that maintain this direction are included in the continuous correction segment. The first sampling time after the direction changes position is determined as the starting sampling time of the continuous correction segment.

[0058] when At that time, the controller automatically Find the distance to an earlier sampling time The most recent non-zero correction execution quantity; when a non-zero correction execution quantity is found, the direction of action of this correction execution quantity is taken as the direction of the final correction process, and the sampling time of the non-zero correction execution quantity is used to... The zero-value tail segment between these points is included in the continuous correction segment, and the correction execution amount with the same non-zero action direction continues to be tracked towards the earlier sampling time. When all correction execution amounts are zero in the current rolling cycle, [the following will occur]. The start and end sampling times for the continuous correction section are determined.

[0059] The sequence number of the starting sampling time of the continuous correction section is denoted as The controller is determined according to the aforementioned branches. Afterwards, by to A continuous correction segment is formed that includes the end of the current rolling cycle; when there is a zero-value tail segment at the end, the zero-value tail segment indicates the end process where the correction effect in the same direction was reduced to zero, and enters the correction coverage reduction analysis range in step S33.

[0060] For example, during periods when community electricity consumption exceeds photovoltaic supply, the execution phase continuously provides supplementary supply, maintaining a positive correction execution rate. At the end of the current rolling cycle, the controller tracks from the last positive correction execution rate back to an earlier sampling time, grouping the sampling times corresponding to the continuous positive correction execution rates into the same continuous correction segment. If there is a negative correction execution rate formed by absorbing the surplus photovoltaic supply at an earlier position, the change in position between positive and negative forms the starting boundary of the continuous correction segment, thus separating the negative correction process from the final positive correction process.

[0061] S32. Define the current effective correction range based on the location of the supply and demand direction reversal: After the continuous correction section is determined, the controller calls the supply and demand direction section and supply and demand direction switching position formed in step S2, and maps the supply and demand direction switching position to the sampling time. to Within the range. This mapping is used to correct the monitoring sequence. The sampling time in the data is used as a common index, so that the continuous range of the correction execution quantity and the directional change range of the original supply and demand deviation are on the same time axis.

[0062] The controller is according to the Towards The reverse order is used to check the supply and demand direction switching positions within the continuous correction section. When one or more supply and demand direction switching positions exist within the continuous correction section, they will be determined according to the sampling time sequence distance. The most recent position of the shift in supply and demand direction is denoted as The position of supply and demand reversal When located between adjacent positive and negative original supply and demand deviations, The first sampling time with a clear supply and demand direction is then determined as the starting sampling time of the current effective correction interval; the position of supply and demand direction reversal. When the run consists of zero-value runs, search from the termination position of the zero-value run towards the later sampling time, and find the first one that satisfies the condition. or The sampling time is determined as the starting sampling time of the current valid correction interval, and the sequence number of this starting sampling time is recorded as... .

[0063] When the original supply and demand deviations within the continuous correction section remain in the same supply and demand direction, the controller will set the starting sampling time of the continuous correction section. The starting sampling time of the current valid correction interval is determined at this time. Regardless of whether the sampling time is the first clearly defined direction after the supply-demand direction reversal or the initial sampling time of a continuous correction segment, the end point of the current effective correction interval is always the end of the current rolling cycle. ,Depend on to The current effective correction interval is formed. Only after the controller has determined the start and end points of the interval does it invoke the deviation recovery sequence formed in step S2. Feature processing is performed to correct the coverage reduction process.

[0064] For example, if the execution phase continues to provide positive supplementary supply at the end of the rolling cycle, but the original supply-demand deviation has turned from positive to negative after the photovoltaic supply recovers (passing through zero), the continuous correction section includes sampling records before and after the supply-demand direction reversal. The controller selects the distance. The most recent zero point is defined as the sampling time at which the first negative original supply-demand deviation occurs after the zero point. This ensures that the current effective correction interval only covers the positive correction effect that continues under the current negative supply and demand direction. If the original supply and demand deviation remains positive throughout the continuous correction interval, then... We will begin processing the correction coverage changes under this positive supply-demand imbalance directly.

[0065] S33. Decomposition and correction coverage reduction process: After the current effective correction interval is formed, the controller follows... to The sampling order, from the bias recovery sequence formed in step S2 Extracting natural recovery amount and correction coverage For each group of adjacent sampling times within the current valid correction interval. and The controller first compares the absolute values ​​of the correction coverage at two sampling times, and then compares the reduced portion of the correction coverage with the natural recovery amount of the same group using the same dimensions.

[0066] No. The reduction in correction coverage corresponding to each sampling time is denoted as The calculation relationship is as follows: in, For the reason to The amount of correction coverage reduction that occurred This represents the absolute value of the correction coverage at an earlier sampling time. This represents the absolute value of the corrected coverage at a later sampling time. As the absolute value of the corrected coverage decreases, the difference between the two values ​​forms... When the absolute value of the correction coverage remains constant or increases, Zero it. The correction coverage reduction is expressed in power terms and correlated to the later sampling time among adjacent sampling times in the same group. .

[0067] The controller will use the natural recovery amount determined in step S2 at adjacent sampling times within the same group. With correction coverage reduction By comparing the smaller values, the overlapping range of the two is determined as the natural succession correction amount. The natural succession correction value corresponding to each sampling time is denoted as . : in, For the reason to The natural succession correction that occurs, This is the reduction in the absolute value of the original supply-demand deviation determined in step S2. This represents the reduction in correction coverage at the same sampling time. When the natural recovery is greater than the reduction in correction coverage, the natural replacement correction is the actual reduction in correction coverage; when the reduction in correction coverage is greater than the natural recovery, the natural replacement correction is the actual reduction in the original supply-demand deviation.

[0068] After calculating the natural succession correction, the controller subtracts the natural succession correction from the reduction in correction coverage at the same sampling time, and determines the remaining part as the deviation reproducibility. The deviation reproducibility value corresponding to each sampling time is denoted as . : in, For the reason to The recurrence of the deviation. To retain the supply and demand directions of adjacent sampling groups, the supply and demand directions of adjacent groups are marked as... ;when for or season ,when season Take the supply and demand direction markers from the earliest adjacent sampling times within the same supply and demand direction segment. The reduction in correction coverage, the natural succession correction, and the deviation recurrence are all determined by the sampling time. and Maintain the correspondence between timing and supply and demand. Current effective correction interval start sampling time. The correction coverage reduction, natural succession correction, and bias recurrence are all initialized to zero, and from... Begin calculating group by group.

[0069] For example, when the cloud cover moves away and photovoltaic supply increases, the original supply-demand imbalance gradually decreases. Simultaneously, the execution mechanism reduces supplementary supply, and the correction coverage also decreases. The controller first obtains the reduction in correction coverage at adjacent sampling times and then compares it with the natural recovery amount in the same group. If the natural recovery amount covers the entire reduction in correction coverage, the entire reduction forms the natural replacement correction amount. If the natural recovery amount only covers a portion, that portion forms the natural replacement correction amount, and the remaining portion forms the deviation recurrence amount. If the correction coverage amount remains constant or increases, the reduction in correction coverage at that sampling time is zero, and both the natural replacement correction amount and the deviation recurrence amount are simultaneously zero.

[0070] S34. Correction completion status is achieved: After determining the natural succession correction and deviation recurrence amount for each group of adjacent sampling times within the current effective correction interval, the controller calls the deviation recovery sequence. At the end of the current effective correction interval Correction coverage This is determined as the continuous correction retention. The continuous correction retention is denoted as... : in, The continuous correction retention amount at the end of the current rolling cycle is retained. The power dimension and supply-demand direction are used to represent the portion of the original supply-demand deviation still covered by the actual correction execution amount at the end of the current effective correction interval. The controller simultaneously uses the correction monitoring sequence formed in step S1. The remaining supply-demand discrepancy at the end of the current rolling cycle is retrieved. This ensures that the portion still covered by the correction effect is at the same end sampling time as the supply-demand difference that has already been directly revealed.

[0071] The controller follows the sampling time. to Organize natural succession correction amount in sequence and deviation reproducibility And by marking the supply and demand directions of adjacent groups. Retain the supply and demand direction at the time each power quantity occurs; continue the continuous correction retention amount at the end of the current effective correction interval after this time series record. and remaining supply and demand discrepancy The calibration is now complete. : in, This represents the completion status of the correction for the current rolling cycle; the time sequence record retains the occurrence time of the natural succession correction amount and the deviation recurrence amount, as well as the supply and demand direction of adjacent groups; Record the portion of the current rolling cycle that is still covered by the correction execution amount at the end; Record the supply-demand gap that has already appeared at the same end sampling time. Calibration completion status and calibration monitoring sequence. and bias recovery sequence Maintain correspondence through sampling time.

[0072] Step S3 outputs the calibration completion status. Among them, the natural succession correction and the deviation recurrence are marked according to the sampling time and the supply and demand direction of adjacent groups. The arrangement, continuous correction of retention, and end-of-line remaining supply and demand deviation correspond together. Step S4 establishes a release record based on the natural succession correction amount, in order to Determine the continuous correction section, in order to Identify the recalibrated section and utilize it according to the condition of consistent direction. The sources of supply and demand discrepancies that have re-emerged are marked.

[0073] Steps S1 to S3 have resulted in a completed correction state with absolute sampling time, adjacent group supply and demand directions, and end-point power status. This state distinguishes between the correction reduction portion that has been replaced by natural recovery, the portion still covered by the correction execution amount, and the remaining supply and demand deviation that has been revealed. However, only when these three types of portions enter the same reference object according to the unique time identifier, direction consistency condition, and cross-cycle update rule can they maintain the source boundary between release, continuous monitoring, and recalibration in the next rolling cycle.

[0074] S41. Generate a release record based on the natural succession correction amount: The controller reads the calibration completion status generated in step S3. According to the sampling time to Extract natural succession correction amount sequentially Adjacent group supply and demand direction markings and sampling time When performing rolling correction for the first time, existing release records are initialized to empty; if there are release records from earlier rolling cycles, these release records are retained, and the newly formed natural succession correction amount in the current rolling cycle is treated as release record items to be merged.

[0075] No. The release record at each sampling time is determined by the absolute sampling time. Adjacent group supply and demand direction markings and natural succession correction amount Established in a fixed order. The controller is... As the entry condition for the release record, all release record items are arranged according to the absolute sampling time to form the release record for the current rolling cycle. : in, This is the release record formed during the current rolling cycle; absolute sampling time. and adjacent group supply and demand direction markings The location where the release occurred is identified by a common identifier; The location has been determined to have been corrected by the natural recovery of the original supply-demand imbalance. Sampling locations with a natural replacement correction of zero remain in the corrected state.

[0076] After the release record enters the rolling correction benchmark for the next rolling cycle, the correction reduction portion recorded remains in an exited state. The controller identifies the released historical correction portions based on the occurrence time and supply / demand direction. When correction actions from the same source are continuously transmitted, the release record serves as the exit boundary, ensuring that the continuous correction portion only covers the supply / demand deviation still covered by the correction execution amount at the end of the current rolling cycle. The release record indicates the historical destination of the correction reduction portion. When a new remaining supply / demand deviation occurs in the next rolling cycle, the new correction execution amount is determined by the newly formed correction monitoring sequence.

[0077] For example, as the cloud cover moves away, photovoltaic supply increases, and the original supply-demand imbalance narrows accordingly. The execution phase then reduces supplementary supply. Step S3 confirms that a portion of the reduced coverage has been replaced by the natural recovery of the original supply-demand imbalance. The controller then establishes a release record based on the timing of this natural replacement correction and the direction of the positive supply-demand imbalance. At the start of the next rolling cycle, this reduced coverage remains off, while the supplementary supply still under coverage is taken over by the continuous correction portion.

[0078] S42. Determine the continuous correction section and the recorrection section: After the release record is generated, the controller moves from the calibration complete state. Extracting continuous correction retention and will The continuous correction portion is directly determined as the next rolling cycle. The continuous correction portion is denoted as... : in, This is the continuous correction portion for the next rolling cycle. This represents the continuous correction reserve at the end of the current effective correction interval. The continuous correction portion maintains the positive and negative directions and power dimensions of the continuous correction reserve, and continues to represent the original supply-demand deviation still covered by the actual correction execution amount at the end of the current rolling cycle. The controller uses this end-of-cycle actual coverage amount as the starting control coverage for continued monitoring in the next rolling cycle, while the release record defines the correction reduction portion that has already exited.

[0079] The controller further transitions from the calibration completion state Extract the remaining supply and demand deviation at the end of the current effective correction interval. This is designated as the recalibration portion for the next rolling cycle. : in, This is the recalibration portion for the next rolling cycle. The sampling time at the end of the current rolling cycle The remaining supply and demand imbalance. The recalibrated portion remains. The positive and negative directions and power dimensions are: a positive value indicates that the current apparent difference between the community's electricity consumption and the photovoltaic supply is higher than the power difference; a negative value indicates that the current apparent difference between the photovoltaic supply and the community's electricity consumption is higher than the power difference; and a zero value indicates that the supply and demand difference is zero after correction at the end of the rolling cycle.

[0080] After the recalibrated section is formed, the controller... The reproducibility of positive and negative direction screening bias. When When the value is positive or negative, the correction is completed. Select the supply and demand direction markers with values ​​greater than zero and adjacent groups. and The recurrence of deviations in the same direction is organized into a deviation recurrence source sequence by its occurrence time, supply and demand direction, and value. ;when At this point, the current source sequence of the deviation recurrence is determined to be empty. The source sequence of the deviation recurrence is formed according to the following formula: in, This is a sign function; the input is the recalibrated portion. Positive output Negative output ; This is only used to mark the source of deviation recurrence that is consistent with the current recalibrated section direction; the value and direction of the recalibrated section are still determined by [the relevant authority / organization]. Confirmed. Not entered. The deviation reproducibility remains in the correction completed state and is not included in the source marking of the current recalibration section.

[0081] For example, after the supplementary supply is reduced during the execution phase, the natural recovery of the original supply-demand deviation only replaces part of the reduction in correction coverage, with the remaining reduction forming the deviation recurrence amount. When this portion manifests as a positive residual supply-demand deviation at the end of the rolling cycle, the controller forms a re-correction portion based on the positive residual supply-demand deviation and records when this supply-demand deviation reappeared as the correction coverage decreased through the deviation recurrence source sequence. The portion currently still covered by supplementary supply forms a continuous correction portion according to the continuous correction retention amount.

[0082] S43. Establish the rolling correction baseline for the next rolling cycle: Release Record Continuous correction section and recalibration section After formation, the controller uses a source-layered organization algorithm to construct the rolling correction benchmark for the next rolling cycle. This algorithm uses release records, continuous correction portions, and recorrection portions as three types of input objects. First, it determines the exit range based on whether the correction effect has been recovered and replaced by the supply and demand state itself. Then, it retains the control coverage that still actually exists at the end of the rolling cycle. Finally, it takes over the remaining supply and demand deviations that have already been revealed at the end.

[0083] The controller will release the recording. Placed in the release layer, the continuous correction section will be... Placed in a continuous correction layer, the portion will be re-corrected. and its biased reproducible source sequence Place the recalibration layer and establish a rolling calibration reference in the order of release layer, continuous calibration layer, and recalibration layer. : in, This serves as the rolling correction benchmark for the next rolling cycle; Used to define the corrected reduction portion that has been replaced by natural recovery and has remained in place; Used to absorb the supply and demand discrepancies that are still covered by the actual correction execution volume at the end of the current rolling cycle; Used to absorb the remaining supply and demand discrepancies that have already emerged at the end of the current rolling cycle; Used to mark the source of deviation recurrence that is consistent with the direction of the recorrection section.

[0084] At the start of the next rolling cycle, the controller uses the release record as a correction exit constraint, ensuring that the correction reduction portion identified by the release record remains exited; it uses the continuous correction portion as a monitoring input for continuous control coverage, allowing the original supply-demand deviation currently covered by the correction execution amount to continue to be monitored in the control process; and it uses the re-correction portion as an input for the already revealed supply-demand difference to undertake the execution of supply-demand correction. After the execution element forms the actual power action according to its existing power regulation method, step S1 still obtains the correction execution amount from the actual operating state of the execution element. And a new correction monitoring sequence is formed based on the actual amount of action rather than the planned command amount.

[0085] In the implementation of community photovoltaic supply restoration, the portion of supplementary supply already replaced by photovoltaic supply restoration enters the release layer. At the end of the rolling cycle, the portion of supplementary supply still provided by the execution phase enters the continuous correction layer. The community electricity shortage that re-emerges after the reduction of supplementary supply enters the re-correction layer. The three types of processing objects maintain their respective sources and power directions, so that the next rolling cycle can respectively take over the exit state, the continuous coverage state, and the directly exposed state.

[0086] S44. Rolling update and formation of the revised rolling correction baseline: In the next rolling cycle, the photovoltaic supply status, community electricity consumption status, and actual operating status of the execution link are reprocessed according to steps S1 to S3 to form a new correction completion status. After that, the controller extracts new natural succession correction, continuous correction retention, deviation recurrence, and end-point remaining supply and demand deviation from the new correction completion status. After the controller completes the correspondence of the four types of power quantities and their sampling time and supply and demand direction, it starts the rolling correction benchmark update.

[0087] For new natural succession correction values, the controller generates new release record entries based on the absolute sampling time and the supply / demand direction of adjacent groups for natural succession correction values ​​greater than zero, and updates existing release records using a timing merging algorithm. The timing merging algorithm uses the combination of absolute sampling time and supply / demand direction as the unique identifier for each release record. When a new release record entry has the same unique identifier as an existing release record entry, the value of that record entry is updated with the newly calculated natural succession correction value. When they have different unique identifiers, the new release record entry is appended to the existing release records according to the absolute sampling time. After merging, the updated release records are formed. Each record item remains in the exit state.

[0088] For a new continuous correction retention amount, the controller replaces the continuous correction portion in the rolling correction reference with this continuous correction retention amount, making the updated continuous correction portion equal to the actual correction coverage amount still existing at the end of the next rolling cycle. For a new end-of-cycle residual supply-demand deviation, the controller updates the value and direction of the re-correction portion with this residual supply-demand deviation; at the same time, it filters new deviation recurrence amounts according to the direction consistency condition specified in step S42 and forms a new deviation recurrence source sequence, so that the updated re-correction portion records the supply-demand difference that has already appeared at the end of the next rolling cycle and its corresponding source of reduced correction coverage.

[0089] The controller reorganizes the updated release records, the updated continuous correction section, and the updated recorrection section according to their source hierarchy to form a revised rolling correction benchmark. : in, The release record is formed after merging the new natural succession correction amount according to the unique identifier; The continuous correction portion is updated based on the new continuous correction retention amount; This is a recalibrated portion updated based on the new end-of-line remaining supply and demand discrepancy; This is the source sequence formed after filtering the recurrence of deviations according to the new recalibrated portion. The corrected rolling calibration benchmark continues to serve as the benchmark object for the next rolling process, so that the release records are continuously merged according to the absolute sampling time, the continuous calibration portion is updated according to the actual coverage at the end, and the recalibrated portion is updated according to the remaining supply and demand deviations at the end and the recurrence sources of deviations in the same direction, thus completing the cycle closed loop of supply and demand deviation rolling calibration.

[0090] The above embodiments are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A rolling correction method for supply and demand deviation in community photovoltaic microgrids, characterized in that, include: Based on the sampling sequence, the original supply and demand deviation is determined by subtracting the photovoltaic power supply from the community's power consumption. The actual effect of the execution link is calibrated according to the direction of the original supply and demand deviation to form the correction execution amount. The remaining supply and demand deviation is determined by subtracting the correction execution amount from the original supply and demand deviation. The supply and demand direction segments are divided according to the direction of the original supply and demand deviation. Within any supply and demand direction segment, the portion of the decrease in the absolute value of the original supply and demand deviation at adjacent sampling times is determined as the natural recovery amount, and the portion of the original supply and demand deviation at the same sampling time that coincides with the correction execution amount in the same direction is determined as the correction coverage amount. A continuous correction segment is formed by tracing the continuous correction execution amounts with the same direction of action from the end of the rolling cycle. The overlapping interval between the continuous correction segment and the supply and demand direction segment at the end of the rolling cycle is determined as the current effective correction interval. The reduction in correction coverage at adjacent sampling times is determined as the correction coverage reduction amount. The smaller of the correction coverage reduction amount and the natural recovery amount in the same group is determined as the natural replacement correction amount. The deviation recurrence amount is determined by subtracting the natural replacement correction amount from the correction coverage reduction amount. Based on the natural succession correction amount, the correction coverage at the end of the current effective correction interval, and the remaining supply and demand deviation, the release record, continuous correction portion, and recorrection portion are determined respectively. The source of the recorrection portion is marked by the deviation recurrence amount, forming a rolling correction benchmark.

2. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 1, characterized in that, The natural recovery amount is determined only within the supply and demand direction segment according to adjacent sampling times. The absolute value of the original supply and demand deviation at the earlier sampling time is subtracted from the absolute value of the original supply and demand deviation at the later sampling time. If the difference is greater than zero, the difference is determined as the natural recovery amount; if the difference is less than or equal to zero, the natural recovery amount is determined as zero. When the original supply and demand deviation is in the same direction as the correction execution amount, the smaller of the two absolute values ​​is taken and the direction of the original supply and demand deviation is inherited to form the correction coverage amount. When the two directions are not in the same direction, the correction coverage amount is determined to be zero.

3. The method for rolling correction of supply and demand deviations for community photovoltaic microgrids according to claim 2, characterized in that, Within the current effective correction interval, the absolute value of the correction coverage at the earlier sampling time is subtracted from the absolute value of the correction coverage at the later sampling time. If the difference is greater than zero, the difference is determined as the reduction in correction coverage; if the difference is less than or equal to zero, the reduction in correction coverage is determined as zero. The smaller value between the natural recovery amount and the correction coverage reduction amount in the same group is used to determine the natural succession correction amount. The portion of the correction coverage reduction amount minus the natural succession correction amount is determined as the deviation recurrence amount.

4. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 3, characterized in that, The points where the original supply-demand deviation changes from positive to negative and from negative to positive are defined as the points of supply-demand direction reversal; When there is a supply-demand direction reversal point within the continuous correction section, the sampling time of the first clear supply-demand direction after the most recent supply-demand direction reversal point is taken as the starting point of the current effective correction interval. When there is no supply-demand direction reversal point within the continuous correction section, the starting point of the continuous correction section is taken as the starting point of the current effective correction interval. In both cases, the end of the rolling cycle is taken as the endpoint, and the correction coverage at that endpoint is determined as the continuous correction retention amount.

5. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 1, characterized in that, The sampling time interval in which the original supply and demand deviation is continuously zero and lies between two non-zero values ​​is defined as the zero-value run; When the nearest original supply and demand deviations on both sides of the zero-value run are non-zero and in opposite directions, the zero-value run is determined as the boundary for the change in supply and demand direction, and a new supply and demand direction segment begins from the first sampling time after the zero-value run when the supply and demand direction is clearly defined; when the nearest original supply and demand deviations on both sides of the zero-value run are non-zero and in the same direction, the zero-value run is retained in the supply and demand direction segment with the same direction.

6. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 5, characterized in that, When the correction execution amount at the end of the rolling cycle is non-zero, the correction execution amount is tracked in the same direction towards the earlier sampling time in the direction of action of the correction execution amount; When the correction execution amount at the end of the rolling cycle is zero and there is an earlier non-zero correction execution amount, the zero-value tail segment between the most recent non-zero correction execution amount and the end of the rolling cycle is included in the continuous correction segment, and the same-direction non-zero correction execution amount continues to be tracked towards the earlier sampling time. When all correction execution values ​​are zero within the rolling cycle, the end of the rolling cycle is determined as the start and end sampling times of the continuous correction segment.

7. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 4, characterized in that, The remaining supply-demand deviation at the end of the current effective correction interval is determined as the re-correction portion; When the recalibrated portion is non-zero, select the deviation recurrence value that is greater than zero and whose supply and demand direction is consistent with the direction of the recalibrated portion. Then, form the deviation recurrence source sequence by the occurrence time, supply and demand direction, and value of the deviation recurrence value according to the sampling time sequence. When the recalibrated portion is zero, the deviation recurrence source sequence is set to empty. The release record, continuous correction section, recorrection section, and deviation reproduction source sequence are organized sequentially into a rolling correction reference.

8. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 1, characterized in that, According to the absolute sampling time, the community's power consumption, photovoltaic power supply and actual operating status of the execution link are obtained within the same sampling window. The original supply and demand deviation, correction execution amount and remaining supply and demand deviation at the same sampling time are formed into a correction monitoring record in a fixed order of sampling time, original supply and demand deviation, correction execution amount and remaining supply and demand deviation. The calibration monitoring records are arranged from earliest to latest according to the absolute sampling time to form a calibration monitoring sequence. When a new processing sampling time is formed, the new calibration monitoring record is appended to the existing calibration monitoring record.

9. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 8, characterized in that, The execution phase includes multiple action units. The actual power of each action unit providing supplementary power to the community photovoltaic microgrid is calibrated as a positive value, and the actual power of each action unit absorbing the surplus photovoltaic power is calibrated as a negative value. The net power action amount is synthesized according to the algebraic relationship and the correction execution amount is determined. The calibration execution quantity adopts the power value corresponding to the actual operation result of the execution link, and establishes a synchronous correspondence with the community's power consumption and photovoltaic power supply through the absolute sampling time.

10. The method for rolling correction of supply and demand deviation for community photovoltaic microgrids according to claim 7, characterized in that, The release record consists of release record items corresponding to natural replacement correction quantities with values ​​greater than zero. Each release record item is established in a fixed order of occurrence time, supply and demand direction, and natural replacement correction quantity. The combination of the occurrence time and supply and demand direction of each release record is used as the unique identifier of the release record. When a new release record has the same unique identifier as an existing release record, the existing release record is updated with a new natural succession correction amount. When they have different unique identifiers, the new release record is continued according to the occurrence time.