A method and computer device for dispatching an electricity-gas interconnection system taking into account a carbon trading mechanism

Through the improved particle swarm algorithm and carbon trading mechanism, the power and natural gas networks of the electricity-gas interconnection system are optimized, solving the problems of reducing operating costs and achieving low-carbon operation of the electricity-gas interconnection system, and maximizing wind power generation. consumption and reduction of carbon emissions.

CN113988669BActive Publication Date: 2024-09-06ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111286430.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2024-09-06
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

The existing electricity-gas interconnection system fails to fully utilize its low-carbon characteristics while reducing operating costs. It is difficult to achieve economical and low-carbon operation of the power network and natural gas network, and it fails to maximize the consumption of local wind power.

Method used

An improved particle swarm algorithm is used combined with the carbon trading mechanism to establish an electric-gas joint system model to optimize the dispatch of the electric power network and natural gas network. Taking into account wind power generation data, electric load data and natural gas output data, the start and stop status of each unit is solved through the objective function. and efforts to achieve economic and low-carbon operation of the system.

Benefits of technology

It achieves low-carbon operation of the combined electricity-gas system after joining the carbon trading mechanism, fully absorbs renewable energy, reduces carbon emissions, and reduces the total system operation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988669B
    Figure CN113988669B
Patent Text Reader

Abstract

The present invention belongs to the field of comprehensive energy system optimization and scheduling, and relates to an optimization and scheduling method for an electric-gas interconnected system taking into account a carbon trading mechanism, comprising the following steps: establishing an objective function of an electric-gas combined system model according to wind power generation data, power load data, natural gas output data, and a carbon trading mechanism; solving the objective function of the electric-gas combined system model to obtain the start-stop state variables and output of each unit; and scheduling the electric-gas interconnected system according to the start-stop state variables and output of each unit. The method of the present invention uses an improved particle swarm algorithm to solve the model, and the solution results show that the obtained optimization scheduling strategy can achieve the economic optimization of the system and reduce the total carbon emissions of the system by reasonably scheduling the output of the coupling equipment in the system under the premise of meeting the system load demand, and is a reasonable optimization scheduling strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of integrated energy system optimization and scheduling, and in particular relates to an electricity-gas interconnection system scheduling method based on an improved particle swarm algorithm and taking into account a carbon trading mechanism, and also relates to a computer device. Background Art

[0002] In recent years, as environmental problems and resource scarcity have become increasingly prominent, people are eager to explore key technologies for resource substitution and low-carbon development. The rapid development of renewable energy power generation technologies such as wind power and photovoltaics and the gradual maturity of carbon absorption technologies such as carbon capture have made low-carbon development possible. In order to reduce the consumption of traditional resources and better utilize the complementary characteristics of different energy sources, the electricity-gas interconnection system came into being. While the electricity-gas interconnection system uses the natural gas system to absorb the randomness and uncertainty of wind power, wind power can also provide cheap electricity for power-to-gas and other equipment to convert captured carbon dioxide into natural gas to achieve carbon absorption.

[0003] However, the current electricity-gas interconnection system is mostly based on absorbing new energy power generation and reducing the total operating cost of the system, but has failed to fully explore and utilize the low-carbon characteristics of the electricity-gas interconnection system to achieve low-carbon operation of the system while reducing operating costs. Therefore, how to better achieve the economical low-carbon operation of the power grid and natural gas grid in the electricity-gas interconnection system, while maximizing the absorption of local wind power, is an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes an optimization scheduling method for an electricity-gas interconnected system taking into account the carbon trading mechanism. By modeling the gas turbines, power-to-gas and other coupling equipment in the electricity-gas interconnected system, taking into account the energy storage characteristics of the two energy networks, considering the regulatory effect of the carbon trading mechanism and the total carbon emission limit of the system, and solving it through an improved particle swarm algorithm, the economical and low-carbon operation of the power network and the natural gas network in the electricity-gas interconnected system can be achieved, while maximizing the absorption of local wind power generation.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] According to a first aspect of the present invention, a method for optimizing the scheduling of an electricity-gas interconnection system taking into account a carbon trading mechanism is provided.

[0007] In one embodiment, a method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism comprises the following steps:

[0008] According to wind power generation data, power load data, natural gas output data and carbon trading mechanism, the objective function of the electricity-gas joint system model is established;

[0009] Solve the objective function of the electric-gas combined system model to obtain the start-stop state variables and output of each unit;

[0010] The electricity-gas interconnection system is dispatched according to the start-stop state variables and output of each unit.

[0011] Optionally, the step of establishing the objective function of the electricity-gas combined system model according to the wind power generation data, the power load data, the natural gas output data and the carbon trading mechanism is to establish the objective function of the electricity-gas combined system model as shown in the following formula:

[0012]

[0013] Among them, C D is the total cost of the combined electricity-gas system, The cost of coal burning, For gas cost, The cost of carbon trading.

[0014] Optionally, the step of solving the objective function of the electricity-gas combined system model to obtain the start-stop state variables and output of each unit further includes: solving the objective function of the electricity-gas combined system model with the lowest cost as the optimization goal, and obtaining a solution that satisfies the power system constraints, the natural gas system constraints and the coupling unit constraints.

[0015] Optionally, the power system constraints include:

[0016] for Each node in the power system needs to satisfy the output constraint (9), the ramp constraint (10), the wind power output constraint (11), the node power balance equation of the power grid (12) and the line transmission capacity constraint (13), as follows:

[0017] P i,min ≤P i,t ≤P i,max (9)

[0018]

[0019]

[0020]

[0021]

[0022] Where: t and T represent the optimization period and the total optimization time respectively; Ω U represents the set of fuel units, Ω P2G represents the set of power-to-gas systems, Ω ELrepresents the collection of power loads, Ω WF represents the set of wind turbines; P i,max / P i,min Indicates the upper / lower limit of the output of unit i; represents the up / down ramp limit of unit i; Θ represents the set of power system nodes; are the power transfer factor matrices of fuel units, wind turbines, power-to-gas systems and power loads to transmission lines; L t,max Indicates the upper limit of the line transmission power; represents the maximum predicted output of the wind turbine. Indicates the system forecast load.

[0023] Optionally, the natural gas system constraints include:

