CN112052989B - Risk cost allocation method for comprehensive energy resource sharing community - Google Patents
Risk cost allocation method for comprehensive energy resource sharing community Download PDFInfo
- Publication number
- CN112052989B CN112052989B CN202010844437.9A CN202010844437A CN112052989B CN 112052989 B CN112052989 B CN 112052989B CN 202010844437 A CN202010844437 A CN 202010844437A CN 112052989 B CN112052989 B CN 112052989B
- Authority
- CN
- China
- Prior art keywords
- energy
- cost
- energy supply
- representing
- medium
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000005457 optimization Methods 0.000 claims abstract description 59
- 238000005265 energy consumption Methods 0.000 claims abstract description 10
- 239000002245 particle Substances 0.000 claims description 43
- 230000007774 longterm Effects 0.000 claims description 31
- 238000009826 distribution Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 239000007789 gas Substances 0.000 claims description 12
- 230000005611 electricity Effects 0.000 claims description 9
- 150000001875 compounds Chemical class 0.000 claims description 8
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 6
- 239000003345 natural gas Substances 0.000 claims description 5
- 238000000342 Monte Carlo simulation Methods 0.000 claims description 3
- 230000001133 acceleration Effects 0.000 claims description 3
- 238000012614 Monte-Carlo sampling Methods 0.000 claims description 2
- 230000006978 adaptation Effects 0.000 claims description 2
- 238000005070 sampling Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 9
- 230000008878 coupling Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 7
- 238000005859 coupling reaction Methods 0.000 description 7
- 230000009194 climbing Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 235000021438 curry Nutrition 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000005304 joining Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004576 sand Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/067—Enterprise or organisation modelling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Public Health (AREA)
- Primary Health Care (AREA)
- Water Supply & Treatment (AREA)
- Educational Administration (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a risk cost sharing method for an integrated energy resource sharing community, which comprises the following steps: constructing a daily energy supply adjustment risk cost model of an energy sharing community according to the multi-energy user load and the energy spot price of the comprehensive energy system to obtain daily energy supply adjustment cost; constructing a scheduling optimization model of the energy sharing community according to the energy consumption and price of the contract and the daily energy supply adjustment cost; solving the scheduling optimization model to obtain a CVar value of the lowest energy supply total cost of the energy sharing community; and (4) carrying out risk cost allocation on the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest energy supply total cost. The risk cost allocation method provided by the invention provides a double-layer scheduling optimization model with the upper layer for medium-long term decision and the lower layer for intra-day energy supply adjustment, and adopts a Sharprey value method to allocate the risk cost, so that the contribution degree of the multi-energy users to the energy supply total cost of the energy sharing community is reflected, and fair allocation is realized.
Description
Technical Field
The invention relates to the technical field of comprehensive energy systems, in particular to a risk cost sharing method, equipment and medium for a comprehensive energy sharing community.
Background
With the popularization of comprehensive energy systems with multi-energy collaborative planning operation, the coupling of various energy sources such as cold, heat, electricity and gas in production, transmission and use is gradually deepened. The traditional mutually independent single power supply and heat supply are gradually coupled in scheduling, operation and cost control. With the gradual advance of domestic energy reform, the degree of marketization of electric power and natural gas is deepened, the randomness of energy supply cost is more obvious, and the traditional scheduling optimization based on complete information is not suitable any more. The multipotent coupling and the risk of cost fluctuations present new challenges to load billing.
The existing user cost allocation technology is mostly based on complete information and fixed price, neglects the fluctuation of wholesale energy supply cost and the interference of load prediction deviation on scheduling optimization, cannot cope with the complex conditions that the multi-energy wholesale energy supply cost and load present randomness and coupling, and has great limitation.
Therefore, a user cost allocation method is urgently needed to solve the technical problem of unfair allocation caused by the fact that the contribution degree of each multi-energy user to the total energy supply risk cost of the energy sharing community is not considered.
Disclosure of Invention
The invention aims to provide a risk cost allocation method, equipment and medium of an integrated energy resource energy sharing community, so as to solve the technical problem of unfairness in allocation caused by the fact that the contribution degree of each multi-energy user to the total risk cost of energy supply of the energy sharing community is not considered.
The purpose of the invention can be realized by the following technical scheme:
a risk cost sharing method for an integrated energy and energy sharing community comprises the following steps:
constructing an energy supply adjustment risk cost model of an energy sharing community in the day according to the multi-energy user load and the energy spot price of the comprehensive energy system; the optimization target of the day function adjustment risk cost model is day energy supply adjustment cost corresponding to a day optimal adjustment strategy;
constructing a scheduling optimization model of the energy sharing community according to the energy consumption and price of the contract and the daily energy supply adjustment cost; wherein, the product of the energy consumption and the price of the contract is the medium and long term energy supply cost; the optimization target of the scheduling optimization model is a CVar value of the lowest energy supply total cost, and the energy supply total cost is the sum of the medium-long term energy supply cost and the day-to-day energy supply adjustment cost;
solving the scheduling optimization model to obtain a CVar value of the lowest energy supply total cost of the energy sharing community;
and (4) carrying out risk cost allocation on the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest energy supply total cost.
Optionally, the probability density model of the multi-energy consumer electrical load is:
in the formula (I), the compound is shown in the specification,the electrical load of the multi-energy user is represented,representing the medium-and long-term predicted value, σ, of the electrical loadsRepresents an unconstrained standard deviation of the electrical load,respectively represent the upper and lower limits of the power consumption.
Optionally, the probability density model of the multi-energy user heat load is:
in the formula (I), the compound is shown in the specification,indicating the heat load of the multi-energy user,represents a predicted value of the heat load, tau, for the medium and long termsRepresents the unconstrained standard deviation of the thermal load,respectively representing the upper and lower limits of the thermal energy.
Optionally, the optimization objective of the energy supply adjustment risk cost model in the day is:
in the formula, Cadjust(XAζ) adjust costs for energy supply within a day; t denotes a period t, λt、βtRespectively representing the normal distribution, P, to which the prices of electricity and natural gas are subjectedt spotIndicating the electric quantity purchased in the spot market;representing the gas purchasing quantity of the spot market; pt surRepresenting the default electric quantity of the medium and long-term contract; chi shapepunishRepresenting the default punishment of the medium-term contract unit electric quantity;a thermal load indicative of an increase in demand response;representing the unit demand response compensation cost.
Optionally, the scheduling optimization model specifically includes:
in the formula, Pt cRepresenting the electricity consumption of the medium and long term contract;representing the electricity price of the medium and long term contract;representing gas usage of medium and long term contracts;representing gas prices for medium and long term contracts; xLRepresenting medium and long term decisions; xAAdjusting the decision for the day;represents medium and long term energy supply cost;representing a random variable.
Optionally, solving the scheduling optimization model to obtain a CVar value of the lowest energy supply total cost of the energy sharing community specifically includes:
searching the optimal decision of the medium and long-term stage by adopting a particle swarm algorithm;
extracting random variables by adopting a Monte Carlo sampling method to obtain a plurality of scenes and probability distribution thereof;
solving the intra-day energy supply adjustment problem corresponding to each scene by adopting a Linprog solver to obtain the CVar value of the lowest energy supply total cost of the energy sharing community.
Optionally, solving the intra-day energy supply adjustment problem corresponding to each scene by using a Linprog solver, and obtaining the CVar value of the lowest energy supply total cost of the energy sharing community specifically includes:
s11: receiving the spot price, the probability distribution information of the multi-energy load and the upper limit and the lower limit of the multi-energy load; receiving CHP equipment parameters; setting a confidence coefficient alpha; setting Monte cardLof number of samples Nc;
S12: setting the number N of particles, the iterative count iter of the particles to be 0, and the initial position of each particle NInitial velocity of particlesConvergence criterion epsilon, acceleration constant c1、c2An inertia factor w;
s13: random variables were sampled using Monte CarloExtracting NcGroup data, obtaining theta scenes and scene probability P thereofθ(ii) a For each scene, the positions of the particles are respectively determinedSubstituting, and forming theta energy supply adjustment problems in the step 3 for each particle;
s14: solving the problem of energy supply adjustment in each day by adopting a Linprog solver, and calculating the fitness according to the following formula
If iter is 0, the process proceeds to step S15, and if iter >0, the process proceeds to step S16;
If iter is equal to 0, the group history optimal fitnessRecording the particles corresponding to the historical optimal fitness of the population as n*Then the historical optimal location of the population
S16: for any particle n, ifThenNote Fbest,0=FbestIf, ifThenIf the convergence criterion | F is satisfiedbest,0-FbestIf the | is less than or equal to epsilon, the iteration is ended, and the step S19 is entered;
s17: updating each particle n positionUpdating the n-velocity of each particleWherein r is1、r2To take on a value of [0,1]Random parameter in between, particle iteration count iter ═ iter + 1;
s18: repeating steps S13-S17;
s19: finishing the algorithm, and outputting the CVar value F of the group history optimal fitness, namely the lowest energy supply total cost of the energy sharing communitybest。
Optionally, the risk cost apportionment of the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest total energy supply cost specifically includes:
according to the summery method, the risk cost of the ith multi-energy user is divided into:
in the formula (I), the compound is shown in the specification,representing the risk cost shared by the ith user; ns denotes the number of multi-capable users; ns! Representing the number of energy sharing communities which are possibly formed by Ns multiple energy users;and the contribution degree of the CVar value of the lowest energy supply total cost of the energy sharing community when the user i joins the energy sharing community in the j-th order is shown.
The invention also provides a risk cost allocation device of the comprehensive energy resource sharing community, which comprises the following steps:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for risk cost sharing for an integrated energy sharing community.
The present invention also provides a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the method for risk cost sharing for an integrated energy sharing community.
The invention provides a risk cost sharing method, equipment and medium for an integrated energy resource sharing community, wherein the method comprises the following steps: constructing a daily energy supply adjustment risk cost model of an energy sharing community according to the multi-energy user load and the energy spot price of the comprehensive energy system to obtain daily energy supply adjustment cost; constructing a scheduling optimization model of the energy sharing community according to the energy consumption and price of the contract and the daily energy supply adjustment cost; wherein, the product of the energy consumption and the price of the contract is the medium and long term energy supply cost; the optimization target of the scheduling optimization model is a CVar value of the lowest energy supply total cost, and the energy supply total cost is the sum of the medium-long term energy supply cost and the day-to-day energy supply adjustment cost; solving the scheduling optimization model to obtain a CVar value of the lowest energy supply total cost of the energy sharing community; and (4) carrying out risk cost allocation on the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest energy supply total cost.
The invention provides a risk cost allocation method of a comprehensive energy resource energy sharing community, which comprises the steps of firstly, providing a scheduling optimization model of the comprehensive energy resource energy sharing community based on a CVar theory, wherein the scheduling optimization model is a double-layer model with the upper layer for medium and long term decision and the lower layer for adjustment of energy supply in the day, and providing the optimal energy purchasing and energy supply cost considering risks; then, risk cost is shared by adopting a summer curry value method, the contribution degree of each multi-energy user to the total risk cost of the energy supply of the shared community is fully reflected, and fair sharing is achieved.
Drawings
FIG. 1 is a schematic flow chart of a method for risk cost sharing of an integrated energy sharing community according to the present invention;
FIG. 2 is a schematic flow chart of a Cvar value for solving the lowest energy supply total cost of the energy sharing community in the risk cost allocation method of the integrated energy sharing community of the present invention;
FIG. 3 is a schematic flow chart of a subroutine 2 for solving the Cvar value of the lowest energy supply total cost of the energy sharing community in the risk cost sharing method of the integrated energy sharing community of the present invention;
fig. 4 is a schematic flow diagram of risk cost sharing performed by the risk cost sharing method for the integrated energy resource sharing community according to the present invention.
Detailed Description
The embodiment of the invention provides a risk cost allocation method, equipment and medium for an integrated energy resource energy sharing community, and aims to solve the technical problem of unfairness in allocation caused by the fact that the contribution degree of each multi-energy user to the total risk cost of energy supply of the energy sharing community is not considered.
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The existing user cost allocation technology is mostly based on complete information and fixed price, neglects the interference of fluctuation of wholesale and purchase energy cost and load prediction deviation on scheduling optimization, cannot cope with the complex conditions of randomness and coupling of the multi-energy wholesale and purchase energy cost and load, and has great limitation.
The following embodiment of the risk cost allocation method for the comprehensive energy resource sharing community of the invention comprises the following steps:
s101: constructing an energy supply adjustment risk cost model of an energy sharing community in the day according to the multi-energy user load and the energy spot price of the comprehensive energy system; the optimization target of the day function adjustment risk cost model is day energy supply adjustment cost corresponding to a day optimal adjustment strategy;
s102: constructing a scheduling optimization model of the energy sharing community according to the energy consumption and price of the contract and the daily energy supply adjustment cost; wherein, the product of the energy consumption and the price of the contract is the medium and long term energy supply cost; the optimization target of the scheduling optimization model is a CVar value of the lowest energy supply total cost, and the energy supply total cost is the sum of the medium-long term energy supply cost and the day-to-day energy supply adjustment cost;
s103: solving the scheduling optimization model to obtain a CVar value of the lowest energy supply total cost of the energy sharing community;
s104: and (4) carrying out risk cost allocation on the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest energy supply total cost.
Referring to fig. 1-4, before step S101, the CVar risk value is described mathematically;
CVar is a risk method based on the improvement of Var values. It is defined as the expected loss value when portfolio X is subjected to a higher risk loss value than VaR at confidence a. It is expressed mathematically as follows:
CVaRα(X)=E[f(X,ζ)|f(X,ζ)>VaRα] (1)
wherein f (X, ζ) is a loss function of the portfolio; ζ represents a random variable affecting portfolio loss; VaRαThe value of Var of the investment portfolio under the confidence degree alpha is shown, and the definition is shown in the formula (2).
Ψ(f(X,ζ)≥VaRα)=α (2)
In the equation, the left function of the equation represents the probability distribution of the inequality in parentheses.
From formulas (1) - (2), CVar is of the form as formula (3):
wherein p (ζ) represents a probability distribution of random variables; equations (2) - (3) show that VaR can be found as long as the probability distribution of the random variables is knownαFurther, the CVaR is obtainedα(X)。
Equivalently, the optimization problem can be constructed as follows:
for a discretized scene, then the expression is:
solving the optimization problem to obtain an objective function value f (X, z) which is the CVaR to be obtainedα(X), the value of the corresponding variable z is VaRα. Where θ is a scene determined by a combination of random variable values, PθIs the probability value of the scene theta.
In step S101, the random variables mainly include the multi-energy user load and the spot energy price.
Energy sharing community by N of integrated energy systemsThe system comprises a plurality of multi-energy users, each multi-energy user is subjected to unconstrained load normal distribution in the same time period, and in addition, each multi-energy user needs to submit the upper limit and the lower limit of own energy consumption, so that the user load probability distribution presents the normal distribution of a boundary. As the pricing basis, the larger the upper and lower limit segment length is, the larger the load uncertainty is.
in the formula (I), the compound is shown in the specification,respectively taking the mean values of the electric load and the thermal load unconstrained random variables as medium and long term predicted values; sigmas、τsRespectively, the unconstrained standard deviation of the random variables of the electric load and the thermal load;represents the upper and lower limits of the power consumption;represents the upper and lower limits of the thermal energy.
Electric power spot price obeys normal distributionNatural gas spot price obeying normal distribution
In the day period, the electricity and heat loads of the multi-energy userAnd spot price lambdat、βtDegradation from medium-and long-term random variables into known quantities according to probability, and medium-and long-term predicted values of electricity and heat loadsCan generate adjustment costs based on the day-ahead power supply scheme under known medium-and long-term power supply schemes. The optimization model for the adjustment of the energy supply scheme in the day is as follows:
wherein t represents a period t, t-1 represents a period t-1, Pt spotIndicating the electric quantity purchased in the spot market;representing the gas purchasing quantity of the spot market;representing medium and long term contract gas purchase amount; pt surDefault electric quantity of medium and long term contracts; chi shapepunishRepresenting the default punishment of the medium-term contract unit electric quantity;a thermal load indicative of an increase in demand response;representing a unit demand response compensation cost; etae、ηhRespectively representing the electrical and thermal conversion efficiency of the CHP unit; rdown、RupRespectively representing the climbing constraint of the CHP unit;representing the maximum air inflow of the CHP unit; equation (8) represents the optimization objective for the adjustment of the energy supply scheme before the day; equation (9) represents the power load balancing constraint; equation (10) represents the thermodynamic load balancing constraint; the formula (11) is the climbing restriction of the CHP unit; equation (12) represents the capacity constraint of the CHP unit; equation (13) is a qualitative constraint of the adjustment strategy.
It can be easily seen that purchasing the spot electric quantity and the medium-and-long-term default electric quantity are respectively adjusting means for balancing the lower and higher power load predictions; the improvement of the thermal load demand response is an adjustment means for coping with the predicted higher thermal load; purchasing the natural gas in stock to increase CHP output may address both low power load predictions and low thermal load predictions.
The target value of the optimization problem is denoted as Cadjust(XA,ζ),XAFor intra-day adjustment of decisions, i.e. Pt spot、Pt sur、
In step S102, the sum of the medium-and-long-term energy supply cost and the intra-day energy supply adjustment cost is the energy supply total cost of the energy sharing community, and the table expression is as follows:
in the formula, Pt cRepresenting a contract electric quantity;representing a contract electricity price;representing a contract gas amount; beta is at cRepresenting a contract gas price; xLFor medium-long term decisions, i.e.It is a known quantity in the day adjustment.
And selecting the CVar value of the total energy supply cost as a target value of scheduling optimization of the energy sharing community. The scheduling optimization problem available according to equation (5) is as follows:
(9)-(13);
in the formula, alpha is the confidence coefficient of the community; θ represents a scene; m represents the number of scenes; pθA probability representing a scene theta; z is an intermediate variable, and the optimal value of the intermediate variable is the Var value of the total energy supply cost. The decision variables are medium-long term stage contract electric quantity and contract gas quantityPhase of day, random variablesDetermining a scene
From the formula, the intra-day decision variable XAShadow f (X)L,XAζ) C inadjust(XAζ) and its value is proportional to the objective function value, so C for each scene θ is minimizedadjust(XAζ) medium-to-long term contractsDetermining the day-to-day optimal adjustment strategy under certain conditionsSo that C isadjust(XAζ), the problem in step S101.
Based on the above analysis, a two-layer optimization problem can be solved for the above problems.
The upper-layer problem is a decision problem in a medium-long period stage, so that the CVar value of the total energy supply cost is the minimum, and the specific steps are as follows:
s.t(16)-(17)
value of objective function f (X)L,XAζ) is the desired C VaRα(X), the value of the corresponding variable z is VaRα。
The lower-layer optimization problem is a daily energy supply adjustment problem and comprises M sub-problems, a random variable zeta in each sub-problem is a determined value, and an upper-layer optimization decision variablePassed to the underlying optimization problem as a known quantity. The model is as follows:
s.t(9)-(13)
decision variables for upper layer optimizationThe parameters are transmitted to the lower optimization model as constants to influence the optimization of the lower model, and simultaneously, each scene f (X) in the upper modelL,XAζ) is dependent on solving the underlying optimization model, i.e., is the target value corresponding to the underlying model.
In step S103, aiming at the double-layer optimization problem in step S102, a particle swarm algorithm is used to search for an optimal decision of the upper-layer optimization problem, and a monte carlo method is used to extract a random variableForm theta scenes and give their probability distribution Pθ. Solving the theta lower-layer optimization problems in a linear programming mode by adopting a Linprog solver in a Matlab environment.
The algorithm comprises the following specific steps:
1: receiving the spot price, the probability distribution information of the multi-energy load and the upper limit and the lower limit of the multi-energy load; receiving CHP equipment parameters; setting a confidence coefficient alpha; setting the Monte Carlo method sampling number Nc。
2: setting the number N of particles, the iterative count iter of the particles to be 0, and the initial position of each particle NInitial velocity of particlesConvergence criterion epsilon, acceleration constant c1、c2An inertia factor w.
3: random variables were sampled using Monte CarloExtracting NcGroup data, obtaining theta scenes and scene probability P thereofθ. For each scene, the positions of the particles are respectively determinedInstead, θ intra-day energy supply adjustment problems in step S102 are formed for each particle.
4: solving the problem of energy supply adjustment in each day by adopting a Linprog solver, and calculating the fitness according to a formula (18)
If iter is 0, go to step 5, and if iter >0, go to step 6.
5: let particle n history optimal locationParticle n history optimal fitnessIf iter is equal to 0, the group history optimal fitnessRecording the particles corresponding to the historical optimal fitness of the population as n*Then the historical optimal location of the population
6: for any particle n, ifThenNote Fbest,0=FbestIf, ifThenIf the convergence criterion | F is satisfiedbest,0-FbestIf | ≦ ε, the iteration ends and step 9 is entered.
7: updating each particle n positionUpdating the n-velocity of each particleWherein r is1、r2To take on a value of [0,1]Random parameter in between, particle iteration count iter ═ iter + 1.
8: and repeating the steps 3-7.
9: ending the algorithm and outputting the historical optimal fitness F of the groupbest。
Through the steps, the historical optimal fitness F of the group is obtainedbestNamely NsAnd the CVar value of the lowest energy supply total cost of the energy sharing community formed by the multiple multi-energy users. Will be used by the user {1,2.. NsRecording the CVar value of the lowest energy supply total cost of the energy sharing community formed by the components as CCVaR{1,2...Ns}。
In step S104, assume that NsThe permutation order of multiple multi-energy users is combined to form a set S, the element number of S is Ns| A And (4) respectively. Each ranking order corresponds to the sequence of joining the energy sharing community by the multi-energy users. With the sequential joining of the members of the multi-energy user, the CVar value C of the lowest total energy supply cost of the energy sharing communityCVaR{1,2. } also changed gradually.
For the j-th ranking order, the energy sharing community for the multi-energy user i to join at the k-th rank comprises the following steps:
and the contribution value of the CVar value of the lowest total supply cost of the energy sharing community when the user i joins the energy sharing community under the j-th order combination is shown.
According to the Sharpry value method, the CVar energy supply cost of the ith multi-energy user is divided into:
according to the embodiment, a CVar theory-based comprehensive energy and energy sharing community dispatching-intra-day adjustment double-layer model is constructed, and the optimal energy purchasing and energy supply cost considering risks is given. Further provides a particle swarm-Linprog combined algorithm for solving the double-layer model. And then, risk cost is shared by adopting a summer curry value method, the contribution degree of each multi-energy user to the total risk cost of the energy supply of the shared community is fully reflected, and the method has the characteristics of fairness and strong adaptability to random scenes.
The invention provides a risk cost allocation method of a comprehensive energy resource energy sharing community, which comprises the steps of firstly, providing a scheduling optimization model of the comprehensive energy resource energy sharing community based on a CVar theory, wherein the scheduling optimization model is a double-layer model with the upper layer for medium and long term decision and the lower layer for adjustment of energy supply in the day, and providing the optimal energy purchasing and energy supply cost considering risks; then, a Cvar value method is adopted to share the CVar value of the total energy supply cost, risk cost sharing is carried out according to the contribution degree of each multi-energy user to the total risk cost of energy supply of the shared community, the influence of each user on the total energy supply risk cost is fully reflected, and fair sharing is achieved.
In addition, the invention also provides a risk cost allocation device of the comprehensive energy resource sharing community, which comprises the following steps:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for risk cost sharing for an integrated energy sharing community.
The present invention also provides a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the method for risk cost sharing for an integrated energy sharing community.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (7)
1. A risk cost sharing method for an integrated energy and energy sharing community is characterized by comprising the following steps:
constructing an energy supply adjustment risk cost model of an energy sharing community in the day according to the multi-energy user load and the energy spot price of the comprehensive energy system; the system comprises a plurality of energy supply adjustment risk cost models, a plurality of energy user loads and a plurality of energy user heat loads, wherein the energy user loads comprise energy user electric loads and energy user heat loads, and the optimization target of the energy supply adjustment risk cost model in the day is the energy supply adjustment cost in the day corresponding to the optimal adjustment strategy in the day;
constructing a scheduling optimization model of the energy sharing community according to the energy consumption and price of the contract and the daily energy supply adjustment cost; wherein, the product of the energy consumption and the price of the contract is the medium and long term energy supply cost; the optimization target of the scheduling optimization model is a CVar value of the lowest energy supply total cost, and the energy supply total cost is the sum of the medium-long term energy supply cost and the day-to-day energy supply adjustment cost;
the scheduling optimization model specifically comprises the following steps:
in the formula, XARepresenting a daily energy supply adjustment decision;it is meant that the random variable is,representing the electrical load of the multi-energy user;representing a multi-energy user thermal load; t denotes a period t, λt、βtRespectively representing the prices of electric power and natural gas, and obeying normal distribution; pt cRepresenting the electricity consumption of the medium and long term contract;representing the electricity price of the medium and long term contract;representing gas usage of medium and long term contracts;representing gas prices for medium and long term contracts;representing medium and long term decisions;represents the medium and long term energy supply cost, Cadjust(XAζ) adjust costs for energy supply within a day;
converting the scheduling optimization model into a double-layer optimization problem, wherein an upper-layer problem is a medium-long term decision problem, so that the Cvar value of the energy supply total cost is minimum, and the optimization model of the upper-layer problem is as follows:
where α represents the confidence of the community, θ represents the scene, PθRepresenting the probability of a scene theta, wherein z is an intermediate variable, and the optimal value of z is a Cvar value of the energy supply total cost;
the lower-layer optimization problem is a daily energy supply adjustment problem and comprises a plurality of sub-problems, a random variable zeta in each sub-problem is a determined value, and an upper-layer optimization decision variablePassed to the lower optimization problem as a known quantity;
the optimization model of the lower layer optimization problem is as follows:
in the formula (I), the compound is shown in the specification,Pt spotindicating the electric quantity purchased in the spot market;representing the gas purchasing quantity of the spot market; pt surRepresenting the default electric quantity of the medium and long-term contract; chi shapepunishRepresenting the default punishment of the medium and long term contract unit electric quantity;a thermal load indicative of an increase in demand response;representing a unit demand response compensation cost;
solving the scheduling optimization model to obtain the CVar value of the lowest energy supply total cost of the energy sharing community, and specifically comprises the following steps:
searching the optimal decision of the medium and long-term stage by adopting a particle swarm algorithm;
extracting random variables by adopting a Monte Carlo sampling method to obtain a plurality of scenes and probability distribution thereof;
solving the intra-day energy supply adjustment problem corresponding to each scene by adopting a Linprog solver to obtain a CVar value of the lowest energy supply total cost of the energy sharing community; the intra-day energy supply adjustment strategy corresponding to the CVar value with the lowest energy supply total cost is an intra-day optimal adjustment strategy;
and (4) carrying out risk cost allocation on the multi-energy users according to the contribution degree of the multi-energy users to the CVar value of the lowest energy supply total cost.
2. The method according to claim 1, wherein the probability density model of the electrical load of the multi-energy users is:
in the formula (I), the compound is shown in the specification,the electrical load of the multi-energy user is represented,representing the medium-and long-term predicted value, σ, of the electrical loadsRepresents an unconstrained standard deviation of the electrical load,respectively represent the upper and lower limits of the power consumption.
3. The method according to claim 2, wherein the probability density model of the heat load of the multi-energy users is:
in the formula (I), the compound is shown in the specification,indicating the heat load of the multi-energy user,represents a predicted value of the heat load, tau, for the medium and long termsRepresents the unconstrained standard deviation of the thermal load,respectively representing the upper and lower limits of the thermal energy.
4. The method for allocating the risk cost of the integrated energy resource sharing community according to claim 3, wherein solving the intra-day energy supply adjustment problem corresponding to each scene by using a Linprog solver to obtain the CVar value of the lowest energy supply total cost of the energy resource sharing community specifically comprises:
s11: receiving the spot price, the probability distribution information of the multi-energy load and the upper limit and the lower limit of the multi-energy load; receiving CHP equipment parameters; setting a confidence coefficient alpha; setting the Monte Carlo method sampling number Nc;
S12: setting the number N of particles, the iterative count iter of the particles to be 0, and the initial position of each particle NInitial velocity of particlesConvergence criterion epsilon, acceleration constant c1、c2An inertia factor w;
s13: random variables were sampled using Monte CarloExtracting NcGroup data, obtaining theta scenes and scene probability P thereofθ(ii) a For each scene, the positions of the particles are respectively determinedSubstituting, and forming theta energy supply adjustment problems in the step 3 for each particle;
s14: solving the problem of energy supply adjustment in each day by adopting a Linprog solver, and calculating the fitness according to the following formula
If iter is 0, the process proceeds to step S15, and if iter >0, the process proceeds to step S16;
If iter is equal to 0, the group history optimal fitnessRecording the particles corresponding to the historical optimal fitness of the population as n*Then the historical optimal location of the population
S16: for any particle n, ifThenNote Fbest,0=FbestIf, ifThenIf the convergence criterion | F is satisfiedbest,0-FbestIf the | is less than or equal to epsilon, the iteration is ended, and the step S19 is entered;
s17: updating each particle n positionUpdating the n-velocity of each particleWherein r is1、r2To take on a value of [0,1]Random parameter in between, particle iteration count iter ═ iter + 1;
s18: repeating steps S13-S17;
s19: finishing the algorithm, and outputting the CVar value F of the group history optimal fitness, namely the lowest energy supply total cost of the energy sharing communitybest。
5. The method for risk cost sharing of the integrated energy and energy sharing community according to claim 4, wherein the risk cost sharing of the multi-energy users according to the degree of contribution of the multi-energy users to the CVar value of the lowest total energy supply cost comprises:
according to the summery method, the risk cost of the ith multi-energy user is divided into:
in the formula (I), the compound is shown in the specification,representing the risk cost shared by the ith user; ns denotes the number of multi-capable users; ns! Representing the number of energy sharing communities which are possibly formed by Ns multiple energy users;and the contribution degree of the CVar value of the lowest energy supply total cost of the energy sharing community when the user i joins the energy sharing community in the j-th order is shown.
6. A risk cost sharing device for an integrated energy sharing community, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of risk cost sharing for an integrated energy sharing community of any of claims 1 to 5.
7. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements a risk cost sharing method of an integrated energy sharing community as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010844437.9A CN112052989B (en) | 2020-08-20 | 2020-08-20 | Risk cost allocation method for comprehensive energy resource sharing community |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010844437.9A CN112052989B (en) | 2020-08-20 | 2020-08-20 | Risk cost allocation method for comprehensive energy resource sharing community |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112052989A CN112052989A (en) | 2020-12-08 |
CN112052989B true CN112052989B (en) | 2022-04-12 |
Family
ID=73600970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010844437.9A Active CN112052989B (en) | 2020-08-20 | 2020-08-20 | Risk cost allocation method for comprehensive energy resource sharing community |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112052989B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106803145A (en) * | 2016-12-22 | 2017-06-06 | 国网重庆市电力公司电力科学研究院 | Grid company implements risk analysis and the bypassing method of Direct Purchase of Electric Energy by Large Users project |
CN109345292A (en) * | 2018-09-14 | 2019-02-15 | 南京工业大学 | A kind of purchase sale of electricity method considering user's contribution degree |
CN111523949A (en) * | 2020-06-18 | 2020-08-11 | 南方电网科学研究院有限责任公司 | Method, device and equipment for jointly pricing electric-thermal products of integrated energy system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2387776A4 (en) * | 2009-01-14 | 2013-03-20 | Integral Analytics Inc | Optimization of microgrid energy use and distribution |
CA3062186A1 (en) * | 2017-05-25 | 2018-11-29 | Opus One Solutions (Usa) Corporation | Integrated distribution planning systems and methods for electric power systems |
-
2020
- 2020-08-20 CN CN202010844437.9A patent/CN112052989B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106803145A (en) * | 2016-12-22 | 2017-06-06 | 国网重庆市电力公司电力科学研究院 | Grid company implements risk analysis and the bypassing method of Direct Purchase of Electric Energy by Large Users project |
CN109345292A (en) * | 2018-09-14 | 2019-02-15 | 南京工业大学 | A kind of purchase sale of electricity method considering user's contribution degree |
CN111523949A (en) * | 2020-06-18 | 2020-08-11 | 南方电网科学研究院有限责任公司 | Method, device and equipment for jointly pricing electric-thermal products of integrated energy system |
Non-Patent Citations (2)
Title |
---|
Application of Cost-CVaR model in determining optimal spinning reserve for wind power penetrated system;Wu, JL etal.;《International Journal of Electrical Power & Energy Systems》;20151231;第66卷;第110-115页 * |
高渗透分布式能源聚合运行优化及竞价策略研究;李博嵩;《中国博士学位论文全文数据库 工程科技Ⅱ辑》;20200615;第44-62页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112052989A (en) | 2020-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wei et al. | A bi-level scheduling model for virtual power plants with aggregated thermostatically controlled loads and renewable energy | |
Yang et al. | Indirect multi-energy transactions of energy internet with deep reinforcement learning approach | |
Gu et al. | Bi-level optimal low-carbon economic dispatch for an industrial park with consideration of multi-energy price incentives | |
Rathnayaka et al. | Framework to manage multiple goals in community-based energy sharing network in smart grid | |
Wang et al. | A game-theoretic approach to energy trading in the smart grid | |
Cui et al. | Game-based peer-to-peer energy sharing management for a community of energy buildings | |
Bouachir et al. | Federatedgrids: Federated learning and blockchain-assisted p2p energy sharing | |
Kou et al. | Model-based and data-driven HVAC control strategies for residential demand response | |
CN103679357A (en) | Power demand response intelligent decision method based on price and excitation | |
Ye et al. | Multi-agent deep reinforcement learning for coordinated energy trading and flexibility services provision in local electricity markets | |
Gomez-Herrera et al. | Optimal collaborative demand-response planner for smart residential buildings | |
Kovács | Bilevel programming approach to demand response management with day-ahead tariff | |
Soriano et al. | Peer-to-peer energy trades based on multi-objective optimization | |
Gao et al. | Multi-objective optimization of smart community integrated energy considering the utility of decision makers based on the Lévy flight improved chicken swarm algorithm | |
Lesage-Landry et al. | Online convex optimization of multi-energy building-to-grid ancillary services | |
Hemanth et al. | Cost effective energy consumption in a residential building by implementing demand side management in the presence of different classes of power loads | |
Amasyali et al. | Hierarchical model-free transactional control of building loads to support grid services | |
Ziadeh et al. | Augmented grasshopper optimization algorithm by differential evolution: A power scheduling application in smart homes | |
Khan et al. | A new meta-heuristic optimization algorithm inspired from strawberry plant for demand side management in smart grid | |
Dorahaki et al. | A sharing economy model for a sustainable community energy storage considering end-user comfort | |
Kim et al. | Pricing mechanisms for peer-to-peer energy trading: Towards an integrated understanding of energy and network service pricing mechanisms | |
Wu et al. | Hierarchical hybrid multi-agent deep reinforcement learning for peer-to-peer energy trading among multiple heterogeneous microgrids | |
CN112488531B (en) | Heterogeneous flexible load real-time regulation and control method and device based on deep reinforcement learning | |
CN112052989B (en) | Risk cost allocation method for comprehensive energy resource sharing community | |
Abbasi et al. | Demand side management in smart grid by using flower pollination algorithm and genetic algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |