Flexibility Requirement when Tracking Renewable Power Fluctuation with Peer-to-Peer Energy Sharing
Abstract
Flexible load at the demand-side has been regarded as an effective measure to cope with volatile distributed renewable generations. To unlock the demand-side flexibility, this paper proposes a peer-to-peer energy sharing mechanism that facilitates energy exchange among users while preserving privacy. We prove the existence and partial uniqueness of the energy sharing market equilibrium and provide a centralized optimization to obtain the equilibrium. The centralized optimization is further linearized by a convex combination approach, turning into a multi-parametric linear program (MP-LP) with renewable output deviations being the parameters. The flexibility requirement of individual users is calculated based on this MP-LP. To be specific, an adaptive vertex generation algorithm is established to construct a piecewise linear estimator of the optimal total cost subject to a given error tolerance. Critical regions and optimal strategies are retrieved from the obtained approximate cost function to evaluate the flexibility requirement. The proposed algorithm does not rely on the exact characterization of optimal basis invariant sets and thus is not influenced by model degeneracy, a common difficulty faced by existing approaches. Case studies validate the theoretical results and show that the proposed method is scalable.
Index Terms:
critical region, distributed renewable energy, energy sharing, flexibility, multi-parametric program.Nomenclature
-A Indices, Sets, and Functions
-
Set of consumers.
-
Set of prosumers.
-
Line in set .
-
Disutility function of user .
-B Parameters
-
Number of consumers.
-
Number of prosumers.
-
Contract demand of user .
-
Forecast renewable output of prosumer .
-
Real-time renewable output deviation of prosumer .
-
Parameter in user’s objective function.
-
Line flow distribution factors.
-
Power flow limit of line .
-
Parameters of the disutility function .
-
Lower/Upper bound of demand adjustable range.
-C Decision Variables
-
Demand adjustment of user .
-
Actual sharing amount of user .
-
Expected sharing amount of user .
-
The gap between actual and expected sharing amount of user .
-
Flexibility requirement of user .
I Introduction
Exploiting distributed renewable generation is an effective remedy to reduce the dependence on fossil fuel energy and achieve a sustainable society [1]. Meanwhile, how to tackle the volatile and intermittent energy supply caused by renewable generation has become a major concern. Existing literature concentrates on two issues: 1) how to balance the real-time power in an optimal way facing the uncertainties; 2) how to quantify the system’s potential in accommodating uncertain renewable power.
For the first question, plenty of works develop effective scheduling methods for the bulk power system that runs in a centralized manner. Typical techniques are stochastic optimization (SO) [2], robust optimization (RO) [3], and distributionally robust optimization (DRO) [4]. In stochastic optimization, the uncertain factors are modeled by their empirical distribution, and then a stochastic programming or chance-constrained problem is built. Though historical data can provide some hints for the construction of empirical distributions, the exact distribution can be hardly obtained. This inaccuracy leads to a sub-optimal scheduling strategy. Robust optimization utilizes an uncertainty set that contains all possible scenarios of the renewable output. The worst-case performance is optimized via Benders Decomposition [5] or Column & Constraint Generation (C&CG) [6] algorithms. Despite its convenience, the RO method can be too conservative since it treats all possible outputs with equal probability and neglects the fact that severe events rarely happen. Distributionally robust optimization is in-between SO and RO, where uncertainty is described by a family of inexact probability distributions restricted in an ambiguity set.
As the renewable energy generations change from large-capacity centralized units at the transmission level to small-capacity distributed units at the distribution level, various researchers seek to balance the real-time power with the help of peer-to-peer energy trading [7]. Existing energy sharing mechanisms can be categorized into cooperative-game-based ones, noncooperative-game-based ones, and optimization-based ones [8]. For the first category, allocation rules are designed so that all agents have the incentive to form coalitions and together acting towards the social optimum. A coalition formation game for peer-to-peer energy trading was established with proof of several nice properties [9]. Network constraint [10] and sustainable user participation [11] were further taken into account. Though high social efficiency can be achieved, private information is needed to design the allocation rules. For the second category, two typical models are Stackelberg games and (generalized) Nash games. In Stackelberg games, the operator moves first to determine the market prices and then the users follow as price-takers. The energy sharing among prosumers was modeled as a Stackelberg game [12] and the existence of a unique and stable equilibrium was proved [13]. A hybrid approach using stochastic optimization and Stackelberg game was developed for energy trading across the day-ahead and real-time periods [14, 15]. User’s flexibility can be limited as they are price-takers under this setting. Moreover, it is hard to decide on an effective energy price especially with a large number of users, since private information may be needed and each user’s capacity is too small to be observed. In (generalized) Nash games, the users first submit their bids and then the operator clears the market. The energy trading was modeled as a two-stage stochastic Nash game [16]. A generalized demand function based energy sharing mechanism was proposed [17], and a practical bidding process as well as its convergence condition was established [18]. The above models are for node-level sharing and how to incorporate network constraints remains to be investigated. For the third category, references [19] and [20] established two-stage energy sharing schemes based on alternating direction method of multipliers (ADMM) algorithms. They require the help of dual variables and the economic intuition behind is hard to explain. This paper aims to develop an energy sharing mechanism based on generalized Nash game, which can protect users’ privacy, take into account network constraints, has a clear economic interpretation, and enlarge users’ flexibility by letting them be price-makers instead of price-takers. In this way, the flexibility of users is enhanced and it can facilitate the energy exchange among a wider area while network constraint is non-negligible.
For the second question, methods to quantify the flexibility of a system are based either on regions or metrics. For regions, the do-not-exceed limit (DNEL) region [21] and the dispatchable region [22] are two well-known concepts. The DNEL region is a hypercube of uncertain parameters that will not cause infeasibility of the scheduling problem, whose size is also optimized by the problem itself. Vast literature improves the DNEL region by considering the historical data [23], inexact probability distribution [24], and corrective topology control [25]. Projecting the feasible set of the scheduling problem on the uncertainty subspace, we can get the dispatchable region. In general, the DNEL region is an inner box approximation of the dispatchable region. For metrics, the flexibility envelope [26], the power/energy capacity [27], etc. were proposed. A method providing both region and metric was proposed [28]. The above works focus on centralized operation and cannot be directly applied to the energy sharing market. Reference [29] proposed the concept of absorbable region, but only region information is given and it viewed flexibility from a system level. This paper quantifies the flexibility requirement of individual users under peer-to-peer energy sharing by offering both region and metric information.
Quantifying the flexibility requirement of individual users involves solving a multi-parametric linear programming (MP-LP). In the majority of the current works, multi-parametric programming algorithms rely on the computation of critical regions where degeneracy is a key challenge. To overcome this difficulty, reference [30] resorted to developing an approximate algorithm, which was then generalized to multi-parametric convex programs [31]. A prominent feature of the approximation methods is that the critical region is represented by simplices in the -dimensional parameter space with extreme points. Such a partition may hide the impact of parameters on the optimal bases characterized by the exact critical regions which are not simplices in general. This paper proposes an alternative approximate algorithm for solving MP-LP. The basic idea is similar to [30] but no simplex is needed. The main contributions are two-fold:
1) Energy Sharing Mechanism. A peer-to-peer energy sharing mechanism that coordinates the energy exchange among users is presented. Each user bids the quantity it would like to share aiming to minimize its disutility and match the operator’s sharing profile. The operator decides on the optimal sharing profile according to users’ bids and the physical constraints. Compared to existing works, our mechanism is easy to implement without requiring private information; can incorporate the coupling network constraints; enlarges users’ flexibility by letting them be price-makers instead of price-takers; and have several nice provable properties. Under the proposed mechanism, all users play a generalized Nash game. We prove the existence and partial uniqueness of the generalized Nash equilibrium (GNE) theoretically. The equilibrium can be retrieved from a quadratic optimization problem parameterized in the renewable output deviation, which is then turned into a multi-parametric linear program.
2) Flexibility Characterization. We characterize the flexibility under energy sharing based on the multi-parametric linear program derived above. To be specific, we develop an adaptive vertex generation (AVG) algorithm to partition the set of renewable output deviations into critical regions, so that in each region the demand adjustment of a user at equilibrium is shown to be a piecewise affine function in the deviation. Based on this unique feature, the flexibility requirement of individual users can be calculated. Compared to existing works, our method can provide both geometry information (critical region) and metric (flexibility requirement) about flexibility. The proposed AVG algorithm does not rely on the exact characterization of optimal basis invariant sets and thus is not influenced by model degeneracy, a common difficulty encountered by solving multi-parametric linear programs.
The rest of this paper is organized as follows. Section II presents the energy sharing mechanism and the multi-parametric linear program to calculate the equilibrium. An adaptive vertex generation algorithm is developed in Section III to solve the multi-parametric program model; based on the explicit demand adjustment policy, the flexibility requirement of individual users can be obtained. Case studies in Section IV validate the proposed models and methods. Conclusions are drawn in Section V.
II Peer-to-Peer Energy Sharing Model
We consider a microgrid of consumers (indexed by ) and prosumers (indexed by ). All users have demand while the prosumers are also equipped with renewable generators. We focus on the energy balancing at the real-time stage [C7]. At the day-ahead stage, there is renewable output predictions based on which the users decide on their contract demands . Then at the real-time stage, the actual renewable generator outputs may deviate from their predictions by . To maintain energy balancing, the users can adjust their real-time demands by and exchange with each other via an energy sharing market. The disutility caused by demand adjustment can be represented as a quadratic function , where , , and are given parameters. This paper aims to quantify how much flexibility of individual users will be needed so that the real-time renewable generator output deviations can be balanced.
In the conventional electricity market, the penalty mechanism is implemented to encourage the participants to reveal their true production/consumption capacities and to fulfill the contract energy. This mechanism works well when the participants can accurately predict their capacities. However, considering the uncertain nature of DERs, implementing such a mechanism could lead to a huge financial loss in small prosumers and discourage them from participating in energy markets [32]. One solution to this problem is to mitigate the overall uncertainty via local energy exchange among a group of prosumers and responsive consumers, which is what the proposed energy sharing market intends to do.
II-A Energy sharing mechanism

