A multi-mode coordinated voltage and reactive power control system and method for a high proportion photovoltaic power distribution network
By using a multi-mode collaborative voltage and reactive power control system, which combines fuzzy logic and reinforcement learning to optimize the collaborative control of photovoltaic inverters, capacitor banks, and on-load tap-changing transformers, the voltage stability and equipment wear problems of distribution networks with high photovoltaic penetration rates are solved, achieving rapid response and economical operation.
Patent Information
- Application Number
- CN202611696643.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
High photovoltaic penetration rates lead to problems such as voltage exceeding limits, reverse power flow, and increased network losses in distribution networks. Traditional voltage and reactive power control has slow response speed and high equipment wear. Existing multi-mode control methods experience frequent mode oscillations or delayed switching under critical conditions and lack long-term economic value assessment of equipment operation.
A multi-mode collaborative voltage and reactive power control system is adopted, including a data acquisition and prediction input module, a day-ahead baseline optimization module, a real-time status perception module, a fuzzy logic mode switching module, a multi-mode control execution module, a reinforcement learning OLTC action evaluation module, and a cross-mode sampling and offline training module. The collaborative control of the photovoltaic inverter, capacitor bank, and on-load tap-changing transformer is optimized through fuzzy logic and reinforcement learning.
It achieves adaptability to rapidly changing operating states in scenarios with high proportions of photovoltaic access, reduces mode oscillation and switching lag, improves the adaptability and economy of control modes, and reduces equipment wear and maintenance costs.
Smart Images

