Next Article in Journal
Aerodynamic Design Optimization of a Morphing Leading Edge and Trailing Edge Airfoil–Application on the UAS-S45
Next Article in Special Issue
A New Switching Adaptive Fuzzy Controller with an Application to Vibration Control of a Vehicle Seat Suspension Subjected to Disturbances
Previous Article in Journal
A Multi-Criteria Decision Support Concept for Selecting the Optimal Contractor
Previous Article in Special Issue
Chinese Character Image Completion Using a Generative Latent Variable Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Comparison of Fuzzy-Based Energy Management Systems Adjusted by Nature-Inspired Algorithms

by
Diego Arcos-Aviles
1,2,*,
Diego Pacheco
1,2,
Daniela Pereira
1,2,
Gabriel Garcia-Gutierrez
1,2,
Enrique V. Carrera
1,3,
Alexander Ibarra
1,2,
Paúl Ayala
1,2,
Wilmar Martínez
4,5 and
Francesc Guinjoan
6
1
Departamento de Eléctrica, Electrónica y Telecomunicaciones, Universidad de las Fuerzas Armadas ESPE, Av. General Rumiñahui s/n, 171103 Sangolquí, Ecuador
2
Research Group of Propagation, Electronic Control, Networking (PROCONET), Universidad de las Fuerzas Armadas ESPE, Av. General Rumiñahui s/n, 171103 Sangolquí, Ecuador
3
WICOM-Energy Research Group, Universidad de las Fuerzas Armadas ESPE, Av. General Rumiñahui s/n, 171103 Sangolquí, Ecuador
4
Department of Electrical Engineering, ESAT, KU Leuven, Agoralaan gebouw B bus 8, 3590 Diepenbeek, Belgium
5
EnergyVille-Thor Park 8310, 3600 Genk, Belgium
6
Department of Electronics Engineering, Escuela Técnica Superior de Ingenieros de Telecomunicación de Barcelona, Universitat Politècnica de Catalunya. C. Jordi Girona 31, 08034 Barcelona, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(4), 1663; https://doi.org/10.3390/app11041663
Submission received: 18 January 2021 / Revised: 4 February 2021 / Accepted: 9 February 2021 / Published: 12 February 2021
(This article belongs to the Collection The Development and Application of Fuzzy Logic)

Abstract

:
The growing energy demand around the world has increased the usage of renewable energy sources (RES) such as photovoltaic and wind energies. The combination of traditional power systems and RESs has generated diverse problems due especially to the stochastic nature of RESs. Microgrids (MG) arise to address these types of problems and to increase the penetration of RES to the utility network. A microgrid includes an energy management system (EMS) to operate its components and energy sources efficiently. The objectives pursued by the EMS are usually economically related to minimizing the operating costs of the MG or maximizing its income. However, due to new regulations of the network operators, a new objective related to the minimization of power peaks and fluctuations in the power profile exchanged with the utility network has taken great interest in recent years. In this regard, EMSs based on off-line trained fuzzy logic control (FLC) have been proposed as an alternative approach to those based on on-line optimization mixed-integer linear (or nonlinear) programming to reduce computational efforts. However, the procedure to adjust the FLC parameters has been barely addressed. This parameter adjustment is an optimization problem itself that can be formulated in terms of a cost/objective function and is susceptible to being solved by metaheuristic nature-inspired algorithms. In particular, this paper evaluates a methodology for adjusting the FLC parameters of the EMS of a residential microgrid that aims to minimize the power peaks and fluctuations on the power profile exchanged with the utility network through two nature-inspired algorithms, namely particle swarm optimization and differential evolution. The methodology is based on the definition of a cost function to be optimized. Numerical simulations on a specific microgrid example are presented to compare and evaluate the performances of these algorithms, also including a comparison with other ones addressed in previous works such as the Cuckoo search approach. These simulations are further used to extract useful conclusions for the FLC parameters adjustment for off-line-trained EMS based designs.

1. Introduction

The growing energy demand in the industrial, commercial, and residential sectors around the world has significantly increased energy consumption during the last decades. The total primary energy supply, or the energy available in nature before being converted or transformed, has increased from 6.1 billion tons of oil equivalent in 1973 to 13.7 billion tons in 2016 [1]. This increment in energy consumption has generated a negative impact on the concentration of greenhouse gases [2], indicating that many countries focus their resources on improving energy efficiency and increasing the production of clean energy. As a consequence of these actions, there has been a sustained increment in the usage of renewable energy sources (RES), where photovoltaic and wind energies the ones with the highest growth worldwide [3].
However, new problems have appeared when RESs are combined with traditional sources of energy [3]. For instance, unexpected fluctuations in the response of RES can affect the voltage and frequency of the network, constrained power electronics requirements, different control and dispatch methods, etc. Thus, the microgrid (MG) concept appeared to solve some of these drawbacks [4]. A microgrid is a low-voltage distribution network consisting of loads, distributed generation elements, and energy storage systems (ESS), which can be connected to the mains at a single point of common coupling (PCC). It has an associated energy management system (EMS) that allows the reliable, safe, and economic operation of the elements within the microgrid [5].
An EMS controls the power flux of different microgrid elements to achieve certain goals, such as minimize operating costs or maximize revenues [6,7]. Several EMSs have been presented in the literature, each of them considering different types of MG architecture (i.e., AC, DC, and hybrid AC-DC microgrids) [8,9,10] and pursue different objectives under different conditions [11,12]. For instance, [13] presents a stochastic risk-constrained framework for short-term optimal scheduling of autonomous microgrid to maximize the expected profit of the microgrids operator. In [14], an intelligent EMS using mixed-integer linear programming of grid-connected home-type microgrid is presented. This approach reduced energy costs of non-dispatchable distributed energy resources. The study in [15] presents the design of an EMS for a grid-connected microgrid equipped with photovoltaic (PV) generator to manage the load supply with the maximum exploitation of solar energy and improving the thermal comfort of the occupants.
However, RES such as wind and PV feed power into the grid in a very variable way, directly related to the variability of the energy source itself (i.e., wind and irradiance). As these power sources are set to attain very high degrees of penetration level in the current grid, this power variability is of great concern for grid operators [16,17,18]. Therefore, various studies have been developed in recent years to minimize power fluctuations (i.e., ramp-rates) on the power exchanged with the grid [19,20,21]. For instance, the study in [19] analyzes the effect of smoothing the tie-line power fluctuations for grid-connected industrial microgrids using demand-side approach. In addition, the studies in [20] and [21] present a heuristic design of an EMS of residential electrical and electro-thermal grid-connected microgrids, respectively, including an ESS, RES, and a residential electrical load.
Due to its heuristic nature, some studies have focused on the design of the EMS using expert knowledge rule-based systems since they have proven to be easy to implement and low computational run time cost than other sophisticated analytical solutions [22,23]. Thus, a fuzzy logic control (FLC) EMS of two inputs, one output, and 25 rules is developed in [24] and experimentally validated in [25]. The same approach, but now using generation and demand forecasts is described and validated in [26]. These EMSs, and others designs based on FLC [27], pursue a common main objective, which consists of smoothing the power profile exchanged from the MG to the utility network. However, the design of the FLC block involved within these EMSs requires the selection of several parameters such as the type and number of membership functions, rule base, and variation range of each variable. Therefore, a first approach to perform the parameter adjustment of an FLC controller that is part of the EMS of a residential grid-connected microgrid is developed in [28]. This approach performs an off-line parameter tuning of the FLC of an EMS using the real recorded data of RES production and load consumption in one year.
However, the selection of the FLC parameters can be seen as an optimization problem that could be formulated in terms of a cost/objective function [29]. Fortunately, in addition to costly and time-consuming traditional optimization techniques, several metaheuristic nature-inspired algorithms have been proposed to solve optimization problems in a wide range of applications [30,31,32,33]. Some examples of these nature-inspired algorithms that can be found in the literature are genetic algorithms [34], differential evolution (DE) [35], ant colony optimization [36], particle swarm optimization (PSO) [37], firefly algorithm [38], Cuckoo search (CS) [39], among others. In this regard, to improve the parameter adjustment procedure described in [28], a methodology based on the CS algorithm is presented in [40,41]. This approach is applied to the EMS of a residential grid-connected electro-thermal microgrid, improving its performance in terms of smoothing (i.e., minimizing power peaks and fluctuations) the power profile exchanged with the utility network.
Hence, to analyze the behavior of other nature-inspired algorithms, this paper evaluates a methodology for adjusting the FLC parameters of the EMS of a residential grid-connected electro-thermal microgrid through two metaheuristic nature-inspired algorithms, namely PSO and DE. Although there are many nature-inspired optimization algorithms, PSO, DE, and CS are the most classical examples of nature-inspired techniques that are based on different search strategies [42]. DE is a heuristic evolutionary optimization algorithm developed for solving real-valued numerical optimization problems [35]. It is a very effective global search algorithm with a simple mathematical structure. On the other hand, PSO is a stochastic and multi-agent parallel global-search technique [37], which, unlike DE, is based on the mathematical modeling of various collective behaviors of living creatures that display complex social conducts, allowing it to develop local solutions into global optimum solutions. Finally, the CS algorithm is a more recent alternative to PSO that models the obligate brood parasitism of some cuckoo species [39]. A global cost function, including all criteria used to evaluate the quality of the grid power profile, is formulated, which constitutes the optimization objective function. Results show that the evaluated nature-inspired algorithms present similar optimization performance. However, the CS algorithm offers some advantages related to the reduction of fluctuations and power peaks in the grid power profile. It is also important to mention that in terms of computing time, the PSO algorithm is faster than CS and DE algorithms. A comparison with an EMS strategy that uses an off-line parameter tuning for the FLC block [43] demonstrates that the CS, PSO, and DE algorithms get an acceptable response concerning the main objective pursued by the EMS (i.e., smoothing the power profile exchanged with the mains).
The main contributions of this paper are listed below:
  • A complete procedure for adjusting the parameters of an FLC block of the EMS of a residential grid connected electro-thermal microgrid using the PSO and DE algorithms.
  • A set of comparative one-year simulations and quantification of smoothing indexes, using real data, highlighting the advantages and disadvantages of each analyzed approach.
