Investigation of a reliable and sustainable stand-alone hybrid energy system for freshwater supply: a case study

ABSTRACT Hybrid renewable energy system-based reverse osmosis desalination has been identified as a reliable and sustainable solution for supplying potable water to the off-grid communities. In this respect, this study proposes a stand-alone hybrid energy system comprising solar PV, wind turbine, diesel generator, and a battery bank to power a reverse osmosis desalination plant. The proposed hybrid system is optimised using a novel metaheuristic optimisation technique named salp swarm algorithm (SSA) to minimise the three objective functions: levelised cost of energy (LCOE, $/kWh), life cycle emissions (LCE, CO2 kg-eq/yr.), and the excess energy (EE, kWh/yr.). Moreover, the performance of the novel algorithm is scrutinised using the benchmark solutions achieved from the widely utilised non-dominated sorting genetic algorithm II (NSGA-II) and particle swarm optimisation (PSO) techniques. In addition, the study also investigates the effects of water demand and the loss of power supply probability on the techno-economic performance. The results reveal that SSA outperforms NSGA-II and PSO algorithms towards achieving Pareto optimality hence provides financially rewarding solutions. The LCOE for the optimal HES is 0.179 $/kWh, and the LCE is 5921 CO2 kg-eq/yr. with an EE of 402 kWh/yr., whereas the cost of water for this system is 1.37 $/m3.


Introduction
Freshwater is a biological necessity for human wellbeing (Feizizadeh et al. 2021) since drinking contaminated water causes health hazards to the human body.Although 71% of the world is covered in water, only 2.5% is safe and potable (Dinka 2018).Every year, more than 3.4 million people die from waterborne diseases, making it one of the leading causes of illness and death worldwide (Organization 2017).However, freshwater supply is limited, and their sources are increasingly threatened due to population growth and industrial development (Hajibabaei, Nazif, and Sereshgi 2018).Furthermore, global climate change influences the freshwater resources and causes water shortage due to the drying up of lakes, rivers, or streams (Makkeh et al. 2020;Balogun et al. 2020).The scarcity of freshwater increasingly affects the global economy, environment and even creates conflicts amongst countries and regions.According to the World Wildlife Fund (WWF), around 1.1 billion people worldwide have no access to safe, clean drinking water, and 2.7 billion faces water scarcity for at least one month per annum (Abdusamatov 2012).Moreover, global water demand is expected to increase by 20-30% by 2050 (Boretti and Rosa 2019).In contrast, water scarcity will continue to spread in areas due to the depletion of freshwater resources.
The global energy demand is ever-escalating due to population, economic and technological growth.The current energy sector extensively depends on fossil fuels, which negatively impacts our environment by contributing significantly to carbon emissions and subsequent global climate change (Yuan et al. 2020;Das et al. 2021e).The shifting of the conventional fossil fuel system to renewable-based cleaner energy will certainly mitigate global climate change (Abu-Rayash and Dincer 2021).Desalination processes based on the conventional fossil fuels cause CO 2 emissions and, consequently, have detrimental effects on the environment in addition to the extra expenses (Sharif et al. 2020).A review on the hybrid energy application for developing countries suggests that the diesel option has a higher cost than the hybrid system and the hybrid renewable option is quicker to install than the grid extension (Zebra et al. 2021).Therefore, renewable energy-driven desalination processes would be a potential alternative method for producing fresh water and overcoming the global water crisis (Santosh et al. 2019).The recent technological development promotes solar and wind technologies extensively for stand-alone energy system (Fathollahzadeh et al. 2021;Luo, Xia, and Liu 2021).However, renewable resources are extremely intermittent due to seasonal patterns and uncontrollable availability.Therefore, multiple renewable energy resources are combined with non-renewable energy sources to increase efficiency and reliability (Halabi and Mekhilef 2018).The hybrid energy system (HES) has various advantages, including low energy cost, fuel-saving, continuous energy supply, lower maintenance, and high efficiency (Halabi and Mekhilef 2018).However, the energy management techniques in hybrid systems and component sizing can be very complicated.The appropriate optimisation of hybrid systems can be more cost-effective and reliable for small-scale saltwater desalination plants, particularly in off-grid areas.Numerous HES combinations have been reported for reverse osmosis (RO) desalination, including PV/Diesel (Ghenai et al. 2018), PV/ WT/Diesel (Gökçek 2018), PV/WT (Charrouf et al. 2020), PV/WT/BG/HT/Diesel (Mousavi et al. 2020), PV/WT/Bat (Wang et al. 2019), PV/WT/Bat/Diesel (Elmaadawy et al. 2020), PV/ Bat/Fuel cell (Clarke, Al-Abdeli, and Kothapalli 2015), and PV/WT/Biomass/FC (Roy, Hassan, and Das 2022).The hybrid system combinations primarily depend on energy demand, renewable energy resources, weather, metrological conditions, and project economics (Halkos and Skouloudis 2018;Das, Hasan, and Das 2021b).However, the optimal sizing of the HES is essential to achieve multiple objectives, such as meeting reliable load demand, fuel-saving, and reducing CO 2 emission while maintaining a minimum cost of energy (COE) (Shezan et al. 2016;Movahediyan and Askarzadeh 2018).
To summarise, the objectives of the HES sizing optimisation for desalination purposes are mostly economic and environmental.Net present system cost, COE and water cost have been the proven indicators around which the determination of economic feasibility revolved.However, the concern of ecological betterment has been confined only in the emission from nonrenewable generators because the operation of the renewable part of the hybridised systems does not produce any emission.Nevertheless, there are emissions associated with different phases of their life cycle starting from manufacture to disposal (Barakat, Ibrahim, and Elbaset 2020) termed as lifecycle emission (LCE).This parameter projects towards the actual emission scenario of the HES, however, the LCE for the HES for meeting the RO demand has rarely been investigated.Excess energy (EE) is another aspect of HESs, worth considering in the design process, but has mostly been investigated as a consequential parameter.The potential for a large reduction in component size due to the reduction of surplus energy will ultimately result in a lower system cost (Samy, Barakat, and Ramadan 2019).Evidence suggests that a 20% reduction in EE would have about one and half effect on the COE (Hossam-Eldin, El-Nashar, and Ismaiel 2012).
The discussed parameters have been introduced separately in different optimisation studies.However, the combined application of these parameters in the design process has the enormous prospect of furthering the economic and environmental benefits which is yet to be examined.The present study is intended for filling that gap.Therefore, the following are the study's primary contributions: . Solar PV, wind, battery, and diesel generator-based hybrid renewable energy systems for powering a reverse osmosis desalination plant have been proposed for coastal area application in Bangladesh.The system optimisation has been carried out with the multi-objectives of minimising the levelised COE, lifecycle emissions (LCE), and EE generation. .A novel metaheuristic optimisation algorithm named salp swarm algorithm (SSA) has been introduced for optimal sizing of the HES.Additionally, widely utilised algorithms non-dominated sorting genetic algorithm II (NSGA-II) and Particle swarm optimisation (PSO) have been employed to compare the performances while achieving the best possible HES sizing in agreement with the objective functions. .The reliability of energy supply has been secured by including the widespread reliability indicator loss of power supply probability (LPSP) as one of the constraints.Each of the systems are optimised to ensure more than 99% reliability.
The effects of water demand and reliability on the techno-economic and environmental aspects are comprehensively investigated through sensitivity analysis.The study is further extended to investigate the techno-economic benefits over a diesel-driven ROD unit.