Figure CN123184064A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power distribution network technology, and more specifically to a multi-mode coordinated voltage and reactive power control system and method for high-proportion photovoltaic power distribution networks. Background Technology
[0002] As the penetration rate of distributed photovoltaic power in the distribution network continues to increase, the randomness and volatility of photovoltaic power output lead to rapid changes in the operating status of the distribution network, which can easily cause problems such as node voltage exceeding limits, reverse power flow, and increased network losses.
[0003] Traditional voltage reactive power control mainly relies on discrete mechanical equipment such as on-load tap-changing transformers and capacitor banks, which have slow response speeds and frequent operation increases equipment wear and maintenance costs. Although photovoltaic inverters can provide rapid reactive power support, their reactive power regulation capability is limited by inverter capacity and active power output level, making it difficult to ensure voltage safety independently under high photovoltaic output or extreme disturbance scenarios.
[0004] Existing multi-mode voltage control methods typically use fixed thresholds for mode switching. Such methods are prone to frequent mode oscillations or switching lags under critical operating conditions, making it difficult to accurately reflect the system risks under the combined effects of photovoltaic power output fluctuations, load changes, and prediction uncertainties. At the same time, existing reinforcement learning control methods often directly output equipment control commands, lacking explicit evaluation of the long-term economic value of actions and equipment wear costs, which may result in redundant actions or unnecessary mechanical equipment operations. Summary of the Invention
[0005] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present invention provide a multi-mode coordinated voltage and reactive power control system and method for high-proportion photovoltaic distribution networks, so as to solve the technical problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks, comprising:
[0007] The data acquisition and forecasting input module is used to acquire distribution network parameters, photovoltaic and load forecasting data, and real-time operation data;
[0008] The day-ahead baseline optimization module is used to establish an optimization model with the goal of minimizing the grid loss throughout the day based on photovoltaic and load forecast data, and to generate day-ahead baseline dispatching schemes for on-load tap-changing transformers and capacitor banks.
[0009] The real-time status awareness module is used to generate status inputs based on real-time operating data. The status inputs include voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc.
[0010] The fuzzy logic mode switching module is used to fuzzify, fuzzy infer and defuzzify the state input based on preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4, and determine the current control mode according to the matching scores and preset mode switching constraints.
[0011] The multi-mode control execution module is used to control the photovoltaic inverter, capacitor bank, and on-load tap-changing transformer (OLTC) according to the current control mode. In economic mode M1, the reactive power of the photovoltaic inverter is optimized with the goal of reducing system grid losses. In preventive mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc. In correction mode M3, when the node voltage is close to the voltage limit or the remaining reactive power margin RPM is insufficient, voltage correction is performed using the photovoltaic inverter and capacitor bank. In emergency mode M4, the OLTC is allowed to participate in the regulation, and the reinforcement learning OLTC action evaluation module is activated.
[0012] The reinforcement learning OLTC action evaluation module is used to output OLTC action evaluation values based on the status input and output in emergency mode M4. When the OLTC action evaluation value meets the preset authorization conditions, the OLTC action is authorized; otherwise, the current OLTC gear is maintained and the photovoltaic inverter and capacitor bank are called first.
[0013] The cross-mode sampling and offline training module is used to collect OLTC action samples across different control modes and train the reinforcement learning OLTC action evaluation module based on the counterfactual reward function.
[0014] The control command output module is used to output reactive power commands for the photovoltaic inverter, capacitor bank switching commands, OLTC range adjustment commands, current control mode, and risk assessment results.
[0015] In a preferred embodiment, the power distribution network parameters acquired by the data acquisition and prediction input module include at least one of the following: network topology, line impedance, node load, photovoltaic access location and capacity, OLTC range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation frequency constraints; the real-time operating data includes at least one of the following: node voltage, actual photovoltaic output, actual load power, current OLTC range, capacitor bank status, and reactive power output of the photovoltaic inverter; the photovoltaic and load prediction data includes at least one of the following: day-ahead photovoltaic output prediction curve, day-ahead load prediction curve, and historical prediction error data.
[0016] In a preferred embodiment, in the real-time status sensing module, the voltage margin VM is determined based on the distance between the current node voltage and the upper and lower voltage limits; the residual reactive power margin RPM is determined based on the current active power output of the photovoltaic inverter and the inverter capacity; the power change rate dP / dt is determined based on the difference between the photovoltaic output and the load power in adjacent sampling periods; and the prediction uncertainty Unc is determined based on the statistical characteristics of historical photovoltaic output prediction errors and load prediction errors.
[0017] In a preferred embodiment, the fuzzy logic mode switching module includes a fuzzification unit, a fuzzy rule base, an inference unit, a defuzzification unit, and a mode constraint unit. The fuzzification unit maps voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc into fuzzy linguistic variables. The fuzzy rule base stores preset fuzzy rules. The inference unit outputs matching scores for economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4. The mode constraint unit determines the current control mode based on the matching scores and preset mode switching constraints.
[0018] In a preferred embodiment, in the fuzzy rule base, voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc are respectively classified as preset fuzzy linguistic variables, and the preset fuzzy rules include: when voltage margin VM is less than a first voltage margin threshold, residual reactive power margin RPM is less than a first reactive power margin threshold, the absolute value of power change rate dP / dt is greater than a first power change rate threshold, and prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes; when voltage margin VM is greater than a second voltage margin threshold, residual reactive power margin RPM is greater than a second reactive power margin threshold, and ... prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes. When the absolute value of the rate of change of power dP / dt is less than the second power rate of change threshold and the prediction uncertainty Unc is less than the second uncertainty threshold, the matching score of economic mode M1 is higher than the matching score of other modes; when the voltage margin VM is between the first voltage margin threshold and the second voltage margin threshold, the residual reactive power margin RPM is less than the second reactive power margin threshold and the prediction uncertainty Unc is greater than the second uncertainty threshold, the matching score of preventive mode M2 is higher than the matching score of other modes; the first voltage margin threshold is less than the second voltage margin threshold, the first reactive power margin threshold is less than the second reactive power margin threshold, the first power rate of change threshold is less than the second power rate of change threshold, and the first uncertainty threshold is less than the second uncertainty threshold.
[0019] In a preferred embodiment, the preset mode switching constraints within the mode constraint unit include at least one of invalid inference protection, hysteresis protection, and minimum running time constraint; the invalid inference protection is: when the difference between the maximum matching score and the set intermediate value is less than the set tolerance, or when all mode matching scores are lower than the set score threshold, the control mode of the previous control cycle is maintained; the hysteresis protection is: the control mode is only allowed to switch when the matching score of the candidate control mode exceeds the set switching threshold of the matching score of the current control mode; the minimum running time constraint is: after the control mode is switched, at least a set number of control cycles are maintained.
[0020] In a preferred embodiment, in prevention mode M2, the multi-mode control execution module determines the voltage fluctuation trend within a future set time period based on the power change rate dP / dt, and determines the adjustment margin based on the prediction uncertainty Unc, thereby adjusting the reactive power output of the photovoltaic inverter and the state of the capacitor bank in advance. In correction mode M3, when the node voltage approaches the voltage limit or the remaining reactive power margin RPM is insufficient, the multi-mode control execution module prioritizes calling the photovoltaic inverter for rapid reactive power support, and when the reactive power capacity of the photovoltaic inverter is insufficient, it engages the capacitor bank for voltage correction.
[0021] In a preferred embodiment, the reinforcement learning OLTC action evaluation module takes the current state vector as input, uses at least one of OLTC upshift, OLTC downshift, and OLTC hold as the action space, and outputs an OLTC action evaluation value; the preset authorization conditions include: the OLTC action evaluation value is greater than a set action threshold; or the comprehensive benefit corresponding to the OLTC action evaluation value is greater than the sum of the OLTC device wear cost and the action count cost.
[0022] In a preferred embodiment, the cross-mode sampling and offline training module also calls the OLTC action evaluation logic in non-emergency mode, records the counterfactual results of OLTC action and no action, and uses the counterfactual reward function to evaluate the potential voltage risk when OLTC action is rejected, so as to expand the reinforcement learning training samples.
[0023] A multi-mode coordinated voltage and reactive power control method for high-proportion photovoltaic distribution networks includes the following steps:
[0024] Step S1: Collect basic data of the distribution network, including network topology, line impedance, node load, photovoltaic access location and capacity, OLTC tap range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation number constraints.
[0025] Step S2: Obtain the day-ahead photovoltaic output forecast curve and load forecast curve, establish a day-ahead optimization model, and with the goal of minimizing the system network loss throughout the day, solve the OLTC tap sequence and capacitor bank switching plan to form a day-ahead baseline scheduling scheme.
[0026] Step S3: During the intraday real-time operation phase, collect real-time data such as node voltage, actual photovoltaic output, actual load power, current OLTC setting, capacitor bank status, and reactive power output of the photovoltaic inverter.
[0027] Step S4: Calculate the voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc based on real-time data, which constitute the input variables of the fuzzy logic controller.
[0028] Step S5: Fuzzify the four types of input variables in step S4, and perform fuzzy inference according to the preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4.
[0029] Step S6: Determine candidate operating modes based on pattern matching scores, and combine invalid inference protection, hysteresis protection and minimum mode running time constraints to determine the final operating mode and avoid frequent mode switching;
[0030] Step S7: If the system enters economic mode M1, the photovoltaic inverter is called to perform reactive power optimization control with the goal of minimizing the system network loss.
[0031] Step S8: If the system enters the prevention mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc to reduce the risk of future voltage fluctuations.
[0032] Step S9: If the system enters correction mode M3, when the voltage is close to the limit or the reactive power margin is insufficient, the photovoltaic inverter and capacitor bank will be fully utilized to perform voltage correction so that the node voltage is kept within a safe range.
[0033] Step S10: If the system enters emergency mode M4, the reinforcement learning OLTC action evaluation module is activated to determine whether to authorize OLTC actions in the current state.
[0034] Step S11: The reinforcement learning OLTC action evaluation module reads the current state vector, outputs the OLTC action evaluation value, and converts it into a discrete decision on whether to authorize the OLTC action based on the action threshold. If the action is authorized, the OLTC gear adjustment is executed; if not authorized, the current OLTC gear is maintained, and the photovoltaic inverter and capacitor bank are called first.
[0035] Step S12: The system outputs the final control commands, including the reactive power command of the photovoltaic inverter, the capacitor bank switching command, the OLTC gear adjustment command, and the current control mode, and enters the next real-time control cycle.
[0036] The technical effects and advantages of this invention are as follows:
[0037] 1. This invention combines day-ahead optimization and intraday real-time control to achieve multi-timescale collaborative control of various types of equipment such as photovoltaic inverters, capacitor banks and on-load tap-changing transformers, which can adapt to rapidly changing operating states in high-proportion photovoltaic access scenarios;
[0038] 2. This invention replaces the traditional fixed threshold switching method with a fuzzy logic mode switching method based on voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc. This can reduce mode oscillation and switching lag in critical states and improve the smoothness and adaptability of control mode selection.
[0039] 3. This invention sets four operating modes: economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4. It can gradually call control resources such as photovoltaic inverters, capacitor banks, and on-load tap-changing transformers according to the level of system risk. Under normal conditions, it takes into account economy, and under risk conditions, it prioritizes voltage safety.
[0040] 4. This invention introduces a reinforcement learning OLTC action evaluation module in emergency mode M4 to perform pre-action value judgment on the actions of on-load tap-changing transformers, which can avoid unnecessary mechanical actions and reduce equipment wear and maintenance costs.
[0041] 5. This invention alleviates the instability problem of reinforcement learning training caused by the sparse samples when the voltage exceeds the limit by using cross-pattern sampling and counterfactual reward function design, thereby improving the decision reliability of the model under extreme operating conditions. Attached Figure Description
[0042] Figure 1 This is a schematic diagram of the control system composition of the present invention.
[0043] Figure 2 This is a schematic diagram of the control method of the present invention.
[0044] Figure 3 This is a diagram showing the power output of a single photovoltaic source from day 1 to day 5 of this invention.
[0045] Figure 4 This is a diagram showing the power output of a single photovoltaic source during days 6-10 of this invention.
[0046] Figure 5 This is a diagram showing the power output of a single photovoltaic source from day 11 to day 15 of this invention.
[0047] Figure 6 This is a diagram showing the power output of a single photovoltaic source during days 16-20 of this invention.
[0048] Figure 7 This is a voltage display diagram of the 7, 18, and 28 photovoltaic nodes of the present invention.
[0049] Figure 8 This is a voltage display diagram of photovoltaic nodes 13, 21, and 32 of the present invention.
[0050] Figure 9 This is a display diagram showing the results of the operation mode switching of the present invention.
[0051] Figure 10 This is a schematic diagram showing the voltage envelope of all nodes in this invention.
[0052] Figure 11 This is a schematic diagram of the first output state of the capacitor bank according to the present invention.
[0053] Figure 12 This is a schematic diagram of the second output state of the capacitor bank according to the present invention.
[0054] Figure 13 This is a schematic diagram of the third output state of the capacitor bank according to the present invention.
[0055] Figure 14 This is a schematic diagram of the OLTC gear shifting action curve of the present invention. Detailed Implementation
[0056] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. In addition, the forms of the various structures described in the following embodiments are merely illustrative. The multi-mode coordinated voltage and reactive power control system and method for high-proportion photovoltaic distribution networks involved in the present invention are not limited to the structures described in the following embodiments. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] Reference Figure 1 This invention provides a multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks, comprising:
[0058] The data acquisition and forecasting input module is used to acquire distribution network parameters, photovoltaic and load forecasting data, and real-time operation data;
[0059] The day-ahead baseline optimization module is used to establish an optimization model with the goal of minimizing the grid loss throughout the day based on photovoltaic and load forecast data, and to generate day-ahead baseline dispatching schemes for on-load tap-changing transformers and capacitor banks.
[0060] The baseline optimization module currently aims to minimize network loss throughout the day, with the objective function being: In the formula, T is the daily optimization period, and E is the set of branches. Let be the current amplitude of the branch at time t. Branch resistance;
[0061] The constraints of the objective function include: node active power balance constraints, node reactive power balance constraints, node voltage upper and lower limit constraints, OLTC tap positions and number of operations constraints, capacitor bank switching and number of operations constraints, and photovoltaic inverter reactive capacity constraints. The objective function and constraints together constitute the day-ahead optimization model. The optimization model is transformed into a mixed integer second-order cone programming problem through second-order cone relaxation and linearization. It is solved using Gurobi or Cplex and outputs the OLTC tap position sequence and capacitor bank switching plan as the day-ahead baseline scheduling scheme.
[0062] The real-time status awareness module is used to generate status inputs based on real-time operating data. The status inputs include voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc.
[0063] The fuzzy logic mode switching module is used to fuzzify, fuzzy infer and defuzzify the state input based on preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4, and determine the current control mode according to the matching scores and preset mode switching constraints.
[0064] The multi-mode control execution module is used to control the photovoltaic inverter, capacitor bank, and on-load tap-changing transformer (OLTC) according to the current control mode. In economic mode M1, the reactive power of the photovoltaic inverter is optimized with the goal of reducing system grid losses. In preventive mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc. In correction mode M3, when the node voltage is close to the voltage limit or the remaining reactive power margin RPM is insufficient, voltage correction is performed using the photovoltaic inverter and capacitor bank. In emergency mode M4, the OLTC is allowed to participate in the regulation, and the reinforcement learning OLTC action evaluation module is activated.
[0065] The reinforcement learning OLTC action evaluation module is used to output OLTC action evaluation values based on the status input and output in emergency mode M4. When the OLTC action evaluation value meets the preset authorization conditions, the OLTC action is authorized; otherwise, the current OLTC gear is maintained and the photovoltaic inverter and capacitor bank are called first.
[0066] The cross-mode sampling and offline training module is used to collect OLTC action samples across different control modes and train the reinforcement learning OLTC action evaluation module based on the counterfactual reward function.
[0067] The control command output module is used to output reactive power commands for the photovoltaic inverter, capacitor bank switching commands, OLTC range adjustment commands, current control mode, and risk assessment results.
[0068] In this embodiment, the day-ahead baseline optimization module generates a day-ahead baseline scheduling scheme for the OLTC and capacitor banks, providing an initial reference for intraday real-time control while minimizing network losses throughout the day. The real-time status perception module generates voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc, enabling control mode recognition to simultaneously reflect voltage safety, reactive power capacity, power fluctuations, and prediction risks. Through hierarchical control of economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4, economic efficiency is considered under normal conditions, while voltage safety is prioritized under risk conditions. In emergency mode M4, a reinforcement learning OLTC action evaluation module is introduced to perform pre-action value judgment on the on-load tap-changing transformer action, avoiding unnecessary mechanical actions and reducing equipment wear and maintenance costs. This application improves the voltage safety and operational economy of high-proportion photovoltaic distribution networks.
[0069] Reference Figure 1 The data acquisition and prediction input module obtains at least one of the following distribution network parameters: network topology, line impedance, node load, photovoltaic access location and capacity, OLTC range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation frequency constraints. The real-time operating data includes at least one of the following: node voltage, actual photovoltaic output, actual load power, current OLTC range, capacitor bank status, and reactive power output of the photovoltaic inverter. The photovoltaic and load prediction data includes at least one of the following: day-ahead photovoltaic output prediction curve, day-ahead load prediction curve, and historical prediction error data.
[0070] In this embodiment, by clearly defining the specific content of the distribution network parameters, real-time operating data, and predicted data acquired by the data acquisition and prediction input module, the system ensures that the required input data is complete and available, providing a reliable data foundation for subsequent day-ahead optimization, real-time status perception, fuzzy logic mode switching, and reinforcement learning evaluation, thereby improving feasibility and adaptability.
[0071] Reference Figure 1 , Figures 3-8In the real-time status sensing module, the voltage margin VM is determined based on the distance between the current node voltage and the upper and lower voltage limits; the residual reactive power margin RPM is determined based on the current active power output and inverter capacity of the photovoltaic inverter; the power change rate dP / dt is determined based on the difference between the photovoltaic output and the load power in adjacent sampling periods; and the prediction uncertainty Unc is determined based on the statistical characteristics of historical photovoltaic output prediction errors and load prediction errors.
[0072] The formula for calculating voltage margin VM is: In the formula Let be the voltage magnitude of node i at time t. Let be the lower limit of the voltage at node i. This represents the upper limit of the voltage at node i; The smaller the value, the closer the node voltage is to the limit.
[0073] The formula for calculating residual reactive power margin (RPM) is: In the formula Let i be the capacity of the photovoltaic inverter at node i. Contributing to photovoltaics This is for the current reactive power output of the photovoltaic inverter; The smaller the value, the less effective the system's reactive power regulation capability.
[0074] The formula for calculating the power change rate dP / dt is: In the formula, Δt is the prediction time window; the larger the dP / dt, the more susceptible the system is to power fluctuations.
[0075] The formula for calculating the prediction uncertainty Unc is: In the formula The photovoltaic power output of node i during time period t is predicted. The actual photovoltaic output of node i during time period t. Indicates standard deviation; The larger the value, the lower the reliability of the predicted data. In this case, pattern discrimination should reduce its reliance on the predicted value and prioritize real-time running data.
[0076] Figures 3 to 6 The minute-by-minute output curves of a single photovoltaic source are displayed for days 1-5, 6-10, 11-15, and 16-20, respectively, covering typical operating conditions such as sunny, cloudy, and rainy days. This serves as the data basis for the data acquisition and prediction input module to obtain photovoltaic output data and calculate the prediction uncertainty Unc.
[0077] Figure 7 and Figure 8The voltage curves of nodes 7, 18, 28 and nodes 13, 21, 32 after adopting the multi-mode coordinated voltage and reactive power control of the present invention are shown respectively. The voltage of each node is within the upper and lower voltage limit constraints, which shows that the real-time status perception module, fuzzy logic mode switching module and multi-mode control execution module can work together to maintain voltage safety.
[0078] In this application embodiment, the specific determination methods of voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc are clarified, making the state input quantifiable and calculable, improving the accuracy and repeatability of pattern recognition. Voltage margin reflects the distance between the node voltage and the limit, residual reactive power margin reflects the reactive power that the photovoltaic inverter can continue to provide, power change rate reflects the system disturbance speed, and prediction uncertainty reflects future prediction risks, thereby providing a comprehensive and objective input basis for fuzzy logic mode switching.
[0079] Reference Figure 1 The fuzzy logic mode switching module includes a fuzzification unit, a fuzzy rule base, an inference unit, a defuzzification unit, and a mode constraint unit. The fuzzification unit maps voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc into fuzzy linguistic variables. The fuzzy rule base stores preset fuzzy rules. The inference unit outputs matching scores for economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4. The mode constraint unit determines the current control mode based on the matching scores and preset mode switching constraints.
[0080] The fuzzification unit uses a Gaussian membership function, the expression of which is: In the formula, x is one of the four input variables, c is the membership function center, and σ is the membership function width;
[0081] The voltage margin VM is divided into three fuzzy linguistic variables: C (critical), W (warning), and S (safe), with a numerical domain of [0, 0.05].
[0082] The residual reactive power margin (RPM) is divided into three fuzzy linguistic variables: L (low), M (medium), and H (high), with a numerical domain of [0, 1].
[0083] The power change rate dP / dt is divided into five fuzzy linguistic variables: BD (significant decrease), D (decrease), S (stable), R (increase), and BR (significant increase), with a numerical domain of [-2, 2].
[0084] The prediction uncertainty Unc is divided into three fuzzy linguistic variables: L (low), M (medium), and H (high), with a numerical domain of [0, 0.05].
[0085] The output variable of the inference unit is the membership degree of the four operating modes, denoted as... Each output variable is divided into five fuzzy sets: VL (extremely low), L (low), M (medium), H (high), and VH (extremely high).
[0086] The fuzzy rules adopt an If-Then form, with a total of 3×3×5×3=135 rules designed, covering all state combinations in the four-dimensional input space. The design principles of the fuzzy inference rules are as follows:
[0087] 1) Voltage safety priority: When the VM approaches the critical state, the M4 emergency mode is triggered unconditionally to ensure the fastest response to voltage safety threats;
[0088] 2) Predictive prevention: When VM is within the safe or warning range, but dP / dt or Unc has abnormal values, the optimization capability of M2 prevention mode is enabled first to proactively deal with potential risks, rather than waiting for voltage over-limit to occur;
[0089] 3) Resource depletion compensation: When the system's reactive power reserve is insufficient, even if the voltage level is still acceptable, the system tends to switch to M3 correction mode to make more sensitive use of the remaining resources;
[0090] 4) Tiered response: The control strength is gradually increased according to the combined state of VM and RPM. M2 is used to respond to dP / dt and Unc anomalies, and M3 is used to deal with VM over-limit trends and RPM insufficiency.
[0091] 5) Economic basis: When the voltage is safe, the reserves are sufficient and no significant fluctuations are observed, the system maintains the M1 economic mode to minimize the total network loss of the system.
[0092] In this embodiment, the fuzzy logic mode switching module is divided into a fuzzification unit, a fuzzy rule base, an inference unit, a defuzzification unit, and a mode constraint unit, achieving a structured and modular implementation of fuzzy logic mode switching. Each unit has a clear division of labor, facilitating rule maintenance, parameter adjustment, and engineering deployment, thereby improving the reliability, maintainability, and scalability of mode switching.
[0093] Reference Figure 1 and Figure 9The fuzzy rule base includes preset fuzzy rules: when the voltage margin VM is less than a first voltage margin threshold, the remaining reactive power margin RPM is less than a first reactive power margin threshold, the absolute value of the power change rate dP / dt is greater than a first power change rate threshold, and the prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes; when the voltage margin VM is greater than a second voltage margin threshold, the remaining reactive power margin RPM is greater than a second reactive power margin threshold, the absolute value of the power change rate dP / dt is less than a second power change rate threshold, and the prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes. When c is less than the second uncertainty threshold, the matching score of economic mode M1 is higher than the matching score of other modes; when the voltage margin VM is between the first voltage margin threshold and the second voltage margin threshold, the residual reactive power margin RPM is less than the second reactive power margin threshold, and the prediction uncertainty Unc is greater than the second uncertainty threshold, the matching score of preventive mode M2 is higher than the matching score of other modes; the first voltage margin threshold is less than the second voltage margin threshold, the first reactive power margin threshold is less than the second reactive power margin threshold, the first power change rate threshold is less than the second power change rate threshold, and the first uncertainty threshold is less than the second uncertainty threshold;
[0094] The fuzzy rules employ Mamdani inference, and the formula for calculating the activation strength of the r-th rule is: In the formula , Let be the membership degrees of the fuzzy linguistic variables corresponding to each input variable, and let be the formula for calculating the matching score of the k-th pattern. In the formula, k=1, 2, 3, 4 correspond to economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4, respectively. Let be the set of rules belonging to the k-th pattern; For rule weights, This represents the degree of rule activation.
[0095] In this embodiment, voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc are classified as fuzzy linguistic variables, and fuzzy rules are defined using specific numerical thresholds. This makes the fuzzy rules objective, clear, and quantifiable. The specific threshold limitation still retains the adaptive characteristics of fuzzy logic, which can accurately match economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4 under different operating conditions, thereby improving the accuracy and repeatability of mode switching.
[0096] Reference Figure 1 and Figure 9Within the mode constraint unit, the preset mode switching constraints include at least one of invalid inference protection, hysteresis protection, and minimum running time constraint. Invalid inference protection means that when the difference between the maximum matching score and a set intermediate value is less than a set tolerance, or when all mode matching scores are lower than a set score threshold, the control mode of the previous control cycle is maintained. Hysteresis protection means that switching the control mode is only allowed when the matching score of a candidate control mode exceeds a set switching threshold for the matching score of the current control mode. The minimum running time constraint means that after the control mode is switched, a minimum set number of control cycles must be maintained.
[0097] The mode constraint unit determines the current control mode. The calculation formula is:
[0098] ;
[0099] In the formula As a candidate operating mode, The maximum value among the four pattern matching scores. The score of the previous control cycle's operating mode in the current score matrix is given; e is the invalid inference discrimination threshold, set to 0.01; and d is the hysteresis protection band, set to 0.05. The deviation between the current maximum matching score and the median value of fuzzy inference is represented. When the deviation is less than the invalid inference discrimination threshold e, the fuzzy inference result is determined to be non-discriminatory, and the operating mode of the previous control cycle is maintained. To avoid performing fuzzy inference at every time step, the system is configured to perform fuzzy inference once every 10 minutes. That is, any mode must run for at least 10 minutes before switching to other modes is allowed.
[0100] In this embodiment, by setting invalid inference protection, hysteresis protection, and minimum running time constraint, the control mode is effectively prevented from oscillating frequently or switching erroneously in the critical state. Invalid inference protection avoids misjudging the mode when the fuzzy rule matching degree is insufficient; hysteresis protection avoids repeated switching when the candidate mode and the current mode score are close; minimum running time constraint ensures stable operation for a set period after mode switching, improves the stability of the control mode, reduces frequent device actions, and thus extends the service life of the device.
[0101] Reference Figure 1 , Figures 9-14In the prevention mode M2, the multi-mode control execution module determines the voltage fluctuation trend within a set future time period based on the power change rate dP / dt, and determines the adjustment margin based on the prediction uncertainty Unc, thereby adjusting the reactive power output of the photovoltaic inverter and the state of the capacitor bank in advance. In the correction mode M3, when the node voltage is close to the voltage limit or the remaining reactive power margin RPM is insufficient, the multi-mode control execution module prioritizes calling the photovoltaic inverter for rapid reactive power support, and when the reactive power capacity of the photovoltaic inverter is insufficient, it engages the capacitor bank for voltage correction.
[0102] In this embodiment of the application, under the prevention mode M2, the voltage fluctuation trend within a future set period is determined based on the power change rate dP / dt, and the adjustment margin is determined based on the prediction uncertainty Unc. The reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance to reduce the risk of future voltage fluctuations. Under the correction mode M3, the photovoltaic inverter is prioritized for rapid reactive power support, and the capacitor bank is put into operation for voltage correction when the reactive power capacity of the photovoltaic inverter is insufficient. By utilizing rapid reactive power resources, the mechanical action of the OLTC is reduced, and the speed and accuracy of voltage correction are improved.
[0103] Figure 9 The switching results of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4 over time are displayed, which corresponds to the logic of the fuzzy logic mode switching module for mode matching based on voltage margin VM, residual reactive power margin RPM, power change rate dP / dt and prediction uncertainty Unc. Figure 10 The voltage envelopes of all nodes are shown to further illustrate that the voltage of each node did not exceed the limit under the fluctuation of photovoltaic output and load changes. Figures 11 to 13 The reactive power output of the three capacitor banks is shown respectively. During periods of voltage fluctuation, the capacitor banks input a large amount of reactive power, which corresponds to the control logic of adjusting the state of the capacitor banks in advance under the prevention mode M2 and using the capacitor banks for voltage correction under the correction mode M3. Figure 14 The display shows the OLTC gear shift action curve, indicating that the actual number of shifts was less than previously planned, and combined with... Figure 10 The fact that the voltage envelope did not exceed the limit indicates that the reinforcement learning OLTC action evaluation module and the cross-mode sampling and offline training module can reduce OLTC mechanical actions while ensuring voltage safety. This invention achieves a synergistic improvement in voltage safety and economic operation of a high-proportion photovoltaic distribution network by combining day-ahead optimization with intraday real-time control, fuzzy logic multi-mode switching, and reinforcement learning OLTC action evaluation.
[0104] Reference Figure 1The reinforcement learning OLTC action evaluation module takes the current state vector as input, uses at least one of OLTC upshift, OLTC downshift, and OLTC hold as the action space, and outputs an OLTC action evaluation value. The preset authorization conditions include: the OLTC action evaluation value is greater than a set action threshold; or the comprehensive benefit corresponding to the OLTC action evaluation value is greater than the sum of the OLTC device wear cost and the action number cost.
[0105] In this embodiment, the reinforcement learning OLTC action evaluation module takes the current state vector as input, uses at least one of OLTC upshift, OLTC downshift, and OLTC hold as the action space, and outputs an OLTC action evaluation value. This makes the reinforcement learning output executable and interpretable. By setting a preset authorization condition, namely, the OLTC action evaluation value is greater than a set action threshold, or the comprehensive benefit is greater than the sum of equipment wear cost and action cost, it ensures that OLTC actions are only authorized when the action benefit is higher than the equipment wear and action cost. This avoids redundant mechanical actions, reduces equipment wear and maintenance costs, and improves the economy and safety of OLTC actions.
[0106] Reference Figure 1 The cross-mode sampling and offline training module also calls the OLTC action evaluation logic in non-emergency mode, records the counterfactual results of OLTC action and no action, and uses the counterfactual reward function to evaluate the potential voltage risk when OLTC action is rejected, so as to expand the reinforcement learning training samples.
[0107] In this embodiment, the cross-mode sampling and offline training module also calls the OLTC action evaluation logic in non-emergency mode, records the counterfactual results of OLTC action and no action, and uses the counterfactual reward function to evaluate the potential voltage risk when OLTC action is rejected. This can expand the reinforcement learning training samples when voltage limit exceedance samples are sparse, especially increasing the distribution density of emergency state and high-value samples, thereby improving the training stability and decision reliability of the reinforcement learning model under extreme operating conditions.
[0108] Reference Figure 2 A multi-mode coordinated voltage and reactive power control method for high-proportion photovoltaic distribution networks includes the following steps:
[0109] Step S1: Collect basic data of the distribution network, including network topology, line impedance, node load, photovoltaic access location and capacity, OLTC tap range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation number constraints.
[0110] Step S2: Obtain the day-ahead photovoltaic output forecast curve and load forecast curve, establish a day-ahead optimization model, and with the goal of minimizing the system network loss throughout the day, solve the OLTC tap sequence and capacitor bank switching plan to form a day-ahead baseline scheduling scheme.
[0111] Step S3: During the intraday real-time operation phase, collect real-time data such as node voltage, actual photovoltaic output, actual load power, current OLTC setting, capacitor bank status, and reactive power output of the photovoltaic inverter.
[0112] Step S4: Calculate the voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc based on real-time data, which constitute the input variables of the fuzzy logic controller.
[0113] Step S5: Fuzzify the four types of input variables in step S4, and perform fuzzy inference according to the preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4.
[0114] Step S6: Determine candidate operating modes based on pattern matching scores, and combine invalid inference protection, hysteresis protection and minimum mode running time constraints to determine the final operating mode and avoid frequent mode switching;
[0115] Step S7: If the system enters economic mode M1, the photovoltaic inverter is called to perform reactive power optimization control with the goal of minimizing the system network loss.
[0116] Step S8: If the system enters the prevention mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc to reduce the risk of future voltage fluctuations.
[0117] Step S9: If the system enters correction mode M3, when the voltage is close to the limit or the reactive power margin is insufficient, the photovoltaic inverter and capacitor bank will be fully utilized to perform voltage correction so that the node voltage is kept within a safe range.
[0118] Step S10: If the system enters emergency mode M4, the reinforcement learning OLTC action evaluation module is activated to determine whether to authorize OLTC actions in the current state.
[0119] Step S11: The reinforcement learning OLTC action evaluation module reads the current state vector, outputs the OLTC action evaluation value, and converts it into a discrete decision on whether to authorize the OLTC action based on the action threshold. If the action is authorized, the OLTC gear adjustment is executed; if not authorized, the current OLTC gear is maintained, and the photovoltaic inverter and capacitor bank are called first.
[0120] Step S12: The system outputs the final control commands, including the reactive power command of the photovoltaic inverter, the capacitor bank switching command, the OLTC gear adjustment command, and the current control mode, and enters the next real-time control cycle.
[0121] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. The units and algorithm steps of the various examples described in the embodiments can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0122] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0123] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
[0124] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks, characterized in that: include: The data acquisition and forecasting input module is used to acquire distribution network parameters, photovoltaic and load forecasting data, and real-time operation data; The day-ahead baseline optimization module is used to establish an optimization model with the goal of minimizing the grid loss throughout the day based on photovoltaic and load forecast data, and to generate day-ahead baseline dispatching schemes for on-load tap-changing transformers and capacitor banks. The real-time status awareness module is used to generate status inputs based on real-time operating data. The status inputs include voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc. The fuzzy logic mode switching module is used to fuzzify, fuzzy infer and defuzzify the state input based on preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4, and determine the current control mode according to the matching scores and preset mode switching constraints. The multi-mode control execution module is used to control the photovoltaic inverter, capacitor bank, and on-load tap-changing transformer (OLTC) according to the current control mode. In economic mode M1, the reactive power of the photovoltaic inverter is optimized with the goal of reducing system grid losses. In preventive mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc. In correction mode M3, when the node voltage is close to the voltage limit or the remaining reactive power margin RPM is insufficient, voltage correction is performed using the photovoltaic inverter and capacitor bank. In emergency mode M4, the OLTC is allowed to participate in the regulation, and the reinforcement learning OLTC action evaluation module is activated. The reinforcement learning OLTC action evaluation module is used to output OLTC action evaluation values based on the status input and output in emergency mode M4. When the OLTC action evaluation value meets the preset authorization conditions, the OLTC action is authorized; otherwise, the current OLTC gear is maintained and the photovoltaic inverter and capacitor bank are called first. The cross-mode sampling and offline training module is used to collect OLTC action samples across different control modes and train the reinforcement learning OLTC action evaluation module based on the counterfactual reward function. The control command output module is used to output reactive power commands for the photovoltaic inverter, capacitor bank switching commands, OLTC range adjustment commands, current control mode, and risk assessment results.
2. The multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: The data acquisition and prediction input module obtains at least one of the following distribution network parameters: network topology, line impedance, node load, photovoltaic access location and capacity, OLTC range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation frequency constraints. The real-time operating data includes at least one of the following: node voltage, actual photovoltaic output, actual load power, current OLTC range, capacitor bank status, and reactive power output of the photovoltaic inverter. The photovoltaic and load prediction data includes at least one of the following: day-ahead photovoltaic output prediction curve, day-ahead load prediction curve, and historical prediction error data.
3. The multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: In the real-time status sensing module, the voltage margin VM is determined based on the distance between the current node voltage and the upper and lower voltage limits; the residual reactive power margin RPM is determined based on the current active power output and inverter capacity of the photovoltaic inverter; the power change rate dP / dt is determined based on the difference between the photovoltaic output and the load power in adjacent sampling periods; and the prediction uncertainty Unc is determined based on the statistical characteristics of historical photovoltaic output prediction errors and load prediction errors.
4. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: The fuzzy logic mode switching module includes a fuzzification unit, a fuzzy rule base, an inference unit, a defuzzification unit, and a mode constraint unit. The fuzzification unit maps voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc into fuzzy linguistic variables. The fuzzy rule base stores preset fuzzy rules. The inference unit outputs matching scores for economic mode M1, prevention mode M2, correction mode M3, and emergency mode M4. The mode constraint unit determines the current control mode based on the matching scores and preset mode switching constraints.
5. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 4, characterized in that: The fuzzy rule base includes preset fuzzy rules: when the voltage margin VM is less than a first voltage margin threshold, the residual reactive power margin RPM is less than a first reactive power margin threshold, the absolute value of the power change rate dP / dt is greater than a first power change rate threshold, and the prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes; when the voltage margin VM is greater than a second voltage margin threshold, the residual reactive power margin RPM is greater than a second reactive power margin threshold, the absolute value of the power change rate dP / dt is less than a second power change rate threshold, and the prediction uncertainty Unc is greater than a first uncertainty threshold, the matching score of correction mode M3 or emergency mode M4 is higher than the matching score of other modes. When the voltage margin VM is between the first and second voltage margin thresholds, the residual reactive power margin RPM is less than the second reactive power margin threshold, and the prediction uncertainty Unc is greater than the second uncertainty threshold, the matching score of the preventive mode M2 is higher than the matching score of other modes. The first voltage margin threshold is less than the second voltage margin threshold, the first reactive power margin threshold is less than the second reactive power margin threshold, the first power change rate threshold is less than the second power change rate threshold, and the first uncertainty threshold is less than the second uncertainty threshold.
6. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 4, characterized in that: Within the mode constraint unit, the preset mode switching constraints include at least one of invalid inference protection, hysteresis protection, and minimum running time constraint. The invalid inference protection means that when the difference between the maximum matching score and the set intermediate value is less than the set tolerance, or when all mode matching scores are lower than the set score threshold, the control mode of the previous control cycle is maintained. The hysteresis protection means that the control mode is only allowed to switch when the matching score of the candidate control mode exceeds the set switching threshold of the matching score of the current control mode. The minimum running time constraint means that the control mode is maintained for at least a set number of control cycles after switching.
7. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: In the prevention mode M2, the multi-mode control execution module determines the voltage fluctuation trend within a future set time period based on the power change rate dP / dt, and determines the adjustment margin based on the prediction uncertainty Unc, thereby adjusting the reactive power output of the photovoltaic inverter and the state of the capacitor bank in advance. In correction mode M3, when the node voltage is close to the voltage limit or the remaining reactive power margin RPM is insufficient, the multi-mode control execution module prioritizes calling the photovoltaic inverter for rapid reactive power support, and when the reactive power capacity of the photovoltaic inverter is insufficient, it puts in the capacitor bank for voltage correction.
8. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: The reinforcement learning OLTC action evaluation module takes the current state vector as input, uses at least one of OLTC upshift, OLTC downshift, and OLTC hold as the action space, and outputs an OLTC action evaluation value. The preset authorization conditions include: the OLTC action evaluation value is greater than a set action threshold; or the comprehensive benefit corresponding to the OLTC action evaluation value is greater than the sum of the OLTC device wear cost and the action number cost.
9. A multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks according to claim 1, characterized in that: The cross-mode sampling and offline training module also calls the OLTC action evaluation logic in non-emergency mode, records the counterfactual results of OLTC action and no action, and uses the counterfactual reward function to evaluate the potential voltage risk when OLTC action is rejected, so as to expand the reinforcement learning training samples.
10. A multi-mode coordinated voltage and reactive power control method for high-proportion photovoltaic distribution networks, employing a multi-mode coordinated voltage and reactive power control system for high-proportion photovoltaic distribution networks as described in any one of claims 1-9, characterized in that: Includes the following steps: Step S1: Collect basic data of the distribution network, including network topology, line impedance, node load, photovoltaic access location and capacity, OLTC tap range, capacitor bank capacity, photovoltaic inverter capacity, voltage upper and lower limits, and equipment operation number constraints. Step S2: Obtain the day-ahead photovoltaic output forecast curve and load forecast curve, establish a day-ahead optimization model, and with the goal of minimizing the system network loss throughout the day, solve the OLTC tap sequence and capacitor bank switching plan to form a day-ahead baseline scheduling scheme. Step S3: During the intraday real-time operation phase, collect real-time data such as node voltage, actual photovoltaic output, actual load power, current OLTC setting, capacitor bank status, and reactive power output of the photovoltaic inverter. Step S4: Calculate the voltage margin VM, residual reactive power margin RPM, power change rate dP / dt, and prediction uncertainty Unc based on real-time data, which constitute the input variables of the fuzzy logic controller. Step S5: Fuzzify the four types of input variables in step S4, and perform fuzzy inference according to the preset fuzzy rules to obtain the matching scores of economic mode M1, prevention mode M2, correction mode M3 and emergency mode M4. Step S6: Determine candidate operating modes based on pattern matching scores, and combine invalid inference protection, hysteresis protection and minimum mode running time constraints to determine the final operating mode and avoid frequent mode switching; Step S7: If the system enters economic mode M1, the photovoltaic inverter is called to perform reactive power optimization control with the goal of minimizing the system network loss. Step S8: If the system enters the prevention mode M2, the reactive power output of the photovoltaic inverter and the state of the capacitor bank are adjusted in advance according to the power change rate dP / dt and the prediction uncertainty Unc to reduce the risk of future voltage fluctuations. Step S9: If the system enters correction mode M3, when the voltage is close to the limit or the reactive power margin is insufficient, the photovoltaic inverter and capacitor bank will be fully utilized to perform voltage correction so that the node voltage is kept within a safe range. Step S10: If the system enters emergency mode M4, the reinforcement learning OLTC action evaluation module is activated to determine whether to authorize OLTC actions in the current state. Step S11: The reinforcement learning OLTC action evaluation module reads the current state vector, outputs the OLTC action evaluation value, and converts it into a discrete decision on whether to authorize the OLTC action based on the action threshold. If the action is authorized, the OLTC gear adjustment is executed; if not authorized, the current OLTC gear is maintained, and the photovoltaic inverter and capacitor bank are called first. Step S12: The system outputs the final control commands, including the reactive power command of the photovoltaic inverter, the capacitor bank switching command, the OLTC gear adjustment command, and the current control mode, and enters the next real-time control cycle.