[0024] For the nodes of the natural gas system The natural gas system satisfies the node pressure constraint (14), the pipeline static gas flow constraint (15), the dynamic pipeline storage constraint (16), the node flow balance equation (17) and the compressor pipeline constraint (18), as follows:

[0025]

[0026]

[0027]

[0028]

[0029] π n:n=O(q),t ≤π n:n=I(q),t ≤ζ q π n:n=O(q),t (18)

[0030] In the formula, the nodes of the natural gas system include: gas well node g, pipeline with compressor q, natural gas load f, pipeline without compressor p, p', gas network node n, n';

[0031] t and T represent the optimization period and total optimization time respectively; G represents the gas flow; G g,max / G g,min is the upper / lower limit of the output of the gas well g; G p,max is the upper limit of the gas flow rate of pipeline p; π represents the pressure; π n,min / π n,min is the upper / lower limit of the pressure at node n; Q represents the pipe storage; and are the gas flow constant and pipe storage coefficient of pipeline p respectively; Θ n is the set of system components of the natural gas system connected to node n;q is the compression ratio of compressor q; subscript n: n=I(p) indicates that node n is the inflow node of the gas in pipeline p.

[0032] Optionally, the coupling unit constraint condition includes:

[0033] for The gas turbine needs to satisfy the operating constraint (19), and the power-to-gas system needs to satisfy the operating constraint (20), as follows:

[0034]

[0035]

[0036] Where: t and T represent the optimization period and total optimization time respectively; η i and η j Indicates the efficiency value of the coupling unit; P j,max Indicates the maximum power of the power-to-gas system; P i,t is the electrical output power of unit i; P j,t is the electrical output power of unit j; 0-1 state variable indicating the start / stop of unit i; o i,t Indicates the additional fuel loss caused by a single start / stop of unit i; Ω P2G represents the set of all power-to-gas systems; Ω GU represents the set of gas generator sets; Θ n is the set of system components of the natural gas system connected to node n.

[0037] Optionally, the step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal includes: taking the lowest cost as the optimization goal, solving the objective function of the electric-gas combined system model by a particle swarm algorithm, constraining the unit operating state by discrete variables, characterizing the unit output by continuous variables, and iterating the discrete variables and the continuous variables independently to finally achieve the optimization solution of the objective function.

[0038] Optionally, the step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal further includes:

[0039] First, according to the natural gas load and power load in the system, the unit output variables of the unbalanced nodes and the corresponding unit start and stop variables are generated;

[0040] Then, all unit output variables are generated according to the power flow constraints of the power system and the natural gas system;

[0041] Then, based on the generated output variables of all units, it is determined whether any unit is out of limit;

[0042] If there is no limit violation, the fitness of the population is calculated according to the objective function, and the particle swarm is iterated;

[0043] If the limit is exceeded, the output of the corresponding unit is adjusted and the excess output load is distributed; then, the population fitness is calculated according to the objective function, and the particle swarm is iterated.

[0044] Optionally, if the limit is exceeded, the step of adjusting the output of the corresponding unit and distributing the excess output load includes:

[0045] If the lower limit is exceeded, first, the lower limit judgment matrix S1 is generated according to the discrete variables of the particle swarm to obtain the continuous variable S2 of the output of all units at this time;

[0046] Then, for According to S i (t) Determine the operating status of the unit, S i (t) = S1 i (t)*S2 i (t); if S i (t) is not 0, the machine will be judged as shut down, and it will continue to operate according to the lower limit output, reducing the output of the wind turbine set; if S i If (t) is 0, the unit is judged to be shut down, and the output load is transferred according to the preset output load transfer sequence, and the output load is distributed to other units;

[0047] Next, it is determined whether the excess output load can be distributed. If the output load cannot be transferred, the judgment matrix generation error is considered. The judgment matrix is ​​regenerated and the output load transfer process is performed until all output loads are distributed.

[0048] Then the fitness of the population is calculated according to the objective function, and the iterative calculation of the particle swarm is performed;

[0049] If the upper limit is exceeded, first, the output of the unit is adjusted to the upper limit, and the output load is transferred according to the pre-set output load transfer order, and the excess output load is added to other units; then, the population fitness is calculated according to the objective function, and the particle swarm iterative calculation is performed.

[0050] Optionally, the iterative calculation step of the particle swarm realizes an iterative process of seeking an optimal solution through a velocity update formula and a position update formula;

[0051] There are m particles in a population in a D-dimensional space. The velocity v of the i-th particle at the k-th iteration is i (k) and position x i (k) are respectively represented as follows:

[0052] v i (k)=[vi1 (k),v i2 (k),v i3 (k),…v iD (k)] (21)

[0053] x i (k) = [x i1 (k),x i2 (k),x i3 (k),...x iD (k)] (22)

[0054] Where: D represents the dimension, v iD (k) represents the velocity of the D-dimensional variable of particle i at the k-th iteration, x iD (k) represents the position of the D-th dimension variable of the i-th particle at the k-th iteration.

[0055] Optionally, in the iterative calculation step of the particle swarm, the optimal solution searched by particle i itself is expressed as:

[0056] pbest i (k) = [pbest i1 (k),pbest i2 (k),pbest i3 (k),...pbest iD (k)] (23)

[0057] Where: pbest i1 (k), ..., pbest iD (k) represents the optimal value of the 1st,...,Dth dimensional variable of particle i at the kth iteration.

[0058] Optionally, in the step of iterative calculation of the particle swarm, the optimal solution currently searched by the particle swarm is expressed as:

[0059] gbest(k)=[gbest1(k),gbest2(k),gbest3(k),...gbest D (k)] (24)

[0060] Where: gbest1(k)gbest D (k) represents the global optimal solution of the 1st, ..., Dth dimension variables at the kth iteration

[0061] ,...,untie.

[0062] Optionally, in the step of iterative calculation of the particle swarm, when particle i performs the kth update iteration of its own velocity and position, it follows the following rules:

[0063] v iυ (k+1)=wv iυ (k)

[0064] +c1random(0,1)[pbest iυ (k)-x iυ (k)] (25)

[0065] +c2random(0,1)[gbest iυ (k)-x iυ (k)]

[0066] x iυ (k+1)=x iυ (k)+v iυ (k) (26)

