Analysis of Hybrid Grid-Connected Renewable Power Generation for Sustainable Electricity Supply in Sierra Leone

: The provision of electricity in a reliable and sustainable manner in provincial towns and villages in the small West Africa state of Sierra Leone requires the adoption of appropriate technologies. The rapid increase in electricity demand has generated great interest in how to tackle a possible long-lasting energy deﬁciency in the country. This paper aims at analyzing the techno-economic feasibility of a hybrid renewable energy system (HRES) for the sustainable rural electriﬁcation of Lungi Town, Port Loko District, Sierra Leone. Optimization, economic, reliability, and sustainability analyses were carried out using a genetic algorithm (GA), with the main objectives of minimizing the loss of power supply probability (LPSP) and cost of energy (COE). Three different case scenarios were conﬁgured, using a diesel generator (DG), wind/PV/DG/battery, and wind/PV/battery. Various combinations of these case scenarios were compared to determine which option was the most economically viable. In order to determine the case scenario with the lowest LPSP and COE, the operations and maintenance costs of the three cases were calculated. Using only DG for case one, the operations and maintenance cost amounted to USD 1050,348.12/year. The operation and maintenance cost for case two, which included wind/PV/DG/battery, was found to be USD 561,674.06/year. The operations and maintenance cost for case three, which included wind/PV/battery, was found to be USD 36,000/year. In standalone microgrids, however, the use of renewable energy sources is not reliable due to the uncertainty of renewable energy sources. Consequently, the simulation results show that the wind/PV/DG/battery-based HRES is the most cost-effective, reliable, and sustainable for the speciﬁc location in comparison to the current traditional method of electricity generation. HRES can be applied in most rural and remote areas in place of the current diesel generators (DGs) that are widely deployed in the country. the solar PV plants. However, from Figure 9, we can see that there is a high amount of wind power from 12:00 p.m. to 2:00 a.m. and moderate wind power from 2:00 a.m. to 11:00 p.m. Due to this variation in these technologies, the system incorporates BESS and DG. In this study, solar and wind data were obtained from the meteorological department and SSL [50,51].


Introduction
The goal of clean, reliable, affordable, and sustainable electricity access has been Africa's top priority in order to acquire economic growth and health security and improve the livelihoods of its citizens [1,2]. Close to 1 billion of the world's population are said to live without electricity, and Africa and South Asia continue to display the largest deficit [3]. It is estimated that over 600 million Africans lack access to electricity and millions more are connected to an unreliable grid that does not meet their daily energy Sustainability 2021, 13,11435 3 of 20 and renewable energy and the possibility of extension of the main grid into remote areas. An assessment of wind power generation along the coast of Ghana was given by Adaramola et al. [19]. The work focuses on the economic viability of using a wind turbine for electricity generation in the selected regions along the coastal region of Ghana. An assessment of renewable energy expansion potential and its implications on reforming Japan's electricity system was given by Wakiyama et al. [20]. The maximum use of renewable energy for electricity generation and reduced carbon dioxide (CO 2 ) emissions, given the nationally determined contribution (NDC) mitigation target, and the 2 • C rise limit target in Japan's electricity sector was assessed. The authors examined the feasible CO 2 emission intensity by 2030 under the current electricity system of limited transmission network capacity, as well as the government's plans for electricity market reform towards 2020. Krishan et al. presented a techno-economic analysis and optimum design of an HRES, to meet the residential and agricultural electric load requirements of the energy-poor community of Yamunanagar District in the State of Haryana, India [21].
The authors compared wind/battery, PV/battery, and wind/PV/battery with respect to the net present cost (NPC) and cost of energy (COE) to determine the most economically viable option. Simulation results indicated that the wind/PV/battery-based HRES was the most cost-effective configuration for the specific location. Gebrehiwot et al. assessed the potential of a hybrid system to electrify a remote rural village in Ethiopia [22]. A sensitivity analysis was carried out by the authors to determine the effect of variations in solar radiation, wind speed, and diesel price on optimal system configurations, and results show that a hybrid system with a combination of a photovoltaic array, wind turbine, battery, and diesel generator is the best option from an economic point of view. Ma et al. presented a feasibility study of a stand-alone hybrid solar-wind-battery system for a remote island in Hong Kong [23]. The authors performed sensitivity analysis on its load consumption and renewable energy resources to evaluate the robustness of the economic analysis and identify which variable had the greatest impact on the results. Results presented in the work demonstrate the techno-economic feasibility of implementing the solar-wind-battery system to supply power in the island.
However, most of the authors above focused mainly on optimum sizing, economic analysis, and the management point of view between different components in HRES. Little or no attention is focused on the sustainability and reliability of the HRES. Therefore, this paper looked at the technical and economic analysis of the HRES as well as the reliability and sustainability of the HRES. The work is organized as follows; the methodology and current status of Sierra Leone's energy sector is presented in Section 2. HRES description and component modeling is illustrated in Section 3. Operational strategies and economic analysis are discussed in Section 4. Results and discussions are presented in Section 5, followed by the conclusions in Section 6.

