Next Article in Journal
Constructing High-Performance Carbon Nanofiber Anodes by the Hierarchical Porous Structure Regulation and Silicon/Nitrogen Co-Doping
Previous Article in Journal
Fault Diagnosis Methods and Fault Tolerant Control Strategies for the Electric Vehicle Powertrains
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Cross Entropy Covariance Matrix Adaptation Evolution Strategy for Solving the Bi-Level Bidding Optimization Problem in Local Energy Markets

1
M & V Patel Department of Electrical Engineering, CSPIT, Charusat University, Changa 388421, India
2
GECAD, School of Engineering, Polytechnic of Porto, 4200-072 Porto, Portugal
*
Author to whom correspondence should be addressed.
Energies 2022, 15(13), 4838; https://doi.org/10.3390/en15134838
Submission received: 2 June 2022 / Revised: 18 June 2022 / Accepted: 19 June 2022 / Published: 1 July 2022

Abstract

:
The increased penetration of renewables in power distribution networks has motivated significant interest in local energy systems. One of the main goals of local energy markets is to promote the participation of small consumers in energy transactions. Such transactions in local energy markets can be modeled as a bi-level optimization problem in which players (e.g., consumers, prosumers, or producers) at the upper level try to maximize their profits, whereas a market mechanism at the lower level maximizes the energy transacted. However, the strategic bidding in local energy markets is a complex NP-hard problem, due to its inherently nonlinear and discontinued characteristics. Thus, this article proposes the application of a hybridized Cross Entropy Covariance Matrix Adaptation Evolution Strategy (CE-CMAES) to tackle such a complex bi-level problem. The proposed CE-CMAES uses cross entropy for global exploration of search space and covariance matrix adaptation evolution strategy for local exploitation. The CE-CMAES prevents premature convergence while efficiently exploring the search space, thanks to its adaptive step-size mechanism. The performance of the algorithm is tested through simulation in a practical distribution system with renewable energy penetration. The comparative analysis shows that CE-CMAES achieves superior results concerning overall cost, mean fitness, and Ranking Index (i.e., a metric used in the competition for evaluation) compared with state-of-the-art algorithms. Wilcoxon Signed-Rank Statistical test is also applied, demonstrating that CE-CMAES results are statistically different and superior from the other tested algorithms.

1. Introduction

Smart grid technologies open the possibility of a large penetration of distributed renewable energy sources, posing several challenges for utilities and operators [1]. In this paradigm, local energy markets (LEMs) enable small agents to trade energy at the local level and contribute to the reduction of environmental pollutants [2]. Thus, LEMs empower end-users, incentivizing their organization in energy communities and the implementation of fully transactive energy systems [3]. In fact, prosumers with low production capability were unable to participate in electricity markets, due to legislative restrictions. LEMs respond to this issue by facilitating a platform for prosumers, consumers and producers, to actively participate in energy trading activities [4]. The energy transactions in LEMs can be modeled as a bi-level optimization problem in which all agents strive to maximize their profits by optimizing their bidding strategies.
The bidding optimization problem in local electricity markets is a problem that can be tackled under different perspectives and solved by different approaches. For instance, the participation of players in LEMs is typically formulated as a bi-level optimization problem and, despite taking different assumptions, modifications, and hybridizations of algorithms, finding optimal and near-optimal solutions to the problem remains a major challenge in the field.
Thus, it is important to develop a robust optimization method, which can provide near optimal solutions solving this complex problem. Therefore, this work proposes the use of a new hybrid Cross Entropy Covariance Matrix Adaptation Evolution Strategy (CE-CMAES) to address a complicated bi-level bidding optimization issue in the environment of LEMs. The main contributions of this work are as follows:
  • An efficient computational intelligence method to solve an inherently non-linear and complex bidding optimization problem in LEMs.
  • The problem is modeled as a multi-period bi-level optimization problem in which competitive agents at the upper level strive to maximize their profits (i.e., a multi-leader problem). The agent bids/offers modify the market clearing price response determined at the lower-level problem (i.e., a single-follower problem), resulting in a strong interdependence of their decisions.
  • A detailed description of the first ranked winner optimization algorithm entitled “CE-CMAES”. The algorithm achieved the best performance in solving the testbed “bi-level optimization of end-users’ bidding strategies in local energy markets” at the international competition “Evolutionary Computation in Uncertain Environments: A Smart Grid Application” held at the Genetic and Evolutionary Computation Conference (GECCO 2020) and IEEE world Congress on Computational Intelligence (WCCI 2020).
  • The effectiveness of the proposed algorithm was tested in a case study considering a power system distribution network with renewable energy sources. Also, a comparative analysis was performed showing that CE-CMAES achieves better profits for all the agents compared with different state-of-the-art algorithms.
The remaining article is organized as follows. After the introduction in Section 1, Section 2 presents a literature review of related works. The formulation of the bi-level optimization problem is discussed in Section 3. Section 4 discusses the CE-CMAES algorithm in detail. In Section 5, comparative analysis of the proposed method against state-of-the-art algorithms is carried out in a practical case study considering a distribution system. Finally, Section 6 outlines the main conclusions and future research work.

2. Literature Review

Bidding in LEMs is a problem that has been addressed considering different perspectives and utilizing a wide variety of solution methods. For instance, ref. [5] proposed a bi-level optimization problem to optimize offering prices of energy producers. The problem was later converted into a mixed integer linear programming (ILP) problem, but demand side bidding was ignored and not optimized. An optimal bidding strategy of transactive agents, dividing the formulation into two sub-problems to reduce number of variables, was proposed in [6]. Nonlinear constraints were replaced by linear inequalities to reduce the computational burden, but the effect of renewables was ignored in the problem formulation. A similar bi-level framework was used in [7] to optimize the charge and discharge power of a battery storage system at the upper level, and the Active-Reactive optimal power flow at the lower level. Similarly, the Active-Reactive reserve power flow optimization and balancing of energy curtailment in the presence of wind energy in 41 bus electricity markets was explored in [8,9].
Authors of [10] proposed a two-stage robust model to optimize the bidding in day-ahead and real time markets, considering a virtual power plant environment. The optimization problem was formulated using a linear programming (LP) model, simplifying the problem up to a level in which the quality of solutions was compromised. In [11] a hybrid optimal bidding strategy for a microgrid in a day-ahead market under the influence of intermittent distributed generation and price responsive loads was proposed. Stochastic models were used for the day-ahead market price and uncertain output of intermittent DG, while MILP was used to limit power imbalance, considering the uncertainty of the real time market price. As expected, the hourly bidding curves obtained by the linear model were less accurate than the original nonlinear problem. In [12] a robust based bidding and offering strategy was proposed for a price-maker energy storage facility participating in a day-ahead market. In [13], a unique dual bidding technique for multi-hierarchical P2P energy trading, that incorporates both intra- and inter-community trade, while accounting for uncertainties in solar irradiance and temperature, was presented. A bi-level max-min MILP approach is used to represent the participation strategy and manage the risk of uncertainty associated with forecasted hourly generation and demand price. The technique demonstrated significant reduction in costs and increase in profits.
On the other hand, some authors have explored the use of metaheuristics to solve bi-level problems in LEMs. An example of such applications can be found in [14], where Particle Swarm Optimization (PSO) is used to solve a bi-level problem in which biddings of power producers are optimized at upper level considering monthly contracts and balancing markets. The work used a standard PSO, showing poor local exploitation search ability and, thus, suffering from premature convergence. The work in [15] also used a standard Genetic Algorithm (GA) to optimize the bidding price of retailers, considering probability-based estimation of market prices. The results showed that GA is quite computationally expensive, affecting the application capabilities of the approach. In [16], an Ant Colony Optimization (ACO) algorithm was proposed to optimize the biddings of all market participants in an LEM environment. In [17] a probabilistic approach to find the optimal bidding curve to be submitted by an aggregator in day-ahead markets was proposed. Readers may refer also to [17], finding more details about two-tier LEM mechanisms. Finally, optimal day-ahead bidding strategies were analyzed in [18] from the perspective of multi-agent deep deterministic policy gradient to approximate the Nash equilibrium.
In a particular line of research, similar to the proposed work, the bi-level optimization model for bidding in LEM is solved using the vortex search single-solution-based metaheuristic algorithm, which takes into account the uncertainties of renewables and demand, in [19]. The solutions obtained by state-of-the-art evolutionary computation methods solving the bi-level bidding optimization problem in LEM are statistically compared in [20]. Later on, ref. [21] proposed the use of ACO, HyDE-DF, vortex search (VS), and estimate distribution algorithm (EDA) to solve a small variation of the problem.
The literature review reveals that the bidding optimization problem of market participants is typically formulated as a bi-level optimization problem and, despite having different assumptions, modifications, and hybridizations of algorithms, finding optimal and near-optimal solutions to the problem remains a major challenge in the field. Concerning the application of metaheuristics, the no free lunch theorem [22] of optimization also proves that designing an algorithm that consistently provides effective and robust solutions for all types of complex non-linear problems is not possible. Recently, hybridization of evolutionary algorithms has attracted attention for solving energy market problems, due to their ability to handle non-linearity and uncertainty [20,23,24]. Typically, a bi-level optimization problem is inherently highly nonlinear [25], non-convex, non-differentiable, discontinued and NP-hard [26]. Also, it is common to have a nonlinear lower-level problem with multiple optimal solutions, as shown in Figure 1. In addition, upper- and lower-level problems are mutually dependent.
The following sections introduce the optimization model and the developed evolutionary algorithm CE-CMAES, to later evaluate its performance under a realistic case study.