Review of related literature
Various optimisers have been exploited for the purpose of obtaining the sizing optimality of HESs.For instance, different metaheuristic evolutionary algorithms (Jahannoosh et al. 2020), linear and nonlinear programming (Zhang et al. 2020, Wang et al. 2021), artificial neural networks (Cheng et al. 2017), numerical iterative methods (Sanajaoba and Fernandez 2016), and various commercially available software tools (El-Houari et al. 2020;Nyeche and Diemuodeke 2020) are worth mentioning.Various relevant studies have been presented in Table 1.In one of such works, Kyriakarakos et al. (2017) designed a PV/Bat/RO system with fuzzy cognitive maps for variable load management for 200 m 3 freshwater production.The sizing of the components was optimised using PSO.Variable load management considerably increased drinking water production from 41% to nearly 54%.Wu et al. (2018) designed a PV/Bat/DG-based HES for the RO desalination and optimised the system using an efficient heuristic Tabu search algorithm.They reported that the Tabu search method provides good results compared to harmony search (HS) and simulated annealing (SA).Additionally, they analysed the sensitivity by varying fuel cost, interest rate, and capital cost.Zhao et al. (2021) analysed a renewable-based PV/WT configuration with compressed air storage for sea water RO system along with both off-grid and grid-connected modes.The study revealed that COE was 0.12 $/kWh for an on-grid system and 0.34 $/kWh with a stand-alone system.El Boujdaini et al. (2022) optimised a PV/WT/DG/bat system with PSO algorithm to meet house load in three different locations and obtained optimum COE of 0.57$/kWh, RF 29%, LPSP 3.9%, and dump energy 15,000 kWh.In a similar study, Sanaye and Sarrafi (2021) proposed an innovative PV/WT/LPG system to meet power, cooling, heating, and clean water demand for a remote household using combined artificial neural network (ANN) and PSO optimisation.They reported that this method decreases the run time by 10%, and it is possible to save 73,361 kg of CO 2 annually.Zhang et al. (2018) investigated a hybrid PV/WT/Bat reverse osmosis desalination (ROD) plant.They optimise the HES using an SA-chaotic search algorithm to minimise the life cycle cost.
Results indicated that the hybrid algorithm offers a cost-effective solution than the single algorithm, such as a chaotic search and SA.Ibrahim et al. (2020) optimised two different combinations, PV/WT/Bat/DG and PV/HKT/Bat/DG, to operate a desalination plant capable of producing 1 m 3 /h water.The systems were analysed using the HOMER optimisation tool, and PV/HKT/ Bat/DG was the optimum system with a COE of 0.122 $/kWh and the water cost of 0.56 $/m 3 .Lilas et al. (2022) utilised renewable energy to produce fresh water and electricity with battery and compressed air storage.Gtari, Hamdi, and Hazami (2022) used PV-thermal solar system to power RO desalination system and the study offered 0.354 $/kWh water cost with emission reduction.Moreover, Hossam-Eldin, El-Nashar, and Ismaiel (2012) optimised an economical desalination plant using renewable energy sources for the purpose of electricity and fresh water.Hemeida et al. (2022) studied a realcase micro-grid renewable energy system, where they obtained COE of 0.272 $/kWh, LPSP of 0.1397, and RF as 92.37%.Moreover, Das et al. (2022) analysed a hybrid renewable energy system to supply fresh water as well electricity.In this study, EE was considered for the ROD system, and it resulted in COE of 0.234 $/kWh, job creation of 1.64 jobs, and 24,038 kWh/yr.EE.Delgado-Torres and Garcia-Rodriguez (2022) analysed a tidal/PV hybrid system for the RO desalination system.In the study, they analysed overall investment cost per unit production and non-useful energy for water desalination.
Likewise, Mokheimer et al. (2013) simulated a hybrid PV/WT/Bat with a 1 kW fixed RO load.They simulated the mathematical model in the MATLAB software package and compared the results with HOMER.The corresponding energy cost and desalination costs were 0.672 $/kWh and $3.693-$3.812/m 3 .Liu, Wu, and Maleki (2022) studied a stand-alone solar diesel-based system for the RO desalination system with the tabu search algorithm and HS algorithm in order to reduce the production cost and emission.In another study, Ghaithan et al. (2022) optimised a PV/wind hybrid system to power the RO desalination system.The study resulted in 0.0557 $/kWh COE and 90,899 kg CO 2 -eq/yr.emission.Moreover, Najjar et al. (2022) concluded with a cost of water (COW) of 0.94-1.47$/m 3 for the renewable-based RO system.Furthermore, Shafaghat, Eslami, and Baneshi (2023) analysed a PV-thermal collectors for the RO desalination purposes.
From the study, it is seen that the system reduced the price of water by 12-13.8% and emission of 79-85.7%compared to the conventional PV-based RO system.Peng et al. (2018) compared 19 evolutionary optimisation algorithms to size a stand-alone PV/ WT/Bat system for a ROD in Iran.The objective functions were life cycle cost and loss of power supply probability (LPSP) for higher reliability.Zhang et al. (2019) used a PV/WT/Hydrogen combination for a ROD system and optimised the system using weather forecasting and a hybrid algorithm.The proposed hybrid algorithm developed from chaotic search, HS, and SA.Additionally, weather forecasting, coupled with artificial neural networks, was used to improve sizing accuracy.Abdelshafy, Hassan, and Jurasz (2018) used a multi-objective hybrid particle swarm optimisation-Grey Wolf optimiser (PSO-GWO) optimisation method to design a grid-connected PV/WT/Bat powered desalination plant that reduces both freshwater production cost and CO 2 emissions.They also checked the sensitivity of the system, varying solar irradiance, and wind speed.Sawle, Gupta, and Bohre (2018) reviewed hybrid off-grid system optimisation and reported that the intelligent optimisation techniques offer lower cost with higher reliability than the other modelling tools such as HOMER.The hybrid system sizing considering the cost, lifecycle emissions, and at the same time reducing the EE generation is rarely available in the literature.Additionally, the present study uses newly developed SSA for sizing the HES for meeting the freshwater demand in the coastal area and the outcomes are compared with the NSGA-II and PSO optimisation techniques.

