scieee AI-readable full text Open interactive document viewer

Cooperation model in the electricity energy market using bi-level optimization and Shapley value

Acuña, Luceny Guzmán,Ríos, Diana Ramírez,Paternina-Arboleda, Carlos D.,Ponzón, Esneyder González

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Acuña, Luceny Guzmán; Ríos, Diana Ramírez; Paternina-Arboleda, Carlos D.; Ponzón, Esneyder González Article Cooperation model in the electricity energy market using bi-level optimization and Shapley value Operations Research Perspectives Provided in Cooperation with: Elsevier Suggested Citation: Acuña, Luceny Guzmán; Ríos, Diana Ramírez; Paternina-Arboleda, Carlos D.; Ponzón, Esneyder González (2018) : Cooperation model in the electricity energy market using bilevel optimization and Shapley value, Operations Research Perspectives, ISSN 2214-7160, Elsevier, Amsterdam, Vol. 5, pp. 161-168, https://doi.org/10.1016/j.orp.2018.07.003 This Version is available at: https://hdl.handle.net/10419/246362 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc-nd/4.0/ Contents lists available at ScienceDirect Operations Research Perspectives journal homepage: www.elsevier.com/locate/orp Cooperation model in the electricity energy market using bi-level optimization and Shapley value Luceny Guzmán Acuña ⁎,a , Diana Ramírez Ríos b , Carlos Paternina Arboleda a , Esneyder González Ponzón a a Department of Industrial Engineering, Universidad del Norte, Barranquilla, Colombia b FCIMEC, Fundación Centro de Investigación en Modelación Empresarial del Caribe, Barranquilla, Atlántico ARTICLE INFO Keywords: Cooperation models Energy market Bi-level optimization Shapley value ABSTRACT In this paper, a cooperation model between a generating company and several marketers is presented. The model considers two cooperation schemes. The first finds the optimal decision for the generating company and the group of marketers in terms of maximization of their profits, based on bi-level optimization. Second scheme proposes the cooperation among the marketers, whose objective is to serve a common set of consumers and to increase their profits through cooperation, with respect to the profit gained individually. Profit of the marketers group are divided among them, based on the Shapley value. The model was solved using GAMS and Visual Studio Tools for Office and was validated through a case study in a region in Colombia. The results of the study showed that implementing these cooperation structures brings additional economic benefits to the cooperating agents. 1. Introduction Electricity markets has suffered regulatory changes in many countries in the last decades. These changes has increased the interest of researchers in modeling the electricity market behavior considering different aspects: market equilibria [1], risk analysis [2], incorporating renewable energies [3], analysis of investment [4], capacity expansion [5], forms of interaction [6], among others. The large electricity markets are changing their traditional vertical structure and are transforming into a set of deregulated entities, becoming more competitive and dynamic [7]. As a result, new interaction conditions are being generated between the agents that participate in the market: generators, transmitters, distributors and marketers, to achieve desired results [8]. Within the concepts applied to the electricity market analysis are the game theory in their different contexts [9], the Shapley value as solution concept for coalitional games [10], and bi-level programming as optimization methodology [11]. In this paper, the cooperative game theory is used to show that generators and marketers in an electricity market can cooperate to obtain better benefits, while the demand of users is satisfied. Two cooperation schemes are proposed. The first scheme is a cooperation between a generator with several generation units and a set of marketers; all these seek maximizing their profits. The bi-level programming (BLP) is used as solution methodology. The second scheme considers an additional cooperation among marketers whose purpose is to improve their profits as a result of the cooperation. The Shapley value is used to allocate the profits among marketers. This value measures the contribution of each player when entering a coalition. This value is characterized to be unique and a fair value for each player, guaranteeing that there will be no incentive to leaving the coalition. Both cooperation methodologies are complex of applying. BLP has complex geometric properties in relation to the mathematical programming problems [12], and Shapley value leads to a combinatorial problem [13]. The details of proposed models are presented in the modeling framework section. This paper is organized as follows: Section 2 presents a brief survey on the application of cooperative games, bi-level programming and Shapley value in the electricity market modeling. The contributions of this paper are also mentioned. Section 3 presents some concepts about bi-level programming, game theory and Shapley value. In Section 4 the description and solution of the proposed cooperation schemes are presented. In Section 5 the methodology proposed is applied to a case study. Finally, in Section 6, conclusions and further research directions are presented. https://doi.org/10.1016/j.orp.2018.07.003 Received 9 February 2018; Received in revised form 15 June 2018; Accepted 14 July 2018 ⁎ Correspondance author. E-mail addresses: [email protected] (L.G. Acuña), [email protected] (C.P. Arboleda), [email protected] (E.G. Ponzón). Operations Research Perspectives 5 (2018) 161–168 Available online 17 July 2018 2214-7160/ © 2018 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/BY-NC-ND/4.0/). T 2. Related works Game Theory is used to analyze the electricity market in different contexts. In transmission activity has been used to analyze important issues as: the power losses in the transmission lines, the incentives assignment from the expansion of the transmission system, the allocation of transmission costs, among other. In [14] is presented a solution to the problem of locating losses in transmission lines. Researchers used game theory and Shapley value to allocate costs for energy loss to each user companies of the network. A similar work was analyzed in [15], but the authors used another solution form based on artificial neural network. In [16] a novel methodology to allocate benefits in transmission expansion projects was presented. The proposed method was based on a cooperative game using Aumann and Shapley values. In the generation activity has been used in different ways. In [17],a model to assign the costs among generators embedded in a distribution network was proposed. The power injected into the network was taken into account and Nucleolus and Shapley value concepts were used. The generation maintenance scheduling was presented in [18]. A non cooperative Game Theory was applied. The independent system operator coordinated the process of generation companies guaranteeing the system reliability. The design and operation of a distributed energy network to interchange energy among consumers and promoting the participation of the consumers in the network was presented in [19]. The core method of the cooperative game theory was used to show that it is possible to reduce total annual electricity costs as a result of the cooperation. A study that considered multiple distributed generation was presented in [20]. The economic incentives to cooperate in the development of a micro-grid was evaluated using cooperative game theory approach. The Shapley value was implemented to measure the benefits of cooperating. Another way to present the benefits of cooperating in the design and operation of a micro-grid was proposed in [21]. The formulation was based on game theory bargaining solution approach. The assignment of reduction losses in a distribution system in presence of distributed generation, was also analyzed from game theory [22]. Game theory has also been applied to the retail electricity market, considering renewable suppliers. In [23] is presented a model where the consumers that have renewable energy generation and energy storage devices can become electricity suppliers. The Cournot model of Game Theory was used to approximate the competition in the market. This work was extended in [24] considering real-time economic operations. Scenarios where generators could form coalitions to cooperate, were proposed and simulated. A similar proposal to these works was presented in [25]. Other game theory applications were presented in more general contexts. The Shapley value in cooperative game was applied in [26] to allocate the economic benefits among the consumers that participate in the interruptible load management. This, as an incentive to contribute to the system reliability and to mitigate the market price spike. This value was also used in [8] to study the feasibility of coalition formation processes in several scenarios in electricity markets. In [27] the efficiency of electricity distribution companies was evaluated combining game theory, principal component analysis and data envelopment analysis. An application of cooperative game in the energy supply planning is presented in [28]. The authors considered the possibility of forming coalitions among distribution, transmission and generation companies, with the aim of improving their profits. The companies that participate in the electricity market, be they generation, transmission, distribution, commercialization, or others, can cooperate horizontally, if they develop the same activity [29],or vertically, if they develop different activities. In vertical cooperation the bi-level linear programming concept has been widely used. In [30] was proposed a bi-level model to analyze the relation between several generator companies. The generation company with the maximum capacity was the leader, and several generation companies with owning plants of different technologies were the followers. The common goal was to maximize their profits. In [31] the leader was the transmission company, who should design the annual horizon of the transmission system. The followers were the generating companies who seek their equilibrium point, in terms of quantities to sell and prices. A different application was presented in [32], the leader was a terrorist agent which aims to maximize the damage caused to the system and the follower was the system operator, who wanted to minimize the damaged, reacting rapidly to the contingent event and making it work as soon as possible; several solutions were shown. Researchers in [33] developed a cooperation methodology between generation and transmission companies using bi-level optimization. The investigation purpose was to analyze the expansion planning problem. The transmitter was the leader and the generating company the follower. The leader decides the optimal expansion plan of network taking into account the follower decisions, their goal was to maximize profits. A game theoretical model using bi-level optimization is proposed in [34]. The model decided the price schedule that maximized the retailer profits, who is the leader, while the consumer or follower minimized the cost of electricity consumption. The model considered stochasticity in prices, load and weather variables. Other application of bi-level programming is presented in [35]. In the upper level is a central production unit who decides the profit margin in order to minimize its production cost. In the lower level is the energy services provider whose goal is to maximize its net profit. The proposed model considers demand response and the interaction rules between agents are established in a bilateral contract. In [36] a bi-level optimization problem is presented. In the upper level is a producer and the lower level is the independent system operator (ISO). The producer seeks the optimal bidding strategy to maximize his profits and the ISO deals with the market clearing problem by minimizing costs. Not many studies have considered the distributers as important players in the electricity energy market. This because the distribution activity is a natural monopoly. However, in [37] was proposed a bilevel problem with a distributor as a leader. The problem considered distributed generation and interruptible load. The main goal was to minimize the production costs of a distributed unit and the purchasing of the charge not available. The follower was the system operator who sought to maximize the social welfare. A study that takes into account the traders was presented in [38]. A bi-level problem was formulated with multiple leaders (generators) and a follower (the market operator). The analysis showed the effects of the cooperation model over the social benefits. More recent works in the application of bi-level programming in the electricity market are summarized in Table 1. Therefore, we consider that the main contributions of this paper are as follows: 1. The inclusion of marketers in the modeling carried out. Energy marketers play an important role in the electricity market, due to their relationship with the final consumers. Despite this, they have rarely been considered of electricity market modeling. 2. Implementing a Stackelberg game approach between a generator and multiple marketers using bi-level optimization and the use of the optimality conditions of Karush–Kuhn–Tucker (KKT) as a game solution. 3. Proposing a cooperation model between marketers using the Shapley value as an instrument to distribute profits and measure the cooperation impact. 4. Comparison of the two cooperation schemes in terms of the profits obtained by agents. 3. Materials and methods 3.1. Bi-level programming In bi-level programming (BLP) there are two decision levels, the L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 162 upper level with a leader and a lower level with one or several followers. The leader controls a decision vector =…xxx(, ) n1111 and the follower controls a decision vector =…xxx(, ) n2212 . The global system is subject to a set of constraints, which determines the feasible region ⊂+ SE nn 1 2 to x 1 and x 2 .E n denotes the −n dimensiona l space [47]. The leader and the follower play “Stackelberg’s Duopoly Game”, where the basic idea is the following: The leader chooses the decision vector x 1 that optimizes his objective function f 1 (x 1 ,x 2 ). The follower, taking into account the leader decision, chooses the decision vector x 2 that optimizes his objective function f 2 (x 1 ,x 2 ). The problem can be formulated as follows [48]: fxxmax ( , ) (upper level problem) 112 (1) where the lower level solves the problem: fxxmax ( , ) 212 (2) subject to: =≤≥S xx gxx xx{(,):(,) 0and , 0} 12 12 12 (3) In order to obtain the solution for this problem, it is assumed that the upper level specifies x 1 and then the lower level specifies x 2 , knowing the decision of the upper level. The solution set for the lower level is given by the following equation: =⎧ ⎨ ⎩∈≥ ∈ R xxxxS fxxfxx xx S () *:( , *)and(, *)(, *) for all ( , ) 1212212212 12 (4) The solution set for the upper level is given by the following equation: =∈∈xxxxS xRxΨ( { : ( , ) and ( )} 1112 2 1 (5) The solution point (x 1 ,x 2 ) is feasible if (x 1 ,x 2 )∈Ψ(S) and the solution point xx ( *,* ) 12 is optimal if f xx(*,*) 212 is unique for all ∈xRx *( ) 21and ≥ f xx fxx(*,*)(, ) 212 212 for all (x 1 ,x 2 )∈Ψ(x). If the lower level is divided in k lower levels or sublevels, the decision vector in the upper level is x l and the objective function f x() land in the klower levels the decision vectors are x 1 ,.,x k , respectively and the objective functions f x(), i =… ik 1, , (these vectors can be given in different dimensions) with =…xx xx(, , , ) lk1. The problem can be formulated in the following general form: fxmax ( ) 1(6) =…fi k xmax ( ) 1, , i(7) subject to: ≤gx 0 () (8) The bi-level programming problems present complex geometric properties with relation to the mathematical programming problems, this is, the solution to a lower level problem does not need to be unique for a fixed value in the upper level, so the feasible regionΨ(S) for the problem in a upper level is not convex, thus, the solution to the BPL problem may not be Pareto Optimal. The complexity in this type of problem increases if the number of levels increase and objective functions and constraints are non-linear. Researchers have developed different approaches to solve these types of problems depending of their characteristics [49,50]. 3.2. Game theory and Shapley value Game theory is a discipline used in many contexts to study the behavior of a set of individuals who interact, but have to take individual decisions that affect others and generates competition conditions [51]. This theory contains an important part called cooperative or coalitional games. Cooperative games are those games where the players are able to form coalitions or binding agreements in order to reach together a common objective. The fundamental concept used by von Neumann and Morgenstern for the description of a coalitional game is the characteristic function vand its definition is based on the axioms defined by John Nash and stated by Owen [52]. The use of this function implies some important considerations that originates in a cooperative game with transferable utility, which are stated as follows: 1. The individual utility can be measured in money, for example, and players are able to transfer them freely. 2. The payment that has a determined coalition is not referred to the behavior of members that are not in the coalition. Table 1 Recent bi-level applications in electricity markets. Paper Year Leader Follower(s) Summary Alipour M. et al. [39] 2018 MGO a CHPOs b Maximization of profits on both levels. Implementation of demand response program, day-ahead, real time and bilateral contract. Mazidi P. et al. [40] 2018 ISO GENCO c ISO: Minimizing the operational costs. GENCO: Maximize its profit. The generation maintenance scheduling problem is solved. Wind resource and stochastic demand are considered Li G. et al. [41] 2017 ED d EA e ED: Minimizing the total operation cost. EA: Minimizing the gas purchasing cost. Natural gas, wind power and power- to-gas process are integrated to obtain the optimal allocation of electricity and natural gas Wei F. et al. [42] 2017 DESs f EUs g DESs and EUs actively participate in the multiple energies trading seeking maximizing their benefits. DESs decide unit prices and EUs and amounts of energies to consume . Kardakos E. G. et al. [43] 2016 CVPP h ISO CVPP: Maximization of the day-ahead profit. ISO: Minimizing the total production cost. Demand response schemes are incorporated. Bahramara S. et al. [44] 2016 DISCO i MGs k The leader maximizes its profit. The followers minimize their costs. The impact of the market price are analyzed. Wang B. et al. [45] 2015 ISO ISO In the upper level, ISO maximizes the ATC j , its calculation is based on a power flow base. In the lower level, the ISO minimizes the generation costs in the economic dispatch. Liu J. et al. [46] 2015 GENCO Consumers Objective of the bi-level problem: In the upper level, minimizing the generation and the carbon emission costs. In the lower level minimizing compensation and incentive costs of the users. a The micro-grid operator/owner. b Combined heat and power owners. c Generation company. d Economic dispatch for electricity system. e Allocation for natural gas system. f Distributed energy stations. g Multiple energy users. h Commercial virtual power plant. i Distribution company. j Available transfer capability. k Micro-grid. L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 163 3. The coalition can make agreements in terms of payments distributed to its members. In a more formal way, a cooperative game with transferable utility is defined as an ordered pair Nυ ( , ) with =… N n1, 2, , being the set of players and υ being the characteristic function, →υPN:() , where P (N) is the set of all possible subsets of N. In every cooperative game, it must be fulfilled that for each subset S belonging to N, the characteristic function υ of the game offers a better payment υS() than the players will receive independently. This should be an incentive from players not leave the coalition. This is known as the superadditivity property established as: ∅= ∪ ≥ ∪ ⊆ ∩ =∅υ υS T υS υT ST N S T() 0and ( ) () ()forall , , . (9) Once obtained the optimal value υ in a coalitional game, it is necessary to make the distribution of the quantity υN( ) . This last distribution is known as payment configuration and is represented as a vector ∈xn  such that: ∑=≥ =xυN xυi i( ) and ( ) for all i n ii 1(10) This is, the ith component in xis the payment for player i. The payment configurations constitutes the solution to the game. The characteristics and solution of a cooperative game have been studied extensively for many researchers [53]. One of the solution concepts more recognized in literature is the Shapley value [54]. This value is unique and represents a function that assigns to each Nυ ( , ) game a value ϕNυ(, ) i for each i∈Nwhich satisfies the following three axioms: 1. Symmetry: If two players are interchangeable, that is, where its marginal contribution to each coalition is the same, then each one of them will receive the same payment. If =SS Δ () Δ( ) ij for each S⊆N then =ϕN ϕN(,) (,), ij where =∪−SυSi υS Δ () ( {}) ( ) i 2. Efficiency: The sum of the values of each one of the players is equal to the value of the grand coalition, that is: ∑ = = ϕNυ υN(,) ( ) i n i 1 3. Linearity: For a composed game +υ ω with player set N, += +ϕNυ ω ϕNυ ϕNω(, ) (,) (, ) iii . The Shapley value is given by the following expression: ∑ =⎛ ⎝−−⎞ ⎠∪− ⊆− ϕNυ SN S NυS i υS(,) !( 1)! !(( {}) () ) i SNi (11) 4. Modeling framework 4.1. Modeling formulation In this paper two cooperation schemes were proposed. The first, between a generator and a set of marketers and the second, between several marketers. The formulation of these models is as follows: First scheme. The model considers the cooperation among a generator or leader with mgenerating units and a set of nmarketers. To analyze this cooperation a bi-level problem with multiple followers is proposed. The leader must determine his supply and price strategies, taking into account the generating unit capacity and the cost function associated with the generation. Each generating unit i, =… im 1, , supplies to each marketer j, =… j n1, , an hourly power quantity X ij at a price of PVC ij which depends on each unit. On the other hand, the marketer j, =… j n1, , sells to each user k, =…k r 1, , an hourly power quantity Y jk at a price of PVU jk , such that the utility of all agents is maximized, while the users demand is satisfied. The problem is formulated in the following way: For the generator (the leader). ∑∑ ∑ ⎛ ⎝ ⎜− ⎞ ⎠ ⎟ == = PVC X C Pmax ( ) XPi m j n ij ij i m ii ;11 1 ij i, (12) For each one of the marketers (the followers): ∑∑ ⎛ ⎝ ⎜−⎞ ⎠ ⎟=… == PVU Y PVC X j nmax for all 1, , P VU Y k r jk jk i m ij ij ;11 jk jk,, (13) subject to: ∑==… =XP i mfor all 1, , j n ij i 1(14) ≤≤ =…PP i m 0 for all 1, , iimax (15) ∑∑ ≥=… == XY jnfor all 1, i m ij k r jk 11 (16) ∑≥=… =YS k rfor all 1, , j n jk k 1(17) ≤ ≤ =… =…PVU PVU j n k r0 for all 1, , ; 1, , jj max (18) ∑∑ −≥=… == PVU Y PVC X j n 0forall 1, , k r jk jk i m ij ij 11 (19) ≥XPYPVU,, , 0 ij i jk j k,(20) P ima x is the maximum capacity of the generating unit i, S k is the demand of the user kand C i (P i ) is the cost function for each unit i, and is given by the Eq. (21), being P i the output power for each generating unit i. =++CP aP bP c() ii i iii i 2 (21) Eq. (25) represents the capacity constraints for each generating unit. The balance constraints are represented through Eq. (16).Eq. (17) guarantees the supply of energy to the users. Eq. (19) guarantees the non-loss of profits and Eq. (20) are the non-negativity constraints. The Karush–Kuhn–Tucker (KKT) conditions were used to solve the proposed model. According of these conditions the problem is re-for- mulated in a mono-objective equivalent problem. The objective function is that of the leader and the objective functions of followers become constraints. The equivalent problem is formulated as follows: ∑∑ ∑ ⎛ ⎝ ⎜− ⎞ ⎠ ⎟ == = PVC X C Pmax ( ) XPi m j n ij ij i m ii ;11 1 ij i, (22) subject to: ∑∑ ∇− ∇= =… =…++fωg jntnrnrxx() () 0forall 1, , . 1 , 2 . j j t tt (23) ∑==… =XP i mfor all 1, , j n ij i 1(24) ≤≤ =…PP i m 0 for all 1, , iimax (25) ∑∑ −≥=… == PVC X PVU Y j n 01,, i m ij ij k r jk jk 11 (26) ==…++ ω gtnrnrx() 0forall 1 , 2 tt (27) ≤=…++gtnrn r x() 0 forall 1, , 2 t(28) ≥=…++ w tnrn r 0forall 1, , 2 t (29) xis a decision vector composed for all variables controlled by the followers. Those, Y j,k and PVU j,k . A total of 2jk variables. ∇is the gradient with respect to the components of the vector x. L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 164 ∑∑ =− =… == f PVU Y PVC X j nx() 1, , j k r jk jk i m ij ij 11 (30) ∑∑ =⎛ ⎝ ⎜−⎞ ⎠ ⎟=… == gYXjnx() 1, , t k r jk i m ij 11 (31) ∑ =⎛ ⎝ ⎜−⎞ ⎠ ⎟=… =+…+ = gSYk rtn nrx( ) 1, , ; 1, , tk k r jk 1(32) =− ≤ = … = … =++…++ gPVUjnkr tnr nrnr x() 0 1,, ; 1,,; 1, , tjk (33) =− ≤=…=… =++ +…++ gPVUPVU j nk r tnrnr nr nr x() 0 1,, ; 1,, 1, , 2 tjk j max (34) The proposed model responds to static or variable demands. Variable demands can originate from daily demand curves or taking into account its probabilistic behavior or relating the demand of a period with that of the previous period in multiperiod models. As we are analyzing a single-period model, we consider the probabilistic approach for the demand behavior S k for all =…k r 1, , . In this case a continuous uniform distribution for the demand was used. The distribution parameters were 0 and S k,max for all k. For each user a demand value S k is generated such that the probability that demand exceeds this value is 0.05. To solve this model the version 2.9 of the OpenSolver of excel was used. Due to the non-linearity of the model, the Couenne (Convex Over and Under Envelopes for Nonlinear Estimation) of COIIN-OR (Computational Infraestructure for Operations Research) was used as search engine. Second sheme. In this scheme, values for X ij and P i are taken of the first scheme. All possible coalitions among the nmarketers are generated and cooperation models between them are carried out. In each coalition, the participating agents determine the sale prices PVU j,k for the users and the quantities negotiated with them, Y j,k . The analysis is as follow: For nplayers there are =− ω 2 1 npossible coalitions. Be =…BBB{,, } w1 the set of all possible coalitions and T the set formed by all possible combinations of the elements in B, such that for all Z⊂T,it must be satisfied that the union of all elements in B a that belong to the set Z, constitute the total set of player. Each one of the telements in Trepresents a new coalitional structure that assigns a characteristic function U t . So, toptimization problems are generated in the second scheme, in which the profits of the marketers are maximized. The problem is as follows: ⎜ ⎟ ⎛ ⎝∑∑ ∑∑ ⎞ ⎠ =− =∈ = = = U PVU Y PVC Xmax P VU Y t jB Z A k r jk jk i m j n ij ij ,111 jk jk a (35) subject to: ∑∑ ∑ ==∈ ∈⊂ = = XY jB Z for all jB Zi m ij k r ak a 11 at (36) ∑= =YS k for all a A ak k 1(37) The number of problems tto solve depends on the number of players, for example, if =n3 , the set of possible coalitions and new coalitional structures are showed in Table 2. When the number of players increases, the complexity will also increase. The number of coalitional structures tis explained in terms of the bell numbers [55]. Table 3 shows these numbers for different n. The toptimization problems generated in the second scheme were solved in Excel Visual Basic for Applications. Each of the structures is represented as a vector. For example, if =n6 , the vector (0,0,0,0,0,0) indicates that the six players work independently. The vector (0,1,1,0,0,1) indicates that players 1, 2 and 6 formed a coalition and the others worked independently. The vector (1,1,2,0,2,0) indicates that Table 2 Coalitions and new coalitional structures for three players. Coalitions Coalitional structures 1. {1} 1. { {{1},{2} {3}} 2. {2} 2. { {{1,2},{3}} 3. {3} 3. { {{1,3},{2}} 4. {1,2} 4. { {{2,3},{1}} 5. {1,3} 5. {{1,2,3} 6. {2,3} 7. {1,2,3} Table 3 Number of coalitions and coalitional structures for nplayers. nCoalition number (ω) Coalitional structures number(t) 23 2 37 5 415 15 531 52 6 63 203 Table 4 Information of the thermal generating units. Generating unit i P ima x (MW) a($/kWh 2 )b($/kWh) c($) G 1 302 0,00221 067,403 34,5 G 2 411 0,00457 027,216 22,9 G 3 447 000261 112,134 18,6 G 4 314 000371 000275 19,6 G 5 877 0,00266 0,71600 17,3 Table 5 Users demand. User kS k Demand(MW) U 1 250 U 2 315 U 3 325 U 4 200 Table 6 Hourly energy sale price of each generating unit to marketers ($/kWh). Marketer Unit C 1 C 2 C 3 C 4 C 5 C 6 G 1 94.8 102 93.6 87.0 93.6 93.6 G 2 93.6 91.2 97.8 88.8 94.2 91.2 G 3 87.6 94.8 90.0 87.6 95.4 97.8 G 4 94.8 97.2 97.2 103.8 96.6 88.8 G 5 95.4 89.4 89.4 90.0 96.6 97.2 Table 7 The hourly power quantities X ij (MW). Marketer j Generating unit iC 1 C 2 C 3 C 4 C 5 C 6 G 1 0 320 0 0 0 0 G 2 0 0 411 0 0 0 G 3 000008,5 G 4 0 0 0 314 0 0 G 5 000000 L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 165 players 1 and 2 formed a coalition, as players 3 and 5 and players 4 and 6. All vectors are in an Excel sheet, and are read by a macro to create the toptimization models and a table with the input values is dynamically created. The solver delivers a table with Shapley values with the profits of each marketer. The complexity of the algorithm used in solving this second model is determined by the coalitional structures number and the operations performed in the optimization process. The number of structures corresponds to the number of ways to partition nelements in knonempty subsets, which is called the Bell number, B n . An upper bound for this number and is given by [56]: ⎜ ⎟ ⎛ ⎝ +⎞ ⎠ n n 0, 792 ln( 1) n (38) To solve the optimization problems the Excel solver was used. This is based on the Generalized Gradient Method (GRG). The GRG method is an non-linear extension of the Simplex method. The minimum complexity of the method is linear and the maximum is exponential. From the two previous arguments, and taking into account Eq. (38),itis concluded that the algorithm complexity is exponential. 4.2. Model considerations A series of considerations are taken into account in the proposed model, these are: •In the model, non-regulated users were considered. An user is nonregulated when his monthly energy consumption greater than 55 MWh ormaximum demand higher than 0.1 MW of power. Energy purchase prices are freely agreed with the marketer. •The negotiation between an unregulated user and a marketer is done through a bilateral contract. The contract commercial conditions are freely agreed between them (Resolutions 131 of 1998 and 183 of 2009 of the CREG 1 ) •The contract between the non-regulated user and marketer is the pay-demanded type. In this type, the marketer must supply the energy required by the specific time. •The negotiation between the generator and the marketer is through a bilateral contract. The contract type is pay-demanded. In this case the generator assumes the risk of change in demand. The marketer pays his consumption at the contract price, when this is less or equal that the amount of energy contracted. If the consumption is higher than the contract, the difference is paid at the stock price. The generator sets a maximum power limit in the contract. •The two items previous lead to a single period one model. •The model considered represents a type of economic negotiation between passive agents of the electricity market,. There is no participation of the system operator, therefore the power flow is not taken into account. •Network congestion problems are not considered. •Only thermal generation units are considered. The generation capacities of the units are sufficient to supply the load, therefore it is not necessary to consider storage systems. 5. Case study The proposed methodology was applied in a small sector of the electricity market in Colombia, in the northern part of the country. There is a set of generating units that have the capacity to supply the energy to a large percentage of the population. This case considered the supply of energy to big industries, known as non-regulated users, through marketers. Energy prices are negotiated freely between marketers and users without the intervention of the regulation entities and they are established through bilateral contracts. The proposed system is composed by a generating company with five generating units, six marketers and four users. The entry information is shown in Tables 4–6. Table 8 The hourly power quantities Y jk (MW). User k Marketer jU 1 U 2 U 3 U 4 C 1 75,3 139,3 87,4 0,0 C 2 0,0 0,0 0,0 0,0 C 3 118,5 96,1 101,7 94,7 C 4 43,5 63,9 111,3 95,3 C 5 0,0 0,0 0,0 0,0 C 6 0,2 0,0 8,3 0,0 Table 9 The sale prices PVU jk ($/kWh). User k Marketer jU 1 U 2 U 3 U 4 C 1 170 170 170 170 C 2 0000 C 3 158 158 158 158 C 4 173 173 173 173 C 5 0000 C 6 161 161 161 161 Table 10 Objective functions values determined through bi-level optimization. Generator Objective function value ($) 1 100.471,7 Marketer Objective function value ($) 1 22.710,4 20 3 24.742,2 4 21.728,8 50 6 537,2 Total 69.718,6 Table 11 Shapley value contribution ($). Marketers j S123456 0 2.725.248 0 2.969.064 2.607.456 0 64.464 1 2.867.196 49.728 3.324.168 2.779.608 9.864 98.748 2 2.904.450 30.000 3.506.652 2.847.066 0 82.386 3 2.906.262 10.068 3.615.156 2.879.082 0 74.766 4 2.882.700 0 3.679.272 2.885.724 0 76.092 5 2.833.968 0 3.708.864 2.867.196 0 76.704 ϕυ() 23.778 125 28.893 23.425 14 657 Table 12 Comparison of results under both cooperating schemes. Objective functions value ($/h) Marketer Using only bi-level Cooperating 1 22.710,4 23.778 2 0 125 3 24.742,2 28.893 4 21.728,8 23.425 50 14 6 5372 657 Suma 69.718,6 76.891.6 1 Comisión de Regulación de Energía y Gas. L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 166 The first scheme model, the amount of hourly power X ij supplied by the generating unit ito the marketer j; the amount of hourly power P i supplied by the generating unit i, the amount of hourly power Y jk that the marketer jsells to the non-regulated user kand the hourly power sale prices PVU jk of the marketer jto the user kare the decision variables. The sale prices PVU ij are established by the agents in charge, depending on negotiation agreements between them. The results of the optimization model in the first scheme are summarized in Tables 7–9 and the objective function values for all agents are shown in Table 10. In the second scheme, a cooperation between the six marketers was initiated, taking into account the problem given by Eqs. (35)–(37). 203 optimization models were solved. The best coalitional structure in terms of maximizing the total profit was obtained when the six marketers cooperated. The contribution of each marketer in the coalition’s formation was calculated using Shapley value, as it was explained in Section 4.1 and using the Eq. (11).Table 11 shows this values. Table 12 illustrates a comparison of the results obtained by the two schemes, in terms of the values of the individual objective functions. We can observe that scheme cooperation between marketers is a better strategy. 6. Conclusion Due to the changes that have occurred in the electricity market it is necessary to develop methodologies to propose new ways of interaction between participating agents. We can distinguish five main groups: generators, transmitters, distributers, marketers and users (regulated and non-regulated). Transmitters and distributers are passive agents, because the activities developed are considered monopolies. Generators and marketers are active agents because their activities are oligopolies by nature. In the proposed cooperation methodology participate generators and marketers. The methodology consists of two cooperation schemes. The first scheme allows the cooperation between a generation company with several generating units and a set of marketers. The generation company has a large capacity that allows supply the energy to an extensive area in the north of the Colombia country and the marketers must supply energy to a set of non-regulated users. This scheme is formulated as a bi-level optimization problem with multiple followers. The generation company is the leader and marketers are the followers. The second scheme is a cooperation between marketers based on the formation of coalitions. That is, get the best strategy that ensures that no marketer considers leaving the coalition. The profits assigned to each marketer are calculated from the Shapley value. The proposed methodology was applied to a case study, results showed that: •Under the proposed schemes, the profits of the participating agents can be improved. In the application example the total profit of the marketers increases by 9.3% when they cooperate and all marketers obtain greater profits in cooperating than when they work independently Table 12. The superaditivity property established in Section 3.2 is fulfilled. •It is possible established agreements between the agents through bilateral contracts, so that the collaboration is more profitable. The cooperation can be vertical (generator-marketer) or horizontal (marketer-marketer). •Although a system of natural competition has been established, it is possible to work cooperatively and obtaining global benefits. Benefits in terms of increased profit and revenue or cost reductions. •Game theory played an important role in the approach used, due to interactions among the different actors in the electricity energy market. For further research, the proposed methodology could be refined and applied in multi-period models, with different energy sources, considering negotiations in the spot market and taking into account stochasticity in demand, prices and input variables. Additionally, the computational tool to solve the generated dynamic models would be designed. References [1] Pozo D, Contreras J, Caballero Á, de Andrés A. Long-term Nash equilibria in electricity markets. Electr Power Syst Res 2011;81:329–39. [2] Kazemi M, Mohammadi-Ivatloo B, Ehsan M. Risk-constrained strategic bidding of GenCos considering demand response. IEEE Trans Power Syst 2015;30:376–84. [3] Negrete-Pincetic M, Castro L, A. Pulgar-Painemalef H. Electricity supply auctions: understanding the consequences of the product definition. Int J Electr Power Energy Syst 2015;64:285–92. [4] Grimm V, Martin A, Schmidt M, Weibelzahl M, Zöttld G. Transmission and generation investment in electricity markets: the effects of market splitting and network fee regimes. Eur J Oper Res 2016;254:493–509. [5] Jin S, Ryan S. Capacity expansion in the integrated supply network for an electricity market. IEEE Trans Power Syst 2011;26:2275–84. https://doi.org/10.1109/TPWRS. 2011.2107531. [6] Oliveira FS, Ruiz C, Conejo AJ. Contract design and supply chain coordination in the electricity industry. Eur J Oper Res 2013;227:527–37. [7] Santos G, Pinto T, Morais H, Sousa TM, Pereira IF, Fernandes R, et al. Multi-agent simulation of competitive electricity markets: autonomous systems cooperation for European market modeling. Energy Convers Manage 2015;99:387–99. [8] e Oliveira Jr. HA. Coalition formation feasibility and Nash-Cournot equilibrium problems in electricity markets: a fuzzy ASA approach. Appl Soft Comput 2015;35:1–12. [9] Gabriel SA, Siddiqui SA, Conejo AJ, Ruiz C. Solving discretely-constrained nashcournot games with an application to power markets. Netw Spatial Econ 2013;13:307–26. [10] Pinto T, Morais H, Oliveira P, Vale Z, Praca I, Ramos C. A new approach for multiagent coalition formation and management in the scope of electricity markets. Energy 2011;36:5004–15. [11] Zhang G, Zhang G, Gao Y, Lu J. Competitive strategic bidding optimization in electricity markets using bilevel programming and swarm technique. IEEE Trans Ind Electron 2011;58:2138–46. [12] Kovacevic RM, Pflug GC. Electricity swing option pricing by stochastic bilevel optimization: a survey and new approaches. Eur J Oper Res 2014;237:389–403. [13] Shorrocks A. Decomposition procedures for distributional analysis: a unified framework based on the Shapley value. J Econ Inequality 2013;11:99–126. [14] Xin-zhong B, Wei C. Allocation of transmission losses in electricity system based on cooperative game theory. Power and energy engineering conference (APPEEC), Asia-Pacific. 2010. p. 1–4. https://doi.org/10.1109/APPEEC.2010.5448705. [15] Salar M, Haghifam MR. Transmission loss allocation in a power market using artificial neural network. Power and energy (PECon), IEEE international conference. 2010. p. 729–34. https://doi.org/10.1109/PECON.2010.5697675. [16] Banez-Chicharro F, Olmos L, Ramos A, Latorre JM. Estimating the benefits of transmission expansion projects: an Aumann-Shapley approach. Energy 2017;118:1044–54. [17] Xin-zhong B, Xiao-fei L. Cost allocation of integrated supply based on Shapley value method. Intell Comput Technol Autom(ICICTA) 2010;1:1054–7. https://doi.org/ 10.1109/ICICTA.2010.406. [18] Min C, Kim M, Park J, Yoon Y. Game-theory-based generation maintenance scheduling in electricity markets. Energy 2013;55:310–8. [19] Wu Q, Ren H, Gao W, Ren J, Lao. C. Profit allocation analysis among the distributed energy network participants based on game-theory. Energy 2017;118:783–94. [20] Prete CL, Hobbs BF. A cooperative game theoretic analysis of incentives for microgrids in regulated electricity markets. Appl Energy 2016;169:524–41. [21] Zhang D, Samsatli NJ, Hawkes AD, Brett DJ, Shah N, Papageorgiou LG. Fair electricity transfer price and unit capacity selection for microgrids. Energy Econ 2013;36:581–93. [22] Madinehi N, Askarian A, Mousavi A, Nafisi H, Shaludegi K. Loss reduction allocation to distributed generation units in distribution systems. Electrical power distribution networks (EPDC). 2011. p. 1–5. [23] Su W, Huang AQ. A game theoretic framework for a next-generation retail electricity market with high penetration of distributed residential electricity suppliers. Appl Energy 2014;119:341–50. [24] Zhang N, Yan Y, Su W. A game-theoretic economic operation of residential distribution system with high participation of distributed electricity prosumers. Appl Energy 2015;154:471–9. [25] Azad S, Ghotbi E. A game equilibrium model of a retail electricity market with high penetration of small and mid-size renewable suppliers. Electr J 2017;30:22–9. [26] Shaohua Z, Qing L. Application of cooperative game theory to benefit allocation of interruptible load management. Power and energy engineering conference (APPEEC), Asia-Pacific. 2011. p. 1–4. https://doi.org/10.1109/APPEEC.2011. 5748422. [27] Omrani H, Beiragh RG, Kaleibari SS. Performance assessment of Iranian electricity distribution companies by an integrated cooperative game data envelopment analysis principal component analysis approach. Electr Power Energy Syst 2015;64:617–25. [28] Zima-Bockarjova M, Sauhats A, Vempers G, Tereskina I. On application of the cooperative game theory to energy supply system planning. 2010 7th International conference on the European energy market. IEEE; 2010. https://doi.org/10.1109/ EEM.2010.5558711. [29] Lozano S, Moreno P, Adenso-Díaz B, Algaba E. Cooperative game theory approach L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 167 to allocating benefits of horizontal cooperation. Eur J Oper Res 2013;229:444–52. [30] Centeno E, Wogrin S, López-Pena A, Vázquez M. Analysis of investments in generation capacity: a bilevel approach. IET Gener. Transm. Distrib. 2011;5:842–9. [31] Hesamzadeh M, Hosseinzadeh N, Wolfs P. A leader-followers model of transmission augmentation for considering strategic behaviors of generating companies in energy markets. Electr. Power Energy Syst. 2010;32:358–67. [32] Arroyo J. Bilevel programming applied to power system vulnerability analysis under multiple contingencies. Gener. Transm. Distrib. IET 2010;4:178–90. https:// doi.org/10.1049/iet-gtd.2009.0098. [33] Jenabi M, Ghomi SMTF, Smeers Y. Bi-level game approaches for coordination of generation and transmission expansion planning within a market environment. IEEE Trans. Power Syst. 2013;28:2639–50. [34] Zugno M, Morales JM, Pinson P, Madsen H. A bilevel model for electricity retailersṕarticipation in a demand response market environment. Energy Econ 2013;36:182–97. [35] Asimakopoulou GE, Dimeas AL, Hatziargyriou ND. Leader-follower strategies for energy management of multi-microgrids. IEEE Trans Smart Grid 2013;4:1909–15. [36] Kardakos EG, Simoglou CK, Bakirtzis AG. Optimal bidding strategy in transmissionconstrained electricity markets. Electr Power Syst Res 2014;109:141–9. [37] Haghighat H, Kennedy MSW. A bilevel approach to operational decision making of a distribution company in competitive environments. EEE Trans. Power Syst. 2012;27:1797–807. https://doi.org/10.1109/TPWRS.2011.2182214. [38] Chitkara P, Zhong J. Equilibrium analysis in imperfect traders’and GenCos’market. Transmission and distribution conference and exposition, IEEE PES.. 2010. p. 1–7. https://doi.org/10.1109/TDC.2010.5484231. [39] Alipour M, Zare K, Seyedi H. A multi-follower bilevel stochastic programming approach for energy management of combined heat and power micro-grids. Energy 2018;149:135–46. [40] Mazidi P, Tohidi Y, Ramos A, Sanz-Bobi M. Profit-maximization generation maintenance scheduling through bi-level programming. Eur J Oper Res 2018;264:1045–57. [41] Li G, Zhang R, Jiang T, Chen H, Bai L, Li X. Security-constrained bi-level economic dispatch model for integrated natural gas and electricity systems considering wind power and power-to-gas process. Appl Energy 2017;194:696–704. [42] Wei F, Jing Z, Wub PZ, Wua Q. A stackelberg game approach for multiple energies trading in integrated energy systems. Appl Energy 2017;200:315–29. [43] Kardakos EG, Simoglou CK, Bakirtzis AG. Optimal offering strategy of a virtual power plant: a stochastic bi-level approach. IEEE Trans Smart Grid 2016;7:794–806. [44] Bahramara S, Moghaddam MP, Haghifam M. A bi-level optimization model for operation of distribution networks with micro-grids. Electr Power Energy Syst 2016;82:169–78. [45] Wang B, Fang X, Zhao X, Chen H. Bi-level optimization for available transfer capability evaluation in deregulated electricity market. Energies 2015;8:13344–60. [46] Liu J, Li J. A bi-level energy-saving dispatch in smart grid considering interaction between generation and load. IEEE Trans Smart Grid 2015;6:1443–52. [47] Dempe S, Zemkoho AB. The bilevel programming problem: reformulations, constraint qualifications and optimality conditions. Math Program 2013;138:447–73. [48] Jongen HT, Shikhman V. Bilevel optimization: on the structure of the feasible set. Math Program 2012;136:65–89. [49] Hongli G, Juntao L, Hong G. A survey of bilevel programming model and algorithm. Comput Intell. Des. (ISCID) 2011;2:199–203. https://doi.org/10.1109/ISCID.2011. 151. [50] Abass SA. An interval number programming approach for bilevel linear programming problem. Int J Manage Sci.Eng. Manage. 2010;5:461–4. [51] Peter H. Game theory. a multi-Leveled approach. Springer; 2nd ed., 2015. [52] Owen G. Game theory. San Diego, Academic Press; 1995. [53] Chalkiadakis G, Elkind E, Wooldridge M. Cooperative game theory: basic concepts and computational challenges. Intell Syst IEEE 2012;27:86–90. https://doi.org/10. 1109/MIS.2012.47. [54] Gao J, Yang X, Liua D. Uncertain Shapley value of coalitional game with application to supply chain alliance. Appl Soft Comput 2017;56:551–6. [55] Kim DS, Kim T. On degenerate bell numbers and polynomials. Revista de la Real Academia de Ciencias Exactas, Físicas y Naturales 2017;111:435–46. [56] Berend D, Tassa T. Improved bounds on bell numbers and on moments of sums of random variables. Probab Math Stat 2010;30:185–205. L.G. Acuña et al. Operations Research Perspectives 5 (2018) 161–168 168