3. Optimization Problem Formulation

A day-ahead LEM bidding optimization problem is proposed in [27], in which agents submit offers and bids to maximize their profits and minimize their costs, respectively. Three types of agents are considered in the LEM, namely prosumers (consumers with power generation capabilities), small producers and consumers. Also, all agents have access to the main grid, which works as a back-up power system. We assume that all agents can trade energy in the LEM with prices between the feed-in tariff ( c F ) and the grid electricity tariff ( c G ) . Also, it is assumed that c F < c G , and, therefore, direct energy transactions with the main grid, are less beneficial than between agents in the LEM. The transmission and distribution levels are not considered in this formulation under the assumption that agents trade energy between limits imposed by a DSO [28]. Therefore, voltage violation problems have not been considered in this work. We acknowledge that voltage violation problems for low-voltage networks can play an important role in future energy markets. Therefore, it will be considered in future work. Figure 2 shows the LEM scenario.

3.1. Bi-Level Optimization Problem Formulation

The LEM bidding optimization problem is modeled as a bi-level optimization problem in which the upper-level problem corresponds to the maximization of agents’ profits and the lower-level problem to the maximization of energy transacted in the LEM [27]. Thus, the solution of the lower-level affects the upper-level by modifying the profits of all agents.

3.1.1. Upper Level Problem

Assume a set of producer agents J = { 1 , 2 , , N p } and a set of consumer agents I = { 1 , 2 , , N c } , where each agent j wants to maximize its profits and each agent i wants to minimize its costs.
The optimization problem (profit maximization) for the producers can be formulated as Equation (1):
m a x .   P j = i c p   x j , i + c F   E s e l l j grid c m c G j  
where P j is the profit of agent j , c p is the LEM clearing price (equal for buyers and sellers), x j , i is the energy sold by agent j to agent i , c F is the feed-in tariff, E s e l l j grid is the energy sold by agent j to grid, and c m c G j   is the marginal cost associated to j . c m c is taken as zero for PV generation. Let, c m c = c C H P m c ( G j ) be the marginal cost associated to a Combined Heat and Power (CHP) generator, defined as a monotonically decreasing function [29], as given in Equation (2):
c C H P m c ( G j ) = b C H P G j G j
where b C H P is a constant cost factor of the CHP generation unit and G j is the energy produced by the CHP unit.
On the other hand, the optimization problem (cost minimization) for consumers can be formulated as Equation (3):
m i n .   C i = j c p   x j , i + c G   E b u y j grid
where C i is the cost of agent i , x j , i is the energy sold by agent j to agent i in the LEM, c G is the Grid price, and E b u y j grid is the energy bought by agent i from the grid.

3.1.2. Lower Level Problem

The agents’ profits and costs depend on the LEM clearing price, which is determined in the lower-level problem and depends upon the bidding process. The lower-level problem is modeled as an asymmetric pool market in which the offers and bids are allocated using a merit order mechanism to determine the energy supply and demand curves [10]. In other words, the lower-level problem determines the clearing price ( c p ) and energy transacted between the agents. The reader can be referred to [27] for a detailed modeling of the lower-level problem (market clearing price procedure). After that, a simple deterministic mechanism is used to determine the amount of energy traded with the grid (i.e., variables E s e l l j grid and E b u y j grid in Equation (1) and Equation (3) respectively.) Producer j determines the energy sold to the grid, considering its marginal cost c m , as in Equation (4):
E s e l l j grid = { P m a x , j - i x j , i   i f   P j marginal > P j O   O t h e r w i s e }
where, P j marginal are the profits that agent j could make considering the marginal cost of producing its maximum capacity and selling the LEM non-traded energy to the grid and P j are the regular profits that the agent would make by selling only into the LEM. As a result, it is guaranteed that producers only sell energy to the grid if they can actually get some profits with their remaining capacity. For PV generation, where the marginal production cost can be considered zero, the agents will always sell their remaining energy to the grid. Consumer i decides the energy bought from the grid following Equation (5):
E b u y j grid = L m a x , i - j x j , i
where, E b u y j grid is the energy bought by consumer i from the grid, L m a x , i is the maximum demand of consumer i , x j , i is the energy bought by consumer i from producer j in LEM. So, using Equations (4) and (5), the second terms of Equations (1) and (3) can be found.

3.1.3. Formulation of Objective Function

In Equations (1) and (3), the clearing price is the equilibrium price at which supply and demand curves intersect. The agents’ profits/costs are influenced by the LEM clearing price c p , which is determined in the lower-level problem and depends on the bidding process. The bid of each agent influences the market price, and thus a strong inter-dependency exists between profits and costs of agents. The aim of the optimization is to maximize the overall average profits of the power system and to provide optimal solutions that distribute the earnings among all agents. Thus, the objective function is formulated as Equation (6):
max .   j ( P j N p ) i ( C i N c )
where, ( P j ) is the profit earned by the producer agent j by selling energy to consumer agent i and to the grid; ( C i ) is the cost of consumer agent i by buying the energy from the agent j and grid. Thus, Equation (6) reflects the maximization of the overall mean profits. The profits ( P j ) and costs ( C i ) are conflicting objectives, since all agents try to achieve the best results for themselves.

3.2. Representation of Solutions and Fitness Function

As showed in Equation (6), the bi-level optimization model tries to maximize profit of all agents by executing optimal bidding of agents in the LEM. Let, K = { 1 , 2 , . . N k } be a set including all agents (producers and consumers). The aim is to find the best tuple ( q k , p k ) k K representing the quantity of active power and optimal price to bid in the LEM for each agent. The bidding is done for all t T optimization periods. T = 24 periods are considered for the day-ahead market. Thus, the vector of optimization variables x is represented as x = ( [ q k , t ] [ p k , t ] ) , where q k , t is the quantity and p k , t is the price that the k t h agent submits to the LEM at time period t . A sign convention is used to define consumer and producer types. A positive quantity represents a bid (i.e., buying in the LEM), and a negative quantity represents an offer (i.e., selling in the LEM). Thus, the action of an agent can be controlled by defining the bounds of variables in which consumer agents can submit bids in the LEM within the bounds [ 0 , L max ] (i.e., between 0 and their maximum consumption limit), while producer agents can submit their offers within the bounds [ P C max , 0 ] (i.e., between 0 and their maximum power production capacity). The minimum and maximum boundary values for prices are in the range [ c F , c G ] and are the same for all agents. Figure 3 shows the structure of a solution (i.e., a particle in our algorithm). Such particles are evaluated in the fitness function returning the mean average profit of all agents, plus the standard deviation, as per Equation (7):
F i t n e s s ( x ) = - m e a n ( P r o f i t s ) + s t d ( P r o f i t s )
where m e a n ( p r o f i t s ) and s t d ( p r o f i t s ) are functions that compute the average and standard deviation of the profits that all agents obtained, considering the bids/offers encoded in the particle. The Equation (6) is the objective function to maximize the overall profits, where Equation (7) is the fitness function, which is the sum of the objective function and standard deviation. The negative sign in the first term is used to transform the profit maximization problem into a minimization problem. The less the value in Equation (7), the better the mean profits achieved by all agents. Equation (7) is optimized using the proposed CE-CMAES method, which is described in the following section.