The remainder of this paper is organized as follows. Section 2 presents the architecture and operation of the electro-thermal microgrid under study. Section 3 describes the fitness function and presents the optimization matrix and search space used in this optimization problem. The PSO and DE algorithms are described in Section 4 and Section 5, respectively. Section 6 presents the simulation and comparison results. Finally, Section 7 summarizes the main conclusions of this study.

2. Structure and Operation of the Grid-Connected Microgrid

This study is an extension of the previous works [40,41], which present a methodology for adjusting the FLC parameters of the EMS of an electro-thermal microgrid employing the CS algorithm. The structure of the microgrid under analysis, as well as its operation in grid-connected mode, is presented below.
Note that the mathematical models of RESs, i.e., PV and wind turbine (WT), the domestic hot water system (DHW) system, the forecast of power generation and load demand, and the battery state-of-charge (SOC) estimator are not included in this study. However, for complete information on these models, the reader could refer to [27].

2.1. Microgrid Structure

The microgrid architecture comprises two main blocks, namely the electrical system and the DHW system [27,43,44]. The electrical system includes a hybrid renewable generation system comprising a PV generator of 6 kWp and a WT of 6 kW, an ESS consisting of a lead-acid battery bank with a rated capacity of 72 kWh, and a domestic load of 7 kW, which includes typical domestic appliances, lighting, etc. The DHW system includes a solar thermal collector of 2 kW, an electric water heater (EWH) of 2 kW, a thermal ESS consisting of a hot water tank of 800 L capacity, and thermal demand (i.e., DHW consumption) equivalent to 2 kW. Figure 1 shows the microgrid architecture under study.
The microgrid shown in Figure 1 uses one-year real data of renewable power generation and load demand, provided every 15 min (i.e., sampling period of Ts = 900 s), by the MG installed at Public University of Navarre (UPNa) (Pamplona, Spain: 42°49′06″ N 1°38′39″ O). These power profiles are depicted in Figure 2.

2.2. Microgrid Operation in Grid-Connected Mode

In grid-connected mode, the microgrid under study is in charge of smoothing the grid power profile through suitable control of the power injected/absorbed by the battery ESS. The EMS is based on a control strategy described in [43]. The goal of the EMS is to perform the suitable use of the energy stored in the battery ESS to cover part of the energy required by the EWH for keeping the water temperature in the thermal storage between established limits.
In this regard, the control of the battery power, PBAT, is indirectly performed by controlling the power supplied by the battery ESS for the EWH consumption, P W H B , and imposing the desired grid power profile, PGRID. In [43], the grid power profile is defined as the sum of three components, as follows:
P G R I D ( t ) = P C T R * ( t ) + P S O C ( t ) + P F L C ( t )
P B A T ( t ) = P L G ( t ) P G R I D ( t ) + P W H B ( t )
P L G ( t ) = P L O A D ( t ) + P W H , E ( t ) P P V ( t ) P W T ( t )
where t is the current sample, P C T R * is the output of a central moving average (CMA) filter, which establishes the MG average power profile, PSOC is the output of the battery control loop, which is used to keep the battery SOC close to the 75% of the battery rated capacity, PFLC is the output of an FLC block, which is used to smooth the grid power profile according to the microgrid power forecast error and the battery SOC [40,43], PLG is the microgrid net power, PLOAD is the domestic load demand, PWH,E is the EWH power, PPV is the photovoltaic power, and PWT is the wind turbine power.
The EMS block diagram comprises six blocks [43], see Figure 3, which regulates both the power delivered by the utility grid and the power injected or absorbed by the ESS.
Where PGEN is the renewable power generation, P L G * is the modified MG net power defines as P L G * ( t ) = P L G ( t ) P W H B ( t ) , being P W H B the power injection to the EWH from the battery ESS, P L G , F C * is the forecast of the modified MG net power, P E * is the MG forecast error, P E 3 H * is the power forecast error of the previous 3-h, SOCAVG is the average battery SOC of the previous 24-h, SOCREF is the battery SOC reference value (i.e., SOCREF = 75%), ke is the proportional gain constant (i.e., ke = 0.05), and P B A T M G is an auxiliary variable used to compute the battery power. Note that the step-by-step design of the EMS is out of the scope of this paper. However, for complete descriptions of each block within the EMS design (see Figure 3), readers can refer to [43].
In the diagram shown in Figure 3, block number six constitutes the one that is responsible for smoothing the power profile exchanged with the grid. This block consists of an FLC that assumes a Mamdani-based inference and defuzzification method of the Center of Gravity of two input, one output, and 25 rules. The inputs of the FLC are the current battery SOC and the power forecast error of the previous 3-hours, P E 3 H * , which is defined as:
P E 3 H * ( t ) = ( 1 / M 3 ) k = 1 M 3 P E * ( t k )
where k is the sample index, M3 is the number of samples in 3-h, and P E * is computed as P E * ( t ) = P L G * ( t ) P L G , F C * ( t ) .
Regarding the design of the FLC, an offline parameter setting process, described in [28], is followed, which allows the adjustment of all parameters involved in the FLC, such as the number of membership functions (MFs) per input/output, type, mapping, and rule base. This process is performed considering the real recorded and forecasted data of renewable energy source electricity production and load demand for one year. This procedure leads to the MF for inputs and outputs shown in Figure 4 [45], with their respective variation ranges where Pe = 6kW; SOCMIN = 50%, SOCMAX = 100%, PN = 0.8 kW, and PP = 1.35 kW, and the FLC rule base presented in Table 1. Note that the fuzzy subsets depicted in Figure 4 are denoted as NB, NM, NS, NSS, ZE, PSS, PS, PM, and PB, where B represents “Big”, M “Medium”, S “Small”, SS “Smallest”, N “Negative”, P “Positive”, and ZE “Zero”.