Methodology
MATLAB software, which is a programming and numeric computing platform used by millions of engineers and scientists to analyze data, develop algorithms, and create models, was used in this study. The algorithm used for analyzing the data in this work was the genetic algorithm (GA). GA is an adaptive heuristic search algorithm that belongs to the larger group of evolutionary algorithms.
GA is an advanced search method and optimization technique that utilizes the process of natural selection, where each individual has some genes that change continuously to adapt to its environment through a selection process. Several processes are involved to obtain the new population, which include the selection process called parent search using the roulette wheel, crossover, and mutation process. The algorithm is based on an analogy with the genetic structure and behavior of chromosomes in the population. At each step, GA will select individuals at random from the current population to be parents and use them to produce the children for the next generation. Over successive generations, the population "evolves" toward an optimal solution. The individuals with better fitness scores are selected and will mate and produce better offspring by combining the chromosomes of parents. Once the offspring produced have no significant difference from offspring produced by previous populations, the population converges.
The algorithm is said to converge to a set of solutions for the problem [24].

Current Energy Scenario in Sierra Leone
Sierra Leone is located on the west coast of Africa, with a total area of 71,740 km 2 and a GDP of USD 4.10 billion. The country's state-owned installed generation capacity stands at 116.81 MW for a population of 7,534,981 [25]. The country is burdened with a complex and persistent energy shortage. This complex situation prompted the government of Sierra Leone in 2018 to sign a 5-year contract with a floating Turkish power ship (Karadeniz powership) for the supply of electricity to the capital city, Freetown. The country's source of energy from 2015 to 2020 is illustrated in Figure 1. From 2015 to 2017, hydropower plants accounted for the majority of electricity production. them to produce the children for the next generation. Over successive generations population "evolves" toward an optimal solution. The individuals with better fi scores are selected and will mate and produce better offspring by combining the chr somes of parents. Once the offspring produced have no significant difference from spring produced by previous populations, the population converges.
The algorithm is said to converge to a set of solutions for the problem [24].

Current Energy Scenario in Sierra Leone
Sierra Leone is located on the west coast of Africa, with a total area of 71,740 km a GDP of USD 4.10 billion. The country's state-owned installed generation capacity st at 116.81 MW for a population of 7,534,981 [25]. The country is burdened with a com and persistent energy shortage. This complex situation prompted the government erra Leone in 2018 to sign a 5-year contract with a floating Turkish power ship (Karad powership) for the supply of electricity to the capital city, Freetown. The country's so of energy from 2015 to 2020 is illustrated in Figure 1. From 2015 to 2017, hydrop plants accounted for the majority of electricity production. Due to low water levels in the dams, electricity production from hydropower p is greatly reduced during the dry season. Moreover, during the dry season, some m hydroelectric plants connected to runoff rivers cease to function. In 2018, a floating that generates electricity was brought in to supplement the power deficit during th season.
The country is home to huge deposits of RES, such as wind, solar, biomass, hy etc., but approximately only 16% of the country's population have access to electrici In order to increase access to electricity, the government has drawn an Energy S Development Plan (National Energy Strategic Plan 2010-2025), which aims at increa electricity generation from 16% to 60% by 2023 and also aims to catch up with UNS [26]. In this context, the government of Sierra Leone has commenced transmission distribution network activities for the electrification of seven major districts' headqu towns by the end of 2022. The current percentage of electrification by district is show Figure 2. Freetown, the capital city, is situated in the western urban area and has a ra approximately 82% electrification. The western rural area has approximately 25%, B bali has approximately 26%, Bo has approximately 18%, Kenema has approximately Due to low water levels in the dams, electricity production from hydropower plants is greatly reduced during the dry season. Moreover, during the dry season, some minihydroelectric plants connected to runoff rivers cease to function. In 2018, a floating ship that generates electricity was brought in to supplement the power deficit during the dry season.
The country is home to huge deposits of RES, such as wind, solar, biomass, hydro, etc., but approximately only 16% of the country's population have access to electricity.
In order to increase access to electricity, the government has drawn an Energy Sector Development Plan (National Energy Strategic Plan 2010-2025), which aims at increasing electricity generation from 16% to 60% by 2023 and also aims to catch up with UNSDG 7 [26]. In this context, the government of Sierra Leone has commenced transmission and distribution network activities for the electrification of seven major districts' headquarter towns by the end of 2022. The current percentage of electrification by district is shown in Figure 2. Freetown, the capital city, is situated in the western urban area and has a rate of approximately 82% electrification.  Currently, the country's transmission lines consist of the existing 161 kV runs from the Bumbuna hydroelectric dam to the capital city, Freetown, and th CLSG line. The CLSG project aims at increasing access to modern electricity in countries, which is fundamental to the socio-economic development and living st of citizens [27,28]. The country's projected demand for both the residential and sectors based on two scenarios (base scenario and low growth scenario) from 202 is presented in Table 1. In a bid to strengthen the energy sector, the National Po thority (NPA), which was the entity responsible for the generation, transmission, tribution of electricity in the country, through an act of parliament, was divided separate entities: the Electricity Generation and Transmission Company (EGTC) Electricity Distribution and Supply Authority (EDSA). EGTC's mandate is to gene transmit electricity, while EDSA is responsible for the distribution of electricity to ious customers.