4. CE-CMAES Method

CE-CMAES is a sequential hybridization of Cross Entropy (CE) proposed by Rubinstein [30] and CMAES was proposed by Nikolaus Hansen [31]. It has been applied to solve the dynamic optimal power flow problem in [32]. Both are population-based iterative metaheuristic optimization methods, like Particle Swarm Optimization [33] or Differential Evolution [34]. However, unlike conventional metaheuristics, which directly act upon prospective solutions (particles) to obtain optimal ones, these methods generate “distribution” of prospective solutions updating the parameters of the distribution to obtain the optimal solutions. The CE method was used for global exploration of the search space in the initial iterative process (50% of the iterations). CE has a small number of parameters to be tuned, making it easy to be implemented. The CMAES method was used for local exploitation of search space for the remaining 50% iterations. The update of mean values in CMAES maximizes the likelihood of successful candidates, whereas the update of the Covariance matrix increases the likelihood of successful steps towards optimal solutions. Furthermore, the evolution path provides a unique adaptive step size, which prevents its premature convergence and, thus, enhances its local exploitation capability. The following section explains the theory behind the CE method.

4.1. Cross Entropy (CE) Method

The bids of all agents are optimized to minimize Equation (7). Firstly, a set of particles are randomly generated, which obey the probability distribution function (pdf) f ( . ; θ ) , where θ is the vector of parameters to be optimized. Generally, f ( . ; θ ) is a Gaussian distribution parameterized by its mean m and variance σ 2 , i.e., θ = ( m , σ 2 ) . Secondly, a threshold value ( δ ) of the fitness function is selected and only those particles, whose fitness values are less than the threshold value, are considered, i.e., f ( x ) < δ . Such particles are known as “elite particles” ( μ ) . Then, the new parameterized distribution function f ( . ; θ n ) with elite particles is updated to coincide with the target distribution function f ( . ; θ ) by minimizing Kullback-Leibler divergence. This procedure completes one iteration. In the subsequent generations, a family of distribution functions f ( . ; θ ( 1 ) ) f ( . ; θ * ) are produced according with δ ( 1 ) δ ( ) to closely reach the optimal distribution function f ( . ; θ * ) . The following section shows the step-by-step procedure of CE-CMAES.
Step: 1 Initialization of mean and standard deviation
Take generation ( g ) = 0 , total no. of generations g m a x = 500 , number of particles ( N P a ) , dimension of the problem ( D ) , elite particles ( μ ) ( 20 % 50 %   o f   N P a ) , smoothing parameters α and β , m ( g ) D is the mean value of the search distribution for each dimension at generation g , σ ( g ) + is standard deviation at generation g . x m i n and x m a x are the minimum and maximum boundary limits of D t h dimension particle. (i.e., [ 0 ,   L m a x ] for consumer bid quantities, [ - P C m a x ,   0 ] for producer offers quantities and [ c F , c G ] for bid prices). The mean and standard deviation of population are initialized as Equation (8) and Equation (9), respectively: Equation (9) is used to initialize σ ( 0 ) .
m ( 0 ) = ( x m i n + x m a x ) 2
σ ( 0 ) = ( x m a x - x m i n ) 4
Step: 2 Generation of population of particles
Generate the population of particles from the sampling distribution N ( m ( g ) , σ 2 ( g ) ) as Equation (10):
x i ( g + 1 ) = m ( g ) + σ ( g ) r a n d n ( )   f o r   i = 1 , . . , N P a
where N P a is the total number of particles (Population Size), x i ( g + 1 ) D is the ith particle obtained at generation ( g + 1 ) , m ( g ) D is the mean value of the search distribution for each dimension at generation g , σ ( g ) + is Step-size (Standard Deviation) at generation g , r a n d n ( ) is a normally distributed random variable with parameters N ( 0 , 1 ) .
Step: 3 Adjustment of search distribution limit violations
The maximum and minimum boundary limits of all particles are checked and set as Equation (11):
x i ( g + 1 ) = x i ( g + 1 ) ,   i f   x m i n < x i ( g + 1 ) < x m a x x i ( g + 1 ) = x m i n ,   i f   x i ( g + 1 ) x m i n x i ( g + 1 ) = x m a x ,   i f   x i ( g + 1 ) x m a x
Step: 4 Execution of lower-level problem
The bids and offers decoded from each particle are used to determine the market clearing price ( c p ) through a merit order mechanism. This mechanism results in the energy transacted between the agents using Equations (4) and (5).
Step: 5 Execution of Upper-Level Problem
Calculate the profit/cost of all agents using Equations (1) and (3).
Step: 6 Fitness Function Evaluations and ranking
The fitness of all particles is evaluated with Equation (7) which calculates the mean average profit of all agents and its standard deviation. Sort (rank) all fitness values in ascending order as given in Equation (12).
f ( x 1 ) < f ( x 2 ) < < f ( N P a )
where, f ( x i ) is the fitness of i th particle, x 1 is a Global Best ( G B e s t ) particle having the minimum fitness among all particles. We also consider the top best 20% particles as “elite” particles.
Step: 7 Updating the mean and standard deviation of elite particles
The mean ( m μ ( g + 1 ) ) of the selected elite particles is found by Equation (13):
m μ ( g + 1 ) = 1 μ i = 1 μ x i : N P a ( g + 1 )
where, x i : N P a ( g + 1 ) is the i th best particle among whole population at ( g + 1 ) iteration. The index i : N P a denotes the index of the i th rank particle. The standard deviation ( σ μ ( g + 1 ) ) of elite particles is found by Equation (14):
σ μ ( g + 1 ) = 1 μ 1 i = 1 μ ( x i : N P a ( g + 1 ) m ( g + 1 ) ) 2
Step: 8 Smoothing of mean and standard deviation of population
As elite particles are near to sub-optimal solutions, more smoothing (weightage) is applied to their mean value as compared to mean of whole population as shown in Equation (15):
m ( g + 1 ) = α m μ ( g + 1 ) + ( 1 α ) m ( g + 1 )
where smoothing parameters α = 0.9 , β = 0.1 :
Similarly, the standard deviation of elite particles should be modified to a small extent as they lie in the vicinity of sub-optimal solutions. So, less smoothing is applied to them than the standard deviation of all particles, which requires more exploration and thus more smoothing as given in Equation (16).
σ ( g + 1 ) = β σ μ ( g + 1 ) + ( 1 β ) σ ( g + 1 )
Step: 9 Increment of generation count
Set g : = g + 1
Go to step #2 and repeat steps 2–9 until 50% of g m a x are completed. So, the CE method is used for global exploration. Subsequently, the CMAES method is applied for local exploitation, which is discussed in the following section.

4.2. CMAES Method