3. Optimization Function

3.1. Fitness Function

Since the main objective of the EMS is to smooth the MG power profile by managing the energy balance between renewable energy sources, electric loads, energy storage systems, and the main electrical grid, a set of six quality criteria, which quantify the effectiveness of energy management, is defined according to [20,21,25,26,40,41,42], as follows:
P G , M A X = max ( P G R I D )
P G , M I N = min ( P G R I D )
M P D = max P ˙ G R I D
A P D = 1 M n = 1 M P ˙ G R I D ( t )
P ˙ G R I D ( t ) = P G R I D ( t ) P G R I D ( t 1 ) / T S
P V R = P G , M A X P G , M I N P L G , M A X P L G , M I N
P P V = f = f i f f P G R I D , f 2 / P D C
where PG,MAX and PG,MIN are the maximum and minimum power of the grid power profile (PGRID); MPD (maximum power derivative) is the maximum grid power profile ramp-rate ( P ˙ G R I D ) in one year; APD (average power derivative) is the average of the grid power profile ramp-rates in one year, with M being the number of samples in one year; PVR (power variation range) is the grid power profile variation concerning the MG net power; and PPV (power profile variability) gives an idea of the quality of the grid power profile where PGRID,f is the grid power harmonic at f frequency, and fi = 1.65 × 10−6 Hz and ff = 5.55 × 10−4 Hz are the initial and final frequencies defined to evaluate variation periods of above one week or less [20,21,25,26].
On the other hand, since the FLC tuning procedure can be considered as an optimization process [29], it will require the definition of an optimization (cost) function involving all energy management quality criteria to coherently represent the designer’s preferences between objectives in terms of a weighted sum function [46]. This function is defined according to [40], and it is normalized in terms of the reference energy management quality criteria obtained from a previous study where a heuristic-based optimization procedure is applied [43]. From this perspective, the optimization function is defined as follows:
f i t n e s s = w F 1 + w 1 F 2
F 1 = P G , M A X P G , M A X R E F + P G , M I N P G , M I N R E F + M P D M P D R E F
F 2 = A P D A P D R E F + P V R P V R R E F + P P V P P V R E F
where w ≥ 1 is a fixed real number that balances the designer’s preference between F1 and F2, prioritizing one of them during the iterative optimization process [40].

3.2. Optimization Matrix and Search Space

The optimization matrix comprises the variables to be optimized. Its dimension is n x d, where n represents the maximum number of agents selected for optimization, i.e., nest for CS, particles for PSO and individuals or population for DE algorithm, and d refers to the total of variables (i.e., size of the dimensional problem). The search space (SS) refers to the domain of the function to be optimized.
The optimization matrix for PSO and DE algorithms is defined in (15). It includes the FLC parameters, such as MFs of inputs ( P E 3 H * and SOC) and output (PFLC), the output universe of discourse x k ( ) ( + ) , and the rule base (RB).
x = x 1 P E , x 1 S O C , x 1 P F L C , x 1 k ( ) ( + ) , x 1 R B x n P E , x n S O C , x n P F L C , x n k ( ) ( + ) , x n R B
Table 2 presents the number of variables to be optimized for each parameter, which gives a total of 72 (i.e., d = 72). In short, both inputs comprise five fuzzy subsets and 11 variables (i.e., three variables for MFs NS, ZE, and PS, and one variable for MFs NB and PB). The FLC output comprises 9 fuzzy subsets and 23 variables (i.e., three variables for MFs NM, NS, NSS, ZE, PSS, PS, and PM, and one variable for MFs NB and PB). The FLC rule base comprises 25 rules, thus, 25 variables. Finally, this study considers two variables to define the universe of discourse of the FLC output. Note that this study assumes a fixed universe of discourse for input variables.
Finally, the SS limits are defined based on previous studies [40,41]. The SS of each FLC parameter is presented below.
x P E = x P E S S x P E 6 x P E 6
x S O C = x S O C S S x S O C 50 x S O C 100
x k ( ) ( + ) = x k ( ) ( + ) S S x k ( ) ( + ) 0 x k ( ) ( + ) 10
x P F L C = x P F L C S S x P F L C k ( ) x P F L C k ( + )
x R B = x R B S S x R B 1 x R B 9

4. Particle Swarm Optimization Algorithm

PSO is a stochastic technique for the optimization of nonlinear continuous functions designed by Kennedy and Eberhart in 1995 [47]. The operation of this particular metaheuristic is based on the ideal behavior of bird flocks when they look for food. One of the advantages of the PSO algorithm is its rapid convergence without the need for complex calculations when it is compared to other metaheuristic algorithms, such as genetic algorithm and CS, among others.
In the PSO algorithm, the particle swarm has the position (x) and velocity (v) matrices of i × j dimension within a search space SS. Note that it is necessary to add an extra column in the matrix x to record the result of the fitness function fitxi, as follows:
v = v 11 v 1 j v i 1 v i j
x = x 11 x 1 j | f i t x 1 | x i 1 x i j | f i t x i
The velocity and position of each particle are given by (23) and (24), respectively, as follows:
v i ( k + 1 ) = w ( k ) v i ( k ) + R 1 C 1 [ P b e s t i ( k ) x i ( k ) ] + R 2 C 2 [ G b e s t ( k ) x i ( k ) ]
x i ( k + 1 ) = x i ( k ) + v i ( k + 1 )
where vi (k + 1) and vi (k) are the new and current particles velocities, respectively; xi (k + 1) and xi (k) are the positions of the new and current particles, respectively; w(k) is the inertia weight; C1 and C2 are acceleration constants, which determine the swarm behavior; R1 and R2 are random numbers within the range [0, 1] [31]; Pbest is a matrix defined by (25), which records the personal best position of each particle; and, Gbest is a vector, defined by (26), which records the best global position of all swarm. Similarly, matrix (25) and vector (26) add a column vector with the result of the fitness function.
P b e s t = P b e s t 11 P b e s t 1 j | f i t P b e s t 1 | P b e s t i 1 P b e s t i j | f i t P b e s t i
G b e s t = G b e s t 11 G b e s t 1 j f i t G b e s t
For each particle, its fitness xi (k + 1) is compared with its best-recorded position in P b e s t i . If the new fitness is less than the best value seen so far, P b e s t i is updated with xi (k + 1). After that, the lowest value of fitness in P b e s t i is found and compared to Gbest. If the fitness of the best particle is lower than the best global position, Gbest is updated by P b e s t i .
The inertia weight of vi (k) is given by (27), which value decreases at each iteration. A maximum and minimum weight of wmax = 0.9 and wmin = 0.4, respectively, are selected according to [31], as follows:
w ( k ) = w min w max k max 1 ( k 1 ) + w max
The pseudo-code to implement the PSO algorithm applied for adjusting the FLC parameters is presented in Algorithm 1. Note that kmax represents the number of iterations (kmax = 300) whereas, according to [48], the values of accelerations constants C1 and C2 are set to the same value (C1 = C2 = 2)
Algorithm 1 Particle Swarm Optimization
Input:kmax, n, d, w, C1, C2
Output: Gbest
 1: Initialize swarm x, y
 2: Update fuzzy set parameters
 3: Compute fitx (k + 1)
 4: Set Pbest = x
 5: Set BestPbest = min (fitx)
 6: Set Gbest = BestPbest
 7: repeat
 8:  Decrement w
 9:  for i = 1 ∈ n do
 10:   Update vi (k + 1)
 11:   Limit vi (k + 1)
 12:   Get xi (k + 1)
 13:   Update fuzzy set parameters
 14:   Compute fitxi (k + 1)
 15:   if fitxi (k + 1) < fitPbesti then
 16:    Set Pbesti = xi (k + 1)
 17:   end if
 18:  end for
 19: Set BestPbest = min(fitPbest)
 20: if BestPbest < fitGbest then
 21:  Set Gbest = BestPbest
 22: end if
 23: until
 24: n > kmax
 25: return Gbest

