The present invention belongs to the technical field of operating and controlling a power system and in particular relates to a method of assessing dynamic flexibility for a virtual power plant.
A virtual power plant is an organic combination of a plurality of distributed energy and resources in a power distribution system and a virtual power plant operator realizes optimized scheduling of internal resources by matched control techniques, such that the virtual power plant operates to participate in grid as a special power plant. However, features of flexible resources inside the virtual power plant differ from each other and an output power of each device in the virtual power plant is restricted by a network constraint condition. Therefore, in optimized operation of the virtual power plant, it is necessary to satisfy a capacity constraint condition of a device, a branch capacity constraint condition and a node voltage constraint condition as well as a time-coupling constraint condition like an energy constraint condition and a climbing constraint condition of an energy storage device, which bring difficulties for assessing flexibility of the virtual power plant.
For the above problems, the present invention provides a method of accessing dynamic flexibility for a virtual power plant, for fast solution of a constraint condition for flexibility ranges of an active power at a grid entry point in the virtual power plant at the precondition of considering an operation constraint for a device inside the virtual power plant and for maximum exploration of flexibility ranges of an output active power in the virtual power plant, so as to provide reference for scientific scheduling and decisions of grid.
The purpose of the present invention is to provide a method of assessing dynamic flexibility for a virtual power plant, comprising, firstly, building a distributed energy-resource model of a virtual power plant and a three-phase asymmetrical network model of the virtual power plant; secondly, splitting a device inside the virtual power plant into energy-storage-type and generator-type devices, and extracting an operation constraint condition of an equivalent energy storage device and an equivalent generator based on a Robust optimization method; and finally, solving a constraint parameter respectively for an equivalent energy storage device and an equivalent generator based on a two-stage robust optimization algorithm. The method provided realizes assessment of dynamic flexibility for the virtual power plant with consideration of time-coupling constraints. Compared with the prior method, the method is more definite in a physical sense and sufficient in exploration of flexibility ranges for the virtual power plant, thereby decreasing waste of flexibility for the virtual power plant. Therefore, it has a great value in an actual application.
The method of assessing dynamic flexibility for a virtual power plant, as provided in the present invention comprises the following steps:
(1) Building a Distributed Energy-Resource Model of a Virtual Power Plant
(1.1) A Gas Turbine
the output power constraint condition of the gas turbine is as follows:
wherein, Pi,ψ,tCHP denotes an output active power of the ψ-phase gas turbine at node i at moment t; Qi,ψ,tCHP denotes an output inactive power of the ψ-phase gas turbine at node i at moment t;
a climbing constraint condition of an active power of the gas turbine is as follows:
−riCHP≤Pi,tCHP−Pi,t−1CHP≤riCHP (4)
wherein, riCHP denotes a climbing parameter of the gas turbine at node i and Pi,t−1CHP denotes an output active power of the ψ-phase gas turbine at node i at moment t−1.
(1.2) An Energy Storage Device
the output power constraint condition of the energy storage device is as follows:
wherein, Pi,ψ,tESS denotes a net output active power of the ψ-phase energy storage device at node i at moment t; Qi,ψ,tESS denotes a net output inactive power of the ψ-phase energy storage device at node i at moment t;
formula (6) approximates the following linear formula:
−
−
−√{square root over (2)}
√{square root over (2)}
an energy constraint condition of the energy storage device is as follows:
E
i
ESS
≤E
i,t
ESS
≤E
i
ESS (12)
E
i,t
ESS=αiESSEi,t−1ESS+Pi,tESSΔt (13)
wherein, Ei,tESS denotes energy of the energy storage device at moment t at node i; Ei,t−1ESS denotes energy of the energy storage device at moment t−1 at node i; EiESS denotes minimum energy of the energy storage device at node i; EiESS denotes maximum energy of the energy storage device at node i; αiESS denotes a self-discharge rate of the energy storage device at node i; and Δt denotes a time interval of two decision moments.
(1.3) A Photovoltaic Power Generation Device
the output power constraint condition of the photovoltaic power generation device is as follows:
wherein, Pi,ψ,tPV denotes an output active power of the ψ-phase photovoltaic power generation device at node i at moment t; Qi,ψ,tPV denotes an output inactive power of the ψ-phase photovoltaic power generation device at node i at moment t; Pi,ψPV denotes a minimum output active power of the ψ-phase photovoltaic power generation device at node i;
formula (15) approximates the following linear formula:
−
−
−√{square root over (2)}
−√{square root over (2)}i,ψPV≤Pi,ψ,tPV−Qi,ψ,tPV≤√{square root over (2)}
(1.4) A Wind Generator
the output power constraint condition of the wind generator is as follows:
wherein Pi,ψ,tWT denotes an output active power of the ψ-phase wind generator at node i at moment t; Qi,ψtWT denotes an output inactive power of the ψ-phase wind generator at node i at moment t; Pi,ψWT denotes a minimum output active power of the ψ-phase wind generator at node i;
formula (22) approximates the following linear formula:
−
−
−√{square root over (2)}
−√{square root over (2)}
(1.5) A Demand-Side Responsive Heating Load
the output power constraint condition of the demand-side responsive heating load is as follows:
wherein, Pi,ψ,tHVAC denotes an active power of the ψ-phase demand-side responsive heating load at node i at moment t; Qi,ψ,tHVAC denotes an inactive power of ψ-phase demand-side responsive heating load at node i at moment t; φiHVAC denotes a power coefficient of the demand-side responsive heating load at node i at moment t;
a temperature constraint of a heating load device is as follows:
T
i,t
HVAC
=T
i,t−1
HVAC+αiHVAC(Ti,tENV−Ti,t−1HVAC)+βiHVACPi,tHVAC (31)
T
i
HVAC
≤T
i,t
HVAC
≤
i
HVAC (32)
wherein, Ti,tHVAC demotes a temperature of the demand-side responsive heating load at node i at moment; Ti,t−1HVAC denotes a temperature of the demand-side responsive heating load at node i at moment t−1; Ti,tENV denotes an outdoor temperature of the demand-side responsive heating load at node i at moment t; αiHVAC denotes a heat dissipation parameter of the demand-side responsive heating load at node i; βiHVAC denotes an electricity-heat conversion parameter of the demand-side responsive heating load at node i; TiHVAC denotes a lower temperature limit of the demand-side responsive heating load at node i; and
(1.6) An Electric Vehicle Charging Station
the output power constraint condition of the electric vehicle charging station is as follows:
Wherein, Pi,ψ,tEV denotes an active power of the ψ-phase electric vehicle charging station at node i at moment t; Qi,ψ,tEV denotes an inactive power of the ψ-phase electric vehicle charging station at node i at moment t; φiEV denotes a power coefficient of the electric vehicle charging station at node i;
an energy constraint of the electric vehicle charging station is as follows:
wherein Ēi,tEV denotes a maximum output energy of the electric vehicle charging station at node i at moment t; and Ei,tEV denotes a minimum output energy of the electric vehicle charging station at node i at moment t.
(2) Building a Power Flow Model for the Virtual Power Plant Network
Based on a three-phase asymmetrical linear power flow model, each voltage magnitude and each branch current for each node, and an injection active power, and an injection inactive power of a grid entry point in the virtual power plant network are represented as follows:
V=Cy+c (37)
i
ij
=Dy+d (38)
p
0
=Gy+g (39)
q
0
=Hy+h (40)
Wherein, V denotes a vector consisting of a magnitude of each node and each phase voltage; iij a denotes a vector consisting of each branch current; p0 denotes an injection active power of the grid entry point in the virtual power plant; q0 denotes an injection inactive power of the grid entry point in the virtual power plant; matrices C, D, G and H, vectors c and d, and constants g and h are constant parameters of a system; y denotes a vector consisting of the injection power vector, that is, y:=[(pY)T, (qY)T, (pΔ)T, (qΔ)T]T, wherein pY, pΔ, pY, qΔ respectively denotes a vector consisting of the injection active power of a Y-type grid entry node, a vector consisting of the injection active power of a Δ-type grid entry node, a vector consisting of an injected inactive power of a Y-type grid entry node, and a vector consisting of an injected inactive power node of a Δ-type grid entry node.
for ∀i∈NY, ψ∈ϕY, the injection power vector of nodes of each type at each moment can be calculated as:
p
i,ψ,t
Y
=P
i,ψ,t
CHP
+P
i,ψ,t
ESS
+P
i,ψt
PV
+P
i,ψ,t
WT
−P
i,ψt
HVAC
−P
i,ψ,t
EV
−P
i,ψ,t
LOAD (41)
q
i,ψ,t
Y
=Q
i,ψ,t
CHP
+Q
i,ψ,t
ESS
+Q
i,ψ,t
PV
+Q
i,ψ,t
WT
−Q
i,ψ,t
HVAC
−Q
i,ψ,t
EV
−Q
i,ψ,t
LOAD (42)
for ∀i∈NΔ, ψ∈ϕΔ:
p
i,ψ,t
Δ
=P
i,ψ,t
CHP
+P
i,ψ,t
ESS
+P
i,ψ,t
PV
+P
i,ψ,t
WT
−P
i,ψ,t
HVAC
−P
i,ψ,t
EV
−P
i,ψ,t
LOAD (43)
q
i,ψ,t
Δ
−Q
i,ψ,t
CHP
+Q
i,ψ,t
ESS
+Q
i,ψ,t
PV
+Q
i,ψ,t
WT
−Q
i,ψ,t
HVAC
−Q
i,ψ,t
EV
−Q
i,ψ,t
LOAD (44)
wherein, Pi,ψ,tLOAD denotes an active power of the ψ-phase load at node i at moment t; Qi,ψ,tLOAD denotes an inactive power of the ψ-phase load at node i at moment t; pi,ψ,tY denotes an injection active power of the ψ-phase Y-type grid entry node at node i at moment t; qi,ψ,tΔ denotes an injection inactive power of the ψ-phase Y-type grid entry node at node i at moment t; pi,ψ,tΔ denotes an injection active power of the ψ-phase Δ-type grid entry node at node i at moment t; qi,ψ,tΔ denotes an injection inactive power of the ψ-phase Δ-type grid entry node at node i at moment t; NY denotes a set consisting of serial numbers of Y-type grid entry nodes; NΔ denotes a set consisting of serial numbers of Δ-type grid entry nodes; ϕY denotes a set consisting of phases of Y-type grid entry nodes; and ϕΔ denotes a set consisting of phases of Δ-type grid entry nodes.
The network constraint condition of the virtual power plant is as follows:
V≤V≤
−īij≤iij≤īij (46)
Wherein, V denotes a vector consisting of a minimum voltage at each phase and each node;
(3) Extracting an Operation Constraint Condition of Energy-Storage-Type and Generator-Type Distributed Resources
(3.1) Building Three Types of Decision Variable Vectors
Defining a decision variable vector consisting of an active output power and an inactive output power of all distributed generation resources as x, a constraint condition consisting of formulas (1)-(5), (7)-(14), (16)-(21), (23)-(38) and (45)-(46) can be represented as a form of a following matrix:
Mx≤n (47)
Wherein, matrix M and vector n are constant constraint parameters organized based on the constraint condition.
An element x in the decision variable vector can be divided into the following three types: (1) defining all energy storage devices, demand-side responsive heating load and electric vehicle charging stations as energy-storage-type devices, and a decision variable vector consisting of output active power of all energy-storage-type devices as PE; (ii) defining all gas turbines, photovoltaic power generation devices and wind generator devices as generator-type devices, and a decision variable consisting of output active power of all generator-type device as PG; and (iii) defining a decision variable consisting of inactive power of all distributed energy-resource devices as Q. Formula (47) can be rewritten as:
(3.2) On the Basis of Extracting an Operation Constraint Condition of Distributed Resources of Generator-Type Devices
regarding PG as a random parameter in Robust optimization, a parameter in formula (48) is written in a form of the following block matrix:
wherein, MG0, MEE, MGE and MQE are corresponding blocks in matrix M; and n1E and n2E are corresponding blocks in vector n;
a constraint relation between parameters PG in formula (49) and a constraint relation between variables PE, Q and parameters PG are extracted and represented as formula Error! Reference source not found. and formula Error! Reference source not found. respectively:
M
G0
P
G
≤n
1
E (50)
M
E
E
P
E
+M
Q
E
Q≤n
2
E
−M
E
G
P
G (51)
solution of a Robust optimization problem: for any PG that satisfies a constraint condition MG0PG≤n1E, a constraint condition of formula (51) is made true constantly, which is equivalent to solution of an optimization problem in formula Error! Reference source not found.
wherein, an operator (•)i denotes elements at ith line of the matrix or vector.
an operation constraint condition of energy-storage-type distributed resources is obtained as:
E
E
x
E
≤f
E (53)
wherein matrix EE and vector fE are parameters obtained by solving the Robust optimization problem in formula (52); and xE is a decision variable of equivalent energy storage, that is:
(3.3) On the Basis of Extracting an Operation Constraint Condition of Distributed Resources of Energy-Storage-Type Devices
regarding PE as a random parameter in Robust optimization, a parameter in formula (48) is written in a form of the following block matrix:
wherein, ME0, MEG, MGG and MQG are corresponding blocks in matrix M, and n1G and n2G are corresponding blocks in vector n.
a constraint relation between parameters PE in formula (49) and a constraint relation between variables PG, Q and parameters PG are extracted and represented as formula Error! Reference source not found. and formula Error! Reference source not found. respectively:
M
E0
P
E
≤n
1
G (58)
M
G
G
P
G
+M
Q
G
Q≤n
2
G
−M
E
G
P
E (59)
solution of a Robust optimization problem: for any PE that satisfies a constraint condition ME0PE≤n1G, a constraint condition of formula (59) is made true constantly, which is equivalent to solution of an optimization problem in formula Error! Reference source not found.
an operation constraint condition of energy-storage-type distributed resources is obtained as:
E
G
x
G
≤f
G (61)
wherein, matrix EG and vector fG are parameters obtained by solving the Robust optimization problem in formula (60); and xG is a decision variable of an equivalent generator, that is:
(4) Solving a Constraint Parameter of an Equivalent Energy-Storage-Type Device and an Equivalent Generator-Type Device
(4.1) Solving a Constraint Parameter of an Equivalent Energy-Storage-Type Device
a constraint parameter of an equivalent energy storage device is divided into major problems (65)—Error! Reference source not found. and minor problems Error! Reference source not found.—Error! Reference source not found. to be solved.
the major problems are reflected as the following forms:
wherein, matrix AE is a constant matrix denoting upper and lower limits of an output power of equivalent energy storage and a constraint parameter of upper and lower energy limits of energy storage, with a specific form thereof indicated by formula (69); vector bE denotes an intercept of each high-dimension hyperplane for a polyhedron of a flexible and feasible region; vector uE is a constant matrix denoting sum of distances for a parallel plane of a flexible and feasible region, with a specific form thereof indicated by formula (70); vector ξ denotes an active power output track of an equivalent energy storage device; matrix CE and vector dE are a constant matrix denoting a relation between a decision variable xE of an equivalent energy storage device and an active power output track ξ, with a value thereof obtained by formula (39). K denotes a total number of scenes; ξ*k denotes an output active power track of an equivalent energy storage device in a kth scene; zk denotes a vector of a kth scene consisting of a 0/1 decision variable; nz denotes a dimensional number of zk; and M denotes a very big constant with a value thereof generally being 1×106.
A
E=[IT −IT ΓT −ΓT]T (69)
u
E=[1TT −1TT 1TT −1TT]T (70)
wherein, T denotes the number of moments considered; IT denotes a unit array when a dimensional number is T; 1T denotes a total 1-row vector with T elements; and matrix Γ is defined as shown in Error! Reference source not found.
wherein, γ denotes a self-discharge rate of an equivalent energy storage device.
the minor problems are reflected as the following forms:
wherein, b*E denotes a result obtained by optimization of the major problem.
to facilitate solution, antithetic and KKT conditions are used successively to convert the minor problems (72)-(75) into a mixed integer planning problem shown by formula Error! Reference source not found.
wherein, s denotes a vector consisting of a 0/1 decision variable; ns denotes a dimensional number of s; ω denotes an antithetic variable of constraint (73); π denotes am antithetic variable of constraint (74); and λ denotes an antithetic variable of constraint (75).
A constraint parameter solution algorithm process of an equivalent energy-storage-type device is as follows:
a. initializing: allowing K=0;
b. solving the major problems (65)-(68), thereby obtaining an optimal solution b*E;
c. based on the optimal solution b*E, solving an equivalence problem (76) of the minor problem, thereby obtaining an optimal solution ξ*K+1 and a target function value ƒ*E;
d. if fE*<1×10−6 meets, ending algorithm with b*E as a final solution result; otherwise, adding following constraint condition (77)-(79) to the major problem and allowing K←K+1, and returning to the step b.
A
EξK+1*≥bE−M(1−zK+1) (77)
1TzK+1≥1 (78)
z
K+1∈{0,1}n
ξ*K+1 denotes a constant vector added to a major problem iterated for the K+1 time with a value thereof as an optimal solution of a previous iteration; and ZK+1 denotes a variable consisting of a 0/1 decision vector in iteration process of the K+1 time.
(4.2) Solving a Constraint Parameter of an Equivalent Generator
a constraint parameter of an equivalent generator is divided into major problem (80)—Error! Reference source not found. and minor problems Error! Reference source not found.—Error! Reference source not found. to be solved.
the major problems are reflected as the following forms:
wherein, matrix AG is a constant matrix denoting upper and lower limits of an output power of an equivalent generator and a constraint parameter of upper and lower climbing limits, with a specific form thereof indicated by formula (84); vector bG denotes an intercept of each high-dimension hyperplane for a polyhedron of a flexible and feasible region; vector uG is a constant matrix denoting sum of distances for a parallel plane of a flexible and feasible region, with a specific form thereof indicated by formula (85); vector ξ denotes an active power output track of an equivalent generator; matrix CG and vector dG are a constant matrix denoting a relation between a decision variable xG of an equivalent generator and an active power output track ξ, with a value thereof obtained by formula (39).
A
G=[IT −IT ΛT −ΛT]T (84)
u
G=[1TT −1TT 1T−1T −1T−1T]T (85)
wherein, 1T−1 denotes a total 1-row vector with T−1 elements; and matrix Λ is a matrix having a size of (T−1)×T, which is defined as shown in Error! Reference source not found.
the minor problems are reflected as the following forms:
wherein, b*G denotes a result obtained by optimization of the major problem.
To facilitate solution, antithetic and KKT conditions are used successively to convert the minor problems (87)-(90) into a mixed integer planning problem shown by formula Error! Reference source not found.
Wherein, ω denotes an antithetic variable of constraint (88); π denotes am antithetic variable of constraint (89); and λ denotes an antithetic variable of constraint (90).
A constraint parameter solution algorithm process of an equivalent generator is as follows:
a. initializing: allowing K=0;
b. solving the major problems (80)-(83), thereby obtaining an optimal solution b*G;
c. based on the optimal solution b*G, solving an equivalence problem (76) of the minor problems, thereby obtaining an optimal solution ξ*K+1 and a target function value ƒ*G.
d. if ƒG*<1×10−6 meets, ending algorithm with b*G as a final solution result;
otherwise, adding following constraint condition (92)-(94) to the major problem and allowing K←K+1, and returning to the step b;
A
GξK+1*≥bG−M(1−zK+1) (92)
1TzK+1≥1 (93)
z
K+1∈{0,1}n
ξ*K+1 denotes a constant vector added to a major problem iterated for the K+1 time with a value thereof as an optimal solution of a previous iteration; and ZK+1 denotes a variable consisting of a 0/1 decision vector in iteration process of the K+1 time.
(5) Obtaining an Assessment Result of Flexibility for the Virtual Power Plant
an assessment result of flexibility for the virtual power plant is obtained based on the result in the step (4), that is, a virtual power plant can be equaled to an equivalent energy-storage-type device and an equivalent generator-type device, and flexibility ranges of the two types of device are respectively shown in formula Error! Reference source not found. and formula Error! Reference source not found. An output active power of the virtual power plant is denoted in a form of formula Error! Reference source not found.
A
E
P
ESS
≤b*
E (95)
A
G
P
GEN
≤b*
G (96)
P
VPP
=P
ESS
+P
GEN (97)
wherein PESS denotes a vector consisting of output active power of equivalent energy-storage-type devices at each moment; PGEN denotes a vector consisting of output active power of equivalent generator-type devices at each moment; and PVPP denotes a vector consisting an output active power of a virtual power plant at each moment.
Other features and advantages of the present invention will be stated in the subsequent description and partially become apparent from the description or understood by implementing the present invention. The purpose and other advantages of the present invention can be realized and obtained by a structure as pointed out in the description, claims and accompanying drawings.
To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
With a method of accessing dynamic flexibility for a virtual power plant, what is shown in
(1) Building a Distributed Energy-Resource Model of a Virtual Power Plant
(1.1) A Gas Turbine
the output power constraint condition of the gas turbine is as follows:
wherein Pi,ψ,tCHP denotes an output active power of the ψ-phase gas turbine at node i at moment t; Qi,ψ,tCHP denotes an output inactive power of the ψ-phase gas turbine at node i at moment t;
a climbing constraint condition of an active power of the gas turbine is as follows:
−riCHP≤Pi,tCHP−Pi,t−1CHP≤riCHP (4)
wherein riCHP denotes a climbing parameter of the gas turbine at node i and Pi,t−1CHP denotes an output active power of the ψ-phase gas turbine at node i at moment t−1.
(1.2) an Energy Storage Device
the output power constraint condition of the energy storage device is as follows:
wherein, Pi,ψ,tESS denotes a net output active power of the ψ-phase energy storage device at node i at moment t; Qi,ψ,tESS denotes a net output inactive power of the ψ-phase energy storage device at node i at moment t;
formula (6) approximates the following linear formula:
−
−
−√{square root over (2)}
√{square root over (2)}
an energy constraint condition of the energy storage device is as follows:
E
i
ESS
≤E
i,t
ESS
≤E
i
ESS (12)
E
i,t
ESS=αiESSEi,t−1ESS+Pi,tESSΔt (13)
wherein, Ei,tESS denotes energy of the energy storage device at moment t at node i; Ei,t−1ESS denotes energy of the energy storage device at moment t−1 at node i; EiESS denotes minimum energy of the energy storage device at node i; ĒiESS denotes maximum energy of the energy storage device at node i; αiESS denotes a self-discharge rate of the energy storage device at node i; and Δt denotes a time interval of two decision moments.
(1.3) a Photovoltaic Power Generation Device
the output power constraint condition of the photovoltaic power generation device is as follows:
wherein, Pi,ψ,tPV denotes an output active power of the ψ-phase photovoltaic power generation device at node i at moment t; Qi,ψ,tPV denotes an output inactive power of the ψ-phase photovoltaic power generation device at node i at moment t; Pi,ψPV denotes a minimum output active power of the ψ-phase photovoltaic power generation device at node i;
formula (15) approximates the following linear formula:
−
−
−√{square root over (2)}
−√{square root over (2)}i,ψPV≤Pi,ψ,tPV−Qi,ψ,tPV≤√{square root over (2)}
(1.4) A Wind Generator
the output power constraint condition of the wind generator is as follows:
Wherein, Pi,ψWT denotes an output active power of the ψ-phase wind generator at node i at moment t; Qi,ψ,tWT denotes an output inactive power of the ψ-phase wind generator at node i at moment t; Pi,ψWT denotes a minimum output active power of the ψ-phase wind generator at node i;
formula (22) approximates the following linear formula:
−
−
−√{square root over (2)}
−√{square root over (2)}
(1.5) A Demand-Side Responsive Heating Load
the output power constraint condition of the demand-side responsive heating load is as follows:
wherein, Pi,ψtHVAC denotes an active power of the ψ-phase demand-side responsive heating load at node i at moment t; Qi,ψ,tHVAC denotes an inactive power of the ψ-phase demand-side responsive heating load at node i at moment t; φiHVAC denotes a power coefficient of the demand-side responsive heating load at node i at moment t;
a temperature constraint of a heating load device is as follows:
T
i,t
HVAC
=T
i,t−1
HVAC+αiHVAC(Ti,tENV−Ti,t−1HVAC)+βiHVACPi,tHVAC (31)
T
i
HVAC
≤T
i,t
HVAC
≤
i
HVAC (32)
wherein, Ti,tHVAC demotes a temperature of the demand-side responsive heating load at node i at moment; Ti,t−1HVAC denotes a temperature of the demand-side responsive heating load at node i at moment t−1; Ti,tENV denotes an outdoor temperature of the demand-side responsive heating load at node i at moment t; αiHVAC denotes a heat dissipation parameter of the demand-side responsive heating load at node i; βiHVAC denotes an electricity-heat conversion parameter of the demand-side responsive heating load at node i; TiHVAC denotes a lower temperature limit of the demand-side responsive heating load at node i; and
(1.6) An Electric Vehicle Charging Station
the output power constraint condition of the electric vehicle charging station is as follows:
wherein, Pi,ψ,tEV denotes an active power of the ψ-phase electric vehicle charging station at node i at moment t; Qi,ψ,tEV denotes an inactive power of the ψ-phase electric vehicle charging station at node i at moment t; φiEV denotes a power coefficient of the electric vehicle charging station at node i;
an energy constraint of the electric vehicle charging station is as follows:
wherein, Ēi,tEV denotes a maximum output energy of the electric vehicle charging station at node i at moment t; and Ei,tEV denotes a minimum output energy of the electric vehicle charging station at node i at moment t.
(2) Building a Power Flow Model of a Virtual Power Plant Network
Based on a three-phase asymmetrical linear power flow model, each voltage magnitude and each branch current for each node, and an injection active power, and an injection inactive power of a grid entry point in the virtual power plant network are represented as follows:
V=Cy+c (37)
i
ij
=Dy+d (38)
p
0
=Gy+g (39)
q
0
=Hy+h (40)
Wherein, V denotes a vector consisting of a magnitude of each node and each phase voltage; iij a denotes a vector consisting of each branch current; p0 denotes an injection active power of the grid entry point in the virtual power plant; q0 denotes an injection inactive power of the grid entry point in the virtual power plant; matrices C, D, G and H, vectors c and d, and constants g and h are constant parameters of a system; y denotes a vector consisting of the injection power vector, that is, y=[(pY)T, (qY)T, (pΔ)T, (qΔ)T]T, wherein pY, pΔ, qY, qΔ respectively denotes a vector consisting of the injection active power of a Y-type grid entry node, a vector consisting of the injection active power of a Δ-type grid entry node, a vector consisting of an injected inactive power of a Y-type grid entry node, and a vector consisting of an injected inactive power node of a Δ-type grid entry node.
for ∀i∈NY, ψ∈ϕY the injection power vector of nodes of each type at each moment can be calculated as:
p
i,ψ,t
Y
=P
i,ψ,t
CHP
+P
i,ψ,t
ESS
+P
i,ψt
PV
+P
i,ψ,t
WT
−P
i,ψt
HVAC
−P
i,ψ,t
EV
−P
i,ψ,t
LOAD (41)
q
i,ψ,t
Y
=Q
i,ψ,t
CHP
+Q
i,ψ,t
ESS
+Q
i,ψ,t
PV
+Q
i,ψ,t
WT
−Q
i,ψ,t
HVAC
−Q
i,ψ,t
EV
−Q
i,ψ,t
LOAD (42)
p
i,ψ,t
Δ
=P
i,ψ,t
CHP
+P
i,ψ,t
ESS
+P
i,ψ,t
PV
+P
i,ψ,t
WT
−P
i,ψ,t
HVAC
−P
i,ψ,t
EV
−P
i,ψ,t
LOAD (43)
q
i,ψ,t
Δ
−Q
i,ψ,t
CHP
+Q
i,ψ,t
ESS
+Q
i,ψ,t
PV
+Q
i,ψ,t
WT
−Q
i,ψ,t
HVAC
−Q
i,ψ,t
EV
−Q
i,ψ,t
LOAD (44)
wherein, Pi,ψ,tLOAD denotes an active power of the ψ-phase load at node i at moment t; Qi,ψ,tLOAD denotes an inactive power of the ψ-phase load at node i at moment t; pi,ψ,tY denotes an injection active power of the ψ-phase Y-type grid entry node at node i at moment t; qi,ψ,tY denotes an injection inactive power of the ψ-phase Y-type grid entry node at node i at moment t; pi,ψ,tΔ denotes an injection active power of the ψ-phase Δ-type grid entry node at node i at moment t; qi,ψ,tΔ denotes an injection inactive power of the ψ-phase Δ-type grid entry node at node i at moment t; NY denotes a set consisting of serial numbers of Y-type grid entry nodes; NΔ denotes a set consisting of serial numbers of Δ-type grid entry nodes; ϕY denotes a set consisting of phases of Y-type grid entry nodes; and ϕΔ denotes a set consisting of phases of Δ-type grid entry nodes.
A network constraint condition of the virtual power plant is as follows:
V≤V≤
−īij≤iij≤īij (46)
Wherein, V denotes a vector consisting of a minimum voltage at each phase and each node;
(3) Extracting an Operation Constraint Condition of Energy-Storage-Type and Generator-Type Distributed Resources
(3.1) Building Three Types of Decision Variable Vectors
defining a decision variable vector consisting of an active output power and an inactive output power of all distributed generation resources as x, a constraint condition consisting of formulas (1)-(5), (7)-(14), (16)-(21), (23)-(38) and (45)-(46) can be represented as a form of a following matrix:
Mx≤n (47)
wherein, matrix M and vector n are constant constraint parameters organized based on the constraint condition.
An element x in the decision variable vector can be divided into the following three types: (1) defining all energy storage devices, demand-side responsive heating load and electric vehicle charging stations as energy-storage-type devices, and a decision variable vector consisting of output active power of all energy-storage-type devices as PE; (ii) defining all gas turbines, photovoltaic power generation devices and wind generator devices as generator-type devices, and a decision variable consisting of output active power of all generator-type device as PG; and (iii) defining a decision variable consisting of inactive power of all distributed energy-resource devices as Q, Formula (47) can be rewritten as:
(3.2) On the Basis of Extracting an Operation Constraint Condition of Distributed Resources of Generator-Type Devices
regarding PG as a random parameter in Robust optimization, a parameter in formula (48) is written in a form of the following block matrix:
wherein, MG0, MEE, MGE and MQE are corresponding blocks in matrix M, and n1E and n2E are corresponding blocks in vector n.
a constraint relation between parameters PG in formula (49) and a constraint relation between variables PE, Q and parameters PG are extracted and represented as formula (50) and formula (51) respectively:
M
G0
P
G
≤n
1
E (50)
M
E
E
P
E
+M
Q
E
Q≤n
2
E
−M
G
E
P
G (51)
solution of a Robust optimization problem: for any PG that satisfies a constraint condition PG0PG≤n1E, a constraint condition of formula (51) is made true constantly, which is equivalent to solution of an optimization problem in formula (52):
wherein, an operator (•)i denotes elements at ith line of the matrix or vector.
an operation constraint condition of energy-storage-type distributed resources is obtained as follows:
E
E
x
E
≤f
E (53)
wherein, matrix EE and vector fE are parameters obtained by solving the Robust optimization problem in formula (52); and xE is a decision variable of equivalent energy storage, that is:
(3.3) On the Basis of Extracting an Operation Constraint Condition of Distributed Resources of Energy-Storage-Type Devices
regarding PE as a random parameter in Robust optimization, a parameter in formula (48) is written in a form of the following block matrix:
wherein, ME0, MEG, MGG and MQG are corresponding blocks in matrix M; and n1G and n2G are corresponding blocks in vector n.
a constraint relation between parameters PE in formula (49) and a constraint relation between variables PG, Q and parameters PG are extracted and represented as formula (58) and formula (59) respectively:
M
E0
P
E
≤n
1
G (58)
M
G
G
P
G
+M
Q
G
Q≤n
2
G
−M
E
G
P
E (59)
solution of a Robust optimization problem: for any E that satisfies a constraint condition ME0PE≤n1G, a constraint condition of formula (59) is made true constantly, which is equivalent to solution of an optimization problem in formula (60):
an operation constraint condition of energy-storage-type distributed resources is obtained as follows:
E
G
x
G
≤f
G (61)
wherein, matrix EG and vector fG re parameters obtained by solving the Robust optimization problem in formula (60); and xG is a decision variable of an equivalent generator. that is:
(4) Solving a Constraint Parameter of an Equivalent Energy Storage Device and an Equivalent Generator
(4.1) Solving a Constraint Parameter of an Equivalent Energy Storage Device
a constraint parameter of an equivalent energy storage device is divided into major problems (65)-(68) and minor problems (72)-(75) to be solved.
the major problems are reflected as the following forms:
wherein, matrix AE is a constant matrix denoting upper and lower limits of an output power of equivalent energy storage and a constraint parameter of upper and lower energy limits of energy storage, with a specific form thereof indicated by formula (69); vector bE denotes an intercept of each high-dimension hyperplane for a polyhedron of a flexible and feasible region; vector uE is a constant matrix denoting sum of distances for a parallel plane of a flexible and feasible region, with a specific form thereof indicated by formula (70); vector ξ denotes an active power output track of an equivalent energy storage device; matrix CE and vector dE are a constant matrix denoting a relation between a decision variable xE of an equivalent energy storage device and an active power output track ξ, with a value thereof obtained by formula (39). K denotes a total number of scenes; ξ*k denotes an output active power track of an equivalent energy storage device in a kth scene; zk denotes a vector of a kth scene consisting of a 0/1 decision variable; nz denotes a dimensional number of zk; and M denotes a very big constant with a value thereof generally being 1×106.
A
E=[IT −IT ΓT −ΓT]T (69)
u
E=[1TT −1TT 1TT −1TT]T (70)
wherein, T denotes the number of moments considered; IT denotes a unit array when a dimensional number is T; 1T denotes a total 1-row vector with T elements; and matrix Γ is defined as shown in (71):
wherein, γ denotes a self-discharge rate of an equivalent energy storage device.
The minor problems are reflected as the following forms:
Wherein, b*E denotes a result obtained by optimization of the major problem.
To facilitate solution, antithetic and KKT conditions are used successively to convert the minor problems (72)-(75) into a mixed integer planning problem shown by formula (76):
Wherein, s denotes a vector consisting of a 0/1 decision variable; ns denotes a dimensional number of s; ω denotes an antithetic variable of constraint (73); n denotes am antithetic variable of constraint (74); and λ denotes an antithetic variable of constraint (75).
A constraint parameter solution algorithm process of an equivalent energy-storage-type device is as follows:
a. initializing: allowing K=0;
b. solving the major problems (65)-(68), thereby obtaining an optimal solution b*E;
c. based on the optimal solution b*E, solving an equivalence problem (76) of the minor problem, thereby obtaining an optimal solution ξ*K+1 and a target function value ƒ*E;
d. if ƒE*<1×10−6 meets, ending algorithm with b*E as a final solution result; otherwise, adding following constraint condition (77)-(79) to the major problem and allowing K←K+1, and returning to the step b;
A
EξK+1*≥bE−M(1−zK+1) (77)
1TzK+1≥1 (78)
z
K+1∈{0,1}n
(4.2) Solving a Constraint Parameter of an Equivalent Generator
a constraint parameter of an equivalent generator is divided into major problems (80)-(83) and minor problems (87)-(90) to be solved.
the major problems are reflected as the following forms:
wherein, matrix AG is a constant matrix denoting upper and lower limits of an output power of an equivalent generator and a constraint parameter of upper and lower climbing limits, with a specific form thereof indicated by formula (84); vector bG denotes an intercept of each high-dimension hyperplane for a polyhedron of a flexible and feasible region; vector uG is a constant matrix denoting sum of distances for a parallel plane of a flexible and feasible region, with a specific form thereof indicated by formula (85); ξ denotes an active power output track of an equivalent generator; matrix CG and vector dG are a constant matrix denoting a relation between a decision variable xG of an equivalent generator and an active power output track ξ, with a value thereof obtained by formula (39).
A
G=[IT −IT ΛT −ΛT]T (84)
u
G=[1TT −1TT 1T−1T −1T−1T]T (85)
wherein, 1T−1 denotes a total 1-row vector with T−1 elements; and matrix A is a matrix having a size of (T−1)×T, which is defined as shown in (86):
the minor problems are reflected as the following forms:
wherein, b*G denotes a result obtained by optimization of the major problem.
To facilitate solution, antithetic and KKT conditions are used successively to convert the minor problems (87)-(90) into a mixed integer planning problem shown by formula (91):
Wherein, ω denotes an antithetic variable of constraint (88); π denotes am antithetic variable of constraint (89); and λ denotes an antithetic variable of constraint (90).
A constraint parameter solution algorithm process of an equivalent energy storage device is as follows:
a. initializing: allowing K=0;
b. solving the major problems (80)-(83), thereby obtaining an optimal solution b*G;
c. based on the optimal solution b*G, solving an equivalence problem (76) of the minor problem, thereby obtaining an optimal solution ξ*K+1 and a target function value ƒ*G;
d. if ƒG*<1×10−6 meets, ending algorithm with b*G as a final solution result; otherwise, adding following constraint condition (92)-(94) to the major problem and allowing K←K+1, and returning to the step b;
(5) Obtaining an Assessment Result of Flexibility for the Virtual Power Plant
An assessment result of flexibility for the virtual power plant is obtained based on the result in the step (4), that is, a virtual power plant can be equaled to an equivalent energy-storage-type device and an equivalent generator-type device, and flexibility ranges of the two types of device are respectively shown in formula (95) and formula (96). An output active power of the virtual power plant is denoted in a form of formula (97).
A
E
P
ESS
≤b*
E (95)
A
G
P
GEN
≤b*
G (96)
P
VPP
=P
ESS
+P
GEN (97)
Wherein, PESS denotes a vector consisting of an output active power of equivalent energy-storage-type devices at each moment; PGEN denotes a vector consisting of an output active power of equivalent generator-type devices at each moment; and PVPP denotes a vector consisting an output active power of a virtual power plant at each moment.
Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof. These modifications or replacements do not enable the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2020113410353 | Nov 2020 | CN | national |