AVC adjusting method based on multi-substation reactive power balance
Through quantum particle swarm optimization algorithm and multi-time scale strategy, combined with self-learning mechanism, the reactive resource optimization problem of traditional AVC systems under dynamic changes in the power grid is solved, the precise regulation and balance of the reactive power of the power grid is realized, and the system stability is enhanced and response speed.
Patent Information
- Application Number
- CN202410864412.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the context of dynamic changes in the power grid and distributed energy access, traditional AVC systems are difficult to achieve optimal allocation and coordinated control of reactive resources across the entire network, resulting in insufficient overall coordination and response speed of the system.
The quantum particle swarm optimization algorithm is used to combine multi-time scale optimization strategies and self-learning mechanisms to receive substation data through the central control unit, build a digital twin model, generate the optimal reactive control path, and adjust the control algorithm and model parameters in real time to achieve no Work balance operation.
It significantly enhances the flexibility and stability of the power grid, realizes precise control and balance of reactive power, reduces operating costs, ensures voltage stability, and provides technical support for efficient and stable operation for modern power grids.
Smart Images

Figure CN118899859A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power system control, and in particular to an AVC regulation method based on multi-substation reactive power balance. Background Art
[0002] In the field of power system management and optimization, with the in-depth development of the concept of smart grid, automated voltage control technology has gradually become one of the key technologies to ensure stable operation of the power grid and improve power quality; the traditional AVC system mainly relies on local information and adjusts the reactive compensation equipment of a single substation through preset rules to maintain voltage stability; however, this control method based on a local perspective is often difficult to effectively respond to dynamic changes in the power grid, especially in the context of large-scale access to distributed energy and intensified load fluctuations. The overall coordination and response speed of the system face severe challenges; in recent years, with the integrated application of big data, cloud computing and artificial intelligence technologies, the AVC system is gradually evolving towards a more efficient and intelligent direction, aiming to achieve optimal configuration and dynamic balance of reactive resources across the entire network.
[0003] The present invention introduces a quantum particle swarm optimization algorithm. This cutting-edge optimization technology, with its excellent search capability and fast convergence speed, deeply optimizes the reactive control path, ensures the optimization of reactive resource allocation, and further realizes the refined adjustment of the reactive compensation strategy; each substation performs reactive balancing operations according to the strategy issued by the central control unit, and feeds back voltage and reactive flow information in real time, forming a closed-loop control loop; the integrated self-learning mechanism further enhances the adaptability of the system, and continuously tunes the control algorithm and model parameters according to actual operation feedback, ensuring the control effect and efficiency in long-term operation; in summary, the present invention has taken an important step in improving the intelligence level of the AVC system, enhancing the system stability and response speed, and provides strong technical support for building an efficient, flexible and intelligent future power grid. Summary of the invention
[0004] In view of the above existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides an AVC regulation method based on multi-substation reactive power balance to solve the problem of dynamic optimization configuration and coordinated control of reactive power resources in a multi-substation power grid environment.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In the first aspect, an embodiment of the present invention provides an AVC regulation method based on multi-substation reactive power balance, which includes receiving data from each substation through a central control unit, extracting characteristic vectors for the current voltage level, current condition and power factor of the power grid; based on the characteristic vectors, integrating historical data, and constructing a digital twin model to predict electrical parameters; implementing a multi-time scale optimization strategy, simulating and iterating the predicted electrical parameters, and generating an optimal reactive power control path; introducing a quantum particle swarm optimization algorithm to deeply optimize the optimal reactive power control path and form an optimal reactive power compensation strategy; each substation implements reactive power balance operations according to the optimal reactive power compensation strategy issued by the central control unit, and feeds back voltage changes and reactive power flow data to the central control unit in real time; integrating a self-learning mechanism to continuously adjust and optimize the control algorithm and model parameters according to the real-time feedback of voltage changes and reactive power flow data.
[0008] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations of the present invention, wherein: the central control unit receives data from each substation and extracts characteristic vectors for the current voltage level, current status and power factor of the power grid, and the specific steps are as follows:
[0009] The central control unit receives data from each substation S i Collect real-time voltage U i 、Current I i And power factor PF i data;
[0010] Remove outliers from voltage and current data and apply a sliding average filter to current and voltage signals;
[0011] Based on the preprocessed data, construct the feature vector and normalize the feature vector;
[0012] The normalized feature data is divided into data set, training set and validation set. The training set data is used to train the SVM model. The electrical parameters of the SVM are adjusted on the validation set through cross-validation, and the features are output to the digital twin model.
[0013] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations described in the present invention, the specific steps of constructing a digital twin model to predict electrical parameters based on feature vectors and integrating historical data are as follows:
[0014] Based on the preprocessed data, principal component analysis X t Extract the characteristic variables X1 to X1 that have the greatest impact on the power grid state k ;
[0015] Using the support vector machine classification algorithm, the feature variables X1 to X kAs input, the predicted electrical parameters are given as output. The prediction function f(θ) is given by:
[0016]
[0017] Among them, θ0 is the intercept term of the prediction function f(θ), θ i Corresponding to feature X p The weight coefficient of θ represents the vector of parameters of the prediction function f(θ), X p is the pth eigenvalue in the eigenvector, and k is the end point of the summation;
[0018] Integrate historical data, train the digital twin model, and generate f(θ), where the parameter θ can predict the instantaneous value U of the voltage level of the i-th substation at time t. i (t), the instantaneous value of the current condition of the i-th substation at time t I i (t) and the instantaneous value PF of the current condition of the i-th substation at time t i (t).
[0019] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations described in the present invention, wherein: the multi-time scale optimization strategy is implemented, the predicted electrical parameters are simulated and iterated, and the optimal reactive power control path is generated, and the specific steps are as follows:
[0020] The objective function J is defined as follows:
[0021]
[0022] Among them, ΔU i represents the voltage deviation at the i-th moment, Q i represents the reactive power distribution at the i-th moment, Cost(Q i ) represents the cost caused by operating the reactive power compensation equipment at the i-th moment, Q is the reactive power, w1, w2 and w3 are weight factors, representing voltage stability, reactive power consumption and operating cost respectively, ε represents a very small positive number, t s and t l represent short-term and long-term time scales, respectively;
[0023] The electrical parameters predicted by the twin model are input into the objective function J. The simulated annealing algorithm is used to find the reactive power control path P* through random search and gradual cooling mechanism on multiple time scales. The genetic algorithm is used for iteration to screen out the optimal reactive power control path.
[0024] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations described in the present invention, wherein: the introduction of quantum particle swarm optimization algorithm to deeply optimize the optimal reactive power control path to form an optimal reactive power compensation strategy, the specific steps are:
[0025] Each particle represents a potential reactive power compensation strategy. The latitude T of the particle and the position P of each particle are determined based on the reactive power control path P*. i ;
[0026] Initialize the position vector P of each particle i and speed V i And set the inertia weight w and learning factor λ, and update V according to the particle swarm optimization update formula i and P i , the update formula is as follows:
[0027] P i,new =P i,old +V i,new ;
[0028]
[0029] Where γ is the attenuation factor, r best is the global optimal solution, r best is the local optimal solution, P i,old The old position of the particle, V i,new represents the new velocity of the particle, P i,new represents the updated position, w is the weight factor related to the global search behavior, e -γt It represents the negative attenuation factor γ of e multiplied by the power of time t;
[0030] For each updated position, calculate its fitness value and evaluate the reactive power compensation strategy based on voltage stability and reactive power consumption cost;
[0031] Check and update the local optimal solution P of each particle best and the global optimal solution r best , according to the set number of iterations, iterate until the quantum particle swarm optimization algorithm converges and generates the optimal reactive power compensation strategy under the current conditions.
[0032] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations of the present invention, each substation implements reactive power balance operation according to the optimal reactive power compensation strategy issued by the central control unit, and feeds back voltage changes and reactive power flow data to the central control unit in real time. The specific steps are as follows:
[0033] Based on the optimized reactive power compensation strategy, the central control unit generates detailed control instructions for each substation and transmits them to each substation;
[0034] The substation accurately adjusts the reactive power compensation equipment according to the instructions of the central control unit and changes the reactive power output in real time. At the same time, the monitoring system of the substation is started to closely monitor and continuously collect reactive power Qi , voltage level U i , Power Factor PF i The data information and status parameters of the reactive power compensation equipment are fed back to the central control unit in real time;
[0035] Set the rated voltage to U, the fluctuation range to ±α%, the average power factor PF, the fluctuation range to ±β%, and the reactive power imbalance Q, the fluctuation range to ±γ%;
[0036] When the voltage data of the substation exceeds U-α%≤U≤U+α%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired voltage stability state;
[0037] When the power factor data of the substation exceeds PF-β%≤PF≤PF+β%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired power factor stable state;
[0038] When the reactive power imbalance Q of the substation exceeds Q-γ%≤Q≤Q+γ%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches a stable state with the desired reactive power imbalance.
[0039] As a preferred solution of the AVC adjustment method for reactive power balance of multiple substations described in the present invention, the integrated self-learning mechanism, according to the real-time feedback of voltage changes and reactive power flow data, has the following specific steps:
[0040] From the complete training data set, the last year’s data is excluded as an independent validation set. During the validation period, the trained digital twin model is applied to the historical data based on the previously defined features X1 to X k And the prediction function f(θ), the formula is as follows:
[0041]
[0042] Among them, X p(t+1) Represents the previously defined X1 to X k The value at time t+1;
[0043] For each time point t in the validation set, the error between the predicted value and the actual observed value is calculated using the following formula:
[0044]
[0045] Among them, Y pd (t) and Y al (t) represents the predicted value and the actual value, N is the sample size of the validation set, MSE represents the mean square error, Td is the end time point of the summation, T st is the starting time point for summation;
[0046] Set the mean square error threshold to TH res , when MSE≤TH res , it is considered that the prediction error of the digital twin model is within the acceptable range, the model is initially verified successfully, and enters the next test phase;
[0047] When MSE>TH res , it means that the prediction performance of the digital twin model has not met expectations, and it is necessary to enter the continuous optimization stage.
[0048] As a preferred solution of the AVC regulation method for reactive power balance of multiple substations of the present invention, the specific steps of continuously adjusting and optimizing the control algorithm and model parameters are as follows:
[0049] When MSE>TH res When the error distribution is analyzed, the time periods and features with large forecast errors are identified, and the features X1 to X2 are re-evaluated. k The feature importance of , the features with lower scores are removed from the model;
[0050] According to the error analysis, the model parameter θ is adjusted and Adam is used for parameter optimization. The formula is as follows;
[0051]
[0052] Among them, θ t represents the value of the parameter at time t, represents the momentum estimate, Represents variance estimation, φ represents learning rate, and ψ represents a very small number;
[0053] The dataset is randomly divided into K subsets and K iterations are performed. In each iteration, one subset is used as a validation set and the remaining K-1 subsets are used as training sets. The average MSE of K iterations is calculated as the model performance evaluation indicator.
[0054] When MSE>TH res When the error is found, the system returns to the error analysis step to perform feature analysis, parameter and hyperparameter adjustment until the model performance reaches the target. The model continuously learns and optimizes in multiple iterations to gradually improve the prediction accuracy.
[0055] In a second aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the AVC regulation method for reactive power balance of multiple substations as described in the first aspect of the present invention is implemented.
[0056] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the AVC adjustment method for reactive power balance of multiple substations as described in the first aspect of the present invention is implemented.
[0057] The beneficial effects of the present invention are as follows: the present invention realizes the precise control and balance of reactive power of the power grid by integrating the real-time data of multiple substations and the coordinated command of the central control unit, and significantly enhances the flexibility and stability of the power system; the multi-time scale optimization strategy and simulation iterative process adopted, combined with simulated annealing and genetic algorithm, ensure the global optimization of the reactive control path, achieve the intelligent generation of the optimal reactive compensation strategy, effectively reduce the operating cost and maintain the voltage stability; the multi-time scale optimization strategy and simulation iterative process adopted, combined with simulated annealing and genetic algorithm, ensure the global optimization of the reactive control path, achieve the intelligent generation of the optimal reactive compensation strategy, effectively reduce the operating cost and maintain the voltage stability, and provide strong technical support for the efficient and stable operation of modern power grids. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0059] Figure 1 This is a flow chart of the AVC adjustment method for reactive power balance of multiple substations in Example 1.
[0060] Figure 2 This is a flow chart of extracting feature vectors from current electrical parameters in Example 1. DETAILED DESCRIPTION
[0061] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0063] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0064] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and provides an AVC adjustment method based on multi-substation reactive power balance, comprising the following steps:
[0065] S1. Receive data from each substation through the central control unit and extract feature vectors of the current voltage level, current status and power factor of the power grid.
[0066] Furthermore, the central control unit can be used to control the substations S i (i=1,2…,n) collect real-time voltage U i 、Current I i And power factor PF i Data, and record the data as X = {X1, X2, ..., X k}
[0067] (i=1, 2, ..., k) where X i = {U i , I i , PF i}, where U i ,I i and PF i Respectively represent the voltage, current and power factor of the i-th substation;
[0068] Remove outliers from the voltage and current data and apply a sliding average filter to the current and voltage signals to obtain Y t , the formula is as follows:
[0069]
[0070] Where k represents the period, j = 1, 2…, k, X t represents the data at time point t after treatment;
[0071] Based on the preprocessed data, construct the feature vector and normalize the feature vector;
[0072] The normalized feature data is divided into a data set, a training set, and a validation set. The SVM model is trained using the training set data. The electrical parameters (voltage, current, power factor, etc.) of the SVM are adjusted on the validation set through cross-validation, and the features are output to the digital twin model.
[0073] It should be noted that by receiving data from each substation through the central control unit, comprehensive monitoring and data integration of the power grid operation status is achieved. The purpose of this step is to centrally process real-time information from various decentralized substations, including key parameters such as voltage level, current status and power factor, laying the foundation for subsequent intelligent analysis. This process not only improves the efficiency and accuracy of data collection, but also facilitates the grasp of the operation status of the entire power grid at a macro level.
[0074] S2. Based on the feature vector, historical data is integrated to build a digital twin model to predict electrical parameters.
[0075] Furthermore, based on the preprocessed data X t , use principal component analysis (PCA) to reduce the dimension and extract feature variables X1 to X k ;
[0076] Using the support vector machine classification algorithm, the feature variables X1 to X k As input, the predicted electrical parameters are given as output. The prediction function f(θ) is given by:
[0077]
[0078] Among them, X1 to X k is the characteristic variable, θ0 represents the initial output value of the prediction function f(θ), θ i represents the weight parameter of the model, and θ represents the best parameter selected through cross-validation;
[0079] Integrate historical data, train the digital twin model, and generate f(θ), where the parameter θ can predict the instantaneous value U of the voltage level of the i-th substation at time t. i (t), the instantaneous value of the current condition of the i-th substation at time t I i (t) and the instantaneous value PF of the current condition of the i-th substation at time t i (t);
[0080] It should be noted that by integrating historical data based on feature vectors, this step achieves a deep understanding of the power grid status and accurate prediction of future electrical parameters. The role of this process is that it combines the current real-time feature vectors with past operating data, and uses big data and machine learning technology to build a digital twin model that reflects the operating laws of the power grid. This model can not only map the current status of the real power grid, but also predict future changes in electrical parameters such as voltage level, current intensity and power factor based on historical trends.
[0081] S3. Implement multi-time scale optimization strategy, simulate and iterate the predicted electrical parameters, and generate the optimal reactive power control path.
[0082] Furthermore, the objective function J is defined as follows:
[0083]
[0084] Among them, ΔU i represents the voltage deviation at the i-th moment, Q i represents the reactive power distribution at the i-th moment, Cost(Q i ) represents the cost of operating the reactive power compensation equipment, w1, w2 and w3 are weight factors, representing voltage stability, reactive power consumption and operating cost respectively, ε represents a very small positive number to avoid division by zero and ensure the mathematical feasibility of the function, t s and t l represent short-term and long-term time scales, respectively;
[0085] The electrical parameters predicted by the twin model are input into the objective function J. The SA algorithm is used to dynamically adjust the balance between exploration and utilization in the search process on multiple time scales. The optimal or near-optimal reactive power control strategy can be effectively identified from the complex solution space, and the genetic algorithm is used for iteration to screen out the optimal reactive power control path P*.
[0086] Preferably, the electrical parameters predicted by the digital twin model are incorporated into a carefully designed objective function J, which is a key step in implementing the intelligent reactive power control strategy. The objective function J is designed to comprehensively consider multiple key indicators, including voltage stability (reflected by the square root of the cube of the voltage deviation), reactive power consumption (measured by the logarithm of the square of the reactive power distribution), and operating cost, aiming to find the best reactive power control path by optimizing these factors;
[0087] Furthermore, on this basis, the simulated annealing algorithm (SA) is introduced to solve the problem of reactive power control strategy optimization on multiple time scales. The simulated annealing algorithm draws on the concept of solid annealing process in physics, and explores the global optimal solution in the solution space by simulating the microstructural changes during the cooling process of the material. In the early stage of the algorithm execution, a larger temperature parameter is allowed, which means that the system has a higher probability of accepting a solution that is worse than the current solution. This feature helps the algorithm to jump out of the local optimum and conduct extensive exploration. As the iteration proceeds, the temperature gradually decreases, and the algorithm begins to focus more on the fine search of the local area, that is, it improves the "utilization" of the current better solution. This dynamic adjustment of the balance between exploration and utilization ensures that even in a highly nonlinear and multimodal solution space, the truly optimal reactive power control strategy can be effectively discovered or approached;
[0088] It should be noted that the present invention uses a genetic algorithm for iterative optimization. A genetic algorithm is a global optimization technology based on the principles of natural selection and genetics. It iteratively optimizes a set of solutions (called a population) by simulating operations such as selection, crossover (pairing) and mutation in the biological evolution process. In the context of the present invention, the genetic algorithm iteratively processes the solution set obtained by the preliminary exploration of simulated annealing, continuously selects individuals with higher fitness (i.e., better reactive power control paths), and performs combined mutations on them, gradually eliminating inferior solutions, thereby screening out the optimal reactive power control path P* from many candidate solutions;
[0089] It should also be noted that by cleverly combining the prediction results of the digital twin model with the objective function J, and the successive application of the simulated annealing algorithm and the genetic algorithm, the present invention can effectively identify and optimize the reactive power control strategy in a complex solution space, ensuring the global optimality or approximate optimality of the strategy, and providing strong technical support for the efficient and stable operation of the power system.
[0090] S4. Introduce quantum particle swarm optimization algorithm to deeply optimize the optimal reactive power control path and form the optimal reactive power compensation strategy
[0091] Furthermore, each particle represents a potential reactive power compensation strategy, and the latitude T of the particle and the position P of each particle are determined based on the reactive power control path P*. i , Pi = {Pi1, Pi2, ..., PiT}, where PiT represents the reactive power compensation strategy value of the i-th particle at time point T;
[0092] Initialize the position vector P of each particle i and speed V i And set the inertia weight w and learning factor λ, and update V according to the particle swarm optimization update formula i and P i , the update formula is as follows:
[0093] P i,new =P i,old +V i,new ;
[0094]
[0095] Among them, γ is the attenuation factor, which ensures that a certain exploration ability is retained in the later stage of the search, r best is the global optimal solution, r best is the local optimal solution, w is the weight factor related to the global search behavior, P i,old The old position of the particle, V i,new represents the new velocity of the particle, P i,new represents the updated position, e -γtIt represents the negative attenuation factor γ of e multiplied by the power of time t;
[0096] For each updated position, calculate its fitness value and evaluate the reactive power compensation strategy based on voltage stability and reactive power consumption cost;
[0097] Check and update the local optimal solution P of each particle best and the global optimal solution r best , according to the set number of iterations, iterate until the quantum particle swarm optimization algorithm converges and generates the optimal reactive power compensation strategy under the current conditions;
[0098] S5. Each substation implements reactive power balancing operation according to the optimal reactive power compensation strategy issued by the central control unit, and feeds back voltage changes and reactive power flow data to the central control unit in real time.
[0099] Furthermore, the central control unit generates detailed control instructions for each substation based on the optimized reactive power compensation strategy and transmits them to each substation;
[0100] The substation accurately adjusts the reactive power compensation equipment according to the instructions of the central control unit and changes the reactive power output in real time. At the same time, the monitoring system of the substation is started to closely monitor and continuously collect data information on reactive power Qi, voltage level Ui, power factor PFi, and status parameters of reactive power compensation equipment, and feeds back to the central control unit in real time;
[0101] Set the rated voltage to U, the fluctuation range is ±α%, the average power factor PF, the fluctuation range is ±β%,
[0102] Reactive power imbalance Q, fluctuation range is ±γ%;
[0103] When the voltage data of the substation exceeds U-α%≤U≤U+α%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired voltage stability state;
[0104] When the power factor data of the substation exceeds PF-β%≤PF≤PF+β%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired power factor stable state;
[0105] When the reactive power imbalance Q of the substation exceeds Q-γ%≤Q≤Q+γ%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches a stable state with the desired reactive power imbalance.
[0106] S6. Integrated self-learning mechanism, continuously adjusts and optimizes control algorithms and model parameters according to real-time feedback of voltage changes and reactive power flow data.
[0107] Furthermore, the last year of data is excluded from the complete training data set as an independent validation set. During the validation period, the trained digital twin model is applied to the historical data based on the previously defined features X1 to X k And the prediction function f(θ), the formula is as follows:
[0108]
[0109] Among them, X p(t+1) Represents the previously defined X1 to X k The value at time t+1;
[0110] For each time point t in the validation set, the error between the predicted value and the actual observed value is calculated using the following formula:
[0111]
[0112] Among them, Y pred (t) and Y actual (t) represents the predicted value and the actual value, N is the sample size of the validation set, and MSE represents the mean square error;
[0113] Set the mean square error threshold to TH res , when MSE≤TH res , it is considered that the prediction error of the digital twin model is within the acceptable range, the model is initially verified successfully, and the next test phase can be entered;
[0114] When MSE>TH res , it means that the prediction performance of the digital twin model has not met expectations, and it is necessary to enter the continuous optimization stage.
[0115] It should be noted that the specific steps for defining and calculating the mean square error are as follows: First, ensure that the validation set data is ready, which includes the predicted value Y_pred(t) and the corresponding actual measured value Y_actual(t), where t represents the time point or sample number;
[0116] The mean square error is calculated according to the following formula:
[0117]
[0118] Where N is the number of samples in the validation set, (Ypred(t)-Yactual(t)) 2 Represents the square of the difference between the predicted value and the actual value, and the summation range is from the starting time point Tst to the ending time point Ted;
[0119] Furthermore, a reasonable mean square error threshold THres is set based on project requirements, industry standards or previous model performance. This threshold is used to determine whether the model prediction performance is acceptable;
[0120] Compare the calculated MSE with the preset THres. If MSE≤THres, the prediction error of the model is considered to be within an acceptable range, indicating that the model has been initially verified successfully and has a certain prediction accuracy. At this point, you can consider advancing the model to a more in-depth application testing stage, such as online testing or more extensive scenario verification;
[0121] In-depth analysis of the time periods and specific conditions with large prediction errors in the validation set to identify possible weaknesses or data deviations in the model. Based on the error analysis results, re-evaluate the importance of features X1 to Xk, remove features that contribute less to the model, or explore new features to enhance the model's expressiveness. Use advanced optimization algorithms such as Adam to adjust the model parameters θ, and update the model parameters until convergence based on the principle of minimizing the loss function.
[0122] Furthermore, K-fold cross validation is used to further evaluate the model performance and ensure the generalization ability of the model. The average MSE of K iterations is used to decide whether to continue adjusting or select the best model configuration;
[0123] It should also be noted that if the MSE is still greater than THres, repeat the optimization process in step 4 and continue to iterate the model until the MSE drops below the threshold or reaches the preset maximum number of iterations. When the model is continuously optimized and the MSE drops below THres, a final verification is required to confirm that the model performance is stable and meets the actual application requirements. It is then deployed to the actual system, continuously monitored, and fine-tuned based on feedback.
[0124] Furthermore, when MSE>TH res When the error distribution is analyzed, the time periods and features with large forecast errors are identified, and the features X1 to X2 are re-evaluated. k The feature importance of , the features with lower scores are removed from the model;
[0125] According to the error analysis, the model parameter θ is adjusted and Adam is used for parameter optimization. The formula is as follows:
[0126]
[0127] Among them, θ t represents the value of the parameter at time t, represents the momentum estimate, represents the variance estimate, Represents the learning rate, ψ represents a very small number;
[0128] The dataset is randomly divided into K subsets and K iterations are performed. In each iteration, one subset is used as a validation set and the remaining K-1 subsets are used as training sets. The average MSE of K iterations is calculated as the model performance evaluation indicator.
[0129] When MSE>TH res When the error is found, the system returns to the error analysis step to perform feature analysis, parameter and hyperparameter adjustment until the model performance reaches the target. The model continuously learns and optimizes in multiple iterations to gradually improve the prediction accuracy.
[0130] This embodiment also provides a computer device, which is applicable to the AVC adjustment method for reactive power balance of multiple substations, and includes: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the AVC adjustment method for reactive power balance of multiple substations proposed in the above embodiment.
[0131] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0132] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the AVC regulation method for realizing reactive power balance of multiple substations as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0133] In summary, the present invention realizes the monitoring and understanding of user behavior through the analysis of user file operation behavior, can accurately capture the user's operation habits and behavior patterns, provide basic data for the subsequent generation of encryption strategies, and also help the system to detect and prevent abnormal behaviors; predict the user's future operations according to the user's behavior habits, so as to formulate encryption strategies more intelligently; more accurately protect user privacy, reduce the risk of data leakage, and improve the data security and confidentiality of the system; the present invention better adapts to the user's operation habits and needs, improves the intelligence level of the encryption algorithm and user experience, and enhances the flexibility and adaptability of the system.
[0134] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An AVC regulation method based on multi-substation reactive power balance, characterized in that: Said The central control unit receives data from each substation and extracts characteristic vectors of the current voltage level, current status and power factor of the power grid; Based on the feature vector, historical data is integrated to build a digital twin model to predict electrical parameters; Implement multi-time scale optimization strategies to iterate simulations of predicted electrical parameters and generate optimal reactive power control paths; The quantum particle swarm optimization algorithm is introduced to deeply optimize the optimal reactive power control path and form the optimal reactive power compensation strategy; Each substation implements reactive power balancing operations according to the optimal reactive power compensation strategy issued by the central control unit, and provides real-time feedback of voltage changes and reactive power flow data to the central control unit; The integrated self-learning mechanism continuously adjusts and optimizes the control algorithm and model parameters according to the real-time feedback of voltage changes and reactive power flow data.
2. The AVC regulation method based on multi-substation reactive power balance according to claim 1, characterized in that: The central control unit receives data from each substation and extracts a characteristic vector for the current voltage level, current status and power factor of the power grid. The specific steps are as follows: The central control unit receives data from each substation S i Collect real-time voltage U i 、Current I i And power factor PF i data; Remove outliers from voltage and current data and apply a sliding average filter to current and voltage signals; Based on the preprocessed data, construct the feature vector and normalize the feature vector; The normalized feature data is divided into data set, training set and validation set. The training set data is used to train the SVM model. The electrical parameters of the SVM are adjusted on the validation set through cross-validation, and the features are output to the digital twin model.
3. The AVC regulation method based on multi-substation reactive power balance according to claim 2, characterized in that: The specific steps of constructing a digital twin model to predict electrical parameters based on feature vectors and integrating historical data are as follows: Based on the preprocessed data, principal component analysis X t Extract the characteristic variables X1 to X1 that have the greatest impact on the power grid state k ; Using the support vector machine classification algorithm, the feature variables X1 to X k As input, the predicted electrical parameters are given as output. The prediction function f(θ) is given by: Among them, θ0 is the intercept term of the prediction function f(θ), θ i Corresponding to feature X p The weight coefficient of θ represents the vector of parameters of the prediction function f(θ), X p is the pth eigenvalue in the eigenvector, and k is the end point of the summation; Integrate historical data, train the digital twin model, and generate f(θ), where the parameter θ can predict the instantaneous value U of the voltage level of the i-th substation at time t. i (t), the instantaneous value of the current condition of the i-th substation at time t I i (t) and the instantaneous value PF of the current condition of the i-th substation at time t i (t).
4. The AVC regulation method based on multi-substation reactive power balance according to claim 3, characterized in that: The multi-time scale optimization strategy is implemented to simulate and iterate the predicted electrical parameters to generate the optimal reactive power control path. The specific steps are as follows: The objective function J is defined as follows: Among them, ΔU i represents the voltage deviation at the i-th moment, Q i represents the reactive power distribution at the i-th moment, Cost(Q i ) represents the cost caused by operating the reactive power compensation equipment at the i-th moment, Q is the reactive power, w1, w2 and w3 are weight factors, representing voltage stability, reactive power consumption and operating cost respectively, ε represents a very small positive number, t s and t l represent short-term and long-term time scales, respectively; The electrical parameters predicted by the twin model are input into the objective function J. The simulated annealing algorithm is used to find the reactive power control path P* through random search and gradual cooling mechanism on multiple time scales. The genetic algorithm is used for iteration to screen out the optimal reactive power control path.
5. The AVC regulation method based on multi-substation reactive power balance according to claim 4, characterized in that: The quantum particle swarm optimization algorithm is introduced to deeply optimize the optimal reactive power control path to form the optimal reactive power compensation strategy. The specific steps are as follows: Each particle represents a potential reactive power compensation strategy. The latitude T of the particle and the position P of each particle are determined based on the reactive power control path P*. i ; Initialize the position vector P of each particle i and speed V i And set the inertia weight w and learning factor λ, and update V according to the particle swarm optimization update formula i and P i , the update formula is as follows: P i,new =P i,old +V i,new ; Where γ is the attenuation factor, r best is the global optimal solution, r best is the local optimal solution, P i,old The old position of the particle, V i,new represents the new velocity of the particle, P i,new represents the updated position, w is the weight factor related to the global search behavior, e -γt It represents the negative attenuation factor γ of e multiplied by the power of time t; For each updated position, calculate its fitness value and evaluate the reactive power compensation strategy based on voltage stability and reactive power consumption cost; Check and update the local optimal solution P of each particle best and the global optimal solution r best , according to the set number of iterations, iterate until the quantum particle swarm optimization algorithm converges and generates the optimal reactive power compensation strategy under the current conditions.
6. The AVC regulation method based on multi-substation reactive power balance according to claim 5, characterized in that: Each substation implements reactive power balancing operation according to the optimal reactive power compensation strategy issued by the central control unit, and feeds back voltage changes and reactive power flow data to the central control unit in real time. The specific steps are as follows: Based on the optimized reactive power compensation strategy, the central control unit generates detailed control instructions for each substation and transmits them to each substation; The substation accurately adjusts the reactive power compensation equipment according to the instructions of the central control unit and changes the reactive power output in real time. At the same time, the monitoring system of the substation is started to closely monitor and continuously collect reactive power Q i , voltage level U i , Power Factor PF i The data information and status parameters of the reactive power compensation equipment are fed back to the central control unit in real time; Set the rated voltage to U, the fluctuation range to ±α%, the average power factor PF, the fluctuation range to ± β%, reactive power imbalance Q, fluctuation range is ±γ%; When the voltage data of the substation exceeds U-α%≤U≤U+α%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired voltage stability state; When the power factor data of the substation exceeds PF-β%≤PF≤PF+β%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches the desired power factor stable state; When the reactive power imbalance Q of the substation exceeds Q-γ%≤Q≤Q+γ%, the central control unit will start the closed-loop control process, recalculate and issue adjustment instructions until the system reaches a stable state with the desired reactive power imbalance.
7. The AVC regulation method based on multi-substation reactive power balance according to claim 6, characterized in that: The integrated self-learning mechanism, according to the real-time feedback of voltage changes and reactive power flow data, has the following specific steps: From the complete training data set, the last year’s data is excluded as an independent validation set. During the validation period, the trained digital twin model is applied to the historical data based on the previously defined features X1 to X k And the prediction function f(θ), the formula is as follows: Among them, X p(t+1) Represents the previously defined X1 to X k The value at time t+1; For each time point t in the validation set, the error between the predicted value and the actual observed value is calculated using the following formula: Among them, Y pd (t) and Y al (t) represents the predicted value and the actual value, N is the sample size of the validation set, MSE represents the mean square error, T d is the end time point of the summation, T st is the starting time point for summation; Set the mean square error threshold to TH res , when MSE≤TH res , it is considered that the prediction error of the digital twin model is within the acceptable range, the model is initially verified successfully, and enters the next test phase; When MSE>TH res , it means that the prediction performance of the digital twin model has not met expectations, and it is necessary to enter the continuous optimization stage.
8. The AVC regulation method based on multi-substation reactive power balance according to claim 7, characterized in that: The specific steps of continuously adjusting and optimizing the control algorithm and model parameters are as follows: When MSE>TH res When the error distribution is analyzed, the time periods and features with large forecast errors are identified, and the features X1 to X2 are re-evaluated. k The feature importance of the feature is removed from the model with low scores; According to the error analysis, the model parameter θ is adjusted and Adam is used for parameter optimization. The formula is as follows; Among them, θ t represents the value of the parameter at time t, represents the momentum estimate, represents the variance estimate, Represents the learning rate, ψ represents a very small number; The dataset is randomly divided into K subsets and K iterations are performed. In each iteration, one subset is used as a validation set and the remaining K-1 subsets are used as training sets. The average MSE of K iterations is calculated as the model performance evaluation indicator. When MSE>TH res When the error is found, the system returns to the error analysis step to perform feature analysis, parameter and hyperparameter adjustment until the model performance reaches the target. The model continuously learns and optimizes in multiple iterations to gradually improve the prediction accuracy.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the AVC adjustment method for reactive power balance of multiple substations according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the AVC adjustment method for reactive power balance of multiple substations according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Intelligent power reactive compensation controller monitoring method
CN119276010A
Smart city operation decision-making method and system based on big data
CN120450283A
