Next Article in Journal
Freezing Method Assists Peracetic Acid Oxidation for Promoting the Methane Production from Sludge Anaerobic Digestion
Previous Article in Journal
Prudent Electricity Procurement by a Load Serving Entity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Enhanced Gradient Algorithm for Computing Generalized Nash Equilibrium Applied to Electricity Market Games

by
Adriano C. Lisboa
1,2,3,4,*,
Fellipe F. G. Santos
5,
Douglas A. G. Vieira
2,4,
Rodney R. Saldanha
3 and
Felipe A. C. Pereira
2
1
Gaia, Belo Horizonte 31310-260, MG, Brazil
2
ENACOM, Belo Horizonte 31275-100, MG, Brazil
3
Electrical Engineering Department, Federal University of Minas Gerais, Belo Horizonte 31270-901, MG, Brazil
4
Gratuated Program on Computational and Mathematical Modelling, Federal Center of Technological Education of Minas Gerais, Belo Horizonte 30421-169, MG, Brazil
5
Companhia Energética de Minas Gerais S.A., Belo Horizonte 30190-131, MG, Brazil
*
Author to whom correspondence should be addressed.
Energies 2025, 18(3), 727; https://doi.org/10.3390/en18030727
Submission received: 5 December 2024 / Revised: 6 January 2025 / Accepted: 16 January 2025 / Published: 5 February 2025
(This article belongs to the Section C: Energy Economics and Policy)

Abstract

:
This paper introduces an enhanced algorithm for computing generalized Nash equilibria for multiple player nonlinear games, which degenerates in a gradient algorithm for single player games (i.e., optimization problems) or potential games (i.e., equivalent to minimizing the respective potential function), based on the Rosen gradient algorithm. Analytical examples show that it has similar theoretical guarantees of finding a generalized Nash equilibrium when compared to the relaxation algorithm, while numerical examples show that it is faster. Furthermore, the proposed algorithm is as fast as, but more stable than, the Rosen gradient algorithm, especially when dealing with constraints and non-convex games. The algorithm is applied to an electricity market game representing the current electricity market model in Brazil.

1. Introduction

The energy sector in many countries around the world has been reformed since the end of the 1980s [1,2]. It changed from a centralized, monopolistic sector to one that stimulates competition, with an open market that gencos (and often consumers) can make bids for energy prices and negotiate future energy contracts. The energy spot price is then defined by the market operator (and/or system operator) using the marginal unit dispatched price, considering the bids and transmission constraints [3].
The change in the energy markets also created challenges for healthy market operation. While the move from regulated energy amounts and prices gave gencos the freedom to define better business strategies, it also gave larger companies the possibility to manipulate prices and exert market power [1,4,5,6]. Furthermore, a more open market tends to require shorter time bids [7].
The Brazilian electric sector reforms started in 1996 [8], and now it works in a mix of regulated and open markets. The open market allows gencos and consumers to negotiate contracts directly, and has spot prices calculated from audited costs and future prices of water (as hydroelectric power plants are the main source of energy), using a complex chain of models. There are proposals for moving the market to a bid-based model that would allow generators to make bids, declaring the price and quantity curves they are offering for each time slot [8,9].
The use of game theory as a tool to study competitive energy markets is well established [1,10]. As the electricity markets usually derived from an integrated, monopolistic and state-owned company, the analyses usually focus on oligopolist competitive game models [10], particularly looking for Nash equilibrium strategies and their relationships to marginal cost curves. In this sense, Nash equilibrium analysis can be used by market participants to define best bid strategies and by regulatory agencies to evaluate market power.
A Nash equilibrium is defined by
x 1 = arg min x 1 f 1 ( x 1 , x 1 )
x 2 = arg min x 2 f 2 ( x 2 , x 2 )
x p = arg min x p f p ( x p , x p )
where x = ( x 1 , x 2 , , x p ) R n are the player variables (i.e., strategy), f v : R n R is the objective function of player v, x v R n v are the variables of player v and x v denotes all variables except the ones of player v. The Nash equilibrium concept can be extended to concurrent constrained optimization problems, as defined further in this paper.
The first known use of the Nash equilibrium concept dates back to 1838. However, it was named after John Nash in 1950 who proved its existence for continuous convex objectives relative to player own variables and nonempty convex compact feasible sets [11]. Rosen has proved extra conditions on continuously differentiable convex games in order to guarantee uniqueness of a Nash equilibrium [12]. Facchinei et al., have analyzed the existence of a Nash equilibrium for pseudo-convex objective functions relatively to player own variables in terms of variational inequalities on compact convex feasible sets [13].
The Best Response Dynamics (BRD) is a straightforward algorithm to find a Nash equilibrium where at each iteration a different player optimizes its own strategy looking only to its own objective, while fixing other player strategies. It enjoys theoretical guarantees of convergence to a Nash equilibrium only in special cases, including potential games [14], aggregative games [15], acyclic games [16] and quasi-acyclic games [17,18].
Rosen has proposed a gradient algorithm with guaranteed convergence and optimality for games satisfying certain convex conditions [12], which introduces the concept of normalized Nash equilibrium for constrained games and also the fundamental idea for the search direction of this paper.
The relaxation algorithm considers the optimization of Nikaido–Isoda [19] function at each iteration, which is built from player objective functions, so that the next player strategies lies in the segment connecting the previous iteration point and the Nikaido–Isoda function solution. It enjoys theoretical guarantees of convergence to a Nash equilibrium for games with weakly convex–concave Nikaido–Isoda functions [20,21] respecting a few extra conditions, which is a broader class of games than BRD and Rosen gradient algorithm can cope with with theoretical guarantees.
This paper proposes and analyzes an enhanced algorithm based on a line search along a composition of objective function gradients of players as search direction at each iteration, without the need of an optimization on player variables at each iteration as in the relaxation method. The result is a faster and more stable algorithm, especially in games of many variables. This algorithm has already been used, but not analyzed in depth [22].