[0067] Where: υ=1,2,3,…D; w represents the inertia factor; c1 and c2 represent the adjustment learning factors, which represent the learning adjustment based on one’s own experience and social experience respectively; random(0,1) represents a random number uniformly distributed in the interval (0,1); pbest iυ (k) represents the optimal value of the υ-th dimension variable of particle i at the k-th iteration, gbest iυ (k) The global optimal solution of the υ-th dimension variable at the k-th iteration.

[0068] Optionally, the wind power generation data includes the wind speed measured by the wind turbine set and a maximum output curve of the wind turbine set, and the wind power generation maximum output prediction data is obtained according to the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set.

[0069] Optionally, the electricity load data and natural gas output data are respectively the demand data of the electricity load and the natural gas load of the electricity-gas interconnected system on a typical day. The load forecast curve of the electricity-gas combined system is obtained based on the demand data of the electricity load and the natural gas load of the electricity-gas interconnected system on a typical day, and the flow constraints of the electricity system and the natural gas system are obtained based on the load forecast curve.

[0070] According to a second aspect of the present invention, a computer device is provided.

[0071] In some embodiments, a computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

[0072] The beneficial effects of the present invention are:

[0073] Based on the system model of the power system and the natural gas system and the coupling model of the gas turbine and the power-to-gas system, the renewable energy consumption characteristics of the power-to-gas interconnected system are fully considered. Based on my country's current "baseline method" carbon quota trading mechanism, a power-to-gas combined system coupling model taking into account carbon trading is established, and the improved discrete-continuous particle swarm algorithm is used for optimization and solution. The results show that the power-to-gas combined system can more fully absorb renewable energy after joining the carbon trading mechanism, thereby reducing carbon emissions and reducing the total system operating cost.

[0074] Gas turbines and power-to-gas systems are introduced to achieve strong coupling of energy flows between the power grid and the natural gas grid, and time-segment optimization research is carried out on the operation on a typical day. While achieving cost-optimal operation of the electricity-gas interconnected system, the complementary characteristics of the two networks are fully utilized to reduce carbon emissions.

[0075] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0077] Figure 1a is a structural diagram of an electrical-gas interconnection system of the present invention according to an exemplary embodiment;

[0078] Figure 1b is a flow chart of an optimization scheduling method of the present invention shown according to an exemplary embodiment;

[0079] Figure 2 A diagram showing a predicted maximum output of wind power generation in a system according to an exemplary embodiment;

[0080] Figure 3 is a diagram showing a forecast of power load demand of a system in a typical day according to an exemplary embodiment;

[0081] Figure 4 is a natural gas load demand forecast diagram of a system in a typical day according to an exemplary embodiment;

[0082] Figure 5 This is a diagram showing the optimization scheduling results of the electricity-gas interconnection system taking into account the impact of the carbon trading mechanism according to an exemplary embodiment;

[0083] Figure 6 is an output diagram of a power-to-gas system in a scheduling result according to an exemplary embodiment;

[0084] Figure 7is a flowchart of steps for solving an objective function according to an exemplary embodiment;

[0085] Figure 8 The figure is a structural diagram of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0086] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.

[0087] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0088] As used herein, the term "plurality" means two or more than two, unless otherwise specified.

[0089] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0090] In this article, the term "and / or" is a description of the association relationship between objects, indicating that three relationships may exist. For example, A and / or B means: A or B, or, A and B.

[0091] Figure 1a and Figure 1b An embodiment of a method for optimizing scheduling of an electricity-gas interconnection system taking into account a carbon trading mechanism is shown.

[0092] In this embodiment, a method for optimizing the scheduling of an electricity-gas interconnection system taking into account a carbon trading mechanism includes the following steps:

[0093] Step 1: Establish the objective function of the electricity-gas joint system model based on wind power generation data, power load data, natural gas output data and carbon trading mechanism;

[0094] Step 2, solving the objective function of the electric-gas combined system model to obtain the start-stop state variables and output of each unit;

[0095] Step 3: dispatch the electricity-gas interconnection system according to the start-stop state variables and output of each unit.

[0096] The electric-gas interconnection system includes an electric power system, a natural gas system and coupling equipment. Optionally, the electric power system includes coal-fired units, wind turbines and electric loads. Optionally, the natural gas system includes gas wells and natural gas loads. Optionally, the coupling equipment includes a gas turbine and an electric-to-gas system.

[0097] The power-to-gas system is a key system for realizing renewable energy consumption and reducing carbon emissions in the power-to-gas interconnected system, and is coupled with a water electrolysis system and a hydrogen methanation catalytic system. Optionally, the water electrolysis system in the embodiment of the present application adopts proton membrane exchange water electrolysis technology, and the hydrogen methanation catalytic system adopts a high temperature and high pressure catalytic method to achieve a faster ramp speed and higher conversion efficiency.

[0098] Gas turbines are devices that burn natural gas and use its heat to generate electricity. Small gas turbines have smaller start-up and shutdown losses and emit less CO2 per unit of power generation, and can take on part of the power generation task in the electricity-gas interconnection system.

[0099] Optionally, the wind power generation data include wind speed measured by the wind turbine set and a maximum output curve of the wind turbine set, and the wind power generation maximum output prediction data is obtained according to the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set.

[0100] Optionally, the above-mentioned electricity load data and natural gas output data are respectively the demand data of electricity load and natural gas load of the electricity-gas interconnected system on a typical day. According to the demand data of electricity load and natural gas load of the electricity-gas interconnected system on a typical day, the load forecast curve of the electricity-gas combined system can be obtained, and the flow constraints of the power system and the natural gas system can be obtained according to the load forecast curve.

[0101] Optionally, the above carbon trading mechanism mainly involves the current carbon emission quota and the carbon trading price. Of course, in other embodiments, the carbon trading mechanism may also involve other factors.

[0102] In one embodiment, for a power-to-gas system, Electric power consumption for hydrogen production Hydrogen production flow The relationship is shown in formula (1):

[0103]