Materials and methods
This section offers the technical and financial details of the proposed HES.Moreover, the energy management strategy (EMS) and the detailed optimisation frameworks of this study have been included in the respective subsections.

System architecture
Figure 1 represents a conceptual design of a PV/WT/DG-based hybrid power-driven ROD system with a battery bank.It also includes a bidirectional inverter to convert direct current to alternating current or vice versa.The main source of the power, PV modules, is connected to the DC bus with a battery bank.The diesel generator, wind turbine, and RO desalination system are connected to the AC bus.Battery bank stores the surplus part of generation and releases in occasions of deficiency.The generator is generally used as a backup source of power.Sea water is desalinated in the RO unit and eventually sent to the community as per the demand.In this study, the RO unit's capital cost, membrane replacement cost, O&M cost, chemical cost, and water tank cost are calculated as 532 $/m 3 /day, 0.06 $/m 3 , 0.2 $/m 3 , and 255.4 $/m 3 correspondingly [46].The system's daily water requirement is 20 m 3 /day, and the membranes are replaced twice every year (Das et al. 2022).The technical and financial details of the HES components supplying the required energy to the desalination process are presented in Tables 2 and 3, respectively.

Energy management strategy
The HES's energy dispatch plan for supplying electricity to the RO desalination process is shown in Figure 2. The input parameters are hourly solar irradiation and wind velocity data from HOMER, as well as hourly load demand.In the initial stage, E net (t) is calculated by subtracting the load demand from the total renewable outputs (E net (t) = E PV (t) + E WT (t) − E load (t)) for each time step t.The excess quantity is used to charge the battery if the total renewable supply exceeds the load needed and the battery SOC (E batt (t)) is larger than the maximum battery energy (E batt, max ).EE, also known

Feasibility indicators
The best configuration of HES must be feasible in terms of economic, environmental, and technical aspects.This section is dedicated to defining such indicators adopted in this study.

