A day-ahead optimal dispatching method for an electricity-gas integrated energy system
By deleting abnormal samples in historical prediction error data, using principal component analysis and cutting plane methods to optimize the prediction error uncertainty set, and combining column and constraint generation algorithms, the overly conservative scheduling problem in traditional methods is solved and the electric-gas system is realized. Economical and robust optimal dispatch of integrated energy systems.
Patent Information
- Application Number
- CN202311099910.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-08-30
AI Technical Summary
In the existing dispatching methods of electric-gas integrated energy systems, the traditional prediction error uncertainty set construction method ignores the correlation between different power units, resulting in the constructed uncertainty set containing a large number of impossible scenarios, which makes decision-making difficult. The process is overly conservative.
By obtaining the historical prediction error data of new energy output and load power of the electricity-gas integrated energy system, deleting abnormal samples, using the principal component analysis method to construct an initial box-type uncertainty set of prediction errors, and tightening the uncertainty set through the cutting plane method. , obtain the optimal polyhedral uncertainty set of prediction errors, and solve the optimal scheduling model by combining column and constraint generation algorithms.
It reduces the occurrence of impossible scenarios, reduces the conservatism of the decision-making process, and takes into account the economy and robustness of the current optimal dispatch plan for the electric-gas integrated energy system.
Smart Images

