Energy planning method, device, equipment and medium for power system

By constructing the uncertainty model and random scenarios of the power system, and using the improved K-means algorithm for clustering, the energy planning of the power system is optimized, the problem of wind and light abandonment when absorbing renewable energy is solved, and the efficiency is improved absorption capacity and system efficiency.

CN118589495BActive Publication Date: 2024-10-22STATE GRID ZHEJIANG ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411060120.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-22
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing power system has abandoned wind and light when consuming renewable energy, and improper investment decisions have led to shelving of capital. How to carry out effective planning while considering the energy consumption rate has become a technical challenge.

Method used

By obtaining the historical operation and management data of the power system, we build an uncertainty model and use Monte Carlo simulation to generate random scenarios. We use the improved K-means algorithm to cluster the target scenario set and construct an objective function to optimize the energy consumption rate. , formulate power system planning plans.

Benefits of technology

It improves the absorption capacity of new energy, reduces the occurrence of wind and light abandonment, improves the overall efficiency and economic benefits of the energy system, takes into account the uncertainty and consumption rate of new energy, and provides new solutions. Power system unit capacity reconstruction and renewable energy consumption issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589495B_ABST
    Figure CN118589495B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electric power systems, and discloses an energy planning method, device, equipment and medium for electric power systems. The method comprises obtaining historical operation management data of the electric power system, wherein the historical operation management data comprises historical load data, historical output data, historical unit installation data and historical system topology data; constructing an uncertainty model according to the historical operation management data, generating a plurality of random scenarios through Monte Carlo simulation, and constructing a plurality of the random scenarios into a target scenario set according to the uncertainty model; constructing an objective function of the electric power system, and taking the energy consumption rate as a constraint condition of the electric power system, clustering the random scenarios in the target scenario set through an improved K-means algorithm, and obtaining a planning scheme for the electric power system, which can take into account both the uncertainty and consumption rate of new energy, and provide a new solution to the problem of unit capacity reconstruction and energy consumption in the electric power system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to an energy planning method, device, equipment and medium for power systems. Background Art

[0002] Nowadays, most of the domestic power systems are planned according to the traditional energy supply model. However, with the rapid increase in renewable energy generation, its absorption problem has become increasingly prominent, and many wind, solar and water abandonment phenomena have occurred. In order to improve the power system's ability to absorb renewable energy and ensure the safety and stability of system operation, it is urgent to establish a "source-load-storage" model for flexible resource response. However, improper investment decisions will cause capital to be shelved or more serious wind and solar abandonment problems.

[0003] It can be seen that how to effectively plan the energy in the power system while taking into account the energy consumption rate has become a technical problem that technical personnel in this field need to solve urgently. Summary of the invention

[0004] The present invention provides an energy planning method, device, equipment and medium for an electric power system, which solves the problem of how to effectively plan the energy in the electric power system while taking the energy consumption rate into consideration.

[0005] In order to solve the above technical problems, the first aspect of the present invention provides an energy planning method for a power system, comprising:

[0006] Acquire historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data;

[0007] Building an uncertainty model according to the historical operation management data, generating a plurality of random scenarios through Monte Carlo simulation, and building a plurality of the random scenarios into a target scenario set according to the uncertainty model;

[0008] The objective function of the power system is constructed, and the energy consumption rate is used as the constraint condition of the power system. The random scenarios in the target scenario set are clustered by the improved K-means algorithm to obtain the planning scheme of the power system.

[0009] As one of the preferred solutions, the step of constructing an uncertainty model based on the historical operation management data includes:

[0010] Clustering the historical operation management data using a K-means algorithm to obtain an output power generation clustering model;

[0011] Dividing the historical output data into states according to the type of the output power generation clustering model to obtain a state set;

[0012] According to the law of large numbers, the state transition probability matrix of the output power generation clustering model is calculated based on the state set to obtain the uncertainty model.

[0013] As one of the preferred solutions, the method generates a plurality of random scenarios through Monte Carlo simulation, and constructs the plurality of random scenarios into a target scenario set according to the uncertainty model, including:

[0014] Constructing and initializing an output scenario set according to the historical output data;

[0015] Randomly select an output scene from the state set and add it to the initialized output scene set to obtain a basic scene set;

[0016] Randomly select an output scenario in the basic scenario set as a target scenario, obtain the probability of the last state in the target scenario transferring to the remaining states based on the uncertainty model, and select the transfer scenario to be added to the target scenario through a preset selection algorithm to update the target scenario;

[0017] Repeat the step of updating the target scene until the number of states in the updated target scene reaches a target number;

[0018] The updated target scene and an output scene randomly selected from the state set are added to the basic scene set to update the basic scene set, and the updating step of the basic scene set is repeated until the number of states in each output scene in the updated basic scene set reaches the target number, and the basic scene set at the current moment is used as the target scene set.