Economic indicators a) Net present cost
The net present cost (NPC) is considered as one of the initial indicators for economic feasibility.It is made up of the component's initial cost (C ini ), O&M cost (C O&M ), and replacement cost (C rep ), less the current salvage (C salvage ) value that is left unused over its lifetime.The NPC for each component is calculated using Equation (1) (Kharrich et al. 2021) Equation ( 2) can be used to calculate the capital cost of each component, where N comp denotes the number of optimal components and C cap,comp denotes the component's capital procurement price ($/kW) The replacement cost for each component can be attained as follows: whereas where C rep,comp denotes the component's replacement cost at the end of its lifetime, N rep-comp denotes the number of times a component has been replaced during its lifetime, LF project denotes the project lifetime (25 years), LF comp denotes the component lifetime, i denotes the real discount rate (10%), i ′ denotes the nominal discount rate, and f denotes the inflation rate.The following are the costs of O&M for each component: where C O&M,comp is the operation and maintenance cost of the component.The salvage value for each component can be calculated as follows: whereas The cost of fuel for a diesel generator can be calculated using Equation ( 8) where P fuel is the yearly fuel consumption (L/year) and F fuel is the annual fuel cost ($/L).The RO's overall cost may be computed as follows (Maleki 2018, Zhang et al. 2018, Wu et al. 2018): where CC WTa denotes the capital cost of the freshwater tank, and CC RO , MC RO , TC MR , and TC Chem are the capital cost, O&M cost, total membrane replacement cost, total chemical cost, and TC Chem are the capital costs of the RO system, correspondingly.All these expenses can be calculated as follows: As shown in Equation ( 15), C RO represents the cost of a RO system per unit volumetric capacity of daily generated desalinated water by ROD, Ca WD denotes the daily volumetric capacity of the ROD system, and CRF signifies the capital recovery factor.Again, the annual ROD maintenance cost is C Mnt-RO , the daily water demand is D WD , the membrane replacement cost is C MR , and the number of membrane replacements per year is N Me .Furthermore, C CH stands for chemical cost, while C WTa stands for water tank cost, which comprises the price of the water tank as well as the cost of installation.

b) Levelised COE
The LCOE refers to the cost associated with per unit energy production from the system.It is calculated by Equation ( 16) (Das, Al-Abdeli, and Kothapalli 2017) (Energy Served) . (16)

Environmental indicators a) Lifecycle emission
The lifecycle emission of a system component is attributed to the GHG emissions associated with different phases of its lifecycle such as: manufacturing, assembly, installation, and disposal.All sorts of GHG emissions are termed as CO 2 equivalent emission and in that way the total emission from the HES is calculated as follows (Das, Hassan, et al. 2021c; Alshammari and Asumadu 2020): where c p denotes lifetime equivalent CO 2 emissions of the HES component p, and the quantity of energy delivered by that component of the system in a period of T (8760 h) is denoted by E p .Table 4 presents the lifecycle emission factors of different components in the system.

b) Renewable fraction
The renewable fraction is the portion of the total energy provided by the HES that is generated by renewable sources (Das, Tushar, and Hassan 2021d) Here, E non-ren is energy produced by a non-renewable source, in this case a diesel generator.EE is the portion of energy output that is not used while meeting demand and is thus dumped.In the present case, the EE produced by the system in each time step is calculated as follows (Das et al. 2022): b) Loss of power supply probability It refers to the probability that the system will fail to supply the required demand over a certain period and can be calculated by Equation ( 20) (Das, Al-Abdeli, and Kothapalli 2017) In Equation ( 20), E L stands for entire electrical demand (kWh), and LPS stands for loss of power supply throughout the time period T, as given by Equation ( 21)

Optimisation problem formulation
The optimisation problem for this study is formulated by selecting the proper objective functions and constraints from the feasibility indicators.The primary goal of the optimisation method is to determine the best size of HES components while minimising the system's levelised cost of energy (LCOE), life cycle emissions (LCE), and surplus energy (EE).Accordingly, the multi-objective functions may well be well-defined as follows: These objective functions are subjected to some constraints.The integer number of PV modules (N PV ), number of wind turbines (N WT ), number of diesel generators (N DG ), number of batteries (N Batt ), and number of inverters are all optimal variables in the current sizing problem (N Inv ).The numbers of each decision variable are confined to predefined boundaries for the reduction of the solution space (Equation ( 23)).Moreover, energy balance constraint and battery storage capacity constraints have been taken into consideration as presented in Equations ( 24), (25), and (26), respectively E PV , E WT , E Batt and stand for PV, wind turbine, battery bank, and diesel generator energy, respectively, while P L stands for the study's load demand; DOD refers to the battery bank's maximum depth of discharge.E batt,min and E batt,max show the battery's least and maximum state of charge.Furthermore, as a dependability indicator, the study looks at the following LPSP restriction: The ideal LPSP in this investigation is set at 1 ± 0.5%.

Proposed optimisation algorithms
Optimum sizing of HES components is prerequisite for efficient and cost-effective hybrid energy utilisation to satisfy reliable water load demand at fewer environmental emissions.In this study, SSA, NSGA-II, and PSO algorithms are used to optimise the HES-based ROD system.