Study Area
Lungi is located in the northern part of Sierra Leone. The town is best kn being home to the country's international airport. The region has a subtropica that is characterized by two seasons: the rainy season, which runs from May to and the dry season, which runs from November to April. The town operates on a mini-grid with three fuel oil thermal plants of 2000 kW each for the supply of e to the township. However, due to the high running costs of these plants and the distribution network, only one fuel oil thermal plant is operated at a time. More t of the population in the township use kerosene, candles, and Chinese battery-p lamps as their sources of electricity. Currently, the country's transmission lines consist of the existing 161 kV line that runs from the Bumbuna hydroelectric dam to the capital city, Freetown, and the 225 kV CLSG line. The CLSG project aims at increasing access to modern electricity in member countries, which is fundamental to the socio-economic development and living standards of citizens [27,28]. The country's projected demand for both the residential and mining sectors based on two scenarios (base scenario and low growth scenario) from 2020 to 2030 is presented in Table 1. In a bid to strengthen the energy sector, the National Power Authority (NPA), which was the entity responsible for the generation, transmission, and distribution of electricity in the country, through an act of parliament, was divided into two separate entities: the Electricity Generation and Transmission Company (EGTC) and the Electricity Distribution and Supply Authority (EDSA). EGTC's mandate is to generate and transmit electricity, while EDSA is responsible for the distribution of electricity to the various customers.

Study Area
Lungi is located in the northern part of Sierra Leone. The town is best known for being home to the country's international airport. The region has a subtropical climate that is characterized by two seasons: the rainy season, which runs from May to October, and the dry season, which runs from November to April. The town operates on an island mini-grid with three fuel oil thermal plants of 2000 kW each for the supply of electricity to the township. However, due to the high running costs of these plants and the limited distribution network, only one fuel oil thermal plant is operated at a time. More than half of the population in the township use kerosene, candles, and Chinese battery-powered lamps as their sources of electricity.

Demand Assessment
In 2015, the government of Sierra Leone, with support from the World Bank, sought the services of a consultancy company (NRECA International Ltd., Arlington, VA, USA) for the development of a detailed demand and transmission and distribution system investment plan for the Greater Freetown area for the period 2015 to 2030 [29]. The plan defines the work needed to serve the current and future demand and population growth for Lungi town. Although Lungi operates on island mode, less than half of the town's population and business centers are connected to the grid. The demand for both connected and non-connected places is illustrated in Tables 2 and 3, respectively. For connected places, the demand curve with respect to the activities of the citizens for a period of one week is illustrated in Figure 3. Figure 3 shows that evening demand peaks around 5:00 p.m. to 9:00 p.m., after citizens have returned home from work. Around 6:00 a.m. to 9:00 a.m., when most citizens are getting ready for work, demand is also high. After citizens have gone to work and switched off all electrical appliances at home in the afternoon, demand drops. From the investment plan, the demand and population growth for Lungi for the period 2015 to 2030 is illustrated in Table 4. A construction project to extend the airport is scheduled to begin shortly. As a result, demand for the airport is expected to rise significantly.     Additionally, both domestic and commercial demand will increase by 2025 due to a rapid increase in population. However, the government is still struggling to implement the recommendations from the investment plan due to financial constraints.

Renewable Energy Resources in Sierra Leone
RES is clean, efficient, and reliable and it is expected to address global challenges such as climate change, energy security, and greenhouse gas emissions [30,31]. Research carried out in recent years indicates that Sierra Leone's renewable energy potentials countrywide include, but are not limited to, hydro-power (2000 MW), solar radiation (2200 Kwh/m 2 /year) (Joint Research Centre (JRC) of the European commission), and wind speed (3-7 m/s). Further studies also reveal that there is potential for wind speeds of 12 m/s in the northern part of the country. These studies indicate the country's huge solar and wind power potential.

