Scheduling method and device of power grid power equipment, equipment, medium and product
By clustering the prediction error historical data of the distribution network and building and solving the two-layer scheduling model, the accuracy of power equipment scheduling is solved, and the optimization scheduling on the grid side and the microgrid side of the industrial park is realized to achieve energy saving The effect of carbon reduction.
Patent Information
- Application Number
- CN202411191370.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-28
AI Technical Summary
How to conduct comprehensive analysis from the distribution network side and the microgrid side of the industrial park, establish an accurate scheduling model, determine accurate scheduling values, and realize the optimal scheduling of power equipment in the power grid, especially in the uncertainty of renewable energy generation and carbon emission flow theory background.
The preset density clustering algorithm is used to cluster the prediction error historical data of the distribution network, build a prediction error scenario set, determine the constraints of the two-layer scheduling model, and solve the two-layer scheduling model through the preset solver. The target value of the power grid is obtained to achieve optimized scheduling of the power grid.
Through double-layer analysis from the distribution network side and the microgrid side of the industrial park, an accurate scheduling model was established, which realized the optimal scheduling of the power grid, taking into account the economy and safety in the distribution network and the microgrid of the industrial park. , achieve energy saving and carbon reduction effect.
Smart Images

Figure CN119093346A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power distribution networks, and in particular to a dispatching method, device, equipment, medium and product for power distribution network power equipment. Background Art
[0002] With the development of low-carbon energy transformation under the dual carbon goals, it is imperative to connect renewable energy to the distribution network on a large scale. In order to adapt to the uncertainty of renewable energy generation, it is necessary to explore from multiple angles of source, load and storage at the same time, so as to establish a relevant distribution network optimization scheduling model and flexibly adjust resources. At the same time, with the development of relevant theories such as carbon emission flow, the carbon emissions of industrial park enterprises should be calculated on the enterprise side, so it is also necessary to establish an industrial park microgrid optimization scheduling model that takes into account carbon emission costs and participates in demand response.
[0003] Therefore, how to conduct a comprehensive analysis from both the distribution network side and the industrial park microgrid side, establish an accurate dispatching model, determine the accurate dispatching value, and achieve optimal dispatching of power grid power equipment is an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a method, device, equipment, medium and product for dispatching power equipment of a power grid, so as to conduct a comprehensive analysis from both ends of the distribution network side and the industrial park microgrid side, establish an accurate dispatching model, determine an accurate dispatching value, and realize the optimized dispatching of power equipment of the power grid.
[0005] According to one aspect of the present invention, a method for dispatching power equipment in a power grid is provided, comprising:
[0006] In response to a dispatch request for a power grid power device, clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm to construct a prediction error scenario set according to the clustering results;
[0007] According to the prediction error scenario set, the constraint conditions of the two-layer dispatch model are determined to construct the two-layer dispatch model; wherein the two-layer dispatch model includes an upper model and a lower model, the upper model is the distribution network side model, and the lower model is the industrial park microgrid side model;
[0008] Based on the preset solver, the two-layer scheduling model is solved to obtain the target value of the power equipment in the power grid so as to schedule the power equipment in the power grid.
[0009] According to another aspect of the present invention, there is provided a dispatching device for power grid power equipment, comprising:
[0010] A clustering module, for responding to a dispatch request for a power grid power device, clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm, so as to construct a prediction error scenario set according to the clustering results;
[0011] A construction module is used to determine the constraint conditions of the two-layer scheduling model according to the prediction error scenario set to construct the two-layer scheduling model; wherein the two-layer scheduling model includes an upper model and a lower model, the upper model is a distribution network side model, and the lower model is an industrial park microgrid side model;
[0012] The scheduling module is used to solve the two-layer scheduling model based on a preset solver to obtain the target value of the power equipment of the power grid so as to schedule the power equipment of the power grid.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the scheduling method for power grid power equipment described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the scheduling method for power grid power equipment described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the scheduling method of power grid power equipment according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention, in response to the dispatch request for the power equipment of the power grid, clusters the historical data of the prediction error of the distribution network based on the preset density clustering algorithm to construct a prediction error scenario set according to the clustering result; determines the constraint conditions of the two-layer dispatch model according to the prediction error scenario set to construct the two-layer dispatch model; solves the two-layer dispatch model based on the preset solver to obtain the target value of the power equipment of the power grid to dispatch the power equipment of the power grid. By conducting a comprehensive analysis from both the distribution network side and the industrial park microgrid side, an accurate dispatch model can be established, an accurate dispatch value can be determined, and the optimal dispatch of the power equipment of the power grid can be realized, so that the effect of energy saving and carbon reduction can be achieved on the basis of taking into account the economic efficiency and safety of the operation of enterprises in the distribution network and the industrial park microgrid.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for dispatching power equipment of a power grid provided in the first embodiment of the present invention;
[0023] Figure 2 It is a structural diagram of a dispatching device for power grid power equipment provided in Embodiment 2 of the present invention;
[0024] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", "target", "candidate", "alternative", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0027] Embodiment 1
[0028] Figure 1 1 is a flowchart of a method for dispatching a power grid device provided in the first embodiment of the present invention; this embodiment can be applied to the case where the operation of the distribution network and the industrial park microgrid is predicted based on the two-layer dispatching model to effectively dispatch the power grid device. The method can be executed by a dispatching device for the power grid device. The dispatching device for the power grid device can be implemented in the form of hardware and / or software. The dispatching device for the power grid device can be configured in an electronic device, such as a master control device for the distribution network and the microgrid of the workstation park, such as Figure 1 As shown, the dispatching method of the power grid power equipment includes:
[0029] S101. In response to a dispatch request for power grid power equipment, cluster the prediction error historical data of the distribution network based on a preset density clustering algorithm to construct a prediction error scenario set according to the clustering results.
[0030] Among them, the dispatch request refers to a request to adjust the start and stop status and power size of the power equipment in the power grid. The preset density clustering algorithm can be, for example, the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) method. The prediction error historical data refers to the historical prediction error data stored in the distribution network, which can be specifically the prediction error data of the new energy power generation output and load power at least one year before the dispatch date. The prediction error historical data may include the prediction error data generated by the prediction of each power equipment in the power grid during the operation of the distribution network, and may also include the prediction error data obtained by the distribution network comparing the load curve sent by the industrial park microgrid with the expected value. The prediction error scenario set refers to a data set that can characterize the distribution of prediction errors. The prediction error scenario set can specifically include the clustering centers corresponding to various types of prediction error historical data.
[0031] Optionally, clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm to construct a prediction error scenario set according to the clustering result includes: clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm to divide the prediction error historical data into at least two categories; for each divided category, based on a center clustering algorithm, determining a target cluster center from the target data points contained in each category, and generating a prediction error scenario set according to the target cluster center corresponding to each divided category. The number of target cluster centers may be at least two.
[0032] Optionally, the prediction error historical data can be preprocessed based on the DBSCAN density clustering method to determine the number of clusters in the data. Further, for each class, based on the center clustering algorithm, the sum of the squares of the distances between any point in each class and all other points in the class is calculated, and the data point with the smallest sum of squares is selected as the clustering center of the corresponding cluster to obtain the clustering centers corresponding to each class; finally, the set of clustering centers corresponding to each class is determined as the prediction error scenario set.
[0033] For example, the historical data of the prediction error can be recorded as a data set containing n data points, that is, X = {x1, ..., x i ,…,x n}, then, the result of clustering X using DBSCAN density clustering algorithm is as follows:
[0034] X={C1,…,C s ,…,Cn clu} (1)
[0035] Among them, n clu is the total number of clusters obtained by clustering. Specifically, the number of clusters can be directly determined as the number of cluster targets contained in the historical data of the prediction error, that is, the total number of classes. s ,Cn clu are 1st, s and nth clu The set of data points in a class.
[0036] For example, since the DBSCAN algorithm can only obtain classification results and cannot find the cluster centers of each class, the central clustering algorithm can be used to determine the cluster center of each class. Specifically, the Euclidean distance can be selected as the standard for evaluating the similarity and distance between a data point and its class, and the sum of the squares of the distances between any point in each class and other data points in the class is calculated, that is,
[0037]
[0038] Among them, x i and x j Both C s The data points are C s The i-th and j-th data points in J(x i ) is x i With C s The sum of the squares of the distances between other data points in the .
[0039] For example, for each class, the data point corresponding to the minimum sum of squares can be selected as the cluster center of the class, and so on. cluThe above-mentioned square sum calculation and cluster center selection operations are performed on each class to obtain the target cluster center corresponding to each class. Finally, the set composed of the target cluster centers corresponding to each class can be determined as the prediction error scenario set.
[0040] Exemplarily, the prediction error scenario set can be expressed as:
[0041]
[0042] Among them, X typ It is a typical scenario set of source-load day-ahead prediction error. C1, C s and Cn clu The cluster center of For example, each cluster center can contain the following elements:
[0043]
[0044] Where, ΔW 1,1,s represents the output power prediction error of the first renewable energy power station in the sth typical scenario in period 1; ΔW j,t,s represents the output power prediction error of the jth renewable energy power station in the sth typical scenario in time period t; It represents the nth typical scene in the sth typical scene w A new energy power station in time period T N The prediction error of T N is the total number of time periods in a day; n w is the total number of renewable energy power generation stations in the distribution network to be optimized; ΔL 1,1,s represents the load power prediction error of the first load node in the sth typical scenario in period 1; ΔL d,t,s represents the output power prediction error of the dth load node in the sth typical scenario in time period t; It represents the nth typical scene in the sth typical scene D load nodes in time period T N Load power prediction error; n D is the total number of load nodes in the distribution network to be optimized.
[0045] S102. Determine the constraint conditions of the two-layer scheduling model according to the prediction error scenario set to construct the two-layer scheduling model.
[0046] The two-layer dispatch model includes an upper model and a lower model. The upper model is a distribution network side model, and the lower model is an industrial park microgrid side model. The upper model is essentially a power supply side model, and the lower model is essentially a user side model. By optimizing the two-layer dispatch model, the target value of the power equipment in the power grid can be obtained, so that the dispatch adjustment can be made.
[0047] Optionally, the set values of the constant parameters in the constraints can be determined based on the constraint rules under the benchmark scenario, and the constraints under the benchmark scenario can be constructed based on the set values, where the constant parameters can be, for example, the product output that must be completed every day in the production constraint, etc., and the constraints under the prediction error scenario can be constructed based on the data information in the prediction error scenario set to determine the constraints of the two-layer scheduling model.
[0048] Optionally, the constraints of the two-layer scheduling model include constraints under the benchmark scenario and constraints under the prediction error scenario; the constraints under the benchmark scenario include at least one of the following: power balance constraint, gas unit output constraint, gas unit ramp constraint, gas unit minimum start and stop time constraint, gas unit spare capacity constraint, and branch flow constraint; the constraints under the prediction error scenario include at least one of the following: scenario energy balance constraint, scenario unit ramp constraint, scenario branch flow constraint, unit upper and lower spare capacity call constraint, new energy abandonment power constraint, load shedding power constraint, and enterprise constraints of electrolysis and heat storage enterprises in industrial park microgrids. For example, the constraints under the benchmark scenario can be specifically referred to in formulas (32)-(37), and the constraints under the prediction error scenario can be specifically referred to in formulas (38)-(43).
[0049] Optionally, the enterprise constraints of electrolysis and thermal storage enterprises in the industrial park microgrid include at least one of the following: electrolysis equipment power constraint, electrolysis equipment spare capacity constraint, electrolysis equipment temperature constraint, electrolysis enterprise daily output constraint, electrolysis equipment spare capacity actual call constraint, power energy constraint corresponding to electrolysis equipment, thermal storage load daily regulation capacity constraint, thermal storage industrial load daily regulation times constraint, thermal storage industrial load daily output constraint, and thermal storage equipment corresponding power energy constraint. For example, the enterprise constraints can be specifically referred to formulas (5)-(19).
[0050] Exemplarily, the power constraint of the electrolysis device can be expressed by the following formula:
[0051]
[0052] Wherein, the subscripts l and t are the numbers of the electrolysis equipment and time period respectively; l,t is the power of electrolytic device l in period t; P l max and P l min are the maximum and minimum power values of electrolytic device l respectively; U l is the voltage of electrolytic device 1; I l,t is the current intensity passed into the electrolytic device l during the period t.
[0053] Exemplarily, the reserve capacity constraint of the electrolysis equipment can be expressed by the following formula:
[0054]
[0055] Among them, V l,t The spare capacity reserved for electrolysis equipment l in time period t; P l,t is the power of electrolytic device l in time period t; Indicates the current that needs to be reduced for the electrolytic equipment l in time period t as a reserve. l min is the minimum power value of electrolytic equipment l; U l is the voltage of electrolytic device 1.
[0056] Exemplarily, the temperature constraint of the electrolytic device can be expressed by the following formula:
[0057] T e,l,1,s =T e max (7)
[0058]
[0059]
[0060] Among them, T e,l,1,s 、T e,l,2,s 、T e,l,t-1,s 、T e,l,t-2,s and T e,l,t,s I represents the electrolyte temperature of the electrolytic device l in time periods 1, 2, t-1, t-2 and t under scenario s respectively; l,t-1 and I l,t-2 is the current intensity passed into the electrolytic device 1 during time periods t-1 and t-2; and represents the actual reduction in current of electrolytic device l due to the call of spare capacity in time periods 1, t-1 and t-2 under scenario s; a and b are the inertia coefficients of the current temperature with respect to the temperature in the first two time periods; c and d are the inertia coefficients of the current temperature with respect to the current in the first two time periods; K is the temperature constant related to the internal structure of the electrolytic device; I max The maximum current allowed to flow into the electrolytic equipment; T e min and T e max They represent the minimum and maximum allowable values of the electrolyte temperature respectively.
[0061] For example, the daily output constraint of an electrolysis enterprise can be expressed by the following formula:
[0062]
[0063] in, and Indicates the minimum and maximum daily energy consumption of electrolytic equipment, which are proportional to the minimum and maximum product output, respectively. l,t is the current intensity passed into the electrolytic device l during the period t. T represents the actual reduction in current of electrolysis equipment l due to the call of reserve capacity in time period t under scenario s; N is the total number of time periods in a day; U l is the voltage of electrolytic device 1.
[0064] Exemplarily, the actual call constraint of the spare capacity of the electrolysis equipment can be expressed as:
[0065] 0≤V l,t,s ≤V l,t , (12)
[0066] Among them, V l,t,s V is the actual reserve capacity of electrolysis equipment l in time period t under scenario s. l,t The spare capacity reserved for electrolysis equipment l in time period t.
[0067] Exemplarily, the power and energy constraints of the energy storage device installed at the electrolysis device, that is, the power and energy constraints corresponding to the electrolysis device, can be expressed as:
[0068]
[0069] in, They are the charging and discharging status indicator variables of the energy storage device installed at the lth electrolytic device in the scenario s and time period t, both of which are 0-1 variables; and is the charging and discharging power of the energy storage device installed at the electrolytic device l in time period t; η l The maximum charge and discharge power, maximum energy storage capacity and charge and discharge efficiency of the energy storage device installed at the first electrolytic device; is the real-time storage energy of the energy storage device installed at the lth electrolytic device in time period t under scenario s; S lmin , S lmax are respectively the minimum and maximum state of charge coefficients of the energy storage device installed at the lth electrolytic device.
[0070] For example, the daily regulation capacity constraint of the thermal storage load can be expressed as:
[0071]
[0072] Among them, P m,t,sis the operating power of the mth thermal storage load after adjustment in time period t under scenario s, is the benchmark power of the mth thermal storage type industrial load operation, is the optimization variable corresponding to the power increase and decrease of the mth thermal storage type industrial load in time period t under scenario s, su m,t,s 、sd m,t,s It is a 0-1 variable reflecting the power up and down state of the mth thermal storage type industrial load equipment in time period t under scenario s. It is the maximum power increase and decrease for thermal storage type industrial loads under the premise of ensuring safe operation.
[0073] For example, the daily regulation times constraint of thermal storage type industrial load can be expressed as:
[0074]
[0075] Among them, y m,t,s and z m,t,s are the power up and down state transition variables of the mth thermal storage type industrial load equipment in time period t under scenario s; that is, y m,t,s and z m,t,s When it is 1, it means that the mth thermal storage type industrial load equipment in scenario s changes from other states to the power up (down) adjustment state; when it is 0, it means that no such state change occurs; M is the maximum adjustment times set for the thermal storage type industrial load; su m,t-1,s A 0-1 variable indicating that the mth thermal storage type industrial load device is in the power increase state in time period t-1 under scenario s.
[0076] For example, the daily production constraint of the thermal storage type industrial load can be expressed as:
[0077]
[0078] Among them, O m,t,s is the output of the mth thermal storage industrial equipment in period t under scenario s; m is the target output value of the thermal storage type industrial load; λ1, λ2, and λ3 are the product yields of the thermal storage type industrial load in the power reduction state, rated power, and increase state, respectively. is the base power of the mth thermal storage type industrial load, sd m,t,s su is a 0-1 variable reflecting the power up and down state of the mth heat storage type industrial load equipment in time period t under scenario s; m,t-1,s A 0-1 variable indicating that the mth thermal storage type industrial load device is in the power increase state in time period t-1 under scenario s. It is the maximum power increase and decrease for thermal storage type industrial loads under the premise of ensuring safe operation.
[0079] Exemplarily, the power and energy constraints of the energy storage device installed at the thermal storage device, that is, the power and energy constraints corresponding to the thermal storage device, can be expressed as:
[0080]
[0081] in, They are the charging and discharging status indicator variables of the energy storage device installed at the mth thermal storage type industrial load equipment in time period t under scenario s, both of which are 0-1 variables; and is the charging and discharging power of the energy storage device installed at the thermal storage device m in time period t; η m is the maximum charge and discharge power, maximum energy storage capacity and charge and discharge efficiency of the energy storage device installed at the mth thermal storage device; is the real-time storage energy of the energy storage device installed at the mth thermal storage type industrial load equipment in time period t under scenario s; S mmin , S mmax are the minimum and maximum state of charge coefficients of the energy storage device installed at the mth thermal storage type industrial load equipment.
[0082] For example, the lower model in the two-layer scheduling model, namely the industrial park microgrid side model, can be specifically expressed as a low-carbon optimization scheduling model for industrial park microgrid source-load-storage coordination involving multiple types of enterprises. Its constraints are formulas (5)-(19), and the objective function is to maximize the total net profit of all electrolysis and thermal storage industrial enterprises in the industrial park.
[0083] Optionally, the objective function corresponding to the industrial park microgrid side model can be constructed through the net income objective function obtained by the electrolysis enterprise and the net income objective function obtained by the thermal storage enterprise. Among them, the net income objective function obtained by the electrolysis enterprise includes multiple consideration indicators such as product income, the income of the enterprise participating in demand response, operation and maintenance costs, and carbon emission costs; the net income objective function obtained by the thermal storage enterprise includes multiple consideration indicators such as product production income, the income of participating in demand response, and carbon emission costs.
[0084] For example, the product revenue term in the net revenue objective function obtained by an electrolysis enterprise can be expressed as:
[0085] A l,t =α l U l I l,t
[0086]
[0087] Among them, A l,tA is the profit of electrolytic equipment l from product production in period t; l,t,s is the product profit loss caused by the actual use of standby power of electrolytic equipment l in period t; α l is the production profit price coefficient of electrolytic equipment l, which has taken into account factors such as raw material cost and electricity cost. This price coefficient can be obtained by converting the profit per ton of product. l is the voltage of electrolytic device 1. l,t is the current intensity passed into the electrolytic device l during the period t. It represents the current actually reduced when the backup capacity of electrolysis device l is called upon in time period t under scenario s.
[0088] For example, the net profit objective function of the electrolysis enterprise can be expressed as follows:
[0089]
[0090] in, Energy compensation provided by the power system operator to the electrolysis equipment l according to the response of the electrolysis enterprise load; Compensation price for energy; To compensate for the spare capacity provided to electrolysis equipment l; Compensation price for spare capacity; The standby deployment compensation provided to the electrolysis device l during period t under scenario s; Compensate for standby deployment. l is the voltage of electrolytic device 1. l,t is the current intensity passed into the electrolytic device l during the period t. It represents the current actually reduced when the backup capacity of electrolysis device l is called upon in time period t under scenario s. Indicates the current that needs to be reduced for the electrolytic device 1 in time period t as a reserve.
[0091] Exemplarily, the operation and maintenance cost in the net income objective function obtained by the electrolysis enterprise can be expressed by the following formula:
[0092]
[0093] in, The cost of equipment maintenance required to provide demand response for electrolysis equipment l during time period t; is the additional equipment maintenance cost when the electrolysis equipment l is actually called for backup capacity in period t under scenario s; c o&m Cost coefficient for load regulation of electrolysis equipment.
[0094] For example, the carbon emission cost of the electrolysis enterprise in the net income objective function obtained by the electrolysis enterprise can be expressed by the following formula:
[0095]
[0096] in, is the carbon emission cost of electrolysis equipment l in period t; c carbon is the unit carbon emission cost coefficient; η AL It is the carbon emission factor per unit of electricity in the process of electrolysis equipment; is the dynamic carbon emission factor per unit of electricity consumption, which is related to the proportion of fossil fuel power generation in the power grid where the electrolysis enterprise is located; η AL,p It is the carbon emission quota per unit of electricity for electrolysis equipment.
[0097] In summary, the net profit objective function of electrolysis enterprises can be expressed as:
[0098]
[0099] Among them, B AL The net benefit obtained by electrolysis enterprises from participating in demand response; N AL is the total number of electrolytic equipment in the industrial park; p s is the probability of scenario s occurring. Energy compensation provided by the power system operator to the electrolysis equipment l according to the response of the electrolysis enterprise load; To compensate for the spare capacity provided to electrolysis equipment l; The cost of equipment maintenance required to provide demand response for electrolysis equipment l during time period t; A is the carbon emission cost of electrolysis equipment l in period t; l,t,s The product profit loss caused by the actual use of the standby power of electrolysis equipment l in time period t; The standby deployment compensation provided to the electrolysis device l during period t under scenario s; T is the additional equipment maintenance cost when the electrolysis equipment l is actually called for backup capacity in time period t under scenario s; N is the total number of time periods in a day; N s is the number of scenes.
[0100] For example, the product production income item in the net income objective function obtained by the thermal storage enterprise can be expressed as:
[0101] A m,t,s =α m O m,t,s (27)
[0102] Among them, A m,t,sis the product profit loss caused by the actual use of standby power of thermal storage type industrial equipment m in time period t; α m is the production profit price coefficient of the product of thermal storage industrial equipment m, O m,t,s is the output of the mth thermal storage industrial equipment in period t under scenario s.
[0103] For example, the net income objective function of the thermal storage enterprise can be expressed as follows:
[0104]
[0105] in, is the benefit of the mth thermal storage device participating in demand response in time period t under scenario s; c m1 、c m2 They are the unit response electricity subsidies for a single increase or decrease in the amount of heat storage equipment; The power of the mth thermal storage device is adjusted up and down in time period t under scenario s; They are respectively the charging and discharging power of the energy storage device installed at the mth thermal storage type industrial load equipment in time period t under scenario s.
[0106] For example, the carbon emission cost of the thermal storage enterprise in the net income objective function obtained by the thermal storage enterprise can be expressed as:
[0107]
[0108] in, is the carbon emission cost of thermal storage equipment m in time period t under scenario s; η M is the carbon emission factor per unit of electricity in the internal process of the thermal storage equipment; is the dynamic carbon emission factor per unit of electricity consumption, which is related to the proportion of fossil fuel power generation in the power grid where the thermal storage enterprise is located; η M,p It is the carbon emission quota per unit of electricity for thermal storage equipment.
[0109] In summary, the net profit objective function obtained by thermal storage enterprises can be expressed as:
[0110]
[0111] Among them, B M The net benefit obtained by electrolysis enterprises from participating in demand response; N M It is the number of thermal storage devices in the industrial park microgrid. is the carbon emission cost of thermal storage equipment m in time period t under scenario s; A is the benefit of the mth thermal storage device participating in demand response in time period t under scenario s; m,t,sis the product profit loss caused by the actual use of standby power of thermal storage type industrial equipment m in time period t; p s is the probability of scenario s occurring. N is the total number of time periods in a day; N s is the number of scenes.
[0112] In summary, based on the net income B obtained by electrolysis enterprises AL and the net income obtained by thermal storage enterprises B M , the objective function corresponding to the construction of the industrial park microgrid side model can be as follows:
[0113] max B AL +B M (31)
[0114] The constraints corresponding to the objective function include formulas (5)-(19), and the goal of the objective function is to maximize the total net profit of all electrolysis and thermal storage industrial enterprises in the industrial park.
[0115] Exemplarily, the power balance constraint in the benchmark scenario can be expressed as:
[0116]
[0117] Among them, P t buy P is the power purchased from the main grid during the distribution network period t; i,t is the output of the i-th gas generator set in the distribution network during time period t; W j,t is the predicted power of new energy power station j in the distribution network during time period t; L d,t is the predicted load power of node d in the distribution network during period t; N g 、N W 、N D They are the total number of gas units, new energy stations and load nodes in the distribution network respectively. is the benchmark power of the mth thermal storage type industrial load, P l,t is the power of electrolytic device l in time period t.
[0118] For example, the output constraint of the gas generator set in the benchmark scenario can be expressed as:
[0119] I i,t P i min ≤P i,t ≤I i,t P i max (33)
[0120] Among them, P i min , P imax are the lower and upper limits of the output of the i-th gas generator set. i,t is the operating status of the i-th gas generator set in time period t, 0 means the unit is in shutdown state, and 1 means the unit is in operation state. i,t is the output of the i-th gas generator set in the distribution network during time period t.
[0121] For example, the ramp constraint of the gas generator set in the baseline scenario can be expressed as:
[0122] -DR i ≤P i,t -P i,t-1 ≤UR i (34)
[0123] Among them, DR i , UR i are the up and down ramp rates of thermal power unit i respectively; P i,t-1 is the output of the i-th gas generator set in the distribution network in time period t-1. i,t is the output of the i-th gas generator set in the distribution network during time period t.
[0124] For example, the minimum start-stop time constraint of the gas generator set in the benchmark scenario can be expressed as:
[0125]
[0126] in, are the continuous on and off times of gas generator set i in period t-1 respectively; are the minimum startup and shutdown duration of gas generator set i; I i,t-1 is the operating status of the i-th gas generator set at time period t-1.
[0127] For example, the reserve capacity constraint of the gas generator set in the baseline scenario can be expressed as:
[0128]
[0129] in, are the upper and lower spare capacities reserved for gas generator set i in period t. i , UR i are the up and down ramp rates of thermal power unit i respectively; P i,t is the output of the i-th gas generator set in the distribution network during time period t. i min , P i max are the lower and upper limits of the output of the i-th gas generator set respectively.
[0130] For example, the branch power flow constraint in the benchmark scenario can be expressed as:
[0131]
[0132] Among them, S P , S W , S L , S MG are the sensitivity matrices of gas unit power, new energy station power, node load power, and total power of industrial park microgrid to the power of distribution network line flow; P is the power matrix of all gas units in the distribution network at all time periods; W is the power matrix of all new energy stations at all time periods; L is the load power matrix of all nodes at all time periods; P AL , P M They are matrices composed of the power consumed by all electrolytic and thermal storage enterprises in the industrial park at all times; It is a matrix composed of the maximum values of the power flow of each line.
[0133] Exemplarily, the scenario energy balance constraint in the prediction error scenario can be expressed as:
[0134]
[0135] in, are the upper and lower reserve capacities actually used by gas generator set i in time period t respectively; is the abandoned power value of the new energy station j in time period t under scenario s; is the actual load power value of node d in time period t under scenario s. N g 、N W 、N D They are the total number of gas units, new energy stations and load nodes in the distribution network respectively.
[0136] For example, the scenario unit climbing constraint in the prediction error scenario can be expressed as:
[0137]
[0138] in, They are respectively the upper and lower reserve capacities actually used by gas generator set i in period t-1. i , UR i are the up and down climbing rates of thermal power unit i respectively.
[0139] For example, the scenario branch power flow constraint in the prediction error scenario can be expressed as:
[0140]
[0141] in, is the matrix composed of the actual reserve power of all gas units in all periods under scenario s; ΔW s is a matrix composed of the power prediction errors of all new energy stations in all time periods under scenario s; is the matrix composed of the abandoned power of all new energy stations in all periods under scenario s; ΔL s is the matrix composed of the load power prediction errors of all nodes in all time periods under scenario s; is the matrix composed of the load shedding power of all nodes in all time periods under scenario s; ΔP AL,s and ΔP M,s are matrices composed of the reserve capacities actually called by all electrolysis and thermal storage enterprises in all periods under scenario s; and S is the matrix composed of the power of all energy storage devices installed in all electrolysis and thermal storage enterprises in all periods under scenario s. P , S W , S L , S MG They are the sensitivity matrices of gas unit power, new energy station power, node load power, and total power of industrial park microgrid with respect to power flow of distribution network lines; It is a matrix composed of the maximum values of the power flow of each line.
[0142] For example, the upper and lower reserve capacity call constraints of the unit in the prediction error scenario can be expressed as:
[0143]
[0144] in, They are the upper and lower spare capacities reserved for gas unit i in time period t. They are the upper and lower spare capacities actually called by gas unit i in time period t.
[0145] For example, the new energy abandonment power constraint in the prediction error scenario can be expressed as:
[0146]
[0147] in, is the abandoned power value of the new energy station j in time period t under scenario s; W j,t is the predicted power of new energy power station j in the distribution network during time period t; ΔW j,t,s Represents the output power prediction error of the j-th renewable energy power station in the s-th typical scenario in time period t.
[0148] Exemplarily, the load shedding power constraint in the prediction error scenario can be expressed as:
[0149]
[0150] Where, ΔL d,t,s represents the output power prediction error of the dth load node in the sth typical scenario in time period t; L d,t is the predicted load power of node d in the distribution network during period t; is the actual load power value of node d in time period t under scenario s.
[0151] In summary, the objective function corresponding to the two-layer scheduling model can be expressed by the following formula:
[0152]
[0153] in, is the fuel cost per unit of power generation of gas generator set i; and are the compensation prices for reserving upper and lower spare capacities for gas generator set i, respectively; and are the additional subsidy prices for the gas generator set i to be actually called up and down for standby respectively; C load is the load shedding compensation price; C w P is the penalty coefficient for abandoning the unit power generation of new energy. i,t The output of the i-th gas generator set in the distribution network during time period t; They are the upper and lower spare capacities reserved for gas unit i in time period t. is the abandoned power value of the new energy station j in time period t under scenario s; is the actual load power value of node d in time period t under scenario s. N g 、N W 、N D They are the total number of gas units, new energy stations and load nodes in the distribution network respectively. are the upper and lower reserve capacities actually used by gas generator set i in period t; T N is the total number of time periods in a day; N s is the number of scenes. p s is the probability of scenario s occurring. AL is the net income obtained by the electrolysis enterprise; B M It is the net profit obtained by thermal storage enterprises.
[0154] In summary, the two-layer dispatching model provided by the present invention is composed of the objective function formula (44), constraint condition formulas (5)-(19) and formulas (32)-(43). Specifically, the upper model is an optimization dispatching model on the distribution network side, with the minimum total operating cost of the distribution network as the optimization target, and the optimization results are the working status and power of flexible resources such as the power purchased from the main network, the power generated by the new energy station, the start and stop status of the gas unit, the power of the gas unit, and the energy storage and demand response.
[0155] S103. Solve the two-layer scheduling model based on a preset solver to obtain target values of power equipment in the power grid so as to schedule the power equipment in the power grid.
[0156] The target value may be a parameter involved in the two-layer dispatch model and related constraints, and may include at least one of the following: the net income obtained by the electrolysis enterprise, the net income obtained by the heat storage enterprise, the power purchased by the distribution network from the main grid, the output of the gas units in the distribution network, the predicted power of the new energy power station in the distribution network, and the predicted load power of the nodes in the distribution network. The power purchased by the distribution network from the main grid during the period can be obtained by combining the two-layer dispatch model with the constraint condition (32).
[0157] Optionally, based on a preset solver, the two-layer scheduling model is solved to obtain the target value of the power equipment of the power grid, so as to schedule the power equipment of the power grid, including: inputting the two-layer scheduling model and its corresponding constraint conditions into the preset solver, solving the two-layer scheduling model, and obtaining the target value of the power equipment of the power grid; determining the scheduling plan for the power equipment of the power grid according to the purchased power and the output of the gas unit in the target value, so as to schedule the power equipment of the power grid;
[0158] Correspondingly, after obtaining the target value of the power equipment of the power grid, it also includes: determining the dynamic carbon emission factor according to the purchased electricity power and the output of the gas unit in the target value, combined with the carbon emission intensity of the gas unit and the average carbon emission factor of the unit electricity purchased from the main grid; determining the total load curve of the industrial park microgrid according to the dynamic carbon emission factor and the lower-level model, and adjusting the two-layer scheduling model according to the total load curve and the upper-level model to update the target value of the power equipment of the power grid and realize iteration between the upper and lower-level models.
[0159] For example, according to the purchased power and gas unit output in the target value, combined with the carbon emission intensity of the gas unit and the average carbon emission factor of the unit electricity purchased from the main grid, the dynamic carbon emission factor can be determined by the following formula:
[0160]
[0161] in, is the carbon emission intensity of the i-th gas generating unit; η mainThe average carbon emission factor per unit of electricity purchased from the main grid. t buy P is the power purchased from the main grid during the distribution network period t; i,t is the output of the i-th gas generator set in the distribution network during time period t; N g For gas generating units in the distribution network;
[0162] Exemplarily, the dynamic carbon emission factor (for example, the dynamic carbon emission factor can be calculated and determined once every hour) can be substituted into the lower-level model to optimize the total load curve of the industrial park microgrid when the profits of enterprises in the park are maximized. The curve is returned to the upper-level model, and the corresponding scheduling plan can continue to be optimized and adjusted, and the hourly dynamic carbon emission factor can be updated again, thereby forming an iteration between the upper and lower models.
[0163] It should be noted that the present invention takes into account that the carbon emission factor of the industrial park's purchase of electricity from the distribution network changes dynamically with the proportion of electricity demand borne by fossil energy power generation in the distribution network. That is to say, the change in the carbon emission factor of purchasing electricity from the distribution network will affect the shape of the load power curve of each enterprise in the industrial park microgrid after participating in the demand response; and the change in the power curve of the enterprise in the industrial park will in turn affect the proportion of electricity borne by fossil energy power generation in the distribution network, thereby changing the dynamic carbon emission factor of purchasing electricity from the distribution network every hour. In other words, there is a coupling relationship between the optimization scheduling model of the industrial park microgrid and the optimization scheduling model of the distribution network to which it is connected. Therefore, the present invention establishes a two-layer scheduling model including an upper model and a lower model to dynamically optimize parameters and dynamically adjust the carbon emission factor, so as to achieve energy saving and carbon reduction effects on the basis of taking into account the economic efficiency and safety of the operation of enterprises in the distribution network and the industrial park microgrid.
[0164] Optionally, before solving the two-layer scheduling model based on the preset solver, it also includes: based on the KKT condition and the big M method, converting the two-layer scheduling model into a single-layer quadratic programming model; accordingly, based on the preset solver, solving the two-layer scheduling model includes: inputting the single-layer quadratic programming model into the preset solver to obtain the target value of the power equipment of the power grid to schedule the power equipment of the power grid.
[0165] Optionally, the lower model can be converted into the corresponding Kuhn-Tucker KKT conditions, and the KKT conditions can be used as supplementary constraints of the upper model (in the form of partial derivatives); according to the upper model and the supplementary constraints, the big M method is used to linearize the bilinear terms in the upper model (that is, the terms multiplied by the kkt multipliers and the optimization variables) to obtain a quadratic programming model.
[0166] It should be noted that, considering that the two-layer scheduling model cannot be solved directly, the KKT condition can be used to transform the two-layer model into a single-layer model. Since the above two-layer model is too complex to show the KKT transformation process, the two-layer scheduling model is abstracted into a compact general form as follows:
[0167]
[0168] Among them, x and y are the upper and lower decision variables respectively; F(x,y) and f(x,y) are the upper and lower objective functions respectively; G a (x,y)≤0 and H b (x,y)=0 are the upper inequality and equality constraints respectively; g i (x,y)≤0 and h j (x,y)=0 are the lower-level inequality and equality constraints respectively.
[0169] Furthermore, the Lagrange multiplier method is used to transform the lower optimization problem into its KKT condition, and the augmented Lagrangian function model is constructed as follows:
[0170]
[0171] Among them, λ i , μ j is the dual variable of the lower-level constraints; L(y,λ,μ;x) is the augmented Lagrangian function corresponding to the lower-level model.
[0172] By taking the partial derivative of the augmented Lagrangian function and setting the partial derivative equal to 0, we can form a system of equations and obtain the KKT condition. By solving the KKT condition, we can obtain the relationship between x and y:
[0173]
[0174] Combine the KKT conditions of the converted lower model with the constraints of the upper model to convert the two-layer model into a single-layer model:
[0175]
[0176] Solving the single-layer model formula (49) obtained by KKT transformation is equivalent to solving the double-layer scheduling model of the present invention.
[0177] It should be noted that since the single-layer model after the KKT condition transformation in the above step contains a bilinear term of the product of the Lagrange multiplier and the decision variable, that is, the complementary relaxation condition λ i g i (x,y)=0.
[0178] The general big M method can be used to approximate this nonlinear structure into the following linear constraints:
[0179]
[0180] Among them, M big is a sufficiently large constant; z i Several 0-1 auxiliary variables introduced by the Big M method. i is the dual variable of the lower constraint; g i (x,y)≤0 is the lower-level inequality constraint.
[0181] Through the above steps, the two-layer scheduling model can be converted into a single-layer mixed integer quadratic programming problem, which can be directly solved by calling commercial solvers such as Gurobi to obtain the target value of the power equipment in the power grid, so as to generate the optimal scheduling plan for each power equipment and flexible resources in the distribution network and industrial park microgrid, and realize the scheduling of the power equipment in the power grid.
[0182] The technical solution of the embodiment of the present invention, in response to the dispatch request for the power equipment of the power grid, clusters the historical data of the prediction error of the distribution network based on the preset density clustering algorithm to construct a prediction error scenario set according to the clustering result; determines the constraint conditions of the two-layer dispatch model according to the prediction error scenario set to construct the two-layer dispatch model; solves the two-layer dispatch model based on the preset solver to obtain the target value of the power equipment of the power grid to dispatch the power equipment of the power grid. By conducting a comprehensive analysis from both the distribution network side and the industrial park microgrid side, an accurate dispatch model can be established, an accurate dispatch value can be determined, and the optimal dispatch of the power equipment of the power grid can be realized, so that the effect of energy saving and carbon reduction can be achieved on the basis of taking into account the economic efficiency and safety of the operation of enterprises in the distribution network and the industrial park microgrid.
[0183] Embodiment 2
[0184] Figure 2 : is a structural diagram of a dispatching device for a power grid device provided in the second embodiment of the present invention; this embodiment can be applied to the situation where the operation status of the distribution network and the industrial park microgrid is predicted based on the two-layer dispatching model to effectively dispatch the power grid device. The dispatching device for the power grid device provided in the embodiment of the present invention can execute the dispatching method for the power grid device provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method; the dispatching device for the power grid device can be implemented in the form of hardware and / or software, and configured in an electronic device with the dispatching function of the power grid device, such as the master control device of the distribution network and the workstation park microgrid, such as Figure 2 As shown, the dispatching device of the power grid power equipment specifically includes:
[0185] The clustering module 201 is used to perform clustering processing on the prediction error historical data of the distribution network based on a preset density clustering algorithm in response to a dispatch request for the power equipment of the power grid, so as to construct a prediction error scenario set according to the clustering result;
[0186] A construction module 202 is used to determine the constraint conditions of the two-layer scheduling model according to the prediction error scenario set to construct the two-layer scheduling model; wherein the two-layer scheduling model includes an upper model and a lower model, the upper model is a distribution network side model, and the lower model is an industrial park microgrid side model;
[0187] The scheduling module 203 is used to solve the two-layer scheduling model based on a preset solver to obtain the target value of the power equipment of the power grid so as to schedule the power equipment of the power grid.
[0188] The technical solution of the embodiment of the present invention, in response to the dispatch request for the power equipment of the power grid, clusters the historical data of the prediction error of the distribution network based on the preset density clustering algorithm to construct a prediction error scenario set according to the clustering result; determines the constraint conditions of the two-layer dispatch model according to the prediction error scenario set to construct the two-layer dispatch model; solves the two-layer dispatch model based on the preset solver to obtain the target value of the power equipment of the power grid to dispatch the power equipment of the power grid. By conducting a comprehensive analysis from both the distribution network side and the industrial park microgrid side, an accurate dispatch model can be established, an accurate dispatch value can be determined, and the optimal dispatch of the power equipment of the power grid can be realized, so that the effect of energy saving and carbon reduction can be achieved on the basis of taking into account the economic efficiency and safety of the operation of enterprises in the distribution network and the industrial park microgrid.
[0189] Furthermore, the clustering module 201 is specifically used for:
[0190] Based on a preset density clustering algorithm, clustering is performed on the prediction error historical data of the distribution network to divide the prediction error historical data into at least two categories;
[0191] For each divided class, based on the center clustering algorithm, the target cluster center is determined from the target data points contained in each class, and a prediction error scenario set is generated according to the target cluster center corresponding to each divided class.
[0192] Furthermore, the constraints of the two-layer scheduling model include constraints under the baseline scenario and constraints under the prediction error scenario; the constraints under the baseline scenario include at least one of the following: power balance constraints, gas unit output constraints, gas unit climbing constraints, gas unit minimum start and stop time constraints, gas unit spare capacity constraints and branch flow constraints; the constraints under the prediction error scenario include at least one of the following: scenario energy balance constraints, scenario unit climbing constraints, scenario branch flow constraints, unit upper and lower spare capacity call constraints, new energy abandonment power constraints, load shedding power constraints and enterprise constraints of electrolysis and heat storage enterprises in industrial park microgrids.
[0193] Furthermore, the enterprise constraints of electrolysis and heat storage enterprises within the industrial park microgrid include at least one of the following: power constraints of electrolysis equipment, spare capacity constraints of electrolysis equipment, temperature constraints of electrolysis equipment, daily output constraints of electrolysis enterprises, actual call constraints of spare capacity of electrolysis equipment, power and energy constraints corresponding to electrolysis equipment, daily regulation capacity constraints of heat storage loads, daily regulation times constraints of heat storage industrial loads, daily output constraints of heat storage industrial loads, and power and energy constraints corresponding to heat storage equipment.
[0194] Furthermore, the scheduling module 203 is specifically used for:
[0195] The two-layer dispatch model and its corresponding constraints are input into a preset solver, the two-layer dispatch model is solved, and the target value of the power equipment of the power grid is obtained;
[0196] According to the purchased power and the output of the gas-fired units in the target value, a dispatching plan for the power equipment of the power grid is determined to dispatch the power equipment of the power grid;
[0197] Accordingly, the above device is also used for:
[0198] Determine the dynamic carbon emission factor based on the purchased power and gas unit output in the target value, combined with the carbon emission intensity of the gas unit and the average carbon emission factor per unit of electricity purchased from the main grid;
[0199] According to the dynamic carbon emission factor and the lower-level model, the total load curve of the industrial park microgrid is determined, and according to the total load curve and the upper-level model, the two-layer scheduling model is adjusted to update the target value of the power equipment of the power grid and realize the iteration between the upper and lower-level models.
[0200] Furthermore, the above device is also used for:
[0201] Based on Kuhn-Tucker KKT conditions and the method of large numbers, the two-level scheduling model is transformed into a single-level quadratic programming model;
[0202] Accordingly, based on the preset solver, the two-layer scheduling model is solved, including:
[0203] The single-layer quadratic programming model is input into the preset solver to obtain the target value of the power equipment in the power grid so as to schedule the power equipment in the power grid.
[0204] Embodiment 3
[0205] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. Figure 3 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0206] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0207] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0208] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a dispatching method for power grid power equipment.
[0209] In some embodiments, the dispatching method of the power grid device may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the dispatching method of the power grid device described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the dispatching method of the power grid device by any other appropriate means (e.g., by means of firmware).
[0210] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0211] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0212] In one embodiment, the embodiment of the present invention further includes a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, it implements the scheduling method of the power grid power equipment of any embodiment of the present invention.
[0213] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document is not limited here. The above specific implementation methods do not constitute limitations on the scope of protection of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for dispatching power equipment in a power grid, characterized in that: include: In response to a dispatch request for a power grid power device, clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm to construct a prediction error scenario set according to the clustering results; According to the prediction error scenario set, the constraint conditions of the two-layer dispatch model are determined to construct the two-layer dispatch model; wherein the two-layer dispatch model includes an upper model and a lower model, the upper model is the distribution network side model, and the lower model is the industrial park microgrid side model; Based on the preset solver, the two-layer scheduling model is solved to obtain the target value of the power equipment in the power grid so as to schedule the power equipment in the power grid.
2. The method according to claim 1, characterized in that: Based on the preset density clustering algorithm, the prediction error historical data of the distribution network is clustered to construct a prediction error scenario set according to the clustering results, including: Based on a preset density clustering algorithm, clustering is performed on the prediction error historical data of the distribution network to divide the prediction error historical data into at least two categories; For each divided class, based on the center clustering algorithm, the target cluster center is determined from the target data points contained in each class, and a prediction error scenario set is generated according to the target cluster center corresponding to each divided class.
3. The method according to claim 1, characterized in that: in, The constraints of the two-layer scheduling model include constraints under the baseline scenario and constraints under the prediction error scenario; the constraints under the baseline scenario include at least one of the following: power balance constraints, gas unit output constraints, gas unit climbing constraints, gas unit minimum start and stop time constraints, gas unit spare capacity constraints and branch flow constraints; the constraints under the prediction error scenario include at least one of the following: scenario energy balance constraints, scenario unit climbing constraints, scenario branch flow constraints, unit upper and lower spare capacity call constraints, new energy abandonment power constraints, load shedding power constraints and enterprise constraints of electrolysis and heat storage enterprises in industrial park microgrids.
4. The method according to claim 3, characterized in that in, The enterprise constraints of electrolysis and heat storage enterprises within the industrial park microgrid include at least one of the following: power constraints of electrolysis equipment, spare capacity constraints of electrolysis equipment, temperature constraints of electrolysis equipment, daily output constraints of electrolysis enterprises, actual call constraints of spare capacity of electrolysis equipment, power and energy constraints corresponding to electrolysis equipment, daily regulation capacity constraints of heat storage loads, daily regulation times constraints of heat storage industrial loads, daily output constraints of heat storage industrial loads, and power and energy constraints corresponding to heat storage equipment.
5. The method according to claim 1, characterized in that Based on the preset solver, the two-layer dispatch model is solved to obtain the target value of the power equipment of the power grid to dispatch the power equipment of the power grid, including: The two-layer dispatch model and its corresponding constraints are input into a preset solver, the two-layer dispatch model is solved, and the target value of the power equipment of the power grid is obtained; According to the purchased power and the output of the gas-fired units in the target value, a dispatching plan for the power equipment of the power grid is determined to dispatch the power equipment of the power grid; Correspondingly, after obtaining the target value of the power equipment of the power grid, it also includes: Determine the dynamic carbon emission factor based on the purchased power and gas unit output in the target value, combined with the carbon emission intensity of the gas unit and the average carbon emission factor per unit of electricity purchased from the main grid; According to the dynamic carbon emission factor and the lower-level model, the total load curve of the industrial park microgrid is determined, and according to the total load curve and the upper-level model, the two-layer scheduling model is adjusted to update the target value of the power equipment of the power grid and realize the iteration between the upper and lower-level models.
6. The method according to claim 1, characterized in that Based on the preset solver, before solving the two-level scheduling model, it also includes: Based on Kuhn-Tucker KKT conditions and the method of large numbers, the two-level scheduling model is transformed into a single-level quadratic programming model; Accordingly, based on the preset solver, the two-layer scheduling model is solved, including: The single-layer quadratic programming model is input into the preset solver to obtain the target value of the power equipment in the power grid so as to schedule the power equipment in the power grid.
7. A dispatching device for power grid power equipment, characterized in that: include: A clustering module, for responding to a dispatch request for a power grid power device, clustering the prediction error historical data of the distribution network based on a preset density clustering algorithm, so as to construct a prediction error scenario set according to the clustering results; A construction module is used to determine the constraint conditions of the two-layer scheduling model according to the prediction error scenario set to construct the two-layer scheduling model; wherein the two-layer scheduling model includes an upper model and a lower model, the upper model is a distribution network side model, and the lower model is an industrial park microgrid side model; The scheduling module is used to solve the two-layer scheduling model based on a preset solver to obtain the target value of the power equipment of the power grid so as to schedule the power equipment of the power grid.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for dispatching power equipment in a power grid according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the scheduling method for power grid power equipment according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for dispatching power equipment of a power grid according to any one of claims 1 to 6.
Citation Information
Patent Citations
Energy optimization scheduling method for microgrid containing distributed wind power
CN112583053A
Park micro-grid day-ahead scheduling method
CN116365525A
Energy power system optimization scheduling method, system, equipment and medium
CN116780647A
Multi-energy micro-energy network optimization scheduling method considering uncertainty of renewable energy
CN117578449A
Park energy system optimization scheduling method based on model predictive control and related device thereof
CN118171884A
Cited By
Low-carbon scheduling method considering comprehensive demand response of electricity and carbon of electrolytic aluminum enterprise
CN120598280A
Provincial power grid fire storage day-ahead active power scheduling method for coping with extreme scene
CN120657877A