Salp swarm algorithm (SSA)
SSA is introduced by Mirjalili et al. ( 2017) which is inspired by the mechanism of swarm creation of jelly fish like biological entity named salps.The swarm of salps is called salp chain (Mirjalili et al. 2017).To form a salp chain it is required to select a leader which is the salp that locates the potential source of food.The other salps of the swarm then act as follower positioning in a queue just behind the leader one by one.This distinctive feature of swarm creation acted as the galvaniser to incorporate this behaviour in a mathematical approach which eventually formed the structure of SSA.
For any problem, the random solution can be represented as the random combinations of decision variables.Any random solution can be represented as follows: where X i is the ith random solution and x i j is the jth decision variable of ith random solution.For any swarm, the initial swarm can be represented as the cumulation of different random solutions.Any initial swarm X can be expressed as follows: To construct the mathematical structure of SSA we need to identify the location of potential food source F. Alike in meaning compared with biological attribute, the best solution in the swarm can be represented as the potential food location F which resembles as the virtual food location in respect to optimisation model.Then, the position of leader can easily be obtained following the food location F modified through bounds of decision variables along with some random numbers.To attribute this characteristic, the following equation is maintained: where x 1 j is the value of the leader (first salp) for jth decision variable, F j is the value of potential food source for jth decision variable, U j is the value of upper bound for jth decision variable, L j is the value of lower bound for jth decision variable, c 1 is the tuning factor between exploration and exploitation and c 2 , c 3 are random numbers.
The co-efficient c 1 can be represented as follows: where i is the current iteration number and I is the maximum iteration number.The value of c 1 is of very important as it balances between exploration and exploitation followed by exploration in the early stage and eventually moving to exploitation gradually.It enhances the performance of the algorithm.
The parameter c 2 and c 3 are random numbers generated uniformly in the range of [0,1].They control if the next jth decision variable tends to move towards positive infinity or negative infinity as well as determining the step size (Mirjalili et al. 2017).
To update the values of follower salps, the following equation is incorporated: where x i j is the value of jth decision variable of ith follower salp.The total swarm is created and finally, modified using Equations ( 30) and ( 32) running through the loop until the end criteria are not met.The optimisation flow chart of PSO is presented in Figure 3.The values of the different optimisation parameters are adopted as follows: N run = 30, number of salp = 100, N iteration = 300.2.5.2.Non-dominating sorting genetic algorithm II NSGA-II is a multi-objective evolutionary algorithm used to attain a required set of non-dominated solutions, which is generally approached by weighted or aggregated sum approaches (Zaman et al. 2019).It uses a fast non-dominated sorting approach and an exclusive strategy, which reserves its solutions and converges towards the best solution (Huang et al. 2019).The working principle of NSGA-II is shown in Figure 4.The values of the different optimisation parameters are adopted for better performance as follows: N run = 30, population size = 300, N iteration = 500, crossover rate = 0.9, m i = 0.1, infeasible ratio = 0.2.

Particle swarm optimisation
PSO is a population-based metaheuristic algorithm that generates optimum global results by imitating animal community behaviour (e.g.flocking of birds, schooling of fish).It is a swarm-based evolutionary algorithm that operates based on personal and global best perceptions where personal best means achieved best solution quality, i.e. optimised fitness of each particle so far, and global best means most optimised solution achieved among all the particles so far.After each iteration, both personal best and global best are updated through vector updating.Abdelshafy, Hassan, and Jurasz (2018) provided the mathematical expressions.Figure 5 depicts the PSO optimisation flow chart.The values of the different optimisation parameters are adopted as follows: N run = 30, particle size = 100, N iteration = 300, w max = 0.9, w min = 0.2, c 1 = 2, c 2 = 2.

Case study
The case study area is located at Kutubdia Island in the Bay of Bengal, Bangladesh (21°49.0′ N, 91°5 1.5 ′ E). Figure 6 illustrates a location map of the area.The research region has no grid electricity, and one of the key issues is the saline water.The salinity level of this area is very high (Total Dissolved Solid, TDS ≥ 2000 mg/L; and NaCl ≥ 2000 mg/L) than the standard value of World Health Organization (WHO) (TDS ≤ 1000 mg/l; NaCl ≤ 150-1000 mg/L) (Rahman et al. 2017).In the present study, a remote area with 1000 population is considered to supply fresh drinking water.

Meteorological data and renewable resources
The study area is well furnished with a sufficient sunshine hour and excellent wind velocity.The solar irradiance and wind velocity profile of the study area are taken from NASA's HOMER software (HOMER Pro version 3.14.5)database.Using the coordinate of the study area (Kutubdia Island, Latitude: 21°49.0′ N, Longitude: 91°51.5 ′ E), the climatic data has been extracted from the HOMER software tool.Figure 7 shows the hourly solar irradiance and wind velocity of the study location.The average solar irradiation and wind velocity of the selected area are 4.80 kWh/m 2 /day and 3.5 m/s, respectively.The area enjoys sufficient sunshine year-round, except for the drop in July-August and maximum wind velocity is obtained in July, where minimum speed is attained in December.It is evident from Figure 8 that the area has solar irradiation in the range of 0.1-0.5 kW/m 2 for over 3200 h, whereas it receives irradiation of 0.6 kW/m 2 or above for over 1500 h.From Figure 9, it is clearly shown that the wind flows in the ranges of 2-6 m/s over the study for around 85% times of the year.

Load profile assessment
According to the WHO, each individual needs 20 L of fresh water every day (Ibrahim et al. 2020).Therefore, around 20 m 3 daily freshwater is necessary per person.It is estimated that 1 m 3 of freshwater production with an RO desalination system consumes 4.38 kWh of electrical energy (Ibrahim et al. 2020).In this context, to provide 20 m 3 of desalinated freshwater for 1000 people, approximately 87.6 kWh/day of energy is required.Figure 10 shows hourly load demand and water demand per day, where the maximum load demand is 10 kW with an average load of 3.65 kW and the maximum water demand is 2.3 m 3 /day.