Solar PV
Sierra Leone is located under the Sunbelt, which is rich in solar potential [31]. Research conducted by the Ministry of Energy indicates that the country's solar radiation is approximated at 1460 kWh/m 2 /year. Lungi enjoys relatively extensive amounts of sunshine throughout the year. The location has direct normal irradiation of 1167 kWh/m 2 /year, diffuse horizontal irradiation of 1004 kWh/m 2 /year, an air temperature of 26.4 • C, terrain elevation of 19 m, and solar radiation ranging from 5.70 kWh/m 2 /day to 6.67 kWh/m 2 /day, as illustrated in Figure 4. The study area has a high amount of solar radiation from October to May. We can also see that there is a substantial amount of solar radiation during the other months. This indicates that the area is suitable for solar PV installation.
Sustainability 2021, 13, 11435 FOR PEER REVIEW 8 Figure 4. This shows the average monthly solar radiation for the study area.

Wind Power
Wind power energy has attracted a great deal of interest in recent years becau its environmental and economic benefits [32,33]. Wind power energy use has sprea almost every corner of the planet [34]. West Africa is considered to have the greatest w potential due to its wind speeds [35]. Research on wind energy in Sierra Leone is stil very low pace. Data on wind speeds for the study area indicate an average of 3-5

Wind Power
Wind power energy has attracted a great deal of interest in recent years because of its environmental and economic benefits [32,33]. Wind power energy use has spread to almost every corner of the planet [34]. West Africa is considered to have the greatest wind potential due to its wind speeds [35]. Research on wind energy in Sierra Leone is still at a very low pace. Data on wind speeds for the study area indicate an average of 3-5 m/s. However, there is great potential for wind energy in Lungi due to the availability of wind turbines that can now be operated at low wind speeds.

Hydropower
Hydropower is a major energy source, holding great promise for Sierra Leone, which possesses several rivers that could be exploited for electricity [36,37]. According to the power sector master plan of Sierra Leone, the country's hydroelectric power potential is estimated to be approximately 2000 MW [38,39]. These are mainly concentrated in the northern and eastern parts of the country. Currently, the country has five mini hydroelectric power stations ranging from 120 kW to 50 MW. Lungi is around 60 km from the headquarter town of Port Loko, which has a mini-hydro station of 2000 kW capacity. The hydro station is supposed to provide electricity to the township; however, due to the limited network, only a fraction of the population has access to electricity on a seasonal basis since the dam dries up during the dry season.

HRES Description and Component Modeling
The proposed hybrid system is composed of a solar PV, wind turbine, diesel engine, and battery storage system, as indicated in Figure 5. This study comprises renewables such as solar and wind and non-renewables such as diesel generators. Since renewable sources are uncertain, a battery energy storage system (BESS) is included. This MG structure will be built with an MPPT and a bidirectional converter for the BESS. By doing so, the BESS will be able to be charged and discharged as needed.

Wind Turbine Modeling
Wind turbines are classified into horizontal and vertical axes. The power produced by wind turbines is said to depend on the interaction between the wind turbine rotor and the wind [40]. The horizontal axis type is said to produce higher wind energy conversion efficiency [41], compared to the vertical axis type. Wind turbine power output is calculated in Equation (1) [42].

Wind Turbine Modeling
Wind turbines are classified into horizontal and vertical axes. The power produced by wind turbines is said to depend on the interaction between the wind turbine rotor and the wind [40]. The horizontal axis type is said to produce higher wind energy conversion Sustainability 2021, 13, 11435 9 of 20 efficiency [41], compared to the vertical axis type. Wind turbine power output is calculated in Equation (1) [42].
P WT is the power output of the wind turbine, P r is the rated wind power, V is the wind speed, and V ci , V r , and Vco represent the cut-in wind speed, rated wind speed, and cut-out wind speed, respectively.

PV Array Modeling
Due to the decline in the cost of PV technology [43], a rapid increase in PV industries was seen in recent years. A PV panel contains multiple PV cells connected in series and parallel [44]. These PV cells compute the output power of each panel according to their solar radiation and temperature [45]. Equation (2) [42] illustrates the mathematical equations that symbolize the principal power output of a PV panel.
P PV represents the power output of the PV, PV STC represents the nominal power in kW, G is the global solar radiation in kW/m 2 , G ref represents the solar radiation under STC (1000/m 2 ), T C is the temperature of the PV cell, , and T a is the surrounding temperature.