5. Differential Evolution Algorithm

The DE algorithm is a nature-inspired metaheuristic algorithm proposed by Rainer Storn and Kenneth Price in 1995 [49]. It is an evolutionary algorithm, which is based on the natural and genetic selection of populations. In general, the DE algorithm uses mutation, crossing, and selection operators to generate new individuals. The main characteristic of the DE algorithm is the use of a minimum number of parameters, such as the scale factor, F, crossover rate, Cr, the size of the dimensional problem, d, and the number of individuals or population, n, [31].
Initially, the DE algorithm performs a random selection of a population of n vectors, with uniform distribution, which will cover the entire search space [49]. This selection delivers the initial vector xi, which is used to carry out the mutation, crossover, and selection processes.
x i t = x 1 , i t , x 2 , i t , , x d , i t
where i = 1, 2, ..., n for each solution xi in any generation t.
The DE algorithm attempts to replicate the biological behavior of evolution in a computer program. The mutation in the evolution of an individual consists of the random variation of one of its genes. The DE algorithm takes this behavior as a reference. For each target vector xi, a mutation vector, vi, is generated according to the following mutation scheme:
v i t + 1 = x p t + F x q t x r t
where xp, xq, and xr are the target vectors at t, which are created from three randomly chosen individuals in the population to cause a vector, in any of its values, to vary randomly. Note that the scale factor, F, is a real value between [0, ∞), which is used to scale the differential variation of the scanning vector (xqxr). This study considers a scale factor between [0, 1], according to [50].
Then, after a random set of vectors have been selected, the crossover operation is carried out. In addition, a mutation operation is also applied to the recombined vector in order to generate the final population. This process is controlled by the parameter Cr ∈ [0, 1], which controls the crossover rate [51]. This study uses a binomial crossover scheme, which performs a crossover on each of the variable components. The test vector u is obtained as follows:
u j . i t + 1 = v j , i t + 1 , i f r j C r j = J r x j , i t , i f r j > C r j J r
where j = 1, 2,…,d, rj ∈ (0, 1), Cr ∈ [0, 1] is a user-defined constant, and Jr = 1,…,d is a randomly index, which is chosen to ensure that u j , i t + 1 receives at least one component of v j , i t + 1 .
Finally, selection in evolution refers to choosing which individuals pass to the next generation. After the mutation and crossover stages, in which all n vectors served as a target vector, for selection, the fitness value of each test vector f ( u i t + 1 ) is compared with its corresponding target vector f ( x i t ) in the current population [31]. Then, the selection of the vectors that will be preserved for the next generation is the one who has the best performance function value [49], i.e.,
x i t + 1 = u i t + 1 , i f f ( u i t + 1 ) f ( x i t ) x i t , o t h e r w i s e
The DE algorithm pseudo-code used to find the best population for adjusting the FLC parameters of the EMS is presented in Algorithm 2. Note that this study considers F = 0.7, Cr = 0.9, and n = 25 according to [31,50,52].
Algorithm 2 Differential evolution algorithm
Input:n, F, Cr, d
Output: x i t + 1
 1: Parameter initialize
   (1) Generate initial population with n individuals
   (2) Select max_iterations
   (3) Update Fuzzy Set Parameters
 2: fitx ← f(x)
 3: repeat
 4:  for i = 1 to n do
 5:   For each xi, randomly select 3 different vectors xp, xq, y xr
 6:   Generate a new vector vi by the DE mutation scheme
v i t + 1 = x p t + F x q t x r t
 7:   Generate a random index Jr ∈ {1, 2,…, d}
 8:   Generate a number rj ∈ [0, 1], randomly distributed
 9:  end for
 10: Update fuzzy set parameters
 11:  for j = 1 to d do
 12:    u j . i t + 1 = v j , i t + 1 , i f r j C r j = J r x j , i t , i f r j > C r j J r
 13:   Select and actualize the solution
x i t + 1 = u i t + 1 , i f f ( u i t + 1 ) f ( x i t ) x i t , o t h e r w i s e
 14:  end for
 15: until
 16: n < max_iterations
 17: return x i t + 1

6. Comparison Results

6.1. Fuzzy Logic Control Parameters Comparison

The result of adjusting the FLC controller parameters through the PSO and DE algorithms is presented below. In addition, the results achieved by the CS algorithm [40,41] are included for comparison purposes. The FLC parameters obtained through the CS, PSO, and DE algorithms are presented in Figure 5, Figure 6 and Figure 7, respectively, where each MF, for inputs variables, is superposed to the respective achieved by heuristic method (HM). In addition, the resulting rule base achieved by each algorithm is presented in Table 3, Table 4 and Table 5.

6.2. Energy Management System Performance Comparison

