1. Introduction
Load demand is increasing rapidly and the growth of energy will increase by 40% from 2006 to 2030 [
1]. The growing energy demand, the increase in its price, and the increasing pollution worldwide are considered large problems that need unusual solutions. To overcome these problems, it is necessary to search for innovative solutions using renewable resources and energy management of the energy systems. Energy management means reducing the operating, maintenance, and generation costs of the system and enhancing system performance with methods such as power loss reduction and stability enhancement and alleviating the harmful emissions to the environment. Thus, the energy management of a micro-grid has become one of the most vital aspects of the power or energy system all over the world [
2]. The optimal energy management of a micro-grid can be accomplished by considering or managing the consumption, load profile, price of energy, energy sources, cost of sources installation, source operation, construction, and optimal installation of the renewable distributed generators (DGs) [
3].
The authors in [
4] solved the energy management of a microgrid consisting of photovoltaic (PV), wind turbine (WT), and electrical storage system for a multi-objective function that includes the cost of energy, lifecycle cost, and the annual cost of load loss in addition to the overall benefit while satisfying the micro-grid (MG)’s constraints. In [
5], the energy management of a MG was solved by considering the solar and wind power units’ uncertainty. The uncertainty is handled using the Latin hypercube sampling method. In [
6], a micro-grid investigation was performed, including multi-type WT generators, including squirrel cage induction generators, double fed induction generator, and full converter wind generation under grid fault. R.M. Kamel and K. Nagasaka in [
7] investigated the performance of faults in a micro-grid under dynamic and static load, including static power loads, static impedance loads, and current static load. The WT is used as an energy resource where the main task of this work was to study the influence of the load type on the standalone micro-grid’s fault performance. A comprehensive review for hybrid renewable microgrid optimization techniques was given in [
8]. This review found that the reliability of the micro-grids increases when the WT and PV are combined with the storage devices. In [
9], a multi-objective particle swarm optimization (MOPSO) was employed to optimize the energy management of a micro-grid for cost and emission reductions. M. Motevasel and A.R. Seif applied the modified bacterial foraging optimization (MBFO) for energy management of a micro-gird with the inclusion of a wind-based DG and storage system considering the uncertainty of the wind energy [
10]. In [
11], a modified bacterial foraging optimization was applied for optimal energy management of a MG for cost and emission reductions, which consisted of WT, distributed energy resources, and energy storage system. The fuzzy self-adaptive particle swarm optimization (FSAPSO) algorithm was proposed and implemented to solve MG’s energy management to reduce the operation cost and emission with optimal scheduling multi resources including WT, PV, battery, and fuel cell unit system [
12]. In [
13], a modified honey bee mating optimization (MHBMO) algorithm was employed for micro-grid energy management to minimize the micro-grid’s cost of operation. The efficient salp swarm algorithm (ESSA) was proposed in [
14] and applied for reducing the operation cost of a micro-grid connected with renewable energy sources and storage systems. The ant-lion optimizer (ALO) algorithm was employed to minimize the cost of energy production in the presence of renewable resources and storage systems [
15]. In [
16], the author used moth flame optimization (MFO) to minimize micro-grid power losses. Symbiotic organisms search (SOS) was applied to optimally manage the energy t of the micro-grid in the presence of renewable resources (RESs) [
17]. Many other methods have been employed to solve the issues related to the energy management of micro-grids. In [
18], the author used the convex method to assist the optimal size of storage battery to minimize the total cost. Another example for these methods was used in [
19] for off grid micro-grid where the author used the moth flame optimization algorithm to implement the system and its components’ life cycle cost.
Equilibrium optimizer (EO) is a novel physical-based algorithm presented by A. Faramarzi et al. in 2020. EO, which stimulates the dynamic mass equilibrium on a control volume [
20], has been applied for solving numerous optimization problems. In [
21], the EO was implemented to solve a vehicle seat bracket’s structural design. EO was used to solve the optimal power flow problem in an AC/DC power network [
22]. The authors in [
23] solved the image segmentation problems by applying EO. A.M. Shaheen used the EO for optimizing the configuration of multiple distribution networks [
24]. In binary, EO was implemented to optimize the feature selection [
25]. In [
26], the optimal allocation problem of renewable distributed generators under uncertainties of the system was solved using EO. G. Aghajani and N. Ghadimi solved the energy management problem for a MG to minimize the operation cost and emission using multi-objective particle swarm algorithm [
9]. In [
27], fuzzy logic grey wolf optimization was applied to solve the energy management problem for a MG in presence of the RERs and energy storage systems. The authors in [
28] proposed a day-ahead management system considering both tertiary and primary control layers for cost reduction and power factor improvement. The authors in [
29] proposed a three-layered approach for optimizing the distributed optimal resource in multi-agent systems framework. Several efforts have been presented for developing a multi-types of energy storage systems where the authors in [
30] proposed a novel design for an inexpensive reusable, liquid-cooled, hexagonal battery module to be suitable for mobile and stationary applications. An investigation and a comparison have been performed between of two types electrolytes including traditional salt-in-water and water-in-salt electrolytes for symmetric supercapacitors [
31]. The authors in [
32] proposed a new method for designing electrodes, manufactured from sustainable resources by hybridizing calcined eggshell capacitor anode. From the literature survey, the research gaps found can be summarized as follows:
The energy management problem of a MG is nonlinear, nonconvex, and is not an easy task. Thus, selection of an efficient method or optimization technique for solving this problem is a crucial task.
Most of the presented efforts solved the energy management problem at the deterministic conditions where the uncertainties of the renewable energy resources and the load demands were not considered.
Due to the intermediacy and continuous variations of RERs’ powers leading to increasing uncertainties of system, the energy management problem solution has become more complex and the uncertainties of these resources should be modeled efficiently to be embedded in the energy management problem solution.
Some papers solved the energy management for enhancing the system performance only and some papers solve the energy management from an economic perspective only. However, very few papers take into consideration the system performance and the economic benefits of RERs simultaneously.
In this paper, the EO technique is employed to solve energy management of a MG by incorporating renewable distributed generators with and without considering the uncertainties of the system. The main contributions of the paper are as follows:
Solving the energy management of a MG with integration of RERs under deterministic and probabilistic conditions.
Application of EO technique as one of the most recent algorithms for solving the energy management problem.
Assigning the optimal ratings and placement of a solar PV unit and WT to enhance the system’s performance and reduce the total cost.
Comparing the performance of the proposed algorithm for solving the reported problem with well-known techniques.
An investigation is carried out to study the impact of optimization of the energy management of MG with the inclusion of the RERs.
The paper is arranged as follows:
Section 2 defines the problem formulation, the system constraints, and the modeling of the RERs.
Section 3 describes the methodology of uncertainty modeling.
Section 4 describes the procedure of the EO and its application for solving energy management. The simulation results and the conclusions are listed in
Section 5 and
Section 6, respectively.
3. Uncertainty Modeling
Here, the modeling of the uncertainty for the solar irradiance, wind speed, and load demand is explained. The generation of the probabilistic models for a unit of PV and WT as well as the load demand was based on the hourly historical data of the location under research. Three years of hourly historical data for wind speed, solar irradiance, and load demand have been considered in this work. The three years are represented by a day throughout these years (24 h). The probability distribution function (pdf) of each time segment can be achieved using the data associated with the same hours of the day. Consequently, each time segment has 1095 solar irradiance, wind speed, and load demand (3 years × 365 days per year), generating the equivalent hourly pdfs. The probabilistic model of the PV system, WT, and load demand can be given as follows.
3.1. Solar Irradiance Modeling
A beta pdf for each hour was generated by utilizing the solar irradiance data of that hour and can be mathematically described as follows [
36,
37]:
where
represent the beta pdf of the solar irradiance and the gamma function, respectively; the beta parameters for each period are denoted by
α and
β. The historical data can be used to determine these parameters as follows [
38,
39]:
where the mean and standard deviation of the solar irradiance for each time segment are denoted by
and
, respectively. The continuous beta pdfs are split into many segments in which each individual segment creates a mean value and a probability of happening. The probability of happening for a segment during a specific hour can be described by:
where the start and endpoints of the interval
i are denoted by
and
, respectively.
is the probability happening of the interval
i. Based on the generated beta pdf of the solar irradiance of a time segment, the output power PV for this time period’s states can be calculated using (11).
3.2. Wind Speed Modeling
The power generated by a WT depends on the value of the wind speed and the turbine’s characteristics. The wind speed is frequently modeled by using Weibull pdf with shape parameter equalling 2 [
33,
40], and it is called Rayleigh pdf [
41]. Hence, here, the historical data of hourly wind speeds were utilized to create the Rayleigh pdfs (
) for each time segment, which could be computed as follows:
where the wind speed is denoted by
v, while
c is the scale parameter of Rayleigh. Like solar irradiance, the continuous pdfs were split into many segments in which each segment generated a mean value and a probability of happening. Therefore, the probability of each segment could be determined as follows:
where the wind speed limits of the segment
i denoted by
and
;
denotes the happening probability of state
i. Based on the WT characteristics, the wind speed can be converted into the wind generation system’s output power based on (12).
3.3. Load Demand Modeling
Due to the uncertainty of the load demand, a normal pdf is utilized for modeling the demand. The normal pdf of the uncertain load demand can be determined using the following formula [
39]:
where the normal pdf of the demand is denoted by
; the mean and standard deviation of the load demand are defined, respectively, by
and
. The probability happening of a segment can be described by:
where the starting and ending points are denoted by
and
of the interval
i.
is the probability happening of interval
i.
3.4. Combined Model of Wind, PV, and Load
The probabilistic models of the wind speed, solar irradiance and load demand are employed for generating a combined probability model (
) of wind-PV-load. The combined model of the interval
I, each time segment, can be calculated by convolving the probabilities of the wind speed, solar irradiance, and load demand, as follows:
Each time segment, the objective function given in (1) should be calculated and weighted according to the combined probability model (30). In this work, each time segment was represented by one hour. This implies that, for each time period, each variable had several states. However, for the sake of simplicity, only the expected values of the variables are given.
4. Equilibrium Optimizer
The equilibrium optimizer (EO) is a developed optimization algorithm that mimics the control volume forms’ mass balance to assign the dynamic and equilibrium states. In the EO, the concentrations represent the search agents or the optimization algorithm populations where the concentrations update their locations around equilibrium candidates. The mass balanced equation is formulated as follows:
where
is the control volume,
is the concentration, and
the flow rate. The integration and manipulating of the Equation (35), it can be represented as follows:
where
denotes the initial concentration while
refers to the initial start time. The following steps describe the procedure of the EO:
Step 1: Initialization
The concentrations are initialized randomly as follows:
where
refers to the maximum limit of the control variables while
is the minimum limit.
is a random variable within [0, 1]. Then, evaluate the objective function for each concentration.
Step 2: Assigning the Equilibrium candidates
The populations are sorting and the four best solutions are captured and their average value to form the pool vector (
) as follows:
Step 3: The concentration updating.
Two randomly vectors (
r,
) are generated randomly and utilized to adjust an exponential factor (
F) for updating the concentrations as follows:
where
where
and
refer to constant terms, which are set to be 2 and 1, respectively, to adjust the exponential factor.
is the maximum iteration number, and
denotes the
T-th iteration. It should be indicated here that
is utilized to controls the exploration phase of the EO and
is utilized to control the exploitation process of the EO. Sign (
r − 0.5) controls the direction of the exploration.
Step 4: Concentration updating based on the generation rate.
The generation rate is an efficient method to enhance the exploitation phase of the optimization algorithm as follows:
where,
where
and
are random numbers within the range [0, 1].
denotes the generation probability to control the participation probability of concentration, which is updated by the generation rate. If
= 1 generation rate will not participate in the optimization process. If
= 0, the generation rate will participate in the process.
GP = 0.5 provides an excellent balancing between exploitation and exploration phases. Referring to the previous steps, the updated equation of the EO is formulated as follows:
Step 5: Adding memory saving.
In this step, the obtained concentration is compared with the previous concentration, and it will be accepted if this value is enhanced.
Figure 1 shows the flow chart of optimal energy management.
5. Simulation Results
In this section, the proposed EO algorithm is applied to solve the energy management of the micro-grid and optimize the sizing and location of the renewable-based DGs, including PV and WT, with and without considering the uncertainty. The captured results are then compared with whale optimization algorithm (WOA) and sine cosine algorithm (SCA) techniques for verifying the effectiveness of the proposed method. The proposed algorithm is applied to the 12-bus system, and its single is depicted in
Figure 2. The bus and line data are listed in
Appendix A. The system specifications and the initial load flow at 100% loading are shown in
Table 1. The proposed method for optimal energy management was written in MATLAB software (MATLAB 2014) on 2.5 GHz core I5 with 4 GB PC. The cost coefficients and the system constraints are tabulated in
Table 2. The EO, WOA, and SCA selected parameters for all studied cases are listed in
Table 3. Two studied cases are presented for the energy management with and without considering the uncertainties of the system as follows:
Scenario#1: Energy management under deterministic conditions
In this case, the proposed algorithm has been applied to solve energy management by considering the variations of the load demand, the wind speed, the solar irradiance, and the market price at deterministic conditions. The hourly load profile is shown in
Figure 3. The hourly solar irradiance and the wind speed are depicted in
Figure 4 and
Figure 5, respectively [
44]. The time-varying market price is shown in
Figure 6 [
45].
Table 4 shows the simulation results for this case by application EO, WOA, and SCA. Without incorporating the RERs, the total cost, the summation of the voltage deviations, and the stability index are 8.56007 × 10
5 $, 7.94398 p.u., and 2.33983 × 10
2 p.u., respectively. The voltage profile without incorporating the RERs is shown in
Figure 7a. The voltage decreases with increasing the load demand during the day ahead and the minimum voltage magnitude occurs at the 12th bus.
Judging from
Table 4, the obtained results by applying the EO are better than SCA and the WOA in terms of the considered objective functions. By optimal integration of RERs in the MG using EO, the power total cost is reduced to 4.27794 × 10
5 $, the summation of the voltage deviations is reduced to 3.3260 p.u. and the summation of the voltage stability index is enhanced to 2.515199 × 10
2 p.u. The optimal sizes and placement of the PV and WT are listed in
Table 4. The voltage profiles for this case are depicted in
Figure 8. It is clear that the voltage profiles are enhanced considerably with the optimal integration of the RERs.
Furthermore, the power losses are reduced considerably with the inclusion of the RERs as depicted in
Figure 8, while the system’s stability is significantly enhanced as illustrated in
Figure 9. The output powers for the solar PV unit and WT are depicted in
Figure 10. According to
Figure 10, the output power of the PV unit follows the variations of the solar irradiance, while the yielded power by the WT follows the wind speed variations. The objective function trends with the application of EO, WOA, and SCA are depicted in
Figure 11. Referring to this figure, it is evident that EO has a stable convergence characteristic where it converged at the 27th iteration.
Scenario#2: Energy management under probabilistic conditions
In this section, the MG’s energy management is solved under probabilistic conditions where the uncertainties of the load demand, wind speed, and solar irradiance have been considered. Three years of hourly historical data of load demand, solar irradiance, and wind speed have been considered in this paper. The obtained load profile, solar irradiance, and the wind speed are depicted in
Figure 12,
Figure 13 and
Figure 14, respectively.
Table 5 shows the captured results for optimal energy management by application the EO technique with and without inclusion RERs. Without integrating the RERs under the uncertainties of load demand, the total cost, summation of the voltage deviations, and the stability index are 8.87522 × 10
5 $, 8.57474 p.u., and 2.31695 × 10
2 p.u., respectively. With optimal integration of the RERs, the total cost and summation of the voltage deviations is reduced to 4.76101×10
5 $ 4.15795 p.u.; at the same time, the summation of the voltage stability index is improved to be 2.49093 × 10
2 p.u. The optimal location and rating of the PV and WT are also listed in
Table 5.
Figure 15 shows the voltage profile with and without the inclusion RERs. Judging from this figure, the voltage profile is enhanced by optimal energy management with RERs.
Furthermore, the power loss is reduced considerably with the inclusion of the RERs as depicted in
Figure 16. In addition, the voltage stability index also improved during the day ahead, according to
Figure 17. The output powers of the PV and WT at probabilistic conditions are depicted in
Figure 18. The output power of the PV unit is varied with the variation of the forecasting of the solar irradiance, while the output power of the WT follows the forecasting of the wind speed.