The structure of the proposed energy sharing mechanism is shown in Fig. 1. First, each user enters its private information into the smart meter it links to, including its disutility function , the contract demand , the demand adjustable range , and the predicted output of renewable generators if it is a prosumer. Then the smart meter will determine the optimal bid by solving (2) or (3) and submit the bid to the operator. Upon receiving all the bids, the operator decides on the optimal sharing schedule to meet users’ expectation as much as possible while satisfying the physical constraints by solving (1). Then the obtained optimal schedule and unfulfilled quantity are returned to the smart meter. The smart meter will adjust its bid and submit it to the operator again. This happens until the optimal schedule changes little between the last two iterations. Finally, the users will execute the sharing schedule . If , user is a buyer; if , user is a seller; if , it does not take part in sharing. The key of the energy sharing mechanism design lies in how each user chooses the optimal bid and how the operator decides on the optimal sharing schedule .
For the operator, given users’ bids , it solves problem (1) to set the optimal sharing schedule :
(1a) | ||||
s.t. | (1b) | |||
(1c) | ||||
(1d) |
The objective function (1a) minimizes the gap between the actual and expected sharing amount. Constraint (1c) means the energy sold equals the energy bought. The exchanged energy is transmitted via the power network limited by constraint (1d).
The smart meter decides on its optimal bid by solving
For consumer :
(2a) | ||||
s.t. | (2b) | |||
(2c) |
For prosumer :
(3a) | ||||
s.t. | (3b) | |||
(3c) |
The objective of each user consists of two parts: its disutility and the gap between its bid and operator’s schedule . Parameter indicates the trade-off between the above two parts and help evaluate the gap in monetary terms. Constraints include the power balance conditions for consumers (2b) and for prosumers (3b), and the demand adjustable range limits (2c) and (3c).
The proposed energy sharing mechanism well fits the practice in that the users do not need to know the network constraint (1d) available only to the operator, and the operator does not require local constraint (2c) and (3c) private to each user. Compared to centralized dispatch, our mechanism has two advantages: 1) Regarding privacy. Centralized dispatch needs to gather information from all users to make the central decision. However, the users may be unwilling to provide this sort of private information. In the proposed peer-to-peer energy sharing, each user only needs to submit a bid to the operator with its private data input only to its own smart meter, so privacy can be preserved. 2) Less communication burden. Under peer-to-peer energy sharing, the only information exchanged will be the bid, which is a scalar. However, under centralized dispatch, the operator needs to collect information such as cost coefficients, demands, and demand adjustable boundaries, from all users, which incurs a high communication burden overhead. Meanwhile, this mechanism can achieve a social optimal outcome (proved in Proposition 1 later).
Remark 1: Our proposed energy sharing mechanism focuses on the real-time market [33], which will be conducted hourly. In real-time, when the uncertainty is realized, we resort to a mechanism similar to the economic dispatch [34] (happens every several mins or an hour) to balance the system. Specially, instead of balancing the real-time power via centralized dispatch, we develop an energy sharing mechanism that allows the users to adjust their elastic demands and exchange energy with each other. AGC that happens at a smaller time resolution and usually at the transmission level is not considered in this paper as most of the economic dispatch works [34, 4].
Remark 2: In this paper, deciding on the optimal bids and finally the sharing quantities involve solving optimization problems (2) or (3) and two-way communication with the operator. With the current technology, advanced smart meters have certain data processing abilities and enable two-way communication between the meter and the central system [35]. Therefore, it is reasonable to assume that with the assist of a smart meter, the user would be able to decide on the optimal bids. When taking into account various kinds of appliances and facilities, the decision-making may become more complex. In that case, we may need a more sophisticated energy management system to handle all the devices.
II-B Market equilibrium
Players | Actions | Cost functions |
---|---|---|
consumer | ||
prosumer | ||
operator |
The above peer-to-peer energy sharing market can be regarded as a generalized Nash game [36] with its elements summarized in TABLE I. For simplicity, we use to denote the sharing game in an abstract form, where is the set of players, the action set, and the collection of cost functions. It’s worth noting that, the action sets of users depend on the strategies of the operator (the ); the action sets of the operator depends on the strategies of the users (the ). Therefore, it constitutes a generalized Nash game, whose equilibrium is harder to analyze than the standard Nash game due to the complex coupling [37]. The equilibrium of the generalized Nash game, from which every player has no incentive to deviate, is defined below.
Definition 1.
(Generalized Nash Equilibrium) A profile is a generalized Nash equilibrium (GNE) of the energy sharing game if
(4) |
and
(5) |
In the following proposition, we prove the existence of the equilibrium and offer a centralized optimization problem to compute it, which casts down to multi-parametric program parameterized in the renewable output deviations. Denote , for all .
Proposition 1.
The energy sharing game has at least one GNE if (6) is feasible, and is an GNE if and only if is the unique optimal solution of
(6a) | ||||
s.t. | (6b) | |||
(6c) | ||||
(6d) |
with for all , where is the value of dual variable at optimum, and with
(7) |
The proof of Proposition 1 can be found in Appendix -A. It offers a more convenient way to calculate and analyze the energy sharing game equilibrium by solving (6). As problem (6) minimizes the total disutility of all users, is social optimal. Take the real-time renewable output deviation as parameters, problem (6) can be regarded as a quadratic multi-parametric optimization problem.
II-C Linearization and compact form
For the sake of analysis, the objective function is linearized via a convex combination approach [38]. Take a univariate convex function , for example. The function is evaluated at some discrete points , and . By introducing variables and , and in the optimization problem can be replaced with linear functions and in , respectively. Applying this technique to (6a), problem (6) turns into a multi-parametric linear program (MP-LP) with the compact form as:
(8) | ||||
s.t. |
where and are vectors of decision variables and parameters, respectively; , , and are input data. The decision variables is bounded due to the lower and upper bound constraints. Denote and as the optimal value and optimal solution associated with given parameter , respectively.
Based on the above MP-LP (8), in the following, we develop an adaptive vertex generation (AVG) algorithm to approximate the optimal cost and the demand adjustment at equilibrium under different renewable output deviations and quantify the flexibility requirements of individual users.
III Flexibility Characterization
In this section, we first define the flexibility requirement of individual users under energy sharing; then, an adaptive vertex generation algorithm is developed to construct a piecewise linear estimator of the optimal total cost and the demand adjustment at equilibrium subject to a given error tolerance, based on which we calculate the flexibility requirement. The processing framework of the algorithms is shown in Fig. 2.