[0019] As one of the preferred schemes, the objective function is to minimize economic costs, and the economic costs include full-cycle investment costs and operating costs. The full-cycle investment costs include the construction costs of wind turbines, the construction costs of photovoltaic units, and the construction costs of energy storage systems. The operating costs include the coal burning costs of traditional units, the wind abandonment costs of wind turbines, and the light abandonment costs of photovoltaic units.

[0020] As one of the preferred schemes, the constraints of the power system also include power balance constraints, energy planning cost constraints, energy storage operation constraints, energy output constraints, and generalized spinning reserve constraints.

[0021] As one of the preferred solutions, clustering the random scenes in the target scene set by using the improved K-means algorithm to obtain the cluster center includes:

[0022] Determining the number of clusters for each random scene in the target scene set, grouping the clusters for each random scene, and selecting an initial center point in each group;

[0023] Calculate the distance between each random scene and each initial center point, and assign the random scene to the cluster corresponding to the center point closest to it;

[0024] The center point of the cluster is updated according to the samples in the cluster grouping, and the random scene allocation step is repeated according to the updated center point until the updated center point converges;

[0025] For each cluster, the Euclidean distance between each random scene is calculated, and the random scene with the smallest Euclidean distance to the remaining random scenes is selected as the cluster center output of each cluster.

[0026] As one of the preferred solutions, the planning scheme of the power system includes the capacity of energy generating units, the capacity of energy storage systems and the energy fluctuation level, and the energy fluctuation level is represented by the variance of energy utilization rate in each time period.

[0027] A second aspect of the present invention provides an energy planning device for a power system, comprising:

[0028] A data acquisition module is used to acquire historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data;

[0029] A scenario set construction module, used to construct an uncertainty model according to the historical operation management data, generate a number of random scenarios through Monte Carlo simulation, and construct the several random scenarios into a target scenario set according to the uncertainty model;

[0030] The scheme planning module is used to construct the objective function of the power system, and take the energy consumption rate as the constraint condition of the power system, cluster the random scenarios in the target scenario set through the improved K-means algorithm, and obtain the planning scheme of the power system.

[0031] A third aspect of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the energy planning method for the power system as described above is implemented.

[0032] A fourth aspect of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the energy planning method for the power system as described above is implemented.

[0033] Compared with the prior art, the embodiments of the present invention have the following advantages:

[0034] (1) This application first constructs an uncertainty model for renewable energy generation in the power system based on the Markov probability model and historical data of the power system, which can accurately simulate and predict the output uncertainty of renewable energy (such as wind power, photovoltaics, etc.), and provide reliable data support for the coordinated planning of "source-load-storage" in the power system; then, a large number of random scenarios are generated through Monte Carlo simulation, and the improved K-means algorithm is used to cluster the random scenarios to ensure that the cluster center exists in the scenario set. Finally, the clustered random scenarios are used to carry out "source-load-storage" coordinated optimization planning while considering the renewable energy consumption rate. The renewable energy consumption rate is fully considered. By optimizing the configuration and dispatching strategy of the power system, the renewable energy consumption capacity is improved, and the occurrence of wind and solar power abandonment is reduced, thereby improving the overall efficiency and economic benefits of the energy system. It not only takes into account the uncertainty and absorption rate of renewable energy in the power system, but also provides a new solution to the problem of unit capacity reconstruction and renewable energy absorption in the power system; it is also environmentally friendly. By optimizing the utilization of renewable energy and reducing the phenomenon of wind and solar power abandonment, it helps to reduce the impact on the environment and promote sustainable development;

[0035] (2) When clustering scenes, the improved K-means algorithm is used to ensure that the cluster centers exist in the scene set, which can more accurately reflect the true distribution of the data and ensure that the cluster centers are all real scenes, thereby improving the stability of the clustering results. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 is a flow chart of an energy planning method for a power system provided by a certain embodiment of the present invention;

[0038] Figure 2 is a diagram of a construction process of an uncertainty model provided by a certain embodiment of the present invention;

[0039] Figure 3 is a diagram of a process of constructing a target scene set provided by an embodiment of the present invention;

[0040] Figure 4 is a flow chart of a clustering process of a random scene using an improved K-means algorithm provided in an embodiment of the present invention;

[0041] Figure 5 is a flow chart of a clustering process of a random scene using an improved K-means algorithm provided by another embodiment of the present invention;

[0042] Figure 6 is a comparison diagram of random scene clustering effects provided by an embodiment of the present invention. Figure 6 Part 6a in is the scene diagram before clustering. Figure 6 Part 6b in the figure is the scene diagram after clustering;

[0043] Figure 7 is a structural diagram of an energy planning device for a power system provided by a certain embodiment of the present invention;