This section presents the results achieved by the EMS after the FLC controller parameter setting process through the nature-inspired algorithms described above. Furthermore, a comparison is made with the results obtained through the EMS described in [43] where the parameters of its FLC block are adjusted using a heuristic process and also with the results obtained by the EMS presented in [40,41] where the adjustment of the FLC parameters is made through the CS algorithm.
The comparison is made over the same FLC parameters optimization problem in terms of the quality of the solutions and the computation time. Therefore, the same initial set of random solutions (i.e., initial population), the optimization function defined in Section 3, and the standard algorithm’s parameters [31] have been implemented.
A weighting factor of w = 2 is used in the optimization function defined in Section 3 to prioritize the minimization of PG,MAX, PG,MIN, and MPD over APD, PPV, and PVR since the main objective of the EMS is to smooth the power profile exchanged with the grid (i.e., minimizing grid power ramp-rates, power peaks [40]. Numerical simulations, using Matlab® (MathWorks, Natick, MA, USA), are carried out in an INTEL® Core™-i7 6500U CPU 2.50 GHz computer, where the three algorithms are executed under the same initial conditions to solve 300 iterations.
For the case study, the convergence of the optimization function and the number of iterations required by the algorithms under analysis to converge to its feasible optimum is shown in Figure 8.
As can be seen in Figure 8, the CS and DE algorithms perform similarly in terms of convergence rate. However, the obtained solution through DE is slightly better than the one achieved by the CS in terms of the solution quality since the optimization function’s value for DE is lower than the CS value, as shown in Table 6.
On the other hand, an analysis of the convergence time is shown in Table 7, where the population length represents the number of population agents, such as the CS-nest, PSO-particles, DE-candidate solutions; the time per iteration is the time that takes to analyze each agent in one iteration; the convergence iteration is the iteration in which the algorithm converges; and the convergence time represents the total execution time until the convergence iteration is reached. In short, the PSO algorithm presents a less convergence time than the CS and DE algorithms for the case under study.
Despite that PSO presents better behavior than the CS and DE algorithms in terms of the convergence rate, the obtained solutions by the CS and DE algorithms are slightly better than the solution achieved by the PSO algorithm for the case under study. In this regard, Table 8 presents the results of evaluating the power profile that the MG exchanges with the utility network achieved by the EMSs under analysis. In addition, Figure 9 shows the grid power profile for each EMS design, where it can be seen that all the designs meet the objective of smoothing the power profile exchanged with the main grid (i.e., minimizing power peaks and fluctuations). Finally, Figure 10 shows the grid power profile ramp-rates, along one year, achieved by the analyzed EMSs. As can be seen, the fuzzy logic-based EMS obtained through nature-inspired algorithms present a considerable reduction in the power ramp-rates of the grid power profile, which facilitates the control of grid operators and the penetration of RES into the mains.

7. Conclusions

This paper has addressed the tuning of parameters using the nature-inspired PSO and DE algorithms of an FLC that is part of the EMS of a residential grid-connected electro-thermal microgrid. The FLC-based EMS has been designed to smooth the power profile exchanged with the grid. Numerical simulations have allowed the performance comparison between PSO-tuned and DE-tuned EMSs as well as with heuristically tuned and CS-tuned EMSs presented in previous works. In the adjustment process, the algorithms perform the optimization of 72 variables corresponding to the MF mapping of inputs and the output as well as the FLC rule base. The results have shown that all the designs are capable of meeting the objective pursued by the EMS, obtaining a smooth grid power profile, and the evolution of the battery SOC within the permitted ranges. Moreover, it has been shown that all EMSs designs resulting from a tuning process based on PSO, DE, and CS nature-inspired algorithms have obtained a reduction in the maximum grid power ramp-rates (MPD) of over 40% when being compared to a fuzzy-based EMS where the adjustment of the FLC uses a heuristic approach. In addition, simulation results have revealed that the PSO algorithm performs better than CS and DE algorithms regarding the convergence time. Finally, the quality criteria comparison have shown that the CS algorithm has achieved an improved solution in terms of the MPD and PPV quality criteria, whereas the DE algorithm presents a better behavior concerning the PG,MAX, PG,MIN, and APD criteria.
Therefore, this study has shown that the different nature-inspired optimization algorithms present similar results when it comes to improving FLC-based EMSs. However, convergence time is a critical parameter that should be considered in any deployment, especially if a real-time implementation is required. Furthermore, the set of input parameters needed for each algorithm must be understood to provide stability and robustness to the optimization task. Finally, these nature-inspired optimization algorithms are able to optimize the FLC rule base and the MF mapping simultaneously, using a single cost function for both activities.
Future work will focus on the design of a real-time adaptive fuzzy-based energy management system. This new design will update the fuzzy logic control parameters at the same time as the forecast variables, which could improve the EMS efficiency.

Author Contributions

Conceptualization, D.A.-A., D.P. (Diego Pacheco), D.P. (Daniela Pereira) and E.V.C.; data curation D.P. (Diego Pacheco), D.P. (Daniela Pereira) and G.G.-G.; formal analysis D.A.-A., E.V.C., F.G., P.A., A.I. and W.M.; investigation D.P. (Diego Pacheco), D.P. (Daniela Pereira) and D.A.-A.; methodology D.P. (Diego Pacheco), D.P. (Daniela Pereira), D.A.-A., E.V.C. and F.G.; project administration D.A.-A. and W.M.; software D.P. (Diego Pacheco), D.P. (Daniela Pereira) and G.G.-G.; supervision D.A.-A. and E.V.C.; validation D.A.-A. and E.V.C.; visualization P.A. and A.I.; writing—original draft preparation D.A.-A., D.P. (Diego Pacheco), D.P. (Daniela Pereira), G.G.-G., E.V.C., F.G., P.A. and A.I.; writing—review and editing D.A.-A., E.V.C., F.G. and W.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work is part of the projects 2019-PIC-003-CTE and 2020-EXT-007 from the Research Group of Propagation, Electronic Control, and Networking (PROCONET) of Universidad de las Fuerzas Armadas ESPE. This work has been developed with the support of VLIR-UOS and the Belgian Development Cooperation (DGD) under the project EC2020SIN322A101. This work has been partially supported by the Spanish Ministry of Industry and Competitiveness under the grant DPI2017-85404 and PID2019-111443RB-100.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Acknowledgments

A special acknowledgment to the Public University of Navarre (UPNa), Pamplona, Spain, and the INGEPER research group who provided the microgrid data that were used in this work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. International Energy Agency. Key World Energy Statistics; International Energy Agency: Paris, France, 2018. [Google Scholar]
  2. International Energy Agency. CO2 Emissions from Fuel Combustion 2018; OECD: Paris, France, 2018. [Google Scholar]
  3. Kanchev, H.; Lu, D.; Colas, F.; Lazarov, V.; Francois, B. Energy Management and Operational Planning of a Microgrid With a PV-Based Active Generator for Smart Grid Applications. IEEE Trans. Ind. Electron. 2011, 58, 4583–4592. [Google Scholar] [CrossRef] [Green Version]
  4. Lasseter, R. MicroGrids. In Proceedings of the IEEE Power Engineering Society Winter Meeting, New York, NY, USA, 27–31 January 2002; pp. 305–308. [Google Scholar] [CrossRef]
  5. Olivares, D.E.; Mehrizi-Sani, A.; Etemadi, A.H.; Canizares, C.A.; Iravani, R.; Kazerani, M.; Hajimiragha, A.H.; Gomis-Bellmunt, O.; Saeedifard, M.; Palma-Behnke, R.; et al. Trends in Microgrid Control. IEEE Trans. Smart Grid 2014, 5, 1905–1919. [Google Scholar] [CrossRef]
  6. Da Silva, I.R.; Rabêlo, R.D.A.; Rodrigues, J.J.; Solic, P.; Carvalho, A. A preference-based demand response mechanism for energy management in a microgrid. J. Clean. Prod. 2020, 255, 120034. [Google Scholar] [CrossRef]
  7. Nge, C.L.; Ranaweera, I.U.; Midtgård, O.-M.; Norum, L. A real-time energy management system for smart grid integrated photovoltaic generation with battery storage. Renew. Energy 2019, 130, 774–785. [Google Scholar] [CrossRef] [Green Version]
  8. Sahoo, S.K.; Sinha, A.K.; Kishore, N.K. Control Techniques in AC, DC, and Hybrid AC–DC Microgrid: A Review. IEEE J. Emerg. Sel. Top. Power Electron. 2017, 6, 738–759. [Google Scholar] [CrossRef]
  9. Nojavan, S.; Pashaei-Didani, H.; Mohammadi, A.; Ahmadi-Nezamabad, H. Energy management concept of AC, DC, and hybrid AC/DC microgrids. In Risk-Based Energy Management; Elsevier: Amsterdam, The Netherlands, 2020; pp. 1–10. [Google Scholar] [CrossRef]
  10. Unamuno, E.; Barrena, J.A. Hybrid ac/dc microgrids—Part I: Review and classification of topologies. Renew. Sustain. Energy Rev. 2015, 52, 1251–1259. [Google Scholar] [CrossRef]
  11. Zia, M.F.; Elbouchikhi, E.; Benbouzid, M. Microgrids energy management systems: A critical review on methods, solutions, and prospects. Appl. Energy 2018, 222, 1033–1055. [Google Scholar] [CrossRef]
  12. Vera, Y.E.G.; Dufo-López, R.; Bernal-Agustín, J.L. Energy Management in Microgrids with Renewable Energy Sources: A Literature Review. Appl. Sci. 2019, 9, 3854. [Google Scholar] [CrossRef] [Green Version]
  13. Vahedipour-Dahraie, M.; Rashidizadeh-Kermani, H.; Anvari-Moghaddam, A.; Guerrero, J.M. Stochastic Risk-Constrained Scheduling of Renewable-Powered Autonomous Microgrids With Demand Response Actions: Reliability and Economic Implications. IEEE Trans. Ind. Appl. 2019, 56, 1882–1895. [Google Scholar] [CrossRef]
  14. Marzband, M.; Alavi, H.; Ghazimirsaeid, S.S.; Uppal, H.; Fernando, T. Optimal energy management system based on stochastic approach for a home Microgrid with integrated responsive load demand and energy storage. Sustain. Cities Soc. 2017, 28, 256–264. [Google Scholar] [CrossRef]
  15. Korkas, C.D.; Baldi, S.; Michailidis, I.; Kosmatopoulos, E.B. Intelligent energy and thermal comfort management in grid-connected microgrids with heterogeneous occupancy schedule. Appl. Energy 2015, 149, 194–203. [Google Scholar] [CrossRef]
  16. NERSA. Grid Connection Code for Renewable Power Plants (RPPs) Connected to the Electricity Transmission System (TS) or the Distribution System (DS) in South Africa. 2014. Available online: https://www.sseg.org.za/wp-content/uploads/2019/03/South-African-Grid-Code-Requirements-for-Renewable-Power-Plants-Version-2-8.pdf (accessed on 1 February 2021).
  17. Energy Regulatory Commission, Philippine Distribution Code 2016 Edition. Available online: http://www.erc.gov.ph/Files/Render/media/PhilippineDistributionCode2016Edition.pdf (accessed on 1 February 2021).
  18. Australian Energy Market Commission. National Electricity Rules Version 56 Chapter 3: Market Rules, Aust. Energy Mark. 2013; p. 146. Available online: https://www.aemc.gov.au/sites/default/files/content/National-Electricity-Rules-historical-version-79.PDF (accessed on 1 February 2021).
  19. Zhang, C.; Lin, W.; Ke, D.; Sun, Y. Smoothing Tie-Line Power Fluctuations for Industrial Microgrids by Demand Side Control: An Output Regulation Approach. IEEE Trans. Power Syst. 2019, 34, 3716–3728. [Google Scholar] [CrossRef]
  20. Pascual, J.; Sanchis, P.; Marroyo, L. Implementation and Control of a Residential Electrothermal Microgrid Based on Renewable Energies, a Hybrid Storage System and Demand Side Management. Energies 2014, 7, 210–237. [Google Scholar] [CrossRef]
  21. Pascual, J.; Barricarte, J.; Sanchis, P.; Marroyo, L. Energy management strategy for a renewable-based residential microgrid with generation and demand forecasting. Appl. Energy 2015, 158, 12–25. [Google Scholar] [CrossRef]
  22. Leonori, S.; Martino, A.; Mascioli, F.M.F.; Rizzi, A. Microgrid Energy Management Systems Design by Computational Intelligence Techniques. Appl. Energy 2020, 277, 115524. [Google Scholar] [CrossRef]
  23. Leonori, S.; Paschero, M.; Mascioli, F.M.F.; Rizzi, A. Optimization strategies for Microgrid energy management systems by Genetic Algorithms. Appl. Soft Comput. 2020, 86, 105903. [Google Scholar] [CrossRef]
  24. Avilés, D.A.; Pascual, J.E.S.; Marroyo, L.; Sanchis, P.; Guinjoan, F.; Marietta, M.P. Optimal Fuzzy Logic EMS design for residential grid-connected microgrid with hybrid renewable generation and storage. In Proceedings of the IEEE 24th International Symposium on Industrial Electronics (ISIE), Armacao dos Buzios, Brazil, 3–5 June 2015; pp. 742–747. [Google Scholar] [CrossRef]
  25. Arcos-Aviles, D.; Pascual, J.; Marroyo, L.; Sanchis, P.; Guinjoan, F. Fuzzy Logic-Based Energy Management System Design for Residential Grid-Connected Microgrids. IEEE Trans. Smart Grid 2016, 9, 530–543. [Google Scholar] [CrossRef] [Green Version]
  26. Arcos-Aviles, D.; Pascual, J.; Guinjoan, F.; Marroyo, L.; Sanchis, P.; Marietta, M.P. Low complexity energy management strategy for grid profile smoothing of a residential grid-connected microgrid using generation and demand forecasting. Appl. Energy 2017, 205, 69–84. [Google Scholar] [CrossRef]
  27. Arcos-Aviles, D.; Guinjoan, F.; Pascual, J.; Marroyo, L.; Sanchis, P.; Gordillo, R.; Ayala, P.; Marietta, M.P. A Review of Fuzzy-Based Residential Grid-Connected Microgrid Energy Management Strategies for Grid Power Profile Smoothing. In Energy Sustainability in Built and Urban Environments; Motoasca, E., Kumar Agarwal, A., Breesch, H., Eds.; Springer: Singapore, 2019; pp. 165–199. [Google Scholar] [CrossRef]
  28. Aviles, D.A.; Guinjoan, F.; Barricarte, J.; Marroyo, L.; Sanchis, P.; Valderrama, H. Battery management fuzzy control for a grid- tied microgrid with renewable generation. In Proceedings of the IECON 2012—38th Annual Conference on IEEE Industrial Electronics Society, Montreal, QB, Canada, 25–28 October 2012; pp. 5607–5612. [Google Scholar] [CrossRef]
  29. García-Gutiérrez, G.; Arcos-Aviles, D.; Carrera, E.V.; Guinjoan, F.; Motoasca, E.; Ayala, P.; Ibarra, A. Fuzzy Logic Controller Parameter Optimization Using Metaheuristic Cuckoo Search Algorithm for a Magnetic Levitation System. Appl. Sci. 2019, 9, 2458. [Google Scholar] [CrossRef] [Green Version]
  30. Deepthi, S.; Ravikumar, A. A Study from the Perspective of Nature-Inspired Metaheuristic Optimization Algorithms. Int. J. Comput. Appl. 2015, 113, 53–56. [Google Scholar] [CrossRef] [Green Version]
  31. Yang, X.-S. Nature-Inspired Optimization Algorithms, 1st ed.; Elsevier Inc.: London, UK, 2014. [Google Scholar]
  32. Farzaneh, H.H.; Lindemann, U. A Practical Guide to Bio-Inspired Design; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar]
  33. Dey, N.; Ashour, A.S.; Bhattacharyya, S. (Eds.) Applied Nature-Inspired Computing: Algorithms and Case Studies; Springer: Singapore, 2020. [Google Scholar]
  34. Jauhar, S.K.; Pant, M. Genetic Algorithms, a Nature-Inspired Tool: Review of Applications in Supply Chain Management. In Proceedings of the Fourth International Conference on Soft Computing for Problem Solving, Silchar, Assam, India, 27–29 December 2014; pp. 71–86. [Google Scholar] [CrossRef]
  35. Khosravi, H.; Abolfazli-E, M.; Akbarzadeh-T, M.-R. A nature-inspired transition from Differential Evolution to Particle Swarm Optimization. In Proceedings of the 5th International Conference on Computer and Knowledge Engineering (ICCKE), Mashhad, Iran, 29 October 2015; pp. 87–92. [Google Scholar] [CrossRef]
  36. Esmat, A.; Magdy, A.; ElKhattam, W.; Elbakly, A.M.; Magdy, A. A novel Energy Management System using Ant Colony Optimization for micro-grids. In Proceedings of the 3rd International Conference on Electric Power and Energy Conversion Systems, Istanbul, Turkey, 2–4 October 2013; pp. 1–6. [Google Scholar] [CrossRef]
  37. Dey, B.; Shivam, K.; Bhattacharyya, B. Energy management of various microgrid test systems using swarm evolutionary algorithms. In Distributed Energy Resources in Microgrids; Chauhan, R.K., Chauhan, K., Eds.; Elsevier: London, UK, 2019; pp. 323–341. [Google Scholar] [CrossRef]
  38. Singh, D.; Shukla, R.S. Development of Firefly Algorithm Interface for Parameter Optimization of Electrochemical-Based Machining Processes. In Applications of Firefly Algorithm and Its Variants; Dey, N., Ed.; Springer: Singapore, 2020; pp. 29–52. [Google Scholar] [CrossRef]
  39. Mohanty, P.K.; Parhi, D.R. Optimal path planning for a mobile robot using cuckoo search algorithm. J. Exp. Theor. Artif. Intell. 2016, 28, 35–52. [Google Scholar] [CrossRef]
  40. Arcos-Aviles, D.; Garcia-Gutierrez, G.; Guinjoan, F.; Carrera, E.V.; Pascual, J.; Ayala, P.; Marroyo, L.; Motoasca, E. Adjustment of the Fuzzy Logic controller parameters of the energy management strategy of a grid-tied domestic electro-thermal microgrid using the Cuckoo search algorithm. In Proceedings of the IECON 2019—45th Annual Conference of the IEEE Industrial Electronics Society, Lisbon, Portugal, 14–17 October 2019; pp. 279–285. [Google Scholar] [CrossRef]
  41. García-Gutiérrez, G.; Arcos-Aviles, D.; Carrera, E.V.; Guinjoan, F.; Ibarra, A.; Ayala, P. The Cuckoo Search Algorithm Applied to Fuzzy Logic Control Parameter Optimization. In Applications of Cuckoo Search Algorithm and its Variants; Springer Tracts in Nature-Inspired Computing; Dey, N., Ed.; Springer: Singapore, 2021; pp. 175–206. [Google Scholar] [CrossRef]
  42. Civicioglu, P.; Besdok, E. A conceptual comparison of the Cuckoo-search, particle swarm optimization, differential evolution and artificial bee colony algorithms. Artif. Intell. Rev. 2013, 39, 315–346. [Google Scholar] [CrossRef]
  43. Arcos-Aviles, D.; Guinjoan, F.; Pascual, J.; Marroyo, L.; Gordillo, R.; Sanchis, P.; Marietta, M.P.; Ibarra, A. Fuzzy-based energy management of a residential electro-thermal microgrid based on power forecasting. In Proceedings of the IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society, Washington, DC, USA, 21–23 October 2018; pp. 1824–1829. [Google Scholar] [CrossRef]
  44. Arcos-Aviles, D.; Sotomayor, D.; Proaño, J.L.; Guinjoan, F.; Marietta, M.P.; Pascual, J.; Marroyo, L.; Sanchis, P. Fuzzy energy management strategy based on microgrid energy rate-of-change applied to an electro-thermal residential microgrid. In Proceedings of the IEEE 26th International Symposium on Industrial Electronics (ISIE), Edinburg, UK, 19–21 June 2017; pp. 99–105. [Google Scholar] [CrossRef]
  45. Arcos-Aviles, D.; Guinjoan, F.; Marietta, M.P.; Pascual, J.; Marroyo, L.; Sanchis, P. Energy management strategy for a grid-tied residential microgrid based on Fuzzy Logic and power forecasting. In Proceedings of the IECON 2016—42nd Annual Conference of the IEEE Industrial Electronics Society, Florence, Italy, 23–26 October 2016; pp. 4103–4108. [Google Scholar] [CrossRef]
  46. Marler, R.T.; Arora, J.S. The weighted sum method for multi-objective optimization: New insights. Struct. Multidiscip. Optim. 2010, 41, 853–862. [Google Scholar] [CrossRef]
  47. Kennedy, J.N.; Eberhart, R.C. Particle swarm optimization. In Proceedings of the ICNN’95—International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar] [CrossRef]
  48. Eberhart, R.; Shi, Y. Particle swarm optimization: Developments, applications and resources. In Proceedings of the 2001 Congress on Evolutionary Computation, Seoul, Korea, 27–30 May 2001; pp. 81–86. [Google Scholar] [CrossRef]
  49. 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]
  50. Choi, J.H.; Lee, K.; Park, C. Differential Evolution; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  51. Yang, X.; Press, L. Genetic algorithms. In Advances in Exploration Geophysics; Sen, M., Stoffa, P.L., Eds.; Elsevier: Amsterdam, The Netherlands, 1995; pp. 125–158. [Google Scholar] [CrossRef] [Green Version]
  52. Fister, I., Jr.; Yang, X.S.; Fister, I.; Brest, J.; Fister, D. A brief review of nature-inspired algorithms for optimization. Elektroteh. Vestnik/Electrotech. Rev. 2013, 80, 116–122. [Google Scholar]