Figure CN117096872B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a day-ahead optimization dispatching method for an electricity-gas integrated energy system, belonging to the technical field of new energy. Background Art
[0002] In recent years, with the rapid reduction of fossil energy and the enhancement of environmental awareness in the whole society, increasing the proportion of renewable energy such as hydropower and wind power has become an important strategy for the development of the energy industry and is of great significance to the sustainable development of human society.
[0003] The installed capacity of new energy generators and gas-to-electricity devices such as gas turbines is constantly expanding, which has increased the dependence between the power system and the natural gas network. Therefore, it is necessary to coordinate the scheduling of multi-energy coupling systems to improve the optimality of decision-making schemes. Among them, the handling of power system uncertainty is often reflected in the construction of the uncertainty set of prediction errors for its new energy output and load power.
[0004] In previous research results, the prediction error uncertainty set is often constructed using traditional box or elliptical methods. However, traditional methods have the problem of ignoring the correlation between the prediction errors of different power units, which easily makes the constructed uncertainty set contain a large number of scenarios that are impossible to occur in reality, causing decision makers to make overly conservative scheduling plans. Summary of the invention
[0005] The purpose of the present invention is to provide a method for optimizing the scheduling of an electricity-gas integrated energy system on the day before, which can reduce impossible scenarios of uncertainty concentration, reduce the conservatism of the decision-making process, and take into account the economy and robustness of the day-ahead optimization scheduling scheme of the electricity-gas integrated energy system.
[0006] In order to achieve the above object, the present invention provides the following technical solutions:
[0007] A day-ahead optimization dispatching method for an electricity-gas integrated energy system, comprising:
[0008] Obtain a historical prediction error data set of new energy output and load power in the electric-gas integrated energy system, and delete abnormal samples in the historical prediction error data set;
[0009] Determine the direction of the principal component vector of the historical forecast error data set by using the principal component analysis method, and construct an initial box uncertainty set of the forecast error according to the direction of the principal component vector;
[0010] Using a cutting plane method to tighten the initial box uncertainty set of the prediction error, and obtaining an optimal polyhedral uncertainty set of the prediction error;
[0011] According to the prediction error optimal polyhedron uncertainty set, a day-ahead optimization scheduling model is constructed, and the day-ahead optimization scheduling model is solved by using a column and constraint generation algorithm to obtain a day-ahead optimization scheduling plan for the electricity-gas integrated energy system.
[0012] Furthermore, deleting abnormal samples in the historical prediction error data set includes:
[0013] Performing zero-mean processing on the historical prediction error data set to obtain a zero-mean matrix of historical prediction errors;
[0014] Obtaining a historical prediction error covariance matrix according to the historical prediction error zero-mean matrix;
[0015] Performing eigenvalue decomposition on the historical forecast error covariance matrix to obtain the historical forecast error eigenvector and eigenvalue;
[0016] According to the historical prediction error eigenvector and eigenvalue, the Hotelling T of each historical sample in the historical prediction error data set is calculated. 2 Statistics;
[0017] Determine Hotelling T 2 Historical samples whose statistics are greater than the first preset threshold are abnormal samples and are deleted from the historical prediction error data set.
[0018] Further, the principal component analysis method is used to determine the direction of the principal component vector of the historical prediction error data set, and the initial box uncertainty set of the prediction error is constructed according to the direction of the principal component vector, including:
[0019] Define the direction of the historical prediction error characteristic vector as the direction of the principal component vector;
[0020] Projecting each historical sample that has been processed by zero mean in the historical prediction error zero mean matrix to the direction of each principal component vector, and defining the points corresponding to the maximum and minimum values of the projection in the direction of each principal component vector as the two endpoints of the principal component vector;
[0021] For each principal component vector, two planes perpendicular to it are generated through its two endpoints respectively, and a zero-mean spatial uncertainty set enclosed by each of the planes is obtained;
[0022] The zero-mean spatial uncertainty set enclosed by each of the planes is converted from the zero-mean space to the original space to obtain an initial box uncertainty set of the prediction error.
[0023] Furthermore, the initial box uncertainty set of the prediction error is tightened by using the cutting plane method, and the optimal polyhedral uncertainty set of the prediction error is obtained, which includes:
[0024] Randomly select one endpoint from the two endpoints of each principal component vector to form an endpoint combination, and determine an initial cutting plane according to each endpoint combination;
[0025] Translating each of the initial cutting planes to obtain a zero-mean spatial uncertainty set surrounded by each of the translated cutting planes;
[0026] The zero-mean spatial uncertainty set enclosed by the translated cutting planes is converted from the zero-mean space to the original space, and the intersection is taken with the initial box uncertainty set of the prediction error to obtain the optimal polyhedral uncertainty set of the prediction error;
[0027] Each endpoint combination corresponds to an initial cutting plane, and each initial cutting plane passes through all endpoints in its corresponding endpoint combination; the translated cutting plane passes through the point of the historical sample farthest from its initial cutting plane.
[0028] Furthermore, the constraints of the day-ahead optimization scheduling model include:
[0029] Unit start and stop constraints:
[0030]
[0031] in, is the startup and shutdown duration of unit i in period t-1, is the minimum startup and shutdown duration of unit i, I it is the state of unit i in period t, I it =1 means that the status of unit i in period t is on, I it =0 means that the status of unit i in period t is shutdown, I i(t-1) is the state of unit i in period t-1, is the startup and shutdown 0-1 variable of unit i in period t. If unit i starts in period t, then and If unit i is shut down during period t, then and otherwise and
[0032] Unit output constraints taking into account system reserve requirements:
[0033]
[0034] Among them, P it is the power output of unit i in period t when the source-load prediction error is not considered, P imin , P imax is the minimum and maximum power output of unit i, is the downward and upward reserve capacity that unit i can provide during period t;
[0035] System upward and downward adjustment of total reserve capacity constraints:
[0036]
[0037] Among them, R + , R - The minimum up- and down-regulation total reserve capacity required by the system;
[0038] Unit climbing constraints:
[0039]
[0040] Among them, DR i , UR i is the maximum downward and upward climbing power of unit i, P i(t-1) is the power output of unit i in period t-1 when the source-load prediction error is not considered, is the power increase or decrease made by unit i in time period t to cope with the source load prediction error, is the power increase or decrease made by unit i in time period t-1 to cope with the source load prediction error;
[0041] Power balance constraints:
[0042]
[0043] in, is the predicted power of the new energy power station w and the load at the system node b during period t, ΔW wt , ΔL bt is the power prediction error of the new energy power station w and the load at the system node b during period t, is the abandoned power of the new energy power station w and the load shedding power at the system node b during period t;
[0044] Line transmission power constraints:
[0045]
[0046] Among them, k lb is the power transfer factor of system node b with respect to line l, f lmax is the maximum transmission power of line l, i∈b, w∈b means that unit i and new energy power station w are connected to system node b to access the power system;
[0047] Upper and lower correction power constraints:
[0048]
[0049] Constraints on abandoned power and load shedding power of new energy sources:
[0050]
[0051] Natural gas well production constraints:
[0052] G gmin ≤G gt ≤G gmax
[0053] Among them, G gt is the gas production flow rate of gas well g in period t, G gmin , G gmax are the lower and upper limits of gas production flow rate of gas well g;
[0054] Gas network node gas pressure constraints:
[0055] π mmin ≤π mt ≤π mmax
[0056] Among them, π mt is the gas pressure of natural gas network node m at time t, π mmin , π mmax are the lower and upper limits of gas pressure at natural gas network node m;
[0057] Natural gas balance constraints:
[0058]
[0059] Among them, q mnt is the gas flow rate of the pipeline between nodes m and n in the natural gas network during period t, is the gas load of natural gas network node n in period t, F i (P it ) is the output of unit i, P it The fuel heat consumed when the gas well g is connected to the natural gas network node n, s(mn)∈n, r(mn)∈n indicate that the sending end and receiving end of the pipeline between the natural gas network nodes m and n are the natural gas network node n, i∈gu&i∈n indicate that the unit i is a gas turbine and the unit i serves as the load of the natural gas network node n;
[0060] Natural gas pipeline flow constraints:
[0061]
[0062] Among them, π nt is the gas pressure of natural gas network node n in period t, S ij is the pipeline constant, is the minimum and maximum gas flow of the pipeline between nodes m and n in the natural gas network, sgn(·) is a sign function with a value of 1 or -1;
[0063] Uncertainty variable constraints on new energy output and load power forecast error:
[0064] A PCA+Cut u≤b PCA+Cut
[0065] Among them, u is the vector of uncertainty variables of forecast error of new energy output and load power, u=[ΔW wt , ΔL bt ], A PCA+Cut For U PCA+Cut The coefficient matrix of PCA+Cut For U PCA+Cut The constant vector, U PCA+Cut is the optimal polyhedral uncertainty set for prediction error.
[0066] Furthermore, the objective function of the day-ahead optimization scheduling model is:
[0067]
[0068] in, is the unit cost of fuel used by unit i, SU i , SD i is the startup and shutdown cost of unit i, Provide upper and lower standby prices for unit i, is the unit regulation cost of increasing or decreasing the power of unit i, C w , C l is the penalty cost per unit of renewable energy abandonment and per unit of load shedding, u is the vector of uncertainty variables of forecast error of renewable energy output and load power, x is the set of decision variables in the first stage, I it is the state of unit i in period t, is the startup and shutdown 0-1 variable of unit i in period t, P it is the power output of unit i in period t when the source-load prediction error is not considered, G is the reserve capacity that unit i can provide during period t. gt is the gas production flow rate of gas well g in period t, q mnt is the gas flow rate of the pipeline between natural gas network nodes m and n in period t, π mt is the gas pressure of natural gas network node m in period t, y is the set of decision variables in the second stage, is the power increase or decrease made by unit i in time period t to cope with the source load prediction error, It is the abandoned power of the new energy power station w and the load shedding power at the system node b during period t.
[0069] Furthermore, the column and constraint generation algorithm is used to solve the day-ahead optimization scheduling model to obtain the day-ahead optimization scheduling scheme of the electricity-gas integrated energy system, including:
[0070] The objective function and constraints of the day-ahead optimization scheduling model are written in a general form;
[0071] Decomposing the general form into a main problem and subproblems using a column and constraint generation algorithm;
[0072] Iteratively solving the subproblems and the main problem, and updating the upper and lower bounds of the objective function;
[0073] Until the difference between the upper and lower bounds of the objective function is reduced to a second preset threshold, the day-ahead optimal scheduling plan for the electricity-gas integrated energy system is obtained.
[0074] Furthermore, the general form is:
[0075]
[0076] Among them, x is the set of decision variables in the first stage, y is the set of decision variables in the second stage, u is the vector of uncertainty variables of prediction error of new energy output and load power, c is the vector of coefficients related to x in the objective function, q is the vector of coefficients related to y in the objective function, Q is the matrix of coefficients of x in the constraint conditions related only to x, d is the constant vector in the constraint conditions related only to x, W, F, Y are the matrices of coefficients of x, y, u in the constraint conditions related to at least two of x, y, u, H is the constant vector in the constraint conditions related to at least two of x, y, u, A PCA+Cut For U PCA+Cut The coefficient matrix of PCA+Cut For U PCA+Cut The constant vector, U PCA+Cut is the optimal polyhedron uncertainty set for prediction error;
[0077] The sub-problems are:
[0078]
[0079] The main problem is:
[0080]
[0081] Among them, η is an auxiliary variable, y τ is the set of second-stage decision variables obtained when solving the τth iteration, τ maxis the maximum number of iterations, u τ It is a vector consisting of the uncertainty variables of the prediction error of the new energy output and load power obtained during the τth iteration.
[0082] Further, iteratively solving the sub-problems and the main problem and updating the upper and lower bounds of the objective function include:
[0083] Using the dual transformation technology, the inner min problem of the sub-problem is transformed into a max problem to obtain the transformed sub-problem;
[0084] Iteratively solving the transformed sub-problems and updating the upper bound of the objective function;
[0085] Iteratively solving the master problem and updating the lower bound of the objective function;
[0086] Among them, the upper bound of the objective function is updated as:
[0087] UB τ+1 =min(UB τ , c T x τ+1 +q T y τ+1 )
[0088] Among them, UB τ is the upper bound of the objective function updated during the τth iteration, UB τ+1 is the upper bound of the objective function updated during the τ+1th iteration, x τ+1 is the set of first-stage decision variables obtained when solving the τ+1th iteration, y τ+1 The set of second-stage decision variables obtained during the τ+1th iteration;
[0089] Update the lower bound of the objective function to:
[0090] LB τ+1 =c T x τ+1 +η τ+1
[0091] Among them, LB τ+1 is the lower bound of the objective function updated during the τ+1th iteration, η τ+1 It is the auxiliary variable used in solving the τ+1th iteration.
[0092] Furthermore, the sub-problem after transformation is:
[0093]
[0094] where π is the dual variable associated with the constraint Wy≥H-Fx-Yu.
[0095] Compared with the prior art, the present invention has the following beneficial effects:
[0096] The day-ahead optimization scheduling method for an electricity-gas integrated energy system provided by the present invention deletes abnormal samples in a historical prediction error data set, thereby preventing abnormal samples from causing a robust optimization result to lose optimality; a principal component analysis method is used to construct an initial box uncertainty set for prediction errors, and a cutting plane method is used to tighten the initial box uncertainty set for prediction errors, thereby obtaining an optimal polyhedral uncertainty set for prediction errors, thereby reducing impossible scenarios, reducing the conservatism of the decision-making process, and taking into account both the economy and robustness of the day-ahead optimization scheduling scheme for an electricity-gas integrated energy system. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 This is a flow chart of a method for optimizing the day-ahead scheduling of an electricity-gas integrated energy system provided by an embodiment of the present invention;
[0098] Figure 2 It is a schematic diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0099] The technical solution of the present application is further described in detail below in conjunction with specific implementation methods.
[0100] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limiting the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments may be combined with each other.
[0101] Embodiment 1:
[0102] Figure 1 is the logical order of the method of this embodiment. Under the premise of no conflict, different Figure 1 The steps shown or described are accomplished in the order shown.
[0103] See also Figure 1 The method of this embodiment specifically includes the following steps:
[0104] Step 1: Obtain the historical prediction error data set of new energy output and load power in the electric-gas integrated energy system, and delete abnormal samples in the historical prediction error data set;
[0105] In this embodiment, the historical prediction error data set obtained is:
[0106] U=[u1,u2,…,u N ] T
[0107] Among them, U is the historical forecast error data set, u1, u2, ..., u N are the 1st, 2nd, ..., Nth historical samples in the historical prediction error data set U, N is the total number of historical samples, each historical sample is M-dimensional data, and M is the total number of uncertainty variables of new energy output and load power.
[0108] The output and load power of new energy sources in the electric-gas integrated energy system are volatile and intermittent, so a large amount of historical prediction error data needs to be input as the basis for constructing the uncertainty set for robust optimization. If there are abnormal samples in the historical prediction error data, the robust optimization result will lose its optimality. Therefore, this embodiment uses Hotelling T 2 Statistics are used as criteria to delete abnormal samples.
[0109] Deleting abnormal samples from the historical prediction error dataset includes the following steps:
[0110] Step ①: Perform zero-mean processing on the historical prediction error data set to obtain the zero-mean matrix of the historical prediction error;
[0111] In this embodiment, the zero mean processing is:
[0112]
[0113] in, is the zero-mean matrix of historical forecast errors, 1 N is a column vector with all elements equal to 1, is the historical sample mean, are the 1st, 2nd, …, Nth historical samples after zero mean processing.
[0114] Step ②: Obtain the historical forecast error covariance matrix based on the historical forecast error zero-mean matrix;
[0115] In this embodiment, the historical prediction error covariance matrix is:
[0116]
[0117] Where S is the historical forecast error covariance matrix.
[0118] Step ③: Perform eigenvalue decomposition on the historical forecast error covariance matrix to obtain the eigenvector and eigenvalue of the historical forecast error;
[0119] In this embodiment, the historical prediction error covariance matrix is subjected to eigenvalue decomposition as follows:
[0120] S = [p1, p2, ..., p M ]diag{λ1,λ2,…,λM}[p1, p2, …, p M ] T
[0121] Among them, p1, p2, ..., p M are the 1st, 2nd, …, Mth historical forecast error feature vectors, λ1, λ2, …, λ M are the 1st, 2nd, ..., Mth historical prediction error feature vectors p1, p2, ..., p M The corresponding eigenvalues, eigenvectors and eigenvalues of each historical prediction error are all M-dimensional data.
[0122] Step ④: Based on the historical forecast error eigenvector and eigenvalue, calculate the Hotelling T of each historical sample in the historical forecast error dataset. 2 Statistics;
[0123] In this example, Hotelling T of the historical sample 2 The calculation formula of the statistic is:
[0124]
[0125] in, is the Hotelling T of the jth historical sample 2 Statistics, is the jth historical sample after zero mean processing.
[0126] Step 5: Determine Hotelling T 2 Historical samples whose statistics are greater than the first preset threshold are abnormal samples and are deleted from the historical prediction error data set.
[0127] In this embodiment, the first preset threshold is set to a 0.05 , i.e. Hotelling T 2 The 0.05 upper quantile of the statistic, if Then the jth historical sample is judged as an abnormal sample.
[0128] Step 2: Use the principal component analysis method to determine the direction of the principal component vector of the historical forecast error data set, and construct the initial box uncertainty set of the forecast error based on the direction of the principal component vector;
[0129] When constructing uncertainty sets, the box method or ellipsoid method is generally used. The box uncertainty set does not consider the correlation between uncertain variables, and often contains a large number of scenarios that are impossible to appear in reality, resulting in overly conservative optimization results; the ellipsoid uncertainty set often requires the assumption that the uncertainty variables are independent and symmetrically distributed, and is not widely used. Therefore, this embodiment uses the principal component analysis method to construct the prediction error initial box uncertainty set that takes into account the correlation and distribution information between uncertainty variables, reduces impossible scenarios, and reduces the conservatism of the decision process.
[0130] The principal component analysis method is used to determine the direction of the principal component vector of the historical forecast error data set, and the initial box uncertainty set of the forecast error is constructed according to the direction of the principal component vector, which includes the following steps:
[0131] Step a: define the direction of the historical prediction error feature vector as the direction of the principal component vector;
[0132] Step b: Project each historical sample that has been processed by zero mean in the historical prediction error zero mean matrix to the direction of each principal component vector, and define the points corresponding to the maximum and minimum values of the projection in the direction of each principal component vector as the two endpoints of the principal component vector;
[0133] In this embodiment, the projection formula for projecting each historical sample that has been processed by zero mean in the historical prediction error zero mean matrix to the direction of each principal component vector is:
[0134]
[0135] Among them, p k is the kth historical forecast error eigenvector, that is, the kth principal component vector, is the projection of the j-th historical sample after zero mean processing to the direction of the k-th principal component vector.
[0136] The two endpoints of the principal component vector are:
[0137]
[0138] in, are the two endpoints of the kth principal component vector, i.e., the zero-mean matrix of the historical forecast error The N historical samples that have been processed by zero mean are projected to the spatial coordinates corresponding to the maximum and minimum points in the N projections obtained by the direction of the kth principal component vector. is the projection of the 1st, 2nd, ..., Nth historical samples after zero mean processing to the direction of the kth principal component vector.
[0139] Step c: For each principal component vector, two planes perpendicular to it are generated through its two endpoints respectively, and the zero-mean spatial uncertainty set surrounded by each plane is obtained;
[0140] In this embodiment, two planes perpendicular to the principal component vector generated by two endpoints thereof are:
[0141]
[0142] in, It is the zero-mean spatial prediction error uncertainty variable of renewable energy output and load power.
[0143] The zero-mean spatial uncertainty set enclosed by each plane is:
[0144]
[0145] in, is the zero-mean spatial uncertainty set enclosed by each plane, are the two endpoints of the first principal component vector, are the two endpoints of the Mth principal component vector, A PCA for The coefficient matrix of for A constant vector of
[0146] Step d: Convert the zero-mean spatial uncertainty set enclosed by each plane from the zero-mean space to the original space to obtain the initial box uncertainty set of the prediction error.
[0147] In this embodiment, by The zero-mean spatial uncertainty set enclosed by each plane is converted from the zero-mean space to the original space to obtain the initial box uncertainty set of the prediction error.
[0148] The initial box uncertainty set of prediction error is:
[0149]
[0150] Among them, U PCA is the initial box uncertainty set of the prediction error, u is the vector of uncertainty variables of the prediction error of the new energy output and load power, b PCA For U PCA A constant vector of
[0151] The initial box uncertainty set of the prediction error constructed in this embodiment includes all historical samples. In addition, unlike the traditional box uncertainty set, in this embodiment, the endpoints are not set on the original coordinate system, but the new principal component vector coordinate system is determined by principal component analysis, and the endpoints are set on the new principal component vector coordinate system. The advantage of this method is that the determination process of the principal component vector coordinate system fully takes into account the correlation between the prediction error uncertainty variables in a data-driven manner, thereby greatly reducing the impossible scenarios in the uncertainty set.
[0152] Step 3: Use the cutting plane method to tighten the initial box uncertainty set of the prediction error and obtain the optimal polyhedral uncertainty set of the prediction error;
[0153] The initial box uncertainty set of prediction error constructed by principal component analysis still has certain impossible scenarios. Therefore, this embodiment uses the cutting plane method to cut the initial box uncertainty set of prediction error to further tighten it, and then obtain the optimal polyhedron uncertainty set of prediction error.
[0154] Using the cutting plane method to tighten the initial box uncertainty set of the prediction error and obtain the optimal polyhedral uncertainty set of the prediction error includes the following steps:
[0155] Step A: Randomly select one endpoint from the two endpoints of each principal component vector to form an endpoint combination, and determine the initial cutting plane based on each endpoint combination;
[0156] In this embodiment, there are M principal component vectors in total. One endpoint is randomly selected from the two endpoints of each principal component vector to form an endpoint combination, which can form a total of 2 M endpoint combination.
[0157] The endpoint combinations are:
[0158]
[0159] Among them, V 1 For the first endpoint combination, For the 2nd M endpoint combination.
[0160] Each endpoint combination corresponds to an initial cutting plane, and each initial cutting plane passes through all the endpoints in its corresponding endpoint combination.
[0161] Let the M-dimensional normal vector of the h-th initial cutting plane be make but:
[0162]
[0163] in, It is the vector formed by connecting the Mth endpoint and the 1st, 2nd, …, M-1th endpoints in the endpoint combination corresponding to the hth initial cutting plane. The M-dimensional normal vector of the hth initial cutting plane is perpendicular to the vector formed by connecting any two of the M endpoints on the hth initial cutting plane.
[0164] The zero-mean spatial uncertainty set enclosed by each initial cutting plane is:
[0165]
[0166] in, is the zero-mean spatial uncertainty set enclosed by each initial cutting plane, f 1 is the M-dimensional normal vector of the first initial cutting plane, For the 2nd M The M-dimensional normal vector of the initial cutting plane, A Cut for The coefficient matrix of for A constant vector of
[0167] Step B: translating each initial cutting plane to obtain a zero-mean spatial uncertainty set surrounded by each translated cutting plane;
[0168] In this embodiment, when translating each initial cutting plane, the optimization problem for determining the translation degree of each initial cutting plane is:
[0169]
[0170] in, A Cut The h-th row, i.e., the M-dimensional normal vector f of the h-th initial cutting plane h , for The hth element of is the point of the historical sample farthest from the hth initial cutting plane, ξ h for The distance to the h-th initial cutting plane.
[0171] In this embodiment, when the optimization problem for determining the translation degree of each initial cutting plane has no solution, let is a 0 vector.
[0172] According to the optimization problem used to determine the degree of translation of each initial cutting plane, the spatial coordinates of the point where the historical sample is farthest from each initial cutting plane are calculated, and each initial cutting plane is translated so that the translated cutting plane passes through the point where the historical sample is farthest from its initial cutting plane.
[0173] The cutting plane after translation is:
[0174]
[0175] Step C: Convert the zero-mean spatial uncertainty set enclosed by the translated cutting planes from the zero-mean space to the original space, and take the intersection with the initial box uncertainty set of the prediction error to obtain the optimal polyhedral uncertainty set of the prediction error.
[0176] In this embodiment, the zero-mean spatial uncertainty set enclosed by the translated cutting planes is:
[0177]
[0178] in, is the zero-mean spatial uncertainty set enclosed by the translated cutting planes, e is a vector whose elements are all 1, χ is a sign vector, and when the optimization problem for determining the translation degree of each initial cutting plane has a feasible solution and the h-th initial cutting plane needs to be translated, the h-th element of ∑ is 1, otherwise the h-th element of χ is 0. is the constant vector of the zero-mean uncertainty set formed when all cutting planes pass through the point of the historical sample farthest from their initial cutting planes, is the point of the historical sample farthest from the first initial cutting plane, Distance 2 M The point where the furthest historical sample from the initial cutting plane is located. for A constant vector of
[0179] pass The zero-mean spatial uncertainty set enclosed by the translated cutting planes is converted from the zero-mean space to the original space to obtain the uncertainty set enclosed by the translated cutting planes.
[0180] The uncertain set enclosed by the translated cutting planes is:
[0181]
[0182] Among them, U Cut is the uncertainty set enclosed by the translated cutting planes, b cut For U Cut A constant vector of
[0183] The optimal polyhedral uncertainty set of the prediction error is obtained by taking the intersection of the uncertainty set enclosed by the translated cutting planes and the initial box uncertainty set of the prediction error.
[0184] The optimal polyhedron uncertainty set for prediction error is:
[0185] U PCA+Cut =U PcA ∩U Cut ={u|A PCA+Cut u≤b PCA+Cut}
[0186] Among them, U PCA+Cut is the optimal polyhedron uncertainty set for prediction error, A PCA+Cut For U PCA+Cut The coefficient matrix, A PCA+cut =[A PCA ; A Cut ], b PCA+Cut For UPCA+Cut The constant vector, b PCA+Cut =[b PCA ; b Cut ].
[0187] Step 4: Based on the optimal polyhedral uncertainty set of prediction error, a day-ahead optimization scheduling model is constructed, and the column and constraint generation algorithm is used to solve the day-ahead optimization scheduling model to obtain the day-ahead optimization scheduling plan for the electricity-gas integrated energy system.
[0188] Different types of decision variables in the electric-gas integrated energy system have different time scales, constraints, and flexible adjustment capabilities, and require differentiated processing methods. Therefore, this embodiment constructs the day-ahead optimization scheduling model of the electric-gas integrated energy system into a two-stage robust optimization model based on the optimal polyhedron uncertainty set of the prediction error, so as to optimize and solve different types of decision variables in each stage. Among them, the first stage optimizes the long-time scale variables that need to be determined on the day, such as the start-stop plan and benchmark power of the generator set, the charging and discharging state and benchmark power of the energy storage system, and the second stage optimizes the short-time scale flexible variables used to deal with the prediction error (such as the power adjustment amount of the generator and energy storage, etc.).
[0189] In this embodiment, the constraints of the day-ahead optimization scheduling model include:
[0190] (1) Unit start and stop constraints:
[0191]
[0192] in, is the startup and shutdown duration of unit i in period t-1, is the minimum startup and shutdown duration of unit i, I it is the state of unit i in period t, I it =1 means that the status of unit i in period t is on, I it =0 means that the status of unit i in period t is shutdown, I i(t-1) is the state of unit i in period t-1, is the startup and shutdown 0-1 variable of unit i in period t. If unit i starts in period t, then and If unit i is shut down during period t, then and otherwise and
[0193] (2) Unit output constraints taking into account system reserve requirements:
[0194]
[0195] Among them, P it is the power output of unit i in period t when the source-load prediction error is not considered, P imin , P imax is the minimum and maximum power output of unit i, It is the downward and upward reserve capacity that unit i can provide during period t.
[0196] (3) System upward and downward adjustment of total reserve capacity constraints:
[0197]
[0198] Among them, R + , R - The minimum upward and downward total reserve capacity required by the system.
[0199] (4) Unit climbing constraints:
[0200]
[0201] Among them, DR i , UR i is the maximum downward and upward climbing power of unit i, P i(t-1) is the power output of unit i in period t-1 when the source-load prediction error is not considered, is the power increase or decrease made by unit i in time period t to cope with the source load prediction error, It is the power increase or decrease made by unit i in period t-1 to cope with the source load prediction error.
[0202] (5) Power balance constraints:
[0203]
[0204] in, is the predicted power of the new energy power station w and the load at the system node b during period t, ΔW wt , ΔL bt is the power prediction error of the new energy power station w and the load at the system node b during period t, It is the abandoned power of the new energy power station w and the load shedding power at the system node b during period t.
[0205] (6) Line transmission power constraints:
[0206]
[0207] Among them, k lb is the power transfer factor of system node b with respect to line l, f lmaxis the maximum transmission power of line l, i∈b, w∈b means that unit i and new energy power station w are connected to system node b to access the power system.
[0208] (7) Upper and lower correction power constraints:
[0209]
[0210] (8) Constraints on abandoned power and load shedding power of new energy sources:
[0211]
[0212] (9) Natural gas well production constraints:
[0213] G gmin ≤G gt ≤G gmax
[0214] Among them, G gt is the gas production flow rate of gas well g in period t, G gmin , G gmax are the lower and upper limits of the gas production flow rate of gas well g.
[0215] (10) Gas network node pressure constraints:
[0216] π mmin ≤π mt ≤π mmax
[0217] Among them, π mt is the gas pressure of natural gas network node m at time t, π mmin , π mmax are the lower and upper limits of gas pressure at natural gas network node m.
[0218] (11) Natural gas balance constraints:
[0219]
[0220] Among them, q mnt is the gas flow rate of the pipeline between nodes m and n in the natural gas network during period t, is the gas load of natural gas network node n in period t, F i (P it ) is the output of unit i, P it HHV is the calorific value of natural gas, g∈n means that gas well g is connected to natural gas network node n, s(mn)∈n and r(mn)∈n mean that the sending end and receiving end of the pipeline between natural gas network nodes m and n are natural gas network node n, i∈gu&i∈n means that unit i is a gas turbine and unit i serves as the load of natural gas network node n.
[0221] (12) Natural gas pipeline flow constraints:
[0222]
[0223] Among them, π nt is the gas pressure of natural gas network node n in period t, S ij is the pipeline constant, is the minimum and maximum gas flow of the pipeline between nodes m and n in the natural gas network, and sgn(·) is a sign function with a value of 1 or -1.
[0224] (13) Uncertainty variable constraints on new energy output and load power forecast error:
[0225] A PCA+Cut u≤b PCA+Cut
[0226] Among them, u is the vector of uncertainty variables of forecast error of new energy output and load power, u=[ΔW wt , ΔL bt ], A PCA+Cut For U PCA+Cut The coefficient matrix of PCA+Cut For U PCA+Cut The constant vector, U PCA+Cut is the optimal polyhedral uncertainty set for prediction error.
[0227] The objective function of the day-ahead optimization scheduling model is:
[0228]
[0229] in, is the unit cost of fuel used by unit i, SU i , SD i is the startup and shutdown cost of unit i, Provide upper and lower standby prices for unit i, is the unit regulation cost of increasing or decreasing the power of unit i, C w , C l is the penalty cost per unit of renewable energy abandonment and per unit of load shedding, u is the vector of uncertainty variables of forecast error of renewable energy output and load power, x is the set of decision variables in the first stage, I it is the state of unit i in period t, is the startup and shutdown 0-1 variable of unit i in period t, P it is the power output of unit i in period t when the source-load prediction error is not considered, G is the reserve capacity that unit i can provide during period t. gtis the gas production flow rate of gas well g in period t, q mnt is the gas flow rate of the pipeline between natural gas network nodes m and n in period t, π mt is the gas pressure of natural gas network node m in period t, y is the set of decision variables in the second stage, is the power increase or decrease made by unit i in time period t to cope with the source load prediction error, It is the abandoned power of the new energy power station w and the load shedding power at the system node b during period t.
[0230] The column and constraint generation algorithm is used to solve the day-ahead optimal dispatch model and obtain the day-ahead optimal dispatch plan for the electricity-gas integrated energy system, which includes the following steps:
[0231] Step I: Write the objective function and constraints of the day-ahead optimization scheduling model into a general form;
[0232] The general form is:
[0233]
[0234] Among them, x is the set of decision variables in the first stage, y is the set of decision variables in the second stage, u is the vector of uncertainty variables of prediction error of new energy output and load power, c is the vector of coefficients related to x in the objective function, q is the vector of coefficients related to y in the objective function, Q is the matrix of coefficients of x in the constraint conditions related only to x, d is the constant vector in the constraint conditions related only to x, W, F, Y are the matrices of coefficients of x, y, u in the constraint conditions related to at least two of x, y, u, H is the constant vector in the constraint conditions related to at least two of x, y, u, A PCA+Cut For U PCA+Cut The coefficient matrix of PCA+cut For U PCA+cut The constant vector, U PCA+Cut is the optimal polyhedral uncertainty set for prediction error.
[0235] For each given set of prediction error uncertainty variables, the general form can be simplified into a deterministic optimization model, and the max structure is set in the objective function to find the prediction error uncertainty variable that leads to the maximum operating cost, that is, the worst scenario.
[0236] Step II: Decompose the general form into main problem and sub-problems using column and constraint generation algorithms;
[0237] The sub-problems are:
[0238]
[0239] The main question is:
[0240]
[0241] Among them, η is an auxiliary variable, y τ is the set of second-stage decision variables obtained when solving the τth iteration, τ max is the maximum number of iterations, u τ It is a vector consisting of the uncertainty variables of the prediction error of the new energy output and load power obtained during the τth iteration.
[0242] Step III: Iteratively solve the sub-problems and the main problem, and update the upper and lower bounds of the objective function;
[0243] Iteratively solving subproblems and main problems and updating the upper and lower bounds of the objective function include the following steps:
[0244] Step i: Use the dual transformation technique to transform the inner min problem of the subproblem into a max problem to obtain the transformed subproblem;
[0245] The subproblem is a two-level optimization problem of a max-min structure and cannot be solved directly. Therefore, this embodiment uses a dual transformation technique to transform the inner min problem of the subproblem into its dual problem (max problem).
[0246] The transformed sub-problem is:
[0247]
[0248] where π is the dual variable associated with the constraint Wy≥H-Fx-Yu.
[0249] Step ii: Iteratively solve the transformed sub-problems and update the upper bound of the objective function;
[0250] The upper bound of the updated objective function is:
[0251] UB τ+1 =min(UB τ , c T x τ+1 +q T y τ+1 )
[0252] Among them, UB τ is the upper bound of the objective function updated during the τth iteration, UB τ+1 is the upper bound of the objective function updated during the τ+1th iteration, x τ+1 is the set of first-stage decision variables obtained when solving the τ+1th iteration, y τ+1 It is the set of second-stage decision variables obtained during the τ+1th iteration.
[0253] Step iii: Iteratively solve the main problem and update the lower bound of the objective function.
[0254] The lower bound of the updated objective function is:
[0255] LB τ+1 =c T x τ+1 +η τ+1
[0256] Among them, LB τ+1 is the lower bound of the objective function updated during the τ+1th iteration, η τ+1 It is the auxiliary variable used in solving the τ+1th iteration.
[0257] Step IV: until the difference between the upper and lower bounds of the objective function is reduced to a second preset threshold, the day-ahead optimal scheduling plan for the electricity-gas integrated energy system is obtained.
[0258] In this embodiment, see Figure 2 , using the column and constraint generation algorithm to solve the day-ahead optimal scheduling model, and obtaining the day-ahead optimal scheduling plan for the electricity-gas integrated energy system includes the following specific steps:
[0259] S1: Initialize the upper bound UB0 of the objective function = +∞, initialize the lower bound LB0 of the objective function = -∞, initialize the number of iterations τ = 0, and set the second preset threshold coefficient ε = 0.01;
[0260] S2: In the τth iteration, solve the main problem to obtain x τ+1 and η τ+1 , the lower bound of the updated objective function is: LB τ+1 =c T x τ+1 +η τ+1 , when τ=0, since the subproblem has not been solved yet, there is no optimization result for y. At this time, to solve the main problem, all constraints on y need to be deleted, and the auxiliary variable η1 in the first iteration solution should be set to 0;
[0261] S3: In the τth iteration, solve the subproblem to obtain u τ+1 and τ+1 , the upper bound of the updated objective function is: UB τ+1 =min(UB τ , c T x τ+1 +q T y τ+1 );
[0262] S4: If |UB τ+1 -LB τ+1 |≤ε·UB τ+1, then the iteration terminates, and the current x τ+1 That is, the day-ahead optimal dispatching scheme of the electricity-gas integrated energy system; otherwise, according to the y obtained in this iteration τ+1 and u τ+1 , construct a new constraint η≥q T y τ+1 and Fx+Wy τ+1 ≥H-Yu τ+1 , and add it to the main problem, set τ = τ + 1, and return to S2 to continue iterating.
[0263] Since the optimal polyhedron uncertainty set of the prediction error basically covers all historical error scenarios in a relatively "tight" manner, and the climbing constraints after the adjustment of the generator and energy storage power are taken into account during the second-stage optimization, the day-ahead optimization scheduling plan for the electricity-gas integrated energy system obtained by the day-ahead optimization scheduling model provided in this embodiment can cope with various prediction errors occurring during the intraday operation on the second day, that is, the day-ahead optimization scheduling plan for the electricity-gas integrated energy system obtained by the day-ahead optimization scheduling model provided in this embodiment is adaptive.
[0264] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A day-ahead optimization scheduling method for an electricity-gas integrated energy system. It is characterized in that include: Obtain a historical prediction error data set of new energy output and load power in the electric-gas integrated energy system, and delete abnormal samples in the historical prediction error data set; Determine the direction of the principal component vector of the historical forecast error data set by using the principal component analysis method, and construct an initial box uncertainty set of the forecast error according to the direction of the principal component vector; Using a cutting plane method to tighten the initial box uncertainty set of the prediction error, and obtaining an optimal polyhedral uncertainty set of the prediction error; According to the forecast error optimal polyhedron uncertainty set, a day-ahead optimization scheduling model is constructed, and the day-ahead optimization scheduling model is solved by using a column and constraint generation algorithm to obtain a day-ahead optimization scheduling plan for the electricity-gas integrated energy system; Deleting abnormal samples in the historical prediction error data set includes: Performing zero-mean processing on the historical prediction error data set to obtain a zero-mean matrix of historical prediction errors; Obtaining a historical prediction error covariance matrix according to the historical prediction error zero-mean matrix; Performing eigenvalue decomposition on the historical forecast error covariance matrix to obtain the historical forecast error eigenvector and eigenvalue; According to the historical prediction error eigenvector and eigenvalue, the Hotelling coefficient of each historical sample in the historical prediction error data set is calculated and obtained. Statistics; Hotelling Historical samples whose statistics are greater than a first preset threshold are abnormal samples, and are deleted from the historical prediction error data set; Determining the direction of the principal component vector of the historical forecast error data set by the principal component analysis method, and constructing the initial box uncertainty set of the forecast error according to the direction of the principal component vector includes: Define the direction of the historical prediction error characteristic vector as the direction of the principal component vector; Projecting each historical sample that has been processed by zero mean in the historical prediction error zero mean matrix to the direction of each principal component vector, and defining the points corresponding to the maximum and minimum values of the projection in the direction of each principal component vector as the two endpoints of the principal component vector; For each principal component vector, two planes perpendicular to it are generated through its two endpoints respectively, and a zero-mean spatial uncertainty set enclosed by each of the planes is obtained; Convert the zero-mean spatial uncertainty set enclosed by the planes from the zero-mean space to the original space to obtain an initial box uncertainty set of the prediction error; The cutting plane method is used to tighten the initial box uncertainty set of the prediction error, and the optimal polyhedral uncertainty set of the prediction error is obtained, which includes: Randomly select one endpoint from the two endpoints of each principal component vector to form an endpoint combination, and determine an initial cutting plane according to each endpoint combination; Translating each of the initial cutting planes to obtain a zero-mean spatial uncertainty set surrounded by each of the translated cutting planes; The zero-mean spatial uncertainty set enclosed by the translated cutting planes is converted from the zero-mean space to the original space, and the intersection is taken with the initial box uncertainty set of the prediction error to obtain the optimal polyhedral uncertainty set of the prediction error; Each endpoint combination corresponds to an initial cutting plane, and each initial cutting plane passes through all endpoints in its corresponding endpoint combination; the translated cutting plane passes through the point where the historical sample is farthest from its initial cutting plane; The constraints of the day-ahead optimization scheduling model include: Unit start and stop constraints: ; in, , For the crew exist The duration of power on and off during the time period, , For the crew The minimum startup and shutdown duration, For the crew exist The status of the time period, Indicates the unit exist The status of the time period is on. Indicates the unit exist The status of the time period is shutdown. For the crew exist The status of the time period, , For the crew exist Start and stop 0-1 variables of the time period, if the unit exist If the time period starts, and , if the unit exist If a shutdown occurs during a period, and ,otherwise and ; Unit output constraints taking into account system reserve requirements: ; in, When the source load prediction error is not considered exist The power output during the period, , For the crew The minimum and maximum power output, , For the crew exist The downward and upward reserve capacity that can be provided during the period; System upward and downward adjustment of total reserve capacity constraints: ; in, , The minimum up- and down-regulation total reserve capacity required by the system; Unit climbing constraints: ; in, , For the crew The maximum downward and upward climbing power, When the source load prediction error is not considered exist The power output during the period, , For the crew exist The power is adjusted up or down during the period to deal with the source load prediction error. , For the crew exist The power is adjusted up or down during the period to cope with the source load prediction error; Power balance constraints: ; in, , for Time period new energy power station , system node The predicted power of the load at , for Time period new energy power station , system node The power prediction error of the load at , for Time period new energy power station The abandoned power and system nodes Load shedding power; Line transmission power constraints: ; in, For system nodes About the route The power transfer factor, For Line The maximum transmission power, , Indicates the unit , New energy power station With system node Connect to access the power system; Upper and lower correction power constraints: ; Constraints on abandoned power and load shedding power of new energy sources: ; Natural gas well production constraints: ; in, For gas wells exist The gas flow rate during the period, , For gas wells The lower and upper limits of gas production flow rate; Gas network node gas pressure constraints: ; in, For natural gas network nodes exist The air pressure during the period, , For natural gas network nodes The lower and upper limits of air pressure; Natural gas balance constraints: ; in, For natural gas network nodes , The pipes between The air flow rate during the period, For natural gas network nodes exist Gas load during the period, For the crew Output The fuel calories consumed is the calorific value of natural gas, Indicates gas well Connecting gas network nodes , , Represents a natural gas network node , The sending and receiving ends of the pipeline between them are gas network nodes , Indicates the unit For gas turbine and unit As a natural gas network node Load; Natural gas pipeline flow constraints: ; in, For natural gas network nodes exist The air pressure during the period, is the pipeline constant, , For natural gas network nodes , The minimum and maximum gas flow rates of the pipeline between is a sign function with a value of 1 or -1; Uncertainty variable constraints on new energy output and load power forecast error: ; in, is a vector of uncertainty variables of the forecast error of renewable energy output and load power, , for The coefficient matrix of for A constant vector of is the optimal polyhedron uncertainty set for prediction error; The objective function of the day-ahead optimization scheduling model is: ; in, For the crew The unit cost of the fuel used, , For the crew Start-up and shutdown costs, , For the crew Provide upper and lower spare prices, , For the crew The unit adjustment cost of adjusting power up and down, , The penalty cost per unit of new energy disposal and per unit of load shedding is is a vector of uncertainty variables of the forecast error of renewable energy output and load power, is the set of decision variables in the first stage, , For the crew exist The status of the time period, , For the crew exist The start and stop 0-1 variables of the time period, When the source load prediction error is not considered exist The power output during the period, , For the crew exist The downward and upward reserve capacity that can be provided during the period, For gas wells exist The gas flow rate during the period, For natural gas network nodes , The pipes between The air flow rate during the period, For natural gas network nodes exist The air pressure during the period, is the set of decision variables in the second stage, , , For the crew exist The power is adjusted up or down during the period to deal with the source load prediction error. , for Time period new energy power station The abandoned power and system nodes Load shedding power.
2. The day-ahead optimization scheduling method for the electricity-gas integrated energy system according to claim 1, It is characterized in that The column and constraint generation algorithm is used to solve the day-ahead optimization scheduling model to obtain the day-ahead optimization scheduling plan for the electricity-gas integrated energy system, including: The objective function and constraints of the day-ahead optimization scheduling model are written in a general form; Decomposing the general form into a main problem and subproblems using a column and constraint generation algorithm; Iteratively solving the subproblems and the main problem, and updating the upper and lower bounds of the objective function; Until the difference between the upper and lower bounds of the objective function is reduced to a second preset threshold, the day-ahead optimal scheduling plan for the electricity-gas integrated energy system is obtained.
3. The day-ahead optimization scheduling method for the electricity-gas integrated energy system according to claim 2, It is characterized in that The general form is: ; in, is the set of decision variables in the first stage, is the set of decision variables in the second stage, is a vector of uncertainty variables of the forecast error of renewable energy output and load power, is the objective function with The vector of related coefficients, is the objective function with The vector of related coefficients, For only The relevant constraints The matrix of coefficients of For only The constant vector in the relevant constraints, , , For , , At least two of the relevant constraints , , The matrix of coefficients of For , , A constant vector in at least two related constraints, for The coefficient matrix of for A constant vector of is the optimal polyhedron uncertainty set for prediction error; The sub-problems are: ; The main problem is: ; in, is an auxiliary variable, For the The set of second-stage decision variables obtained during the iteration solution is: is the maximum number of iterations, For the The vector of uncertainty variables of the forecast error of the new energy output and load power obtained during the first iteration solution.
4. The day-ahead optimization scheduling method for the electricity-gas integrated energy system according to claim 2, It is characterized in that Iteratively solving the subproblems and the main problem and updating the upper and lower bounds of the objective function include: Using the dual transformation technique, the inner layer of the sub-problem The problem is transformed into Problem, get the transformed sub-problem; Iteratively solving the transformed sub-problems and updating the upper bound of the objective function; Iteratively solving the master problem and updating the lower bound of the objective function; Among them, the upper bound of the objective function is updated as: ; in, For the The upper bound of the objective function updated during the iteration, For the The upper bound of the objective function updated during the iteration, For the The first-stage decision variable set obtained during the iteration solution is For the The set of second-stage decision variables obtained during the first iteration; Update the lower bound of the objective function to: ; in, For the The lower bound of the objective function updated during the iteration, For the Auxiliary variables for the iterative solution.
5. The day-ahead optimization scheduling method for the electricity-gas integrated energy system according to claim 4, It is characterized in that The transformed sub-problem is: ; in, For and Constraints Associated dual variables.