Results and discussion
A PV/WT/DG-based hybrid power system with battery storage for a community-scale RO seawater desalination system is modelled and optimised using three different artificial techniques: NSGA-II, PSO, and SSA in the MATLAB environment.The study employs fuzzy decision-making technique modelled according to this study (Brka, Al-Abdeli, and Kothapalli 2015) to extract the optimum result i.e. the solution with the best trade-off from the set of non-dominant solutions on the Pareto front.Two configurations are studied based on the inclusion of wind turbine generators.The optimised results are presented in Table 5.   9. Frequency distribution of wind velocity for the study area.
Figure 10.Hourly load demand for a day.

Financial analysis
Results presented in Table 5 show that the PV/Bat/DG offers cost-effective solutions in each case with NPC ranging between $141,940 and $146,230.The PV/Bat/DG cost is lower than the PV/ WT/Bat/DG-based HES regardless of the optimisation techniques due to the high capital cost of the wind turbine and insufficient wind energy potential of the studied area.The NPC for the PV/WT/Bat/DG-based HESs ranges from $167,110 to $188,680.Additionally, the SSA algorithm offers cost-effective solutions than the NSGA-II and the PSO optimisation techniques, as reported in Table 5.The system offers excellent reliability with zero LPSP and no unmet load.Conversely, the worst case is the PV/WT/Bat/DG with the GA from the perspective of system cost ($188,680), which is the maximum compared to all studied configurations.Figure 11 shows the comparison amongst various hybrid arrangements based on LCOE and COW obtained from different algorithms.It is observed that PV/WT/Bat/DG system is costlier than the PV/Bat/DG regardless of the techniques used.The addition of wind turbines to the system increases the energy cost while supporting a limited number of loads.As a result, PV/Bat/DG offers cheaper means of producing freshwater.The LCOE varies from only 0.179 to 0.185 $/kWh for different algorithms, where SSA gives preferable results.Similarly, the COW also changes with technologies and optimisation techniques.The lowest water cost was 1.37 $/m 3 for PV/Bat/DG with the SSA algorithm, where the maximum COW was 1.83 $/m 3 for PV/WT/Bat/DG with GA.
Figure 12 demonstrates the breakdown of cost components of total NPC for various hybrid configurations with different algorithms.The economic analysis includes all the costs of PV,   WT, DG, battery, inverter, RO plant, and fixed costs.It is found that batteries dominate the cost components of the system and consume approximately 33-44% of the total NPC, followed by RO desalination plant (21-28%) depending on the system structure and algorithm.The renewable technologies PV and wind need only 20-29% of the cost due to their lower operating and maintenance cost over the lifetime.Since the algorithm aims to reduce the life cycle emission, the diesel generator shares only 1-3% costs being the component with the highest emission factor.The SSA-optimised results for PV/WT/Bat/DG and PV/Bat/DG are summarised in Figures 13 and 14.The capital, operating, and maintenance costs, along with the membrane replacement and chemical costs are shown in Figure 15.As discussed, the battery is an expensive component in the system, and it comes with high replacement and maintenance costs as well.The RO desalination plant needs considerable expense due to high operating, membrane replacement, and chemical costs.The PV and wind technologies need very high capital investment, although their operating and maintenance cost is negligible.The capital cost is insignificant for diesel generators compared to other components.However, their uses are limited due to high operational and maintenance costs.Ibrahim et al. (2020) investigated an off-grid PV/WT/Bat/DG powered ROD unit having a COE of 0.22 $/kWh and COW of 1.10 $/m 3 for the application in Egypt.Atallah et al. (2020) found an optimal configuration of a PV/Bat/DG-based HES for powering a ROD unit with a COE and NPC of 0.107 $/kWh and $502,662, respectively.A large-scale ROD unit powered by a PV/WT/Bat/DG is optimised by Elmaadawy et al. (2020) and the study reported a COE of 0.164 $/kWh and the NPC of 3.12 M$.The outcomes of the economic metrices for this study agree with the acceptable standard of the outcomes reported in the previous works.

Technical analysis
Figure 16 presents the annual energy production of different configurations with different algorithms.For the optimal case (PV/Bat/DG with SSA), renewable sources dominate the energy production with the highest of 83.2% from the PV system.The optimum system generates 35,052 kWh/year, whereas PV supports 29,150 kWh/year.The remaining 16.8% is supplied by the diesel generator, which compensates for the lack of renewables and thereby meets the RO plant's power requirements.Furthermore, the system can deliver loads with 99.9% dependability, with only minor unmet loads.The optimal system dumps 402 kWh of EE which is 35.5% higher than the lowest value provided by GA (259 kWh).However, this is lower than the other cases considered.
The overall assessment indicates, sizing done by GA tends to produce lesser EE than the other two algorithms.Another aspect worth noticing is, the configurations with wind turbine produce more EE in every sizing outcome obtained.This is found in maximum quantity in PV/WT/Bat/ DG system optimised by PSO (1580 kWh/yr.).In every configuration, PV domination in the production is notable.
Figure 17 shows the energy profile for each unit, PV, DG, and battery, to manage the power requirement of PV/Bat/DG with the SSA algorithm for four days in May.The PV, DG, and battery successfully satisfy the load demand.

