Reverse power flow bottleneck device identification method based on neural control differential equation model, storage medium and equipment
By identifying reverse power flow bottleneck devices through a neural control differential equation model, the problem of lack of basis for optimizing the ranking of photovoltaic access points in existing technologies is solved. This enables accurate identification and optimized ranking of device load rate changes, ensuring that the response is within a controlled range.
Patent Information
- Application Number
- CN202611555351.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-09
- Publication Date
- 2026-11-20
AI Technical Summary
When the output of distributed photovoltaic (PV) exceeds the local load absorption capacity, the current technology fails to effectively identify bottleneck devices in the load rate changes of distribution network equipment due to the reverse power flow, resulting in a lack of basis for the optimal sequencing of PV access points.
Based on the neural control differential equation model, distinguishable low-amplitude active and reactive power probes are applied within a time window where the topology remains unchanged and the constraints of equipment, voltage, and inverter are satisfied. The actual execution quantities are recorded and aligned with the time of equipment load rate changes to form the measured load rate change caused by a unit change in active or reactive power. The partial derivatives of the equipment load rate output are calculated using the spatiotemporal diagram neural control differential equation model, the model parameters are updated, and the allowable additional reverse active power of the equipment is determined according to the predetermined rules for new active power allocation and reactive power control. The lines and main transformers are arranged to form the power flow bottleneck equipment ranking.
It enables the comparison of actual constraints on lines and main transformers with different rated capacities and connection levels under the same scheduling increment rules, provides a basis for prioritizing equipment adjustment, ensures that response identification disturbances are within a controlled range, and the bottleneck equipment ranking output after model parameter update has traceable measurement basis and error boundaries.
Smart Images