Step: 10 Initialization of mean of each dimension
Global Best ( G B e s t ) particle obtained from the CE method is considered as the mean value of the corresponding dimension of CMAES, as shown in Equation (17). As a result, the new search distributions (individuals) will be generated near the sub-optimal solutions. So, the local exploitation of the search space becomes more effective than with the traditionally initialized mean value of each dimension.
m g G b e s t
Step: 11 Sampling and generation of population of particles
The Covariance matrix C is initialized to Identity matrix with size ( D * D ) . A population of particles (solutions or individuals) is generated by sampling a multivariate normal distribution as shown in Equation (18).
x i ( g + 1 ) = m ( g ) + σ ( g ) N ( 0 , C ( g ) )   f o r   i = 1 , . . , N P a
where, N P a is the total number of particles (Population Size), x i ( g + 1 ) D is the ith particle obtained at generation ( g + 1 ) , m ( g ) D is the mean value of the search distribution for each dimension at generation g , σ ( g ) + is Step-size (standard deviation) at generation g , C ( g ) ( D * D ) is the covariance matrix at generation g .
Step: 12 Adjustment of search distribution limit violations
The maximum and minimum boundary limits of all particles are checked and set according to Equation (11).
Step: 13 Execution of lower-level problem
Particles’ bids and offers are used to determine market clearing price ( c p ) through merit order mechanism. Obtain energy transacted between the agents using Equations (4) and (5).
Step: 14 Execution of upper-level problem
Calculate the profit/cost of all agents using Equations (1) and (3).
Step: 15 Fitness function evaluations and ranking
The fitness of all particles is evaluated by using Equation (7) which calculates the profits/costs of all agents and the standard deviation between the profits/costs of agents. Sort (rank) all fitness values in ascending order and find G B e s t and top 50% elite particles ( μ ) which have better fitness than the remaining 50% particles.
CMAES is an iterative method in which m ( g + 1 ) , C ( g + 1 ) and σ ( g + 1 ) are updated in every generation to obtain better solutions.
Step:16 Updating the mean ( m ( g + 1 ) )
The updated mean of the search distribution is a weighted average of selected μ elite particles from the whole population according to Equation (19).
m ( g + 1 ) = i = 1 μ w i x i : N P a ( g + 1 ) m ( g + 1 ) = i = 1 μ w i x i : N P a ( g + 1 ) w 1 w 2 . . w μ > 0
where, x i : N P a ( g + 1 ) is the i th best particle among the whole population at ( g + 1 ) generation. The index i : N P a denotes the index of the i th rank particle. w 1 is the weight applied to G B e s t particle. As a higher weight is applied to G B e s t particle, the new individuals will be pulled towards it. The update of mean values maximizes the likelihood of successful candidates.
Step:17 Updating the covariance matrix ( C ( g + 1 ) )
A covariance matrix represents pairwise dependencies between the decision variables, and it determines the shape of the distribution ellipsoid. It is updated such that the likelihood of good points with better fitness and search steps is increased. A covariance matrix for the next generation is produced from the current covariance matrix as per Equation (20).
C ( g + 1 ) = ( 1 C μ w i ) C ( g ) + C μ i = 1 N P a w i y i : N P a ( g + 1 ) y i : N P a ( g + 1 ) T
where, C μ is a learning rate for updating the covariance matrix, 0 C μ 1 .
If C μ = 0 : No learning takes place, if C μ = 1 : No prior information is retained
w 1 w μ > 0 w μ + 1 w N P a i = 1 μ w i = 1 i = 1 N P a w i 0
y i : N P a ( g + 1 ) = ( x i : N P a ( g + 1 ) m ( g ) ) σ ( g )
Here, y i : N P a ( g + 1 ) is the part of rank μ update of covariance matrix. Then, y i : N P a ( g + 1 ) is updated by taking the sum of consecutive steps of distributed mean m as per Equation (21).
The learning rate for updating the covariance matrix is decided by the following Equation (22).
C μ = min ( μ e f f D 2 , 1 c 1 )
μ e f f = ( i = 1 μ w i 2 ) 1
where, μ e f f is the variance effective selection mass for the mean obtained from the Equation (23). c 1 1 C μ , is the learning rate for the rank-one update of the covariance matrix.
To enhance this step-size, the “evolution path” is also used. It is the sum of consecutive steps. To construct the evolution path p c ( g + 1 ) , exponential smoothing is applied to assign more weight to recent generations, according to Equation (24).
p c ( g + 1 ) = ( 1 c c ) p c ( g ) + ( c c ( 2 c c ) μ e f f ) ( m ( g + 1 ) m ( g ) σ ( g ) )
where, evolution path at generation g is p c ( g ) R D and p c ( 0 ) = 0 . c c 1 is the learning rate.
( c c ( 2 c c ) μ e f f ) is a normalization constant for p c . μ e f f = ( i = 1 μ w i 2 ) ( 1 ) is variance effective selection mass 1 μ e f f μ .
By using Equation (24), rank-one update of the covariance matrix C ( g ) is obtained according to Equation (25).
C ( g + 1 ) = ( 1 c 1 ) C ( g ) + c 1 p c ( g + 1 ) p c ( g + 1 ) T
c 1 2 D 2
where, c 1 is the learning rate find from the Equation (26).
The combination of Equations (23) and (25) yields covariance matrix adaption equation as given in Equation (27).
C ( g + 1 ) = ( 1 c 1 c μ w j ) C ( g ) + c 1 p c ( g + 1 ) p c ( g + 1 ) T + c μ i = 1 N P a w i y i : N P a ( g + 1 ) ( y i : N P a ( g + 1 ) ) T
Step: 18 Updating the Adaptive Step-size ( σ ( g + 1 ) )
The step-size is controlled by an evolution path, which is a sum of successive steps in each dimension and it is given in Equation (28).
p σ ( g + 1 ) = ( 1 c σ ) p σ ( g ) + c σ ( 2 c σ ) μ e f f C ( g ) 1 / 2 ( m ( g + 1 ) m ( g ) σ g )
where, p σ ( g ) R D is the conjugate evolution path at generation g with p σ ( 0 ) = 0 .
The value c σ < 1 is the learning rate for conjugate evolution path, c σ ( 2 c σ ) μ e f f is a normalization constant and C ( g ) 1 / 2 is calculated as per Equation (29).
C ( g ) 1 / 2 = B ( g ) D ( g ) 1 B ( g ) T
where, B ( g ) is an orthonormal basis of eigenvectors and the diagonal elements of the diagonal matrix D ( g ) are square roots of the corresponding positive eigenvalues. The Euclidian length ( p σ ( g + 1 ) ) of evolution path is compared with its expected length ( E N ( 0 , I ) ) to update step size as given in Equation (30).
σ ( g + 1 ) = σ ( g ) exp ( c σ d σ ( p σ ( g + 1 ) E N ( 0 , I ) 1 ) )
where, σ ( g ) > 0 .
The value d σ 1 , is a damping parameter
f   p σ ( g + 1 ) > E N ( 0 , I ) σ ( g + 1 )   i n c r e a s e s i f   p σ ( g + 1 ) < E N ( 0 , I ) σ ( g + 1 )   d e c r e a s e s i f   p σ ( g + 1 ) = E N ( 0 , I ) σ ( g + 1 )   r e m a i n s   u n c h a n g e d
The step-size (standard deviation) is adaptively changed, which ultimately prevents premature convergence of CMAES [35] and improves local exploitation of the solution space.
Step: 19 Increment of generation count and Convergence check
Set g : = g + 1
Go to step #11 and execute steps #11–19 repeatedly until maximum number of generations are exhausted. The output of CE-CMAES are optimized prices, quantities (powers), and costs/profits of all agents. The flowchart of the bi-level bidding optimization using CE-CMAES is given in Figure 4.

5. Case Study and Result Analysis

In this section, the case study, and the application of a set of algorithms to solve the bi-level optimal bidding problem described in earlier sections, is presented.
We used the case study from the 2020 ERM competition [36] that considers nine agents, three of which are consumers, three prosumers (i.e., consumers with PV generation capabilities), and three small generators (i.e., CHP generators). The case study data generated from the reference power profiles of residential houses and PV systems were developed using the open datasets available on the PES ISS website [37]. Figure 5 shows the base profiles and range of power of three normal houses and a PV power profile used to generate the data. To do this, a randomized function with a uniform distribution of 20% of those profiles was applied. We also included generator agents represented as small CHPs generators with a maximum generation power of 2 kW and a marginal cost determined using Equation (2) with a factor of bchp = 0.18 EUR/kWh [29]. Feed-in and grid tariffs were set to cF = 0.12 EUR/kWh and cG = 0.28 EUR/kWh as in [27].
The purpose of the bi-level optimization is that all agents maximize their profits. With this purpose, the CE-CMAES algorithm was applied to solve the problem. To prove its effectiveness, the results of CE-CMAES were compared with 11 algorithms participating in the 2020 competition on “Evolutionary Computation in the Energy Domain: Smart Grid Applications” [36,38]. The MATLAB™ codes of the participating algorithms are available at http://www.gecad.isep.ipp.pt/ERM-competitions/2020-2 (accessed on 18 June 2022). The 11 algorithms included Recursive Differential Grouping 3-Differential Evolutionary Particle Swarm Optimization (RDG3-DEEPSO), Ensembled method of CBBO, Cauchy and DEEPSO algorithm, Enhanced Hybrid Levy Particle Swarm Variable Neighborhood Search Optimization (EHL_PS_VNSO), CUMDANCauchy++: a Cellular EDA [39], HFEABC, Differential Evolutionary and Estimation of Distribution Algorithm (DEEDA), Differential Evolution and Teaching Learning Based Optimization (DE-TLBO), GASAPSO, AJSO, Hybrid Adaptive Differential Evolution with Decay Function (HyDE-DF) and Particle Swarm Optimization with Global Best Perturbation (PSO-GBP). To check the effectiveness and robustness of the algorithms, we considered the 20 final solutions (one for each run) of the problem for each of the competing algorithms. A limit of 50,000 function evaluations were considered in each run. The results of all the above-mentioned algorithms were collected from the competition database [36].