2. The Gradient Algorithm

2.1. Fundamental Idea

The fundamental idea of the proposed algorithm is to follow the vector field composed of a negatively weighted gradient of each player objective
F ( x ) = ( λ 1 x 1 f 1 ( x ) , λ 2 x 2 f 2 ( x ) , , λ p x p f p ( x ) ) , λ > 0
until it eventually stops at a Nash equilibrium. Let F ^ ( x ) denote the unit vector towards a non-null F ( x ) . Then, the algorithm can be defined by the iterative update
x k + 1 = x k + α F ^ ( x k )
where the step length is
α = max α α : F ^ ( x k ) T F ^ ( x k + 1 ) 1 η , η ( 0 , 2 )
where η controls the change direction threshold to follow the vector field ( η = 0 for no direction change).
The search direction (4) is the same as proposed by Rosen [12]. However, the step length (6) is different (i.e., it is not the one that minimizes F ( x + α F ( x ) ) ) and behaves better in practice).
Notice that for single player games (i.e., optimization problems) and η = 1 , this algorithm degenerates into the classical gradient descent algorithm [23]. Furthermore, if η = 1 , λ = 1 and the vector field (4) is conservative, i.e., the game is potential [14], then the algorithm also degenerates into the classical gradient descent algorithm for minimizing the associated potential function.

2.2. Algorithm Analysis

The convergence of the algorithm depends on the following concept of attractor and basin of attraction.
Definition 1
(Attractor and basin of attraction). Let 0 t R represent time and s ( t , x ) be a function which specifies the dynamics of the system, so that s ( 0 , x ) = x R n is the initial state of the system and s ( t , x ) is the result of the evolution of this state after t units of time. An attractor A R n of a dynamic system s ( t , x ) is characterized by the following three conditions:
1. 
If s ( t a , x ) A then s ( t , x ) A , t > t a ;
2. 
There exists a neighborhood of A , called the basin of attraction B of A , such that for any open neighborhood V of A there is a positive constant T such that f ( t , b ) V , t > T and b B ;
3. 
There is no non-empty subset of A having the first two properties.
Indeed, the iterative update (5) with a step length (6) can be seen as a dynamic system s ( t , x ) , where t is the iteration k and x define the player variables. When η 0 , the dynamic system can be visualized by the vector field given by (4). Convergence and optimality proofs for the proposed algorithm are given next.
Theorem 1
(Convergence). The iterative update (5) with step length (6) converges to an attractor of vector field (4) for η 0 and a enough large k if at least one attractor exists and the starting point x 0 belongs to its basin of attraction.
Proof. 
The iterative update (5) with given η 0 for step length (6) defines a dynamic system given by the vector field (4) and the convergence to an attractor follows by construction. □
Theorem 2
(Optimality). Every fixed point attractor of vector field (4) has necessary conditions to be also a Nash equilibrium of game (1)–(3) λ > 0 for functions f v continuously differentiable in x.
Proof. 
If the attractor is a single fixed point, then F ( x ) = 0 because otherwise the respective dynamic system would continue moving. This F ( x ) = 0 defines a necessary optimality condition for each player, i.e., a Nash equilibrium. □
For pseudo-convex (i.e., objective functions are pseudo-convex to respective player own variables) unconstrained games, the condition F ( x ) = 0 also becomes sufficient for Nash equilibria. Indeed, if pseudo-convexity is proven for a game and the proposed algorithm converges to a single point, then it is a Nash equilibrium. Furthermore, for finite pseudo-convex potential games, the proposed algorithm converges to a Nash equilibrium just like a classical gradient algorithm converges to the minimum of finite pseudo-convex optimization problems. For convex games, the proposed enhanced gradient algorithm converges to the Nash equilibrium just like Rosen gradient algorithm because F ( x k ) is reduced after each iteration k for a small enough η .