[0044] Figure 8 It is a structural diagram of an electronic device provided by a certain embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings and embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. 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.

[0046] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0047] In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two components. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are for illustrative purposes only, and do not indicate or imply that the system or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0048] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0049] In one embodiment, if Figure 1 As shown, the first aspect of the present invention provides an energy planning method for a power system, comprising:

[0050] S1. Obtain historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data; wherein the historical operation management data refers to the operation data and power system management data of the power system in the past period of time, and the time is not specifically limited. Historical load data refers to information related to the load of the power system or equipment during the past time period, including active power, reactive power, power factor, voltage, current, load curve, peak load, load rate, etc., which are collected by measuring equipment (such as smart meters, sensors, etc.) installed at key nodes of the power system grid; historical output data refers to the actual output power of the generator set or other energy conversion equipment during the past time period, such as the maximum continuous power (MCR) and actual output power of the unit, which are collected in real time by measuring equipment installed on the generator set; historical unit installed data refers to the installation status, capacity, type (such as thermal power generation, hydropower generation, wind power generation, etc.) of the generator set during the past time period, as well as the operating status of the unit. The historical unit installed data here refers to the traditional generator installed data, which refers to the thermal power generator installed data; the historical system topology data describes the interconnection relationship between the various components (such as generators, transformers, transmission lines, etc.) in the power system during the past time period, reflecting the network structure and layout of the power system.

[0051] This application uses historical operation management data to understand the supply, demand, capacity and management of the power system, so as to optimize the configuration and dispatch strategy of the power system based on historical data, thereby improving the overall efficiency and economic benefits of the power system.

[0052] S2. constructing an uncertainty model according to the historical operation management data, generating a plurality of random scenarios through Monte Carlo simulation, and constructing the plurality of random scenarios into a target scenario set according to the uncertainty model;

[0053] In one embodiment, the uncertainty model is constructed as follows: Figure 2 As shown, including:

[0054] S211, clustering the historical operation management data by using a K-means algorithm to obtain an output power generation clustering model;

[0055] S212, dividing the historical output data into states according to the type of the output power generation clustering model to obtain a state set;

[0056] S213. According to the law of large numbers, the state transition probability matrix of the output power generation clustering model is calculated based on the state set to obtain the uncertainty model.

[0057] Since the fluctuations of historical load data, historical unit installation data and historical system topology data in the historical operation management data can affect the historical output data, they are taken as the influencing factors of the historical output data and clustered together with the historical output data through the K-means algorithm to obtain the output power generation clustering model.

[0058] This application uses wind power and photovoltaic power as examples to describe the entire energy planning process:

[0059] First, construct the historical operation management data into the original data set , where s i is the historical output data, N s is the number of days to construct the uncertainty model; where, For daily power generation data, is the wind power generation data of the i-th day in the original data set, which is a T-dimensional vector. Meanwhile, T is the number of time periods per day in the original data set. is the wind power generation in the jth time period on the i-th day; is the photovoltaic power generation data of the i-th day in the original data set, which is a T-dimensional vector, is the photovoltaic power generation in the jth time period on the i-th day.

[0060] The wind power generation data is clustered by K-means clustering algorithm to obtain the wind power clustering model in the output power generation clustering model, that is, the wind power clustering center , is the i-th cluster center of wind power generation data, a T-dimensional vector, is the total number of clusters of wind power generation data, and the clusters of wind power generation are named , and wind power data The data in is represented by the cluster to which it belongs, and the wind power generation cluster sequence is obtained. Similarly, the photovoltaic cluster model in the output power generation cluster model can be obtained, that is, the photovoltaic cluster center , is the total number of clusters of wind power generation data, and the photovoltaic power generation cluster sequence .

[0061] The daily power generation data in the original data set is divided into wind power generation clustering and photovoltaic power generation clustering, that is, , Wind power generation data in power generation data Belong to the cluster, Photovoltaic power generation data in power generation data The clusters can be divided into states, get the state set Since wind power generation and photovoltaic power generation are not completely independent variables, there is a correlation between the two, so some states do not exist in reality. .

[0062] Since the transition probability between states is difficult to solve directly, this application adopts the law of large numbers and uses frequency to approximate the probability. According to the law of large numbers, when When it is large enough, there is

[0063]

[0064] In the formula, For status Transfer to state The number of times; Any number greater than zero.

[0065] According to the above formula, we can get the state transition probability matrix between “wind power-photovoltaic” clusters – uncertainty model:

[0066]