III-A Definition of flexibility requirement
Let be the maximum set of such that problem (8) has at least one feasible solution , known as the dispatchable region [22]. We assume , a bounded polyhedral subset of . The flexibility requirement of each user is defined below.
Definition 2.
(Flexibility Requirement) Suppose are users’ demand adjustment at equilibrium under renewable deviation . The flexibility requirement of user is defined as a region with
(9) |
and
(10) |
The flexibility in this paper is a kind of reserve capacity [34]. It defines the backup adjustable capacity the demand can provide in the occurrence of renewable generation output deviations due to uncertainty. Since involves solving problem (6), getting directly by definition can be difficult. In this paper, an MP-LP based approach is proposed to obtain the flexibility requirement. To be specific, we divide into non-overlapping critical regions CR1, , CRN such that in each region CRi, the optimal value and optimal solution are linear functions in the parameter vector . Then (9)-(10) is equivalent to finding the maximum/minimum point of a piecewise linear function, which is easier to solve.
III-B Adaptive vertex generation algorithm
The majority of current MP-LP related works identifies the critical regions by leveraging the graph of optimal bases based on which the expression of and are obtained [28]. However, degeneracy that indicates the existence of multiple primal or dual optimal solutions may cause difficulties in building the critical regions [39]. In this paper, we develop an adaptive vertex generation algorithm to approximate via dual variables without the information of critical regions first, and then retrieve the critical region and accordingly. In this way, the impact of degeneracy can be avoided. The details of the algorithm are as follows:
1) Lower bound of from dual problem
Suppose the optimal value function can be represented by a piecewise linear function
(11) |
where are constant scalars; are constant vectors. For any fixed , the dual problem of (8) is
(12) | ||||
s.t. |
where is the dual variable, and its feasible region is denoted by . According to strong duality, the optimal value of (12) is bounded and equals to for any given . Since is finite, the dual optimal solution must belong to the set of extreme points of [vert() for short], although may be unbounded and contain extreme rays. In this regard, by enumerating the vertices of , can be equivalently expressed as
(13) |
Comparing (13) and (11), coefficients and and dual variable have the following relation
(14) |
Nevertheless, vertex enumeration is an exhaustive task, and only a small fraction of vertices correspond to valid pieces in (11) and (13), but we do not know which appears in (13) in advance. Let be a subset of and
(15) |
Hence, is an underestimator of . The approximation quality depends on the choice of . In the following, an adaptive vertex generation algorithm is developed to construct so that the gap between and can be small.
2) Recover the critical regions
Suppose (15) is a non-redundant representation. Intuitively, if the value of any piece can reach maximum for some , (15) is non-redundant. The exact definition and redundancy elimination methods are in Appendix -B. Then the critical region associated with each piece can be retrieved from (15). Recall the original piecewise linear form (11) and the point-wise maximum form (15), the value of achieves maximum in CRi, i.e.:
(16) |
where stands for the set of complementary indexes of , so CRi is described by inequalities in (16). It can be represented in a matrix form (17), where , .
(17) |
For notation conciseness, index of critical region for matrix and vector are omitted; , represent the individual constraints in CRi.
3) Overall algorithm
Suppose we already have an approximation (15) for the optimal value function, as well as critical regions retrieved from (16), then we have to investigate the quality of this approximation in each CRi. The task comes down to evaluate the maximal approximation error through
(18) | ||||
s.t. |
where is the true optimal value function of problem (8), which is unknown. must be nonnegative because is an underestimator. First, due to strong duality, we have
(19) | ||||
Problem (19) is nonconvex due to the product term in the objective function. Since the parameter space has a low dimension, we can solve (19) by numerating the vertex of , which is
(20) | ||||
s.t. | ||||
Another approach to solve (19) is the big-M method [40], but our approach is more robust since it avoids the difficulty of choosing a proper . The proposed adaptive vertex generation algorithm is summarized in Algorithm 1. The output is a -optimal underestimator of the true optimal value function.
Remark: Because the set has finite elements, Algorithm 1 must terminate in a finite number of steps. Nonetheless, as only a small fraction of elements in corresponds to the pieces in the optimal value function, Algorithm 1 is efficient in practice. In contrast to the existing approaches where critical regions are obtained from the analysis of optimal bases invariancy, in Algorithm 1, critical regions are retrieved from the optimal value function. Therefore, model degeneracy does not affected the proposed algorithm.
III-C Calculation of flexibility requirement
To obtain the flexibility requirement of individual users, we need to recover an approximate optimizer as a function of . In CRi, the optimal value is , the complementarity and slackness condition of (8) implies
(21) |
Let denote the rows of corresponding to the indexes of nonzero elements in , we obtain a set of linear equations:
(22) |
If is invertible, the optimizer is obtained by
(23) |
Otherwise, we can calculate the flexibility requirement by the following optimization problems. Without loss of generality, suppose the first terms in correspond to the decision variables .
(24a) | ||||
s.t. | (24b) | |||
(24c) |
and
(25a) | ||||
s.t. | (25b) | |||
(25c) |
Therefore, the flexibility requirement of user over the entire parameter set is , where
(26) |
In general, the obtained critical regions CR can provide geometry information of how uncertainty be handled under energy sharing, while the flexibility requirement offers a quantitative metric.
IV Case Studies
We first use a 5-bus system for illustration; and then a 69-bus microgrid system is tested to show the scalability of the proposed model and algorithm. Data is available in [41].