Environmental impacts
The environmental impact of the different structures with GA, PSO, and SSA algorithms are compared and presented in Figure 18.It is observed that PV/WT/Bat/DG with SSA is environmentally attractive and eco-friendly due to the lowest pollution (LCE = 4397 kg/yr.).Moreover, the optimal system achieved a maximum of 89% renewable penetration compared to the other systems.Eliminating WT from the configuration causes an obvious reduction in the renewable fraction, and the largest descend of 7.8% is attributed to the SSA-optimised systems.This corresponds with the significantly increased life cycle emission in the wind generator less systems.4.4.Optimised (PV/Bat/DG) system vs. conventional diesel-only system The LCOE of the optimal configuration is 0.179 $/kWh, which is much lower than the diesel-only system (0.22 $/kWh) as reported in Table 6.Furthermore, the NPC ($170,200) and COW (1.65 $/m 3 ) of the diesel-only system are quite high compared to the optimised system NPC ($141,940) and COW (1.37 $/m 3 ), respectively.However, both the systems are highly reliable, although PV/Bat/DG produces 402 kWh EE per year and unmet load is 27 kWh/yr.Since the cost and the environmental benefits of the PV/Bat/DG system are far better than the diesel-only system, integration of the proposed system for the ROD is techno-economically effective for freshwater generation in remote areas.

Effects of load demand
Figure 19 shows the effect of daily water demand on the COW for PV/WT/Bat/DG with different algorithms.It has been observed that COW for all algorithms reduces significantly with the increasing daily water load.The GA always produces freshwater at a comparatively higher cost compared to the other two algorithms.The maximum water price by GA is 2.32 $/m 3 at 10 m 3 / day and the minimum (1.43 $/m 3 ) at 35 m 3 /day.Similarly, PSO produces freshwater at a higher price compared to optimised SSA.The algorithm gives the cheapest rate at lower load demand compared to GA and PSO, and the COW decreases continuously with the increase in water demand up to 35 m 3 /day.
Figure 20 shows the effect of daily freshwater demand on COW for PV/Bat/DG hybrid system for three algorithms GA, PSO, and SSA, respectively.The COW decreases from 2.05 to 1.37 $/m 3 due to an increased water demand load from 10 to 20 m 3 /day in the case of SSA.However, the water price becomes steady and changes slowly for the water demand beyond 20 m 3 /day.It is also noticed that PV/Bat/DG produces freshwater at a comparatively lower price than the PV/WT/Bat/ DG for the respective algorithms.The addition of WT increases the capital investment, and per unit energy generation from WT is costly compared to PV.Since the constraints in the algorithms are set to minimise the energy cost, the structure without WT produces freshwater at a lower price.

Effects of load supply reliability
Figure 21 shows the variation of component sizing with the variation of LPSP for the optimal hybrid system.When the system reliability is higher (LPSP = 0%), the system configuration, particularly the number of generators, batteries and photovoltaic panels, is larger for the same load and water capacity.It is also observed that when the value of LPSP increases the number of PV panels, batteries, and diesel generators decreases.The reliability constraint in the algorithm limits the use of more PV, generators, and batteries if there is a minor reduction of LPSP (even 1%).The number of generators obtained for different LPSPs, 0%, 1%, 5%, 10%, and 12% are 2, 2, 2, 1, and 1, respectively.
Figure 22 shows the effect of changing LPSP on the LCOE ($/kWh) and NPC ($) of the optimised system PV/Bat/DG with the SSA algorithm.The LPSP varied from 0% to 12% to observe the effect on both the LCOE and NPC.It is noted that both the LCOE and NPC decrease with the increase in LPSP.Moreover, only 1% of changes in LPSP bring a significant reduction in both LCOE (3.2%) and NPC (3.66%) values due to a decrease in PV and battery size.The system can supply the RO load with a 12% deficiency at only a 0.169 $/kWh rate and $139,000 NPC.The rise of LPSP from 5% to 10% reduces the LCOE from 0.173 to 0.170 $/kWh.Therefore, with minor changes of the unmet load initially for the RO unit, a significant LCOE reduction can be achieved.
Figure 23 represents the effects of LPSP on EE and LCE for PV/Bat/DG configuration with the SSA algorithm.Again, the LPSP was varied from 0% to 12% to observe EE and LCE characteristics.It is seen that the LCE and EE have opposite characteristics with the increase of unmet load.The EE gradually decreases while the LCE gradually increases with the rise in LPSP from 0% to 12%.The size of both PV and battery decreases with the increasing LPSP.Therefore, the diesel generator supplies the deficient load to satisfy RO load demand and resulting in high LCE.The EE drops from 795 to only 402 kWh if 1% load demand is compromised.However, this 1% LPSP causes 1161 kg emissions to the environment.

