Comprehensive energy system probability energy flow online calculation method based on multi-parameter planning
By expressing the new energy output of the integrated energy system as a multi-parameter planning problem, dividing the parameter space into critical domains, and directly calculating the optimal energy flow of the system, the problem of low computational efficiency in the existing technology is solved, and rapid solution and efficient calculation are achieved. effect.
Patent Information
- Application Number
- CN202410653015.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-23
AI Technical Summary
The existing probabilistic energy flow calculation method for integrated energy systems has a complicated calculation process, resulting in low calculation efficiency, unable to quickly solve the optimization problem of renewable energy, and affecting the economic and stable operation of the system.
An online calculation method of probabilistic energy flow in comprehensive energy systems based on multi-parameter planning is adopted. By expressing the new energy output as a multi-parameter planning problem, dividing the parameter space into a critical domain, and using optimal segmentation and KKT condition rewriting, the optimal performance of the system is directly calculated. flow to avoid repeated solutions.
It effectively reduces the amount of calculation, shortens the calculation time, improves the calculation efficiency, can quickly solve the probabilistic energy flow of the system, and supports the rapid consumption of renewable energy and the economic operation of the system.
Smart Images

Figure CN118536831A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optimized operation of integrated energy systems, and more specifically, to an online calculation method for probabilistic energy flow of integrated energy systems based on multi-parameter planning. Background Art
[0002] With the proposal of energy conservation and emission reduction, a higher proportion of renewable energy is further connected to the power grid, and its uncertainty has brought a huge impact on the economic and stable operation of the power grid. In recent years, with the rapid development of various energy conversion equipment, the single energy system is gradually transforming into an integrated energy system. The coordinated operation of various energy subsystems in the integrated energy system can enhance the flexibility and sustainability of the system, promote the consumption of renewable energy, and realize green economic operation. In addition, the medium- and long-term forecast demand for hydrogen energy is increasing, and hydrogen energy is becoming an important part of the energy system and an important support for achieving energy conservation and emission reduction. Therefore, it is of great significance to quickly solve the probabilistic energy flow model of the hydrogen-containing integrated energy system considering the uncertainty of renewable energy. The calculation process of the existing probabilistic energy flow calculation method of the integrated energy system is relatively complicated. For any output value of renewable energy, it is basically necessary to re-solve the optimization problem to obtain the optimal solution of the system. Therefore, the solution process is time-consuming and the calculation efficiency is low, which is not conducive to the rapid consumption of renewable energy and the economic operation of the system. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide an online calculation method for the probabilistic energy flow of an integrated energy system based on multi-parameter planning, which can directly solve the probabilistic energy flow according to the mapping relationship between parameter variables and system decision variables, effectively reduce the amount of calculation, improve calculation efficiency, and shorten the calculation time.
[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing an online calculation method for probabilistic energy flow of an integrated energy system based on multi-parameter planning, comprising the following steps:
[0005] S1. Considering the uncertainty of new energy output in the hydrogen-electric-thermal integrated energy system, the probabilistic energy flow model of the integrated energy system is expressed as a multi-parameter planning model, and the random new energy output is marked as a parameter variable in the multi-parameter planning problem, and the feasible parameter space of the parameter variable is marked as the area to be explored, which will be divided into multiple critical domains;
[0006] S2, randomly select an initial parameter vector from the area to be explored, solve the optimal energy flow problem corresponding to the initial parameter value, and obtain the optimal solution;
[0007] S3. Perform optimal segmentation according to the optimal solution, divide the constraint set into a valid constraint set and an invalid constraint set, and rewrite the KKT conditions according to the optimal segmentation result;
[0008] S4. According to the rewritten KKT condition, the correlation coefficient matrix and mapping relationship of the critical domain where the initial value is located are obtained;
[0009] S5, mark the critical region where the parameter vector is located as the explored region, and mark the rest of the parameter space as the new region to be explored, check whether the region to be explored is empty, if not, repeat steps S2-S5; if it is empty, it means that the critical region is divided, and go to step S6 to calculate the probabilistic energy flow under the random new energy output online;
[0010] S6. Perform critical domain matching for the random new energy output in the parameter space to determine the critical domain number where the random new energy output is located;
[0011] S7. According to the special mapping relationship stored in the critical domain, the optimal energy flow of the system corresponding to any new energy output vector is directly calculated.
[0012] According to the above scheme, in step S1, the mathematical expression of the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is as follows:
[0013] Its objective function is to minimize the total operating cost, including the power generation cost of thermal power units, the penalty cost of wind power abandonment, the hydrogen consumption cost and the fuel consumption cost of thermal boilers. The expression of the objective function is shown in formula (55), where P i,t represents the power generation of thermal generator i in time period t, a i ,b i ,c i represents the coefficient of the quadratic cost function of thermal generator i, w w represents the wind curtailment penalty coefficient of wind power plant w, represents the amount of wind abandoned by wind power plant w in time period t; ρ hy Indicates the unit price of hydrogen, HD p,t represents the hydrogen load p in time period t, HC k,t represents the hydrogen consumption of hydrogen fuel electromagnetic k in time period t, ρ H Represents the unit price of fossil fuels, HQ q,t represents the heat production of fossil fuel boiler q in time period t, e c It indicates the heat produced by burning each kilogram of fossil fuel;
[0014]
[0015] The constraint expression of the power subsystem is as follows, where: (·) They represent the upper and lower limits of the physical quantity (·), b and l represent the grid nodes and transmission lines, respectively. l ,e lrepresent the starting and terminal nodes of the power transmission line l, respectively; w, i, j represent the wind power plant, thermal power generator, and electric load, respectively; Formulas (56)-(58) limit the output of thermal power units, the capacity of transmission lines, and the amount of wind abandoned, respectively. l,t represents the power flow on the transmission line l during time period t, represents the predicted wind power output of wind farm w in time period t; the upper limit of wind abandonment is the predicted wind power output; Formula (59) represents the power balance constraint of each node, where LD j,t represents the electrical load j in time period t, represents the power generation of hydrogen fuel cell k in time period t; Formula (60) is the line flow constraint based on the tributary flow model, where θ b,t represents the voltage phase angle of node b during time period t, x l represents the reactance of the transmission line l; Equations (61)-(66) represent the spinning reserve constraints of the unit, where r i,t ,rd i,t They represent the upward and downward reserve capacities of thermal generator i in time period t, SRU and SRD represent the upward and downward reserve capacities of the power system, respectively;
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027] The constraint expression of the hydrogen subsystem is as follows, where (·) represent the upper and lower limits of the physical quantity (·), o and p represent the hydrogen source and hydrogen load, n and f represent the hydrogen network node and hydrogen pipeline, k represents the hydrogen fuel cell, and b f ,e frepresent the starting and terminal nodes of the hydrogen pipeline f respectively; Equation (67) represents the material mass balance in the pipeline, where Δt represents the scheduling interval of each time period, represents the mass flow at the start / end node of pipeline f during time period t, d f ,A f ,L f represent the diameter, cross-sectional area and length of the hydrogen pipeline f, respectively. represent the gas pressure at the start / end node of the hydrogen pipeline f in time period t, c hy represents the speed of sound in hydrogen; Equation (68) is the nodal fluid momentum balance equation derived from the Navier-Stokes equation, where ω f represents the hydrogen flow rate in pipe f, λ f represents the friction coefficient of pipeline f; Equation (69) limits the hydrogen production at the hydrogen source node, where H o,t represents the hydrogen production of hydrogen source o in time period t; Equation (70) constrains the mass flow balance at each node; Equation (71) limits the gas pressure at the hydrogen source node to a fixed value, where p o,0 represents the fixed pressure value of the hydrogen source node; Formula (72) limits the pressure of each node, where p n,t represents the gas pressure value of hydrogen network node n in time period t; Equations (75)-(76) limit the mass flow at each node;
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038] The constraint expression of the thermal subsystem is as follows, where (·)denote the upper and lower limits of the physical quantity (·), q denotes a fossil fuel boiler, g, d, h denote a heating network node, a hot water pipe, and a heat load (building), respectively. represents the set of pipes in the water supply network starting at node g. represents the set of pipes in the water supply network with node g as the terminal node, Nd k,q represents the heat source node connected to the hydrogen fuel cell k and boiler q, Nd h represents the heat load node connected to the residential building h; Equation (77) represents the relationship between the water temperature at the heat source node and the boiler heat output, where HH k,t represents the heat generated by the hydrogen fuel cell k in time period t, c represents the specific heat capacity of water, m g represents the mass flow at the heating network node g, represents the water temperature of node g in the water supply / return network in time period t; formula (78) limits the heat output of the boiler, formula (79) constrains the upper and lower limits of the water temperature at the heat source node in the water supply network, and formulas (80)-(81) represent the relationship between the outflow water temperature of each node in the water supply / return network and the mixed hot water temperature flowing into the connected sub-pipeline, where denote the mass flows in the supply and return pipes d, respectively, They represent the water temperature at the outlet of the supply / return pipe d in time period t respectively; Formulas (82)-(83) indicate that the water temperature at the inlet of each pipe in the supply / return network should be equal to the water temperature corresponding to the starting node of the pipe, where represents the water temperature at the inlet of pipe d in the water supply / return network in time period t. Equations (84)-(88) represent the two stages of network loss in the heat transfer process, where They represent the intermediate variables of the water temperature at the outlet of the supply / return pipe d in time period t, denote the hot water transmission time in the supply / return pipe d, ρ denotes the water density, A d ,L d represents the cross-sectional area and length of the hot water pipe d, λ d represents the thermal conductivity of the hot water pipe d, represents the ambient temperature in time period t; Equation (89) represents the heat load of residential buildings, where HB h,t represents the heat load h in time period t; Formula (90) limits the water temperature at the heat load node in the return network to ensure sufficient heating. Formula (91) is the thermal inertia expression of residential buildings after considering the heat storage effect of the building, where τ h,t Indicates the indoor temperature of the heat load building during time period t, C h The heat capacity of the heat load building h, U h represents the thermal conductivity of the heat load building h; Equation (92) limits the indoor temperature of residential buildings to meet the heating demand;
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055] The coupling constraint expressions of the three subsystems are as follows, where η p ,η h They respectively represent the power generation efficiency and heat generation efficiency of the hydrogen fuel cell, equation (93) represents the power generation of the hydrogen fuel cell, equation (94) represents the heat generation of the hydrogen fuel cell, and equation (95) limits the hydrogen consumption of the hydrogen fuel cell.
[0056]
[0057]
[0058]
[0059] According to the above scheme, in step S1, the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is represented as a standard multi-parameter planning model. A standard multi-parameter planning model is in the form of:
[0060]
[0061] Where z is the objective function value. In the integrated energy system proposed in this paper, the objective function is expressed as a linear function of the decision variable f(x)=c T x; Divide the variables in the multi-parameter planning model into parameter variables θ and decision variables x ,In the integrated energy system proposed in this paper, the parameter variable is the wind power output value; A, b, E are the coefficient matrices or vectors of the constraint set.
[0062] According to the above scheme, in step S1, the critical domain where the specific parameter vector is located is defined as follows: for a certain optimal partition, the critical domain is defined as the set of all parameter vectors corresponding to the optimal partition, and the optimal solutions corresponding to all parameter vectors in a critical domain have the same valid constraints and invalid constraint sets, and thus have the same KKT conditions. The critical domain is a convex polyhedron, and the feasible parameter space is divided into the collection of critical domains.
[0063] According to the above scheme, in step S3, the concept of optimal segmentation is as follows:
[0064] According to the optimal solution of the system corresponding to the initial parameter vector, the optimal segmentation is performed to divide the constraint set into a valid constraint set and an invalid constraint set, as shown in equations (97) and (98), respectively:
[0065] A T x * =b T +E T θ0 (97)
[0066] A S x * S +E S θ0 (98)
[0067] Among them, A T ,b T ,E T ,A S ,b S , and E S Represent the corresponding coefficient matrix or vector respectively.
[0068] According to the above scheme, in step S3, the specific steps of rewriting the KKT condition according to the optimal segmentation result are as follows:
[0069] First, the KKT condition of the original multi-parameter planning model (96) is as follows, which consists of the stationary condition, the original feasibility condition, the dual feasibility condition, and the complementary relaxation condition:
[0070]
[0071] According to the valid constraint set and invalid constraint set obtained by optimal segmentation, the KKT condition is rewritten into an equality part and an inequality part, where the equality part is as follows:
[0072]
[0073] The inequality part is as follows:
[0074]
[0075] According to the above scheme, in step S4, the process of obtaining the relationship between the correlation coefficient matrix of the critical region where the initial value of the parameter is located and the linear mapping relationship specifically includes the following steps:
[0076] When the original problem does not degenerate, the decision variable can be derived from the equation part (100) of the KKT condition x and T The mapping relationship x(θ) and λ with the parameter variable θ T (θ), which means they can be expressed as linear functions of the parameter variables. Where x(θ) is expressed as follows:
[0077]
[0078] Formula (102) is the mapping relationship expression corresponding to the critical region where the parameter vector is located. According to the mapping relationship, the corresponding decision variable value can be directly obtained from any parameter vector in the critical region;
[0079] Further, x(θ), λ T Substituting (θ) into the inequality part of the KKT condition, we can get a set of inequalities about the parameter variable θ. The convex polyhedron formed by this set of inequalities is the critical domain where the parameter vector is located. The specific expression is as follows:
[0080]
[0081] And express equation (103) as equation (104):
[0082] G θ θ <F θ (104)
[0083] Formula (104) is the definition formula of the critical region;
[0084] Substituting formula (102) into the objective function expression, we can obtain:
[0085]
[0086] Formula (105) is the mapping expression from the parameter vector to the objective function value corresponding to the critical region.
[0087] When the original problem degenerates, the equation part of the KKT condition constitutes an overdetermined system of equations, and there is no unique solution. At this time, the uniqueness of the solution can be guaranteed by introducing the consistency bond breaking criterion, thereby obtaining the correlation coefficient matrix and mapping relationship of the critical domain where the initial value of the parameter is located.
[0088] According to the above scheme, in step S6, critical domain matching is performed for the random new energy output in the parameter space to determine the critical domain number where the random new energy output is located. The critical domain matching standard is as follows:
[0089]
[0090] According to the above scheme, in step S7, according to the special mapping relationship stored in the critical domain, the formula for online calculating the optimal energy flow and objective function value of the system directly according to any new energy output vector is as follows:
[0091]
[0092]
[0093] According to the above scheme, a linear mapping formula from any new energy output vector to the system decision variable can be obtained. Each critical domain stores a mapping relationship from a parameter variable to a decision variable, and the mapping relationships corresponding to different critical domains are different.
[0094] The implementation of the online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning of the present invention has the following beneficial effects:
[0095] 1. The probabilistic energy flow model of the integrated energy system provided by the present invention is expressed as a multi-parameter planning model, and the output of new energy is marked as a parameter variable in the model to describe the uncertainty in the probabilistic energy flow;
[0096] 2. The online calculation method of probabilistic energy flow of the integrated energy system based on multi-parameter planning provided by the present invention can divide the uncertain new energy output space into multiple critical domains, and the number of critical domains is much smaller than the number of new energy output scenarios;
[0097] 3. The online calculation method of the probabilistic energy flow of the integrated energy system based on multi-parameter planning provided by the present invention directly solves the probabilistic energy flow based on the mapping relationship stored in each critical domain of the parameter space, avoiding the need to re-solve the optimization problem for each different parameter vector, effectively shortening the calculation time and improving the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0099] Figure 1It is a flow chart of the online calculation method of the probabilistic energy flow of the integrated energy system based on multi-parameter planning of the present invention;
[0100] Figure 2 It is a schematic diagram of the overall topology of the hydrogen-electric-thermal integrated energy system of the present invention;
[0101] Figure 3 It is the topological diagram of the 6-6-8 hydrogen electric heating system of the present invention;
[0102] Figure 4 It is a schematic diagram of different mapping relationships between parameter vectors on different critical domains and system optimal decisions after the feasible parameter space is divided into multiple critical domains in the present invention;
[0103] Figure 5 It is a schematic diagram of the nine critical regions into which the parameter space is divided when the present invention is tested in a 6-6-8 hydrogen electric heating system;
[0104] Figure 6 It is a comparative schematic diagram of the output value of the thermal power unit and the abandoned wind volume of the wind power plant in the calculation results of two cases when the 6-6-8 hydrogen electric heating system of the present invention is tested;
[0105] Figure 7 It is a schematic diagram comparing the power transmission line flow values in the calculation results of the two cases when testing in the 6-6-8 hydrogen electric heating system of the present invention;
[0106] Figure 8 It is a comparison chart of the calculation time under two conditions when testing in the 40-118-13 hydrogen electric heating system of the present invention. DETAILED DESCRIPTION
[0107] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0108] Example
[0109] like Figure 1 As shown in FIG. 1 , the online calculation method of the probabilistic energy flow of the integrated energy system based on multi-parameter planning of the present invention was tested in the 6-6-8 hydrogen-electric heating system and the 40-118-13 hydrogen-electric heating system. The topology diagram of the 6-6-8 system is shown in FIG. Figure 2As shown, the system includes six electricity nodes, two thermal generators, two wind power plants, seven power transmission lines, six hydrogen nodes, one hydrogen fuel cell, two hydrogen sources, five hydrogen transmission pipelines, eight thermal nodes, one fossil fuel boiler, five heat transfer pipelines and five residential heat load users. The 40-118-13 system includes one hundred and eighteen electricity nodes, fifty-four thermal generators, two wind power plants, one hundred and eighty-six power transmission lines, forty hydrogen nodes, one hydrogen fuel cell, nine hydrogen sources, thirty-eight hydrogen transmission pipelines, thirteen thermal nodes, two fossil fuel boilers, twelve heat transfer pipelines and eight residential heat load users.
[0110] Two situations are set to illustrate the effectiveness of the present invention:
[0111] The first case: without considering the uncertainty of wind power, the optimal energy flow of the hydrogen electric thermal system under a given wind power output value is solved;
[0112] Second case: According to the online calculation method of the probabilistic energy flow of the integrated energy system based on multi-parameter planning proposed by the present invention, the probabilistic energy flow of the hydrogen electric thermal system is solved when the wind power output is regarded as a random variable.
[0113] like Figure 1 The process shown in the figure, in the 6-6-8 hydrogen-electric heating system and the 40-118-13 hydrogen-electric heating system, the online calculation method of the probabilistic energy flow of the integrated energy system based on multi-parameter planning proposed in the second case specifically includes the following steps:
[0114] S1. Considering the uncertainty of wind power in the hydrogen-electric-thermal integrated energy system, the probabilistic energy flow model of the integrated energy system is expressed as a multi-parameter planning model, and the random wind power output is marked as a parameter variable in the multi-parameter planning problem. The feasible parameter space of the parameter variable is marked as the area to be explored, and the area to be explored will be divided into multiple critical domains;
[0115] The objective function of the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is to minimize the total operating cost, including the power generation cost of the thermal power unit, the penalty cost of wind power abandonment, the hydrogen consumption cost, and the fuel consumption cost of the thermal boiler. The expression of the objective function is as follows:
[0116]
[0117] The mathematical expression of the constraints of the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is as follows:
[0118] The constraint expressions of the power subsystem are as follows, where equations (110)-(112) limit the output of thermal power units, the capacity of transmission lines, and the amount of wind power abandoned, respectively. The upper limit of the amount of wind power abandoned is the predicted output value of wind power. Equation (113) represents the power balance constraint of each node. Equation (114) is the line flow constraint based on the tributary flow model.
[0119] Equations (115)-(120) represent the spinning reserve constraints of the unit.
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131] The constraint expressions of the hydrogen subsystem are as follows, where equation (121) represents the material mass balance in the pipeline, equation (122) is the node fluid momentum balance equation derived from the Navier-Stokes equation, equation (123) limits the hydrogen production at the hydrogen source node, equation (124) constrains the mass flow balance at each node, equation (125) limits the gas pressure at the hydrogen source node to a fixed value, equation (126) limits the gas pressure of each node, and equations (129)-(130) limit the mass flow at each node.
[0132]
[0133]
[0134]
[0135]
[0136]
[0137]
[0138]
[0139]
[0140]
[0141]
[0142] The constraint expressions of the thermal subsystem are as follows: where equation (131) represents the relationship between the water temperature at the heat source node and the heat output of the boiler; equation (132) limits the heat output of the boiler; equation (133) constrains the upper and lower limits of the water temperature at the heat source node in the water supply network; equations (134)-(135) represent the relationship between the outflow water temperature of each node in the water supply / return network and the mixed hot water temperature flowing into the connected sub-pipeline; equations (136)-(137) indicate that the water temperature at the inlet of each pipe in the water supply / return network should be equal to the water temperature corresponding to the starting node of the pipe; equations (138)-(142) represent the two stages of network loss in the heat transfer process; equation (143) represents the heat load of residential buildings; equation (144) limits the water temperature at the heat load node in the return network to ensure sufficient heating; equation (145) is the thermal inertia expression of residential buildings after considering the heat storage effect of the building; and equation (146) limits the indoor temperature of residential buildings to meet the heating demand.
[0143]
[0144]
[0145]
[0146]
[0147]
[0148]
[0149]
[0150]
[0151]
[0152]
[0153]
[0154]
[0155]
[0156]
[0157]
[0158]
[0159] The coupling constraint expressions of the three subsystems are as follows, where equation (147) represents the power generation of the hydrogen fuel cell, equation (148) represents the heat generation of the hydrogen fuel cell, and equation (149) limits the hydrogen consumption of the hydrogen fuel cell.
[0160]
[0161]
[0162]
[0163] The probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is expressed as a standard multi-parameter planning form as follows:
[0164]
[0165] Among them, the variables in the multi-parameter planning model are divided into parameter variables θ and decision variables x z is the objective function value. In the integrated energy system proposed in this paper, the objective function f(x) is expressed as a linear function of the decision variables f(x) = c T x; A, b, E are coefficient matrices or vectors of constraint sets. The random wind power output is marked as parameter variables in the multi-parameter planning problem. The feasible parameter space of the parameter variables is marked as the area to be explored, and the area to be explored will be divided into multiple critical regions.
[0166] S2. Randomly select an initial wind power vector from the area to be explored, solve the optimal energy flow problem corresponding to the initial wind power value, and obtain the optimal solution;
[0167] S3, performing optimal segmentation according to the optimal solution, dividing the constraint set into a valid constraint set and an invalid constraint set, and rewriting the KKT conditions according to the optimal segmentation result;
[0168] The specific steps include:
[0169] S301. According to the optimal solution of the system corresponding to the initial wind power vector, the constraint set can be divided into a valid constraint set and an invalid constraint set, as shown in equation (151) and equation (152), respectively:
[0170] A T x * =b T +E T θ0 (151)
[0171] A S x * S +E S θ0 (152)
[0172] Among them, A T ,b T ,E T ,A S ,b S , and E S Represent the corresponding coefficient matrix or vector respectively.
[0173] For a certain optimal partition, the critical region is defined as the set of all parameter vectors corresponding to the optimal partition. The optimal solutions corresponding to all parameter vectors in a critical region have the same set of valid and invalid constraints, and thus have the same KKT conditions.
[0174] S302: The steps of rewriting the KKT condition according to the optimal segmentation result are as follows:
[0175] First, the KKT condition of the original multi-parameter planning model (150) is as follows, which consists of the stationary condition, the original feasibility condition, the dual feasibility condition, and the complementary relaxation condition:
[0176]
[0177] According to the valid constraint set and invalid constraint set obtained by optimal segmentation, the KKT condition is rewritten into an equality part and an inequality part, where the equality part is as follows:
[0178]
[0179] The inequality part is as follows:
[0180]
[0181] S4. According to the rewritten KKT condition, the correlation coefficient matrix and mapping relationship of the critical domain where the initial value is located are obtained;
[0182] The specific steps include:
[0183] S401. When the original problem does not degenerate, the decision variable can be derived from the equation part (154) of the KKT condition x and T The mapping relationship between x(θ) and λ and the parameter variable θ T (θ), which means they can be expressed as linear functions of the parameter variables. Where x(θ) is expressed as follows:
[0184]
[0185] Formula (156) is the mapping relationship expression corresponding to the critical domain where the parameter vector is located. According to this mapping relationship, the corresponding decision variable value can be directly obtained from any parameter vector in the critical domain;
[0186] Further, x(θ), λ T Substituting (θ) into the inequality part of the KKT condition, we can get a set of inequalities about the parameter variable θ. The convex polyhedron formed by this set of inequalities is the critical domain where the parameter vector is located. The specific expression is as follows:
[0187]
[0188] And express equation (157) as equation (158):
[0189] G θ θ <F θ (158)
[0190] Formula (158) is the definition formula of the critical region;
[0191] Substituting formula (156) into the objective function expression, we can obtain:
[0192]
[0193] Formula (159) is the mapping expression from the parameter vector to the objective function value corresponding to the critical region.
[0194] S402, when the original problem degenerates, the equation part of the KKT condition constitutes an overdetermined system of equations, and there is no unique solution. At this time, the uniqueness of the solution can be guaranteed by introducing the consistency bond breaking criterion, thereby obtaining the correlation coefficient matrix and mapping relationship of the critical domain where the initial value of the parameter is located.
[0195] S5. Mark the critical region where the wind power vector is located as the explored region, and mark the rest of the parameter space as the new region to be explored. Check whether the region to be explored is empty. If it is not empty, repeat S2-S5. If it is empty, it means that the critical region has been divided, and enter S6 to calculate the probabilistic energy flow under random wind power output online.
[0196] S6. Perform critical domain matching for the random wind power output in the parameter space to determine the critical domain number where the random wind power output is located;
[0197] The matching criteria are as follows:
[0198]
[0199] S7. According to the special mapping relationship stored in the critical domain, the optimal energy flow of the system is directly calculated online according to any wind power output vector.
[0200] The calculation formula is as follows:
[0201]
[0202]
[0203] In the 6-6-8 hydrogen-electric heating system, for a specific wind power scenario, the first case requires a complete solution of the optimization problem to obtain the optimal energy flow, while in the second case, the present invention solves the decision variable value online according to the mapping relationship stored in the critical domain. Figure 6 and Figure 7 The thermal power unit output values, wind power plant abandoned wind volume, and line flow calculated for the two cases are compared. According to the calculation, the calculation results of the first case and the second case are exactly the same, which verifies the accuracy of the present invention.
[0204] In the 40-118-13 hydrogen electric heating system, five different wind power output scenarios are selected, and their respective critical domains are found through critical domain matching. For a specific wind power scenario, the first case requires a complete solution of the optimization problem to obtain the optimal energy flow, while in the second case, the present invention solves the decision variable value online according to the mapping relationship stored in the critical domain, which reduces the amount of calculation and greatly shortens the calculation time. Figure 8 The calculation time of the two cases under five wind power scenarios is compared. It can be seen that the calculation time of the second case is much shorter than that of the first case, which verifies the high efficiency of the present invention.
[0205] According to the above analysis, it can be seen that the present invention can shorten the calculation time and improve the calculation efficiency while ensuring the accuracy of the solution.
[0206] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A method for online calculation of probabilistic energy flow of an integrated energy system based on multi-parameter planning, characterized in that: The following steps are involved: S1. Considering the uncertainty of new energy output in the hydrogen-electric-thermal integrated energy system, the probabilistic energy flow model of the integrated energy system is expressed as a multi-parameter planning model, and the random new energy output is marked as a parameter variable in the multi-parameter planning problem, and the feasible parameter space of the parameter variable is marked as the area to be explored, which will be divided into multiple critical domains; S2. Randomly select an initial parameter vector from the area to be explored, solve the optimal energy flow problem corresponding to the initial parameter value, and obtain the optimal solution; S3, performing optimal segmentation according to the optimal solution, dividing the constraint set into a valid constraint set and an invalid constraint set, and rewriting the KKT condition according to the optimal segmentation result; S4. According to the rewritten KKT condition, the correlation coefficient matrix and mapping relationship of the critical domain where the initial value is located are obtained; S5, marking the critical region where the parameter vector is located as the explored region, and marking the remaining part of the parameter space as the new region to be explored, checking whether the region to be explored is empty, if not, repeating steps S2-S5; if it is empty, it means that the critical region is divided, and proceeding to step S6; S6. Perform critical domain matching for the random new energy output in the parameter space to determine the critical domain number where the random new energy output is located; S7. According to the special mapping relationship stored in the critical domain, the optimal energy flow of the system corresponding to any new energy output vector is directly calculated.
2. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S1, the mathematical expression of the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is as follows: Its objective function is to minimize the total operating cost, including the power generation cost of thermal power units, the penalty cost of wind power abandonment, the hydrogen consumption cost and the fuel consumption cost of thermal boilers. The expression of the objective function is shown in formula (1), where P i,t represents the power generation of thermal generator i in time period t, a i ,b i ,c i represents the coefficient of the quadratic cost function of thermal generator i, w w represents the wind curtailment penalty coefficient of wind power plant w, represents the amount of wind abandoned by wind power plant w in time period t; ρ hy Indicates the unit price of hydrogen, HD p,t represents the hydrogen load p in time period t, HC k,t represents the hydrogen consumption of hydrogen fuel electromagnetic k in time period t, ρ H represents the unit price of fossil fuel, HQq,t represents the heat production of fossil fuel boiler q in time period t, e c It indicates the heat produced by burning each kilogram of fossil fuel; The constraint expression of the power subsystem is as follows, where: They represent the upper and lower limits of the physical quantity (·), b and l represent the grid nodes and transmission lines, respectively. l ,e l represent the starting and terminal nodes of the power transmission line l, respectively; w, i, j represent the wind power plant, thermal power generator, and electric load, respectively; Formulas (2)-(4) limit the output of thermal power units, the capacity of transmission lines, and the amount of wind abandoned, respectively. l,t represents the power flow on the transmission line l during time period t, represents the predicted wind power output of wind farm w in time period t; the upper limit of wind abandonment is the predicted wind power output value; Formula (5) represents the power balance constraint of each node, where LD j,t represents the electrical load j in time period t, represents the power generation of hydrogen fuel cell k in time period t; Formula (6) is the line power flow constraint based on the DC power flow model, where θ b,t represents the voltage phase angle of node b during time period t, x l represents the reactance of transmission line l; Equations (7)-(12) represent the spinning reserve constraints of the unit, where r i,t ,rd i,t They represent the upward and downward reserve capacities of thermal generator i in time period t, SRU and SRD represent the upward and downward reserve capacities of the power system, respectively; The constraint expression of the hydrogen subsystem is as follows, where represent the upper and lower limits of the physical quantity (·), o and p represent the hydrogen source and hydrogen load, n and f represent the hydrogen network node and hydrogen pipeline, k represents the hydrogen fuel cell, and b f ,e f They represent the starting and terminal nodes of the hydrogen pipeline f respectively; Equation (13) represents the material mass balance in the pipeline, where Δt represents the scheduling interval of each time period, represents the mass flow at the start / end node of pipeline f during time period t, d f ,A f ,L f represent the diameter, cross-sectional area and length of the hydrogen pipeline f, respectively. represent the gas pressure at the start / end node of the hydrogen pipeline f in time period t, c hy represents the speed of sound in hydrogen; Equation (14) is the nodal fluid momentum balance equation derived from the Navier-Stokes equation, where ω f represents the hydrogen flow rate in pipe f, λ f represents the friction coefficient of pipeline f; Formula (15) limits the hydrogen production at the hydrogen source node, where H o,t represents the hydrogen production of hydrogen source o in time period t; Formula (16) constrains the mass flow balance at each node; Formula (17) limits the gas pressure at the hydrogen source node to a fixed value, where p o,0 represents the fixed pressure value of the hydrogen source node; Formula (18) limits the pressure of each node, where p n,t represents the gas pressure value of hydrogen network node n in time period t; Equations (21)-(22) limit the mass flow at each node; The constraint expression of the thermal subsystem is as follows, where denote the upper and lower limits of the physical quantity (·), q denotes a fossil fuel boiler, g, d, h denote a heating network node, a hot water pipe, and a heat load (building), respectively. represents the set of pipes in the water supply network starting at node g. represents the set of pipes in the water supply network with node g as the terminal node, Nd k,q represents the heat source node connected to the hydrogen fuel cell k and boiler q, Nd h represents the heat load node connected to the residential building h; Formula (23) represents the relationship between the water temperature at the heat source node and the boiler heat output, where HH k,t represents the heat generated by the hydrogen fuel cell k in time period t, c represents the specific heat capacity of water, m g represents the mass flow at the heating network node g, represents the water temperature of node g in the water supply / return network in time period t; formula (24) limits the heat production of the boiler, formula (25) constrains the upper and lower limits of the water temperature at the heat source node in the water supply network, and formulas (26)-(27) represent the relationship between the outflow water temperature of each node in the water supply / return network and the mixed hot water temperature flowing into the connected sub-pipeline, where denote the mass flows in the supply and return pipes d, respectively, Respectively represent the water temperature at the outlet of the supply / return pipe d in time period t; Formulas (28)-(29) indicate that the water temperature at the inlet of each pipe in the supply / return network should be equal to the water temperature corresponding to the starting node of the pipe, where represents the water temperature at the inlet of pipe d in the water supply / return network in time period t; Equations (30)-(34) represent the two stages of network loss in the heat transfer process, where They represent the intermediate variables of the water temperature at the outlet of the supply / return pipe d in time period t, denote the hot water transmission time in the supply / return pipe d, ρ denotes the water density, A d ,L d represents the cross-sectional area and length of the hot water pipe d, λ d represents the thermal conductivity of the hot water pipe d, represents the ambient temperature in time period t; Formula (35) represents the heat load of residential buildings, where HB h,t represents the heat load h in time period t; Formula (36) limits the water temperature at the heat load node in the return network to ensure sufficient heating. Formula (37) is the thermal inertia expression of residential buildings after considering the heat storage effect of the building, where τ h,t Indicates the indoor temperature of the heat load building during time period t, C h The heat capacity of the heat load building h, U h represents the thermal conductivity of the heat load building h; Equation (38) limits the indoor temperature of residential buildings to meet the heating demand; The coupling constraint expressions of the three subsystems are as follows, where η p ,η h They represent the power generation efficiency and heat generation efficiency of the hydrogen fuel cell respectively, formula (39) represents the power generation of the hydrogen fuel cell, formula (40) represents the heat generation of the hydrogen fuel cell, and formula (41) limits the hydrogen consumption of the hydrogen fuel cell; 3. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 2 is characterized in that: In the step S1, the probabilistic energy flow model of the hydrogen-electric-thermal integrated energy system is represented as a standard multi-parameter planning model. A standard multi-parameter planning model is in the form of: Among them, the variables in the multi-parameter planning model are divided into parameter variables θ and decision variables x ; z is the objective function value, A, b, E are the coefficient matrices or vectors of the constraint set.
4. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S1, the critical domain where the specific parameter vector is located is defined as follows: for a certain optimal partition, the critical domain is defined as the set of all parameter vectors corresponding to the optimal partition, the optimal solutions corresponding to all parameter vectors in a critical domain have the same valid constraints and invalid constraints set, and thus have the same KKT conditions, the critical domain is a convex polyhedron, and the feasible parameter space is divided into the collection of critical domains.
5. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S3, the concept of optimal segmentation is as follows: According to the optimal solution of the system corresponding to the initial parameter vector, the optimal segmentation is performed to divide the constraint set into a valid constraint set and an invalid constraint set, as shown in equations (43) and (44), respectively: A T x * =b T +E T θ0 (43) A S x * S +E S θ0 (44) Among them, A T ,b T ,E T ,A S ,b S , and E S Represent the corresponding coefficient matrix or vector respectively.
6. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S3, the specific steps of rewriting the KKT condition according to the optimal segmentation result are as follows: First, the KKT condition of the original multi-parameter planning model (42) is as follows, which consists of the stationary condition, the original feasibility condition, the dual feasibility condition, and the complementary relaxation condition: According to the valid constraint set and invalid constraint set obtained by optimal segmentation, the KKT condition is rewritten into an equality part and an inequality part, where the equality part is as follows: The inequality part is as follows:
7. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S4, the process of obtaining the relationship between the correlation coefficient matrix of the critical region where the initial value of the parameter is located and the linear mapping relationship specifically includes the following steps: When the original problem does not degenerate, the decision variable can be derived from the equation part (46) of the KKT condition x and the Lagrange multiplier λ T The mapping relationship x(θ) and λ with the parameter variable θ T (θ), meaning that they can be expressed as linear functions of the parameter variables; where x(θ) is expressed as follows: Formula (48) is the mapping relationship expression corresponding to the critical region where the parameter vector is located; according to the mapping relationship, the corresponding decision variable value can be directly obtained from any parameter vector in the critical region; Further, x(θ), λ T Substituting (θ) into the inequality part (47) of the KKT condition, we can obtain a set of inequalities about the parameter variable θ. The convex polyhedron formed by this set of inequalities is the critical domain where the parameter vector is located. The specific expression is as follows: And express equation (49) as equation (50): G θ i <F θ (50) Formula (50) is the definition of the critical region; Substituting formula (48) into the objective function expression, we can obtain: Formula (51) is the mapping expression from the parameter vector to the objective function value corresponding to the critical region; When the original problem degenerates, the equation part of the KKT condition constitutes an overdetermined system of equations and there is no unique solution. At this time, the uniqueness of the solution can be guaranteed by introducing the consistency bond breaking criterion, thereby obtaining the correlation coefficient matrix and mapping relationship of the critical domain where the initial value of the parameter is located.
8. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S6, critical domain matching is performed for the random new energy output in the parameter space to determine the critical domain number where the random new energy output is located. The critical domain matching standard is as follows:
9. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S7, according to the special mapping relationship stored in the critical domain, the formula for online calculating the optimal energy flow and objective function value of the system directly according to any new energy output vector is as follows:
10. The online calculation method of probabilistic energy flow of an integrated energy system based on multi-parameter planning according to claim 1 is characterized in that: In step S7, the optimal energy flow and objective function value of the system under any parameter vector are calculated directly according to the special mapping relationship stored in the critical domain, avoiding the need to solve the optimization problem again for each different parameter vector, thereby saving the calculation time of the probabilistic energy flow of the integrated energy system.
Citation Information
Cited By
Off-grid integrated energy system toughness scheduling method and system considering generalized energy storage
CN118735374A