IV-A 5-bus system
From | To | ||
---|---|---|---|
A | B | 0.0281 | 600 |
A | D | 0.0304 | 300 |
A | E | 0.0064 | 200 |
B | C | 0.0108 | 100 |
C | D | 0.0297 | 401 |
D | E | 0.0297 | 300 |
Node | (kW) | Bound | ($/) | ($/kW) | ($) |
---|---|---|---|---|---|
A | 230 | [200, 300] | 0.003 | 1.80 | 255.30 |
B | 35 | - | - | - | - |
C | 25 | - | - | - | - |
D | 185 333170 kW elastic demand and 15 kW inelastic demand. | [150, 350] | 0.006 | 2.76 | 295.80 |
E | 200 | [100, 250] | 0.005 | 2.56 | 312.00 |
The topology of the 5-bus system is given in Fig. 3 with other parameters in TABLE II-2. There are three users with elastic demands and two renewable generators at nodes C and E, respectively, so . The maximum set of parameters is the dispatchable region [22], the grey region in Fig. 4. The can vary within the rectangle subregion . Applying Algorithm 1, we can obtain six critical regions as in Fig. 5. Note that the quadratic objective function (6) is linearized by 5 segments. The approximate optimal cost function in each critical region is as follows.


(27) |
Following the procedure in Section III-C, we can get the demand adjustment at equilibrium in each critical region as well. Take as an example, we have :
(28) |
If we choose a scenario inside , say kW, then according to (27), the approximate optimal cost is $770.96 (); according to (IV-A), the approximate demand adjustments at equilibrium are kW, kW, kW. Both the optimal cost and demand adjustments are the same as the one we get by solving problem (8) directly with given parameters kW. This validates the effectiveness of our algorithm. The optimal cost of the original quadratic problem (6) is $767.24, so the relative error is only 0.48%, showing the linearization is accurate enough. Moreover, the obtained are the same as well. We calculate the flexibility requirement of each user, shown in TABLE IV. To accommodate the volatile renewable generation, all users need to have the ability to both increase and decrease their demand. User 3 requires the most flexibility since the value of is the largest.
Elastic demand | 1 | 2 | 3 |
---|---|---|---|
(kW) | 230 | 170 | 200 |
(kW) | -8.16 | -20.00 | -70.24 |
(kW) | 27.11 | 36.75 | 48.83 |
(kW) | 35.27 | 56.75 | 119.07 |
Given kW, the equilibrium of the energy sharing game (1)-(1) can be reached via a best-response algorithm. The change of and during iterations are shown in Fig.6 and Fig. 7, respectively. We can find that the demand adjustments converge to the above approximate values. The value of dual variables of problem (6) at optimum can be retrieved by in , i.e. , , , which are very close to the value of plotted in Fig. 7. The above analysis validates Proposition 1.