2.3. Examples for Convergence Analysis

Consider a 2-player game where one player controls the price that it will sell a product and the other player controls the amount of the product it will buy. Both players are penalized for rising their control variables squared by a factor c / 2 . The game of maximum gain of player 1 and minimum expenses of player 2 can be written as
x 1 = arg min x 1 f 1 ( x 1 , x 2 ) = 1 2 c x 1 2 x 1 x 2
x 2 = arg min x 2 f 2 ( x 1 , x 2 ) = 1 2 c x 2 2 + x 1 x 2
for c > 0 , so that each objective function is convex relative to respective player variable.
The best response curves are given by
X 1 ( x 2 ) = x 2 c
X 2 ( x 1 ) = x 1 c
so that it has a unique Nash equilibrium at
x = ( 0 , 0 )
The iterative update (5) with step length (6) converges to the Nash equilibrium of the game (7) and (8) whenever
η < η ¯ = 2 c 2 1 + c 2 , λ
given by η = 1 F ^ ( x k ) T F ^ ( x k + 1 ) where x k > x k + 1 and x k + 1 = x k + α F ( x k ) . Furthermore, it converges at maximum rate for
η = 1 1 1 + c 2 , λ
given by η = 1 F ^ ( x k ) T F ^ ( x k + 1 ) , where x k + 1 T F ( x k ) = 0 and x k + 1 = x k + α F ( x k ) . Notice that η < η ¯ , c , λ .
Hence, even for convex games with a unique Nash equilibrium, the iterative update (5) may not converge if η ( 0 , 2 ) is large enough. Furthermore, a large convergent step length may lead to a slower convergence, just like a small step length. Indeed, even the relaxation algorithm [20] only converges to the Nash equilibrium of the game (7) and (8) for specific fixed step lengths. For c = 0 , the game becomes linear (i.e., objective functions are linear to respective player own variables), and there is still a Nash equilibrium at x = ( 0 , 0 ) , but both algorithms cannot find it starting from somewhere else.
An interesting example of a non-convex game is
x 1 = arg min x 1 f 1 ( x 1 , x 2 ) = x 1 x 2 + c x 1 2 1 4 x 1 2 + 1 2 x 2 2 r 2
x 2 = arg min x 2 f 2 ( x 1 , x 2 ) = x 1 x 2 + c x 2 2 1 4 x 2 2 + 1 2 x 1 2 r 2
whose attractor is the circle
x 1 2 + x 2 2 = r 2
for all R 2 , except at the origin x = ( 0 , 0 ) , where F ( x ) = 0 , but it is not a Nash equilibrium. Indeed, this game has no Nash equilibrium. The proposed algorithm will never stop for this game, being trapped in the circular attractor, unless the starting point is the origin, where it stops immediately because of a necessary optimality condition that is not sufficient.

3. Generalized Nash Equilibrium

A generalized Nash equilibrium is defined by
x 1 = arg min x 1 f 1 ( x 1 , x 1 ) : x 1 X 1 ( x 1 )
x 2 = arg min x 2 f 2 ( x 2 , x 2 ) : x 2 X 2 ( x 2 )
x p = arg min x p f p ( x p , x p ) : x p X p ( x p )
where X v ( x v ) R n v is the feasible set of player v as a function of other player variables x v .
Consider the joint constraints
X v ( x v ) = { x v | ( x v , x v ) X }
where X = { x | g ( x ) 0 } R n is the feasible set for joint constraint functions g : R n R m .

3.1. Generalized Gradient Algorithm

The generalized algorithm can be defined by the iterative update
x k + 1 = x k + α d ^ k
where the step length is
α = max α α : d ^ k T F ^ ( x k + 1 ) 1 η , g ( x k + 1 ) 0 , η ( 0 , 2 )
starting from a feasible point x 0 X .
Define the directions
D = [ F ( x ) g J ( x ) ]
where
J = { j | g j ( x ) = 0 }
is the active set of constraints. Then, the unit search direction d ^ must lie inside the cone D T d > 0 in order to walk at least locally in the direction of the vector field while reducing the constraint function values. A good choice is a direction d so that not only D T d > 0 , but also d = D w , w 0 and w 0 [24]. A direction in this intersection can be found by the linear optimization problem,
minimize s
subject   to D T D w + σ s 0
j = 1 n d w j = 1
w [ 0 , 1 ] n d
s R
where σ R n d defines a weight for each director. These weights σ allow us to obtain directions d ^ closer to F ( x k ) , which improves the convergence rate and also reduces divergent behaviors of the algorithm (as seen for Problems (7) and (8)). A weight w relative to F ( x ) four times the ones for activating nonlinear constraints and 4000 times the ones for activating linear constraints is typical for a good performance in practice. The solution of this linear problem ( w , s ) defines the search direction,
d k = D w
if s > 0 , otherwise the algorithm stops.

3.2. Generalized Gradient Algorithm Analysis

The primal cone of directions d = D w , w 0 , w 0 , is introduced in the formulation (25)–(29) only to lead to a better (i.e., more centralized) search direction. The following lemma proves that its intersection with a dual nonempty cone D d > 0 is also always nonempty.
Lemma 1
(cone intersection). If D T d > 0 then w 0 , w 0 so that D w = d .
Proof. 
Suppose the direction d can be written as D w . If it belongs to the cone D T d > 0 , then must exist a w 0 , w 0 such that
D T d = D T D w > 0
c T D T D w > 0 , c 0 , c 0
which can be interpreted as if exists a strictly supporting hyperplane at the origin to the cone C = { d | d = D c , c 0 c 0 } whose normal D w belongs to C . Because C is a convex set contained in an open halfspace intersection (i.e., D T d > 0 ), the origin lies in the boundary of the closure of C , the existence of w is guaranteed by the supporting hyperplane theorem for convex sets. □
The proofs of convergence and optimality of the proposed algorithm to find a generalized Nash equilibrium are given next.
Theorem 3
(generalized convergence). The iterative update (21) with step length (22) converges to an attractor of vector field (4) constrained to x X for η 0 and a large enough k if at least one attractor exists and the starting point x 0 belongs to its basin of attraction.
Proof. 
The linear programming provides a direction d = D w , w 0 , w 0 , such that D T d > 0 if s > 0 . Because of Lemma 1, it is sufficient to consider a direction d such that D T d > 0 , since in this case d can always be written as D w , w 0 , w 0 . When there is a direction d that satisfies D T d > 0 , then there exists an infinitesimal step towards d that does not violate any constraint and still has a component on vector field F ( x ) . Hence, the algorithm converges to an attractor of vector field (4) constrained to x X for η 0 by construction. □
Theorem 4
(Generalized optimality). Every fixed point attractor x of the vector field (4) constrained to x X satisfies the variational constraint F ( x ) T ( y x ) 0 , y X B , where B is a ball of infinitesimal radius around x . Furthermore, every solution x to the variational inequality F ( x ) T ( y x ) 0 , y X , for a closed convex set X and the vector field F ( x ) in (4) is also a generalized Nash equilibrium for all λ > 0 of the game (17)–(19), with constraints respecting (20) and objective functions f v continuously differentiable in x and pseudo-convex in x v .
Proof. 
Every fixed point attractor x of F ( x ) constrained to x X is characterized when there is no feasible direction to step towards F ( x ) by definition, so that mathematically leads to F ( x ) T d 0 , d : g ( x ) T d 0 , which is equivalent to F ( x ) T ( y x ) 0 , y X B .
Let x v be any point in X v ( x v ) . From (20), it is clear that y = ( x v , x v ) X . Since x is a solution to the variational inequality and y X , the definition of vector field (4) based on diffentiability of f v leads to
0 F ( x ) T ( y x ) = λ v x v f v ( x y , x v ) T ( x v x v ) , λ v > 0 , x v X v ( x v ) ,
so that x is a solution of game (17)–(19) by the minimum principle under the assumed pseudo-convexity of f v . □
Every point that satisfies the variational inequality F ( x ) T ( y x ) 0 is called normalized Nash equilibrium [12] or variational equilibrium [25], which are the type of equilibrium that the proposed gradient algorithm is able to find. Every normalized Nash equilibrium is a generalized Nash equilibrium, but the converse is not true in general [13]. The following example illustrates this fact.

3.3. An Example with Infinite Generalized Nash Equilibria

Consider the two-player game [13],
x 1 = arg min x 1 f 1 ( x 1 , x 2 ) = ( x 1 1 ) 2 : x 1 + x 2 1
x 2 = arg min x 2 f 2 ( x 1 , x 2 ) = x 2 1 2 2 : x 1 + x 2 1
whose best response curves are given by
X 1 ( x 2 ) = 1 , x 2 0 1 x 2 , x 2 > 0
X 2 ( x 1 ) = 1 2 , x 1 1 2 1 x 1 , x 1 > 1 2
so that the generalized Nash equilibria are
x = 1 2 ( 1 + a ) , 1 2 ( 1 a ) , a [ 0 , 1 ]
Considering that x = ( 1 , 1 / 2 ) is infeasible so that F ( x ) 0 for all feasible points, the variational inequality F ( x ) T ( y x ) 0 , y X , holds true for X = { x = ( x 1 , x 2 ) | x 1 + x 2 1 } only when F ( x ) = ( b , b ) , b 0 for x 1 + x 2 = 1 , so that
F ( x ) = ( λ 1 ( 2 x 1 2 ) , ( 1 λ 1 ) ( 2 x 2 1 ) ) , λ 1 ( 0 , 1 ) = ( λ 1 ( 2 x 1 2 ) , ( 1 λ 1 ) ( 1 2 x 1 ) ) , λ 1 ( 0 , 1 ) = ( b , b )
so that, because λ 0 and λ 1 by definition of the vector field (4), only the Nash equilibria
x = 1 2 ( 1 + λ 1 ) , 1 2 ( 1 λ 1 ) , λ 1 ( 0 , 1 )
can be found by the proposed algorithm, leaving two generalized Nash equilibria out of reach: x = ( 1 , 0 ) and x = ( 1 / 2 , 1 / 2 ) . However, if no positive weights λ were associated with F ( x ) , only a single generalized Nash equilibria could be found: x = ( 3 / 4 , 1 / 4 ) , the one where λ 1 = λ 2 = 1 / 2 .