Battery Modeling
Various types of batteries, such as lead-acid, lithium-ion, nickel-cadmium, sodiumsulfur, etc., are used in renewable power systems. These batteries store excess energy from renewable sources and discharge to load centers when there is insufficient power from renewable sources. Lead-acid batteries are widely used in renewable power generation as a result of their low cost. The available capacity of the battery calculated in Equation (3) [42] depends upon the rate at which it is discharged. For this study, the charge and discharge rate of the battery is taken to be at 80% and 20%, respectively, as illustrated in Figure 6.
where C B is the battery capacity, E L is the load demand, AD is the battery autonomous days, DOD represents the depth of discharge, and η bat is the efficiency of the battery, while η inv is the efficiency of the inverter. Various types of batteries, such as lead-acid, lithium-ion, nickel-cadmium, sodiumsulfur, etc., are used in renewable power systems. These batteries store excess energy from renewable sources and discharge to load centers when there is insufficient power from renewable sources. Lead-acid batteries are widely used in renewable power generation as a result of their low cost. The available capacity of the battery calculated in Equation (3) [42] depends upon the rate at which it is discharged. For this study, the charge and discharge rate of the battery is taken to be at 80% and 20%, respectively, as illustrated in Figure 6.
where CB is the battery capacity, EL is the load demand, AD is the battery autonomous days, DOD represents the depth of discharge, and ηbat is the efficiency of the battery, while ηinv is the efficiency of the inverter.

Diesel Generator (DG) Modeling
The current study location is host to three MAN dual fuel systems (heavy fuel and diesel fuel) of 2000 kW each. The capital cost for the diesel engines, which includes the acquisition, is calculated through a national bidding process. The estimated cost of each

Diesel Generator (DG) Modeling
The current study location is host to three MAN dual fuel systems (heavy fuel and diesel fuel) of 2000 kW each. The capital cost for the diesel engines, which includes the acquisition, is calculated through a national bidding process. The estimated cost of each DG is USD 2.50 million. The yearly O&M cost per MAN engine is estimated as USD 655,610.62 and the current fuel price is USD 0.94/L. The minimum and maximum load ratios are set at 25 and 75%, respectively. The fuel consumption, which depends on the output power of the diesel generator, is calculated in Equation (4) [46,47].
where P Gr and P Go are the rated and output power of the diesel generators, respectively, and α and β are the coefficients of the consumption curve. The hourly fuel cost consumed by the generators is defined in Equation (5) [48].
where P d is the cost fuel per litre.

Operational Strategies and Economic Analysis
Sustainable and reliable electricity can be supplied with robust operational strategies. Considering the uncertainty of renewable energy, the status of the diesel engine with its O&M cost, and the cost of fuel, three operational strategies are involved. Case one is when DG is used to supply electricity only, as analyzed in Equation (6) [42]. Case two is when renewable energy, a diesel generator, and a battery are used to supply electricity, as illustrated in Equation (7). The third stage is when renewable energy and a battery are used to supply electricity, as shown in Equation (9).
where ∆ Enet (t) is the net energy of the hybrid energy systems, E RE is the energy generated from renewables, E WT is the energy generated by the wind turbines, E PV is the energy generated by the PV panels, P G is the generated power from the diesel engines, E L is the load demand, and BESS is the battery energy storage system. Figure 7 demonstrates the operational strategy of the flow of energy at each time step. From the diagram, the process begins when the power produced from renewable sources is equal to the required load demand. In that case, the batteries will remain in their current state. However, in a situation where the power produced by renewable sources is more than the demand, excess power will be used to charge the batteries if they are not fully charged. During this period, the diesel generator will be in standby mode. The next operation strategy is activated when the power produced by renewable sources is not sufficient to meet the demand. Then, the battery will discharge power to compensate for the deficit until it reaches its minimum depth of discharge. The diesel generators will then operate to cover the power shortage in renewables and to charge the battery.
state. However, in a situation where the power produced by renewable sources is more than the demand, excess power will be used to charge the batteries if they are not fully charged. During this period, the diesel generator will be in standby mode. The next operation strategy is activated when the power produced by renewable sources is not sufficient to meet the demand. Then, the battery will discharge power to compensate for the deficit until it reaches its minimum depth of discharge. The diesel generators will then operate to cover the power shortage in renewables and to charge the battery.

System Reliability Analysis
This study implements a multi-objective optimization technique in order to minimize the loss of power supply probability (LPSP) as well as the cost of energy (COE) production. In determining the system's reliability and sustainability, this work examines three