[0104] Where: t and T represent the optimization period and total optimization duration, for example, 1h and 24h respectively; Ω P2G represents the set of power-to-gas systems (P2G), F is the Faraday constant, η f is the Faraday efficiency, k1 is the unit conversion coefficient, k1 = 0.001 (W → kW), k2 = 3600k2' (mol / s → Nm 3 / h), where k2'=RT0 / P0, R is the ideal gas constant, T0 and P0 are standard temperature and pressure respectively, V i,t Indicates the operating voltage of the electrolysis chamber at time t.

[0105] Hydrogen methanation is an industrial high-temperature and high-pressure process that requires continuous pressurization and temperature increase of the reaction vessel. In order to keep the reaction in time, even when no reaction occurs, electrical power needs to be consumed to ensure the minimum reaction conditions, i.e. The electrical power consumed by the power-to-gas system during the reaction P i,t As shown in formula (2), the power consumed when no reaction occurs is shown in formula (3):

[0106]

[0107]

[0108] Where: P con To maintain the minimum power required for the reaction vessel, η m Additional electrical power is consumed for hydrogen reaction per unit flow rate.

[0109] In one embodiment, for a gas turbine, for Its power generation capacity Pi,t and the natural gas flow rate G i,t The relationship is shown in formula (4):

[0110]

[0111] Where: Ω GU represents the set of gas generator sets; η C Indicates the amount of electricity generated per unit of natural gas.

[0112] In one embodiment, the step of establishing the objective function of the power-gas combined system model according to the wind power generation data, the power load data, the natural gas output data and the carbon trading mechanism includes: obtaining the total cost of the power-gas combined system on a typical day according to the output costs of the coal-fired units and the gas-fired units and the carbon trading mechanism, and establishing the objective function of the power-gas combined system model, as shown in formula (5):

[0113]

[0114] The total cost of the combined electricity-gas system C D Can be broken down into coal costs Gas Cost Carbon trading costs

[0115] Among them, the cost of coal As shown in formula (6):

[0116]

[0117] Where: Ω U is the set of all fuel units, is the fuel cost of unit i, P i,t is the electrical output power of unit i; and are 0-1 state variables representing the start / stop of unit i, o i,t and i,t They represent the additional fuel loss caused by a single start / stop of unit i; F i c Indicates the corresponding unit consumption.

[0118] Gas costs for combined electricity-gas systems The gas cost is determined by the gas production of the gas well. As shown in formula (7):

[0119]

[0120] Where: G represents the unit gas production cost of a gas well, g,tIndicates the gas production of the gas well, which is determined by the natural gas load, natural gas consumption of the gas turbine and the natural gas production of the power-to-gas system. GW Represents the set of all gas wells.

[0121] The carbon trading cost of the electricity-gas interconnection system is calculated by multiplying the difference between the carbon emissions of all power generation units in the system and the free carbon quotas allocated by the carbon trading price. According to my country's current baseline method, the free carbon quota is calculated at 0.768tCO2 / (MW*h). Since coal-fired units and gas turbines use different fuels, their carbon emissions per unit of power generation are also different. The carbon emissions of coal-fired units are calculated at 1.2tCO2 / (MW*h); the carbon emissions of gas units are calculated at 0.4tCO2 / (MW*h).

[0122] Carbon trading costs in the electricity-gas combined system As shown in formula (8):

[0123]

[0124] In the formula, is the CO2 emitted per unit of power generation of unit i. The emission of gas turbines and coal-fired units is different. cm The CO2 emission quota allocated to the unit load in the region, represents the carbon trading price, Ω EL represents the collection of power loads, Indicates the system forecast load.

[0125] In one embodiment, the objective function of the electric-gas combined system model is solved to obtain the start-stop state variables and output of each unit, further comprising: solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal to obtain a solution that satisfies the constraints of the power system, the natural gas system and the coupling unit.

[0126] Optionally, the power system constraints are as follows:

[0127] for Each node in the power system needs to satisfy the output constraint (9), the ramp constraint (10), the wind power output constraint (11), the node power balance equation of the power grid (12) and the line transmission capacity constraint (13):

[0128] P i,min ≤P i,t ≤P i,max (9)

[0129]

[0130]

[0131]

[0132]

[0133] Where: t and T represent the optimization period and the total optimization time respectively; Ω U represents the set of all fuel units; Ω P2G represents the set of all power-to-gas systems; Ω EL represents the set of all power loads, Ω WF represents the set of all wind turbines; P i,max / P i,min Indicates the upper / lower limit of the output of unit i; represents the up / down ramp limit of unit i; Θ represents the set of power system nodes; are the power transfer factor matrices of all fuel units, wind turbines, power-to-gas systems and power loads to transmission lines; L t,max Indicates the upper limit of the line transmission power; represents the maximum predicted output of the wind turbine. Indicates the system forecast load.

[0134] Optionally, the natural gas system constraints are as follows:

[0135] The nodes of the natural gas system include: gas well node g, pipeline with compressor q, natural gas load f, pipeline without compressor p, p', gas network node n, n'. The natural gas system satisfies the node pressure constraint (14), the pipeline static gas flow constraint (15) and dynamic pipeline storage constraint (16), the node flow balance equation (17), and the compressor pipeline constraint (18), as follows:

[0136]

[0137]

[0138]

[0139]

[0140] π n:n=O(q),t ≤π n:n=I(q),t ≤ζ q π n:n=O(q),t (18)

[0141] Where: G represents the air flow; G g,max / G g,min is the upper / lower limit of the output of the gas well g; Gp,max is the upper limit of the gas flow rate of pipeline p; π represents the pressure; π n,min / π n,min is the upper / lower limit of the pressure at node n; Q represents the pipe storage; and are the gas flow constant and pipe storage coefficient of pipeline p respectively; Θ n is the set of system components of the natural gas system connected to node n; q is the compression ratio of compressor q; subscript n: n = I (p) indicates that node n is the inflow node of pipeline p gas, and so on, subscript n': n' = O (p) indicates that n' is the outflow node of pipeline p gas, for example π n:n=O(q),t It represents the gas pressure flowing out of the n node from the pipeline q containing the compressor.

[0142] Optionally, the coupling unit constraint conditions are as follows:

[0143] for The gas turbine needs to satisfy the operating constraint (19), and the power-to-gas system needs to satisfy the operating constraint (20).

[0144]

[0145]

[0146] Where: η i and η j Indicates the efficiency value of the coupling unit; P j,max Indicates the maximum power of the power-to-gas system; They are 0-1 state variables representing the start / stop of unit i.

[0147] In one embodiment, the step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal includes: solving the objective function of the electric-gas combined system model by a particle swarm algorithm with the lowest cost as the optimization goal, constraining the unit operating state by discrete variables, characterizing the unit output by continuous variables, iterating the discrete variables and the continuous variables independently, and correcting each other according to the actual possible output of the generator set when calculating the population fitness, so as to finally achieve the optimization solution of the objective function.

[0148] like Figure 7 As shown, the step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal further includes:

[0149] First, according to the natural gas load and power load in the system, the unit output variables of the unbalanced nodes and the corresponding unit start and stop variables are generated. The unbalanced nodes are nodes other than the frequency-regulated units as the balancing nodes (the frequency-regulated units are Figure 1aCoal-fired units adjacent to the power load);

[0150] Then, all unit output variables are generated according to the power flow constraints of the power system and the natural gas system;

[0151] Then, based on the generated output variables of all units, it is determined whether any unit is out of limit;

[0152] If there is no limit violation, the fitness of the population is calculated according to the objective function, and the next step of particle swarm iterative calculation is carried out;

[0153] If the lower limit is exceeded, that is, if the output of a unit is lower than the minimum output value of the unit, the lower limit judgment matrix S1 is generated according to the particle swarm 0-1 discrete variables, and the continuous variable S2 of the output of all units at this time is obtained. S1 i (t) = 0 means the unit is shut down at this time, S1 i (t) = 1 indicates that the unit i is operating normally. The final output value of the unit i in period t is given by S i (t) = S1 i (t)*S2 i (t) decide, according to S i (t) value to judge the operating status of the unit. If S i (t) is not 0, the machine will be judged as shut down and continue to operate according to the lower limit output, correspondingly reducing the output of the wind turbine set; if S i If (t) is 0, the system is judged to be shut down. If it is judged to be shut down, the output load is transferred according to the preset output load transfer order and the output load is distributed to other units; it is judged whether the excess output load can be distributed. When the output load cannot be transferred, the judgment matrix generation error is generated, and the judgment matrix is ​​regenerated and the output load transfer process is performed until all output loads are distributed; then the population fitness is calculated and the particle swarm is iterated.

[0154] If the upper limit is exceeded, that is, the unit output is higher than the maximum output value of the unit, the unit output is adjusted to the upper limit, and the load is transferred according to the pre-set output load transfer order, and the excess output load is added to other units; then, the population fitness is calculated and the particle swarm iterative calculation is performed.

[0155] Optionally, the pre-set load transfer order refers to sorting according to the incremental consumption rate (the increase in fuel consumption when increasing unit power generation) of other units with surplus capacity, giving priority to units with small incremental consumption rates when increasing output, and giving priority to units with large incremental consumption rates when reducing output.

[0156] Optionally, the above particle swarm iterative calculation step realizes the iterative process of finding the optimal solution through the speed update formula and the position update formula. Specifically, there are m particles in a swarm in a D-dimensional space. Then, at the kth iteration, the speed v of the i-th particle is i (k) and position x i (k) are respectively represented as follows:

[0157] v i (k)=[v i1 (k),v i2 (k),v i3 (k),...v iD (k)] (21)

[0158] x i (k) = [x i1 (k),x i2 (k),x i3 (k),...x iD (k)] (22)

[0159] Where: D represents the dimension, v iD (k) represents the velocity of the D-dimensional variable of particle i at the k-th iteration, x iD (k) represents the position of the D-th dimension variable of the i-th particle at the k-th iteration.

[0160] The optimal solution searched by particle i itself, that is, the set of individual extreme values, is expressed as:

[0161] pbest i (k) = [pbest i1 (k),pbest i2 (k),pbest i3 (k),...pbest iD (k)] (23)

[0162] Where: pbest iD (k) represents the optimal value of the D-dimensional variable of particle i at the k-th iteration.

[0163] The optimal solution currently searched by the particle population, that is, the set of global extreme values, is expressed as:

[0164] gbest(k)=[gbest1(k),gbest2(k),gbest3(k),...gbest D (k)] (24)

[0165] Where: gbest D (k) represents the global optimal solution of the D-th dimension variable at the k-th iteration.

[0166] When particle i performs the kth update iteration of its own velocity and position, it follows the following rules:

[0167] v iυ (k+1)=wv iυ (k)

[0168] +c1random(0,1)[pbest iυ (k)-x iυ (k)] (25)

[0169] +c2random(0,1)[gbest iυ (k)-x iυ (k)]

[0170] x iυ (k+1)=x iυ (k)+v iυ (k) (26)

[0171] In the formula: υ=1,2,3,…D; w represents the inertia factor. By adjusting the size of w, the global optimization and local optimization performance can be adjusted; c1 and c2 represent the adjustment learning factors, which respectively represent the learning adjustment based on their own experience and social experience; random(0,1) represents a random number uniformly distributed in the interval (0,1).

[0172] A specific embodiment of the method for dispatching an electricity-gas interconnection system of the present application is given below.

[0173] In this specific embodiment, the power system includes coal-fired units, wind turbines, and power loads, the natural gas system includes gas wells and natural gas loads, and the coupling equipment includes gas turbines and power-to-gas systems. The necessary parameters of each device in the system are shown in Table 1.

[0174] Table 1 Equipment parameters of the integrated energy park system

[0175]

[0176] According to the dispatching method of this application, the wind power generation forecast, power load, and natural gas load are respectively as follows: Figure 2 , Figure 3 , Figure 4 According to the system wind power output data and various load demands, under the influence of the carbon trading mechanism, a typical intraday optimization model of the system is built with the premise of maximizing wind power generation and reducing carbon emissions and the goal of maximizing economic benefits. The particle swarm algorithm is used to solve the model, and the system optimization scheduling results are as follows Figure 5 As shown in the figure, the operating status of the power-to-gas system is as follows: Figure 6 shown.

[0177] It can be observed from the optimization scheduling results that the system first completely absorbs the output of wind power generation. At the same time, at 3-6 o'clock when the wind power output is large but the electricity load is relatively small, due to the game between the operating cost of the power-to-gas system and the start-up and shutdown losses of the coal-fired units, the power-to-gas system is started to absorb the abandoned wind that could not be absorbed at this time due to the large shutdown losses of the coal-fired units. During the peak period of power load, due to the total carbon emission limit and the carbon trading cost drive, the gas turbine in the system is started and undertakes part of the power generation task to achieve lower carbon emissions. At the same time, it can be seen that driven by the carbon trading mechanism, the method of the present application takes the lowest cost as the optimization goal, while reducing the total system cost while also achieving less carbon emissions, and making full use of the coupling of the electricity-gas interconnection system to absorb wind power generation and relative load transfer. The scheduling method of the present application can fully absorb renewable energy power generation and reduce the total carbon emissions of the system at the same time. It is an ideal scheduling scheme that can provide a reference for the optimization scheduling of related comprehensive energy systems in the later stage.

[0178] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.

[0179] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0180] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.

[0181] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.

[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0183] The present invention is not limited to the structures which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. An optimization dispatching method for electricity-gas interconnection system taking into account carbon trading mechanism, It is characterized in that The following steps are involved: According to wind power generation data, power load data, natural gas output data and carbon trading mechanism, the objective function of the electricity-gas joint system model is established; Solve the objective function of the electric-gas combined system model to obtain the start-stop state variables and output of each unit; Dispatch the electricity-gas interconnection system according to the start-stop state variables and output of each unit; The step of establishing the objective function of the electricity-gas combined system model according to the wind power generation data, the power load data, the natural gas output data and the carbon trading mechanism is to establish the objective function of the electricity-gas combined system model as shown in the following formula: Among them, C D is the total cost of the combined electricity-gas system, The cost of coal burning, For gas cost, For carbon trading costs; The step of solving the objective function of the power-gas combined system model to obtain the start-stop state variables and output of each unit further includes: solving the objective function of the power-gas combined system model with the lowest cost as the optimization goal to obtain a solution that satisfies the power system constraints, the natural gas system constraints and the coupling unit constraints; The power system constraints include: for Each node in the power system needs to satisfy the output constraint (9), the ramp constraint (10), the wind power output constraint (11), the node power balance equation of the power grid (12) and the line transmission capacity constraint (13), as follows: P i,min ≤P i,t ≤P i,max (9) Where: t and T represent the optimization period and the total optimization time respectively; Ω U represents the set of fuel units, Ω P2G represents the set of power-to-gas systems, Ω EL represents the collection of power loads, Ω WF represents the set of wind turbines; P i,max / P i,min Indicates the upper / lower limit of the output of unit i; represents the up / down ramp limit of unit i; Θ represents the set of power system nodes; are the power transfer factor matrices of fuel units, wind turbines, power-to-gas systems and power loads to transmission lines; L t,max Indicates the upper limit of the line transmission power; represents the maximum predicted output of the wind turbine. represents the system forecast load; The natural gas system constraints include: For the nodes of the natural gas system The natural gas system satisfies the node pressure constraint (14), the pipeline static gas flow constraint (15), the dynamic pipeline storage constraint (16), the node flow balance equation (17) and the compressor pipeline constraint (18), as follows: p n:n=O(q),t ≤π n:n=I(q),t ≤ζ q p n:n=O(q),t (18) In the formula, the nodes of the natural gas system include: gas well node g, pipeline with compressor q, natural gas load f, pipeline without compressor p, p', gas network node n, n'; t and T represent the optimization period and total optimization time respectively; G represents the gas flow; G g,max / G g,min is the upper / lower limit of the output of the gas well g; G p,max is the upper limit of the gas flow rate of pipeline p; π represents the pressure; π n,min / π n,min is the upper / lower limit of the pressure at node n; Q represents the pipe storage; and are the gas flow constant and pipe storage coefficient of pipeline p respectively; Θ n is the set of system components of the natural gas system connected to node n; q is the compression ratio of compressor q; subscript n: n = I(p) indicates that node n is the inflow node of the gas in pipeline p; The coupling unit constraint conditions include: for The gas turbine needs to satisfy the operating constraint (19), and the power-to-gas system needs to satisfy the operating constraint (20), as follows: Where: t and T represent the optimization period and the total optimization time respectively; η i and η j Indicates the efficiency value of the coupling unit; P j,max Indicates the maximum power of the power-to-gas system; P i,t is the electrical output power of unit i; P j,t is the electrical output power of unit j; 0-1 state variable indicating the start / stop of unit i; o i,t Indicates the additional fuel loss caused by a single start / stop of unit i; Ω P2G represents the set of all power-to-gas systems; Ω GU represents the set of gas generator sets; Θ n is the set of system components of the natural gas system connected to node n.

2. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as described in claim 1, It is characterized in that The step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal includes: taking the lowest cost as the optimization goal, solving the objective function of the electric-gas combined system model by a particle swarm algorithm, constraining the unit operating state by discrete variables, characterizing the unit output by continuous variables, independently iterating the discrete variables and the continuous variables, and finally achieving the optimization solution of the objective function.

3. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as described in claim 2, It is characterized in that The step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal further includes: First, according to the natural gas load and power load in the system, the unit output variables of the unbalanced nodes and the corresponding unit start and stop variables are generated; Then, all unit output variables are generated according to the power flow constraints of the power system and the natural gas system; Then, based on the generated output variables of all units, it is determined whether any unit is out of limit; If there is no limit violation, the fitness of the population is calculated according to the objective function, and the particle swarm is iterated; If the limit is exceeded, the output of the corresponding unit is adjusted and the excess output load is distributed; then, the population fitness is calculated according to the objective function, and the particle swarm is iterated.

4. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as described in claim 3, It is characterized in that If the limit is exceeded, the step of adjusting the output of the corresponding unit and distributing the excess output load includes: If the lower limit is exceeded, first, the lower limit judgment matrix S1 is generated according to the discrete variables of the particle swarm to obtain the continuous variable S2 of the output of all units at this time; Then, for According to S i (t) Determine the operating status of the unit, S i (t) = S1 i (t)*S2 i (t); if S i (t) is not 0, the machine will be judged as shut down, and it will continue to operate according to the lower limit output, reducing the output of the wind turbine set; if S i If (t) is 0, the unit is judged to be shut down, and the output load is transferred according to the preset output load transfer sequence, and the output load is distributed to other units; Next, it is determined whether the excess output load can be distributed. If the output load cannot be transferred, the judgment matrix generation error is considered. The judgment matrix is ​​regenerated and the output load transfer process is performed until all output loads are distributed. Then the fitness of the population is calculated according to the objective function, and the iterative calculation of the particle swarm is performed; If the upper limit is exceeded, first, the output of the unit is adjusted to the upper limit, and the output load is transferred according to the pre-set output load transfer order, and the excess output load is added to other units; then, the population fitness is calculated according to the objective function, and the particle swarm iterative calculation is performed.

5. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as described in claim 3, It is characterized in that The iterative calculation step of the particle swarm realizes the iterative process of finding the optimal solution through the speed update formula and the position update formula; There are m particles in a population in a D-dimensional space. The velocity v of the i-th particle at the k-th iteration is i (k) and position x i (k) are respectively represented as follows: v i (k)=[v i1 (k),v i2 (k),v i3 (k),...v iD (k)] (21) x i (k)=[x i1 (k),x i2 (k),x i3 (k),...x iD (k)] (22) Where: D represents the dimension, v iD (k) represents the velocity of the D-dimensional variable of particle i at the k-th iteration, x iD (k) represents the position of the D-th dimension variable of the i-th particle at the k-th iteration.

6. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as described in claim 5, It is characterized in that In the iterative calculation step of the particle swarm, the optimal solution searched by particle i itself is expressed as: pbest i (k)=[pbest i1 (k),pbest i2 (k),pbest i3 (k),...pbest iD (k)] (23) Where: pbest i1 (k),...,pbest iD (k) represents the optimal value of the 1st,...,Dth dimensional variable of particle i at the kth iteration.

7. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as claimed in claim 5, It is characterized in that In the iterative calculation step of the particle swarm, the optimal solution currently searched by the particle swarm is expressed as: gbest(k)=[gbest 1 (k),gbest 2 (k),gbest 3 (k),...gbest D (k)] (24) Where: gbest 1 (k),...,gbest D (k) represents the global optimal solution of the 1st, ..., Dth dimensional variables at the kth iteration.

8. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as claimed in claim 5, It is characterized in that In the iterative calculation step of the particle swarm, when particle i performs the kth update iteration of its own velocity and position, it follows the following rules: x iυ (k+1)=x iυ (k)+v iυ (k) (26) Where: υ=1,2,3,…D; w represents the inertia factor; c 1 、c 2 represents the adjustment learning factor, which represents the learning adjustment based on one's own experience and social experience; random(0,1) represents a random number uniformly distributed in the interval (0,1); pbest iυ (k) represents the optimal value of the υ-th dimension variable of particle i at the k-th iteration, gbest iυ (k) The global optimal solution of the υ-th dimension variable at the k-th iteration.

9. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as claimed in claim 1, It is characterized in that The wind power generation data includes the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set. The wind power generation maximum output prediction data is obtained according to the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set.

10. A method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism as claimed in claim 1, It is characterized in that The electric load data and natural gas output data are respectively the demand data of the electric load and the natural gas load of the electric-gas interconnected system on a typical day. The load forecast curve of the electric-gas combined system is obtained based on the demand data of the electric load and the natural gas load of the electric-gas interconnected system on a typical day, and the flow constraints of the electric power system and the natural gas system are obtained based on the load forecast curve.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, a method for optimizing the dispatch of an electricity-gas interconnection system taking into account a carbon trading mechanism is implemented, the method comprising the following steps: According to wind power generation data, power load data, natural gas output data and carbon trading mechanism, the objective function of the electricity-gas joint system model is established; Solve the objective function of the electric-gas combined system model to obtain the start-stop state variables and output of each unit; Dispatch the electricity-gas interconnection system according to the start-stop state variables and output of each unit; The step of establishing the objective function of the electricity-gas combined system model according to the wind power generation data, the power load data, the natural gas output data and the carbon trading mechanism is to establish the objective function of the electricity-gas combined system model as shown in the following formula: Among them, C D is the total cost of the combined electricity-gas system, The cost of coal burning, For gas cost, For carbon trading costs; The step of solving the objective function of the power-gas combined system model to obtain the start-stop state variables and output of each unit further includes: solving the objective function of the power-gas combined system model with the lowest cost as the optimization goal to obtain a solution that satisfies the power system constraints, the natural gas system constraints and the coupling unit constraints; The power system constraints include: for Each node in the power system needs to satisfy the output constraint (9), the ramp constraint (10), the wind power output constraint (11), the node power balance equation of the power grid (12) and the line transmission capacity constraint (13), as follows: P i,min ≤P i,t ≤P i,max (9) Where: t and T represent the optimization period and the total optimization time respectively; Ω U represents the set of fuel units, Ω P2G represents the set of power-to-gas systems, Ω EL represents the collection of power loads, Ω WF represents the set of wind turbines; P i,max / P i,min Indicates the upper / lower limit of the output of unit i; represents the up / down ramp limit of unit i; Θ represents the set of power system nodes; are the power transfer factor matrices of fuel units, wind turbines, power-to-gas systems and power loads to transmission lines; L t,max Indicates the upper limit of the line transmission power; represents the maximum predicted output of the wind turbine. represents the system forecast load; The natural gas system constraints include: For the nodes of the natural gas system The natural gas system satisfies the node pressure constraint (14), the pipeline static gas flow constraint (15), the dynamic pipeline storage constraint (16), the node flow balance equation (17) and the compressor pipeline constraint (18), as follows: p n:n=O(q),t ≤π n:n=I(q),t ≤ζ q p n:n=O(q),t (18) In the formula, the nodes of the natural gas system include: gas well node g, pipeline with compressor q, natural gas load f, pipeline without compressor p, p', gas network node n, n'; t and T represent the optimization period and total optimization time respectively; G represents the gas flow; G g,max / G g,min is the upper / lower limit of the output of the gas well g; G p,max is the upper limit of the gas flow rate of pipeline p; π represents the pressure; π n,min / π n,min is the upper / lower limit of the pressure at node n; Q represents the pipe storage; and are the gas flow constant and pipe storage coefficient of pipeline p respectively; Θ n is the set of system components of the natural gas system connected to node n; q is the compression ratio of compressor q; subscript n: n = I(p) indicates that node n is the inflow node of the gas in pipeline p; The coupling unit constraint conditions include: for The gas turbine needs to satisfy the operating constraint (19), and the power-to-gas system needs to satisfy the operating constraint (20), as follows: Where: t and T represent the optimization period and the total optimization time respectively; η i and η j Indicates the efficiency value of the coupling unit; P j,max Indicates the maximum power of the power-to-gas system; P i,t is the electrical output power of unit i; P j,t is the electrical output power of unit j; 0-1 state variable indicating the start / stop of unit i; o i,t Indicates the additional fuel loss caused by a single start / stop of unit i; Ω P2G represents the set of all power-to-gas systems; Ω GU represents the set of gas generator sets; Θ n is the set of system components of the natural gas system connected to node n.