3.4. A Numerical Example: Internet Game

Consider the extended internet switching p-player symmetrical game [26]
x v = arg min x v i = 1 n x v , i B i = 1 n x v , i u = 1 p i = 1 n x u , i : u = 1 p i = 1 n x u , i B , x v ϵ , v = 1 , , p
which has Nash equilibria at points satisfying
i = 1 n x v , i = B ( p 1 ) p 2 , v = 1 , , p
which is unique when n = 1 .
Figure 1 shows the typical convergence of the proposed enhanced gradient algorithm (EGNE) for η = 1 compared to the relaxation algorithm (RNE) for a fixed step of 1 / 2 , Rosen gradient algorithm (GNE), and BRD algorithm (BRD), measured by number of function evaluations. Notice that EGNE, GNE, and BRD are typically one order of magnitude faster than RNE for p = 5 . As the number of players increases, or the number of variables increases, this difference becomes even greater as shown in Figure 2 and Figure 3, respectively. This is because relaxation algorithm solves an optimization problem every iteration, while the proposed algorithm and GNE only performs a line search, and BRD solves an optimization problem with less variables. Notice also that the relaxation algorithm (RNE) becomes unstable for n 4 .

4. Energy Market Application

The current Brazilian electric sector is mainly powered by hydroelectric plants, that are dispatched centrally by the system operator, that calculates the water future cost of each to estimate the energy spot prices. As the generation of hydroelectric power plants are strongly affected by water inflow, which depends on the rain regime and upstream hydroelectric plant generation, there is a compulsory financial hedge mechanism to share the hydrological risk of all hydroelectric power plants. In this mechanism, called energy reallocation mechanism, the generation of all hydroelectric power plants is bundled together and each plant payment is proportional to its physical guarantee (PG) that is prefixed for commercialization and does not depend on its actual generation [22].
In this context, each genco v can seasonalize their hydroelectric plants PG x v , t along months t = 1 , , T , where T is the number of periods ( T = 12 in this paper for real seasonalization game), as long as its yearly average PG X v is unchanged. This opens possibility to each genco to seasonalize strategically in order to maximize its own total income R v , t along periods t, which will be modulated by a generation scaling factor, i.e., the ratio between the actual generation H t and the amount of PG allocated by all players in each period t. The Nash equilibrium of the seasonalization non-cooperative game with p-player can be formulated by [22]:
x v = arg max x v t = 1 T R v , t ( x ) : t = 1 T x v , t T X v , ρ ̲ X v x v ρ ¯ X v , v = 1 , , p
where the income of each player v in each period t is given by
R v , t ( x ) = h t P m v , t x v H t u = 1 4 x u , t ( 1 s ) X v η t
where h t is the duration of period t, P m , t is the spot price of period t in sub-market m, m v is the sub-market where player v is located, s is the reduction ratio, and η t is the generation scaling factor for a flat seasonalization so that a negative income means a worse income than a reference flat seasonalization. Considering ρ ¯ > ρ ̲ > 0 and X v > 0 , v , the objective function of each player is smooth and pseudo-convex over the feasible domain. The linear constraint functions tend to be activated as the players maximize their income, which is especially difficult to handle, and makes them a challenging test for the constraint handling proposed in this paper.
Figure 4 shows a typical convergence for the seasonalization 4-player game considering one player per sub-market (i.e., m v = v ) and year 2020 input data given by X 1 = 32,926 , X 2 = 7186.4 , X 3 = 5962.1 , X 4 = 9948.7 , s = 0.1 , ρ ̲ = 0.5 , ρ ¯ = 1.6 , and the parameters given in Table 1. Table 2 shows the respective Nash equilibrium obtained by the proposed algorithm. The maximum variable variation for the proposed enhanced gradient algorithm in 5 runs starting from random points was about 10 6 , while for the relaxation algorithm was about 10 1 and the Rosen gradient algorithm was 10 1 . The proposed enhanced gradient algorithm convergence is about six times faster than the relaxation algorithm, and a bit faster than the Rosen gradient algorithm.
Figure 5 shows how the EGNE algorithm scales with an increasing number of players for ρ ̲ = 1 / 2 , ρ ¯ = 3 / 2 , T = 12 , M = 4 , P m , t [ 10 , 600 ] , H t [ 0 , 4 × 10 3 ] , X v [ 10 3 , 3 × 10 3 ] and m v { 1 , , M } .