System Reliability Analysis
This study implements a multi-objective optimization technique in order to minimize the loss of power supply probability (LPSP) as well as the cost of energy (COE) production. In determining the system's reliability and sustainability, this work examines three case scenarios: the first is when the micro-grid is operating on DG only; the second is a hybrid PV/wind/DG/battery, and the third is PV/wind/battery. The algorithm utilized in determining system reliability is the genetic algorithm (GA). The uncertainty of PV and wind energy is a major drawback. Therefore, accessing the LPSP is very much critical. Two methods are normally used in determining LPSP (probabilistic and chronological methods). The probabilistic method is considered to be one of the standard techniques normally used in evaluating the reliability of power systems [48,49]. However, even though the probabilistic method is a mature tool with high performance, it entails substantial modeling effort with a high computational burden. Meanwhile, the chronological method is able to retain much chronological information and can capture proper time-scale relationships between the load and renewable sources with a lower computational burden. Another advantage of the chronological method is the use of average values that integrate the complete behavior of these renewable sources to account for their contributions to the grid power availability. It is against this background that we decided to use the chronological method in this work. LPSP is defined as the time duration within which a utility could not meet its load, as a result of either a planned or unplanned outage of any conventional generating unit. LPSP is mathematically represented in Equation (10) [42]:

Economic Analysis
The technology used in generating electricity can significantly determine its cost, and this cost can occur relative to the manner in which this power is consumed. Table 5 illustrates the components' costs, which includes capital, O&M, and replacement and their specifications. Determining the cost of energy is one of the benchmarks of the economic profitability of hybrid renewable energy systems. COE can be defined as the cost of energy generated per kW and it is mathematically represented in Equation (11) [42].
where CRF is the capital recovery factor, and it is represented as stated in Equation (12) [42].
where i is the interest rate, which is taken as 5%, and T is the total lifespan of the project and it is to be 25 years. TAC is the total annualized cost and it is mathematically represented in Equation (13) [42].
where C PV is the PV unit price for the PV panel, C WT is the unit price for the wind turbine, C b is the unit price for the battery, N B is the number of batteries, C INV is the unit price for the inverter, C reg_PV is the PV regulator price, C reg_WT is the wind turbine regulator price, and N INV is the number of inverters. The number of inverters is 4 and the estimated cost of the wind tower is 20% of the system capital cost. TAC includes the annualized capital cost (C C ) in Equation (14) [42], the operation and maintenance cost (C O&M ), and the replacement cost. C R is represented in Equations (15) and (16) [42].
where C RB is the replacement cost of the battery, C RINV is the replacement cost of the inverter, and P R_LF is the lifespan of the battery, inverter, and regulator. C R_reg_WT is the replacement cost of the wind turbine regulator, and C R_reg_PV is the replacement cost of the PV regulator. N reg_PV is the number of PV voltage regulators, N reg_WT is the number of wind turbine regulators, and SFF is the sinking factor and it is expressed in Equation (17) [42].
The COE for the diesel engine is calculated considering the cost of fuel consumed by the diesel generator (DG) and the maintenance cost. Fuel prices fluctuate and the current fuel price is taken into consideration. The town has three diesel generators of 2000 kW each (total of 6000 kW). Fuel oil is transported by fuel tankers ranging from 4000 to 40,000 L in capacity and transportation is carried out by the supplier.