IV-B 69-bus system
A larger case with a modified 69-bus microgrid [42] is tested with topology in Fig. 8. There are three renewable generators connected to node 9, 30, and 60, respectively. Suppose their real-time output may deviate within kW. Applying Algorithm 1, the change of the maximum approximation error (defined in (18)) during iterations is shown in Fig. 9. The error decreases fast and the algorithm can output 10 critical regions (as in Fig. 10) after three iterations. The approximate optimal cost function in each critical region is



(29) |
To examine the accuracy of the approximation, let’s take as an example. Following the procedure in Section III-C, the demand adjustments at equilibrium are:
(30) |
For scenario kW , according to (29) and (IV-B), the optimal cost is $373.29 and kW, kW, kW, kW, kW, kW, which are the same as the one obtained by solving problem (6). Similarly, we can calculate the flexibility requirement for each elastic demand as in TABLE V. We notice that while elastic demands 2, 3, 4 still have some redundancy, the adjustable ability of elastic demands 1, 5, 6 has been fully exploited as and , for . Therefore, in long-term planning, we may put more emphasis on increasing the flexibility of demands 1, 5, 6.
Elastic demand | (kW) | (kW) | (kW) | Range |
---|---|---|---|---|
1 | 40 | -30 | 10 | [10, 50] |
2 | 20 | -10.09 | 15 | [0, 35] |
3 | 30 | -25 | 24 | [5, 70] |
4 | 10 | -2 | 10 | [0, 20] |
5 | 10 | -5 | 10 | [5, 20] |
6 | 40 | -30 | 10 | [10, 50] |
To show the applicability and scalability of the proposed algorithm, we test its performance under different numbers of renewable generators and users in TABLE VI; and under different settings in TABLE VII. The impact of the number of users on the computational time is marginal. The time needed increases with the number of RGs, but in this paper, we only consider the distributed renewable generators with a relatively large scale (say about 500kW) while the uncertainties from small-scale units are neglected. Usually, in a residential community, there are few such relatively large-scale units so our proposed method can still be applied.
Cases | 3 RGs,69 users | 3 RGs,345 users | 3 RGs,690 users |
---|---|---|---|
Time (s) | 103.28 | 122.34 | 92.37 |
Cases | 6 RGs,69 users | 6 RGs,345 users | 6 RGs,690 users |
Time (s) | 1507.94 | 1314.58 | 1644.23 |
Setting | 5-bus with | 5-bus with | 5-bus with |
---|---|---|---|
Time (s) | 22.09 | 13.89 | 10.31 |
Setting | 69-bus with | 69-bus with | 69-bus with |
Time (s) | 103.28 | 60.32 | 64.19 |
To test the practicability of the proposed mechanism, we compare the computational time under different numbers of users in TABLE VIII. The computational time does not change much when the number of users increases since the decision-making for each user can be done in parallel. Our algorithm can handle a large number of users.
Number of users | 69 | 345 | 690 |
---|---|---|---|
Time (s) | 29.74 | 30.06 | 30.21 |
V Conclusion
The prosperity of distributed renewable generators calls for effective management of end-users to hedge against uncertainty. In this paper, an innovative energy sharing mechanism is proposed that can facilitate the energy exchange among end-users with local information. The interaction among users and the operator is formulated as a generalized Nash game, whose equilibrium is proved to exist and can be obtained by a multi-parametric program parameterized in the renewable output deviations. To quantify the flexibility requirement of individual users, an alternative vertex generation algorithm is developed to output a piecewise linear estimator of both the optimal cost function and demand adjustment strategies at equilibrium via dual problem. It can avoid the impact of degeneracy since it does not require visiting the graph of degenerate base. Case studies validate the accuracy and scalability of our method.
Future research may further polish the proposed energy sharing mechanism by considering more realistic situations: 1) Bounded rationality of users. In this paper, the users are assumed to be fully rational while in practice they may have bounded rationality. This can be analyzed with the prospect theory [43]. 2) AC power flow model. Lossless DC power flow model is adopted in this paper for simplification, which shall be extended to incorporate AC power flow model with the help of convex relaxation [44] or linearization techniques [45]. 3) Diversity of devices. Different types of flexible devices such as energy storage shall be integrated by changing the proposed model to a multiple time step version. More future research directions can be found in [8].
-A Proof of Proposition 1
Problem (1) can be equivalently written as
s.t. | (A.1) |
Suppose is an GNE of the sharing game, then is the optimal solution of (-A). Therefore, we have
(A.2) |
Also, is the optimal solution of problem (2) or (3), which is equivalent to
s.t. | (A.3) |
where . Therefore,
(A.4) |
Similarly, let be the optimal solution of problem (6) and the value of the dual variable. Then, we have :
(A.5) |
Based on the above optimality conditions, we can analyze the existence and uniqueness of the GNE of the game as follows.
-B Redundancy Elimination
Before introducing methods to eliminate redundancy, we first give the following definitions:
Definition B1. (Redundant Constraint) A constraint is said to be redundant if removing the constraint does not change the critical region.
Definition B2. (Minimal Representation) Polyhedron (17) is said to be a minimal representation of CRi if all constraints are non-redundant.
To remove redundant constraints to construct a minimal representation of CRi, a method based on Nonhomogeneous Farkas Lemma is proposed.
Lemma B1. (Nonhomogeneous Farkas Lemma [46]) In the following two sets
Matrix multiplication is compatible in dimension. Then is empty if and only if is non-empty.
Consider constraint , if it is redundant, the polyhedron defined by the remaining constraints must be a subset of . In other words, . So we have
Theorem B1. Constraint in Polyhedron (17) is redundant if the following LP has a feasible solution
(B.1) |
If all constraints in polyhedron (17) are screened, and redundant ones are removed, then the remaining constraints constitute a minimal representation of CRi. Similarly, we can define and eliminate redundancy in as follows.
Definition B3. (Redundant Piece) In the piecewise linear function (15), a piece is said to be redundant if it never reaches maximum for all .
Claim B1. The -th piece in is redundant if the -th constraint in the polyhedron is redundant. The epigraph of the piecewise linear function (15) is the following polyhedron
(B.2) |
Similarly, according to Theorem B1, the redundancy in can be removed.
References
- [1] Y. Chen, T. Li, C. Zhao, and W. Wei, “Decentralized provision of renewable predictions within a virtual power plant,” IEEE Transactions on Power Systems, vol. 36, no. 3, pp. 2652–2662, 2021.
- [2] H. Shuai, J. Fang, X. Ai, Y. Tang, J. Wen, and H. He, “Stochastic optimization of economic dispatch for microgrid based on approximate dynamic programming,” IEEE Transactions on Smart Grid, vol. 10, no. 3, pp. 2440–2452, 2018.
- [3] R. Jiang, J. Wang, and Y. Guan, “Robust unit commitment with wind power and pumped storage hydro,” IEEE Transactions on Power Systems, vol. 27, no. 2, pp. 800–810, 2011.
- [4] W. Wei, F. Liu, and S. Mei, “Distributionally robust co-optimization of energy and reserve dispatch,” IEEE Transactions on Sustainable Energy, vol. 7, no. 1, pp. 289–300, 2015.
- [5] D. Bertsimas, E. Litvinov, X. A. Sun, J. Zhao, and T. Zheng, “Adaptive robust optimization for the security constrained unit commitment problem,” IEEE Transactions on Power Systems, vol. 28, no. 1, pp. 52–63, 2012.
- [6] B. Zeng and L. Zhao, “Solving two-stage robust optimization problems using a column-and-constraint generation method,” Operations Research Letters, vol. 41, no. 5, pp. 457–461, 2013.
- [7] Y. Chen, W. Wei, F. Liu, Q. Wu, and S. Mei, “Analyzing and validating the economic efficiency of managing a cluster of energy hubs in multi-carrier energy systems,” Applied energy, vol. 230, pp. 403–416, 2018.
- [8] Y. Chen and C. Zhao, “Peer-to-peer energy sharing: A new business model towards a low-carbon future,” arXiv preprint arXiv:2108.04057, 2021.
- [9] W. Tushar, T. K. Saha, C. Yuen, M. I. Azim, T. Morstyn, H. V. Poor, D. Niyato, and R. Bean, “A coalition formation game framework for peer-to-peer energy trading,” Applied Energy, vol. 261, p. 114436, 2020.
- [10] M. I. Azim, W. Tushar, and T. K. Saha, “Coalition graph game-based p2p energy trading with local voltage management,” IEEE Transactions on Smart Grid, 2021.
- [11] W. Tushar, T. K. Saha, C. Yuen, T. Morstyn, H. V. Poor, R. Bean et al., “Grid influenced peer-to-peer energy trading,” IEEE Transactions on Smart Grid, vol. 11, no. 2, pp. 1407–1418, 2019.
- [12] N. Liu, X. Yu, C. Wang, and J. Wang, “Energy sharing management for microgrids with PV prosumers: A stackelberg game approach,” IEEE Transactions on Industrial Informatics, vol. 13, no. 3, pp. 1088–1098, 2017.
- [13] W. Tushar, T. K. Saha, C. Yuen, P. Liddell, R. Bean, and H. V. Poor, “Peer-to-peer energy trading with sustainable user participation: A game theoretic approach,” IEEE Access, vol. 6, pp. 62 932–62 943, 2018.
- [14] N. Liu, M. Cheng, X. Yu, J. Zhong, and J. Lei, “Energy-sharing provider for PV prosumer clusters: A hybrid approach using stochastic programming and stackelberg game,” IEEE Transactions on Industrial Electronics, vol. 65, no. 8, pp. 6740–6750, 2018.
- [15] X. Xu, J. Li, Y. Xu, Z. Xu, and C. S. Lai, “A two-stage game-theoretic method for residential PV panels planning considering energy sharing mechanism,” IEEE Transactions on Power Systems, vol. 35, no. 5, pp. 3562–3573, 2020.
- [16] C. Li, Y. Xu, X. Yu, C. Ryan, and T. Huang, “Risk-averse energy trading in multienergy microgrids: A two-stage stochastic game approach,” IEEE Transactions on Industrial Informatics, vol. 13, no. 5, pp. 2620–2630, 2017.
- [17] Y. Chen, S. Mei, F. Zhou, S. H. Low, W. Wei, and F. Liu, “An energy sharing game with generalized demand bidding: Model and properties,” IEEE Transactions on Smart Grid, vol. 11, no. 3, pp. 2055–2066, 2019.
- [18] Y. Chen, C. Zhao, S. H. Low, and S. Mei, “Approaching prosumer social optimum via energy sharing with proof of convergence,” IEEE Transactions on Smart Grid, vol. 12, no. 3, pp. 2484–2495, 2021.
- [19] S. Cui, Y.-W. Wang, and J.-W. Xiao, “Peer-to-peer energy sharing among smart energy buildings by distributed transaction,” IEEE Transactions on Smart Grid, vol. 10, no. 6, pp. 6491–6501, 2019.
- [20] S. Cui, Y.-W. Wang, Y. Shi, and J.-W. Xiao, “An efficient peer-to-peer energy-sharing framework for numerous community prosumers,” IEEE Transactions on Industrial Informatics, vol. 16, no. 12, pp. 7402–7412, 2019.
- [21] J. Zhao, T. Zheng, and E. Litvinov, “Variable resource dispatch through do-not-exceed limit,” IEEE Transactions on Power Systems, vol. 30, no. 2, pp. 820–828, 2014.
- [22] W. Wei, F. Liu, and S. Mei, “Dispatchable region of the variable wind generation,” IEEE Transactions on Power Systems, vol. 30, no. 5, pp. 2755–2765, 2014.
- [23] Z. Li, F. Qiu, and J. Wang, “Data-driven real-time power dispatch for maximizing variable renewable generation,” Applied Energy, vol. 170, pp. 304–313, 2016.
- [24] H. Ma, R. Jiang, and Z. Yan, “Distributionally robust co-optimization of power dispatch and do-not-exceed limits,” IEEE Transactions on Power Systems, vol. 35, no. 2, pp. 887–897, 2019.
- [25] A. S. Korad and K. W. Hedman, “Enhancement of do-not-exceed limits with robust corrective topology control,” IEEE Transactions on Power Systems, vol. 31, no. 3, pp. 1889–1899, 2015.
- [26] H. Nosair and F. Bouffard, “Reconstructing operating reserve: Flexibility for sustainable power systems,” IEEE Transactions on Sustainable Energy, vol. 6, no. 4, pp. 1624–1637, 2015.
- [27] Y. Dvorkin, D. S. Kirschen, and M. A. Ortega-Vazquez, “Assessing flexibility requirements in power systems,” IET Generation, Transmission & Distribution, vol. 8, no. 11, pp. 1820–1830, 2014.
- [28] W. Wei, Y. Chen, C. Wang, Q. Wu, and M. Shahidehpour, “Nodal flexibility requirements for tackling renewable power fluctuations,” IEEE Transactions on Power Systems, 2020.
- [29] Y. Chen, W. Wei, H. Wang, Q. Zhou, and J. P. Catalão, “An energy sharing mechanism achieving the same flexibility as centralized dispatch,” IEEE Transactions on Smart Grid, 2021.
- [30] C. Filippi, “An algorithm for approximate multiparametric linear programming,” Journal of optimization theory and applications, vol. 120, no. 1, pp. 73–95, 2004.
- [31] A. Bemporad and C. Filippi, “An algorithm for approximate multiparametric convex programming,” Computational optimization and applications, vol. 35, no. 1, pp. 87–108, 2006.
- [32] R. Ghorani, M. Fotuhi-Firuzabad, and M. Moeini-Aghtaie, “Main challenges of implementing penalty mechanisms in transactive electricity markets,” IEEE Transactions on Power Systems, vol. 34, no. 5, pp. 3954–3956, 2019.
- [33] W. Pei, Y. Du, W. Deng, K. Sheng, H. Xiao, and H. Qu, “Optimal bidding strategy and intramarket mechanism of microgrid aggregator in real-time balancing market,” IEEE Transactions on Industrial Informatics, vol. 12, no. 2, pp. 587–596, 2016.
- [34] W. Wei, F. Liu, S. Mei, and Y. Hou, “Robust energy and reserve dispatch under variable renewable generation,” IEEE Transactions on Smart Grid, vol. 6, no. 1, pp. 369–380, 2014.
- [35] S. Nimbargi, S. Mhaisne, S. Nangare, and M. Sinha, “Review on ami technology for smart meter,” in 2016 IEEE International Conference on Advances in Electronics, Communication and Computer Technology (ICAECCT). IEEE, 2016, pp. 21–27.
- [36] P. T. Harker, “Generalized nash games and quasi-variational inequalities,” European journal of Operational research, vol. 54, no. 1, pp. 81–94, 1991.
- [37] F. Facchinei and C. Kanzow, “Generalized nash equilibrium problems,” Annals of Operations Research, vol. 175, no. 1, pp. 177–211, 2010.
- [38] L. Wu, “A tighter piecewise linear approximation of quadratic cost curves for unit commitment problems,” IEEE Transactions on Power Systems, vol. 26, no. 4, pp. 2581–2583, 2011.
- [39] F. Borrelli, A. Bemporad, and M. Morari, “Geometric algorithm for multiparametric linear programming,” Journal of optimization theory and applications, vol. 118, no. 3, pp. 515–540, 2003.
- [40] J. Fortuny-Amat and B. McCarl, “A representation and economic interpretation of a two-level programming problem,” Journal of the operational Research Society, vol. 32, no. 9, pp. 783–792, 1981.
- [41] [Online] Available:, https://sites.google.com/site/yuechenthu/data-sheet.
- [42] A. F. A. KADIR, A. Mohamed, H. Shareef, and M. Z. C. WANIK, “Optimal placement and sizing of distributed generations in distribution systems for minimizing losses and THD_v using evolutionary programming,” Turkish Journal of Electrical Engineering & Computer Sciences, vol. 21, no. Sup. 2, pp. 2269–2282, 2013.
- [43] K. Jhala, B. Natarajan, and A. Pahwa, “Prospect theory-based active consumer behavior under variable electricity pricing,” IEEE Transactions on Smart Grid, vol. 10, no. 3, pp. 2809–2819, 2018.
- [44] S. Huang, Q. Wu, J. Wang, and H. Zhao, “A sufficient condition on convex relaxation of ac optimal power flow in distribution networks,” IEEE Transactions on Power Systems, vol. 32, no. 2, pp. 1359–1368, 2016.
- [45] Y. Chen, W. Wei, F. Liu, E. E. Sauma, and S. Mei, “Energy trading and market equilibrium in integrated heat-power distribution systems,” IEEE Transactions on Smart Grid, vol. 10, no. 4, pp. 4080–4094, 2018.
- [46] Z. Xu, “Generalization of nonhomogeneous farkas’ lemma and applications,” Journal of Mathematical Analysis and Applications, vol. 186, no. 3, pp. 726–734, 1994.