5. Conclusions

This paper proposes an enhanced gradient algorithm to find a generalized Nash equilibrium with joint constraints that seems to have similar convergence and optimality behavior when compared to the state-of-the-art relaxation method, but it is typically about one order of magnitude faster in practice. A promising future application is to open or semi-open electricity market game formulations, where the players make price offers and the consumers or system-market operators define which player will actually generate energy. Furthermore, further details can be added to the electricity market game formulation, e.g., control mechanisms to assert proper operation or prevent spurious behavior under any scenario.
The convergence and optimality guarantees of the proposed algorithm are based on the concept of attractor. Future developments in vector field conditions for existence and uniqueness of fixed point attractors can improve the ability to give theoretical guarantees to find a Nash equilibrium for specific game instances.

Author Contributions

Conceptualization, A.C.L.; Methodology, A.C.L.; Software, A.C.L.; Validation, F.F.G.S.; Formal analysis, A.C.L.; Investigation, A.C.L.; Resources, F.F.G.S.; Data curation, F.F.G.S.; Writing—original draft, A.C.L.; Writing—review & editing, F.A.C.P.; Supervision, F.F.G.S., D.A.G.V. and R.R.S.; Project administration, F.F.G.S.; Funding acquisition, D.A.G.V. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by an R&D ANEEL project by CEMIG, CAPES, CNPq and FAPEMIG, Brazil.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Author Adriano C. Lisboa was employed by the company Gaia. Authors Adriano C. Lisboa, Douglas A. G. Vieira and Felipe A. C. Pereira were employed by the company ENACOM. Author Fellipe F. G. Santos was employed by the company Companhia Energética de Minas Gerais S.A. Authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Green, R.J.; Newbery, D.M. Competition in the British Electricity Spot Market. J. Political Econ. 1992, 100, 929–953. [Google Scholar] [CrossRef]
  2. Carvalho, M.; Pedroso, J.P.; Saraiva, J. Electricity day-ahead markets: Computation of Nash equilibria. J. Ind. Manag. Optim. 2015, 11, 985–998. [Google Scholar] [CrossRef]
  3. PJM. PJM Manual 11: Energy & Ancillary Services Market Operations; PJM: Norristown, PA, USA, 2024. [Google Scholar]
  4. Marshall, L.; Bruce, A.; MacGill, I. Assessing wholesale competition in the Australian National Electricity Market. Energy Policy 2021, 149, 112066. [Google Scholar] [CrossRef]
  5. Hao, Y.; Vand, B.; Delgado, B.M.; Baldi, S. Market Manipulation in Stock and Power Markets: A Study of Indicator-Based Monitoring and Regulatory Challenges. Energies 2023, 16, 1894. [Google Scholar] [CrossRef]
  6. Yu, L.; Wang, P.; Chen, Z.; Li, D.; Li, N.; Cherkaoui, R. Finding Nash equilibrium based on reinforcement learning for bidding strategy and distributed algorithm for ISO in imperfect electricity market. Appl. Energy 2023, 350, 121704. [Google Scholar] [CrossRef]
  7. Wu, C.; Gu, W.; Yi, Z.; Lin, C.; Long, H. Non-cooperative differential game and feedback Nash equilibrium analysis for real-time electricity markets. Int. J. Electr. Power Energy Syst. 2023, 144, 108561. [Google Scholar] [CrossRef]
  8. Ribeiro, L.; Street, A.; Valladão, D.; Freire, A.C.; Barroso, L. Technical and economical aspects of wholesale electricity markets: An international comparison and main contributions for improvements in Brazil. Electr. Power Syst. Res. 2023, 220, 109364. [Google Scholar] [CrossRef]
  9. PSR. Propostas de Metodologias Para a Formação de Preços por Oferta No Brasil, Entregável 3: Proposta de Desenho de Mecanismo Conceitual; Technical Report; PSR: Rio de Janeiro, Braizl, 2021. [Google Scholar]
  10. Lin, X.; Wang, B.; Xiang, Z.; Zheng, Y. A review of market power-mitigation mechanisms in electricity markets. Energy Convers. Econ. 2022, 3, 304–318. [Google Scholar] [CrossRef]
  11. Nash, J.F. Equilibrium points in n-person games. Proc. Natl. Acad. Sci. USA 1950, 36, 48–49. [Google Scholar] [CrossRef] [PubMed]
  12. Rosen, J. Existence and uniqueness of equilibrium points for concave n-person games. Econometrica 1965, 33, 520–534. [Google Scholar] [CrossRef]
  13. Facchinei, F.; Fischer, A.; Piccialli, V. On generalized Nash games and variational inequalities. Oper. Res. Lett. 2007, 35, 159–164. [Google Scholar] [CrossRef]
  14. Monderer, D.; Shapley, L.S. Potential games. Games Econ. Behav. 1996, 14, 124–143. [Google Scholar] [CrossRef]
  15. Dindos, M.; Mezzetti, C. Better-reply dynamics and global convergence to Nash equilibrium in aggregative games. Games Econ. Behav. 2006, 54, 261–292. [Google Scholar] [CrossRef]
  16. Fabrikant, A.; Jaggard, A.D.; Schapira, M. On the structure of weakly acyclic games. Theory Comput. Syst. 2013, 53, 107–122. [Google Scholar] [CrossRef]
  17. Friedman, J.W.; Mezzetti, C. Learning in games by random sampling. J. Econ. Theory 2001, 98, 55–84. [Google Scholar] [CrossRef]
  18. Takahashi, S.; Yamamori, T. The pure Nash equilibrium property and the quasi-acyclic condition. Econ. Bull. 2002, 3, 1–6. [Google Scholar]
  19. Hukuhane, N.; Kazuo, I. Note on noncooperative convex games. Pac. J. Math. 1955, 5, 807–815. [Google Scholar]
  20. Uryas’ev, S.; Rubinstein, R.Y. On relaxation algorithm in computation of noncooperative equilibria. IEEE Trans. Autom. Control 1994, 39, 1263–1267. [Google Scholar] [CrossRef]
  21. Krawczyk, J.B.; Uryas’ev, S. Relaxation algorithms to find Nash equilibria with economic applications. Environ. Model. Assess. 2000, 5, 63–73. [Google Scholar] [CrossRef]
  22. dos Santos, F.F.G.; de Castro Lobato, M.V.; Vieira, D.A.G.; Lisboa, A.C.; Saldanha, R.R. A Nash equilibrium approach to the Brazilian seasonalization of energy certificates. Energies 2022, 15, 2156. [Google Scholar] [CrossRef]
  23. Lemaréchal, C. Cauchy and the gradient method. Doc. Math. Extra 2012, 251, 10. [Google Scholar]
  24. Vieira, D.A.G.; Takashi, R.H.C.; Saldanha, R.R. Multicriteria optimization with a multiobjective golden section line search. Math. Program. 2012, 131, 131–161. [Google Scholar] [CrossRef]
  25. Facchinei, F.; Kanzow, C. Generalized Nash equilibrium problems. Q. J. Oper. Res. 2007, 5, 173–210. [Google Scholar] [CrossRef]
  26. Kesselman, A.; Leonardi, S.; Bonifaci, V. Game-theoretic analysis of internet switching with selfish users. Notes Comput. Sci. 2005, 3828, 236–245. [Google Scholar]