12. A computer device as claimed in claim 11, It is characterized in that The step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal includes: taking the lowest cost as the optimization goal, solving the objective function of the electric-gas combined system model by a particle swarm algorithm, constraining the unit operating state by discrete variables, characterizing the unit output by continuous variables, independently iterating the discrete variables and the continuous variables, and finally achieving the optimization solution of the objective function.

13. A computer device as claimed in claim 12, It is characterized in that The step of solving the objective function of the electric-gas combined system model with the lowest cost as the optimization goal further includes: First, according to the natural gas load and power load in the system, the unit output variables of the unbalanced nodes and the corresponding unit start and stop variables are generated; Then, all unit output variables are generated according to the power flow constraints of the power system and the natural gas system; Then, based on the generated output variables of all units, it is determined whether any unit is out of limit; If there is no limit violation, the fitness of the population is calculated according to the objective function, and the particle swarm is iterated; If the limit is exceeded, the output of the corresponding unit is adjusted and the excess output load is distributed; then, the population fitness is calculated according to the objective function, and the particle swarm is iterated.

14. A computer device as claimed in claim 13, It is characterized in that If the limit is exceeded, the step of adjusting the output of the corresponding unit and distributing the excess output load includes: If the lower limit is exceeded, first, the lower limit judgment matrix S1 is generated according to the discrete variables of the particle swarm to obtain the continuous variable S2 of the output of all units at this time; Then, for According to S i (t) Determine the operating status of the unit, S i (t) = S1 i (t)*S2 i (t); if S i (t) is not 0, the machine will be judged as shut down, and it will continue to operate according to the lower limit output, reducing the output of the wind turbine set; if S i If (t) is 0, the unit is judged to be shut down, and the output load is transferred according to the preset output load transfer sequence, and the output load is distributed to other units; Next, it is determined whether the excess output load can be distributed. If the output load cannot be transferred, the judgment matrix generation error is considered. The judgment matrix is ​​regenerated and the output load transfer process is performed until all output loads are distributed. Then the fitness of the population is calculated according to the objective function, and the iterative calculation of the particle swarm is performed; If the upper limit is exceeded, first, the output of the unit is adjusted to the upper limit, and the output load is transferred according to the pre-set output load transfer order, and the excess output load is added to other units; then, the population fitness is calculated according to the objective function, and the particle swarm iterative calculation is performed.

15. A computer device as claimed in claim 13, It is characterized in that The iterative calculation step of the particle swarm realizes the iterative process of finding the optimal solution through the speed update formula and the position update formula; There are m particles in a population in a D-dimensional space. The velocity v of the i-th particle at the k-th iteration is i (k) and position x i (k) are respectively represented as follows: v i (k)=[v i1 (k),v i2 (k),v i3 (k),...v iD (k)] (21) x i (k)=[x i1 (k),x i2 (k),x i3 (k),...x iD (k)] (22) Where: D represents the dimension, v iD (k) represents the velocity of the D-dimensional variable of particle i at the k-th iteration, x iD (k) represents the position of the D-th dimension variable of the i-th particle at the k-th iteration.

16. A computer device as claimed in claim 15, It is characterized in that In the iterative calculation step of the particle swarm, the optimal solution searched by particle i itself is expressed as: pbest i (k)=[pbest i1 (k),pbest i2 (k),pbest i3 (k),...pbest iD (k)] (23) Where: pbest i1 (k),...,pbest iD (k) represents the optimal value of the 1st,...,Dth dimensional variable of particle i at the kth iteration.

17. A computer device as claimed in claim 15, It is characterized in that In the iterative calculation step of the particle swarm, the optimal solution currently searched by the particle swarm is expressed as: gbest(k)=[gbest 1 (k),gbest 2 (k),gbest 3 (k),...gbest D (k)] (24) Where: gbest 1 (k),...,gbest D (k) represents the global optimal solution of the 1st, ..., Dth dimensional variables at the kth iteration.

18. A computer device as claimed in claim 15, It is characterized in that In the iterative calculation step of the particle swarm, when particle i performs the kth update iteration of its own velocity and position, it follows the following rules: x iυ (k+1)=x iυ (k)+v iυ (k) (26) Where: υ=1,2,3,…D; w represents the inertia factor; c 1 、c 2 represents the adjustment learning factor, which represents the learning adjustment based on one's own experience and social experience; random(0,1) represents a random number uniformly distributed in the interval (0,1); pbest iυ (k) represents the optimal value of the υ-th dimension variable of particle i at the k-th iteration, gbest iυ (k) The global optimal solution of the υ-th dimension variable at the k-th iteration.

19. A computer device as claimed in claim 11, It is characterized in that The wind power generation data includes the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set. The wind power generation maximum output prediction data is obtained according to the wind speed measured by the wind turbine set and the maximum output curve of the wind turbine set.

20. A computer device as claimed in claim 11, It is characterized in that The electric load data and natural gas output data are respectively the demand data of the electric load and the natural gas load of the electric-gas interconnected system on a typical day. The load forecast curve of the electric-gas combined system is obtained based on the demand data of the electric load and the natural gas load of the electric-gas interconnected system on a typical day, and the flow constraints of the electric power system and the natural gas system are obtained based on the load forecast curve.

Citation Information

Patent Citations

  • Electricity-gas comprehensive energy system planning method considering improved stepped carbon transaction

    CN109740955A

  • Comfort-driven optimization of electric grid utilization

    US20150094968A1