5.1. Fine-Tuning of CE-CMAES Parameters

One of the most critical aspects of the design of any metaheuristic technique is the calibration of the strategic parameters. The CE-CMAES method has only two smoothing parameters to be tuned, i.e., α and β. Thus, a variety of experiments were carried out to evaluate their optimum values of the proposed CE-CMAES method. In these experiments, we fixed the population size, i.e., N P a = 100 , and number of maximum iterations, i.e., (gmax) = 500 and changed the smoothing parameters α and β within their feasible range of (0.7,1) and (0,0.3), respectively. The results of the experiments gave the optimum values of the smoothing parameters α and β, which were 0.9 and 0.1, respectively, based on the best value of the mean fitness, as shown in Table 1.

5.2. Performance Comparison and Results

After tuning the CE-CMAES smoothing parameters, the algorithm was applied to solve the bi-level optimization problem. To measure the CE-CMAES algorithm’s performance, it was compared with contemporary state-of-the-art optimization algorithms in terms of fitness value for each run, as shown in Table 2. The fitness value displayed in Table 2 is the average value of the fitness function over the 50,000 function evaluations of each run. Table 2 clearly shows that CE-CMAES achieved the best fitness value in eighteen runs out of 20 runs, where RDG3-DEEPSO had the best fitness value in two out of 20 runs. The results suggest the robustness of the CE-CMAES algorithm relative to other tested algorithms. Table 2 also reveals that the eleventh run of CE-CMAES offered the best fitness value with 2.0988. It means that, in this run, CE-CMAES provided the best solution to the bi-level optimization problem. The optimal bids/offers and prices of all agents obtained by CE-CMAES in the eleventh run are presented in Appendix A (Table A1).
All algorithms were run 20 times, and the results were recorded to obtain the mean value of those 20 runs. Table 3 gives the total overall costs of the system, the costs/profits of the group of agents (i.e., producers, prosumers and consumers), the mean fitness, the standard deviation, R.I. and the average time taken by each algorithm to execute the 20 runs. The mean fitness is the average fitness over 20 runs (trials). The Ranking Index (R.I) is the sum of the mean fitness and the standard deviation over 20 runs. Table 3 also includes the overall costs/profits that agents could attain in the absence of an LEM (used as a baseline). The CE-CMAES algorithm achieved the first rank in terms of R.I with the lowest value of 2.1148. Also, EHL_PS_VNSO and CUMDANCauchy++: a Cellular EDA achieved the second and third rank with R.I of 2.1491 and 2.1506, respectively. Also notice that, CE-CMAES achieved the best overall costs of 3.1840 EUR for the system compared to all tested algorithms. In terms of execution time, CE-CMAES took an average of 17.0210 min to solve the problem, which was lower than the EHL_PS_VNSO (25.4820 min). It proves the advantage of hybridization of CMAES with CE, as the best solution obtained by CE was used for the initialization of CMAES. As a result, CMAES was near to the sub-optimal solutions. Therefore, CE-CMAES has good convergence capabilities. Despite some algorithms having faster execution times as compared to CE-CMAES, they had worse values of R.I, mean fitness and overall costs. Overall, the CE-CMAES results suggest it provided the best solution to this testbed, as compared to all tested algorithms.
In Table 3, compared with the baseline (the last row “No LEM”), all groups of agents enhanced their costs/profits. In the baseline, producer agents presented ‘0’ profits, due to their unwillingness to sell their energy capacity to the grid at the feed-in tariff. The reason was that CHP generators had a marginal cost higher than the feed-in tariff and were not eligible for the incentive. Even if eligible, these generators would not sell the energy to the grid if they could not recover at least their marginal costs. To examine the profits made by the involved agents, Figure 6 shows the profit/cost made by each agent. In Figure 6a,b, a positive value indicated cost, and a negative value indicated the agents’ profits. Here, the profit and cost of prosumer/small generators were based on the difference between marginal cost and feed-in/grid tariffs. Figure 6a shows the individual profit/cost in the baseline scenario, which confirmed that, when LEM was unavailable, the safest choice for generators’ agents was not selling to the grid (see bars 7, 8, and 9). That situation resulted in zero profits/costs for producers, which was not suitable without bilateral contracts. Also, since there was no LEM in the base scenario, prosumers 4 and 5 were unable to sell their excess of PV energy and this increased the cost of prosumer 6. Figure 6b demonstrates that the best solution found by CE-CMAES improved the condition of all agents in terms of costs and profits when the LEM was available. As a result, consumer agents 1 to 3 reduced their costs; prosumer agents 4 and 6 increased their profits, and prosumer 5 reduced its cost; and finally producer agents 7 to 9 increased their profits.
Finally, the convergence behavior of the top four algorithms, in terms of their fitness values, was analyzed. Figure 7 illustrates the fitness of the top four algorithms over 50,000 function evaluations. In Figure 7, CE-CMAES gave slow convergence at the start. Nevertheless, convergence became fast in the final iterations, and it achieved a better final solution than all evaluated algorithms. The CE-CMAES had a slow convergence due to the 50–50% contribution of CE and CMAES algorithms.

5.3. Percentage Contribution of CE and CMAES in CE-CMAES

Table 4 depicts the mean fitness of the CE-CMAES algorithm for a different contribution of iterations in CE and CMAES out of the total number of maximum iterations, expressed in percentage. The comparison given in Table 4 proves that CE-CMAES algorithm achieved the best mean fitness when both CE and CMAES were balanced with 50% each of the total maximum number of iterations allowed. This combination gave the slowest convergence of CE-CMAES, due to the time taken by the CMAES for local exploitation of the search space. CMAES finally improved the solution in the last iterations, as shown in Figure 7. For this reason, we used CE first for 50% of total iterations for the global exploration of search space and CMAES for the remaining 50% of total iterations for the local exploitation of search space.

5.4. Wilcoxon Signed Rank Test