[0067] When constructing an uncertainty model, this application combines K-means algorithm clustering, state division and the law of large numbers to construct a more applicable and accurate power generation clustering model, improve the model's ability to explain and predict practical problems, and through automated data processing and state division processes, can greatly shorten the time for decision-making and improve decision-making efficiency. Moreover, based on the prediction results of the state transition probability matrix, possible problems and risks in the power system can be discovered in a timely manner, so that corresponding measures can be taken to prevent and respond, thereby enhancing the stability and reliability of the power system.

[0068] In one embodiment, the process of constructing the target scene set is as follows: Figure 3 As shown, including:

[0069] S221, constructing an output scenario set according to the historical output data and initializing it;

[0070] S222, randomly selecting an output scene from the state set and adding it to the initialized output scene set to obtain a basic scene set;

[0071] S223, randomly selecting an output scenario in the basic scenario set as a target scenario, obtaining the probability of the last state in the target scenario being transferred to the remaining states based on the uncertainty model, and selecting a transfer scenario to be added to the target scenario through a preset selection algorithm to update the target scenario;

[0072] S224, repeating the step of updating the target scene until the number of states in the updated target scene reaches the target number;

[0073] S225. Add the updated target scene and an output scene randomly selected from the state set to the basic scene set to update the basic scene set, repeat the basic scene set update step until the number of states in each output scene in the updated basic scene set reaches the target number, and use the basic scene set at the current moment as the target scene set.

[0074] In this embodiment, the target number of scenarios to be generated and the number of days of power generation data in each scenario are determined according to demand, and then the target scenario set is constructed:

[0075] 1) The output scene set in this application is the original data set, which is initialized to obtain the initialized output scene set;

[0076] 2) Randomly select an output scenario from the state set Add to the scene set to obtain the basic scene set;

[0077] 3) Randomly select an output scene in the basic scene set as the target scene and obtain the last state in the target scene The corresponding uncertainty model M Row Probability , that is, from the state Transfer to The probability of the target scene is obtained by using a preset selection algorithm (such as a roulette wheel selection method) to select the transfer scene and add it to the target scene to update the target scene.

[0078] 4) Repeat step 3) until the number of states in the target scene reaches the target number;

[0079] 5) Repeat steps 2)-4) until the state of each scene in the output scene set reaches the target number. The output scene set at this time is the target scene set. , and the cluster center points of wind power and photovoltaic power generation data , They are respectively used as the data of wind power and photovoltaic power generation in this cluster.

[0080] The uncertainty model constructed by this application through historical operation management data can capture the randomness, volatility and unpredictability in the data, and uses Monte Carlo simulation to generate a large number of random scenarios, simulating a variety of possible future situations, so that the power system can better adapt to changes in uncertainty; optimizing the allocation of resources in multiple scenarios can ensure that relatively good results can be obtained in various situations, which helps to improve resource utilization and the overall performance of the power system.

[0081] S3, constructing the objective function of the power system, and taking the energy consumption rate as the constraint condition of the power system, clustering the random scenarios in the target scenario set by the improved K-means algorithm to obtain the planning scheme of the power system;

[0082] In one embodiment, the objective function is to minimize the economic cost, which includes the full-cycle investment cost and the operating cost. The full-cycle investment cost includes the construction cost of the wind turbine generator set. , Construction cost of photovoltaic units and the construction cost of energy storage systems The operating costs include the coal cost of the traditional units. , the cost of wind turbine abandonment and the cost of abandoned photovoltaic power generation units .

[0083] Specifically, this application will , that is, the objective function is to minimize the economic cost, where

[0084]

[0085]

[0086]

[0087]

[0088]

[0089]

[0090] In the formula, , , They are the capacities of wind turbines, photovoltaic generators and energy storage systems, and are also the variables that need to be optimized in the optimization model; is the power generation of the kth conventional unit at time t on day d, and at the same time, is the power generation cost function of traditional units; , are the start and stop times of the kth traditional unit in the cycle, , They are the single start and stop costs respectively; , are the abandoned wind and abandoned solar power of wind power generation and photovoltaic power generation units respectively; , are the unit cost of wind power curtailment and photovoltaic power curtailment respectively.

[0091] This application plans resource allocation by taking economic cost minimization as the objective function, which helps to improve resource utilization efficiency, reduce waste, make this plan environmentally friendly, and promote sustainable development.

[0092] In one embodiment, the constraints of the power system further include power balance constraints, energy planning cost constraints, energy storage operation constraints, energy output constraints, and generalized spinning reserve constraints.

[0093] Specifically, since the power system needs to satisfy the power balance of the entire system and each node, and the power relationship between nodes needs to strictly satisfy the power flow equation of the power system. In order to achieve rapid solution of the model, this application uses a DC power flow model to determine that the power transmission between nodes is only related to the phase angle difference between the nodes and the reactance of the line, that is:

[0094]

[0095] In the formula, is the power flowing from node i to node j; is the phase angle of the slave node i; is the reactance of the line between them;