Figure 1. Convergence of proposed Enhanced Gradient Algorithm (EGNE) for η = 1 and λ v = 1 / 5 ,   v = 1 , , 5 (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / 5 , v = 1 , , 5 (GNE), and the BRD algorithm (BRD), for game (41) with p = 5 , n = 1 , B = 1 and ϵ = 10 2 .
Figure 1. Convergence of proposed Enhanced Gradient Algorithm (EGNE) for η = 1 and λ v = 1 / 5 ,   v = 1 , , 5 (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / 5 , v = 1 , , 5 (GNE), and the BRD algorithm (BRD), for game (41) with p = 5 , n = 1 , B = 1 and ϵ = 10 2 .
Energies 18 00727 g001
Figure 2. Average computational cost of 30 solutions of game (41) with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / p , v = 1 , , p (GNE), and BRD algorithm (BRD), for an increasing number of players p starting from a random feasible point x 0 , v [ ϵ , B / p ] , v = 1 , , p , with n = 1 , B = 1 and ϵ = 10 2 . The stop criterion is to move closer than a Euclidean distance of 10 6 to the know Nash equilibrium.
Figure 2. Average computational cost of 30 solutions of game (41) with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / p , v = 1 , , p (GNE), and BRD algorithm (BRD), for an increasing number of players p starting from a random feasible point x 0 , v [ ϵ , B / p ] , v = 1 , , p , with n = 1 , B = 1 and ϵ = 10 2 . The stop criterion is to move closer than a Euclidean distance of 10 6 to the know Nash equilibrium.
Energies 18 00727 g002
Figure 3. Average computational cost of 30 solutions of game (41) with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / p , v = 1 , , p (GNE), and BRD algorithm (BRD), for an increasing number of variables n starting from a random feasible point x 0 , v [ ϵ , B / ( n p ) ] , v = 1 , , p , with p = 4 , B = 1 and ϵ = 10 6 . The stop criterion is to move closer than a Euclidean distance of 10 6 to the known Nash equilibrium.
Figure 3. Average computational cost of 30 solutions of game (41) with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), relaxation algorithm for a fixed step of 1 / 2 (RNE), Rosen gradient algorithm for λ v = 1 / p , v = 1 , , p (GNE), and BRD algorithm (BRD), for an increasing number of variables n starting from a random feasible point x 0 , v [ ϵ , B / ( n p ) ] , v = 1 , , p , with p = 4 , B = 1 and ϵ = 10 6 . The stop criterion is to move closer than a Euclidean distance of 10 6 to the known Nash equilibrium.
Energies 18 00727 g003
Figure 4. Typical convergence for the seasonalization game using the proposed gradient algorithm for η = 1 and λ v = 1 / 4 , i = 1 , , 4 (EGNE) the relaxation method for a fixed step of 1 / 2 (RNE), and Rosen gradient algorithm for λ v = 1 / 4 , i = 1 , , 4 (GNE), compared to EGNE solution.
Figure 4. Typical convergence for the seasonalization game using the proposed gradient algorithm for η = 1 and λ v = 1 / 4 , i = 1 , , 4 (EGNE) the relaxation method for a fixed step of 1 / 2 (RNE), and Rosen gradient algorithm for λ v = 1 / 4 , i = 1 , , 4 (GNE), compared to EGNE solution.
Energies 18 00727 g004
Figure 5. Average computational cost of 30 solutions of seasonalization game with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), for an increasing number of players p starting from a random feasible point x 0 , v [ ρ ̲ X v , X v ] , v = 1 , , p .
Figure 5. Average computational cost of 30 solutions of seasonalization game with proposed enhanced gradient algorithm for η = 1 and λ v = 1 / p , v = 1 , , p (EGNE), for an increasing number of players p starting from a random feasible point x 0 , v [ ρ ̲ X v , X v ] , v = 1 , , p .
Energies 18 00727 g005
Table 1. Seasonalization game parameters.
Table 1. Seasonalization game parameters.
t h t H t η t P 1 , t P 2 , t P 3 , t P 4 , t
174454,1690.9967038013,76713,75713,73513,701
267256,7651.0381829812,14812,14811,18211,117
374458,4761.0038067611,78111,78210,6179953
472052,5810.8353617010,34210,33496528529
574448,9360.8660933210,06710,04295058848
672046,3010.9145496510,048993797429772
774445,5730.9887011910,23410,08096729782
874445,8801.0177086810,161999197369879
972046,4721.0666705410,36910,167998410,094
1074448,2621.0999690510,29310,11510,02110,086
1172048,6301.0949934810,12610,02198029830
1274451,9271.076869868659864584198401
Table 2. Nash equilibrium for seasonalization game.
Table 2. Nash equilibrium for seasonalization game.
t x 1 x 2 x 3 x 4
146,8058982.91953915,918
238,6309569568511,247
342,27811,49867799215
432,363901465905655
530,513762158517303
628,156543452409628
729,06459624,8169687
829,1215574510210,117
929,1365415528510,141
1031,0895635591610,903
1129,8065811550010,138
1228,151571952409433
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lisboa, A.C.; Santos, F.F.G.; Vieira, D.A.G.; Saldanha, R.R.; Pereira, F.A.C. An Enhanced Gradient Algorithm for Computing Generalized Nash Equilibrium Applied to Electricity Market Games. Energies 2025, 18, 727. https://doi.org/10.3390/en18030727

AMA Style

Lisboa AC, Santos FFG, Vieira DAG, Saldanha RR, Pereira FAC. An Enhanced Gradient Algorithm for Computing Generalized Nash Equilibrium Applied to Electricity Market Games. Energies. 2025; 18(3):727. https://doi.org/10.3390/en18030727

Chicago/Turabian Style

Lisboa, Adriano C., Fellipe F. G. Santos, Douglas A. G. Vieira, Rodney R. Saldanha, and Felipe A. C. Pereira. 2025. "An Enhanced Gradient Algorithm for Computing Generalized Nash Equilibrium Applied to Electricity Market Games" Energies 18, no. 3: 727. https://doi.org/10.3390/en18030727

APA Style

Lisboa, A. C., Santos, F. F. G., Vieira, D. A. G., Saldanha, R. R., & Pereira, F. A. C. (2025). An Enhanced Gradient Algorithm for Computing Generalized Nash Equilibrium Applied to Electricity Market Games. Energies, 18(3), 727. https://doi.org/10.3390/en18030727

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop