A method and system for optimizing power grid based on meteorological data
Through real-time collection and deep learning model analysis of meteorological and power grid data, early warning instructions are generated, and the salp swarm algorithm is used to optimize power grid dispatching, which solves the problem of insufficient application of meteorological data in traditional methods and achieves intelligent optimized operation, high efficiency and stability of the power grid. run.
Patent Information
- Application Number
- CN202410973277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Traditional power grid optimization dispatch methods ignore the real-time and refined application of meteorological data, resulting in lags and inaccuracies in dispatch decisions. They are unable to effectively integrate meteorological data and power grid operation data, resulting in insufficient overall perception of the power grid status and poor optimization effects. limited.
Meteorological data and power grid operating status data are collected in real time, fusion analysis and trend prediction are performed through deep neural network models, early warning instructions are generated, and the improved salp swarm algorithm is used to formulate power grid optimization dispatching strategies to ensure that the power grid is in optimal operating condition.
It improves the prediction and early warning capabilities of the power grid's operating status, realizes the intelligent optimized operation of the power grid, greatly improves the reliability and efficiency of the power grid operation, and ensures that the power grid system is in optimal operating condition.
Smart Images

Figure CN118523422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart grid technology, and more specifically, to a grid optimization method and system based on meteorological data. Background Art
[0002] The power grid system is one of the most important infrastructures in modern society. In smart grids, meteorological data has an important impact on the stable operation of the power system. For example, wind speed and temperature changes can affect the thermal stability of transmission lines and equipment, and thunderstorms can also cause equipment failures and power outages. However, traditional power grid optimization and dispatching methods often ignore the real-time and refined application of meteorological data, resulting in lags and inaccuracies in dispatching decisions. In addition, meteorological data and power grid operation data cannot be effectively integrated, resulting in insufficient overall perception of the power grid status and limited optimization effects. Therefore, there is a lack of a method that can effectively use real-time meteorological data to improve the reliability of power grid operation.
[0003] The Chinese patent with the authorization announcement number CN117526432B discloses a distribution network control system and method for source-load interaction; including: collecting the operation data and meteorological data of the distribution network, and establishing a distribution network model; based on the established distribution network model, performing distribution network resource optimization calculation and generating a resource scheduling plan; using the distribution network model, calculating the capacity of the distributed power sources connected to the distribution network; according to the resource scheduling plan and the capacity of the distributed power sources, establishing a multi-objective decision model, and solving to obtain the Pareto optimal solution set that meets the capacity constraint; selecting a control plan that meets the optimization goal from the Pareto optimal solution set; by establishing a distribution network model, optimizing resource scheduling, and enhancing stability and flexibility, the power grid's ability to absorb new energy is effectively improved;
[0004] Although the above-mentioned technology takes into account the impact of meteorological data on the power grid system, and realizes the optimal scheduling of resources and generates the best control plan; the core goal of the above-mentioned technology is to reasonably arrange the access of new energy to the power grid system, so as to improve the power grid system's ability to absorb large-scale new energy, that is, the best control plan generated is how to absorb new energy to the greatest extent under the influence of meteorological data; however, maximizing the new energy absorption capacity is not equivalent to the optimal operating state of the power grid. Therefore, the above-mentioned technology cannot optimize the scheduling of abnormal operating states that may occur in the power grid system itself, so as to realize the optimal operating state of the power grid system, thereby reducing the operating efficiency and stability of the power grid;
[0005] In view of this, the present invention proposes a power grid optimization method and system based on meteorological data to solve the above problems. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: a power grid optimization method based on meteorological data, comprising:
[0007] Collect meteorological data in real time;
[0008] Collecting the operation status data of the power grid in real time; the operation status data includes current value, voltage value, line load, power grid load, power factor and equipment temperature;
[0009] The meteorological data and the operating status data are integrated and analyzed to determine the meteorological data that affects the operating status data and mark it as the influencing data;
[0010] Analyze the impact data, predict the change trend of the operation status data, and draw the corresponding data change curve;
[0011] According to the data change curve, determine whether to generate an early warning instruction;
[0012] According to the data change curve corresponding to the early warning instruction, formulate and implement the power grid optimization dispatching strategy.
[0013] Furthermore, the meteorological data includes temperature, rainfall, wind speed, lightning intensity and dust concentration;
[0014] The method for determining meteorological data that affects operating status data includes:
[0015] The meteorological data and the operating status data are used as analysis data, the analysis data are input into the trained impact analysis model, the corresponding judgment results are obtained, and the meteorological data that affects the operating status data is judged according to the judgment results;
[0016] The judgment result is a string of five digits, and the digits in the string correspond to the data in the meteorological data one by one; wherein the value of each digit is b or c, and b and c are different integers; if the data in the meteorological data has an impact on the running status data, the value of the corresponding digit is b, and if the data in the meteorological data has no impact on the running status data, the value of the corresponding digit is c;
[0017] The training process of the impact analysis model includes:
[0018] Pre-set the corresponding judgment result for group a of analysis data, where a is an integer greater than 1;
[0019] The analysis data and the corresponding judgment results are converted into a corresponding set of feature vectors; each set of feature vectors is used as the input of the impact analysis model, and the impact analysis model takes a set of predicted judgment results corresponding to each set of analysis data as output, and takes the actual judgment results corresponding to each set of analysis data as the prediction target, and the actual judgment results are the pre-collected digital labels of the judgment results corresponding to the analysis data; minimizing the sum of the prediction errors of all analysis data is used as the training goal; the impact analysis model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the impact analysis model is a deep neural network model.
[0020] Furthermore, the method for predicting the change trend of the operating status data includes:
[0021] A preset time interval is used, and one of the impact data, the time interval and the operation status data is used as a set of evaluation data, that is, the evaluation data corresponds to the data in the operation status data one by one, and there are six sets of evaluation data in total;
[0022] Input each set of evaluation data into the corresponding change prediction model, predict the running status data after the time interval, and mark it as the first prediction data, then replace the running status data in each set of evaluation data with the corresponding data in the first prediction data, input each set of evaluation data after the replacement into the corresponding change prediction model again, predict the running status data after the time interval again, and mark it as the second prediction data; and so on, until the running status data after T time intervals are obtained, and marked as the Tth prediction data, where T is an integer greater than 2;
[0023] Among them, the change prediction model includes a current prediction model, a voltage prediction model, a load prediction model, a load prediction model, a power prediction model and a temperature prediction model; the training process of each model in the change prediction model is consistent with the training process of the impact analysis model, and they are all deep neural network models; according to the real-time collected operating status data and the first prediction data to the Tth prediction data output by each change prediction model, the change trend of each data in the operating status data is obtained;
[0024] The methods for drawing the corresponding data change curve include:
[0025] According to the changing trend of each data in the running status data, the real-time collected running status data and the first predicted data to the Tth predicted data corresponding to each data in the running status data are smoothly connected by polynomial fitting or spline interpolation to draw the corresponding data change curve.
[0026] Further, the warning instructions include current warning instructions, voltage warning instructions, load warning instructions, load warning instructions, power warning instructions and temperature warning instructions; the current warning instructions include current fluctuation instructions and current peak instructions; the voltage warning instructions include voltage fluctuation instructions and voltage range instructions; the load warning instructions include load fluctuation instructions and load peak instructions;
[0027] Preset judgment thresholds, which include peak thresholds, valley thresholds, range thresholds and fluctuation thresholds; wherein the peak thresholds include current peak thresholds, load peak thresholds and load peak thresholds, the range thresholds include voltage range thresholds and temperature range thresholds, and the fluctuation thresholds include current fluctuation thresholds, voltage fluctuation thresholds and load fluctuation thresholds;
[0028] The peak threshold, valley threshold and range threshold in the judgment threshold are added to the corresponding data change curves respectively;
[0029] In the data change curve corresponding to the current value, if all current values are below the current peak threshold, no current peak instruction is generated; if there is a current value above or overlapping the current peak threshold, a current peak instruction is generated; the method for determining whether to generate a load warning instruction and a load peak instruction is the same as the method for determining whether to generate a current peak instruction;
[0030] In the voltage value corresponding data change curve, if all voltage values are within the voltage range threshold, no voltage range instruction is generated; if there is a voltage value outside the voltage range threshold or overlaps, a voltage range instruction is generated; the method for determining whether to generate a temperature warning instruction is the same as the method for determining whether to generate a voltage range instruction;
[0031] In the data change curve corresponding to the power factor, if all power factors are above the valley threshold, no power warning instruction is generated; if there is a power factor below or overlapping the valley threshold, a power warning instruction is generated.
[0032] Further, the data change curves corresponding to the current value, voltage value and grid load are marked as fluctuation analysis curves, and each fluctuation analysis curve is discretized into A small segments according to the preset fluctuation time, where A is an integer greater than 1; each small segment is then divided into B differential time points according to the preset differential time, where B is an integer greater than 1, and the fluctuation time is less than the time interval but greater than the differential time; according to each fluctuation analysis curve, the value of the operating status data corresponding to each differential time point is obtained and marked as an operating value; two adjacent differential time points in each small segment of each fluctuation analysis curve are regarded as a fluctuation set; the operating value corresponding to one differential time point in each fluctuation set is subtracted from the operating value corresponding to another differential time point and the absolute value is taken to obtain the numerical fluctuation amount;
[0033] The numerical fluctuation amount of each fluctuation analysis curve is compared with the corresponding fluctuation threshold value;
[0034] If the numerical fluctuation amounts corresponding to the current values are all smaller than the current fluctuation threshold, no current fluctuation instruction is generated; if the numerical fluctuation amounts corresponding to the current values are greater than or equal to the current fluctuation threshold, a current fluctuation instruction is generated; the method for determining whether to generate a voltage fluctuation instruction and a load fluctuation instruction is the same as the method for determining whether to generate a current fluctuation instruction.
[0035] Furthermore, the steps of formulating the grid optimization dispatching strategy include:
[0036] Step 1: Preset the population size Z and the number threshold G; preset the set of optimized scheduling strategies;
[0037] Step 2: Randomly select an instruction that is not marked as a selected instruction from the warning instructions and mark it as the current instruction, obtain the strategy set corresponding to the current instruction from the optimization scheduling strategy set, and mark it as the current set; generate an initialization population, the position of the individual in the initialization population is defined in a one-dimensional search space, and the position of the individual corresponds to the strategy scheme number in the current set one by one;
[0038] Step 3: Determine the fitness function;
[0039] Step 4: Calculate the fitness of each individual in the initialized population, and take the position of the individual with the maximum fitness as the food source position;
[0040] Step 5: Update the leader position and follower position;
[0041] Step 6: Calculate the dynamic boundary, generate the reverse solution corresponding to each individual and add it to the population;
[0042] Step 7: Take the reverse solution of the individual as an individual, calculate the fitness of all individuals in the population, sort the fitness of all individuals in the population from large to small, retain the first Z individuals, and use them as the new population. The position of the individual with the largest fitness in the new population is used as the new food source position;
[0043] Step 8: Loop through steps 5 to 7 until the number of iterations corresponding to the new population reaches the number threshold G, then the loop ends, obtains the strategy plan number corresponding to the food source location in the new population, and proceeds to step 9;
[0044] Step 9: Mark the current instruction as the selected instruction, and loop steps 2 to 9 until all instructions in the warning instructions are marked as selected instructions. The loop ends, and the corresponding strategy scheme is obtained according to the strategy scheme number corresponding to each instruction in the warning instruction.
[0045] Furthermore, in step 1, the optimization scheduling strategy set includes nine strategy sets, and the strategy sets correspond to the instructions of the early warning instructions one by one. Each strategy set includes C strategy scheme numbers, C is an integer greater than 1, and the strategy scheme numbers correspond to the strategy schemes one by one.
[0046] In step 2, the population is initialized , including Z individuals, of which the first individual is the leader, and the rest Only individuals are followers; get the strategy plan number range , the range of the one-dimensional search space is also ;
[0047] In step 3, the expression of the fitness function is: ; In the formula, For fitness, To optimize the effect;
[0048] Methods for obtaining optimization effects include:
[0049] The data output by the change prediction model corresponding to the current instruction is marked as the current data; the strategy scheme number and the current data corresponding to the individual position are used as test data, and the test data is input into the trained optimization analysis model to predict the current data after optimization by the strategy scheme, and marked as the optimized data;
[0050] According to the optimization data, it is determined again whether to generate the current instruction; if the current instruction is still generated, the corresponding optimization effect is D, and the range of the optimization effect is , ; If the current instruction is not generated, the current data, optimization data and simultaneous prediction data are used as research data, and the research data is input into the trained effect analysis model to predict the corresponding optimization effect; the training process of the effect analysis model and the optimization analysis model is consistent with the training process of the impact analysis model, and both are deep neural network models; the simultaneous prediction data is the remaining data output by the change prediction model with the same time interval as the current data.
[0051] Furthermore, in step 5, the method for updating the leader position includes:
[0052] Sort the fitness of all individuals in the population from large to small, and place the individual position corresponding to the fitness next to the fitness corresponding to the food source position as the second position, and the individual position corresponding to the last fitness as the last position;
[0053] ;
[0054] In the formula, For the leadership position, is the location of the food source, for distribution, d is the number of iterations, and the number of iterations d is The degrees of freedom parameter of the distribution, is a number of iterations d A random value from a distribution, For the second position, For the last position, for The random numbers in for Random numbers in ;
[0055] Methods for updating follower locations include:
[0056] ;
[0057] In the formula, For the Only the individual position, For the Only the individual position, ; Coming soon Only the current position of the individual Just add the current position of the individual, multiply it by half and give it to the Only the updated position of the individual.
[0058] Furthermore, in step 6, the dynamic boundary is , is the strategy number corresponding to the last position, is the strategy number corresponding to the food source location, ;
[0059] The methods for generating the inverse solution include:
[0060] ;
[0061] In the formula, is the reverse solution of the y-th individual, for The random numbers in , is the position of the yth individual;
[0062] If the generated reverse solution is greater than or less than the dynamic boundary, it is marked as a transcendental solution, a random number function is used to randomly generate a value within the dynamic boundary, and the randomly generated value is assigned to the transcendental solution.
[0063] Furthermore, each policy solution is analyzed to determine whether to delete it;
[0064] A regular expression is used to extract the corresponding text content from each policy scheme and marked as a policy text; a hash function is used to convert each policy text into a corresponding hash value and marked as a policy hash value;
[0065] Compare each policy hash value with the remaining policy hash values respectively; if all policy hash values are different, the policy scheme will not be deleted; if there are identical policy hash values, the corresponding policy scheme will be marked as a similar scheme, and a regular expression will be used to determine whether there are numbers in the similar scheme; if there are no numbers in the similar scheme, only one similar scheme will be retained, and the remaining similar schemes will be deleted; if there are numbers in the similar scheme, the regular expression will be used again to extract the corresponding digital content from each similar scheme and marked as a policy number; compare each policy number, retain the similar scheme with the largest policy number, and delete the remaining similar schemes.
[0066] A power grid optimization system based on meteorological data, implementing a power grid optimization method based on meteorological data, comprising:
[0067] Meteorological data collection module, used to collect meteorological data in real time;
[0068] Operation data acquisition module, used to collect the operation status data of the power grid in real time;
[0069] The fusion analysis module is used to perform fusion analysis on meteorological data and operation status data, determine the meteorological data that affects the operation status data, and mark it as the influencing data;
[0070] The trend prediction module is used to analyze the impact data, predict the change trend of the operation status data, and draw the corresponding data change curve;
[0071] The early warning module is used to determine whether to generate an early warning instruction based on the data change curve;
[0072] The intelligent optimization module is used to formulate and execute the power grid optimization dispatching strategy according to the data change curve corresponding to the early warning instruction.
[0073] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method for optimizing a power grid based on meteorological data is implemented.
[0074] A computer-readable storage medium stores a computer program, and when the computer program is executed, the method for optimizing a power grid based on meteorological data is implemented.
[0075] The technical effects and advantages of the power grid optimization method and system based on meteorological data of the present invention are as follows:
[0076] 1. By collecting power grid operation status data and meteorological data in real time, and using a variety of deep learning models to perform fusion analysis and trend prediction on the data, it is possible to comprehensively and finely identify various abnormal situations that may occur in the power grid, thereby intelligently generating targeted early warning instructions; at the same time, the improved Salp Swarm algorithm is used to formulate and execute power grid optimization and dispatching strategies; the impact of meteorological data on the power grid is fully considered, and the prediction and early warning capabilities of the power grid operation status are improved. The power grid optimization and dispatching strategies can be formulated more real-time and accurately, realizing the intelligent optimization operation of the power grid, greatly improving the reliability and efficiency of the power grid operation, so as to ensure that the power grid system is in the best operating state.
[0077] 2. By extracting the text content in the strategy plan through regular expressions and using the hash algorithm to convert the text content into hash values for comparison, it is possible to efficiently identify situations that are essentially the same or similar in the generated different optimization strategy plans, delete redundant plans, and retain the plan with the largest value. This can not only reduce the risks brought by repeatedly executing the same or similar strategy plans, but also improve operating efficiency while ensuring the optimization effect, effectively ensuring the final optimization result; further improve the reliability and stability of power grid operation, and ensure that the power grid system is in the best operating state. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 This is a schematic diagram of a power grid optimization system based on meteorological data according to Embodiment 1 of the present invention;
[0079] Figure 2 This is a schematic diagram of a power grid optimization system based on meteorological data according to Embodiment 2 of the present invention;
[0080] Figure 3 This is a flow chart of a power grid optimization method based on meteorological data according to Embodiment 3 of the present invention;
[0081] Figure 4 This is a schematic diagram of an electronic device according to Embodiment 4 of the present invention;
[0082] Figure 5 This is a schematic diagram of a storage medium according to Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0083] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] Example 1
[0085] See also Figure 1 As shown, the power grid optimization system based on meteorological data described in this embodiment includes a meteorological data acquisition module, an operation data acquisition module, a fusion analysis module, a trend prediction module, an early warning module and an intelligent optimization module; each module is connected by wired and / or wireless means to realize data transmission between modules;
[0086] Meteorological data collection module, used to collect meteorological data in real time.
[0087] Meteorological data include temperature, rainfall, wind speed, lightning intensity and dust concentration; meteorological data are obtained by automatic weather stations, which include temperature sensors, funnel rain gauges, thermoelectric anemometers, lightning observation radars and dust sensors to realize real-time collection of meteorological data; automatic weather stations are set up near important nodes of the power grid, such as near substations and high-voltage grid switch sites.
[0088] It should be noted that high temperatures may increase the load on the power grid, while low temperatures may cause transmission line failures; heavy rainfall may cause short circuits, and heavy rains may also cause floods, disrupting the power grid's operating load and causing insulation failures; strong winds may blow down transmission cables or supports, causing line interruptions, or damage equipment such as substations; high-intensity lightning strikes may directly damage transmission lines or trigger fires, causing power grid interruptions; high dust concentrations may cause sand and dust to accumulate on the surface of equipment, increase the load, and may also affect switch operation.
[0089] The operation data acquisition module is used to collect the operation status data of the power grid in real time.
[0090] The operating status data includes current value, voltage value, line load, grid load, power factor and equipment temperature; the operating status data is automatically obtained from the power grid system; among them, the line load is the required transmission power of the line; the grid load is the total power required by all load devices; the power factor is the power quality of the load device in the power grid, which is the ratio of actual active power to indicated power, and the indicated power is the sum of active power and reactive power; the equipment temperature is the temperature of the power grid equipment.
[0091] It should be understood that the larger the current value, the more likely it is that the line capacity will exceed the limit and an overload fault will occur; the lower the voltage value, the more likely it is that the normal operation of the load equipment will be affected, and the larger the voltage value, the risk of insulation damage; the heavier the line load, the more likely it is that the line will heat up or be overloaded; the greater the grid load, the more unbalanced the power supply will be; the smaller the power factor, the worse the power quality and the higher the grid loss; the higher the equipment temperature, the shorter the insulation life of the grid equipment and the impact on operating efficiency and reliability.
[0092] The fusion analysis module is used to fuse the meteorological data and the operating status data, determine the meteorological data that affects the operating status data, and mark it as influencing data, so as to reduce computing resources and improve analysis efficiency.
[0093] Methods for determining meteorological data that affect operating status data include:
[0094] The meteorological data and the operating status data are used as analysis data, the analysis data are input into the trained impact analysis model, the corresponding judgment results are obtained, and the meteorological data that affects the operating status data is judged according to the judgment results;
[0095] The judgment result is a string consisting of five digits, and the digits in the string correspond one-to-one to the data in the meteorological data; wherein the value of each digit is b or c, b and c are different integers, and in this embodiment, b is preferably 0 and c is 1; if the data in the meteorological data has an impact on the running status data, the value of the corresponding digit is b, and if the data in the meteorological data has no impact on the running status data, the value of the corresponding digit is c; illustratively, assuming that in the string, the first digit corresponds to temperature, the second digit corresponds to rainfall, the third digit corresponds to wind speed, the fourth digit corresponds to lightning intensity, and the fifth digit corresponds to dust concentration; and the temperature, wind speed and dust concentration in the meteorological data have an impact on the running status data, while the rainfall and lightning intensity have no impact on the running status data, then the corresponding judgment result should be bcbcb.
[0096] The specific training process of the impact analysis model includes:
[0097] A corresponding judgment result is set in advance for a group of analysis data, where a is an integer greater than 1; the judgment result corresponding to the analysis data is determined by a technician in the field of historical data fusion analysis, and a group of different analysis data is collected. The technician in the field of meteorological data determines in turn based on actual experience whether each data in the meteorological data will affect the operation status data under the conditions of each group of meteorological data, and sets the corresponding judgment result for a group of different analysis data in turn;
[0098] The analysis data and the corresponding judgment results are converted into a corresponding set of feature vectors; each set of feature vectors is used as the input of the impact analysis model, and the impact analysis model uses a set of predicted judgment results corresponding to each set of analysis data as output, and the actual judgment results corresponding to each set of analysis data as the prediction target, and the actual judgment results are the pre-collected digital labels of the judgment results corresponding to the analysis data; the training goal is to minimize the sum of the prediction errors of all analysis data; wherein the calculation formula of the prediction error is: ,in is the prediction error, is the group number of the eigenvector corresponding to the analyzed data, For the The prediction results corresponding to the group analysis data, For the The actual judgment result corresponding to the group analysis data; the impact analysis model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the impact analysis model is specifically a deep neural network model.
[0099] The trend prediction module is used to analyze the influencing data, predict the changing trend of the operating status data, and draw the corresponding data change curve.
[0100] Methods for predicting the changing trend of operating status data include:
[0101] Preset the time interval, and use one of the impact data, time interval and operation status data as a set of evaluation data, that is, the evaluation data corresponds to the data in the operation status data one by one, and there are six sets of evaluation data in total; the time interval is preset by those skilled in the art according to the accuracy required for actual power grid optimization;
[0102] Each group of evaluation data is input into the corresponding change prediction model respectively, and the operating status data after the time interval is predicted and marked as the first prediction data. The operating status data in each group of evaluation data is then replaced with the corresponding data in the first prediction data. Each group of evaluation data after the replacement is input into the corresponding change prediction model again, and the operating status data after the time interval is predicted again, and marked as the second prediction data; and so on, until the operating status data after T time intervals is obtained and marked as the Tth prediction data, where T is an integer greater than 2.
[0103] It should be noted that within the same time interval, the change range of the operating status data is different. Therefore, the predicted operating status data for the next time interval needs to be input into the change prediction model again to accurately predict the operating status data for the next two time intervals, thereby improving the accuracy and robustness of the prediction.
[0104] Among them, the change prediction model includes a current prediction model, a voltage prediction model, a load prediction model, a load prediction model, a power prediction model and a temperature prediction model; the specific training process of each model in the change prediction model is consistent with the training process of the impact analysis model, and they are all deep neural network models; the input corresponding to the current prediction model is the evaluation data including the current value, and the output is the current value after the time interval; the input of the voltage prediction model is the evaluation data including the voltage value, and the output is the voltage value after the time interval; the input of the load prediction model is the evaluation data including the line load, and the output is the line load after the time interval; the input of the load prediction model is the evaluation data including the grid load, and the output is the grid load after the time interval; the input of the power prediction model is the evaluation data including the power factor, and the output is the power factor after the time interval; the input of the temperature prediction model is the evaluation data including the equipment temperature, and the output is the equipment temperature after the time interval.
[0105] According to the real-time collected operating status data and the first to Tth prediction data output by each change prediction model, the change trend of each data in the operating status data is obtained.
[0106] The methods for drawing the corresponding data change curve include:
[0107] According to the change trend of each type of data in the running status data, the real-time collected running status data and the first predicted data to the T-th predicted data corresponding to each type of data in the running status data are smoothly connected by polynomial fitting or spline interpolation, and the corresponding data change curve is drawn; polynomial fitting and spline interpolation are both existing technologies and will not be described in detail here; each data change curve reflects the value of the corresponding data at each time interval point, wherein the real-time collected running status data corresponds to the zeroth time interval point, the first predicted data corresponds to the first time interval point, the second predicted data corresponds to the second time interval point, ..., the T-th predicted data corresponds to the T-th time interval point.
[0108] The early warning module is used to determine whether to generate an early warning instruction based on the data change curve.
[0109] The warning instructions include current warning instructions, voltage warning instructions, load warning instructions, load warning instructions, power warning instructions and temperature warning instructions; the current warning instructions include current fluctuation instructions and current peak instructions; the voltage warning instructions include voltage fluctuation instructions and voltage range instructions; the load warning instructions include load fluctuation instructions and load peak instructions.
[0110] Preset judgment thresholds, which include peak thresholds, valley thresholds, range thresholds and fluctuation thresholds; among them, the peak threshold includes current peak threshold, load peak threshold and load peak threshold, the range threshold includes voltage range threshold and temperature range threshold, and the fluctuation threshold includes current fluctuation threshold, voltage fluctuation threshold and load fluctuation threshold.
[0111] It should be understood that the judgment thresholds are obtained by technicians in this field by collecting and testing the operation status data of the power grid multiple times during the historical power grid optimization process; first, the operation status data is gradually increased, and the corresponding values of each operation status data when it is abnormal for the first time are recorded multiple times, and marked as maximum values; the average of the maximum values of multiple current values is used as the current peak threshold, the average of the maximum values of multiple line loads is used as the load peak threshold, and the average of the maximum values of multiple power grid loads is used as the charge peak threshold; then the operation status data is gradually reduced, and the corresponding values of each operation status data when it is abnormal for the first time are recorded multiple times, and marked as minimum values; the minimum values of multiple power factors are used as the load peak threshold. The mean of the values is used as the valley threshold; the mean of the maximum values and the mean of the minimum values of multiple voltage values are used as the voltage range threshold, and the mean of the maximum values and the mean of the minimum values of multiple device temperatures are used as the temperature range threshold; finally, each operating status data is subjected to different degrees of numerical fluctuations within a preset differential time, and the absolute value of the specific numerical value corresponding to the numerical fluctuation when each operating status data is abnormal for the first time is recorded multiple times and marked as the fluctuation value, and the differential time is less than the time interval; the mean of the fluctuation values of multiple current values is used as the current fluctuation threshold, the mean of the fluctuation values of multiple voltage values is used as the voltage fluctuation threshold, and the mean of the fluctuation values of multiple power grid loads is used as the load fluctuation threshold.
[0112] The peak threshold, valley threshold and range threshold in the judgment threshold are added to the corresponding data change curves respectively;
[0113] In the data change curve corresponding to the current value, if all current values are below the current peak threshold, no current peak instruction is generated. If there is a current value above or overlapping the current peak threshold, a current peak instruction is generated, indicating that the current is too large and an abnormal situation exists. The method for determining whether to generate a load warning instruction and a load peak instruction is the same as the method for determining whether to generate a current peak instruction.
[0114] In the voltage value corresponding data change curve, if all voltage values are within the voltage range threshold, no voltage range instruction is generated. If there is a voltage value outside the voltage range threshold or overlaps, a voltage range instruction is generated, indicating that the voltage is too large or too small and there is an abnormal situation. The method for determining whether to generate a temperature warning instruction is the same as the method for determining whether to generate a voltage range instruction.
[0115] In the data change curve corresponding to the power factor, if all power factors are above the valley threshold, no power warning instruction is generated. If there is a power factor below or overlapping the valley threshold, a power warning instruction is generated, indicating that the power factor is too small and there is an abnormal situation.
[0116] The data change curves corresponding to the current value, voltage value and grid load are marked as fluctuation analysis curves, and each fluctuation analysis curve is discretized into A small segments according to the preset fluctuation time, where A is an integer greater than 1; each small segment is then divided into B differential time points according to the preset differential time, where B is an integer greater than 1, and the fluctuation time is less than the time interval but greater than the differential time. The differential time and the fluctuation time are preset by technical personnel in this field according to the accuracy required for fluctuation analysis; according to each fluctuation analysis curve, the value of the operating status data corresponding to each differential time point is obtained and marked as an operating value; the two adjacent differential time points in each small segment of each fluctuation analysis curve are regarded as a fluctuation set; the operating value corresponding to one differential time point in each fluctuation set is subtracted from the operating value corresponding to another differential time point and the absolute value is taken to obtain the numerical fluctuation amount;
[0117] The numerical fluctuation amount of each fluctuation analysis curve is compared with the corresponding fluctuation threshold value;
[0118] If the numerical fluctuation amounts corresponding to the current values are all smaller than the current fluctuation threshold, no current fluctuation instruction is generated; if the numerical fluctuation amounts corresponding to the current values are greater than or equal to the current fluctuation threshold, a current fluctuation instruction is generated, indicating that the current value fluctuates too much and an abnormal situation exists; the method for determining whether to generate a voltage fluctuation instruction and a load fluctuation instruction is the same as the method for determining whether to generate a current fluctuation instruction.
[0119] The intelligent optimization module is used to formulate and implement power grid optimization dispatching strategies according to the data change curve corresponding to the early warning instructions, so as to reduce power fluctuations and failures in the power grid caused by weather changes.
[0120] The steps to develop a grid optimization dispatch strategy include:
[0121] Step 1: Preset the population size Z and the number threshold G; preset the set of optimized scheduling strategies.
[0122] Step 2: Randomly select an instruction that is not marked as a selected instruction from the warning instructions and mark it as the current instruction. Obtain the strategy set corresponding to the current instruction from the optimization scheduling strategy set and mark it as the current set. Generate an initialization population. The positions of individuals in the initialization population are defined in a one-dimensional search space. The positions of individuals correspond one-to-one to the strategy scheme numbers in the current set.
[0123] Step 3: Determine the fitness function.
[0124] Step 4: Calculate the fitness of each individual in the initialized population, and take the position of the individual with the maximum fitness as the food source position.
[0125] Step 5: Update the leader position and follower position.
[0126] Step 6: Calculate the dynamic boundary, generate the reverse solution corresponding to each individual and add it to the population.
[0127] Step 7: Take the reverse solution of the individual as an individual, calculate the fitness of all individuals in the population, sort the fitness of all individuals in the population from large to small, retain the first Z individuals, and use them as the new population, and use the position of the individual with the largest fitness in the new population as the new food source position.
[0128] Step 8: Loop steps 5 to 7 until the number of iterations corresponding to the new population reaches the number threshold G. The loop ends, obtains the strategy plan number corresponding to the food source location in the new population, and proceeds to step 9.
[0129] Step 9: Mark the current instruction as the selected instruction, and loop steps 2 to 9 until all instructions in the warning instructions are marked as selected instructions. The loop ends, and the corresponding strategy scheme is obtained according to the strategy scheme number corresponding to each instruction in the warning instruction.
[0130] It should be noted that the population size Z is determined by technical personnel in this field. In the process of obtaining the historical strategy plan number, under the conditions of multiple different warning instructions, multiple different population sizes are set for the same warning instruction, and the salp swarm algorithm is performed multiple times. The corresponding strategy plan number is obtained after the same number of iterations. The strategy plan number and the population size closest to the actual strategy plan number are used as the strategy plan number corresponding to the warning instruction. The actual strategy plan number is the optimal strategy plan number when the warning instruction is optimized. The actual strategy plan number is obtained by technical personnel in this field based on actual experience; and the population size corresponding to each warning instruction is obtained in this way, and the average of multiple population sizes is used as the preset population size Z.
[0131] The number threshold G is determined by a technician in this field. During the process of obtaining the historical strategy plan number, under the conditions of multiple different warning instructions, the same warning instruction is subjected to multiple salp swarm algorithms to obtain multiple strategy plan numbers, wherein the number of iterations of the salp swarm algorithm is different each time, and the population size is the same and is Z; the number of iterations that is closest to the strategy plan number and the actual strategy plan number is used as the number of iterations corresponding to the warning instruction; and the number of iterations corresponding to each warning instruction is obtained in this way, and the average of multiple iterations is used as the number threshold G.
[0132] In the above step 1, the optimization scheduling strategy set includes nine strategy sets, and the strategy sets correspond to the instructions of the early warning instructions one by one. Each strategy set includes C strategy scheme numbers, C is an integer greater than 1, and the strategy scheme numbers correspond to the strategy schemes one by one; the strategy schemes in each strategy set are obtained by technical personnel in this field from the strategy schemes collected and used in the historical successful optimization process of the power grid. The successful optimization of the historical power grid is that when the early warning instruction is generated, the early warning instruction is successfully eliminated and the power grid is in the best operating state; exemplarily, if a current fluctuation instruction is generated, and the numerical fluctuation amount of the current value exceeds 5% compared with the current fluctuation threshold, the corresponding strategy scheme is to increase the operational capacity of the reactive compensation device by 10-20Mvar to reduce the fluctuation amplitude of the current value; if a temperature early warning instruction is generated, and the temperature of the metal conductor of the transmission line exceeds 80°C, the corresponding strategy scheme is to reduce the transmission power of the transmission line by 5%-10%, and at the same time improve the heat dissipation efficiency of the transmission line by 10%-20% to reduce the line load.
[0133] In step 2 above, the population is initialized , including Z individuals, of which the first individual is the leader, and the rest Only individuals are followers; get the strategy plan number range , the range of the one-dimensional search space is also .
[0134] In the above step 3, the expression of the fitness function is: ; In the formula, For fitness, To optimize the effect.
[0135] Methods for obtaining optimization effects include:
[0136] The data output by the change prediction model corresponding to the current instruction is marked as the current data. For example, the current instruction is the current peak instruction. The reason for generating the current peak instruction is that the second prediction data output by the current prediction model is greater than the current peak threshold value. Therefore, the current data is the second prediction data output by the current prediction model; the strategy scheme number and the current data corresponding to the individual position are used as test data, and the test data are input into the trained optimization analysis model to predict the current data after optimization by the strategy scheme, and marked as optimized data; the optimization data corresponding to the test data is collected by technicians in this field in the historical power grid optimization process, and the strategy scheme is used for optimization under the condition of each group of current data. After the optimization is completed, the optimization data is obtained, and the corresponding optimization data is set for each group of different test data in turn;
[0137] According to the optimization data, it is determined again whether to generate the current instruction; if the current instruction is still generated, the corresponding optimization effect is D, and the range of the optimization effect is , ; If the current instruction is not generated, the current data, optimization data and simultaneous prediction data are used as research data, and the research data are input into the trained effect analysis model to predict the corresponding optimization effect; the optimization effect corresponding to the research data is collected by technical personnel in the historical power grid optimization process, and multiple groups of different research data are collected, and the corresponding optimization effect is analyzed in combination with actual experience under the conditions of each group of research data, and the corresponding optimization effect is set for each group of different research data in turn; the specific training process of the effect analysis model and the optimization analysis model is consistent with the training process of the impact analysis model, and both are deep neural network models; the simultaneous prediction data is the remaining data output by the change prediction model with the same time interval as the current data, for example, the current data is the second prediction data output by the current prediction model, and the simultaneous prediction data is the second prediction data output by the voltage prediction model, the load prediction model, the load prediction model, the power prediction model and the temperature prediction model.
[0138] In the above step 5, the method for updating the leader position includes:
[0139] Sort the fitness of all individuals in the population from large to small, and place the individual position corresponding to the fitness next to the fitness corresponding to the food source position as the second position, and the individual position corresponding to the last fitness as the last position;
[0140] ;
[0141] In the formula, For the leadership position, is the location of the food source, for distribution, d is the number of iterations, and the number of iterations d is The degrees of freedom parameter of the distribution, is a number of iterations d A random value from a distribution, For the second position, For the last position, for The random numbers in for The random number in .
[0142] It should be noted that The distribution is a continuous probability distribution, The shape of the distribution is related to the degrees of freedom parameter. Different degrees of freedom parameters The shape of the distribution is also different, where The value is based on The probability of random acquisition is distributed; introduced in updating the leader position Distribution, utilization The ability to perturb the distribution improves the ability of global optimization.
[0143] Methods for updating follower locations include:
[0144] ;
[0145] In the formula, For the Only the individual position, For the Only the individual position, ; Coming soon Only the current position of the individual Just add the current position of the individual, multiply it by half and give it to the Only the updated position of the individual.
[0146] In step 6 above, the dynamic boundary is , is the strategy number corresponding to the last position, is the strategy number corresponding to the food source location, ; Dynamic boundaries can make up for the defect that fixed boundaries cannot save search experience, which is helpful to shorten the search time.
[0147] The methods for generating the inverse solution include:
[0148] ;
[0149] In the formula, is the reverse solution of the y-th individual, for The random numbers in , is the position of the yth individual.
[0150] If the generated reverse solution is greater than or less than the dynamic boundary, it is marked as a transcendental solution, a random number function is used to randomly generate a value within the dynamic boundary, and the randomly generated value is assigned to the transcendental solution.
[0151] It should be noted that the execution time of the power grid optimization dispatching strategy should be the time interval that elapses when predicting the corresponding current data.
[0152] This embodiment collects power grid operation status data and meteorological data in real time, and uses a variety of deep learning models to perform fusion analysis and trend prediction on the data, so as to comprehensively and accurately identify various abnormal situations that may occur in the power grid, thereby intelligently generating targeted early warning instructions; at the same time, the improved salp swarm algorithm is used to formulate and execute power grid optimization and dispatching strategies; the impact of meteorological data on the power grid is fully considered, the prediction and early warning capabilities of the power grid operation status are improved, and the power grid optimization and dispatching strategies can be formulated more real-time and accurately, realizing the intelligent optimization operation of the power grid, and greatly improving the reliability and efficiency of the power grid operation, so as to ensure that the power grid system is in the best operating state.
[0153] Example 2
[0154] See also Figure 2 As shown, this embodiment further improves the design on the basis of embodiment 1. In embodiment 1, corresponding strategy schemes are formulated for all instructions in the generated warning instructions. However, in actual situations, the strategy schemes corresponding to different instructions in the generated warning instructions are the same or similar. For example, the strategy schemes corresponding to the current peak instruction and the current fluctuation instruction both involve adjusting the commissioning capacity of the reactive compensation device, and the purpose is to maintain the stability of the current. If the same or similar strategy schemes are all executed, it will lead to over-optimization and reduce the stability of the power grid system. Therefore, this embodiment provides a power grid optimization system based on meteorological data, which also includes a solution analysis module;
[0155] The solution analysis module analyzes each policy solution and determines whether to delete it.
[0156] A regular expression is used to extract the corresponding text content from each policy scheme and marked as a policy text. Regular expressions are an existing technology and will not be described in detail here. A hash function is used to convert each policy text into a corresponding hash value and marked as a policy hash value. The hash function may be Blake2 or SHA-512.
[0157] Compare each policy hash value with the remaining policy hash values respectively; if all policy hash values are different, the policy scheme will not be deleted; if there are identical policy hash values, the corresponding policy scheme will be marked as a similar scheme, and a regular expression will be used to determine whether there are numbers in the similar scheme; if there are no numbers in the similar scheme, only one similar scheme will be retained, and the remaining similar schemes will be deleted; if there are numbers in the similar scheme, the regular expression will be used again to extract the corresponding digital content from each similar scheme and marked as a policy number; compare each policy number, retain the similar scheme with the largest policy number, and delete the remaining similar schemes.
[0158] This embodiment uses regular expressions to extract text content in the strategy scheme, and uses a hash algorithm to convert the text content into a hash value for comparison. It can efficiently identify substantially identical or similar situations in the generated different optimization strategy schemes, delete redundant schemes, and retain the scheme with the largest value. This can not only reduce the risks brought by repeatedly executing the same or similar strategy schemes, but also improve operating efficiency while ensuring the optimization effect, effectively ensuring the final optimization result; further improve the reliability and stability of power grid operation, and ensure that the power grid system is in the best operating state.
[0159] Example 3
[0160] See also Figure 3 As shown, the part not described in detail in this embodiment is described in Example 1 and Example 2, and a method for optimizing a power grid based on meteorological data is provided, the method comprising:
[0161] Collect meteorological data in real time;
[0162] Collect the operation status data of the power grid in real time;
[0163] The meteorological data and the operating status data are integrated and analyzed to determine the meteorological data that affects the operating status data and mark it as the influencing data;
[0164] Analyze the impact data, predict the change trend of the operation status data, and draw the corresponding data change curve;
[0165] According to the data change curve, determine whether to generate an early warning instruction;
[0166] According to the data change curve corresponding to the early warning instruction, formulate and implement the power grid optimization dispatching strategy.
[0167] Furthermore, the meteorological data includes temperature, rainfall, wind speed, lightning intensity and dust concentration; the operating status data includes current value, voltage value, line load, grid load, power factor and equipment temperature;
[0168] The method for determining meteorological data that affects operating status data includes:
[0169] The meteorological data and the operating status data are used as analysis data, the analysis data are input into the trained impact analysis model, the corresponding judgment results are obtained, and the meteorological data that affects the operating status data is judged according to the judgment results;
[0170] The judgment result is a string of five digits, and the digits in the string correspond to the data in the meteorological data one by one; wherein the value of each digit is b or c, and b and c are different integers; if the data in the meteorological data has an impact on the running status data, the value of the corresponding digit is b, and if the data in the meteorological data has no impact on the running status data, the value of the corresponding digit is c;
[0171] The training process of the impact analysis model includes:
[0172] Pre-set the corresponding judgment result for group a of analysis data, where a is an integer greater than 1;
[0173] The analysis data and the corresponding judgment results are converted into a corresponding set of feature vectors; each set of feature vectors is used as the input of the impact analysis model, and the impact analysis model takes a set of predicted judgment results corresponding to each set of analysis data as output, and takes the actual judgment results corresponding to each set of analysis data as the prediction target, and the actual judgment results are the pre-collected digital labels of the judgment results corresponding to the analysis data; minimizing the sum of the prediction errors of all analysis data is used as the training goal; the impact analysis model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the impact analysis model is a deep neural network model.
[0174] Furthermore, the method for predicting the change trend of the operating status data includes:
[0175] A preset time interval is used, and one of the impact data, the time interval and the operation status data is used as a set of evaluation data, that is, the evaluation data corresponds to the data in the operation status data one by one, and there are six sets of evaluation data in total;
[0176] Input each set of evaluation data into the corresponding change prediction model, predict the running status data after the time interval, and mark it as the first prediction data, then replace the running status data in each set of evaluation data with the corresponding data in the first prediction data, input each set of evaluation data after the replacement into the corresponding change prediction model again, predict the running status data after the time interval again, and mark it as the second prediction data; and so on, until the running status data after T time intervals are obtained, and marked as the Tth prediction data, where T is an integer greater than 2;
[0177] Among them, the change prediction model includes a current prediction model, a voltage prediction model, a load prediction model, a load prediction model, a power prediction model and a temperature prediction model; the training process of each model in the change prediction model is consistent with the training process of the impact analysis model, and they are all deep neural network models; according to the real-time collected operating status data and the first prediction data to the Tth prediction data output by each change prediction model, the change trend of each data in the operating status data is obtained;
[0178] The methods for drawing the corresponding data change curve include:
[0179] According to the changing trend of each data in the running status data, the real-time collected running status data and the first predicted data to the Tth predicted data corresponding to each data in the running status data are smoothly connected by polynomial fitting or spline interpolation to draw the corresponding data change curve.
[0180] Further, the warning instructions include current warning instructions, voltage warning instructions, load warning instructions, load warning instructions, power warning instructions and temperature warning instructions; the current warning instructions include current fluctuation instructions and current peak instructions; the voltage warning instructions include voltage fluctuation instructions and voltage range instructions; the load warning instructions include load fluctuation instructions and load peak instructions;
[0181] Preset judgment thresholds, which include peak thresholds, valley thresholds, range thresholds and fluctuation thresholds; wherein the peak thresholds include current peak thresholds, load peak thresholds and load peak thresholds, the range thresholds include voltage range thresholds and temperature range thresholds, and the fluctuation thresholds include current fluctuation thresholds, voltage fluctuation thresholds and load fluctuation thresholds;
[0182] The peak threshold, valley threshold and range threshold in the judgment threshold are added to the corresponding data change curves respectively;
[0183] In the data change curve corresponding to the current value, if all current values are below the current peak threshold, no current peak instruction is generated; if there is a current value above or overlapping the current peak threshold, a current peak instruction is generated; the method for determining whether to generate a load warning instruction and a load peak instruction is the same as the method for determining whether to generate a current peak instruction;
[0184] In the voltage value corresponding data change curve, if all voltage values are within the voltage range threshold, no voltage range instruction is generated; if there is a voltage value outside the voltage range threshold or overlaps, a voltage range instruction is generated; the method for determining whether to generate a temperature warning instruction is the same as the method for determining whether to generate a voltage range instruction;
[0185] In the data change curve corresponding to the power factor, if all power factors are above the valley threshold, no power warning instruction is generated; if there is a power factor below or overlapping the valley threshold, a power warning instruction is generated.
[0186] Further, the data change curves corresponding to the current value, voltage value and grid load are marked as fluctuation analysis curves, and each fluctuation analysis curve is discretized into A small segments according to the preset fluctuation time, where A is an integer greater than 1; each small segment is then divided into B differential time points according to the preset differential time, where B is an integer greater than 1, and the fluctuation time is less than the time interval but greater than the differential time; according to each fluctuation analysis curve, the value of the operating status data corresponding to each differential time point is obtained and marked as an operating value; two adjacent differential time points in each small segment of each fluctuation analysis curve are regarded as a fluctuation set; the operating value corresponding to one differential time point in each fluctuation set is subtracted from the operating value corresponding to another differential time point and the absolute value is taken to obtain the numerical fluctuation amount;
[0187] The numerical fluctuation amount of each fluctuation analysis curve is compared with the corresponding fluctuation threshold value;
[0188] If the numerical fluctuation amounts corresponding to the current values are all smaller than the current fluctuation threshold, no current fluctuation instruction is generated; if the numerical fluctuation amounts corresponding to the current values are greater than or equal to the current fluctuation threshold, a current fluctuation instruction is generated; the method for determining whether to generate a voltage fluctuation instruction and a load fluctuation instruction is the same as the method for determining whether to generate a current fluctuation instruction.
[0189] Furthermore, the steps of formulating the grid optimization dispatching strategy include:
[0190] Step 1: Preset the population size Z and the number threshold G; preset the set of optimized scheduling strategies;
[0191] Step 2: Randomly select an instruction that is not marked as a selected instruction from the warning instructions and mark it as the current instruction, obtain the strategy set corresponding to the current instruction from the optimization scheduling strategy set, and mark it as the current set; generate an initialization population, the position of the individual in the initialization population is defined in a one-dimensional search space, and the position of the individual corresponds to the strategy scheme number in the current set one by one;
[0192] Step 3: Determine the fitness function;
[0193] Step 4: Calculate the fitness of each individual in the initialized population, and take the position of the individual with the maximum fitness as the food source position;
[0194] Step 5: Update the leader position and follower position;
[0195] Step 6: Calculate the dynamic boundary, generate the reverse solution corresponding to each individual and add it to the population;
[0196] Step 7: Take the reverse solution of the individual as an individual, calculate the fitness of all individuals in the population, sort the fitness of all individuals in the population from large to small, retain the first Z individuals, and use them as the new population. The position of the individual with the largest fitness in the new population is used as the new food source position;
[0197] Step 8: Loop through steps 5 to 7 until the number of iterations corresponding to the new population reaches the number threshold G, then the loop ends, obtains the strategy plan number corresponding to the food source location in the new population, and proceeds to step 9;
[0198] Step 9: Mark the current instruction as the selected instruction, and loop steps 2 to 9 until all instructions in the warning instructions are marked as selected instructions. The loop ends, and the corresponding strategy scheme is obtained according to the strategy scheme number corresponding to each instruction in the warning instruction.
[0199] Furthermore, in step 1, the optimization scheduling strategy set includes nine strategy sets, and the strategy sets correspond to the instructions of the early warning instructions one by one. Each strategy set includes C strategy scheme numbers, C is an integer greater than 1, and the strategy scheme numbers correspond to the strategy schemes one by one.
[0200] In step 2, the population is initialized , including Z individuals, of which the first individual is the leader, and the rest Only individuals are followers; get the strategy plan number range , the range of the one-dimensional search space is also ;
[0201] In step 3, the expression of the fitness function is: ; In the formula, For fitness, To optimize the effect;
[0202] Methods for obtaining optimization effects include:
[0203] The data output by the change prediction model corresponding to the current instruction is marked as the current data; the strategy scheme number and the current data corresponding to the individual position are used as test data, and the test data is input into the trained optimization analysis model to predict the current data after optimization by the strategy scheme, and marked as the optimized data;
[0204] According to the optimization data, it is determined again whether to generate the current instruction; if the current instruction is still generated, the corresponding optimization effect is D, and the range of the optimization effect is , ; If the current instruction is not generated, the current data, optimization data and simultaneous prediction data are used as research data, and the research data is input into the trained effect analysis model to predict the corresponding optimization effect; the training process of the effect analysis model and the optimization analysis model is consistent with the training process of the impact analysis model, and both are deep neural network models; the simultaneous prediction data is the remaining data output by the change prediction model with the same time interval as the current data.
[0205] Furthermore, in step 5, the method for updating the leader position includes:
[0206] Sort the fitness of all individuals in the population from large to small, and place the individual position corresponding to the fitness next to the fitness corresponding to the food source position as the second position, and the individual position corresponding to the last fitness as the last position;
[0207] ;
[0208] In the formula, For the leadership position, is the location of the food source, for distribution, d is the number of iterations, and the number of iterations d is The degrees of freedom parameter of the distribution, is a number of iterations d A random value from a distribution, For the second position, For the last position, for The random numbers in for Random numbers in ;
[0209] Methods for updating follower locations include:
[0210] ;
[0211] In the formula, For the Only the individual position, For the Only the individual position, ; Coming soon Only the current position of the individual Just add the current position of the individual, multiply it by half and give it to the Only the updated position of the individual.
[0212] Furthermore, in step 6, the dynamic boundary is , is the strategy number corresponding to the last position, is the strategy number corresponding to the food source location, ;
[0213] The methods for generating the inverse solution include:
[0214] ;
[0215] In the formula, is the reverse solution of the y-th individual, for The random numbers in , is the position of the yth individual;
[0216] If the generated reverse solution is greater than or less than the dynamic boundary, it is marked as a transcendental solution, a random number function is used to randomly generate a value within the dynamic boundary, and the randomly generated value is assigned to the transcendental solution.
[0217] Furthermore, each policy solution is analyzed to determine whether to delete it;
[0218] A regular expression is used to extract the corresponding text content from each policy scheme and marked as a policy text; a hash function is used to convert each policy text into a corresponding hash value and marked as a policy hash value;
[0219] Compare each policy hash value with the remaining policy hash values respectively; if all policy hash values are different, the policy scheme will not be deleted; if there are identical policy hash values, the corresponding policy scheme will be marked as a similar scheme, and a regular expression will be used to determine whether there are numbers in the similar scheme; if there are no numbers in the similar scheme, only one similar scheme will be retained, and the remaining similar schemes will be deleted; if there are numbers in the similar scheme, the regular expression will be used again to extract the corresponding digital content from each similar scheme and marked as a policy number; compare each policy number, retain the similar scheme with the largest policy number, and delete the remaining similar schemes.
[0220] Example 4
[0221] See also Figure 4 As shown, according to another aspect of the present application, an electronic device is also provided. The electronic device may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, a power grid optimization method based on meteorological data as described above may be executed.
[0222] The method or system according to the embodiment of the present application can also be used by Figure 4 The electronic device architecture shown in FIG. Figure 4As shown, the electronic device may include a bus, one or more CPUs, ROM, RAM, a communication port connected to a network, input / output, a hard disk, etc. A storage device in the electronic device, such as a ROM or a hard disk, may store a power grid optimization method based on meteorological data provided by the present application. Furthermore, the electronic device may also include a user interface. Of course, Figure 4 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 4 One or more components of an electronic device are shown.
[0223] Example 5
[0224] See also Figure 5 As shown, it is a computer-readable storage medium according to an embodiment of the present application. Computer-readable instructions are stored on the computer-readable storage medium. When the computer-readable instructions are executed by the processor, a power grid optimization method based on meteorological data according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0225] In addition, according to the embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided by the present application, for example: a power grid optimization method based on meteorological data. When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.
[0226] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
[0227] Finally: 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 in the protection scope of the present invention.
Claims
1. A power grid optimization method based on meteorological data, characterized in that: include: Collect meteorological data in real time; Collect the operation status data of the power grid in real time; The operating status data includes current value, voltage value, line load, grid load, power factor and equipment temperature; The meteorological data and the operating status data are integrated and analyzed to determine the meteorological data that affects the operating status data and mark it as the influencing data; Analyze the impact data, predict the change trend of the operation status data, and draw the corresponding data change curve; According to the data change curve, determine whether to generate a warning instruction; the warning instruction includes a current warning instruction, a voltage warning instruction, a load warning instruction, a load warning instruction, a power warning instruction and a temperature warning instruction; The current warning instructions include current fluctuation instructions and current peak instructions; the voltage warning instructions include voltage fluctuation instructions and voltage range instructions; the load warning instructions include load fluctuation instructions and load peak instructions; Formulate and implement power grid optimization dispatching strategies based on the data change curve corresponding to the early warning instructions; The steps to develop a grid optimization dispatch strategy include: Step 1: Preset the population size Z and the number threshold G; preset the optimization scheduling strategy set; in step 1, the optimization scheduling strategy set includes nine strategy sets, and the strategy sets correspond to the instructions of the early warning instructions one by one. Each strategy set includes C strategy scheme numbers, C is an integer greater than 1, and the strategy scheme numbers correspond to the strategy schemes one by one; Step 2: Randomly select an instruction that is not marked as a selected instruction from the warning instructions and mark it as the current instruction, obtain the strategy set corresponding to the current instruction from the optimization scheduling strategy set, and mark it as the current set; generate an initialization population, the position of the individual in the initialization population is defined in a one-dimensional search space, and the position of the individual corresponds to the strategy scheme number in the current set one by one; Step 3: Determine the fitness function; Step 4: Calculate the fitness of each individual in the initialized population, and take the position of the individual with the maximum fitness as the food source position; Step 5: Update the leader position and follower position; Step 6: Calculate the dynamic boundary, generate the reverse solution corresponding to each individual and add it to the population; Step 7: Take the reverse solution of the individual as an individual, calculate the fitness of all individuals in the population, sort the fitness of all individuals in the population from large to small, retain the first Z individuals, and use them as the new population. The position of the individual with the largest fitness in the new population is used as the new food source position; Step 8: Loop through steps 5 to 7 until the number of iterations corresponding to the new population reaches the number threshold G, then the loop ends, obtains the strategy plan number corresponding to the food source location in the new population, and proceeds to step 9; Step 9: Mark the current instruction as the selected instruction, and loop step 2 to step 9 until all instructions in the warning instructions are marked as selected instructions. The loop ends, and the corresponding strategy scheme is obtained according to the strategy scheme number corresponding to each instruction in the warning instruction; Analyze each strategy plan to determine whether to delete it; A regular expression is used to extract the corresponding text content from each policy scheme and marked as a policy text; a hash function is used to convert each policy text into a corresponding hash value and marked as a policy hash value; Compare each policy hash value with the remaining policy hash values respectively; if all policy hash values are different, the policy scheme will not be deleted; if there are identical policy hash values, the corresponding policy scheme will be marked as a similar scheme, and a regular expression will be used to determine whether there are numbers in the similar scheme; if there are no numbers in the similar scheme, only one similar scheme will be retained, and the remaining similar schemes will be deleted; if there are numbers in the similar scheme, the regular expression will be used again to extract the corresponding digital content from each similar scheme and marked as a policy number; compare each policy number, retain the similar scheme with the largest policy number, and delete the remaining similar schemes.
2. A method for optimizing a power grid based on meteorological data according to claim 1, characterized in that: The meteorological data includes temperature, rainfall, wind speed, lightning intensity and dust concentration; the method for determining the meteorological data affecting the operating status data includes: The meteorological data and the operating status data are used as analysis data, the analysis data are input into the trained impact analysis model, the corresponding judgment results are obtained, and the meteorological data that affects the operating status data is judged according to the judgment results; The judgment result is a string of five digits, and the digits in the string correspond to the data in the meteorological data one by one; wherein the value of each digit is b or c, and b and c are different integers; if the data in the meteorological data has an impact on the running status data, the value of the corresponding digit is b, and if the data in the meteorological data has no impact on the running status data, the value of the corresponding digit is c; The training process of the impact analysis model includes: Pre-set the corresponding judgment result for group a of analysis data, where a is an integer greater than 1; The analysis data and the corresponding judgment results are converted into a corresponding set of feature vectors; each set of feature vectors is used as the input of the impact analysis model, and the impact analysis model takes a set of predicted judgment results corresponding to each set of analysis data as output, and takes the actual judgment results corresponding to each set of analysis data as the prediction target, and the actual judgment results are the pre-collected digital labels of the judgment results corresponding to the analysis data; minimizing the sum of the prediction errors of all analysis data is used as the training goal; the impact analysis model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the impact analysis model is a deep neural network model.
3. A method for optimizing a power grid based on meteorological data according to claim 2, characterized in that: The method for predicting the change trend of the running status data comprises: A preset time interval is used, and one of the impact data, the time interval and the operation status data is used as a set of evaluation data, that is, the evaluation data corresponds to the data in the operation status data one by one, and there are six sets of evaluation data in total; Input each set of evaluation data into the corresponding change prediction model, predict the running status data after the time interval, and mark it as the first prediction data, then replace the running status data in each set of evaluation data with the corresponding data in the first prediction data, input each set of evaluation data after the replacement into the corresponding change prediction model again, predict the running status data after the time interval again, and mark it as the second prediction data; and so on, until the running status data after T time intervals are obtained, and marked as the Tth prediction data, where T is an integer greater than 2; Among them, the change prediction model includes a current prediction model, a voltage prediction model, a load prediction model, a load prediction model, a power prediction model and a temperature prediction model; the training process of each model in the change prediction model is consistent with the training process of the impact analysis model, and they are all deep neural network models; according to the real-time collected operating status data and the first prediction data to the Tth prediction data output by each change prediction model, the change trend of each data in the operating status data is obtained; The methods for drawing the corresponding data change curve include: According to the changing trend of each data in the running status data, the real-time collected running status data and the first predicted data to the Tth predicted data corresponding to each data in the running status data are smoothly connected by polynomial fitting or spline interpolation to draw the corresponding data change curve.
4. A method for optimizing a power grid based on meteorological data according to claim 3, characterized in that: Preset judgment thresholds, which include peak thresholds, valley thresholds, range thresholds and fluctuation thresholds; wherein the peak thresholds include current peak thresholds, load peak thresholds and load peak thresholds, the range thresholds include voltage range thresholds and temperature range thresholds, and the fluctuation thresholds include current fluctuation thresholds, voltage fluctuation thresholds and load fluctuation thresholds; The peak threshold, valley threshold and range threshold in the judgment threshold are added to the corresponding data change curves respectively; In the data change curve corresponding to the current value, if all current values are below the current peak threshold, no current peak instruction is generated; if there is a current value above or overlapping the current peak threshold, a current peak instruction is generated; the method for determining whether to generate a load warning instruction and a load peak instruction is the same as the method for determining whether to generate a current peak instruction; In the voltage value corresponding data change curve, if all voltage values are within the voltage range threshold, no voltage range instruction is generated; if there is a voltage value outside the voltage range threshold or overlaps, a voltage range instruction is generated; the method for determining whether to generate a temperature warning instruction is the same as the method for determining whether to generate a voltage range instruction; In the data change curve corresponding to the power factor, if all power factors are above the valley threshold, no power warning instruction is generated; if there is a power factor below or overlapping the valley threshold, a power warning instruction is generated.
5. A method for optimizing a power grid based on meteorological data according to claim 4, characterized in that: The data change curves corresponding to the current value, voltage value and grid load are marked as fluctuation analysis curves, and each fluctuation analysis curve is discretized into A small segments according to the preset fluctuation time, where A is an integer greater than 1; each small segment is then divided into B differential time points according to the preset differential time, where B is an integer greater than 1, and the fluctuation time is less than the time interval but greater than the differential time; According to each fluctuation analysis curve, the value of the running status data corresponding to each differential time point is obtained and marked as the running value; the two adjacent differential time points in each small segment of each fluctuation analysis curve are regarded as a fluctuation set; the running value corresponding to one differential time point in each fluctuation set is subtracted from the running value corresponding to another differential time point and the absolute value is taken to obtain the numerical fluctuation amount; The numerical fluctuation amount of each fluctuation analysis curve is compared with the corresponding fluctuation threshold value; If the numerical fluctuation amounts corresponding to the current values are all less than the current fluctuation threshold, no current fluctuation instruction is generated; if the numerical fluctuation amounts corresponding to the current values are greater than or equal to the current fluctuation threshold, a current fluctuation instruction is generated; The method of determining whether to generate the voltage fluctuation command and the load fluctuation command is the same as the method of determining whether to generate the current fluctuation command.
6. A method for optimizing a power grid based on meteorological data according to claim 5, characterized in that: In step 2, the population is initialized , including Z individuals, of which the first individual is the leader, and the rest Only individuals are followers; get the strategy plan number range , the range of the one-dimensional search space is also ; In step 3, the expression of the fitness function is: ; In the formula, For fitness, To optimize the effect; Methods for obtaining optimization effects include: The data output by the change prediction model corresponding to the current instruction is marked as the current data; the strategy scheme number and the current data corresponding to the individual position are used as test data, and the test data is input into the trained optimization analysis model to predict the current data after optimization by the strategy scheme, and marked as the optimized data; According to the optimization data, it is determined again whether to generate the current instruction; if the current instruction is still generated, the corresponding optimization effect is D, and the range of the optimization effect is , ; If the current instruction is not generated, the current data, optimization data and simultaneous prediction data are used as research data, and the research data is input into the trained effect analysis model to predict the corresponding optimization effect; the training process of the effect analysis model and the optimization analysis model is consistent with the training process of the impact analysis model, and both are deep neural network models; the simultaneous prediction data is the remaining data output by the change prediction model with the same time interval as the current data.
7. A method for optimizing a power grid based on meteorological data according to claim 6, characterized in that: In step 5, the method for updating the leader position includes: Sort the fitness of all individuals in the population from large to small, and place the individual position corresponding to the fitness next to the fitness corresponding to the food source position as the second position, and the individual position corresponding to the last fitness as the last position; ; In the formula, For the leadership position, is the location of the food source, for distribution, d is the number of iterations, and the number of iterations d is The degrees of freedom parameter of the distribution, is a number of iterations d A random value from a distribution, For the second position, For the last position, for The random numbers in for Random numbers in ; Methods for updating follower locations include: ; In the formula, For the Only the individual position, For the Only the individual position, ; Coming soon Only the current position of the individual Just add the current position of the individual, multiply it by half and give it to the Only the updated position of the individual.
8. A method for optimizing a power grid based on meteorological data according to claim 7, characterized in that: In step 6, the dynamic boundary is , is the strategy number corresponding to the last position, is the strategy number corresponding to the food source location, ; The methods for generating the inverse solution include: ; In the formula, is the reverse solution of the y-th individual, for The random numbers in , is the position of the yth individual; If the generated reverse solution is greater than or less than the dynamic boundary, it is marked as a transcendental solution, a random number function is used to randomly generate a value within the dynamic boundary, and the randomly generated value is assigned to the transcendental solution.
9. A power grid optimization system based on meteorological data, implementing a power grid optimization method based on meteorological data according to any one of claims 1 to 8, characterized in that: include: Meteorological data collection module, used to collect meteorological data in real time; Operation data acquisition module, used to collect the operation status data of the power grid in real time; The fusion analysis module is used to perform fusion analysis on meteorological data and operation status data, determine the meteorological data that affects the operation status data, and mark it as the influencing data; The trend prediction module is used to analyze the impact data, predict the change trend of the operation status data, and draw the corresponding data change curve; The early warning module is used to determine whether to generate an early warning instruction based on the data change curve; The intelligent optimization module is used to formulate and execute the power grid optimization dispatching strategy according to the data change curve corresponding to the early warning instruction.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for optimizing a power grid based on meteorological data as described in any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method for optimizing a power grid based on meteorological data according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
A distribution network control system and method for source-load interaction
CN117526432B
Regional power grid dispatching system and method based on prediction control
CN105337415A
Power distribution network optimization system based on multi-source data fusion
CN117614137A
Method, device and equipment for monitoring abnormal energy consumption of power grid equipment
CN117875704A
Power grid disaster monitoring and early warning system based on GIS
CN118280069A
