Method of accessing dynamic flexibility for virtual power plant

Information

  • Patent Grant
  • 12136817
  • Patent Number
    12,136,817
  • Date Filed
    Wednesday, September 1, 2021
    3 years ago
  • Date Issued
    Tuesday, November 5, 2024
    a month ago
Abstract
The present invention relates to a method of assessing dynamic flexibility for a virtual power plant, which belongs to the technical field of operating and controlling a power system. The method equals a virtual power plant to an equivalent energy storage device and an equivalent generator and decouples a network constraint condition between the two types of devices through a Robust optimization method. Subsequently, by using a two-stage Robust optimization algorithm, parameters of the equivalent energy storage device and the equivalent generator are calculated and finally accurate depiction is realized on adjusting ability of a distributed resource, so as to provide a scientific decision basis for the virtual power plant to participate in grid control, such that it has a great value in an actual application.
Description
FIELD OF TECHNOLOGY

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.


BACKGROUND

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.


SUMMARY

For the above problems, the present invention provides a method of assessing 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:











P
_


i
,
ψ

CHP



P

i
,
ψ
,
t


C

H

P





P
_


i
,
ψ


C

H

P






(
1
)














Q
_


i
,
ψ

CHP



Q

i
,
ψ
,
t


C

H

P





Q
_


i
,
ψ


C

H

P






(
2
)













P

i
,
t


C

H

P


=



ψ


P

i
,
ψ
,
t


C

H

P







(
3
)







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; Pi,ψCHP denotes a maximum output active power of the ψ-phase gas turbine at node i; Pi,ψCHP denotes a minimum output active power of the ψ-phase gas turbine at node i; Qi,ψCHP denotes a maximum output inactive power of the ψ-phase gas turbine at node i; Qi,ψCHP denotes a minimum output inactive power of the ψ-phase gas turbine at node i; and Pi,tCHP denotes an output active power of the 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:










-


P
_


i
,
ψ

ch




P

i
,
ψ
,
t

ESS




P
_


i
,
ψ


d

c






(
5
)















(

P

i
,
ψ
,
t

ESS

)

2

+


(

Q

i
,
ψ
,
t

ESS

)

2





(


S
_


i
,
ψ

ESS

)

2





(
6
)













P

i
,
t

ESS

=



ψ


P

i
,
ψ
,
t

ESS






(
7
)







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; Pi,ψdc denotes a maximum discharging active power of the ψ-phase energy storage device at node i; Pi,ψch denotes a maximum charging active power of the ψ-phase energy storage device at node i; Si,ψESS denotes a maximum capacity of the ψ-phase energy storage device at node i; and Pi,tESS denotes a net output active power of the energy storage device at node i at moment t.


formula (6) approximates the following linear formula:

Si,ψESS≤Pi,ψ,tESSSi,ψESS  (8)
Si,ψESS≤Qi,ψ,tESSSi,ψESS  (9)
−√{square root over (2)}Si,ψESS≤Pi,ψ,tESS+Qi,ψ,tESS≤√{square root over (2)}Si,ψESS  (10)
−√{square root over (2)}Si,ψESS≤Pi,ψ,tESS−Qi,ψ,tESS≤√{square root over (2)}Si,ψESS  (11)


an energy constraint condition of the energy storage device is as follows:

EiESS≤Ei,tESS≤ĒiESS  (12)
Ei,tESSiESSEi,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:











P
_


i
,
ψ

PV



P

i
,
ψ
,
t

PV




P
_


i
,
ψ

PV





(
14
)















(

P

i
,
ψ
,
t

PV

)

2

+


(

Q

i
,
ψ
,
t

PV

)

2





(


S
_


i
,
ψ

PV

)

2





(
15
)













P

i
,
t

PV

=



ψ


P

i
,
ψ
,
t

PV






(
16
)







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; Pi,ψPV denotes a maximum output active power of the ψ-phase photovoltaic power generation device at node i; Si,ψPV denotes a maximum capacity of the ψ-phase photovoltaic power generation device at node i; and Pi,tPV denotes an output active power of the photovoltaic power generation device at node i at moment t.


formula (15) approximates the following linear formula:

Si,ψPV≤Pi,ψ,tPVSi,ψPV  (17)
Si,ψPV≤Qi,ψ,tPVSi,ψPV  (18)
−√{square root over (2)}Si,ψPV≤Pi,ψ,tPV+Qi,ψ,tPV≤√{square root over (2)}Si,ψPV  (19)
−√{square root over (2)}Si,ψPV≤Pi,ψ,tPV−Qi,ψ,tPV≤√{square root over (2)}Si,ψPV  (20)