[0096] The power balance constraints of each node in the power system are as follows:

[0097]

[0098] In the formula, For Node The unit output; For the node The sum of the outputs of all units; For the node Load; is the number of nodes in the power system.

[0099] When each node in the power system satisfies the above formula, the power balance constraint of the power system as a whole is satisfied, so there is no need to separately establish the power balance constraint of the entire system.

[0100] Energy planning cost constraints can also be considered as "source-load-storage" planning constraints. When planning the power system, "source-load-storage" needs to take into account the constraints of the optimization variables in the objective function, including the upper and lower limits of the construction costs of each unit, as well as the restrictions imposed by external factors such as geographical location, which can be expressed as follows:

[0101]

[0102]

[0103]

[0104] In the formula, , are the upper and lower limits of wind turbine capacity respectively; , They are the upper and lower limits of the capacity of the photovoltaic generator set respectively; , They are the upper and lower limits of the energy storage unit capacity respectively.

[0105] The energy storage system in the power system needs to meet its own constraints during operation. Different types of energy storage have different constraints. This application uses the most widely used electrochemical energy storage for modeling. In the long-term optimization model of power system planning, the chemical reaction process in the electrochemical energy storage system can be completed within a time interval. Therefore, this application ignores its transient constraints and only considers its power constraints:

[0106]

[0107]

[0108]

[0109]

[0110]

[0111]

[0112] In the formula, is the capacity of the energy storage unit; is the power value of the energy storage unit; , They are the upper and lower limits of the state of charge of the energy storage unit respectively; , are the charging and discharging efficiency of the energy storage machine respectively; , are the charging and discharging power of the energy storage unit respectively; is the upper limit of the power of the energy storage unit; is a 0,1 variable, At that time, sky The energy storage unit is always in charging state. At that time, sky The energy storage unit is in a discharging state at all times.

[0113] The above formulas are used to prevent overcharging and over-discharging of energy storage from affecting its service life, and limit it to a reasonable state of charge; describe the relationship between energy storage capacity and charging and discharging power; constrain the upper and lower limits of energy storage charging and discharging power, and limit the charging and discharging state at the same time; constrain the power at the beginning and end of each day to ensure the continuous operation of the energy storage system.

[0114] Energy output constraints include constraints on new energy output, i.e. wind power, photovoltaics, etc. However, due to the uncertainty of natural resources, the predicted power generation of new energy such as wind power and photovoltaics often deviates from the actual power generation. In the context of high-proportion new energy construction, if the uncertainty of wind and solar resources is not taken into account, the scale of new energy construction is too large, which may exceed the regulation capacity of the power system and make it difficult to connect to the grid in a friendly manner. Therefore, it is necessary to model the prediction error rate of the energy output curve, which can be described as:

[0115]

[0116]

[0117]

[0118]

[0119]

[0120]

[0121] In the formula, , , Respectively sky The predicted value of wind turbine power generation, power generation and wind power abandonment at each moment; , , Respectively sky The predicted value of the photovoltaic unit's power generation, power generation and abandoned power at the moment; is a random variable that follows a normal distribution ; , Scene Set Middle sky The per unit value of wind turbine and photovoltaic unit output at any moment; and They are the lower limits of wind power generation and photovoltaic power generation utilization rates respectively.

[0122] This application uses the above formula to add random variables that obey the normal distribution to the wind and photovoltaic data in the target scenario to simulate the uncertainty of new energy units, so that when planning new energy units, it is necessary to limit their utilization rate to avoid wasting resources by building too many new energy units.

[0123] Energy output constraints include traditional unit output constraints. Traditional thermal power generating units mainly use coal, hydrogen, natural gas and methane as fuel, which are slightly affected by the environment and easy to adjust. They can accurately control their output power by controlling the input of fuel. However, the power generation of traditional units is subject to upper and lower limits, and the rate of change of output power is limited by the size of the unit, that is, the power ramp constraint. Its mathematical model is as follows:

[0124]

[0125]

[0126] In the formula, For the Traditional units in Heaven The power generation at the time; and For the The upper and lower limits of power generation of traditional units; is a 0,1 variable, when When , the unit is in power generation state. When , the unit is not in power generation state; and is the maximum ramp-up rate and maximum ramp-down rate of the thermal power unit; and is a 0,1 variable, when When the unit is shut down, the down-slope capability takes the maximum value of the unit power; when When the unit is started, the climbing capacity takes the maximum value of the unit power.

[0127] The start and stop of traditional units is actually a continuous process. The model simplifies it accordingly. In order to limit the frequent start and stop of thermal power units in a short period of time, it is necessary to add the shortest start and stop time constraint:

[0128]

[0129]

[0130]

[0131]

[0132] In the formula, and It is the shortest startup and shutdown time of thermal power units.

[0133] The generalized spinning reserve constraint of the power system can be expressed as follows:

[0134]

[0135] In the formula, , , They are the reserve factors of wind turbines, photovoltaic units and loads, and are generally taken as .

[0136] This application restricts the scheduling planning of resources in the power system by adding multiple constraints, which can ensure the safe and stable operation of the system, improve economic benefits, meet user needs, and promote the sustainable development of the power system.

[0137] In one embodiment, the process of clustering random scenes using the improved K-means algorithm is as follows: Figure 4 As shown, including:

[0138] S311, determining the number of clusters of each random scene in the target scene set, grouping the clusters of each random scene, and selecting an initial center point in each group;

[0139] S312, calculating the distance between each random scene and each initial center point, and assigning the random scene to the cluster corresponding to the center point closest to the scene;

[0140] S313, updating the center point of the cluster according to the samples in the cluster grouping, and repeating the random scene allocation step according to the updated center point until the updated center point converges;

[0141] S314. For each cluster, calculate the Euclidean distance between each random scene therein, and select the random scene with the smallest Euclidean distance to the remaining random scenes as the cluster center of each cluster for output.

[0142] Specifically, 1) For the target scene set , where each scene is , which is dimensional vector; For the The first scene Dimensional data, dimensional vector; is the total number of scenes, and the number of classes is ;

[0143] 2) For Cluster grouping to select the initial set of center points ;

[0144] 3) Calculate the distance from each scene to each center point ;in,

[0145]

[0146] 4) For each scene Find a center point So that:

[0147]

[0148] Assign each scene to a central point The corresponding cluster (obtained by clustering the original data set using the traditional K-means algorithm);

[0149] 5) Recalculate the center point of each cluster based on the samples in the cluster grouping:

[0150]

[0151] In the formula, For any cluster Scenes; For clustering The number of scenes in

[0152] 6) Repeat process 3) to 5) until the cluster center converges, that is, the center point calculated this time is the same as the center point calculated last time;

[0153] 7) Calculate each cluster The Euclidean distance between scenes in :

[0154]

[0155] 8) For each cluster Select Minimize the distance from other scenes and the scene As the new center ; Take the center point set as the clustered scene set and output the cluster center of each class.

[0156] The clustering process of the improved K-means algorithm for random scenes is as follows: Figure 5 As shown in the figure, the comparison of random scene clustering effects is shown in Figure 6 As shown, it can be seen that the above clustering method can effectively reduce the number of scenes while retaining most of the features of the model. The improved K-means algorithm of this application can ensure that the cluster center exists in the scene set, and ensure that the cluster center is a real scene, which improves the stability of the clustering results and can more accurately reflect the real distribution of the data; when dealing with new energy power system planning problems, the improved K-means algorithm proposed in this application provides a more efficient, accurate and environmentally friendly solution through more intelligent cluster center selection, optimized clustering process and improved authenticity of clustering results.

[0157] In one embodiment, the planning scheme of the power system includes the capacity of energy generating units, the capacity of energy storage systems and the energy fluctuation level, and the energy fluctuation level is represented by the variance of energy utilization rate in each time period; specifically, this application combines the output cluster center with the objective function and constraints to determine the final planning scheme of the power system. In order to evaluate the results of the "source-load-storage" collaborative planning, in addition to the capacity of the new energy units and the capacity of the energy storage system, this application also incorporates the new energy consumption rate and the new energy fluctuation level into the evaluation system; among them, the new energy consumption rate is calculated as follows:

[0158]

[0159]

[0160] In the formula, and are the utilization rates of wind power generation and photovoltaic power generation respectively.

[0161] The new energy fluctuation level is expressed by the variance of the new energy utilization rate in each period, which is calculated as follows:

[0162]

[0163]

[0164]

[0165]

[0166] In the formula, , Respectively in Heaven The utilization rate of wind power and photovoltaic units at all times; , They are the overall fluctuation levels of wind power and photovoltaic units, respectively. The smaller the value, the smaller the volatility brought by new energy to the system. for The variance of .

[0167] This application uses IEEE30 nodes as the test system, assumes that the output error of new energy follows a normal distribution, and continuously changes the distribution parameters. Using the planning method proposed in this application, the installed capacity and absorption rate of new energy units are obtained. The results are as follows:

[0168]

[0169] It can be seen from the table that as the variance of the new energy output error gradually increases, that is, the uncertainty and volatility of new energy gradually increase, this application can ensure that the absorption rate of new energy units is maintained at a certain level by changing the installed capacity, among which photovoltaic units can achieve almost complete absorption.

[0170] In the embodiment of the present application, based on the problem of how to effectively plan the energy in the power system while considering the energy consumption rate, an energy planning method for the power system is designed, which realizes the construction of an uncertainty model of renewable energy power generation in the power system based on the Markov probability model and the historical data of the power system, and then generates a large number of random scenarios through Monte Carlo simulation, and clusters the random scenarios using the improved K-means algorithm to ensure that the cluster center exists in the scenario set, and finally uses the clustered random scenarios to perform "source-load-storage" collaborative optimization planning while considering the renewable energy consumption rate, which not only takes into account the uncertainty and consumption rate of renewable energy in the power system, but also provides a new solution to the problem of unit capacity reconstruction and renewable energy consumption in the power system; and the improved K-means algorithm is used when clustering the scenarios, which can ensure that the cluster center exists in the scenario set, so as to more accurately reflect the true distribution of the data, and can ensure that the cluster centers are all real scenarios, thereby improving the stability of the clustering results.

[0171] It should be noted that although the steps in the above flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.

[0172] In another embodiment, if Figure 7 As shown, the second aspect of the present invention provides an energy planning device for a power system, comprising:

[0173] The data acquisition module 10 is used to acquire the historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data;

[0174] A scenario set construction module 20, for constructing an uncertainty model according to the historical operation management data, generating a plurality of random scenarios through Monte Carlo simulation, and constructing a plurality of the random scenarios into a target scenario set according to the uncertainty model;

[0175] The scheme planning module 30 is used to construct the objective function of the power system, and use the energy consumption rate as the constraint condition of the power system to cluster the random scenarios in the target scenario set through the improved K-means algorithm to obtain the planning scheme of the power system.

[0176] It should be noted that the various modules in the above-mentioned energy planning device for power systems can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. For the specific definition of an energy planning device for power systems, please refer to the definition of an energy planning method for power systems mentioned above. The two have the same functions and effects, which will not be repeated here.

[0177] A third aspect of the present invention provides an electronic device, the electronic device comprising:

[0178] processor, memory, and bus;

[0179] The bus is used to connect the processor and the memory;

[0180] The memory is used to store operation instructions;

[0181] The processor is used to call the operation instruction, and the executable instruction enables the processor to perform operations corresponding to the energy planning method for the power system as shown in the first aspect of the present application.

[0182] In an alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The electronic device 5000 shown includes: a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are connected, such as through a bus 5002. Optionally, the electronic device 5000 may also include a transceiver 5004. It should be noted that in actual applications, the transceiver 5004 is not limited to one, and the structure of the electronic device 5000 does not constitute a limitation on the embodiments of the present application.

[0183] Processor 5001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 5001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0184] The bus 5002 may include a path to transmit information between the above components. The bus 5002 may be a PCI bus or an EISA bus, etc. The bus 5002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0185] The memory 5003 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0186] The memory 5003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 5001. The processor 5001 is used to execute the application code stored in the memory 5003 to implement the content shown in any of the above method embodiments.

[0187] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0188] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an energy planning method for a power system as shown in the first aspect of the present application.

[0189] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.

[0190] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented.

[0191] In summary, the present invention relates to the technical field of power systems, and discloses an energy planning method, device, equipment and medium for power systems. The method includes obtaining historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data; constructing an uncertainty model according to the historical operation management data, generating a number of random scenarios through Monte Carlo simulation, and constructing a number of the random scenarios into a target scenario set according to the uncertainty model; constructing an objective function of the power system, and taking the energy consumption rate as a constraint condition of the power system, clustering the random scenarios in the target scenario set through an improved K-means algorithm, and obtaining a planning scheme for the power system, which can take into account the uncertainty and consumption rate of new energy, and provide new solutions to the problems of unit capacity reconstruction and energy consumption in the power system.

[0192] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0193] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.

Claims