Results and Discussion
With the current means of electricity generation through fuel oil thermal plants, Lungi is undergoing a serious electricity crisis. The only quick solution to this problem is the integration of renewable sources into the current mini-grid. In this work, optimization of hybrid PV/wind/diesel and battery was carried out based on PV and wind data collected for the study location. Power generated by PV and wind for a period of one week is shown in Figures 8 and 9, respectively. Although the country enjoys abundant sunshine during the dry season, the technical aspect regarding the uncertainty of these resources has been considered. Data from one week in February were collected and input into the program. Solar radiation during the dry season follows the same pattern. Sunrise is at 7:00 a.m. and sunset is at 7:00 p.m. During those hours, solar power is abundant. From 7:00 p.m. to 7:00 a.m., the region experiences zero power from the solar PV plants. However, from Figure 9, we can see that there is a high amount of wind power from 12:00 p.m. to 2:00 a.m. and moderate wind power from 2:00 a.m. to 11:00 p.m. Due to this variation in these technologies, the system incorporates BESS and DG. In this study, solar and wind data were obtained from the meteorological department and SSL [50,51].
Sustainability 2021, 13, 11435 FOR PEER REVIEW and moderate wind power from 2:00 AM to 11:00 PM. Due to this variation in th nologies, the system incorporates BESS and DG. In this study, solar and wind d obtained from the meteorological department and SSL [50,51].    The presented work looked at three cases, the first case being the use of fue plants as the only means of supplying electricity to the town, as illustrated in F Three DGs are coordinated in order to meet the current demand. This is done intention of minimizing costs and maximizing revenue. However, this is di achieve due to the high cost of operation and frequent breakdown of the DGs. Op data for one of the DGs for 2018 are shown in Table 6. Due to the constraints of pu fuel, the thermal plants are only operated for between 16 and 18 h instead of 24 ever, it can be observed from Table 6 that, despite the low consumption of fuel by from July to December, the O&M cost is higher compared to the previous month due to the increase in fuel prices within the world market. The price trend for b and HFO for the period 2015 to 2021 is shown in Figure 11. From 2015 to 2018, of DFO was higher than that of HFO. In this case, the cost of operation of these much better since the DGs utilized more HFO. However, the cost of operation DGs became extremely high when the cost of both DFO and HFO increased fr The second case looked at a hybrid of renewable sources, a battery and DG. In the DG was only active for a very short time when there was a shortfall in a renewable sources and to charge the battery when it was at its minimum SOC, in Figure 12. This proposed hybrid setup is expected to meet the current dem reliable and sustainable manner at minimum cost and maximize revenue. When erated power exceeds the demand during the day, excess power is used to ch battery. Moreover, when the generated power cannot meet the demand, then th will discharge. As indicated in Figure 12, the battery curve will be positive w charging, and it will be negative when it is discharging. The third case is that only renewable sources and BESS are utilized, as indicated in Figure 13. This case The presented work looked at three cases, the first case being the use of fuel thermal plants as the only means of supplying electricity to the town, as illustrated in Figure 10. Three DGs are coordinated in order to meet the current demand. This is done with the intention of minimizing costs and maximizing revenue. However, this is difficult to achieve due to the high cost of operation and frequent breakdown of the DGs. Operational data for one of the DGs for 2018 are shown in Table 6. Due to the constraints of purchasing fuel, the thermal plants are only operated for between 16 and 18 h instead of 24 h. However, it can be observed from Table 6 that, despite the low consumption of fuel by the DGs from July to December, the O&M cost is higher compared to the previous months. This is due to the increase in fuel prices within the world market. The price trend for both DFO and HFO for the period 2015 to 2021 is shown in Figure 11. From 2015 to 2018, the price of DFO was higher than that of HFO. In this case, the cost of operation of these DGs was much better since the DGs utilized more HFO. However, the cost of operation of these DGs became extremely high when the cost of both DFO and HFO increased from 2019. The second case looked at a hybrid of renewable sources, a battery and DG. In this case, the DG was only active for a very short time when there was a shortfall in any of the renewable sources and to charge the battery when it was at its minimum SOC, as shown in Figure 12. This proposed hybrid setup is expected to meet the current demand in a reliable and sustainable manner at minimum cost and maximize revenue. Whenever generated power exceeds the demand during the day, excess power is used to charge the battery. Moreover, when the generated power cannot meet the demand, then the battery will discharge. As indicated in Figure 12, the battery curve will be positive when it is charging, and it will be negative when it is discharging. The third case is that wherein only renewable sources and BESS are utilized, as indicated in Figure 13. This case is active during the dry season from October to April, when the areas enjoy a high amount of sunshine and high wind speeds. During this period, the DGs serve as standby for any uncertainty that may occur on the RES. Data for the month of February, in which the town experiences enough sunlight and substantial wind speeds, were used in this work.

Optimization Results
The optimal sizing solution obtained is categorized into three sets of configurations, as explained in the previous section. This is shown in Table 7. The use of RES alone could not guarantee reliable and sustainable electricity in the region due to its seasonal variation. However, the introduction of these RES into the current traditional method of generating electricity through fuel oil thermal plants greatly reduces the cost of O&M of these fuel oil plants and the loss of power supply probability, as can be seen in Table 7. Taking a closer look at the table reveals a reduction in the O&M cost in the second and third cases, while the result in the first case significantly exceeds them. From an economic point of view, O&M costs for the second and third cases at 0% LPSP are USD 561,674.06/year and USD 36,000/year, respectively. For the first case, the O&M cost increases significantly to USD 1,050,348.12/year. Currently, the selling price of electricity in Sierra Leone is USD 0.853/kWh, but this is expected to increase within the shortest possible time if the town continues to obtain its electricity supply through DGs. However, with the introduction of RES, the selling price will remain the same or further reduce due to the decrease in O&M cost. For system reliability and sustainability, the third case is not seen as the best solution due to the uncertainty of RES. As a result, the second case is considered to be the most viable option for guaranteeing electricity supply in the study area at the minimum cost and at zero percent LSP. during the dry season from October to April, when the areas enjoy a high amount of sun shine and high wind speeds. During this period, the DGs serve as standby for any uncer tainty that may occur on the RES. Data for the month of February, in which the tow experiences enough sunlight and substantial wind speeds, were used in this work.     during the dry season from October to April, when the areas enjoy a high amount o shine and high wind speeds. During this period, the DGs serve as standby for any u tainty that may occur on the RES. Data for the month of February, in which the experiences enough sunlight and substantial wind speeds, were used in this work.