(1.4) A Wind Generator


the output power constraint condition of the wind generator is as follows:











P
_


i
,
ψ

WT



P

i
,
ψ
,
t

WT




P
_


i
,
ψ

WT





(
21
)















(

P

i
,
ψ
,
t

WT

)

2

+


(

Q

i
,
ψ
,
t

WT

)

2





(


S
_


i
,
ψ

WT

)

2





(
22
)













P

i
,
t

WT

=



ψ


P

i
,
ψ
,
t

WT






(
23
)







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; Pi,ψWT denotes a maximum output active power of the ψ-phase wind generator at node i; Si,ψWT denotes a maximum capacity of the ψ-phase wind generator at node i; and Pi,tWT denotes a total output active power of the wind generator at node i at moment t.


formula (22) approximates the following linear formula:

Si,ψWT≤Pi,ψ,tWTSi,ψWT  (24)
Si,ψWT≤Qi,ψ,tWTSi,ψWT  (25)
−√{square root over (2)}Si,ψWT≤Pi,ψ,tWT+Qi,ψ,tWT≤√{square root over (2)}Si,ψWT  (26)
−√{square root over (2)}Si,ψWT≤Pi,ψ,tWT−Qi,ψ,tWT≤√{square root over (2)}Si,ψWT  (27)

(1.5) A Demand-Side Responsive Heating Load


the output power constraint condition of the demand-side responsive heating load is as follows:











P
_


i
,
ψ

HVAC



P

i
,
ψ
,
t

HVAC




P
_


i
,
ψ

HVAC





(
28
)













Q

i
,
ψ
,
t

HVAC

=


P

i
,
ψ
,
t

HVAC



tan

(

φ
i
HVAC

)






(
29
)













P

i
,
t

HVAC

=



ψ


P

i
,
ψ
,
t

HVAC






(
30
)







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; Pi,ψHVAC denotes a maximum active power of ψ-phase demand-side responsive heating load at node i; Pi,ψHVAC denotes a minimum active power of the ψ-phase demand-side responsive heating load at node i; and Pi,tHVAC denotes a total output active power of the demand-side responsive heating load at node i at moment t.


a temperature constraint of a heating load device is as follows:

Ti,tHVAC=Ti,t−1HVACiHVAC(Ti,tENV−Ti,t−1HVAC)+βiHVACPi,tHVAC  (31)
TiHVAC≤Ti,tHVACTiHVAC  (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 TiHVAC denotes an upper temperature limit of the demand-side responsive heating load at node i.


(1.6) An Electric Vehicle Charging Station


the output power constraint condition of the electric vehicle charging station is as follows:











P
_


i
,
ψ
,
t

EV



P

i
,
ψ
,
t

EV




P
_


i
,
ψ
,
t

EV





(
33
)













Q

i
,
ψ
,
t

EV

=


P

i
,
ψ
,
t

EV



tan

(

φ
i
EV

)






(
34
)













P

i
,
t

EV

=



ψ


P

i
,
ψ
,
t

EV






(
35
)







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; Pi,ψ,tEV denotes a maximum active power of the ψ-phase electric vehicle charging station at node i at moment t; Pi,ψ,tEV denotes a minimum active power of the ψ-phase electric vehicle charging station at node i; and Pi,tEV denotes a total output active power of the electric vehicle charging station at node i at moment t.


an energy constraint of the electric vehicle charging station is as follows:











E
_


i
,
t

EV







τ
=
1


t



P

i
,
τ


E

V



Δ

t





E
_


i
,
t


E

V






(
36
)







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)
iij=Dy+d  (38)
p0=Gy+g  (39)
q0=Hy+h  (40)


Wherein, V denotes a vector consisting of a magnitude of each node and each phase voltage; iij 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:

pi,ψ,tY=Pi,ψ,tCHP+Pi,ψ,tESS+Pi,ψ,tPV+Pi,ψ,tWT−Pi,ψ,tHVAC−Pi,ψ,tEV−Pi,ψ,tLOAD  (41)
qi,ψ,tY=Qi,ψ,tCHP+Qi,ψ,tESS+Qi,ψ,tPV+Qi,ψ,tWT−Qi,ψ,tHVAC−Qi,ψ,tEV−Qi,ψ,tLOAD  (42)


for ∀i∈NΔ, ψ∈ϕΔ:

