1. Introduction
The implementation of hybrid microgrids is necessary due to their advantages. Many projects and studies have proven their essential ecological and economic effects. The literature has assessed the microgrid from all directions, including design, operation, optimization, control, and others. Literature reviews have provided more comprehensive studies. In [
1], a comprehensive study on the optimization of microgrid operations has been presented. In [
2], a review of AC and DC microgrid protection has been presented. Reference [
3] presented a D.C. microgrid protection comprehensive review. Reference [
4] presented a review on optimization and control techniques of the hybrid AC/DC microgrid, as well as the integration challenges. Reference [
5] presented a comprehensive review of the planning, the operation, and the control of a DC microgrid. Reference [
6] presented a review of microgrid sizing, design, and energy management.
The design and operation optimization of microgrids, considered the main objective of this work, has been presented in many papers. Reference [
7] presented a design and assessment of the microgrid using a statistical methodology that calculates the effect of energy reliability and variability on microgrid performance. The paper used a REopt platform to explore the cost savings and revenue streams. In [
8,
9], the microgrid design has been investigated using several algorithms and configurations. In [
10], a hybrid simulated annealing particle swarm (SAPS) algorithm has been presented to determine the microgrid optimal size that is subject to the economic and reliable operation constraints and to subsequently boost power supply security and stability. The paper [
11] presented a new compromise method based on the Six Sigma approach to compare several multi-objective algorithms. The new approach has been applied to microgrid sizing and design based on PV, wind turbine, diesel, and battery systems. Reference [
12] presented a graph-theoretic algorithm known as P-graph which allows the identification of optimal and near-optimal solutions for practical decision making. This study proposed a multi-period P-graph optimization framework for optimizing photovoltaic-based microgrids with battery-hydrogen energy storage. The proposed approach is demonstrated through two case studies. Reference [
13] proposed a novel cash-flow model for Li-ion battery storage used in the energy system; the study considers the Li-ion battery degradation characteristic.
Optimization techniques are more competent in solving non-linear optimization problems, such as optimal reactive power dispatch (ORPD) [
14], economic emission dispatch [
15], intelligent energy management [
16], and parameter estimation of photovoltaic models [
17]. Reference [
18] used an experimental validation of a lab-scale microgrid. Reference [
19] concerns the undervoltage in smart distribution systems. The optimal power flow from attackers has been presented in [
20].
The development of tools to design microgrids has become an important research area; the development of meta-heuristic algorithms begins a trend. In the literature, many papers presented different algorithms which have been applied to design a hybrid microgrid. In [
21], an improved two-archive many-objective evolutionary algorithm (TA-MaEA) based on fuzzy decisions has been used to solve the sizing optimization problem for HRES. The simulation considered the following objective function: costs, probability of loss of power supply, pollutant emissions, and power balance. Reference [
22] proposes an HRES of PV and fuel cells with an optimal total annual cost; the study used a new, improved metaheuristic called the amended water strider algorithm (AWSA). The reliability is considered, and the sensitivity analysis is applied. Reference [
23] presents a microgrid design composed of PV, wind, an inverter, a rectifier, an electrolyzer, and a fuel cell. The paper used a modified seagull optimization technique to find the best cost of the optimal sizing. The proposed algorithm is compared with the original seagull optimization algorithm (SOA) and modified farmland fertility algorithm (MFFA). Reference [
24] presents a new hybrid algorithm called IWO/BSA to resolve the microgrid design of any configuration, including PV/wind turbine (WT)/biomass/battery, PV/biomass, PV/diesel/battery, and WT/diesel/battery systems. The study’s objective is to obtain the best system with optimal cost, pollution, availability, and reliability. Reference [
25] presents an adaptive version of the marine predators algorithm (AMPA) to design a PV/diesel/battery microgrid system. The objective function minimizes the annualized cost, respecting the ecologic and reliability factors of the system. The results are compared with PSO and HOMER. Reference [
26] proposed an improved version of the bonobo optimizer (BO) based on the quasi-oppositional technique to resolve the design problem of the HRES considering the PV, wind turbines, battery, and diesel. A comparison between the traditional BO, the new QOBO, and other optimization techniques is investigated to prove the efficacy of QOBO. Reference [
27] proposed a deterministic approach to size a PV, battery, anaerobic digestion, and biogas power plant to meet a demand load in Kenya. The levelized cost of energy (LCOE) is considered the objective function, while the energy imbalance between generation and demand is considered.
The present paper proposes a new tool consisting of platforms using an improved version of the HBO algorithm called IHBO. The improvement of the HBO algorithm depends on enhancing the performance of the HBO algorithm using the velocity equation from the particle swarm optimization (PSO) algorithm. This equation improves the convergence capability behavior and enables different diversified solutions in the search space, which is necessary for such an algorithm and achieves the fitness function’s optimal value. The proposed platforms design hybrid microgrid systems composed of PV, wind, diesel, and batteries. Two configurations are presented, and four algorithms are used in the comparison. In summary, the paper addresses the following points:
An improved version of the conventional HBO algorithm is proposed with the aim of improving its performance;
The conventional HBO and proposed IHBO algorithms are applied for optimal design of a hybrid microgrid system including RES (photovoltaic panels, wind turbines, and batteries) with diesel generators;
In the designed microgrid, the reliability, availability and the renewable fraction constraints are considered;
The proposed IHBO algorithm’s efficiency and performance are evaluated on different benchmark functions, including the statistical measurement;
The impact of the fuel price variation on the project investment is analyzed.
The paper is organized as follows: the introduction occurs in
Section 1; the modeling of HRES components is contained in
Section 2;
Section 3 presents the objective functions and constraints;
Section 4 presents the new, improved algorithm, namely IHBO; the results and discussion are presented in
Section 5; and the conclusion is presented in
Section 6.
6. Results and Discussion
In this paper, the Terfaya region of Morocco is selected as the case study to implement an HRES platform based on an improved optimization algorithm called IHBO. The maps for the project location, the load charge, the annual ambient radiation, temperature, wind speed, and pressure are presented in
Figure 11,
Figure 12,
Figure 13,
Figure 14 and
Figure 15, respectively.
The proposed HRES includes two renewable sources (PV and wind turbines), a diesel generator, and a battery storage system. According to the mathematical modeling of the mentioned systems, the PV output can be affected by the solar radiation data; otherwise, the output power of the wind is influenced by the wind speed data. The decision variables in this study are dedicated to the size of the HRES where: x(1) is the PV area (,), x(2) is the wind swept area (), x(3) represents the battery capacity () and x(4) is the rated power of the diesel generator (). In this paper, an analysis of fuel price variation is carried out.
6.1. Optimal HRES Design of PV/Diesel/Battery and PV/Wind/Diesel/Battery
6.1.1. PV/Diesel/Battery HRES
The results of the optimal HRES design for the case study concerning the PV/diesel/battery HRES are summarized in
Table 5. The table presents all used algorithms concerning the predefined constraints, including the LPSP, RF, and the availability. The algorithms are arranged as GWO, HBO, AEFA, HHO, and IHBO, with a net present cost of MAD 191,661, MAD 175,321, MAD 169,142, MAD 147,527, and MAD 120,463, respectively. The optimal system needs MAD 120,463, equivalent to an LCOE of MAD 0.13/kWh. The system designed respected the constraints very well, with a reliability (LPSP) of 3%, a renewable fraction of 95%, and power availability of 98%.
Table 6 presents the optimal size of each algorithm; the best solution is then obtained by IHBO, with 1,673,864 m
2 and 38,860 kW of diesel generator capacity.
Table 7 presents the convergence time of all simulations.
The convergence curve results for all scenarios are presented in
Figure 16, in which the IHBO proves its efficacy to reach the optimal solution.
6.1.2. PV/Wind/Diesel/Battery HRES
The second configuration used in this paper concerns the PV/wind/diesel/battery HRES. From
Table 8, the results respect the constraints; then, the best algorithms results converge as HBO, GWO, AEFA, HHO, and IHBO, with an investment cost of MAD 461,233, MAD 226,559, MAD 221,694, MAD 215,371, and MAD 100,337, respectively. The best cost needs MAD 100,337, equivalent to MAD 0.08/kWh; in this situation, the LPSP is about 4%, the renewable fraction is near 100%, and the power availability is more than 99%.
Table 9 presents the size results, which show that the best project needs 261.3031 m
2 of PV area, 102.7114 m
2 of swept area of the wind turbines, 23.2177 kWh of battery, and 1.0762 kW of diesel.
Table 10 presents the convergence time of all simulations.
Figure 17 presents the convergence curve of the NPC for the PV/wind/diesel/battery HRES; the curve shows that the IHBO algorithm gives better convergence results.
6.2. Impact of Fuel Price Variation
In the paper, if we suppose that the price of fuel is about MAD 0.41/L, then we can compare the total investment cost with the previous study that used the actual price, which is MAD 0.96/L.
From
Table 11, it is clearly shown that the NPC of the HRES is reduced strongly while it is passed from MAD 120,463.
Table 12 presents the optimal HRES size using all optimization algorithms.
Figure 18 presents the convergence curve of the NPC for the PV/diesel/battery HRES, with a fuel price of MAD 0.54/L. This figure shows that the IHBO algorithm gives the better convergence results.