1. Background
Energy systems worldwide are undergoing a major transformation to reduce greenhouse gas emissions and improve power supply security. The combination of diverse renewable energy systems in hybrid notation (HRES), such as solar–PV, hydro, and wind power sources, represents a viable means of providing reliable and sustainable power. Southern Africa continues to experience challenges with energy supply, especially in rural areas. In Namibia, for example, electrification is hampered by the scattered nature of human settlements and the huge size of its territory. Although the national access rate is approximately 55%, the rural communities remain inadequately supplied. As a result, the country is highly reliant on electricity imports, hence its vulnerability. For solar and wind power, Namibia has considerable renewable energy potential, which can be used to develop hybrid renewable energy systems (HRESs) to increase electricity access and decrease dependence on electricity imports and reliance on conventional fossil sources [
1].
A hybrid renewable energy system integrates one or more power production alternatives to satisfy a specific demand [
2,
3]. There is growing global interest in hybrid systems using renewables, with photovoltaic (PV) and wind power providing an option for supplying electricity to unserved communities [
4,
5]. The seasonal variability of both solar and wind sources enables them to complement each other; hence, their combination provides a reliable and continuous power supply [
6,
7]. Emergency power generally provides energy in periods of low insolation and low wind power. While diesel generators are considered environmentally unfriendly, they supplement intermittent renewable energy sources, as their electricity supply is not seasonal [
8]. Since most renewable energy sources are intermittent, incorporating these DGs in the main electricity grid negatively affects the grid stability and power quality [
5,
9].
Stand-alone renewable energy source (RES)-based microgrid systems represent potentially the most feasible and the most cost-effective way to electrify remote off-grid communities [
10,
11]. Consequently, the optimal planning and design of such a system is economically and technically complex due to several factors. Among them is the incoherence and dependence of RES on meteorological data. Microgrid systems are frequently designed to be over- or undersized to satisfy load demand. Oversized microgrids will have higher operating costs and produce energy in excess. On the other hand, undersized microgrids cannot serve the required loads. Maximizing the benefits of a microgrid based on RES requires optimal microgrid sizing; hence, an energy management system (EMS) strategy is required [
11,
12].
The HRES, which combines solar–PV, a diesel generator (DG), storage batteries, and a wind turbine (WT), has proven to be a viable and cost-effective solution to the problem of rural electricity supply for sub-Saharan Africa, especially in areas of limited availability such as Namibia. Many studies have concentrated on these systems’ optimum sizing and performance, combining simulation tools such as HOMER and enhanced optimization algorithms, such as Harris Hawks Optimization (HHO) and Grey Wolf Optimizer (GWO).
In [
13], an optimized configuration of a hybrid system for a remote Nigerian rural village based on HOMER is studied to reduce both the COE and the NPC. The authors in [
14] applied a Grey Wolf Optimizer (GWO) in a multi-objective environment, enhancing the efficiency and the reliability. The authors in [
15] used the Harris Hawks Optimization (HHO) algorithm to analyze hybrid systems under arid conditions, resulting in a higher rate of system convergence and a lower level of power losses. Furthermore, [
16] uses the particle swarm optimization (PSO) algorithm for the optimization of PV–wind–battery systems in off-grid applications, while [
17] shows that PSO is better than the genetic algorithm (GA) and artificial bee colony algorithm (ABC) for the speed of convergence and solution.
This underlines the increasing focus on combining conventional simulation techniques and AI-derived optimization to solve rural off-grid energy access problems. While HOMER offers a comprehensive technical–economic framework, GWO and HHO provide improved research capacities on complex, high-dimensional optimization issues. Although these methods have proven effective, there is a limited amount of literature comparing and applying the GWO and HHO optimization approaches to real hybrid systems from Namibia. This study contributes to this area of research by presenting the optimization results of a hybrid energy system in a rural location of Namibia, using the HOMER software V 3.14.2 in conjunction with the HHO and GWO techniques. The aim is to minimize the global cost of the system while optimizing energy reliability, utilizing renewable resources, and sizing the hybrid system. A summary of the related work is presented in
Table 1. This study provides a comparison and a robust approach, using both conventional and artificial intelligence tools, to evaluate a renewable energy system for remote communities. This approach involves the following components:
Energy model of a hybrid energy system with technical–economic model equations.
Optimization based on HOMER Pro as a benchmark reference tool.
Optimization with the GWO and HHO algorithms, derived from biological models and applied in MATLAB software to analyze solutions.
A comparative analysis of the optimal sizing, the cost of energy (COE), the probability of loss of power supply (LPSP), and the reliability of the system is carried out to identify the best solution required for rural electricity supply.
Several studies have been carried out to optimize PV–wind–diesel–battery hybrid systems in different places. In Nigeria, [
18] applied HOMER to minimize NPC and COE. In Jordan, [
19] used Grey Wolf Optimizer (GWO) to maximize the cost, reliability, and the renewable energy contribution. Harris Hawks Optimization (HHO) was applied in Egypt in [
20] to minimize the LPSP, NPC, and COE. A multi-objective BAT approach was used in Indonesia [
21] to measure both emissions and costs. In China, [
22] employed genetic algorithms (GAs) to enhance costs and reliability, while [
23] suggested a hybrid approach in Saudi Arabia to improve the sizing, COE, and LPSP.
Over the past decade, several advanced metaheuristic approaches have been applied to optimization for hybrid energy system studies. Mathaba [
24] used adaptive optimization methods to develop diesel–wind–solar–battery power systems in off-grid conditions. Hassanin and Hassan [
25] investigated various optimization algorithms, such as Salp swarm optimization, for stand-alone PV–wind–diesel power systems in Egypt. Ukoima [
26] conducted a study on a hybrid renewable energy system, and Alzahrani [
27] for a standalone renewable energy system. However, the combined implementation of Grey Wolf Optimization (GWO) and Harris Hawks Optimization (HHO) is not well studied, especially in remote rural electricity supply. This study aims to address this issue by applying GWO and HHO to the optimum design of an adapted hybrid energy system for a remote village in Namibia.
2. Materials and Methods
This study adopted the basic two-stage method for optimal hybrid system design at a rural site in Namibia. In the first step, HOMER V 3.14.2 software was used to carry out a technical–economic assessment and determine a feasible system configuration based on resource availability and basic constraints. This stage provided a baseline in terms of the component sizes and system cost. Advanced optimization methods were then applied using MATLAB to improve the system’s dimensioning and performance. The HHO and GWO methods were employed to identify the optimum number of solar–PV panels, DG capacity, storage batteries, and WTs. These methods aimed to minimize the key indicators of performance, such as NPC, COE, and LPSP.
The optimum configurations achieved by GWO and HHO were compared with the HOMER reference results. In addition, the optimal configurations have been tested in various weather conditions to evaluate the robustness and adaptability of the system design.
Figure 1 shows the general framework of the research study.
2.1. Description of Namibia
Namibia, situated in the southwest of Africa, is extensively arid and semi-arid, which makes the country among the world’s sunniest. This plentiful supply of solar energy, coupled with wind power potential in some coastal and interior areas, provides exciting prospects for hybrid energy systems (HESs), especially in non-urban and remote rural villages with limited access to grid energy. This study selected a rural site in Namibia, which has a typical off-grid load demand profile, with an average base load of approximately 16.16 kW.
Figure 2 presents the average daily load profile, characterized by three main consumption peaks: a morning peak from 7:00 to 8:00 am reaching 54.00 kW, a midday peak between 1:00 and 2:00 pm at 41.00 kW, and an evening peak between 7:00 and 8:00 pm. The overall daily peak load recorded for the area is 91.00 kW daily, and consumption is approximately 615 kWh/day.
These characteristics make the location ideally placed for a hybrid energy system configuration, which is optimized to provide a cost-effective and reliable energy supply while exploiting the region’s renewable resources.
Figure 3 shows the monthly profile of solar radiation over the study zone for one year. This profile is based on mean monthly data on solar radiation in the study site supplied by NASA [
28]. The solar intensity is between 3.66 kWh/m
2/day and 6.43 kWh/m
2/day. Annual solar insolation is 5.13 kWh/m
2/day. It is lowest in the winter season and highest in the summer season. The wind profile of the area under study over one year is shown in
Figure 4. The average yearly wind speed recorded is approximately 3.5 m/s.
The energy supply system and the hybrid system at the Namibian site in southern Africa are shown in
Figure 5. It consists of a solar–PV plant and a WT, which are used as a sustainable energy source. Back-up power supply is provided by a diesel generator in the event of insufficient power supply, while a battery farm provides compensation for production and converters.
2.2. System Modeling
Modeling of the hybrid energy system is designed to illustrate the dynamic performance of a photovoltaic–wind–diesel–battery microgrid designed to meet the requirements of a rural location in Namibia. The performance of the system can be evaluated with various weather parameters and with different charging profiles, using advanced optimization techniques. The data and costs for each source and formulation used for all hybrid system technical parameters, conversion models, and operational characteristics (PV, wind, diesel generator, and battery) are available in [
25,
26,
27]. It was selected for its coherence with remote location conditions and the exhaustiveness of the data available covering the energy, economic, and dynamics data of each source.
2.2.1. Models of Photovoltaic (PV) Panels
The power output from a solar–PV unit is dependent on the solar insolation and the temperature of the cells [
29]:
where N
PV indicates the number in the photovoltaic array, P
PV, ref is the rated power output of the array assuming G
ref = 1000 W/m
2, G (t) indicates the current radiation (W/m
2), T
c (t) represents the temperature of the cells (°C), and α
T indicates the temperature coefficient of performance (%/°C).
2.2.2. Wind Turbine (WT) Model
The WT power output is represented by [
29]:
where
v is the wind speed (m/s),
vcut-in, vrated, and vcut-out are the characteristic speeds (m/s),
vrated is the rated power of the WT.
2.2.3. Diesel Generator (DG) Model
The DG consumption of fuel depends on the loading [
29]:
where
FDG represents the fuel consumption per hour (L/h),
A and b represent specific coefficients of the generator,
PDG,nom represents the rated power of the generator,
PRES represents the combined solar photovoltaic and wind power generation,
SOC is the battery state of charge.
2.2.4. Model of Battery Energy Storage System (BESS)
The SOC is modeled as in [
29]:
where
Pch (t) and Pdis (t) represent the charging and discharging output (kW),
ηc and ηd are the charging and discharging efficiency,
Cbat represents the nominal battery capacity (kWh).
2.3. Optimization Problem Formulation
The optimum system configuration for a hybrid solar–PV, DG, WT, and battery energy storage system (BAT) should provide an optimal solution for the power requirements of a rural, isolated zone. To meet these requirements, a multi-objective approach to optimize the system has been implemented, incorporating technical, economic, reliability, and environmental factors. It considers three different objective functions at the same time:
The problem’s mathematical formulation is shown in Equation (5):
where
X = [PPV, PWT, PDG, Ebat, Pinv] is the vector of the decision parameters, representing the power output of the PV, WT, DG, BAT, and the inverter, respectively.
The objective function can be defined as the discounted cost of energy (COE, and is obtained as [
25,
26,
27]):
where
Ctot represents the discounted total cost for the system during the project lifespan,
Eload,served represents the electrical energy supplied to the load.
The LPSP probability [
25,
26,
27] is given by:
where
Edeficit (t) corresponds to the energy unmet at time t,
Eload (t) corresponds to the demand for energy.
The renewable fraction (RF) corresponds to the proportion of renewable energy resources in the overall generation and is given as [
25,
26,
27]:
The following technical constraints must be met (boundary conditions):
Constraints
The total energy generated must satisfy or surpass the demand:
The components of the system have been designed according to their relative capacity limitations to guarantee their operational viability.
2.4. The Grey Wolf Optimizer Methods
GWO is a metaheuristic approach that is based on nature [
30]. The GWO algorithm simulates the command hierarchy and behavior of natural grey wolves. This algorithm is noted for its robust simplicity, high global finding capacity, and effectiveness at resolving complicated optimization issues using minimum parameter settings.
In GWO, there are four hierarchical population levels, namely, alpha (α), beta (β), delta (δ), and omega (ω). The three most successful wolves (α, β, and δ) provide search guidance, while the remainder of the population (ω) discounts positions according to the leads. The process of hunting is modeled in mathematical terms by the mechanics of circling, attack, and prey search.
The position of each wolf symbolizes a feasible solution within the study area, and the target is the optimum of the objective function. During iterations, wolves approach the position of the prey to update their positions, under the guidance of the top three wolves. This balance of exploration and exploitation guarantees the convergence to the global optimum and prevents premature convergence.
The mechanism of position updating is ruled by [
30,
31] Equation (12):
where
is the position vector of the prey (best solution).
is the current position vector of the grey wolf.
and
are both the coefficient vectors defined as follows [
31]:
In this case, reduces linearly over iterations from 2 to 0, and , ∈ [0,1] represents a random vector.
By iteratively adjusting the positions, GWO imitates the smart cooperative chasing strategies of grey wolves to efficiently achieve an optimum or near-optimum solution.
Figure 6 shows the description of the GWO methods.
The main parameters of the GWO algorithm are population size and iterations. In order to ensure a fair comparison with HHO, the population sizes of 30 and 100 iterations have been implemented. They were determined from initial simulations and are consistent with [
31,
32]. In GWO, the control parameters ‘a’ were linearly reduced between 2 and 0, in line with the original wording, and no adjustment was required.
2.5. Harris Hawks Optimization Methods
The HHO algorithm is a population-based metaheuristic introduced by Heidari et al. [
32] in 2019, based on the collaborative Harris’s hawk hunting strategy. These raptors display an intelligent and adaptable hunting behavior, often encircling and engaging their prey in a coordinated fashion. HHO mathematically models this dynamic behavior to solve complex optimization problems with high accuracy and robust convergence.
This algorithm provides a simulation of the exploratory and exploitative phases, depending on the prey’s energy and escape patterns. During the search phase, the falcons carry out a systematic random search for the prey in the solution space to keep the population diverse. When the target has been found, they enter the exploitation phase, where different strategies, such as gentle besieging, hard besieging, and fast diving, are used depending on the prey’s energy of escape. The phase transition is controlled by the prey’s escape energy (E), which can be described in [
32]:
where
E0 represents the prey’s starting energy (a random number within [−1,1]),
t represents the current iteration,
T represents the maximum iteration number.
The hawks are updating positions using a variety of different strategies according to both the value of E and a random probability r ∈ [0,1]:
Soft seat (|E| ≥ 0.5 and r ≥ 0.5) [
15]:
Hard besiege (|E| < 0.5 and r ≥ 0.5) [
15]:
Soft seat with progressive fast dives (|E| ≥ 0.5 and r < 0.5) [
15]:
Hard seat with dips (|E| < 0.5 and r < 0.5) [
15]:
Xt+1 represents the current position,
Xprey stands for the optimal solution found (prey),
ΔXt is the difference between the prey and the falcon,
J is a random jump force,
LF(D) represents Lévy’s flight component.
The HHO algorithm’s main parameters comprise the size of a population and the number of iterations. For this study, the population values of 30 and 100 iterations were used. The values were selected according to the standard procedures detailed in [
15] and after some tests, which demonstrated a reasonably good convergence performance at an attractive computation rate. The exhaust energy and the random coefficients in HHO are based on the definitions given in [
32] and are unchanged.
4. Conclusions
This study concentrated on the optimum sizing of a hybrid energy system that combined solar–PV, WT, DG, and storage batteries to supply an isolated rural community. Three approaches were used: HOMER Pro V 3.14.2 and two bio-inspired artificial intelligence approaches, namely, Grey Wolf Optimizer (GWO) and Harris Hawks Optimization (HHO). The main results of this study are as follows:
The GWO and HHO approaches both achieved optimum systems configurations with a cost of energy (COE) of between USD 0.268 and USD 0.276/kWh.
The loss of power supply probability (LPSP) was less than 1%, providing a reliable power system.
Based on the solution, the smart methods resulted in a more cost-effective system, while the HOMER configuration achieved a COE of USD 0.298/kWh under more conservative battery capacity.
Computational intelligence strategies are efficient for hybrid system design in remote regions.
Further research may consider the incorporation of alternative renewables and advanced energy management strategies to improve the system’s overall performance and flexibility in various environments.
This study concentrated on the optimum dimensioning of a hybrid energy system that combined solar–PV, WT, DG, and storage batteries to supply an isolated rural site. Three approaches were used: simulation with HOMER Pro V 3.14.2 and two bio-inspired artificial intelligence approaches, specifically Grey Wolf Optimizer (GWO) and Harris Hawks Optimization (HHO).
The results indicated that both the GWO and HHO approaches resulted in optimal system configurations that achieved a COE in the range of USD 0.268 to USD 0.276/kWh and an LPSP below 1%, ensuring high system availability and reliability. In comparison, with the HOMER method, a more conservative battery capacity configuration resulted in a COE of USD 0.298/kWh.
Our results demonstrate the value of computational intelligence approaches for designing suitable hybrid systems for remote sites. In the future, incorporating based on dynamic loading patterns, real-time optimization, and the cross-utilization between algorithms is a promising avenue for continuously improving the energy and financial efficiency of stand-alone systems.