pi,ψ,tΔ=Pi,ψ,tCHP+Pi,ψ,tESS+Pi,ψ,tPV+Pi,ψ,tWT−Pi,ψ,tHVAC−Pi,ψ,tEV−Pi,ψ,tLOAD   (43)
qi,ψ,tΔ=Qi,ψ,tCHP+Qi,ψ,tESS+Qi,ψ,tPV+Qi,ψ,tWT−Qi,ψ,tHVAC−Qi,ψ,tEV−Qi,ψ,tLOAD   (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.


The network constraint condition of the virtual power plant is as follows:

V≤V≤V  (45)
īij≤iij≤īij  (46)


Wherein, V denotes a vector consisting of a minimum voltage at each phase and each node; V denotes a vector consisting of a maximum voltage at each phase and each node; and īij denotes a vector consisting of a maximum current for each branch.


(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:










M
[




P
E






P
G





Q



]


n




(
48
)








(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:











[



0



M

G

0




0





M
E
E




M
G
E




M
Q
E




]

[




P
E






P
G





Q



]



[




n
1
E






n
2
E




]





(
49
)







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:

MG0PG≤n1E  (50)
MEEPE+MQEQ≤n2E−MGEPG  (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 (52)











(



M
E
E



P
E


+


M
Q
E


Q


)

i




min

P
G



{




(


n
2
E

-


M
G
E



P
G



)

i

|



P
G




,



M

G

0




P
G




n
1
E



}






(
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:

EExE≤fE  (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:










E
E

=

[




M
E
E




M
Q
E




]





(
54
)














(

f
E

)

i

=


min

P
G



{




(


n
2
E

-


M
G
E



P
G



)

i

|



P
G



,



M

G

0




P
G




n
1
E



}






(
55
)













x
E

=

[




P
E





Q



]





(
56
)








(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:











[




M

E

0




0


0





M
E
G




M
G
G




M
Q
G




]

[




P
E






P
G





Q



]



[




n
1
G






n
2
G




]





(
57
)







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:

ME0PE≤n1G  (58)
MGGPG+MQGQ≤n2G−MEGPE  (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 (60):











(



M
G
G



P
G


+


M
Q
G


Q


)

i




min

P
E



{




(


n
2
G

-


M
E
G



P
E



)

i

|



P
E



,



M

E

0




P
E




n
1
G



}






(
60
)







an operation constraint condition of energy-storage-type distributed resources is obtained as:

EGxG≤fG  (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:










E
G

=

[




M
G
G




M
Q
G




]





(

6

2

)














(

f
G

)

i

=


min

P
E



{




(


n
2
G

-


M
E
G



P
E



)

i

|



P
E



,



M

E

0




P
E




n
1
G



}






(
63
)













x
G

=

[




P
G





Q



]





(
64
)








(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)-(68) and minor problems (72)-(75) to be solved.


the major problems are reflected as the following forms:










max

b
E




u
E
T



b
E






(
65
)















s
.
t
.


A
E




ξ
k
*





b
E

-

M

(

1
-

z
k


)



,



k

K






(
66
)















1
T



z
k



1

,



k

K






(
67
)














z
k




{

0
,
1

}


n
z



,



k

K






(
68
)







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.

AE=[IT−ITΓT−ΓT]T  (69)
uE=[1TT−1TT1T−1T−1T−1T]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):









Γ
=

[



γ


0





0





γ
2



γ





0



















γ
T




γ

T

1







γ



]





(
71
)







wherein, γ denotes a self-discharge rate of an equivalent energy storage device.


the minor problems are reflected as the following forms:










min
ξ



max

x
E


0





(
72
)














s
.
t
.


A
E



ξ



b
E
*





(
73
)












ξ
=



C
E



x
E


+

d
E






(
74
)














E
E



x
E




f
E





(
75
)







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):












min



ξ
,
π
,
λ
,
ω
,
s





f
E


=



λ
T



f
E


-


π
T



d
E


-


ω
T



b
E
*







(
76
)












s
.
t
.


C
E
T



π

+


E
E
T


λ


=
0









A
E
T


ω

+
π


0






0



b
E
*

-


A
E


ξ




M

(

1
-
s

)







0

ω

Ms






s



{

0
,
1

}


n
s








λ

0




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 f*E;
    • d. if f*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.

      AEξ*K+1≥bE−M(1−zK+1)  (77)
      1TzK+1≥1  (78)
      zK+1∈{0,1}nz  (79)


ξ*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)-(83) and minor problems (87)-(90) to be solved.


the major problems are reflected as the following forms:










max

b
o




u
G
T



b
o






(
80
)















s
.
t
.


A
G




ξ
k
*





b
G

-

M

(

1
-

z
k


)



,



k

K






(
81
)















1
T



z
k



1

,



k

K






(
82
)














z
k




{

0
,
1

}


n
z



,



k

K






(
83
)







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).

AG=[IT−ITΛT−ΛT]T  (84)
uG=[1TT−1TT1T−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 (86):









Λ
=

[




-
1



1


0





0




0



-
1



1





0





















0


0






-
1



1



]





(
86
)







the minor problems are reflected as the following forms:










min
ξ



max

x
G


0





(
87
)














s
.
t

.


A
G



ξ



b
G
*





(
88
)












ξ
=



C
G



x
G


+

d
G






(
89
)














E
G



x
G




f
G





(
90
)







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):












min

ξ
,
π
,
λ
,
ω
,
s



f
G


=



λ
T



f
G


-


π
T



d
G


-


ω
T



b
G
*










s
.
t
.


C
G
T



π

+


E
G
T


λ


=
0







A
G
T


ω

+
π


0




0



b
G
*

-


A
G


ξ




M

(

1
-
s

)





0

ω


M
s





s



{

0
,
1

}


n
s






λ

0





(
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 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 f*G;
    • d. if f*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;

      AGξ*K+1≥bG−M(1−zK+1)  (92)
      1TzK+1≥1  (93)
      zK+1∈{0,1}nz  (94)


ξ*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 (95) and formula (96). An output active power of the virtual power plant is denoted in a form of formula (97).

AEPESS≤b*E  (95)
AGPGEN≤b*G  (96)
PVPP=PESS+PGEN  (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.





BRIEF DESCRIPTION OF THE 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.



FIG. 1 is a flow chart of a method of assessing dynamic flexibility for a virtual power plant.





DESCRIPTION OF THE EMBODIMENTS

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.


Embodiments

With a method of assessing dynamic flexibility for a virtual power plant, what is shown in FIG. 1 is a flow chart of a method of assessing dynamic flexibility for a virtual power plant. It can be known from FIG. 1 that the method involves building a distributed energy-resource model of a virtual power plant and a power flow model of a virtual power plant network; extracting an operation constraint condition of energy-storage-type and generator-type distributed resources; solving a constraint parameter of an equivalent energy storage device and an equivalent generator and finally obtaining an assessment result of flexibility for the virtual power plant. The method may specifically 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:












P
_


i
,
ψ

CHP


ψ




P

i
,
ψ
,
t

CHP


ψ




P
_


i
,
ψ

CHP





(
1
)














Q
_


i
,
ψ

CHP



Q

i
,
ψ
,
t

CHP




Q
_


i
,
ψ

CHP





(
2
)













P

i
,
t

CHP

=



ψ


P

i
,
ψ
,
t

CHP






(
3
)







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; Pi,ψCHP denotes a maximum output active power of the ψ-phase gas turbine at node i; Pi,ψCHP denotes a minimum output active power of the ψ-phase gas turbine at node i; Qi,ψCHP denotes a maximum output inactive power of the ψ-phase gas turbine at node i; Qi,ψCHP denotes a minimum output inactive power of the ψ-phase gas turbine at node i; and Pi,tCHP denotes an output active power of the 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:










-


P
_


i
,
ψ

ch




P

i
,
ψ
,
t


E

S

S





P
_


i
,
ψ

dc





(
5
)















(

P

i
,
ψ
,
t


E

S

S


)

2

+


(

Q

i
,
ψ
,
t


E

S

S


)

2





(


S
_


i
,
ψ

ESS

)

2





(
6
)













P

i
,
t


E

S

S


=



ψ


P

i
,
ψ
,
t


E

S

S







(
7
)







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; Pi,ψdc denotes a maximum discharging active power of the ψ-phase energy storage device at node i; Pi,ψch denotes a maximum charging active power of the ψ-phase energy storage device at node i; Si,ψESS denotes a maximum capacity of the ψ-phase energy storage device at node i; and Pi,tESS denotes a net output active power of the energy storage device at node i at moment t.


formula (6) approximates the following linear formula:

Si,ψESS≤Pi,ψ,tESSSi,ψESS  (8)
Si,ψESS≤Qi,ψ,tESSSi,ψESS  (9)
−√{square root over (2)}Si,ψESS≤Pi,ψ,tESS+Qi,ψ,tESS≤√{square root over (2)}Si,ψESS  (10)
−√{square root over (2)}Si,ψESS≤Pi,ψ,tESS−Qi,ψ,tESS≤√{square root over (2)}Si,ψESS  (11)


an energy constraint condition of the energy storage device is as follows:

EiESS≤Ei,tESS≤ĒiESS  (12)
Ei,tESSiESSEi,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:











P
_


i
,
ψ


P

V




P

i
,
ψ
,
t


P

V





P
_


i
,
ψ

PV





(
14
)















(

P

i
,
ψ
,
t


P

V


)

2

+


(

Q

i
,
ψ
,
t


P

V


)

2





(


S
_


i
,
ψ

PV

)

2





(
15
)













P

i
,
t


P

V


=



ψ


P

i
,
ψ
,
t


P

V







(
16
)







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; Pi,ψPV denotes a maximum output active power of the ψ-phase photovoltaic power generation device at node i; Si,ψPV denotes a maximum capacity of the ψ-phase photovoltaic power generation device at node i; and Pi,tPV denotes an output active power of the photovoltaic power generation device at node i at moment t;


formula (15) approximates the following linear formula:

Si,ψPV≤Pi,ψ,tPVSi,ψPV  (17)
Si,ψPV≤Qi,ψ,tPVSi,ψPV  (18)
−√{square root over (2)}Si,ψPV≤Pi,ψ,tPV+Qi,ψ,tPV≤√{square root over (2)}Si,ψPV  (19)
−√{square root over (2)}Si,ψPV≤Pi,ψ,tPV−Qi,ψ,tPV≤√{square root over (2)}Si,ψPV  (20)

(1.4) A Wind Generator


the output power constraint condition of the wind generator is as follows:











P
_


i
,
ψ


W

T




P

i
,
ψ
,
t


W

T





P
_


i
,
ψ

WT





(
21
)















(

P

i
,
ψ
,
t

WT

)

2

+


(

Q

i
,
ψ
,
t

WT

)

2





(


S
_


i
,
ψ

WT

)

2





(
22
)













P

i
,
t


W

T


=



ψ


P

i
,
ψ
,
t


W

T







(
23
)







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; Pi,ψWT denotes a maximum output active power of the ψ-phase wind generator at node i; Si,ψWT denotes a maximum capacity of the ψ-phase wind generator at node i; and Pi,tWT denotes a total output active power of the wind generator at node i at moment t;


formula (22) approximates the following linear formula:

Si,ψWT≤Pi,ψ,tWTSi,ψWT  (24)
Si,ψWT≤Qi,ψ,tWTSi,ψWT  (25)
−√{square root over (2)}Si,ψWT≤Pi,ψ,tWT+Qi,ψ,tWT≤√{square root over (2)}Si,ψWT  (26)
−√{square root over (2)}Si,ψWT≤Pi,ψ,tWT−Qi,ψ,tWT≤√{square root over (2)}Si,ψWT  (27)

(1.5) A Demand-Side Responsive Heating Load


the output power constraint condition of the demand-side responsive heating load is as follows:











P
_


i
,
ψ

HVAC



P

i
,
ψ
,
t

HVAC




P
_


i
,
ψ

HVAC





(
28
)













Q

i
,
ψ
,
t

HVAC

=


P

i
,
ψ
,
t

HVAC


tan


(

φ
i
HVAC

)






(
29
)













P

i
,
t

HVAC

=



ψ


P

i
,
ψ
,
t

HVAC






(
30
)







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; Pi,ψHVAC denotes a maximum active power of ψ-phase demand-side responsive heating load at node i; Pi,ψHVAC denotes a minimum active power of the ψ-phase demand-side responsive heating load at node i; and Pi,tHVAC denotes a total output active power of the demand-side responsive heating load at node i at moment t.


a temperature constraint of a heating load device is as follows:

Ti,tHVAC=Ti,t−1HVACiHVAC(Ti,tENV−Ti,t−1HVAC)+βiHVACPi,tHVAC  (31)
TiHVAC≤Ti,tHVACTiHVAC  (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 TiHVAC denotes an upper temperature limit of the demand-side responsive heating load at node i.


(1.6) An Electric Vehicle Charging Station


the output power constraint condition of the electric vehicle charging station is as follows:










P

i
,
ψ
,
t

EV



P

i
,
ψ
,
t


E

V





P
_


i
,
ψ
,
t

EV





(
33
)













Q

i
,
ψ
,
t

EV

=


P

i
,
ψ
,
t


E

V



tan


(

φ
i

E

V


)






(
34
)













P

i
,
t


E

V


=



ψ


P

i
,
ψ
,
t


E

V







(
35
)







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; Pi,ψ,tEV denotes a maximum active power of the ψ-phase electric vehicle charging station at node i at moment t; Pi,ψ,tEV denotes a minimum active power of the ψ-phase electric vehicle charging station at node i; and Pi,tEV denotes a total output active power of the electric vehicle charging station at node i at moment t.


an energy constraint of the electric vehicle charging station is as follows:











E
_


i
,
t


E

V







t


τ
=
1




P

i
,
τ


E

V



Δ

t





E
_


i
,
t


E

V






(
36
)







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)
iij=Dy+d  (38)
p0=Gy+g  (39)
q0=Hy+h  (40)


Wherein, V denotes a vector consisting of a magnitude of each node and each phase voltage; iij 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:

pi,ψ,tY=Pi,ψ,tCHP+Pi,ψ,tESS+Pi,ψ,tPV+Pi,ψ,tWT−Pi,ψ,tHVAC−Pi,ψ,tEV−Pi,ψ,tLOAD  (41)
qi,ψ,tY=Qi,ψ,tCHP+Qi,ψ,tESS+Qi,ψ,tPV+Qi,ψ,tWT−Qi,ψ,tHVAC−Qi,ψ,tEV−Qi,ψ,tLOAD  (42)


for ∀i∈NΔ, ψ∈ϕΔ:

pi,ψ,tΔ=Pi,ψ,tCHP+Pi,ψ,tESS+Pi,ψ,tPV+Pi,ψ,tWT−Pi,ψ,tHVAC−Pi,ψ,tEV−Pi,ψ,tLOAD   (43)
qi,ψ,tΔ=Qi,ψ,tCHP+Qi,ψ,tESS+Qi,ψ,tPV+Qi,ψ,tWT−Qi,ψ,tHVAC−Qi,ψ,tEV−Qi,ψ,tLOAD   (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.


The network constraint condition of the virtual power plant is as follows:

V≤V≤V  (45)
īij≤iij≤īij  (46)


Wherein, V denotes a vector consisting of a minimum voltage at each phase and each node; V denotes a vector consisting of a maximum voltage at each phase and each node; and īij denotes a vector consisting of a maximum current for each branch.


(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:










M
[




P
E






P
G





Q



]


n




(
48
)








(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:











[



0



M

G

0




0





M
E
E




M
G
E




M
Q
E




]

[




P
E






P
G





Q



]



[




n
1
E






n
2
E




]





(
49
)







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:

MG0PG≤n1E  (50)
MEEPE+MQE≤n2E−MGEPG  (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 (52):











(



M
E
E



P
E


+


M
Q
E


Q


)

i




min

P
G



{



(


n
2
E

-


M
G
E



P
G



)

i





"\[LeftBracketingBar]"





P
G


,



M

G

0




P
G




n
1
E



}








(
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:

EExE≤fE  (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:










E
E

=

[




M
E
E




M
Q
E




]





(
54
)
















(

f
E

)

i

=


min

P
G




{


(


n
2
E

-


M
G
E



P
G



)

i



"\[RightBracketingBar]"






P
G





,



M

G

0




P
G




n
1
E



}




(
55
)













x
E

=

[




P
E





Q



]





(
56
)








(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:











[




M

E

0




0


0





M
E
G




M
G
G




M
Q
G




]

[




P
E






P
G





Q



]



[




n
1
G






n
2
G




]





(
57
)







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:

ME0PE≤n1G  (58)
MGGPG+MQGQ≤n2G−MEGPE  (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 (60):











(



M
G
G



P
G


+


M
Q
G


Q


)

i




min

P
E



{



(


n
2
G

-


M
E
G



P
E



)

i





"\[LeftBracketingBar]"





P
E



,




M

E

0




P
E




n
1
G



}








(
60
)







an operation constraint condition of energy-storage-type distributed resources is obtained as follows:

EGxG≤fG  (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:










E
G

=

[




M
G
G




M
Q
G




]





(
62
)














(

f
G

)

i

=


min

P
E



{



(


n
2
G

-


M
E
G



P
E



)

i





"\[LeftBracketingBar]"





P
E


,



M

E

0




P
E




n
1
G



}








(
63
)













x
G

=

[




P
G





Q



]





(
64
)








(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:










max

b
E









u
E
T



b
E






(
65
)









s
.
t
.





A
E




ξ
k
*





b
E

-

M


(

1
-

z
k


)




,



k

K






(
66
)









1
T



z
k




,



k

K






(
67
)








z
k




{

0
,
1

}


n
z



,



k

K






(
68
)







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.

AE=[IT−ITΓT−ΓT]T  (69)
uE=[1TT−1TT1TT−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):









Γ
=

[



γ


0





0





γ
2



γ





0



















γ
T




γ

T
-
1







γ



]





(
71
)







wherein, γ denotes a self-discharge rate of an equivalent energy storage device.


The minor problems are reflected as the following forms:










min
ξ








max

x
E







0





(
72
)








s
.
t
.





A
E



ξ



b
E
*





(
73
)






ξ
=



C
E



x
E


+

d
E






(
74
)








E
E



x
E




f
E





(
75
)







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):












min

ξ
,
π
,
λ
,
ω
,
s








f
E


=



λ
T



f
E


-


π
T



d
E


-


ω
T



b
E
*













s
.
t
.





C
E
T



π

+


E
E
T


λ


=
0










A
E
T


ω

+
π


0







0



b
E
*

-


A
E


ξ




M


(

1
-
s

)









0

ω

Ms







s



{

0
,
1

}


n
z









λ

0





(
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); π 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 f(E;
    • d. if f*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;

      AEξ*K+1≥bE−M(1−zK+1)  (77)
      1TzK+1≥1  (78)
      zK+1∈{0,1}nz  (79)

      (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:










max

b
G









u
G
T



b
G






(
80
)









s
.
t
.





A
G




ξ
k
*





b
G

-

M


(

1
-

z
k


)




,



k

K






(
81
)









1
T



z
k



1

,



k

K






(
82
)








z
k




{

0
,
1

}


n
z



,



k

K






(
83
)







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).

AG=[IT−ITΛT−ΛT]T  (84)
uG=[1TT−1TT1T−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 (86):









Λ
=

[




-
1



1


0





0




0



-
1



1





0





















0


0






-
1



1



]





(
86
)







the minor problems are reflected as the following forms:










min
ξ








max

x
G







0





(
87
)








s
.
t
.





A
G



ξ



b
G
*





(
88
)






ξ
=



C
G



x
G


+

d
G






(
89
)








E
G



x
G




f
G





(
90
)







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):












min

ξ
,
π
,
λ
,
ω
,
s








f
G


=



λ
T



f
G


-


π
T



d
G


-


ω
T



b
G
*













s
.
t
.





C
G
T



π

+


E
G
T


λ


=
0










A
G
T


ω

+
π


0







0



b
G
*

-


A
G


ξ




M


(

1
-
s

)









0

ω

Ms







s



{

0
,
1

}


n
z









λ

0





(
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 f*G;
    • d. if f*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

*





b
G

-

M


(

1
-

z

K
+
1



)







(
92
)








1
T



z

K
+
1




1




(
93
)







z

K
+
1





{

0
,
1

}


n
z






(
94
)








(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).

AEPESS≤b*E  (95)
AGPGEN≤b*G  (96)
PVPP=PESS+PGEN  (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.

Claims
  • 1. A method of optimizing dynamic flexibility for a virtual power plant within a power distribution system, the virtual power plant comprising a plurality of physical resources in an electrical grid that are networked to provide a virtual power plant network, characterized in that the method comprises the following steps: A. setting an output power constraint condition for each of the plurality of physical resources, the plurality of physical resources including at least one of a gas turbine, an energy storage device, a photovoltaic power generation device, a wind generator device, a demand-side responsive heating load and an electric vehicle charging station, and building a distributed energy-resource model of a virtual power plant;B. setting a voltage magnitude, a current and an injection power in the virtual power plant network, thereby obtaining a network constraint condition of the virtual power plant, and building a power flow model for the virtual power plant network;C. defining the energy storage device, the demand-side responsive heating load and the electric vehicle charging station as energy-storage-type devices; defining the gas turbine, the photovoltaic power generation device and the wind generator device as generator-type devices; defining a decision variable vector consisting of output power of all distributed generation energy and resources, wherein a decision variable consisting of output active power of all energy-storage-type devices of the plurality of physical resources is PE, a decision variable consisting of output active power of all generator-type devices of the plurality of physical resources is PG, and a decision variable Q consisting of inactive power of the plurality of physical resources is defined; and extracting an operation constraint condition of energy-storage-type and generator-type distributed resources based on a Robust optimization method;D. generating models of the plurality of physical resources, the models including equivalents of the energy-storage-type devices and equivalents of the generator-type devices and solving a constraint parameter respectively for the equivalent energy-storage-type devices and the equivalent generator-type devices based on a two-stage robust optimization algorithm according to a parameter in the distributed energy-resource model for the virtual power plant in the step A, a parameter of the power flow model for the virtual power plant network in the step B, and the operation constraint condition of energy-storage-type and generator-type distributed resources in the step C; andE. obtaining an assessment result of flexibility for the virtual power plant based on the generated model and the constraint parameter in the step D, andF. applying the assessment result to control the plurality of physical resources for optimized scheduling and grid resource participation.
  • 2. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that
  • 3. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that
  • 4. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that the output power constraint condition of the photovoltaic power generation device in the step A is:
  • 5. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that the output power constraint condition of the wind generator device in the step A is:
  • 6. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that the output power constraint condition of the demand-side responsive heating load in the step A is:
  • 7. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that the output power constraint condition of the electric vehicle charging station in the step A is:
  • 8. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that 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 in the step B are represented as: V=Cy+c  (37)iij=Dy+d  (38)p0=Gy+g  (39)q0=Hy+h  (40)
  • 9. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 8, characterized in that the network constraint condition of the virtual power plant is: V≤V≤V  (45)−īij≤iij≤īij  (46)
  • 10. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that in the step C, a constraint condition consisting of formulas (1)-(5), (7)-(14), (16)-(21), (23)-(28) and (45)-(46) is represented as:
  • 11. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 10, characterized in that regarding PG as a random parameter in Robust optimization, a parameter in formula (47) is written in a form of a block matrix:
  • 12. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 10, characterized in that regarding PE as a random parameter in Robust optimization, a parameter in formula (47) is written in a form of a block matrix:
  • 13. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that a constraint parameter for equivalent energy-storage-type devices in the step D is divided into a major problem and a minor problem to be solved, the major problem is reflected as:
  • 14. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 13, characterized in that a constraint parameter solution algorithm process of the equivalent energy storage device is: a. initializing: allowing K=0;b. solving the major problem, thereby obtaining an optimal solution b*E;c. based on the optimal solution b*E, solving an equivalence problem of the minor problem, thereby obtaining an optimal solution ξ*K+1 and a target function value f*E;d. if f*E<1×10−6 meets, ending algorithm with b*E as a final solution result; otherwise, adding following constraint condition to the major problem and allowing K←K+1, and returning to the step b;
  • 15. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that a constraint parameter for an equivalent generator in the step D is divided into a major problem and a minor problem to be solved,
  • 16. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 15, characterized in that a constraint parameter solution algorithm process of the equivalent generator device is as follows: a. initializing: allowing K=0;b. solving the major problem, thereby obtaining an optimal solution b*G;c. based on the optimal solution b*G, solving an equivalence problem of the minor problem, thereby obtaining an optimal solution ξ*K+1 and a target function value f*G;d. if f*G<1×10−6 meets, ending algorithm with b*G as a final solution result; otherwise, adding following constraint condition to the major problem and allowing K←K+1, and returning to the step b; AGξ*K+1≥bG−M(1−zK+1)  (85)1TzK+1≥1  (86)zK+1∈{0,1}nz  (87)
  • 17. The method of assessing dynamic flexibility for a virtual power plant as claimed in claim 1, characterized in that in the step E, a virtual power plant is equaled to an equivalent energy-storage-type device and an equivalent generator-type device, and based on a result of the step D, flexibility ranges of the equivalent energy-storage-type device and the equivalent generator-type device are respectively shown in formula (88) and formula (89); AEPESS≤b*E  (88)AGPGEN≤b*G  (89)
Priority Claims (1)
Number Date Country Kind
202011341035.3 Nov 2020 CN national
US Referenced Citations (3)
Number Name Date Kind
20120130556 Marhoefer May 2012 A1
20150303697 Ploett Oct 2015 A1
20200073427 Kobayashi Mar 2020 A1
Foreign Referenced Citations (3)
Number Date Country
110416998 Nov 2019 CN
111523947 Aug 2020 CN
110661277 Oct 2022 CN
Non-Patent Literature Citations (2)
Entry
K. Honghui, G. Shaoqing and N. Hui, “Virtual Power Plant Optimization Decision Method Considering the Interaction Between Combined Cooling-Heating and Power and Electric Heating Equipment,” 2019 IEEE Innovative Smart Grid Technologies—Asia (ISGT Asia), Chengdu, China, 2019, pp. 4351-4355 (Year: 2019).
N. Luo, L. Liu, F. Xie and T. Wu, “Flexibility Optimal Dispatch of the Distribution Network With Virtual Power Plant,” 2020 IEEE 4th Conference on Energy Internet and Energy System Integration (EI2), Wuhan, China, 2020, pp. 178-184, doi: 10.1109/EI250167.2020.9346756. (Year: 2020).
Related Publications (1)
Number Date Country
20220173593 A1 Jun 2022 US