Conclusions
A community-scale RO desalination plant powered by a hybrid renewable energy system is studied using three optimisation algorithms (NSGA-II, PSO, and SSA) for the coastal area application in Bangladesh.The HES is designed to satisfy the reliable load demand with an LPSP of 1 ± 0.5% for sea water desalination using the locally available renewable energy resources.The HES powering  the ROD plant is optimised to minimise the COE, LCE, and EE simultaneously.The main outcomes of this investigation are listed as follows: . Results indicate that PV/Bat/DG is the best configuration with a COE of 0.179 $/kWh and COW of 1.37 $/m 3 .The optimum system comprises 18.6 kW PV, 123 kWh battery storage, 6 kW diesel generator, and 19 kW system converter.The system mitigates a substantial amount of CO 2 emissions (5921 kg/yr.)while generating only EE of 402 kWh/yr.(1.25%). .The SSA algorithm gives better solutions on the Pareto optimal front than the widely utilised ones NSGA-II and PSO.Around 3-11% cost reduction can be achieved using SSA while optimising the HRES. .The PV/Bat/DG provides better reliability and lower cost than the PV/WT/Bat/DG in all the optimised cases; however, the LCE generation is significantly higher in the former case (5921-6115 CO 2 kg-eq/yr.)than the later (4397-4629 CO 2 kg-eq/yr.). .Results also indicate that the COW decreases by around 33% when the water demand increases from 10 to 20 m 3 /day.Moreover, the system reliability has significant effects on the NPC, COE, and EE generations. .A comparative study also reveals that the proposed HES-powered ROD has substantial costs and environmental benefits over the diesel-only system.
The above analysis has clearly identified that the proposed HES-powered ROD system is economically feasible to meet the water demand for a remote coastal community.The proposed assessment presented in this study could help the government policy makers and different stakeholders to identify the enormous prospect of integrating RE technology into the ROD unit.Further research is warranted to model and size the optimal HES to serve the community electric demand, local cooking gas demand via hydrogen to methane gas conversion process, and the ROD demand side-by-side utilising the unconsumed EE.An experimental investigation of the hybrid system using the actual climatic and freshwater load demand data would be worth of future research.Moreover, the present study considers generic values when it comes to the maintenance issues of the RO system which may not agree with the actual scenario.For instance, the nature and degree of membrane degradation due to scaling and fouling can significantly vary affecting the permeability of the membrane.This, in addition to the productivity of the RO system in meeting the demands, may also impact the overall system economy by necessitating more frequent membrane replacement.Future research factoring a closer look into these matters will provide more acceptable outcomes.The inclusion of socio-demographic and socio-political factors like the social cost of carbon, portfolio risk, etc. in the assessment criteria is also warranted further study.The proposed system's applicability might be limited due to the issue of waste (brine) disposal from the ROD plant.For coastal regions, like the considered case study, waste disposal is easier due to their adjacency to the ocean.However, for inland desalination systems integrated with hybrid renewable energy, a large volume of waste brine might affect the overall sustainability of the system.With 67% of the population living away from the coastal areas, studies concerning desalination systems must consider proper planning for waste disposal and minimisation in addition to other design parameters.Future efforts will factor in such aspects for a sustainable solution to energy and water issues facing the planet.

Figure 1 .
Figure 1.RO desalination process with RE-based hybrid system.

Figure 2 .
Figure 2. EMS for the RO desalination process with the HES.

Figure 6 .
Figure 6.Location map of the study area.

Figure 7 .
Figure 7. Hourly solar irradiation and wind velocity data of the study area.

Figure 8 .
Figure 8. Frequency distribution of solar irradiation for the study area.

Figure 12 .
Figure 12.Break down of the total NPC for different optimised systems.

Figure 13 .
Figure 13.Optimal system sizing summary of PV/WT/Bat/DG-based HES configuration using SSA algorithm.

Figure 14 .
Figure 14.Optimal system sizing summary of PV/Bat/DG-based HES configuration using SSA algorithm.

Figure 15 .
Figure 15.Cost breakdown for the various optimised configurations.

Figure 16 .
Figure16.Annual production from various HES components and the generated EE.

Figure 17 .Figure
Figure17.Time series data for power mix of PV/Bat/DG system with SSA algorithm.

Figure 20 .
Figure 20.Effects of daily freshwater demand on COW for PV/Bat/DG hybrid system.

Figure 21 .
Figure 21.Variation of component sizing with LPSP for PV/Bat/DG configuration with SSA algorithm.

Figure 22 .
Figure 22.Effects of LPSP on LCOE and NPC for PV/Bat/DG configuration with SSA algorithm.

Figure 23 .
Figure 23.Effects of LPSP on EE and LCE for PV/Bat/DG configuration with SSA algorithm.

Table 1 .
Different HRES configurations to meet drinking water demand with ROD system.

Table 2 .
Technical information of the proposed HES components.the desired scenario of the study, where neither unmet load nor EE is produced.Furthermore, if RE sources fail to fulfil the load demand, the EMS first determines whether the battery SOC (E batt (t)) is larger than the minimum SOC (E batt,min ).If the summation of RE sources and battery energy is larger than load demand, the battery is discharged to meet the load demand until its minimum SOC (E batt,min ) is reached.When the cumulative output from RE sources and battery banks is insufficient to fulfil the load demand, the diesel generator is started if the shortage is equal to or more than the diesel generator's minimum starting threshold.Unmet load occurs when RE and battery banks are unable to meet load demand and the load deficiency is less than the start-up threshold.The algorithm continues to iterate through each timestep until t = 8760 is reached and the optimiser takes on from there.

Table 3 .
Financial information of the proposed HES components.

Table 4 .
CO 2 life cycle equivalent emission for HES desalination process.

Table 5 .
Optimised results of the RO desalination HES.
Figure 11.Comparison between LCOE and COW for different hybridised scenarios.

Table 6 .
Comparison of optimised PV/Bat/DG with diesel-only system using SSA algorithm.
Figure19.Effects of daily freshwater demand on COW for PV/WT/Bat/DG hybrid system.