Optimization Results
The optimal sizing solution obtained is categorized into three sets of configu as explained in the previous section. This is shown in Table 7. The use of RES alo not guarantee reliable and sustainable electricity in the region due to its season tion. However, the introduction of these RES into the current traditional method erating electricity through fuel oil thermal plants greatly reduces the cost of O&M fuel oil plants and the loss of power supply probability, as can be seen in Table 7 a closer look at the table reveals a reduction in the O&M cost in the second and thi while the result in the first case significantly exceeds them. From an economic view, O&M costs for the second and third cases at 0% LPSP are USD 561,674.06/ USD 36,000/year, respectively. For the first case, the O&M cost increases signifi USD 1,050,348.12/year. Currently, the selling price of electricity in Sierra Leone 0.853/kWh, but this is expected to increase within the shortest possible time if t continues to obtain its electricity supply through DGs. However, with the introd RES, the selling price will remain the same or further reduce due to the decrease

Optimization Results
The optimal sizing solution obtained is categorized into three sets of configu as explained in the previous section. This is shown in Table 7. The use of RES alo not guarantee reliable and sustainable electricity in the region due to its season tion. However, the introduction of these RES into the current traditional method erating electricity through fuel oil thermal plants greatly reduces the cost of O&M fuel oil plants and the loss of power supply probability, as can be seen in Table 7 a closer look at the table reveals a reduction in the O&M cost in the second and thi while the result in the first case significantly exceeds them. From an economic view, O&M costs for the second and third cases at 0% LPSP are USD 561,674.06/ USD 36,000/year, respectively. For the first case, the O&M cost increases signifi USD 1,050,348.12/year. Currently, the selling price of electricity in Sierra Leone 0.853/kWh, but this is expected to increase within the shortest possible time if t continues to obtain its electricity supply through DGs. However, with the introd RES, the selling price will remain the same or further reduce due to the decrease Due to distribution network constraints, only one diesel generator is utilized at a time. Therefore, the O& M presented in Table 7 represents one diesel generator. Since the current demand for connected areas is approximately 1900 kW, this means that the thermal plants are operated on an alternative basis since they are three in number, with an output capacity of 2000 kW each. This creates approximately 66.6% surplus power taking into consideration all three units. At any point of the day or night wherein the MG experiences a slight reduction in any of the renewable sources, the battery will discharge power to compensate for the deficit. However, the battery has a minimum discharge rate. Upon approaching its minimum discharge rate, the DG will be switched on to recharge the battery and also to supply the remaining power needed to the grid, as indicated in Figure 12. Whenever power produced by renewable sources exceeds demand, the excess power will be used to charge the batteries. Moreover, when renewable sources cannot meet the demand, the batteries discharge, as illustrated in Figure 13. The installed capacities for both PV solar and wind turbine energy are indicated in Table 7. The goal here is to utilize more RES to minimize COE and LPSP. The current load demand for the study area is estimated to be 1900 kW. With the proposed capacity of PV solar and wind turbine energies, the demand is expected to be met. Due to distribution network limitations, the area has many unserved communities. In spite of this, with the high amount of renewable energy in the study area, more solar PV and wind turbines are expected to be installed as more communities are connected to the MG. The current model uses DGs as a backup to ensure that the load is always met, even during periods of low sunshine or low wind speed. Based on the optimization results, as summarized in Table 7, it is realized that PV/wind/DG/battery is the best hybrid system for reliable and sustainable power supply in Lungi. This system has also been proven to be more cost-effective than the DG system.

Conclusions
This work presents a techno-economic analysis of HRES for the supply of reliable and sustainable electricity in Lungi, Sierra Leone, under the prevalent solar and wind conditions. The work designs a hybrid PV/wind/DG/battery system to provide electricity in the study area. A genetic algorithm was used to carry out the optimization process.
Two objective functions are considered, which include the minimization of the cost of energy (COE) and loss of power supply probability (LPSP). The paper proposes three case scenarios to solve the optimization problem. The first case considers the utilization of DGs only, as in the current MG. The second case looks at a hybrid PV/wind/DG/battery system, while the third case considers a hybrid PV/wind/battery system.
Based on the analysis, the O&M cost for case one is USD 1,050,348.12/year. For cases two and three, the O&M cost is USD 561,674.06/year and USD 36,000/year, respectively. Case three, which includes PV/wind/battery, could be an attractive option from an economic standpoint.
As a result of the uncertainty surrounding RES, case two, PV/wind/DG/battery, will provide electricity for the town of Lungi with minimal LPSP and COE. Since the country is blessed with abundant RES (solar, hydro, and wind), this model can be used to electrify other semi-urban and rural communities. Looking at the current constraints in supplying electricity in Lungi through the use of DGs, this work, therefore, recommends a hybrid PV/wind/DG and battery system for future semi-urban and rural electrification projects in Sierra Leone.