Figure 1. Electro-thermal microgrid architecture.
Figure 1. Electro-thermal microgrid architecture.
Applsci 11 01663 g001
Figure 2. Microgrid power profiles: (a) Photovoltaic power, (b) wind turbine power, (c) solar thermal collector power, (d) domestic load demand, (e) electric water heater power, and (f) domestic hot water equivalent power.
Figure 2. Microgrid power profiles: (a) Photovoltaic power, (b) wind turbine power, (c) solar thermal collector power, (d) domestic load demand, (e) electric water heater power, and (f) domestic hot water equivalent power.
Applsci 11 01663 g002
Figure 3. Energy management strategy block diagram [43]. ©2018 IEEE, Reprinted, with permission from D. Arcos-Aviles et al., “Fuzzy-based energy management of a residential electro-thermal microgrid based on power forecasting,” in IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society, Washington, DC, USA, October 2018, pp. 1824–1829.
Figure 3. Energy management strategy block diagram [43]. ©2018 IEEE, Reprinted, with permission from D. Arcos-Aviles et al., “Fuzzy-based energy management of a residential electro-thermal microgrid based on power forecasting,” in IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society, Washington, DC, USA, October 2018, pp. 1824–1829.
Applsci 11 01663 g003
Figure 4. Fuzzy controller membership functions (MF): (a) Power forecast error, (b) battery state-of-charge (SOC), and (c) fuzzy logic control (FLC) output [45]. ©2016 IEEE, Reprinted, with permission, from Arcos-Aviles D, Guinjoan F, Marietta MP, Pascual J, Marroyo L, Sanchis P. Energy management strategy for a grid-tied residential microgrid based on Fuzzy Logic and power forecasting. IECON 2016—42nd Annu. Conf. IEEE Ind. Electron. Soc., Florence, Italy: IEEE; 2016, pp. 4103–4108.
Figure 4. Fuzzy controller membership functions (MF): (a) Power forecast error, (b) battery state-of-charge (SOC), and (c) fuzzy logic control (FLC) output [45]. ©2016 IEEE, Reprinted, with permission, from Arcos-Aviles D, Guinjoan F, Marietta MP, Pascual J, Marroyo L, Sanchis P. Energy management strategy for a grid-tied residential microgrid based on Fuzzy Logic and power forecasting. IECON 2016—42nd Annu. Conf. IEEE Ind. Electron. Soc., Florence, Italy: IEEE; 2016, pp. 4103–4108.
Applsci 11 01663 g004aApplsci 11 01663 g004b
Figure 5. Resulting MFs through Cuckoo search (CS) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Figure 5. Resulting MFs through Cuckoo search (CS) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Applsci 11 01663 g005
Figure 6. Resulting MFs through Particle Swarm Optimization (PSO) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Figure 6. Resulting MFs through Particle Swarm Optimization (PSO) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Applsci 11 01663 g006aApplsci 11 01663 g006b
Figure 7. Resulting MFs through Differential Evolution (DE) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Figure 7. Resulting MFs through Differential Evolution (DE) algorithm (a) input P E 3 H * , (b) input SOC, and (c) output PFLC.
Applsci 11 01663 g007
Figure 8. Convergence chart.
Figure 8. Convergence chart.
Applsci 11 01663 g008
Figure 9. Grid power profile comparison for different EMS designs (a) heuristic, (b) CS algorithm, (c) PSO, and (d) DE algorithm.
Figure 9. Grid power profile comparison for different EMS designs (a) heuristic, (b) CS algorithm, (c) PSO, and (d) DE algorithm.
Applsci 11 01663 g009
Figure 10. Grid power ramp-rates (a) EMS-FC, (b) EMS-CS, (c) EMS-PSO, and (d) EMS-DE.
Figure 10. Grid power ramp-rates (a) EMS-FC, (b) EMS-CS, (c) EMS-PSO, and (d) EMS-DE.
Applsci 11 01663 g010
Table 1. Heuristic approach rule base energy management system (EMS) [43].
Table 1. Heuristic approach rule base energy management system (EMS) [43].
PFLC (n) P E * ( n )
NBNSZEPSPB
SOC (n)NBPBPMPSPMPB
NSPMPSPSSPSPM
ZENSZEZEPSSNSS
PSNMNSNSSNSNM
PBNBNSSNMNMNB
Table 2. Number of variables for each fuzzy logic control (FLC) parameter.
Table 2. Number of variables for each fuzzy logic control (FLC) parameter.
ParameterNumber of Variables
Membership functions (MF) for the input P E 3 H * 11
MFs for the input SOC11
MFs for the output PFLC23
x k ( ) ( + ) 2
Rule base25
Total (d)72
Table 3. Optimized rule base through Cuckoo Search (CS) algorithm [40,41].
Table 3. Optimized rule base through Cuckoo Search (CS) algorithm [40,41].
PFLC (n) P E * ( n )
NBNSZEPSPB
SOC(n)NBZEZEPSPMPB
NSNSSZEPSSPSPB
ZENSNSSZEPSSPS
PSNMNSNSSZEPSS
PBNBNMNSNSZE
Table 4. Optimized rule base through Particle Swarm Optimization (PSO).
Table 4. Optimized rule base through Particle Swarm Optimization (PSO).
PFLC (n) P E * ( n )
NBNSZEPSPB
SOC(n)NBZEPSSPSPMPB
NSZEZEPSSPSPM
ZENSNSSZEPSSPS
PSNMNSNSSZEPSS
PBNBNMNSNSSZE
Table 5. Optimized rule base through Differential Evolution (DE) algorithm.
Table 5. Optimized rule base through Differential Evolution (DE) algorithm.
PFLC (n) P E * ( n )
NBNSZEPSPB
SOC(n)NBPSPBPSPBPB
NSZEPMPSSPBPB
ZENSSPSSPSSPSSPS
PSNSSPSSNSZENSS
PBNMNBNSSZENB
Table 6. Fitness comparison.
Table 6. Fitness comparison.
EMS StrategyFitness
EMS [43]9
CS optimized EMS [40]7.76
PSO optimized EMS7.88
DE optimized EMS7.75
Table 7. Convergence time analysis for CS, PSO, and DE algorithms.
Table 7. Convergence time analysis for CS, PSO, and DE algorithms.
AlgorithmPopulation LengthTime per Iteration (min)IterationsConv. Time (h)
CS2516.124365.21
PSO2516.110728.71
DE2516.129579.16
Table 8. Grid power profile quality criteria comparison.
Table 8. Grid power profile quality criteria comparison.
EMS StrategyPG,MAX
(kW)
PG,MIN
(kW)
MPD
(W/h)
APD
(W/h)
PPVPVR
EMS-FC [43]2.56−1.89846751.260.34
EMS-CS [40]2.51−1.66469751.250.32
EMS-PSO2.51−1.71489761.260.32
EMS-DE2.50−1.60487741.290.32
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Arcos-Aviles, D.; Pacheco, D.; Pereira, D.; Garcia-Gutierrez, G.; Carrera, E.V.; Ibarra, A.; Ayala, P.; Martínez, W.; Guinjoan, F. A Comparison of Fuzzy-Based Energy Management Systems Adjusted by Nature-Inspired Algorithms. Appl. Sci. 2021, 11, 1663. https://doi.org/10.3390/app11041663

AMA Style

Arcos-Aviles D, Pacheco D, Pereira D, Garcia-Gutierrez G, Carrera EV, Ibarra A, Ayala P, Martínez W, Guinjoan F. A Comparison of Fuzzy-Based Energy Management Systems Adjusted by Nature-Inspired Algorithms. Applied Sciences. 2021; 11(4):1663. https://doi.org/10.3390/app11041663

Chicago/Turabian Style

Arcos-Aviles, Diego, Diego Pacheco, Daniela Pereira, Gabriel Garcia-Gutierrez, Enrique V. Carrera, Alexander Ibarra, Paúl Ayala, Wilmar Martínez, and Francesc Guinjoan. 2021. "A Comparison of Fuzzy-Based Energy Management Systems Adjusted by Nature-Inspired Algorithms" Applied Sciences 11, no. 4: 1663. https://doi.org/10.3390/app11041663

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