Figure CN123144013A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power distribution network operation monitoring and photovoltaic reverse power flow analysis technology, specifically to a method, storage medium and device for identifying reverse power flow bottleneck devices based on a neural control differential equation model. Background Technology
[0002] When the output of distributed photovoltaic (PV) power exceeds the local load absorption capacity, the remaining active power is fed back to the upper-level grid along the current energized topology. Distribution lines, bus-connected channels, and main transformers within the same channel sequentially experience reverse power flows in the same direction. The operating system typically calculates the reverse load rate, capacity margin, and voltage deviation based on equipment power flow, rated capacity, and node voltage. The degree to which a line or main transformer approaches its operating boundary characterizes the channel's load-bearing status when PV power generation continues to increase. The reverse load rate represents the degree of occupancy of the reverse power flow relative to the rated capacity of the equipment, while the node voltage reflects the impact of the reverse power flow on the voltage state along the line.
[0003] CN116231652A discloses a distributed generation capacity analysis method and terminal considering absorption rate. It obtains the existing distribution network structure, calculates the actual absorbable distributed generation output at each level, and forms the absorption rate. Line carrying capacity is assessed based on line capacity, line voltage, and absorption rate, and transformer carrying capacity is assessed based on transformer equipment capacity. The line assessment sets constraints on node voltage, line power flow, line capacity, and absorption rate, with photovoltaic installation capacity as the optimization target. The transformer carrying capacity assessment results are then used as boundary conditions for the line assessment, forming a coupled assessment of the line and transformer. When the sum of the photovoltaic carrying capacity of each lower-level line exceeds the photovoltaic carrying capacity of the upper-level transformer, the upper-level transformer is marked as a bottleneck element, and a regional carrying capacity assessment result is formed accordingly.
[0004] This type of scheme calculates the carrying capacity of lines and transformers based on grid parameters, capacity, voltage, power flow, and absorption rate constraints. When multiple levels of equipment share reverse power flow, the correspondence between the actual active and reactive power changes at the photovoltaic access point and the measured load rate changes of each device has not yet been established; the coupling results of carrying capacity also do not cover the processing chain that converts the field response into the allowable quantity ranking of equipment under the same newly added reverse power flow rule. Devices with similar current load rates may have different unit incremental responses, and bottleneck markers formed by summarizing single-layer carrying capacity or capacity cannot directly provide a priority adjustment order based on field response. Summary of the Invention
[0005] The purpose of this invention is to provide a method, storage medium, and device for identifying reverse power flow bottleneck devices based on a neural control differential equation model, so as to solve the problems of the prior art mentioned in the background.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for identifying reverse power flow bottleneck devices based on a neural control differential equation model, characterized in that it includes:
[0007] S1: Obtain the distribution network topology, photovoltaic access relationships, power flow of lines and main transformers, reverse load rate, and node voltage;
[0008] S2: Within a time window where the topology remains unchanged and the constraints of the equipment, voltage, and inverter are satisfied, apply distinguishable low-amplitude active and reactive power probes to the photovoltaic access point, record the actual execution amount, and align it with the time of equipment load rate change.
[0009] S3: Based on the actual execution volume and load rate changes aligned with the access point, equipment, power channel, and time window, form the measured load rate change caused by the unit active or reactive power change, excluding topology changes, the condition number of the actual execution volume matrix, or time windows with signal-to-noise ratio exceeding the limit.
[0010] S4: The continuous control path of each node in the current energized topology is constructed using the actual execution amount and aligned load rate and node voltage sequence. The partial derivative of the equipment load rate output with respect to the photovoltaic test amplitude is calculated by the spatiotemporal graph neural control differential equation model. According to the same index, the positive weighted square difference between the measured load rate change and the partial derivative is added to the equipment load rate task loss of the same model. The same model parameters are updated by backpropagation, and the corresponding partial derivative is formed by the updated same model.
[0011] S5: According to the predetermined rules for new active power allocation and reactive power control, the total new active power is one megawatt. The load rate output partial derivative formed after the combination update is used to obtain the load rate increase corresponding to one megawatt of new reverse active power. The remaining reverse load rate margin is divided by the positive load rate increase to obtain the allowable new reverse active power of the equipment.
[0012] S6: Arrange the lines and main transformers in ascending order according to the allowable amount, and list the devices whose allowable amount difference is within the error range determined by the load rate measurement error and the partial derivative calculation error in parallel. Output the power flow bottleneck device ranking and the difference between the measured load rate change and the above partial derivative.
[0013] Preferably, S1 is as follows:
[0014] The distribution network topology is obtained from the distribution automation system; the connection relationship between the photovoltaic access point and the line and main transformer, as well as the rated capacity of the line and main transformer, are obtained from the equipment ledger; and the power flow and node voltage of the line and main transformer with unified time synchronization timestamps are obtained from the measurement system.
[0015] Within the time window during which the power distribution network topology remains unchanged, the power flow of each line or main transformer is matched with the rated capacity of the equipment according to the unique equipment or node identifier and the sampling time, and the node voltage is matched with the node and the agreed voltage reference.
[0016] Based on the rated capacity of each line or main transformer, the power flow of the equipment is converted into the reverse load rate, and the node voltage is converted into a per-unit value according to the agreed voltage reference. The reverse load rate and the per-unit value of the node voltage are written into the reference operating data corresponding to the power distribution network topology according to the equipment or node identification and sampling time, forming the current power topology diagram and the reference operating data.
[0017] Preferably, S2 is as follows:
[0018] Before issuing active and reactive power tests, verify the distribution network topology, inverter capacity curves, ramp limits, remaining capacity of lines and main transformers, and safe range of node voltages within the test time window. Determine the active and reactive power test amplitudes for each photovoltaic access point based on the verification results.
[0019] Record the actual active and reactive power changes executed by the photovoltaic inverter, adopt a unified time axis, and correspond each actual execution sequence with the load rate change and node voltage change of the line or main transformer within the same test time window according to the delay of the test action to the equipment response.
[0020] Based on the records of photovoltaic access point, line or main transformer, power channel and test time window, a sequence of active and reactive power changes actually executed by the photovoltaic inverter is formed, as well as the corresponding sequence of line or main transformer load rate changes and node voltage changes.
[0021] Preferably, when a switch state change is detected within the test time window, the active and reactive power changes actually performed by the photovoltaic inverter, as well as the corresponding line or main transformer load rate changes and node voltage changes recorded within that test time window, are discarded. The distribution network topology after the switch state change is obtained. In the subsequent test time window where the distribution network topology remains unchanged, the active and reactive power test amplitudes are rechecked and the test is reapplied. The sequence of active and reactive power changes actually performed by the photovoltaic inverter, as well as the corresponding line or main transformer load rate changes and node voltage changes, are re-obtained according to the photovoltaic access point, line or main transformer, power channel, and the subsequent test time window identifier.
[0022] Preferably, S3 is as follows:
[0023] The active and reactive power changes actually performed by the current photovoltaic access point under test within the same time window are organized into two columns of actual execution quantity matrices according to the sample time, and the sample time of the two columns corresponds to the sample time of the load rate change of each line or main transformer.
[0024] When the L2 norm of both columns is not zero, divide each column by its own L2 norm to form a dimensionless actual execution matrix, and calculate the condition number of the dimensionless actual execution matrix.
[0025] Determine whether the actual active power change sequence and the actual reactive power change sequence of the current tested photovoltaic grid connection point are orthogonal to each other;
[0026] When the two sequences are orthogonal to each other, the inner product of each actual execution sequence and the corresponding line or main transformer load rate change sequence aligned with time is calculated, and then divided by the inner product of the actual execution sequence itself to form the measured load rate change of the corresponding power channel.
[0027] When the two sequences are not mutually orthogonal, regularized least squares calculation is performed on the corresponding line or main transformer load rate change sequence aligned with the actual execution quantity matrix and time to form the measured load rate change of the two power channels of active and reactive power, where the regularization parameter is a positive value.
[0028] The measured load rate change caused by the actual unit active or reactive power change is indexed according to photovoltaic access point, line or main transformer, power channel and effective time window. The unit of active channel is load rate per megawatt, and the unit of reactive channel is load rate per megavar.
[0029] Under the same electrified topology, the same photovoltaic access point, the same line or main transformer, and the same power channel, at least two effective time windows with different low amplitude levels are obtained. The maximum absolute difference between the measured load rate changes of each effective time window is calculated. When the maximum absolute difference does not exceed a preset threshold, one of the effective time windows is taken as the target time window. The effective time window containing the target time window is taken as the comparison window. The condition number of the dimensionless actual execution matrix of each comparison window is multiplied by the sum of the load rate measurement allowable error of the corresponding device and the reference noise standard deviation calculated from the load rate sample without control before the device is tested. This is then divided by the root mean square amplitude of the actual execution sequence of the power channel to obtain the response allowable deviation of each comparison window. The corresponding response allowable deviation is subtracted from and added to the measured load rate change of each comparison window to form the response lower bound and response upper bound. When the maximum value of each response lower bound is not greater than the minimum value of each response upper bound, the midpoint between the maximum value of the response lower bound and the minimum value of the response upper bound is taken to form a locally consistent measured load rate change with the same index and physical unit as the target time window.
[0030] Preferably, when the root mean square amplitude of the actual execution sequence of the power channel is greater than zero in each of the effective time windows participating in the comparison, the preset threshold is obtained by dividing twice the allowable error of the load rate measurement of the corresponding device by the smallest root mean square amplitude.
[0031] Preferably, S4 is as follows:
[0032] The active and reactive power changes actually performed by the photovoltaic inverter in the same photovoltaic test, as well as the time-aligned line or main transformer load rate and bus voltage sequence, are corresponding to the graph nodes of the current energized topology according to the same time window and equipment identifier. The graph nodes are then connected according to the connection relationship of the current energized topology to form a continuous control path for each node of the current energized topology.
[0033] The temporal neural control differential equation of the spatiotemporal graph neural control differential equation model updates the temporal hidden state of each graph node according to the continuous control path. Then, the spatial graph neural control differential equation uses the temporal hidden state at the same integration time point and the spatial hidden state aggregated according to the current energized topology graph connection relationship to update the spatial hidden state of each graph node. The equipment load rate output layer forms the line or main transformer load rate output, and the derivative of the output with respect to the corresponding photovoltaic active or reactive power test amplitude is calculated to form the equipment load rate output partial derivative according to the photovoltaic access point, line or main transformer, power channel and time window index.
[0034] During the training phase, effective time windows of different low amplitude levels are read for the same energized topology, the same photovoltaic access point, the same line or main transformer, and the same power channel. The measured load rate change of each window is subtracted from and added to the corresponding allowable response deviation to form the lower and upper bounds of the response. When the maximum value of each lower bound is not greater than the minimum value of each upper bound, the locally consistent measured load rate change obtained by taking the midpoint between the maximum and the minimum value is taken. Only for the corresponding items that have both the locally consistent measured load rate change and the partial derivative of the load rate output of the finite equipment within the effective time window of the same photovoltaic test, the corresponding items are matched according to the photovoltaic access point, line or main transformer, power channel, and effective time window, and the same physical unit is used for both.
[0035] The difference between the locally consistent measured load rate change and the partial derivative of the equipment load rate output for each corresponding term is squared. The arithmetic mean of the squared values is used as the response constraint loss. The response constraint loss is added to the line and main transformer load rate output task loss of the same model with positive weights to obtain the total loss. A backpropagation is performed on the total loss to update the vector field parameters of the time neural control differential equation, the vector field parameters of the spatial graph neural control differential equation, and the parameters of the equipment load rate output layer. After the parameter update is completed, the equipment load rate output partial derivative corresponding to the corresponding term is regenerated by the same model.
[0036] Preferably, when the spatial graph neural control differential equation updates the spatial hidden state of each graph node in the current charged topology graph according to the connection relationship of the current charged topology graph, the trainable node embedding vector corresponding to each graph node is obtained from the vector field parameters of the spatial graph neural control differential equation. The inner product is performed on the trainable node embedding vectors of any two graph nodes and the negative value is set to zero to form the non-negative connection weight between the two graph nodes. The non-negative connection weight between directly connected graph nodes in the current charged topology graph is retained, the non-negative connection weight between the remaining graph nodes is reset to zero, and the self-connection of the target graph node is retained. The retained non-negative connection weight is normalized along the target graph node. The normalization result and the self-connection are used together to aggregate the spatial hidden state of each graph node in the current charged topology graph. The aggregated spatial hidden state is used for the update operation of the spatial graph neural control differential equation on the spatial hidden state of each graph node.
[0037] Preferably, S5 is as follows:
[0038] The sum of the newly added active power allocation at each photovoltaic access point is made to be one megawatt, and the reactive power change at each photovoltaic access point is determined according to the predetermined reactive power control rules.
[0039] For each line or main transformer, the partial derivative of the equipment load rate output after the parameter update is completed is multiplied by the corresponding newly added active power allocation or reactive power change according to the photovoltaic access point and the active or reactive power channel, and the resulting product is summed according to the photovoltaic access point to form the load rate increase corresponding to the newly added reverse active power of the line or main transformer under the new active power allocation and reactive power control rules.
[0040] When the current reverse load rate reaches the rated value, the allowable new reverse active power of the corresponding line or main transformer equipment will be set to zero.
[0041] When the current reverse load rate is lower than the rated value and the increase in load rate is positive, the difference obtained by subtracting the current reverse load rate from the load rate is divided by the increase in load rate to form the equipment allowable new reverse active power of the corresponding line or main transformer.
[0042] When the current reverse load rate is lower than the rated value and the increase in load rate is not positive, the corresponding line or main transformer will be determined as not constrained under the newly added active power allocation and reactive power control rules.
[0043] Preferably, S6 is as follows:
[0044] The screening equipment allows the addition of a limited amount of positive feedback to a line or main transformer. The lines or main transformers are arranged in ascending order of the amount of positive feedback allowed by the equipment, forming a power flow bottleneck equipment sorting system.
[0045] Based on the allowable error of the load rate measurement of the corresponding line or main transformer and the calculation error of the partial derivative of the equipment load rate output after the parameter update, the error range of the allowable additional reverse active power of each line or main transformer is determined. Lines or main transformers whose difference in the allowable additional reverse active power of the equipment is within the error range are grouped into the same parallel order to form a power flow bottleneck equipment sorting with parallel order.
[0046] According to the photovoltaic access point, line or main transformer, active or reactive channel and effective time window, the measured load rate change is subtracted from the partial derivative of the equipment load rate output after the parameter update to form the difference.
[0047] The power flow bottleneck equipment is sorted, and whether each line or main transformer does not constitute a finite constraint is output together with the difference.
[0048] An electronic device, the device comprising:
[0049] At least one processor; and
[0050] A memory communicatively connected to the at least one processor; wherein,
[0051] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the reverse power flow bottleneck device identification method based on the neural control differential equation model.
[0052] A computer-readable storage medium storing computer instructions for causing a processor to execute the aforementioned reverse power flow bottleneck device identification method based on a neural control differential equation model.
[0053] Compared with the prior art, the beneficial effects of the present invention are:
[0054] This invention obtains the actual execution quantities of photovoltaic active and reactive power testing within a time window where the topology remains unchanged and the constraints of equipment, voltage, and inverter are satisfied. It then correlates the measured load rate change caused by a unit actual power change with the partial derivatives of the equipment load rate output of the same spatiotemporal neural control differential equation model, item by item according to the access point, equipment, power channel, and time window. The response constraint loss can update the model parameters along with the equipment load rate task loss. The updated partial derivatives are then combined according to predetermined rules for new active power allocation and reactive power control to form the increase in equipment load rate corresponding to one megawatt of new reverse active power. This increase is then combined with the remaining reverse load rate margin of the equipment to form the allowable new reverse active power. Thus, lines and main transformers with different rated capacities and different connection levels are compared under the same scheduling increment rule. The ranking reflects the actual limiting effect of the equipment on the channel's continued reverse power transmission capacity, allowing the dispatcher to determine priority adjustment targets.
[0055] This invention ensures that the disturbances required for response identification are within a controlled range by verifying the inverter's capacity curve, ramp limits, remaining line and main transformer capacity, and node voltage range before testing, and by reducing the test amplitude or canceling the test when constraints exceed limits. The system uses actual active and reactive power changes from inverter telemetry feedback instead of command values, aligning load rate and node voltage records with the target time after equipment response delay correction. Time windows with topology changes, exceeding the limit of the actual execution matrix condition number, exceeding the limit of the response signal-to-noise ratio, or missing necessary records are not included in subsequent calculations. Orthogonal execution sequences use inner product calculations for the response, while non-orthogonal sequences use regularized least squares to separate the two power channels. A locally consistent measured load rate change is formed by a common response range of different low amplitude levels, ensuring that the constraints fed into the model retain clear data sources, indexes, and physical units.
[0056] This invention uses the direct connections of the current charged topology to constrain the non-negative trainable connection weights, and combines the temporal hidden states at the same integration point with the spatial hidden states aggregated according to connections for spatial state updates. The model can express the temporal transmission relationship of photovoltaic power changes between adjacent lines, buses, and main transformers along the actual feedback transmission channels. After the devices are arranged in ascending order of allowed new feedback active power, the allowable calculation error of the partial derivative formed by the load rate measurement error and the verification time window is converted into an allowable error range. Only devices whose allowable difference falls within the corresponding range are grouped into the same parallel order; devices with non-positive load rate increases are retained as not constrained states. Finally, the bottleneck device ranking, constraint state, and the difference between the measured response and the updated partial derivative are simultaneously output, giving the ranking results traceable measurement basis and error boundaries. Attached Figure Description
[0057] The accompanying drawings, as part of this invention, are provided to further illustrate the invention. The illustrative embodiments and descriptions of the invention are used to explain the invention, but do not constitute an undue limitation thereof. Clearly, the drawings described below are merely some embodiments, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0058] Figure 1 This is a flowchart of the reverse power flow bottleneck device identification method of the present invention;
[0059] Figure 2 This is a diagram illustrating the algorithm architecture of the spatiotemporal graph neural control differential equation model of this invention.
[0060] Figure 3 This is a flowchart illustrating the process for identifying bottleneck devices in the reverse transmission channel according to the present invention.
[0061] Figure 4A comparison chart showing the consistency between the measured load rate change and the partial derivative of the model load rate output;
[0062] Figure 5 A comparison chart showing how the allowable increase in reverse active power for each line and main transformer changes over a time window;
[0063] Figure 6 A multi-index comparison chart of the complete model and different ablation models;
[0064] Figure 7 A comparison chart showing the consistency between active and reactive power probe commands and the actual execution quantities of the inverter;
[0065] Figure 8 This is a diagram showing the relationship between the phase space distribution and the reverse load boundary in the operating state.
[0066] Figure 9 This is a schematic diagram of the electronic device used in the reverse power flow bottleneck device identification method based on the neural control differential equation model of the present invention. Detailed Implementation
[0067] To enable those skilled in the art to better understand the present invention, 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 merely 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 should fall within the scope of protection of the present invention. It should be understood that the various steps described in the method embodiments of the present invention can be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0068] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0069] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, any variations of the terms "comprising" and "having," etc., are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0070] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0071] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0072] Example 1
[0073] Combination Figures 1-3 As shown, the method for identifying reverse power flow bottleneck devices based on a neural control differential equation model includes:
[0074] S1. Obtain the power distribution network topology, photovoltaic access relationships, power flow of lines and main transformers, reverse load rate, and node voltage;
[0075] S2. Within a time window where the topology remains unchanged and the constraints of the equipment, voltage, and inverter are satisfied, apply distinguishable low-amplitude active and reactive power probes to the photovoltaic access point, record the actual execution amount, and align it with the time of equipment load rate change.
[0076] S3. Based on the actual execution volume and load rate changes aligned with the access point, equipment, power channel and time window, form the measured load rate change caused by the unit active or reactive power change, and exclude topology changes, condition number of the actual execution volume matrix or time windows with signal-to-noise ratio exceeding the limit.
[0077] S4. The continuous control path of each node in the current energized topology is constructed using the actual execution amount and the aligned load rate and node voltage sequence. The partial derivative of the equipment load rate output with respect to the photovoltaic test amplitude is calculated by the spatiotemporal graph neural control differential equation model. According to the same index, the positive weighted square difference between the measured load rate change and the partial derivative is added to the equipment load rate task loss of the same model. The same model parameters are updated by backpropagation, and the corresponding partial derivative is formed by the updated same model.
[0078] S5. According to the predetermined rules for new active power allocation and reactive power control, the total new active power is one megawatt. The load rate output partial derivative formed after the combination update is used to obtain the load rate increase corresponding to one megawatt of new reverse active power. The remaining reverse load rate margin is divided by the positive load rate increase to obtain the allowable new reverse active power of the equipment.
[0079] S6. Arrange the lines and main transformers in ascending order of allowable quantity, and list the devices whose allowable quantity difference is within the error range determined by the load rate measurement error and the partial derivative calculation error in parallel. Output the power flow bottleneck device ranking and the difference between the measured load rate change and the above partial derivative.
[0080] As further explained, step S1 specifically involves selecting one photovoltaic access point, two lines, one main transformer, and three voltage nodes in the same photovoltaic back-feeding channel. The system obtains the equipment or node identifier, equipment type, connection terminal, switch position, energized status, and status activation time from the distribution automation system. It also obtains the photovoltaic access relationship, the rated capacity of the lines and main transformer, and the agreed voltage reference for each node from the equipment ledger. Furthermore, it obtains the power flow and node voltage of the lines and main transformer with a unified time synchronization timestamp from the measurement system. Using a 60-second sampling period and a 600-second window length, ten sampling times are formed between 10:00:00 and 10:09:00. The 60-second sampling period is used to determine the corresponding time boundaries for each 30-second interval before and after the sampling time.
[0081] by Represents the current charged topology, with Represents a set of charged objects, with This represents the set of valid connections, organizing busbars, lines, main transformers, and photovoltaic access points that are energized and connected through valid connection terminals. ,by Indicates the photovoltaic grid connection relationship, in order to Indicates the photovoltaic access point identifier, in Indicates the identification of connected devices, formed according to the equipment ledger. Photovoltaic access relationships and the current energized topology map are used to write the baseline operating data. When the switch status or connection relationship changes, the time window is divided by the time when the status takes effect. The sampling time sequence is only established in the section where the current energized topology map remains unchanged.
[0082] by Indicates the device or node identifier, in Indicator The original measurement record set, with , and They represent the first The unified time stamp, measurement value, and unit of measurement of each record are used to... Indicates the number of records, organizing the measurement system records into ,in The record set is an integer index starting from 0. Power is expressed in MW, Mvar, or MVA, current in A, and voltage in kV. This record set is read by the candidate measurement index set and does not combine the identifiers and quantities of different dimensions into a numerical vector.
[0083] by Indicates the first sampling moment of the time window, with Indicates a 60-second sampling period, Integer index representing the sampling time, in Indicates the first Each sampling time, with Indicates the number of sampling times, according to Establish The sampling time sequence, in this specific embodiment Within the time window, the energized state of each switch, the connection terminal, and the effective time of the state remain unchanged; otherwise, the time window is re-divided based on the effective time of the state.
[0084] In sections where the current charged topology remains unchanged, the index is read from the original measurement record set to... Indicator At sampling time The candidate measurement index set within 30 seconds before and after, in order to Indicates the selected record index, Indicates the alignment measurement value, according to Construct candidate domains and according to Select the record with the smallest time difference.
[0085] in, This indicates selecting the record index from the candidate measurement index set that minimizes the time difference. The composite subscript x_a(q,k)^q represents the identifier. The The measurement values in the original measurement record are then processed according to... The assignment is performed to form aligned measurement values. When the candidate measurement index set is empty, the corresponding record is stopped from being used. When the time difference is the same, the record corresponding to the earliest timestamp is selected. The aligned measurement values are used for conversion of reverse load rate and node voltage per unit value.
[0086] Read the aligned measurement values, and according to the unique equipment identifier and sampling time, match the active power, reactive power, current and apparent power of the line or main transformer with the rated capacity of the same equipment in the equipment ledger. According to the unique node identifier and sampling time, match the node voltage with the agreed voltage reference of the corresponding node's voltage level. Only perform the conversion for records with an identifier, consistent measurement unit and positive rated capacity or agreed voltage reference.
[0087] Read the aligned measurement values and rated capacity and perform inverse load factor conversion to... Indicates the line or main transformer index, in and These represent the apparent power and current of the device at the sampling time, respectively. and These represent the rated apparent capacity and rated current in the equipment register, respectively. Represents the reverse load rate, calculated based on apparent power rating. Calculated based on rated current The obtained reverse load rate is a dimensionless value and is written into the baseline operating data. The apparent power of line 1 at the first sampling time is 8.2MVA and the rated apparent capacity is 10MVA. The reverse load rate is calculated to be 0.82, which is used to characterize the equipment load capacity when the power flow direction is from the photovoltaic access side to the upstream grid.
[0088] Read the node voltage and the agreed voltage reference, and perform node voltage per-unit conversion. Represents the node index, in The node voltage at the sampling time is represented by... Indicates the agreed voltage reference for the corresponding node, in order to Represents the per-unit value of node voltage, according to Dimensionless values are generated and written into the reference operating data. The node voltage of node 1 at the first sampling time is 10.2kV, and the agreed voltage reference is 10kV. The per-unit value of the node voltage is 1.02.
[0089] The reverse load factor and node voltage per-unit values, converted from alignment measurements, are organized in a fixed order. Represents the state column vector at the same sampling time, with Represents the running state matrix, according to Form a 6x1 column vector, where, , and These respectively indicate that the first line, the second line, and the main transformer are in the [number]th [location]. The reverse load rate at each sampling time. , and Identify the reverse load rate sequence for each corresponding device. , and These represent the first, second, and third voltage nodes at the [missing information - likely a number] times. The per-unit value of the node voltage at each sampling time. , and The voltage per-unit value sequence of the corresponding nodes is identified respectively, and then the transpose stacking method is used to... Form a 10x6 matrix. and These represent the state column vectors for the first and last sampling moments, respectively. Each column vector, after being transposed, becomes a 1x6 row vector, which is stacked sequentially along the time row without changing the order of the components. The matrix row axis corresponds to 10 sampling moments, and the first 3 columns of the column axis correspond to the reverse load rate of the 3 lines and the main transformer, while the last 3 columns correspond to the per-unit value of the node voltage of the 3 nodes. The operating state matrix is used to write the baseline operating data.
[0090] by This indicates the power flow records of the lines and main transformers saved according to equipment identification and sampling time. This represents a time window in which the current topology remains unchanged. This represents the baseline operating data corresponding to the live topology of the distribution network, which will be the data that has been formed. Organized with the current energized topology diagram, photovoltaic grid connection relationships, power flow records of lines and main transformers, and sampling time sequence. This provides topology and operational baseline verification data for low-amplitude active and reactive power testing.
[0091] As a further explanation, step S2 specifically involves: based on the trial verification input from S1 and using the 60-second unified time synchronization timeline, marking the trial time window as... Let the six discrete integer sampling position indices be denoted as Each sampling location corresponds to one of the six trial execution times.
[0092] Before issuing active and reactive power tests, the dispatching terminal first compares the switch positions, energized states, and connection points within the test time window with the current energized topology. Figure 1 Then, read the inverter capacity curve and ramp limit from the inverter ledger, read the current reverse load rate of the line and main transformer from the baseline operating data and combine it with the rated capacity to obtain the remaining load capacity, read the node voltage safety range from the operating limit table, and verify each proposed test point and determine the active and reactive test amplitudes of the photovoltaic access point. The obtained amplitude is called the verified test amplitude.
[0093] The verified test amplitude is input into the inverter, which reads and executes the test.
[0094] It should be noted that in this embodiment, the initial test amplitudes of active and reactive power are first set to two percent of the inverter's rated active power and the available reactive power at that time. Two sets of test commands are generated at the six sampling positions according to the sign order of active power positive, positive, negative, negative, zero, zero and reactive power positive, negative, positive, negative, positive, negative, positive, negative, so that the change order of the two power channels can be distinguished. The aforementioned constraint verification is then performed point by point at the six execution points.
[0095] Within the testing time window, if any verification result indicates that the corresponding test amplitude exceeds the inverter capacity curve, ramp limit, remaining load capacity of the line and main transformer, or the safe range of node voltage, the test amplitude of that power channel will be halved and re-verified. If the amplitude is lower than five-thousandths of the corresponding rated capacity and still fails to pass, the corresponding test will be cancelled and the cancellation reason will be written. The test amplitude obtained after all planned execution points have passed the verification will be used for issuing tests.
[0096] After verification and trial amplitude distribution, the actual active and reactive power from the photovoltaic inverter telemetry feedback are read, and the power channel column index of the actual execution quantity matrix is recorded as follows. The main symbol of the actual execution amount matrix element is denoted as , will the Line number The actual execution amount matrix elements of the column are denoted as The actual execution volume matrix is denoted as The matrix rows correspond to 6 sampling positions, and the first and second columns correspond to the actual active and reactive power changes, respectively, in MW and Mvar, for device response delay alignment.
[0097] For each actual execution sequence, the actual execution timestamp plus the corresponding line or main transformer equipment response delay is used as the target time. The measurement records within the same trial time window, 30 seconds before and after the target time, are sorted in ascending order of absolute time difference, and the first record is read. If the candidate record is empty, the corresponding execution record is discarded. If the absolute time difference is the same, the earlier timestamp record is read. In this way, the selected response record is obtained and corresponds to the 6-row 2-column actual execution quantity matrix according to the sampling position.
[0098] Arrange the selected response records in the same row order as the actual execution volume matrix to form a 6-row, 6-column aligned response matrix. Denote the column index of the response channel in the aligned response matrix as... The primary symbol of the aligned response matrix element is denoted as , will the Line number The alignment response matrix elements of the column are denoted as The alignment response matrix is denoted as The first three columns correspond to the load rate changes of two lines and one main transformer, respectively, while the last three columns correspond to the node voltage changes of three nodes, thus forming an aligned record set organized by access point, equipment, power channel, and time window.
[0099] For the current photovoltaic grid connection point and probing time window The aligned record set organized by access point, device, power channel, and time window is denoted as The set contains Each record contains 8 fields, hereinafter referred to as... Read in ascending order by sampling position index This forms a sequence of actual active and reactive power changes, as well as corresponding equipment load rate changes and node voltage changes. The eight fields correspond to the photovoltaic access point identifier, line or main transformer identifier, power channel identifier, test time window identifier, matrix row index, actual execution quantity, load rate change, and node voltage change, respectively. The actual execution quantity comes from inverter telemetry, and the latter two changes come from the measurement system of the same test time window.
[0100] During the trial period, the effective time of the switch status is continuously read. When a change in the switch status is detected within the trial time window, an invalid trial time window mark is formed. The active and reactive power changes actually performed by the photovoltaic inverter, as well as the corresponding changes in line or main transformer load rate and node voltage recorded within the trial time window, are discarded. The records before and after the change are not spliced into the same sequence. The entire window is discarded to trigger the acquisition of the energized topology of the distribution network after the switch status change.
[0101] Subsequently, the energized topology of the distribution network after the switch state change is obtained. The process is then followed by waiting for the topology to remain unchanged within the subsequent test time window. The active and reactive power test amplitudes are rechecked sequentially, and tests are reapplied. The actual execution matrix and aligned response matrix are then reconstructed using the new test time window identifier, and the new window record is written into the aforementioned... The defined 8-field structure is used to re-obtain the aforementioned active and reactive power change sequences, as well as the load rate change and node voltage change sequences. The resulting sequences are used to update the time correspondence between the actual execution quantity and the equipment load rate change in the subsequent trial time window.
[0102] The actual execution sequence of the photovoltaic inverter, bound by access point, device, power channel, and time window, along with the corresponding load rate change and node voltage change sequences, is used to form data that is the actual execution quantity and aligned with the device load rate change time. This data is then denoted as... It serves as the input for the measured load rate change caused by unit active or reactive power changes based on the access point, equipment, power channel, and time window.
[0103] As a further explanation, step S3 specifically involves reading the data formed in S2. ,in This is a 6-row, 2-column matrix representing the actual execution volume. This is a 6x6 aligned response matrix with the same sampling row sequence. The first 3 columns correspond to the dimensionless load rate changes of 2 lines and 1 main transformer. The two matrices, access point, device, power channel, and time window indexes, are read to form the measured load rate change tensor. .
[0104] The first The actual execution volume column vector of each power channel is denoted as follows: The power channel column index of S2 is used. The active channel is recorded as The reactive power channel is denoted as , will the The column vector of load rate changes for each line or main transformer is denoted as ;
[0105] ;
[0106] ;
[0107] in, Use the line or main transformer index from S1. , and sampling position index Following the meaning of S2, It is by No. Column The obtained 6-dimensional dimensionless column vector, its first... Each element and No. The system follows the same response delay correction time for each row. The system reads records for access points, devices, power channels, time windows, and sampling locations. If any location lacks actual execution volume or shows a load rate change, the entire window is excluded, ensuring... With each Each contains 6 one-to-one corresponding samples.
[0108] Construct the channel scale matrix and the dimensionless actual execution quantity matrix based on the actual execution amplitude of the two power channels, as shown in the following formula:
[0109] ;
[0110] ;
[0111] in, The two diagonal elements are the L2 norms of the active and reactive column vectors, respectively. This is a 6x2 dimensionless matrix after column normalization, where any diagonal element is zero and the entire window is excluded.
[0112] Before generating the measured load rate change, determine the effective time window.
[0113] First, read the switch position, energized state, and connection terminal from the start of the trial to the last response sampling time; any change in any of these will result in the entire window being excluded. Second, analyze the aforementioned dimensionless actual execution quantity matrix. Perform singular value decomposition to obtain the maximum and minimum singular values. , And calculate the condition number of the actual execution quantity matrix. .
[0114] ;
[0115] For dimensionless condition numbers, when season Third, extract 10 load rate samples of the corresponding equipment from the S1 baseline operating data, assuming the topology remains unchanged and no control variables are applied, before the trial. Calculate the sample standard deviation with the mean of these 10 samples as the center. Record the resulting baseline noise standard deviation as... The signal-to-noise ratio of the device response is denoted as And calculate.
[0116] ;
[0117] when Furthermore, when the 6-dimensional response vector is non-zero, the signal-to-noise ratio reaches positive infinity; when both are zero, the entire window is excluded, thus identifying the upper limit of the number of conditions in the configuration table. The error in the actual execution volume after matrix solution is determined to be no greater than the allowable error in load rate measurement, and the lower limit of signal-to-noise ratio is also considered. Determined based on the test response amplitude being higher than the reference noise amplitude; the same limit is used for the same measurement accuracy level, with the topology unchanged. All three devices meet the requirements. When the input is a finite value, the time window identifier, condition number, three signal-to-noise ratios, and valid flags are recorded and then entered into subsequent calculations. For other time windows, items that exceed the limit are recorded and then excluded.
[0118] For the effective time window, first divide the absolute value of the inner product of the two actual execution sequences by the product of the two L2 norms, and then denote the resulting orthogonality decision quantity as... As shown in the following formula:
[0119] ;
[0120] This generates and outputs a dimensionless decision quantity used to determine whether two trial sequences are orthogonal. The window is excluded when any column norm is zero; orthogonal tolerance. The ratio of the inverter's active and reactive power telemetry errors to the tested amplitude after this verification is determined and written into the identification configuration table. If the condition is met, the computation branch will be entered; otherwise, the non-orthogonal computation branch will be entered.
[0121] In the orthogonal computation branch, the first... The device for the first The change in measured load rate caused by a unit actual power change in each power channel is denoted as . And calculate in sequence;
[0122] ;
[0123] ;
[0124] The above formula yields The measured load rate change for orthogonal branches is excluded when the denominator is zero or the result is not finite.
[0125] The units for the active and reactive power channel results are load rate per MW and load rate per Mvar, respectively.
[0126] In the non-orthogonal computation branch, the channel scale matrix and dimensionless matrix formed by the actual execution quantity matrix are used as inputs for the th... Each device performs regularized least squares calculations to obtain the response results. As shown in the following formula:
[0127] ;
[0128] And restore the results with physical units.
[0129] ;
[0130] in, The results are 2D responses with non-orthogonal branches. It is a second-order identity matrix. For dimensionless regularization parameters, the identification configuration table stores a finite set of positive candidate values arranged in ascending order based on inverter model, measurement accuracy level, and test amplitude level. The measured response range of similar equipment is determined by the minimum and maximum values of the measured load rate changes obtained from at least two orthogonal test time windows that have passed validity checks prior to the current time window, using the current energized topology version, equipment type, and power channel as reading conditions. The time window identifier, upper and lower limits of the range, and the physical units of the corresponding power channels are stored. During offline repeated testing, candidate values are read sequentially, and the first candidate value that makes the coefficient matrix solvable and whose results for both power channels fall within their respective measured response ranges is selected as the optimal candidate. When there is a lack of valid historical results, first obtain an orthogonal trial time window to establish the corresponding range. The current non-orthogonal time window will not be included in the response calculation. If no qualified candidate value is found, the solution fails, or the result is not finite, the corresponding time window will be excluded.
[0131] Write the results of both branches into the measured load rate change tensor. The three axes correspond to one photovoltaic access point, two lines, one main transformer, and two power channels, respectively. The elements represent the changes in equipment load rate caused by the actual change in active or reactive power per unit and are bound to an effective time window. The unit of the active channel is the load rate per MW, and the unit of the reactive channel is the load rate per Mvar. The result record saves the access point, equipment, power channel, effective time window, calculation branch, value, and unit. The active and reactive power results are saved separately. This tensor is used by the equipment load rate output model to read according to the same index and corresponds item by item with the partial derivative of the corresponding trial amplitude.
[0132] To verify the local linearity within the low-amplitude test range, at least two effective time windows with different verified test amplitude levels are obtained under the same access point, the same equipment, and the same power channel. The absolute difference between the measured results of any two time windows is calculated, and the result is taken as follows:
[0133] ;
[0134] The first The allowable absolute error for load rate measurement of each device is denoted as . The first time window to participate in the comparison The minimum root mean square magnitude of the actual execution sequence of each channel is denoted as... and in accordance with A preset threshold is established, which uses the same unit as the measured result of the corresponding channel. After being determined according to the measurement accuracy level and trial amplitude, it is written into the identification configuration table. Local linear comparisons are not performed at this time.
[0135] for The same access point, the same equipment, and the same power channel, to For the target effective time window, the same charged topology, different low amplitude levels and containing Effective time windows consist of a set of comparison windows , will the Each channel within the time window The root mean square magnitude of the actual execution sequence is denoted as The sum of the load rate measurement allowable error and the reference noise is amplified according to the condition number of each comparison window to form the upper and lower bounds of the response, and the locally consistent measured load rate change is calculated.
[0136] ;
[0137] in, To ensure local consistency of measured load rate changes, the index and unit are compared with the target window. same, , , These are the access point, device, and power channel indices, respectively, with subscripts... , These represent the target window and the comparison window, respectively. The condition number of the dimensionless actual execution matrix. To allow for absolute error in load rate measurement, The standard deviation of the reference noise. To compare the root mean square amplitude of the actual execution sequence of the comparison window, the units for active and reactive power channels are MW and Mvar, respectively. The formula takes the midpoint between the lower bound maximum value and the upper bound minimum value of the response. When the lower bound maximum value is not greater than the upper bound minimum value... The equipment load rate output model is read using the same index; otherwise, the range of trial amplitudes is narrowed to obtain a valid time window again, or local relationships are formed according to adjacent amplitude intervals that meet the boundary.
[0138] As further explained, step S4 is as follows: based on the actual execution quantity of 6 sampling locations within the same effective time window, the time-aligned device load rate and node voltage sequence, and the measured load rate change tensor, the 3 voltage nodes in S1 are all bus nodes, and their node voltage is the bus voltage. Records are read according to photovoltaic access point, equipment, power channel and time window. If any sampling location is missing, the node identifier cannot be mapped to the current energized topology, or the value is not finite, the current batch is stopped and the missing quantity is not replaced with zero value.
[0139] The nodes in the diagram are arranged in a fixed order: 1 photovoltaic access point, 2 lines, 1 main transformer, and 3 busbars. and sampling location This forms the node input column vector.
[0140] ;
[0141] The first two items represent the actual active and reactive power changes of the inverter, in MW and Mvar respectively. The third and fourth items represent the reverse load rate of the equipment and the per-unit value of the bus voltage, both dimensionless. The last two items represent the active and reactive power flow of the line or main transformer, in MW and Mvar respectively. Only members not applicable to the corresponding node type are written to structure zero. If the actual source record is missing, the entire batch is still stopped. The column vectors are arranged by batch, sampling position, graph node, and input member. and order The four axes correspond to the batch, six sampling positions, seven graph nodes, and six input members, respectively. They are connected to the graph nodes at both ends according to the connection relationship of the current energized topology graph, forming a continuous control path for each node of the current energized topology graph.
[0142] A spatiotemporal graph neural control differential equation model is used to process continuous control paths. The model is applied at six sampling times along a 60-second unified time axis. Each node's input member is plotted as a natural cubic spline, and the coefficients of the cubic, quadratic, linear, and constant terms are stored in five adjacent intervals to obtain the continuous control path. Its rate of change, the integration interval is from the first to the sixth sampling time, a total of 300 seconds. The path value at the first time is transformed by two independent 6-input and 8-output linear transformations, forming a result with dimensions of... The initial values of the temporal and spatial hidden states are obtained. The temporal neural control differential equation drives the temporal hidden state with the continuous control path change rate. The spatial graph neural control differential equation updates the spatial hidden state according to the graph node connection relationship. Both vector fields use 8-dimensional hidden members and perform 4th-order Runge-Kutta integrals in 5 intervals. The state change rate is calculated at the starting point, two midpoints and the ending point of each interval and then updated according to the specified weights.
[0143] The same integration time point size is The time-hidden state is denoted as Time vector field pair The 8-dimensional state of each node is sequentially subjected to two 8-input, 8-output linear transformations and negative values are set to zero, then an 8-input, 48-output linear transformation is performed, and the output is recorded as... ,make The four axes correspond to the batch, graph node, hidden member, and path input member respectively. The time vector field is multiplied and summed with the path change rate at the same integration point on the six input members to obtain the time hidden state change rate.
[0144] Spatial updates use 4D trainable node embeddings corresponding to each graph node. The 7 nodes are embedded and transposed, then arranged row by row as follows: Its 7 rows correspond to the fixed node order, 4 columns correspond to the embedded members, and non-negative connection weights are formed for the node pairs.
[0145] ;
[0146] in, Directly taken from the current charged topology graph, the weights of non-directly connected nodes are reset to zero, the target node's self-connection remains at 1, and the weights are normalized along the source node of each target node. The denominator is positive due to the self-join; when there is no external join, only the self-join is retained, let , ,form The three axes correspond sequentially to the connection matrix category, target node, and source node. The graph convolutional connection array is used to aggregate the 8-dimensional hidden states of each source node. Then, 4-dimensional node embedding generates weights and 8-dimensional biases for each target node, two types of connection matrices, and eight input / output members. Aggregation is first performed along the source nodes, then summed along the connection matrix category and input members. The resulting... Aggregation results and the time-hidden state at the same integration point Element-wise addition, plus 8-dimensional node bias and hyperbolic tangent activation, forms a structure of size [size missing]. The rate of change of spatial state.
[0147] After integration, the spatial hidden state at the last sampling time is read, with the kernel size as... A single-input, single-output 2D convolution is used to generate the output of each graph node along the hidden members. Then, a Softplus function is used to generate a load rate output that is not less than 0 and has no upper limit. The equipment load rate output is obtained according to the node index of the two lines and one main transformer. The values corresponding to the busbar and photovoltaic access point are not used as equipment outputs. For the photovoltaic access point... Power Channel and time window The non-zero actual test amplitude and fixed test direction are determined by the six actual execution quantities of S2.
[0148] ;
[0149] ;
[0150] The corresponding power channel of the current photovoltaic access point is in the [number]th [section]. The path input for each sampling location is written as Maintain the direction of probing The current charged topology, other inputs and network parameters within the same time window remain unchanged, and the output is differentiated at the actual experimental amplitude.
[0151] ;
[0152] ;
[0153] The three axes of this partial derivative tensor correspond to the photovoltaic access point, two power lines and one main transformer, and two power channels, respectively. The active power channel is measured in MW of load rate, and the reactive power channel is measured in Mvar of load rate. The derivative is non-finite, the index is out of bounds, or the shape is not constant. Stop the current batch.
[0154] During training, only locally consistent measured load rate changes within the effective time window of the same photovoltaic test are retained. The corresponding terms of the finite partial derivatives form an index set. The system is checked item by item according to the access point, equipment, power channel, and effective time window. If the units at both ends are inconsistent or any item is missing, the process will not proceed. In this specific implementation, a positive weight of 1 is applied to each effective corresponding item to form a response constraint loss.
[0155] ;
[0156] ;
[0157] in, Read the time-aligned reverse load rate monitoring values of three lines or main transformers at the same last sampling time. Calculate the square of the difference between the load rate output and the monitoring value for each device and take the arithmetic mean. The load rate monitoring value can be greater than or equal to 1. If the value is empty, the update for this batch will not be executed. If the positive weight or total loss is not finite, the current batch will also be stopped. The response constraint loss constrains the partial derivative of the device load rate output within the same task loss, and does not form an independent sensitivity model.
[0158] A backpropagation is performed once for the same total loss. The gradient passes sequentially through the device load rate output layer, integral operation, spatial graph neural control differential equation, and temporal neural control differential equation. At the same time, the temporal vector field parameters, spatial vector field parameters, and device load rate output layer parameters are updated. In this specific implementation, Adam update is used, and the learning rate and weight decay are both 0.001. Training is stopped when the predetermined number of training rounds is completed or the loss has not improved for 15 consecutive rounds. If any gradient or updated parameter is not finite, the current batch update is canceled and the parameters before the update are retained.
[0159] After the parameters are updated, the same model is used to re-perform the forward calculation for the same continuous control path. Then, the derivative of the line or main transformer load rate output with respect to the same trial amplitude is calculated, forming an index by access point, equipment, power channel, and effective time window. Its shape and physical unit are consistent with the partial derivative before the update. If the input size, node index, time order or numerical finiteness does not meet the aforementioned conditions, the corresponding item will not be output. This partial derivative, along with the index and unit, is used to calculate the increase in load rate corresponding to one megawatt of newly added reverse active power according to the rules of newly added active power allocation and reactive power control.
[0160] As a further explanation, step S5 specifically involves: reading the partially derived values generated after the update. The current reverse load rate at the end of the same effective time window and the planned new active power allocation and reactive power control rules, the set of access points is as follows: Device Index Corresponding to 2 lines and 1 main transformer respectively, the input partial derivatives are maintained. The structure is such that the active and reactive power channels are in units of load rate per MW and load rate per Mvar, respectively. The current batch will be terminated if the shape, index, unit or value are inconsistent.
[0161] When reading partial derivatives according to time window identifiers, For composite indexes, after fixing the access point axis to the access points in this set, the response slices obtained by device row and power channel column are defined as follows: Its shape is The three rows are in the same order as the device identification table, and the two columns correspond to the active and reactive channels respectively. The current reverse load rate is read from the valid sampling position at the end of the same time window. When there are multiple records for the same device, only records with the same time window identification and the end sampling time are accepted. If there is no unique corresponding item, the calculation for the device is stopped.
[0162] The newly added active power allocation rule is configured for each access point and is denoted as follows. The non-negative allocation coefficient is read from the photovoltaic new active power allocation table of the current scheduling scheme and bound to the partial derivative with the access point identifier and time window identifier. First, the allocation coefficients of all access points are read, then normalized using the sum of the coefficients as the denominator, so that the sum of the new active power allocation of each photovoltaic access point is one megawatt. Indicates access point The newly added active power allocation, where the superscript add indicates the new amount, and MW represents megawatts.
[0163] ;
[0164] ;
[0165] ;
[0166] There is only one access point this time, and its allocation coefficient is defined as follows: and with This represents the newly added active power allocation for access point 1, therefore No control quantity is generated when the coefficient is missing, negative, or the sum is not positive. The predetermined reactive power control rule uses the current control mode and operating point of the access point as the lookup key, and reads the data. The incremental reactive power to incremental active power ratio is expressed in Mvar / MW. Indicates access point The reactive power change, where the superscript ctl represents the control variable, and is calculated according to... If the reactive power change is determined, and no corresponding ratio can be found, or the obtained reactive power change is not finite or exceeds the executable range given by the rule, the current batch shall be stopped.
[0167] The current control mode in the lookup table key is taken from the constant power factor, constant reactive power, or voltage-reactive power control flags that the inverter is currently executing. The operating point selects the active power range specified in the control table, using only entries with identical key values. If the control table directly provides the reactive power change, that value is read as... If a ratio is given, the reactive power change is generated by the aforementioned multiplication. The two forms are not used in the same batch. Thus, the total new active power is normalized to one megawatt and only applies to the active power allocation. The reactive power change is determined by the selected predetermined reactive power control rules. The normalization of new active power and reactive power control maintain the metering caliber of MW and Mvar, respectively.
[0168] The newly added active power allocation and reactive power changes at each access point are organized into a control matrix according to the access point row and active power and reactive power channel columns, where This represents a one-row, two-column real number control matrix for the current time window, where... , The first column of this matrix has units of MW and the second column has units of Mvar. It is only used to multiply the partial derivatives of the same access point and the same power channel item by item, and is not directly added between the two columns to obtain the original control quantity.
[0169] For each line or main transformer, the partial derivatives of the active and reactive power channels are multiplied by the corresponding control quantities, and then the products are summed according to the photovoltaic access point. In the formula, This represents the partial derivative of the active power channel. This represents the partial derivative of the reactive power channel. , , These represent the photovoltaic access point, equipment, and time window indexes, respectively. This indicates the increase in equipment load rate corresponding to one megawatt of newly added reverse power transmission.
[0170] ;
[0171] First, multiply the two power channels within the same access point, then add them together and reduce along the access point dimension. Both products are dimensionless load rate changes. Define the vector of the increase in device load rate as... The only axis of this column vector is the equipment axis, with an axis length of 3. Its three components correspond to two lines and one main transformer, respectively. When the partial derivative is inconsistent with the number of access points or channels of the control matrix, or when any product is not finite, the load rate increase of the corresponding equipment is not output.
[0172] In this single access point configuration, the access point index is still retained to allow for the output of traceable allocation and reactive power control rules. When the value is positive, zero, or negative, it indicates that the equipment reverse load rate increment corresponding to the 1MW of reverse active power transmission along the control direction is positive, zero, or negative, respectively, calculated according to the local relationship adopted. Based on this, it enters the allowable quantity branch and is not sorted in this step.
[0173] Read from the baseline operating data corresponding to the same time window and device identifier. This represents the current reverse load rate, a dimensionless value based on rated capacity. The superscript "cur" indicates the current value, and is calculated according to... Arrangement, and The equipment rows are matched item by item. First, the current reverse load rate is compared with the rated value of 1. Then, the sign of the increase in load rate is determined: if the current reverse load rate reaches the rated value, that is... At that time, with This indicates that the equipment is allowed to add reverse active power, and this is set to 0 MW. The superscript "allow" indicates the allowable amount. When the current reverse load rate is lower than the rated value and the load rate increase is positive, it is calculated according to the following formula:
[0174] ;
[0175] The computing device allows for the addition of reverse active power. The numerator is the remaining reverse load margin, and the denominator is the dimensionless increase in load rate caused by each additional megawatt of reverse active power. The unit of the result is MW. The value is only written when the denominator is greater than 0 and the quotient is a positive finite value.
[0176] when and When division is not performed, the corresponding line or main transformer is determined to not constitute a finite constraint under the newly added active power allocation and reactive power control rules. This state is saved as an independent "not constituting a finite constraint" state, and the allowable value is left blank so that subsequent sorting only processes zero values and positive finite values.
[0177] Define the output record of each device as The four members are, in order, equipment identifier, time window identifier, allowable value, and constraint status. When the rated value is reached, 0MW is recorded and the status is recorded as zero. When the quotient is a positive finite value, the quotient is recorded and the status is recorded as finite constraint. When no finite constraint is formed, the allowable value is left blank and the corresponding status is recorded. When the current reverse load rate is missing or non-finite, the equipment identifier fails to correspond, or the result of division is non-finite, the equipment is marked as invalid data and the calculation is terminated. The output set only receives valid records. The allowable new reverse active power and constraint status of the three equipments are handed over to the interface that arranges the lines and main transformers in ascending order of allowable value and processes the equipment within the error range in parallel.
[0178] As a further explanation, step S6 specifically involves: reading the device output record generated in S5. ,in This corresponds to two lines and one main transformer, respectively. Permissible quantity in MW units. For records in states of zero value, finite constraints, or no finite constraints, the device identifier and valid time window identifier are used as joint reading conditions. Only one record is accepted under the same condition. A zero allowable value must correspond to a zero value state. A positive finite allowable value must correspond to a finite constraint state. When no finite constraints are formed, the allowable value is left blank. If a record is missing, duplicated, has a negative allowable value, is inconsistent with the state, or has a non-finite value, the output of the current time window is stopped, and the records that pass the verification enter the finite value sorting.
[0179] Under the newly added active power allocation and reactive power control rules, zero-value or finite-constraint devices are first selected from the verified records. Then, the device identifiers are bound to the corresponding allowable quantities and arranged stably from small to large according to the allowable quantities. When the original allowable quantities are equal, the order in the input records is maintained. During the arrangement, the device identifier, allowable quantity, and constraint status move synchronously and remain corresponding. The resulting finite device sequence is used for error parallel processing and reading. Devices that do not constitute finite constraints are followed by the finite device sequence and their status is retained, but they do not obtain the finite allowable quantity ranking. This succession sequence is used for terminal encapsulation and reading.
[0180] The absolute error allowed for load rate measurement can be read from the measurement accuracy configuration table of the corresponding line or main transformer, and is used accordingly. This indicates that after the model parameters are updated, within a valid validation time window that is separate from the training time window and has the same topology version, data is read according to the access point, device, and power channel. and Calculate the absolute difference between the two, and save the maximum absolute difference of the same group of verification time windows as the allowable calculation error of the corresponding partial derivative under this topology version. The configuration record simultaneously saves the topology version, access point, device, power channel, unit, and the range of the verification time window used, as well as the current time window. Read the value based on the topology version and the first three types of indexes, and record it as follows: Its unit is the same as the corresponding partial derivative. No error value is generated when there is no valid verification record for the same topology version. The corresponding equipment is treated as a separate order according to the rules described later. Both types of errors are non-negative finite numbers. The partial derivative calculation error is converted according to the same newly added active power allocation and reactive power change used in the previous steps. The resulting error in the load rate increase corresponding to one megawatt of newly added reverse active power is... It means that, among them, This represents the set of access points for the current time window. and These represent the partial derivative errors of the active and reactive power channels, respectively. and These represent the newly added active power allocation and the change in reactive power, respectively.
[0181] ;
[0182] If any error term, control quantity, or index is missing, the permissible error range for the corresponding device will not be established.
[0183] For those with 0 or a positive finite allowable quantity and satisfying The equipment, Indicates the lower bound of the allowable quantity. Indicates the upper limit of the allowable quantity. This indicates the current reverse load rate, calculated based on the current reverse load rate, the allowable error of load rate measurement, the increase in load rate, and its calculation error.
[0184] ;
[0185] ;
[0186] ;
[0187] The unit for both boundaries is MW, and the half-width of the allowable error range for the equipment is denoted as... and calculate as When the lower bound of the denominator is not positive, the upper and lower bounds are not finite, or the upper bound is less than the lower bound, the original finite allowable quantity is retained and the device is treated as a separate item and is not included in the error calculation.
[0188] For any two finite devices in an ascending sequence and Calculate the absolute difference of the allowable quantity, where the subscript... , These represent the first and second devices in this comparison, respectively. , This indicates the allowable quantity for both devices. , This indicates the half-width of each error range.
[0189] when When two devices are grouped into the same parallel order, and three devices are compared, they are read one by one in ascending order. When a device is added, it is added to the group only if it meets the above conditions with every device in the current parallel group. Otherwise, the next order is established. The order within a group is kept stable, and the order between groups is increased according to the minimum allowable amount of each group. If any error is missing, the corresponding device is treated as a separate order. After the error is paralleled, the sorting results are saved according to the device identifier, allowable amount, half width of allowable amount error range and the order of parallel members to form the power flow bottleneck device sorting. When all devices do not constitute a finite constraint, the sorting is set to an empty sequence and 3 records of state that do not constitute a finite constraint are retained for terminal encapsulation and reading.
[0190] In this specific embodiment, the locally consistent measured load rate change formed by S3 is taken as the measured load rate change obtained by subtracting the partial derivative after the parameter update. This indicates locally consistent measured load rate changes based on a combined index of photovoltaic access point, line or main transformer, active or reactive power channels, and effective time window. This represents the partial derivative of the device load rate output after parameter updates are completed under the same composite index. The difference in response obtained by subtracting the latter from the former is denoted as . The resulting response difference is used for subsequent permutation and reading.
[0191] ;
[0192] First, subtract each item according to the composite index, then arrange the differences of each response as follows: The response difference indicates the degree of inconsistency between the measured response and the updated partial derivative. The three axes correspond to one photovoltaic access point, two lines, one main transformer, and two power channels, respectively. The active channel is in units of load rate per MW, and the reactive channel is in units of load rate per Mvar. If the indices, shapes, or units at both ends are inconsistent, or if any value is not finite, the joint output of the current time window is stopped.
[0193] Finally, the system sequentially encapsulates the power flow bottleneck device sorting with parallel order, the state records that do not constitute finite constraints, and the response differences that retain four types of indexes, which serve as the input for the scheduler to determine the priority adjustment of devices.
[0194] Based on the above technical solution, the embodiments of the present invention provide specific implementation methods:
[0195] refer to Figures 4 to 8 It should be noted that: Figure 4 The horizontal axis represents the change in locally consistent measured load rate caused by the change in unit actual power, the vertical axis represents the partial derivative of the model equipment load rate output with respect to the corresponding trial amplitude, the dashed line represents the ideal consistency line when the two are completely consistent, and the sample distribution before and after parameter update is used to characterize the corrective effect of response constraints on the consistency of partial derivatives of active and reactive power channels.
[0196] Figure 5 The horizontal axis represents the trial time windows arranged in chronological order, and the vertical axis represents the allowable additional reverse active power of the equipment calculated under the predetermined rules for additional active power allocation and reactive power control. Different curves correspond to each line and main transformer, respectively. The exclusion window represents the time window that is not included in the calculation due to topology changes, missing data, or data quality not meeting the requirements.
[0197] Figure 6 The horizontal axis represents the complete model, the model with measured response constraints removed, the model with fixed topology connection weights, and the model with both of the above removed. The vertical axis represents the average absolute error of load rate, response consistency error, first-to-last consistency rate of bottleneck equipment, and ranking rank correlation coefficient, respectively. The scatter plots and error lines represent the distribution and statistical fluctuations of the indicators obtained from different operating seeds.
[0198] Figure 7 The horizontal axis represents the issued active power test command and reactive power test command, respectively, and the vertical axis represents the actual active power change and actual reactive power change fed back by the inverter telemetry, respectively. The dashed line represents the ideal execution line when the command value is equal to the actual execution amount. The deviation of the sample from the ideal execution line is used to verify the test execution quality and the validity of the actual execution amount label.
[0199] Figure 8 The horizontal axis represents the total active power injection of photovoltaic power, the vertical axis represents the maximum reverse load rate of the reverse transmission channel, the scatter color represents the lowest node voltage under the corresponding operating condition, the scatter size represents the trial execution amplitude, the isodensity lines and edge density curves represent the distribution of the operating samples in phase space, and the rated capacity boundary is used to distinguish the reverse load state that has not reached the rated value and has reached or exceeded the rated value.
[0200] This embodiment selects a 10 kV reverse transmission channel with 3 photovoltaic access points. The rated active power of the 3 photovoltaic access points are 4.5 MW, 7 MW and 10 MW respectively. The channel includes 3 lines, 1 main transformer and 4 bus nodes. The 4 bus nodes are the voltage nodes in this embodiment. The node voltage is the corresponding bus voltage. The rated capacities of the 3 lines and 1 main transformer are 5.5 MVA, 9 MVA, 12.5 MVA and 16 MVA respectively. The photovoltaic access points, buses, lines and main transformer are all used as graph nodes in the current live topology diagram. 11 graph nodes are formed according to a fixed node order. The actual live connections between the photovoltaic access points and their respective buses, buses and lines and buses and main transformers form the connection relationships in the diagram. After the switch position changes, the live topology is obtained again and a new topology version is generated. Data from different topology versions are not spliced into the same continuous control path.
[0201] The distribution automation system outputs switch positions, energized status, connection terminals, and status activation times every 60 seconds. The equipment ledger stores photovoltaic access relationships, line and main transformer rated capacities, bus voltage references, inverter rated active power, capacity curves, and ramp limits. The measurement system outputs active and reactive power flow of lines and main transformers, as well as bus voltage. The inverter control interface stores active and reactive power test commands and their reception times, actual active and reactive power, and execution status. All systems use the same time source and use topology version, time window identifier, sampling time, and device or node identifier as joint reading conditions. When multiple records exist under the same joint condition, the record with the smallest time difference from the target sampling time and qualified data quality is selected. When the time differences are the same, the earlier record is selected. If a unique valid record cannot be formed, the corresponding time window is excluded.
[0202] Before each test, the operating data of the 10 uncontrolled sampling moments prior to the current time window are read. The current reverse load rate, remaining capacity, and reference noise standard deviation of the line and main transformer are calculated. The node voltage safety range and the current available reactive power of the inverter are also read. To ensure that the 6-row, 2-column actual execution matrix in Example 1 is still used for multi-PV scenarios, only one PV access point is selected for testing in each time window, while the remaining PV access points maintain the reference output. The three PV access points are rotated according to the time window. The initial active power test of the tested PV access point is as follows. The amplitude is taken as 2% of its rated active power, and the reactive power test amplitude is taken as 2% of its current available reactive power capacity. The six sampling positions are spaced 60 seconds apart. The active power channel uses the sign sequence of positive, positive, negative, negative, zero, zero in sequence, and the reactive power channel uses the sign sequence of positive, negative, positive, negative, positive, negative in sequence. If any point to be executed exceeds the inverter's capacity curve, ramp limit, equipment remaining load capacity, or node voltage safety range, the corresponding amplitude is halved and rechecked. If the amplitude is lower than 0.5% of the corresponding rated capacity and still fails the check, the test is cancelled.
[0203] After the test is issued, the inverter telemetry feedback is used as the actual execution quantity, and the command value is not used to replace the actual execution quantity. The actual active power change and actual reactive power change of the current photovoltaic access point at 6 sampling positions are arranged in chronological order to form a 6-row 2-column actual execution quantity matrix. For each line and main transformer, the actual execution time plus the pre-calibrated equipment response delay is used as the target time. The load rate and node voltage with the smallest time difference are selected within 30 seconds before and after the target time and recorded. An aligned response matrix is formed according to the same sampling position order as the actual execution quantity matrix. For photovoltaic access points other than the current photovoltaic access point, the measured load rate change label for that time window is not generated, and the corresponding position is set to invalid in the valid item label of the same shape. Therefore, the response label is still saved uniformly according to photovoltaic access point, line or main transformer, power channel and time window, but only the valid items of the current photovoltaic access point participate in the training.
[0204] This embodiment obtains 36 test time windows. Each sampling record saves at least the record identifier, topology version, time window identifier, unified time synchronization timestamp, sampling location, device or node identifier, node type, rated value and unit, active power, reactive power, reverse load rate, node voltage per unit value, actual active power change, actual reactive power change, switch status, and data quality. If a switch change occurs between the start of the test and the last response sampling time, the entire window is excluded. If any necessary source record is missing, it is not replaced with a zero value. If the actual execution matrix condition number of the current tested photovoltaic access point is greater than 10, or if the response signal-to-noise ratio of any line or main transformer is less than 10 dB, the entire window is also excluded. The excluded record retains the time window identifier and the reason for exclusion, but does not participate in model training and bottleneck ranking. This embodiment retains 32 effective time windows according to the above rules.
[0205] For the effective time window, first check whether the actual execution sequences of active and reactive power meet the orthogonal tolerance. If the orthogonal tolerance is met, calculate the sum of the products of the actual execution sequence and the equipment load rate change sequence according to the corresponding sampling position, and divide by the sum of the squares of the actual execution sequences to obtain the measured load rate change caused by the unit actual power change. If the orthogonal tolerance is not met, use regularized least squares to separate the responses of the active and reactive power channels, and then compare the results of the same photovoltaic access point, the same equipment, and the same power channel at different low amplitude levels. If the comparison results have a common range determined by the load rate measurement allowable error, reference noise, and condition number, form a locally consistent measured load rate change based on this common range; otherwise, reduce the trial amplitude or process them separately according to adjacent amplitude intervals.
[0206] The model reads 8 effective time windows per batch, with batch size denoted as B, number of photovoltaic access points denoted as P, total number of lines and main transformers denoted as L, and number of graph nodes denoted as [missing information]. In this embodiment, B is 8, P is 3, and L is 4. The number of sampling positions is 6, the number of input members is 6, the number of time and space hidden members is 8, the node embedding dimension is 4, the number of connection matrix categories is 2, and the 6 input members of each graph node are, in order, actual active power change, actual reactive power change, reverse load rate, node voltage per unit value, active power flow and reactive power flow. The input tensor is arranged as B×6×11×6 according to batch, sampling position, graph node and input members. Only members that are not applicable to the corresponding node type are written with structure zero. Missing source measurements are not replaced by structure zero. The input size of Example 1 is 1×6×7×6. In this example, only the batch axis and node axis are expanded. The 6 sampling positions, 6 input members and their arrangement order remain unchanged.
[0207] Natural cubic splines are constructed for the six input members of each node along a unified time axis. Cubic, quadratic, linear, and constant terms are stored in five adjacent intervals. The spline coefficient tensor size is B×5×11×6×4. The node inputs at the first sampling time undergo two independent 6-input, 8-output linear transformations to obtain initial values of the temporal and spatial hidden states, both of size B×11×8. The temporal vector field is then subjected to 8-input, 8-output linear transformations, ReLU activation, a second 8-input, 8-output linear transformation, ReLU activation, and an 8-input, 48-output linear transformation. Rearrangement and hyperbolic tangent activation are then performed to form a B×11×8×6 temporal change mapping. This mapping and the spline path change rate are multiplied by a matrix on the six input members to obtain the temporal hidden state change rate.
[0208] The spatial vector field sets a 4-dimensional trainable node embedding for each graph node. All node embeddings are multiplied with their transposes, and the resulting negative values are zeroed using ReLU. This result is then multiplied element-wise with the direct connection mask of the current charged topology, while non-direct connection positions remain zero. Target nodes are added with self-connections and normalized along the source nodes, forming a topology-constrained non-negative trainable connection matrix. Simultaneously, the identity matrix is retained as a second-class connection matrix. The two types of connection matrices form a 2×11×11 connection array. Each 4-dimensional node embedding undergoes a 4-input, 136-output linear transformation. The first 128 terms are rearranged into two groups of 8-input and 8-output weights, and the last 8 terms are used as node biases. The spatial hidden state is first multiplied by the two types of connection matrices, then multiplied by the corresponding node weights and summed along the connection matrix categories. The resulting B×11×8 aggregated result is added element-wise to the B×11×8 temporal hidden state at the same integration time point, then the node bias is added and hyperbolic tangent activation is performed to obtain the B×11×8 spatial hidden state change rate. Both the temporal and spatial hidden states are updated using the fourth-order Runge-Kutta method within 5 spline intervals.
[0209] After integration to the last sampling time, the spatial hidden state is rearranged into B×1×11×8. A single-input, single-output 2D convolution with a kernel size of 1×8 is used to compress the 8 hidden members of each graph node into 1 output. This output is then processed by the Softplus function to form a load rate output that is not less than 0 and has no upper limit. The load rate outputs of 3 lines and 1 main transformer are obtained according to the node index, forming a B×4 equipment load rate output. For each valid test channel, the root mean square of the 6 actual execution quantities is used as the actual test amplitude. Each actual execution quantity is divided by this amplitude to obtain a fixed test value. The direction is determined, and the corresponding path input is represented as the product of the fixed test direction and the actual test amplitude. The test direction, topology, and other inputs remain unchanged. The derivative is automatically calculated at the actual amplitude to form a B×3×4×2 partial derivative of the equipment load rate output. Each axis corresponds to the batch, photovoltaic access point, line or main transformer, and two power channels: active and reactive. Only the corresponding item of the currently tested photovoltaic access point is marked as valid. This structure is a direct extension of the 1×3×2 partial derivative tensor in Example 1 on the access point axis and the equipment axis. The hidden dimension, the number of power channels, and the derivative object remain unchanged.
[0210] Training supervision includes the device reverse load rate at the last sampling time and the locally consistent measured load rate change. The former is calculated with the B×4 device load rate output, and the squared difference is averaged for each device. The supervision value is allowed to reach or exceed 1. The latter is calculated with the partial derivative of the B×3×4×2 device load rate output, and the squared difference is calculated with the same index. Only valid items of the same shape are marked as valid positions and participate in the calculation. The weight of the response constraint loss in the total loss is 0.4. The 32 effective time windows are divided into 22 training windows, 5 validation windows and 5 test windows according to the occurrence time. The same time window and its two types of supervision data are included in the same set. When the last batch has less than 8 time windows, the average value within the batch is calculated based on the actual number. Adam is used to update parameters. The learning rate and weight decay are both set to 0.001. Training stops when the validation loss does not improve for 15 consecutive rounds. The network parameters, topology version, node order and unit table with the lowest validation loss are saved.
[0211] Under the conditions of consistent data partitioning, network initialization rules, batch size, and stopping conditions, the following models were run: the complete model, the model with measured response constraints removed, the model with directly connected trainable weights fixed to 1, and the model with both of the above removed. Each setting used 5 independent random seeds and retained the seed numbers. The results were averaged. For each test window, the output was read once every 1 second along a 300-second continuous control path, resulting in 301 evaluation time points including both endpoints. The 5 test windows and 5 runs generated a total of 7525 ranked evaluation samples. The load rate benchmark value at each evaluation time point was obtained from the measurement sampling sequence of the corresponding device according to the same natural cubic spline used for the model input. The load rate MAE was the average absolute value of the difference between the model load rate output and the benchmark value. The response consistency error was the average absolute value of the difference between the partial derivative after the update on the effective index and the locally consistent measured load rate change. The reference ranking was formed using the load rate benchmark value at the same evaluation time point, the locally consistent measured load rate change, and the same new active power allocation, reactive power control, and parallel rules as the online end. The bottleneck Top-1 consistency rate was the percentage of samples where the first device of the model ranking and the reference ranking were the same. The ranking was Kendall. This is the average of the sample-by-sample rank correlation coefficients between the two.
[0212] Model settings Load factor MAE Response consistency error Bottleneck Top-1 Consistency Rate Sorting Kendall Complete model 0.00969 0.00381 0.9677 0.9513 Remove measured response constraints 0.01359 0.01881 0.8163 0.8247 Fixed topology connection weights 0.01444 0.00974 0.8532 0.8668 Remove both items simultaneously 0.01890 0.02499 0.7179 0.7458
[0213] The latest effective continuous control path is obtained online under the same topology version. The equipment load rate output partial derivative is regenerated using the updated model. The newly added active power allocation of the three photovoltaic access points is normalized to a total of 1 MW. Then, the partial derivatives of the two power channels are combined according to the predetermined reactive power control rules to obtain the load rate increase of each line or main transformer. When the current reverse load rate reaches the rated value, the allowable new reverse power is recorded as zero. When the current reverse load rate is lower than the rated value and the load rate increase is positive, the difference between one and the current reverse load rate is divided by the load rate increase to obtain the allowable new reverse power. When the current reverse load rate is lower than the rated value and the load rate increase is not positive, it is recorded as not constituting a finite constraint. The finite allowable quantities are arranged in ascending order and grouped into parallel order according to the load rate measurement allowable error and the partial derivative calculation error. The bottleneck equipment ranking, constraint status, and the difference between the locally consistent measured load rate change and the updated partial derivative are output.
[0214] The complete model in the table outperforms all ablation settings in all four indicators. The measured load rate change constraint makes the partial derivative of the equipment load rate output close to the low-amplitude trial response. The topology-constrained non-negative trainable connection weights enable the model to distinguish the influence transmission of different connection levels in the reverse transmission channel. The two work together to provide a verifiable bottleneck ranking basis for determining the priority adjustment objects when multiple levels of equipment are simultaneously under reverse heavy load.
[0215] Example 2
[0216] Figure 9 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0217] like Figure 9As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0218] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0219] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the reverse power flow bottleneck device identification method based on a neural control differential equation model.
[0220] In some embodiments, the reverse flow bottleneck device identification method based on a neural control differential equation model can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the reverse flow bottleneck device identification method based on a neural control differential equation model described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the reverse flow bottleneck device identification method based on a neural control differential equation model by any other suitable means (e.g., by means of firmware).
[0221] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0222] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0223] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0224] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0225] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0226] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0227] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for identifying reverse power flow bottleneck devices based on a neural control differential equation model, characterized in that, include: S1: Obtain the distribution network topology, photovoltaic access relationships, power flow of lines and main transformers, reverse load rate, and node voltage; S2: Within a time window where the topology remains unchanged and the constraints of the equipment, voltage, and inverter are satisfied, apply distinguishable low-amplitude active and reactive power probes to the photovoltaic access point, record the actual execution amount, and align it with the time of equipment load rate change. S3: Based on the actual execution volume and load rate changes aligned with the access point, equipment, power channel, and time window, form the measured load rate change caused by the unit active or reactive power change, excluding topology changes, the condition number of the actual execution volume matrix, or time windows with signal-to-noise ratio exceeding the limit. S4: The continuous control path of each node in the current energized topology is constructed using the actual execution amount and aligned load rate and node voltage sequence. The partial derivative of the equipment load rate output with respect to the photovoltaic test amplitude is calculated by the spatiotemporal graph neural control differential equation model. According to the same index, the positive weighted square difference between the measured load rate change and the partial derivative is added to the equipment load rate task loss of the same model. The same model parameters are updated by backpropagation, and the corresponding partial derivative is formed by the updated same model. S5: According to the predetermined rules for new active power allocation and reactive power control, the total new active power is one megawatt. The load rate output partial derivative formed after the combination update is used to obtain the load rate increase corresponding to one megawatt of new reverse active power. The remaining reverse load rate margin is divided by the positive load rate increase to obtain the allowable new reverse active power of the equipment. S6: Arrange the lines and main transformers in ascending order according to the allowable amount, and list the devices whose allowable amount difference is within the error range determined by the load rate measurement error and the partial derivative calculation error in parallel. Output the power flow bottleneck device ranking and the difference between the measured load rate change and the above partial derivative.
2. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S1 specifically refers to: The distribution network topology is obtained from the distribution automation system; the connection relationship between the photovoltaic access point and the line and main transformer, as well as the rated capacity of the line and main transformer, are obtained from the equipment ledger; and the power flow and node voltage of the line and main transformer with unified time synchronization timestamps are obtained from the measurement system. Within the time window during which the power distribution network topology remains unchanged, the power flow of each line or main transformer is matched with the rated capacity of the equipment according to the unique equipment or node identifier and the sampling time, and the node voltage is matched with the node and the agreed voltage reference. Based on the rated capacity of each line or main transformer, the power flow of the equipment is converted into the reverse load rate, and the node voltage is converted into a per-unit value according to the agreed voltage reference. The reverse load rate and the per-unit value of the node voltage are written into the reference operating data corresponding to the power distribution network topology according to the equipment or node identification and sampling time, forming the current power topology diagram and the reference operating data.
3. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S2 specifically refers to: Before issuing active and reactive power tests, verify the distribution network topology, inverter capacity curves, ramp limits, remaining capacity of lines and main transformers, and safe range of node voltages within the test time window. Determine the active and reactive power test amplitudes for each photovoltaic access point based on the verification results. Record the actual active and reactive power changes executed by the photovoltaic inverter, adopt a unified time axis, and correspond each actual execution sequence with the load rate change and node voltage change of the line or main transformer within the same test time window according to the delay of the test action to the equipment response. Based on the records of photovoltaic access point, line or main transformer, power channel and test time window, a sequence of active and reactive power changes actually executed by the photovoltaic inverter is formed, as well as the corresponding sequence of line or main transformer load rate changes and node voltage changes.
4. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 3, characterized in that, When a switch state change is detected within the test time window, the active and reactive power changes actually performed by the photovoltaic inverter, as well as the corresponding line or main transformer load rate changes and node voltage changes recorded within that test time window, are discarded. The distribution network topology after the switch state change is obtained. In the subsequent test time window where the distribution network topology remains unchanged, the active and reactive power test amplitudes are rechecked and the test is reapplied. The active and reactive power change sequences actually performed by the photovoltaic inverter, as well as the corresponding line or main transformer load rate changes and node voltage change sequences, are re-obtained according to the photovoltaic access point, line or main transformer, power channel, and the subsequent test time window identifier.
5. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S3 specifically refers to: The active and reactive power changes actually performed by the current photovoltaic access point under test within the same time window are organized into two columns of actual execution quantity matrices according to the sample time, and the sample time of the two columns corresponds to the sample time of the load rate change of each line or main transformer. When the L2 norm of both columns is not zero, divide each column by its own L2 norm to form a dimensionless actual execution matrix, and calculate the condition number of the dimensionless actual execution matrix. Determine whether the actual active power change sequence and the actual reactive power change sequence of the current tested photovoltaic grid connection point are orthogonal to each other; When the two sequences are orthogonal to each other, the inner product of each actual execution sequence and the corresponding line or main transformer load rate change sequence aligned with time is calculated, and then divided by the inner product of the actual execution sequence itself to form the measured load rate change of the corresponding power channel. When the two sequences are not mutually orthogonal, regularized least squares calculation is performed on the corresponding line or main transformer load rate change sequence aligned with the actual execution quantity matrix and time to form the measured load rate change of the two power channels of active and reactive power, where the regularization parameter is a positive value. The measured load rate change caused by the actual unit active or reactive power change is indexed according to photovoltaic access point, line or main transformer, power channel and effective time window. The unit of active channel is load rate per megawatt, and the unit of reactive channel is load rate per megavar. Under the same electrified topology, the same photovoltaic access point, the same line or main transformer, and the same power channel, at least two effective time windows with different low amplitude levels are obtained. The maximum absolute difference between the measured load rate changes of each effective time window is calculated. When the maximum absolute difference does not exceed a preset threshold, one of the effective time windows is taken as the target time window. The effective time window containing the target time window is taken as the comparison window. The condition number of the dimensionless actual execution matrix of each comparison window is multiplied by the sum of the load rate measurement allowable error of the corresponding device and the reference noise standard deviation calculated from the load rate sample without control before the device is tested. This is then divided by the root mean square amplitude of the actual execution sequence of the power channel to obtain the response allowable deviation of each comparison window. The corresponding response allowable deviation is subtracted from and added to the measured load rate change of each comparison window to form the response lower bound and response upper bound. When the maximum value of each response lower bound is not greater than the minimum value of each response upper bound, the midpoint between the maximum value of the response lower bound and the minimum value of the response upper bound is taken to form a locally consistent measured load rate change with the same index and physical unit as the target time window.
6. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 5, characterized in that, In each of the effective time windows involved in the comparison, when the root mean square amplitude of the actual execution sequence of the power channel is greater than zero, the preset threshold is obtained by dividing twice the allowable error of the load rate measurement of the corresponding device by the smallest root mean square amplitude.
7. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S4 specifically refers to: The active and reactive power changes actually performed by the photovoltaic inverter in the same photovoltaic test, as well as the time-aligned line or main transformer load rate and bus voltage sequence, are corresponding to the graph nodes of the current energized topology according to the same time window and equipment identifier. The graph nodes are then connected according to the connection relationship of the current energized topology to form a continuous control path for each node of the current energized topology. The temporal neural control differential equation of the spatiotemporal graph neural control differential equation model updates the temporal hidden state of each graph node according to the continuous control path. Then, the spatial graph neural control differential equation uses the temporal hidden state at the same integration time point and the spatial hidden state aggregated according to the current energized topology graph connection relationship to update the spatial hidden state of each graph node. The equipment load rate output layer forms the line or main transformer load rate output, and the derivative of the output with respect to the corresponding photovoltaic active or reactive power test amplitude is calculated to form the equipment load rate output partial derivative according to the photovoltaic access point, line or main transformer, power channel and time window index. During the training phase, effective time windows of different low amplitude levels are read for the same energized topology, the same photovoltaic access point, the same line or main transformer, and the same power channel. The measured load rate change of each window is subtracted from and added to the corresponding allowable response deviation to form the lower and upper bounds of the response. When the maximum value of each lower bound is not greater than the minimum value of each upper bound, the locally consistent measured load rate change obtained by taking the midpoint between the maximum and the minimum value is taken. Only for the corresponding items that have both the locally consistent measured load rate change and the partial derivative of the load rate output of the finite equipment within the effective time window of the same photovoltaic test, the corresponding items are matched according to the photovoltaic access point, line or main transformer, power channel, and effective time window, and the same physical unit is used for both. The difference between the locally consistent measured load rate change and the partial derivative of the equipment load rate output for each corresponding term is squared. The arithmetic mean of the squared values is used as the response constraint loss. The response constraint loss is added to the line and main transformer load rate output task loss of the same model with positive weights to obtain the total loss. A backpropagation is performed on the total loss to update the vector field parameters of the time neural control differential equation, the vector field parameters of the spatial graph neural control differential equation, and the parameters of the equipment load rate output layer. After the parameter update is completed, the equipment load rate output partial derivative corresponding to the corresponding term is regenerated by the same model.
8. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 7, characterized in that, When the spatial graph neural control differential equation updates the spatial hidden state of each graph node in the current charged topology graph according to the connection relationship of the current charged topology graph, the trainable node embedding vector corresponding to each graph node is obtained from the vector field parameters of the spatial graph neural control differential equation. The inner product is performed on the trainable node embedding vectors of any two graph nodes and the negative value is set to zero to form the non-negative connection weight between the two graph nodes. The non-negative connection weight between directly connected graph nodes in the current charged topology graph is retained, the non-negative connection weight between the remaining graph nodes is reset to zero, and the self-connection of the target graph node is retained. The retained non-negative connection weight is normalized along the target graph node. The normalization result and the self-connection are used together to aggregate the spatial hidden state of each graph node in the current charged topology graph. The aggregated spatial hidden state is used for the update operation of the spatial graph neural control differential equation on the spatial hidden state of each graph node.
9. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S5 specifically refers to: The sum of the newly added active power allocation at each photovoltaic access point is made to be one megawatt, and the reactive power change at each photovoltaic access point is determined according to the predetermined reactive power control rules. For each line or main transformer, the partial derivative of the equipment load rate output after the parameter update is completed is multiplied by the corresponding newly added active power allocation or reactive power change according to the photovoltaic access point and the active or reactive power channel, and the resulting product is summed according to the photovoltaic access point to form the load rate increase corresponding to the newly added reverse active power of the line or main transformer under the new active power allocation and reactive power control rules. When the current reverse load rate reaches the rated value, the allowable new reverse active power of the corresponding line or main transformer equipment will be set to zero. When the current reverse load rate is lower than the rated value and the increase in load rate is positive, the difference obtained by subtracting the current reverse load rate from the load rate is divided by the increase in load rate to form the equipment allowable new reverse active power of the corresponding line or main transformer. When the current reverse load rate is lower than the rated value and the increase in load rate is not positive, the corresponding line or main transformer will be determined as not constrained under the newly added active power allocation and reactive power control rules.
10. The method for identifying reverse power flow bottleneck devices based on a neural control differential equation model according to claim 1, characterized in that, S6 specifically refers to: The screening equipment allows the addition of a limited amount of positive feedback to a line or main transformer. The lines or main transformers are arranged in ascending order of the amount of positive feedback allowed by the equipment, forming a power flow bottleneck equipment sorting system. Based on the allowable error of the load rate measurement of the corresponding line or main transformer and the calculation error of the partial derivative of the equipment load rate output after the parameter update, the error range of the allowable additional reverse active power of each line or main transformer is determined. Lines or main transformers whose difference in the allowable additional reverse active power of the equipment is within the error range are grouped into the same parallel order to form a power flow bottleneck equipment sorting with parallel order. According to the photovoltaic access point, line or main transformer, active or reactive channel and effective time window, the measured load rate change is subtracted from the partial derivative of the equipment load rate output after the parameter update to form the difference. The power flow bottleneck equipment is sorted, and whether each line or main transformer does not constitute a finite constraint is output together with the difference.
11. An electronic device, characterized in that, The device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the reverse power flow bottleneck device identification method based on the neural control differential equation model as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the reverse power flow bottleneck device identification method based on a neural control differential equation model as described in any one of claims 1-10.
Citation Information
Patent Citations
Distributed power supply bearing capacity analysis method considering consumption rate and terminal
CN116231652A