1. An energy planning method for a power system, characterized in that: include: Acquire historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data; Building an uncertainty model according to the historical operation management data, generating a plurality of random scenarios through Monte Carlo simulation, and building a plurality of the random scenarios into a target scenario set according to the uncertainty model; Constructing the objective function of the power system, and taking the energy consumption rate as the constraint condition of the power system, clustering the random scenarios in the target scenario set by using the improved K-means algorithm to obtain a planning scheme for the power system; The step of constructing an uncertainty model according to the historical operation management data includes: Clustering the historical operation management data using a K-means algorithm to obtain an output power generation clustering model; Dividing the historical output data into states according to the type of the output power generation clustering model to obtain a state set; According to the law of large numbers, a state transition probability matrix of the output power generation clustering model is calculated based on the state set to obtain the uncertainty model; The method of generating a plurality of random scenarios through Monte Carlo simulation and constructing the plurality of random scenarios into a target scenario set according to the uncertainty model includes: Constructing and initializing an output scenario set according to the historical output data; Randomly select an output scene from the state set and add it to the initialized output scene set to obtain a basic scene set; Randomly select an output scenario in the basic scenario set as a target scenario, obtain the probability of the last state in the target scenario transferring to the remaining states based on the uncertainty model, and select the transfer scenario to be added to the target scenario through a preset selection algorithm to update the target scenario; Repeat the step of updating the target scene until the number of states in the updated target scene reaches a target number; Adding the updated target scene and an output scene randomly selected from the state set to the basic scene set to update the basic scene set, repeating the basic scene set updating step until the number of states in each output scene in the updated basic scene set reaches the target number, and taking the basic scene set at the current moment as the target scene set; The random scenes in the target scene set are clustered by the improved K-means algorithm to obtain cluster centers, including: Determining the number of clusters for each random scene in the target scene set, grouping the clusters for each random scene, and selecting an initial center point in each group; Calculate the distance between each random scene and each initial center point, and assign the random scene to the cluster corresponding to the center point closest to it; The center point of the cluster is updated according to the samples in the cluster grouping, and the random scene allocation step is repeated according to the updated center point until the updated center point converges; For each cluster, the Euclidean distance between each random scene is calculated, and the random scene with the smallest Euclidean distance to the remaining random scenes is selected as the cluster center output of each cluster.

2. The energy planning method for a power system according to claim 1, characterized in that: The objective function is to minimize the economic cost, which includes the full-cycle investment cost and operating cost. The full-cycle investment cost includes the construction cost of the wind turbine, the construction cost of the photovoltaic unit and the construction cost of the energy storage system. The operating cost includes the coal burning cost of the traditional unit, the wind abandonment cost of the wind turbine and the light abandonment cost of the photovoltaic unit.

3. The energy planning method for a power system according to claim 1, characterized in that: The constraints of the power system also include power balance constraints, energy planning cost constraints, energy storage operation constraints, energy output constraints, and generalized spinning reserve constraints.

4. The energy planning method for a power system according to claim 1, characterized in that: The planning scheme of the power system includes the capacity of energy generating units, the capacity of energy storage systems and the energy fluctuation level, and the energy fluctuation level is represented by the variance of energy utilization rate in each time period.

5. An energy planning device for a power system, characterized in that: include: A data acquisition module is used to acquire historical operation management data of the power system, wherein the historical operation management data includes historical load data, historical output data, historical unit installation data and historical system topology data; A scenario set construction module, used to construct an uncertainty model according to the historical operation management data, generate a number of random scenarios through Monte Carlo simulation, and construct the several random scenarios into a target scenario set according to the uncertainty model; A scheme planning module is used to construct the objective function of the power system, and use the energy consumption rate as the constraint condition of the power system to cluster the random scenarios in the target scenario set through the improved K-means algorithm to obtain a planning scheme for the power system; The step of constructing an uncertainty model according to the historical operation management data includes: Clustering the historical operation management data using a K-means algorithm to obtain an output power generation clustering model; Dividing the historical output data into states according to the type of the output power generation clustering model to obtain a state set; According to the law of large numbers, a state transition probability matrix of the output power generation clustering model is calculated based on the state set to obtain the uncertainty model; The method of generating a plurality of random scenarios through Monte Carlo simulation and constructing the plurality of random scenarios into a target scenario set according to the uncertainty model includes: Constructing and initializing an output scenario set according to the historical output data; Randomly select an output scene from the state set and add it to the initialized output scene set to obtain a basic scene set; Randomly select an output scenario in the basic scenario set as a target scenario, obtain the probability of the last state in the target scenario transferring to the remaining states based on the uncertainty model, and select the transfer scenario to be added to the target scenario through a preset selection algorithm to update the target scenario; Repeat the step of updating the target scene until the number of states in the updated target scene reaches a target number; Adding the updated target scene and an output scene randomly selected from the state set to the basic scene set to update the basic scene set, repeating the basic scene set updating step until the number of states in each output scene in the updated basic scene set reaches the target number, and taking the basic scene set at the current moment as the target scene set; The random scenes in the target scene set are clustered by the improved K-means algorithm to obtain cluster centers, including: Determining the number of clusters for each random scene in the target scene set, grouping the clusters for each random scene, and selecting an initial center point in each group; Calculate the distance between each random scene and each initial center point, and assign the random scene to the cluster corresponding to the center point closest to it; The center point of the cluster is updated according to the samples in the cluster grouping, and the random scene allocation step is repeated according to the updated center point until the updated center point converges; For each cluster, the Euclidean distance between each random scene is calculated, and the random scene with the smallest Euclidean distance to the remaining random scenes is selected as the cluster center output of each cluster.

6. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the energy planning method for a power system as claimed in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the energy planning method for the power system as described in any one of claims 1 to 4 is implemented.