A comparison focused on mean fitness, R.I., and overall cost is insufficient to conclude the performance of the results. Apart from the fact that CE-CMAES outperformed all the methods in terms of the provided performance parameters, it was essential to check whether all the algorithms had a statistically significant difference, as given in Table 3. A statistical Wilcoxon signed rank test was used for this purpose [40].
The Wilcoxon signed rank test is a non-parametric test that compares two paired groups (algorithms) to detect the significant differences between their behaviors. This test measures the difference in fitness between the pairs and analyses the differences. This test was carried out in a pairwise comparison between the CE-CMAES and the rest of the contestant algorithms. The Wilcoxon signed rank test is used to accept (or reject) the null hypothesis that two samples representing two separate populations [41]. In this regard, a validation of the hypothesis confirmed the performance of the algorithm. The significance level was set to 5% to verify all the tested algorithms’ statistical differences. The Wilcoxon signed ranks test provided a meaningful finding if the value of ‘P’ given by the pairwise comparison was below 0.05, and then it might be assumed that there was statistical evidence that the algorithm was significantly better 95% of the time.
To determine whether algorithm CE-CMAES reached a statistically better solution than other tested algorithms, or, if not, whether the alternative hypothesis was valid, the sizes of the ranks provided by the Wilcoxon Signed-Rank Test (i.e., T+ and T−, as defined in [40] were examined. In Table 5, ‘+’ indicates cases in which the null hypothesis was rejected, and the CE-CMAES algorithm exhibited statistically superior performance in the pair-wise Wilcoxon Signed-Rank Test at the 95% significance level (p = 0.05). As shown in Table 5, the Wilcoxon signed ranks test gave the value of ‘P’ below 0.05 for all the pairwise comparisons. This implied that CE-CMAES outperformed the contestant algorithms in each run. In terms of R.I, mean fitness, execution time, and overall cost, the CE-CMAES algorithm outperformed all tested algorithms. So, overall, the CE-CMAES provided the best solution for bi-level optimization problem with statistical proof.

6. Conclusions and Future Works

This paper presented the application of the hybrid CE-CMAES method to solve the complex bi-level bidding optimization problem in local energy markets. The bi-level bidding optimization is difficult to solve since all agents intend to maximize their profit at the upper level while modifying the market-clearing price in the local market lower level as a product of their bids. Thus, it creates a strong interdependence between both levels. It was demonstrated that CE-CMAES provides the best solution in terms of mean fitness, Ranking Index (R.I) and overall cost and profit/cost of all agents compared with the state-of-the-art algorithms of the competition “Evolutionary Computation in the Energy Domain: Smart Grid Applications”. Using the proposed optimization algorithm, the profit of all the producer agents was maximized by optimal scheduling of generation in LEM at optimal bidding price. It also reduced the cost of the consumer agents by buying the energy from the LEM and grid at competitive price. To confirm the superiority, Wilcoxon Signed Rank Statistical test was used to prove that CE-CMAES was statistically different from the rest of the contestants.
Regarding possible implementation of an LEM, in this work it was assumed that the various agents (consumers, producers and prosumers) and market operator posed adequate infrastructure in terms of communication and information technologies. Thus, from the obtained optimized results, the local market operator (e.g., an aggregator) might send the command signals to various market participants to change their output power to maximize their profits in a smart grid system. Our work was proposed under the idea that agents exchange energy between the limits imposed by a DSO. As a result, voltage violation issues were not addressed in this work. While voltage violation issues in low-voltage networks might be a critical aspect to be tackled in future energy markets, we recognize that it is a limitation of this work to be taken into account in upcoming work.
For future work, the CE-CMAES could be applied to the LEM bidding problem considering the distribution system constraints and also the cost of the network in the LEM. The proposed method could be additionally applied in reactive power bidding, considering active-reactive power optimization. The network states and interconnection with upper levels of the energy chain (like the distribution level) are important research avenues for future research. In addition, the LEM model could be modified to include bidding optimization in external markets as well (e.g., wholesale market, capacity markets, and ancillary services markets). Finally, new hybridized methods, based on the CE-CMAES approached, could be analyzed to enhance the quality of solutions.

Author Contributions

Conceptualization, D.D. and K.P.; methodology, D.D. and K.P.; software, validation, K.P., D.D., J.S., F.L. and Z.V.; writing—original draft preparation, D.D. and K.P.; writing—review and editing, D.D., K.P., J.S., F.L. and Z.V.; supervision, K.P., J.S. and F.L.; D.D. and K.P. are the main authors. All authors have read and agreed to the published version of the manuscript.

Funding

This work has received funding from the EU Horizon 2020 research and innovation program under project TradeRES (grant agreement No 864276). The authors acknowledge the work facilities and equipment provided by GECAD research center (UIDB/00760/2020 and UIDP/00760/2020) and grant CEECIND/02814/2017.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

The optimal solution of the CE-CMAES algorithm is provided in Table A1.
Table A1. Solution of CE-CMAES.
Table A1. Solution of CE-CMAES.
AgentsConsumer (1 to 3) Power Bid (kW)Prosumer (4 to 6) Power Bid (kW)Producer (7 to 9) Power Bid (kW)Consumer (1 to 3) Price Bid (EUR/kWh)Prosumer (4 to 6) Price Bid (EUR/kWh)Producer (7 to 9) Price Bid (EUR/kWh)
Hours10.200.870.160.230.780.19−2.00−1.26−2.000.280.250.280.280.280.280.160.120.12
20.122.070.080.102.880.09−2.00−2.00−2.000.280.280.280.280.280.280.260.280.12
30.531.760.080.521.930.10−2.00−2.00−2.000.280.280.280.280.280.280.120.180.23
40.110.080.080.090.060.09−2.00−0.35−0.810.280.280.280.280.280.280.120.200.12
50.040.060.090.040.050.09−1.69−1.10−1.420.280.280.280.280.280.280.120.120.28
60.050.080.080.040.100.07−1.58−1.68−1.570.190.280.280.280.280.280.120.120.28
70.080.070.070.060.050.07−1.10−1.84−0.930.280.280.280.280.280.280.120.120.12
80.000.970.13−0.060.770.09−1.35−2.00−0.840.230.280.280.280.280.280.270.120.28
90.132.210.180.002.090.00−2.00−2.00−2.000.280.280.280.120.280.120.120.260.28
100.121.340.20−0.430.92−0.27−1.34−1.93−2.000.280.280.280.120.280.120.120.120.12
110.180.060.11−0.65−0.09−0.77−1.64−0.56−1.420.280.280.280.280.120.120.280.120.28
120.130.070.07−0.16−0.55−0.79−0.33−1.39−0.560.280.280.280.190.270.120.280.120.12
130.180.070.11−0.67−0.70−0.73−1.39−1.050.000.280.280.280.280.120.280.280.280.28
140.160.070.19−0.92−0.74−0.23−1.660.00−1.130.280.280.280.120.120.180.280.120.28
150.190.100.19−0.40−0.61−0.51−1.08−0.98−0.800.280.280.280.280.120.120.280.120.12
160.160.070.29−0.51−0.52−0.16−0.94−0.79−1.000.280.280.280.120.120.120.150.280.12
170.170.050.310.00−0.300.00−2.000.00−0.170.280.140.280.130.280.280.120.120.12
180.120.180.23−0.280.000.00−1.87−2.00−0.780.280.280.280.280.280.280.120.210.25
190.160.190.250.000.000.02−2.000.00−0.990.280.280.280.210.180.200.280.120.21
200.290.670.220.170.440.12−2.00−1.04−1.090.280.280.280.280.280.280.280.270.12
210.420.380.260.380.300.25−2.00−1.02−1.290.280.280.280.280.280.280.230.120.12
220.320.390.210.330.280.24−2.00−0.89−0.830.280.280.280.280.220.280.120.140.17
230.221.550.240.191.450.22−2.00−2.00−1.720.280.280.280.280.280.280.150.280.14
240.260.240.260.310.260.29−1.05−0.71−2.000.280.280.280.280.260.280.120.280.28

References

  1. Soares, J.; Pinto, T.; Lezama, F.; Morais, H. Survey on complex optimization and simulation for the new power system paradigm. Complexity 2018, 2018, 2340628. [Google Scholar] [CrossRef] [Green Version]
  2. Xiao, Y.; Wang, X.; Pinson, P.; Wang, X. A Local Energy Market for Electricity and Hydrogen. IEEE Trans. Power Syst. 2018, 33, 3898–3908. [Google Scholar] [CrossRef] [Green Version]
  3. Lezama, F.; Soares, J.; Hernandez-Leal, P.; Kaisers, M.; Pinto, T.; Vale, Z. Local Energy Markets: Paving the Path Toward Fully Transactive Energy Systems. IEEE Trans. Power Syst. 2019, 34, 4081–4088. [Google Scholar] [CrossRef] [Green Version]
  4. Mengelkamp, E.; Diesing, J.; Weinhardt, C. Tracing Local Energy Markets: A Literature Review. 2019. Available online: https://www.researchgate.net/publication/332222621_Tracing_Local_Energy_Markets_A_Literature_Review?Channel=doi&linkId=5ca703efa6fdcca26dfeea27&showFulltext=true (accessed on 23 April 2020).
  5. Bakirtzis, A.; Ziogos, N.; Tellidou, A.; Bakirtzis, G. Electricity Producer Offering Strategies in Day-ahead Energy Market with Step-Wise Offers. IEEE Trans. Power Syst. 2007, 22, 1804–1818. [Google Scholar] [CrossRef]
  6. Ghorani, R.; Fotuhi-Firuzabad, M.; Moeini-Aghtaie, M. Optimal Bidding Strategy of Transactive Agents in Local Energy Markets. IEEE Trans. Smart Grid 2019, 10, 5152–5162. [Google Scholar] [CrossRef]
  7. Gabash, A.; Li, P. Flexible Optimal Operation of Battery Storage Systems for Energy Supply Networks. IEEE Trans. Power Syst. 2012, 28, 2788–2797. [Google Scholar] [CrossRef]
  8. Gabash, A.; Li, P. On Variable Reverse Power Flow-Part I: Active-Reactive Optimal Power Flow with Reactive Power of Wind Stations. Energies 2016, 9, 121. [Google Scholar] [CrossRef] [Green Version]
  9. Gabash, A.; Li, P. On Variable Reverse Power Flow-Part II: An Electricity Market Model Considering Wind Station Size and Location. Energies 2016, 9, 235. [Google Scholar] [CrossRef] [Green Version]
  10. Rahimiyan, M.; Baringo, L. Strategic Bidding for a Virtual Power Plant in the Day-Ahead and Real-Time Markets: A Price-Taker Robust Optimization Approach. IEEE Trans. Power Syst. 2016, 31, 2676–2687. [Google Scholar] [CrossRef]
  11. Liu, G.; Xu, Y.; Tomsovic, K. Bidding Strategy for Microgrid in Day-Ahead Market Based on Hybrid Stochastic/Robust Optimization. IEEE Trans. Smart Grid 2016, 7, 227–237. [Google Scholar] [CrossRef]
  12. Shafiee, S.; Zareipour, H.; Knight, A.M. Developing Bidding and Offering Curves of a Price-Maker Energy Storage Facility Based on Robust Optimization. IEEE Trans. Smart Grid 2019, 10, 650–660. [Google Scholar] [CrossRef]
  13. Gokcek, T.; Sengor, I.; Erdinc, O. A Novel Multi-Hierarchical Bidding Strategy for Peer-to-Peer Energy Trading Among Communities. IEEE Access 2022, 10, 23798–23807. [Google Scholar] [CrossRef]
  14. Jiang, Y.; Hou, J.; Lin, Z.; Wen, F.; Li, J.; He, C.; Ji, C.; Lin, Z.; Ding, Y.; Yang, L.; et al. Optimal Bidding Strategy for a Power Producer under Monthly Pre-Listing Balancing Mechanism in Actual Sequential Energy Dual-Market in China. IEEE Access 2019, 7, 70986–70998. [Google Scholar] [CrossRef]
  15. Wang, Y.; Wang, D.; Zhang, H.; Zhang, K. Optimal Bidding of Price-Maker Retailers with Demand Price Quota Curves Under Price Uncertainty. IEEE Access 2020, 8, 120746–120756. [Google Scholar] [CrossRef]
  16. Lezama, F.; Faia, R.; Soares, J.; Faria, P.; Vale, Z. Learning Bidding Strategies in Local Electricity Markets using Ant Colony optimization. In Proceedings of the 2020 IEEE Congress on Evolutionary Computation (CEC), Glasgow, UK, 19–24 July 2020; pp. 1–8. [Google Scholar]
  17. Ayón, X.; Moreno, M.; Usaola, J. Aggregators’ optimal bidding strategy in sequential day-ahead and intraday electricity spot markets. Energies 2017, 10, 450. [Google Scholar] [CrossRef] [Green Version]
  18. Du, Y.; Li, F.; Zandi, H.; Xue, Y. Approximating Nash Equilibrium in Day-ahead Electricity Market Bidding with Multi-agent Deep Reinforcement Learning. J. Mod. Power Syst. Clean Energy 2021, 9, 534–544. [Google Scholar] [CrossRef]
  19. Lezama, F.; Soares, J.; Faia, R.; Faria, P.; Vale, Z. Bidding in Local Energy Markets Considering Uncertainty from Renewables and Demand. In Proceedings of the 2021 IEEE International Conference on Environment and Electrical Engineering and 2021 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Bari, Italy, 7–10 September 2021; pp. 1–6. [Google Scholar] [CrossRef]
  20. Lezama, F.; Soares, J.; Canizes, B.; Vale, Z. A Statistical Analysis of Performance in the 2021 CEC-GECCO-PESGM Competition on Evolutionary Computation in the Energy Domain. In Proceedings of the 2021 IEEE Symposium Series on Computational Intelligence (SSCI), Orlando, FL, USA, 5–7 December 2021; pp. 1–8. [Google Scholar] [CrossRef]
  21. Lezama, F.; Soares, J.; Faia, R.; Vale, Z.; Segerstam, J. Bidding in local electricity markets with cascading wholesale market integration. Int. J. Electr. Power Energy Syst. 2021, 131, 107045. [Google Scholar] [CrossRef]
  22. Wolper, D.H.; Macready, W.G. No free lunch theorems for optimization. IEEE Trans. Evol. Comput. 1997, 1, 67–82. [Google Scholar] [CrossRef] [Green Version]
  23. Dabhi, D.; Pandya, K. Uncertain Scenario Based MicroGrid Optimization via Hybrid Levy Particle Swarm Variable Neighborhood Search Optimization (HL_PS_VNSO). IEEE Access 2020, 8, 108782–108797. [Google Scholar] [CrossRef]
  24. Bouaouda, A.; Sayouti, Y. Hybrid Meta-Heuristic Algorithms for Optimal Sizing of Hybrid Renewable Energy System: A Review of the State-of-the-Art. Arch. Computat. Methods Eng. 2022, 29, 1–35. [Google Scholar] [CrossRef]
  25. Clark, P.A.; Westerberg, A.W. Optimization for design problems having more than one objective. Comput. Chem. Eng. 1983, 7, 259–278. [Google Scholar] [CrossRef]
  26. Bard, J.F. Some Properties of the Bilevel Programming Problem. J. Optim. Theory Appl. 1991, 68, 371–378. [Google Scholar] [CrossRef]
  27. Lezama, F.; Soares, J.; Vale, Z. Optimal Bidding in Local Energy Markets using Evolutionary Computation. In Proceedings of the 2019 20th International Conference on Intelligent System Application to Power Systems (ISAP), New Delhi, India, 10–14 December 2019; pp. 1–6. [Google Scholar]
  28. Gabash, A.; Li, P. Active-reactive optimal power flow for low-voltage networks with photovoltaic distributed generation. In Proceedings of the 2012 IEEE International Energy Conference and Exhibition (ENERGYCON), Florence, Italy, 9–12 September 2012; pp. 381–386. [Google Scholar] [CrossRef]
  29. Mengelkamp, E.M. Engineering Local Electricity Markets for Residential Communities. Ph.D. Thesis, Karlsruher Instituts fur Technologie (KIT), Karlsruhe, Germany, 2019. [Google Scholar]
  30. Rubinstein, R.Y.; Kroese, D.P. The Cross-Entropy Method. A Unified Approach to Combinatorial Optimization. In Monte-Carlo Simulation, and Machine Learning; Springer: New York, NY, USA, 2004. [Google Scholar]
  31. Hansen, N. The CMA Evolution Strategy: A Comparing Review; Springer: Berlin/Heidelberg, Germany, 2006; pp. 75–102. [Google Scholar]
  32. Sarda, J.; Pandya, K.; Lee, K. Dynamic Optimal Power Flow with Cross Entropy Covariance Matrix Adaption Evolutionary Strategy for Systems with Electric Vehicles and Renewable Generators. Int. J. Energy Res. 2021, 45, 10869–10881. [Google Scholar] [CrossRef]
  33. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95—International Conference on Neural Networks, Perth, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
  34. Storn, R.; Price, K. Differential Evolution—A Simple and Efficient Heuristic for global Optimization over Continuous Spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef]
  35. Hansen, N. The CMA Evolution Strategy: A Tutorial. Universite Paris-Saclay. 2016. Available online: https://arxiv.org/abs/1604.00772 (accessed on 12 January 2021).
  36. Soares, J.; Lezama, F.; Canizes, B.; Vale, Z. The Call for Competition on “Evolutionary Computation in the Energy Domain: Smart Grid Applications”. 2019. Available online: http://www.gecad.isep.ipp.pt/ERM-competitions/2020-2/ (accessed on 20 January 2020).
  37. Open Data Online at Website. Available online: http://sites.ieee.org/pes-iss/data-sets/ (accessed on 15 January 2021).
  38. Angulo, A.; Rodríguez, D.; Garzón, W.; Gómez, D.F.; Al Sumaiti, A.; Rivera, S. Algorithms for Bidding Strategies in Local Energy Markets: Exhaustive Search through Parallel Computing and Metaheuristic Optimization. Algorithm 2021, 14, 269. [Google Scholar] [CrossRef]
  39. Martínez-López, Y.; Rodríguez-González, A.Y.; Quintana, J.M.; Moya, A.; Morgado, B.; Mayedo, M.B. CUMDANCauchy-C1: A cellular EDA designed to solve the energy resource management problem under uncertainty. In Proceedings of the Genetic and Evolutionary Computation Conference Companion, Prague, Czech Republic, 13–17 July 2019; pp. 13–14. [Google Scholar]
  40. Derrac, J.; Garca, S.; Molina, D.; Herrera, F. A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm Evol. Comput. 2011, 1, 3–18. [Google Scholar] [CrossRef]
  41. Garcia, S.; Fernandez, A.; Luengo, J.; Herrera, F. Advanced nonparametric tests for multiple comparisons in the design of experiments in computational intelligence and data mining: Experimental analysis of power. Inf. Sci. 2010, 180, 2044–2064. [Google Scholar] [CrossRef]
Figure 1. Graphical Representation of a bi-level Optimization Problem.
Figure 1. Graphical Representation of a bi-level Optimization Problem.
Energies 15 04838 g001
Figure 2. LEM and the main grid as back-up system [15].
Figure 2. LEM and the main grid as back-up system [15].
Energies 15 04838 g002
Figure 3. Representation of a solution (particle) in our algorithm.
Figure 3. Representation of a solution (particle) in our algorithm.
Energies 15 04838 g003
Figure 4. Flowchart of CE-CMAES algorithm.
Figure 4. Flowchart of CE-CMAES algorithm.
Energies 15 04838 g004
Figure 5. Profiles used in the case study. Ranges of power (in kW): house 1 [0.18–0.48], house 2 [0.06–2.50], house 3 [0.07–0.36], PV (house) [0–1] [36].
Figure 5. Profiles used in the case study. Ranges of power (in kW): house 1 [0.18–0.48], house 2 [0.06–2.50], house 3 [0.07–0.36], PV (house) [0–1] [36].
Energies 15 04838 g005
Figure 6. Overall profits achieved by individual agents. (a) Baseline solution without LEM. (b) Best solution found by CE-CMAES algorithm with LEM.
Figure 6. Overall profits achieved by individual agents. (a) Baseline solution without LEM. (b) Best solution found by CE-CMAES algorithm with LEM.
Energies 15 04838 g006
Figure 7. Convergence of fitness over number of function evaluation.
Figure 7. Convergence of fitness over number of function evaluation.
Energies 15 04838 g007
Table 1. Tuning the smoothing parameters of CE-CMAES.
Table 1. Tuning the smoothing parameters of CE-CMAES.
αβMean Fitness
0.70.32.1128
0.750.252.1118
0.80.22.1112
0.850.152.1105
0.90.12.1088
0.950.052.1127
102.1184
Table 2. Fitness value of the tested algorithms over 20 runs.
Table 2. Fitness value of the tested algorithms over 20 runs.
RunFITNESS VALUE (EUR)
CE-CMAESRDG3-DEEPSOE-CBBO-
CAUCHY-
DEEPSO
EHL_PS_VNSOCUMDANCAUCHY++: A CELLULAR EDAHFEABCDEEDADE-TLBOGASAPSOAJSOHYDE-DFPSO-GBP
12.1132.1312.1312.1492.1492.1532.1532.2032.1812.2983.0944.396
22.1092.1252.1312.1492.1502.1532.1722.3292.2322.3263.0774.518
32.1052.1372.1382.1492.1502.1742.1692.3832.3762.2013.0554.282
42.1032.1192.1372.1492.1492.1512.1602.3252.2722.3153.0374.433
52.1062.1252.1372.1492.1512.1492.1512.2642.3282.3412.8624.276
62.1102.1252.1432.1442.1492.1592.1592.2062.2952.3512.9564.332
72.1102.1072.1382.1492.1492.1522.1562.1492.1582.2662.9944.279
82.1102.1192.1372.1492.1492.1702.1492.1372.2972.2392.9544.578
92.1052.1312.1332.1492.1522.1492.1652.4532.3052.2393.0164.379
102.1172.1252.1362.1492.1492.1582.1582.4822.2492.3012.9924.397
112.0982.1772.1372.1492.1502.1592.1592.1712.3132.3083.0384.377
122.1032.1372.1322.1492.1502.1802.1532.1822.2342.2432.9534.348
132.1082.1252.1352.1492.1532.1572.1652.2772.2502.3183.0224.362
142.1112.1982.1262.1492.1492.1572.1582.2812.2242.2713.2004.542
152.1032.1842.1362.1492.1492.1712.1642.2122.3072.2552.9524.473
162.1232.1192.1322.1492.1492.1502.1552.1132.3262.2073.1014.348
172.1192.1312.1252.1492.1492.1672.1492.1192.2062.2603.1404.139
182.1052.1192.1262.1492.1492.1502.1572.1152.2842.3463.0504.575
192.1012.1372.1382.1492.1502.1722.1722.1762.3362.3273.0474.238
202.1082.1252.1452.1492.1492.2002.1612.1272.2842.2723.1034.211
Table 3. Overall costs/profits, mean fitness, standard deviation, execution time and R.I achieved by the tested algorithms.
Table 3. Overall costs/profits, mean fitness, standard deviation, execution time and R.I achieved by the tested algorithms.
AlgorithmsOverall Costs (EUR)Costs/Profits by Group of Agents (EUR)MeanFit (EUR)StdR.IAverage Time for 20 Runs (min)
CostsProfits
ConsumersProsumersProducers
CE-CMAES3.18402.78500.29500.10402.10880.00612.114817.0210
RDG3-DEEPSO3.25282.80380.29780.15132.13530.02362.158916.5985
E- CBBO_Cauchy_DEEPSO3.27622.82860.31910.12852.15360.04022.193826.2037
EHL_PS_VNSO3.27322.79540.28890.18882.14460.00452.149125.4820
CUMDANCauchy++: a Cellular EDA3.28672.79840.28960.19872.15000.00062.150613.8346
HFEABC3.30812.80660.30180.19972.15840.00582.16421.8408
DEEDA3.31252.81520.29740.19992.16050.00922.169716.9520
DE-TLBO3.47162.95550.39570.12052.23570.11152.347316.0524
GASAPSO3.55833.06240.41310.08282.27340.05542.32881.8695
AJSO3.66643.08560.46060.12022.31300.07972.39273.6674
HyDE-DF4.98233.98971.1648−0.17223.03260.07733.10991.8578
PSO-GBP7.80805.39942.19010.21854.34100.14934.490316.8510
No LEM (baseline)8.99856.15412.844404.970504.97050
Table 4. Mean Fitness of CE-CMAES algorithm for a different contribution of iterations (%) in CE and CMAES.
Table 4. Mean Fitness of CE-CMAES algorithm for a different contribution of iterations (%) in CE and CMAES.
CECMAESMean Fitness
10%90%2.8096
20%80%2.7466
30%70%2.7546
40%60%2.1107
50%50%2.1088
60%40%2.1132
70%30%2.119
80%20%2.1823
90%10%2.3354
Table 5. Wilcoxon Signed Ranks Test Results.
Table 5. Wilcoxon Signed Ranks Test Results.
PAIRp-ValueT+T−Winner
CE-CMAES-E-CBBO_Cauchy_DEEPSO00210+
CE-CMAES-EHL_PS_VNSO00210+
CE-CMAES-CUMDANCauchy++: a Cellular EDA00210+
CE-CMAES-HFEABC00210+
CE-CMAES-DEEDA00210+
CE-CMAES-DE-TLBO0.0060210+
CE-CMAES-GASAPSO00210+
CE-CMAES-AJSO00210+
CE-CMAES-HyDE-DF00210+
CE-CMAES-PSO-GBP00210+
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Dabhi, D.; Pandya, K.; Soares, J.; Lezama, F.; Vale, Z. Cross Entropy Covariance Matrix Adaptation Evolution Strategy for Solving the Bi-Level Bidding Optimization Problem in Local Energy Markets. Energies 2022, 15, 4838. https://doi.org/10.3390/en15134838

AMA Style

Dabhi D, Pandya K, Soares J, Lezama F, Vale Z. Cross Entropy Covariance Matrix Adaptation Evolution Strategy for Solving the Bi-Level Bidding Optimization Problem in Local Energy Markets. Energies. 2022; 15(13):4838. https://doi.org/10.3390/en15134838

Chicago/Turabian Style

Dabhi, Dharmesh, Kartik Pandya, Joao Soares, Fernando Lezama, and Zita Vale. 2022. "Cross Entropy Covariance Matrix Adaptation Evolution Strategy for Solving the Bi-Level Bidding Optimization Problem in Local Energy Markets" Energies 15, no. 13: 4838. https://doi.org/10.3390/en15134838

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