The present disclosure relates to a method for a dynamic state estimation of a natural gas network considering dynamic characteristics of natural gas pipelines, belonging to the technical field of operation and control of an integrated energy system.
An integrated energy system has great advantages in terms of many aspects such as improving energy utilization efficiency, promoting new energy consumption, and reducing energy costs. It is a development trend of future energy systems. An Integrated Energy Management System (IEMS), which can regulate energy flows using information flows, is an intelligent decision-making “brain” that ensures a safe, economical, green, and highly efficient integrated energy system. The technology for estimating a state, as a basic module of the IEMS, is responsible for providing real-time, reliable, consistent, and complete operating state information, and thus it can provide the subsequent security analysis and optimization control with reliable operating data.
At present, researches on state estimations of a natural gas network are still in their infancy, not to mention state estimation technology that considers dynamic natural gas. Only some of the published literatures have proposed the dynamic state estimation methods based on Kalman filtering for a single natural gas pipeline. However, these methods fail to consider constraints of the natural gas network, and they require an initial state inside the pipeline to be known (generally assumed to be a steady state). In addition, a step of bad data identification is hard to be added to a format of an iterative solution of the Kalman filtering, which greatly limits its application. Thus, it is urgent to propose a method for a dynamic state estimation of a complex natural gas pipeline network, so as to provide sufficient data support for the operation and control of the integrated energy system.
The present disclosure provides a method for a dynamic state estimation of a natural gas network considering dynamic characteristics of natural gas pipelines to obtain a real-time, reliable, consistent and complete operating state of the natural gas network, thereby overcoming the defects in the known state estimations of the natural gas network.
The method for the dynamic state estimation of the natural gas network considering the dynamic characteristic of the natural gas pipeline provided by the present disclosure includes:
step 1 of establishing a time-domain window and a frequency-domain window for the dynamic state estimation of the natural gas network, the step 1 including:
sub-step 1-1 of defining a time-domain window width as It, where It is a positive integer, and a value of It is determined by a dispatcher of the natural gas network; defining a u-th sampling time point in the time-domain window as τu=τ−uΔt, u=0, 1, . . . , It−1, where τ represents a current time point of the natural gas network, and Δt represents a sampling interval of the natural gas network; defining a current time-domain window width as It,e, where It,e is a positive integer, and a value of It,e is determined by the dispatcher of the natural gas network; and defining a historical time-domain window width as It,h, where It,h is a positive integer, and a value of It,h is determined by the dispatcher of the natural gas network, wherein It, It,e and It,h satisfy the following relational expression:
I
t
=I
t,e
+I
t,h; and
sub-step 1-2 of defining a frequency-domain window width as If, where a value of If is determined by the dispatcher of the natural gas network; and defining a d-th frequency component in the frequency-domain window as ωd, d=0, 1, . . . , If−1, where ωd is calculated by the following formula:
step 2 of constructing a measurement vector for the dynamic state estimation of the natural gas network, the step 2 including:
sub-step 2-1 of acquiring, from a data acquisition and monitoring control system of the natural gas network, all operation data of the natural gas network at a sampling time point τu in the time-domain window where the current time point τ of the natural gas network belongs, wherein the all operation data of the natural gas network comprises: a measurement value zG
sub-step 2-2 of constructing a measurement vector zu for the dynamic state estimation of the natural gas network at the sampling time point τu:
where zG
step 3 of constructing a state vector xu for the dynamic state estimation of the natural gas network at the sampling time point τu:
where xG
step 4 of establishing, based on the measurement vector constructed in the step 2 and the state vector constructed in the step 3, an objective function of the dynamic state estimation of the natural gas network as follows:
min J=Σu=0I
where J represents an expression of the objective function; W represents a covariance matrix of a measurement error and is determined by the dispatcher of the natural gas network; a superscript T represents a matrix transpose; and δ represents a decay factor of a historical time window and is determined by the dispatcher of the natural gas network;
step 5 of establishing constraint conditions for the dynamic state estimation of the natural gas network, the step 5 including:
sub-step 5-1 of establishing constraints related to a flow and a pressure of the compressor in the natural gas network, the sub-step 5-1 including:
establishing a flow constraint of the head end and the tail end of a compressor:
G
i
,u
+
=G
i
,u
−
,∀i
cϵΩc,∀u=0,1, . . . ,It−1
where Ωc represents a set of serial numbers of all the compressors in the natural gas network; and
establishing a pressure constraint at the head end and the tail end of the compressor, wherein, for the compressor with a constant tail end pressure, the pressure constraint of the head end and the tail end of the compressor is as follows:
h
i
,u
−
=h
i
,con
−
,∀i
cϵΩc,1,∀u=0,1, . . . ,It−1
where hi
wherein, for a compressor with a constant compression ratio, the pressure constraint of the head end and the tail end of the compressor is as follows:
h
i
,u
−
=r
i
,con
·h
i
,u
−
,∀i
cϵΩc,2,∀u=0,1, . . . ,It−1
where hi
wherein, for a compressor with a constant pressure difference, the pressure constraint of the head end and the tail end of the compressor id as follows:
h
i
,u
−
−h
i
,u
+
=Δh
i
,con
,∀i
cϵΩc,3,∀u=0,1, . . . ,It−1
where Δhi
sub-step 5-2 of establishing a flow constraint and a pressure constraint of the natural gas in the pipeline in the natural gas network, the sub-step 5-2 including:
establishing a two-port constraint of the pipeline in the natural gas network of each frequency component ωd in the frequency-domain window:
where hi
where li
where g represents an acceleration of gravity; Di
R
i
=λi
L
i
=1/Ai
C
i
=A
i
/(RT)
where Ai
establishing a time domain-frequency-domain mapping constraint of the natural gas flow at the head end of the pipeline of the natural gas network:
G
i
,u
+=Σd=0I
where Re( ) represents valuing a real part of a complex number; Im( ) represents valuing an imaginary part of the complex number; and θd represents a parameter calculated with ωd as follows:
θd=If·ωd−ωd
establishing a time domain-frequency-domain mapping constraint of the natural gas flow at the tail end of the pipeline of the natural gas network:
G
i
,u
−=Σd=0I
establishing a time domain-frequency-domain mapping constraint of the node of the natural gas network:
h
i
,u=Σd=0I
where hi
sub-step 5-3 of establishing a topological constraint of the natural gas network, the sub-step 5-3 including:
establishing a flow balance constraint of a node of the natural gas network:
where Ωp+,i
establishing constraints of a pipeline-compressor-node time-domain pressure relationship in the natural gas network:
h
i
,u
+
=h
i
,u
,∀i
pϵΩp+,i
h
i
,u
−
=h
i
,u
,∀i
pϵΩp−,i
h
i
,u
+
=h
i
,u
,∀i
cϵΩc−,i
h
i
,u
−
=h
i
,u
,∀i
cϵΩc−,i
establishing constraints of a pipeline-node frequency-domain pressure relationship in the natural gas network:
h
i
,d
+
=h
i
,d
,∀i
pϵΩp−,i
h
i
,d
−
=h
i
,d
,∀i
pϵΩp−,i
step 6 of forming a dynamic state estimation model of the natural gas network by using the objective function of the dynamic state estimation of the natural gas network established in the step 4 and the constraint conditions for the dynamic state estimation of the natural gas network established in the step 5; solving, by using a Lagrange method or an interior point method, the dynamic state estimation model of the natural gas network, to obtain the state vector xu, for the dynamic state estimation of the natural gas network at the sampling time point τu; and performing the dynamic state estimation of the natural gas network by considering the dynamic characteristics of the natural gas pipelines.
The method provided by the present disclosure has the following advantages.
According to the present disclosure, the method for the dynamic state estimation of the natural gas network considering the dynamic characteristic of the natural gas pipeline can obtain a result of the dynamic state estimation of the natural gas network by establishing the objective function of the dynamic state estimation of the natural gas network, the state quantity constraint of the compressor, the state quantity constraint of the natural gas pipeline and the topological constraint of the natural gas network are established, and by using the Lagrange method or the interior point method to solve a state estimation model of the natural gas network. The method according to the present disclosure takes the topological constraint of the natural gas network into consideration, and employs a pipeline pressure constraint in a frequency domain to implement linearization of the pipeline pressure constraint, thereby obtaining a real-time, reliable, consistent and complete dynamic operating state of the natural gas network.
A method for a dynamic state estimation of a natural gas network considering dynamic characteristics of natural gas pipelines provided by the present disclosure includes the following steps (1) to (5).
(1) A time-domain window and a frequency-domain window for the dynamic state estimation of the natural gas network are established. The step (1) includes the following steps (1-1) to (1-2).
(1-1) A time-domain window width is defined as It, where It is a positive integer, and a value of It is determined by a dispatcher of the natural gas network. A u-th sampling time point in the time-domain window is defined as τu=τ−uΔt, u=0, 1, . . . , It−1, where τ represents a current time point of the natural gas network, and Δt represents a sampling interval of the natural gas network. A current time-domain window width is defined as It,e, where It,e is a positive integer, and a value of It,e is determined by the dispatcher of the natural gas network. A historical time-domain window width is defined as It,h, where It,h is a positive integer. A value of It,h is determined by the dispatcher of the natural gas network. It, It,e and It,h satisfy the following relational expression:
I
t
=I
t,e
+I
t,h.
(1-2) A frequency-domain window width is defined as If, where a value of If is determined by the dispatcher of the natural gas network. A d-th frequency component in the frequency-domain window is defined as ωd, d=0, 1, . . . , If−1, where ωd is calculated by the following formula:
(2) A measurement vector for the dynamic state estimation of the natural gas network is constructed. The step (2) includes the following steps (2-1) to (2-1).
(2-1) All operation data of the natural gas network at a sampling time point τu in the time-domain window where the current time point T of the natural gas network belongs is acquired from a data acquisition and monitoring and control system of the natural gas network. The all operation data of the natural gas network includes: a measurement value zG
(2-2) A measurement vector zu for the dynamic state estimation of the natural gas network at each sampling time point τu is constructed:
where zG
(3) A state vector xu for the dynamic state estimation of the natural gas network at each sampling time point τu is constructed:
where xG
(4) An objective function of the dynamic state estimation of the natural gas network is established based on the measurement vector constructed in step (2) and the state vector constructed in step (3):
min J=Σu=0I
where J represents an expression of the objective function; W represents a covariance matrix of a measurement error and is determined by the dispatcher of the natural gas network; a superscript T represents a matrix transpose; and δ represents a decay factor of a historical time window and is determined by the dispatcher of the natural gas network.
(5) Constraint conditions for the dynamic state estimation of the natural gas network are established. The step (5) includes steps (5-1) to (5-3).
(5-1) Constraints related to a flow and a pressure of a compressor in the natural gas network are established. The step (5-1) includes steps (5-1-1) to (5-1-2).
(5-1-1) A flow constraint at a head end and a tail end of a compressor is established:
G
i
,u
+
=G
i
,u
−
,∀i
cϵΩc,∀u=0,1, . . . ,It−1
where Ωc represents a set of serial numbers of respective compressors in the natural gas network.
(5-1-2) A pressure constraint at a head end and a tail end of a compressor is established.
For a compressor with a constant tail end pressure, the pressure constraint at the head end and the tail end of the compressor being as follows:
h
i
,u
−
=h
i
,con
−
,∀i
cϵΩc,1,∀u=0,1, . . . ,It−1
where hi
For a compressor with a constant compression ratio, the pressure constraint of the head end and the tail end of the compressor is as follows:
h
i
,u
−
=r
i
,con
·h
i
,u
−
,∀i
cϵΩc,2,∀u=0,1, . . . ,It−1
where hi
For a compressor with a constant pressure difference, the pressure constraint of the head end and the tail end of the compressor is as follows:
h
i
,u
−
−h
i
,u
+
=Δh
i
,con
,∀i
cϵΩc,3,∀u=0,1, . . . ,It−1
where Δhi
(5-2) A flow constraint and a pressure constraint of natural gas in a pipeline in the natural gas network are established. The step (5-2) includes steps (5-2-1) to (5-2-5).
(5-2-1) A two-port constraint of the pipeline in the natural gas network of each frequency component ωd in the frequency-domain window is established:
where hi
where li
where g represents an acceleration of gravity; Di
R
i
=λi
L
i
=1/Ai
C
i
=A
i
/(RT)
where Ai
(5-2-3) A time domain-frequency-domain mapping constraint of the natural gas flow at the head end of the pipeline of the natural gas network is established:
G
i
,u
+=Σd=0I
where Re( ) represents valuing a real part of a complex number; Im( ) represents valuing an imaginary part of the complex number; and θd represents a parameter calculated with ωd as follows:
θd=If·ωd−ωd.
(5-2-4) A time domain-frequency-domain mapping constraint of the natural gas flow at the tail end of the pipeline of the natural gas network is established:
G
i
,u
−=Σd=0I
(5-2-5) A time domain-frequency-domain mapping constraint of nodes of the natural gas network is established:
h
i
,u=Σd=0I
where hi
(5-3) A topological constraint of the natural gas network is established. The step (5-3) includes steps (5-3-1) to (5-3-3).
(5-3-1) A flow balance constraint of a node of the natural gas network is established:
where Ωp+,i
(5-3-2) Constraints of a pipeline-compressor-node time-domain pressure relationship in the natural gas network are established:
h
i
,u
+
=h
i
,u
,∀i
pϵΩp+,i
h
i
,u
−
=h
i
,u
,∀i
pϵΩp−,i
h
i
,u
+
=h
i
,u
,∀i
cϵΩc−,i
h
i
,u
−
=h
i
,u
,∀i
cϵΩc−,i
(5-3-3) Constraints of a pipeline-node frequency-domain pressure relationship in the natural gas network are established:
h
i
,d
+
=h
i
,d
,∀i
pϵΩp−,i
h
i
,d
−
=h
i
,d
,∀i
pϵΩp−,i
(6) A dynamic state estimation model of the natural gas network is formed by using the objective function of the dynamic state estimation of the natural gas network established in step (4) and the constraint conditions for the dynamic state estimation of the natural gas network established in step (5). The dynamic state estimation model of the natural gas network is solved by using a Lagrange method or an interior point method, to obtain the state vector xu for the dynamic state estimation of the natural gas network at each sampling time point τu. Consequently, the dynamic state estimation of the natural gas network considering the dynamic characteristic of the natural gas pipeline is implemented.
In the embodiments of the present disclosure, commercial software Gurobi or Cplex is used to solve the dynamic state estimation model of the natural gas network.
Number | Date | Country | Kind |
---|---|---|---|
202010447971.6 | May 2020 | CN | national |