Optimal sizing of a residential microgrid in Egypt under deterministic and stochastic conditions with PV/WG/Biomass Energy integration

1 Department of Electrical and Electronics Engineering, Faculty of engineering, University of The Ryukyus, 1 Senbaru, Nishihara-cho, Nakagami, Okinawa 903-0213, Japan 2 Department of Electrical Power and Machines, Zagazig University, Zagazig 44519, Egypt 3 Department of Electrical Engineering, Faculty of Energy Engineering, Aswan University, Aswan 81528, Egypt 4 Department of Electrical and Computer Engineering, University of Texas at El Paso, El Paso, TX 79968, USA 5 Fuji Elctric Co., Ltd,Tokyo 141-0032, Japan


Introduction
In Egypt, many new projects are being performed in various areas, such as those in the new valley of the western desert and those in Egypt's northern coastal borders. These projects will help in the Biomass is a renewable energy source that can be easily transformed into electricity through the gasification process. Compared with fossil fuel technologies, biomass technology has many environmental and economic advantages. High-capacity biomass gasification units are the best choice because of their investment efficiency and effectiveness. Small-scale biomass gasification is vital in providing electricity for localized usage where the low electrification level and the unstable transmission network [10]. Rice straw is an attractive biomass solid waste due to its availability in rural areas and its high calorific value. Rice is one of the most common crops in Egypt. Open-field burning is the main environmental issue of rice farming in most countries. Farmers have a limited time to clear their fields after the harvest ends. They burn the rice straw to start planting seeds for the next season. This behaviour has many impacts on carbon dioxide (CO 2 ) emissions, which is the main combustion product that creates dark clouds, and plays a major role in children's exacerbating asthma. Managing the straw after rice harvest is a critical problem these days, and one of the appropriate solutions is using it as a fuel in gasification-electricity procedures [11,12].

Background Review
Many authors have studied the optimum operation of hybrid microgrids, including renewable energy sources. Reference [13] studied the microgrid's short-term economic and environmental dispatch problem using enhanced quantum particle swarm optimization (QPSO) to improve the units' performance that helps to minimize polluting gas emissions. In reference [14], a detailed comparison of three different DC microgrids has been held (one grid-powered based on conventional fuel generation, and the other two off-grid based on solar energy generation). The comparison aimed to highlight the most notable positive and negative aspects regarding technical efficiency, economic and environmental impacts. In reference [15], a detailed literature review of the current microgrid's sizing methods was presented. The surveyed methods were split into two major groups of cost-based and non-cost-based sizing methods. Reference [16] provides a comprehensive overview of the most widely used tools for designing HRESs. It also explains how social factors such as job development and social acceptance improve such software packages' capabilities. Renewable energy integration to replace diesel power generation is projected to be cost-effective for off-grids and substantially reduces greenhouse gas emissions. Hybrid systems are highly recommended for isolated microgrids to guarantee reliability overcome battery problems [17]. In reference [18], the authors explored the possibility and the benefits of merging renewable energy technologies such as solar and wind with traditional power generation systems like diesel and natural gas sources. In [19], the optimum generation capacity and storage for a hybrid (PV/wind/BESS) system based on instantaneous wind speed variations are introduced to maintain system reliability and reduce the investment cost. In reference [20], optimal sizing of PV/diesel/battery system is researched, including V2G. In reference [21], PV/WG isolated microgrid is sized using the critical month by algorithmic optimization techniques and Homer Pro. In reference [22], Grasshopper Optimization Algorithm (GOA) is used in optimal microgrid sizing to supply energy demand reliably based on the deficiency of power supply probability (DPSP) and the cost of energy (COE). Energy storage systems act as a tool for handling peak load demand as well as boosting the gains from the thermal power plant while enhancing the system stability and reliability [23]. Authors in ref [24] studied the integration of BESS in efficient rural electrification. BESS' optimum sizing guarantees the system reliability and extends battery life which affects the replacement cost. In reference [25] general parallel genetic algorithm is used to maximize the technical benefits for the distribution system by optimally integrating PV and energy storage systems.
Biomass is a valuable resource that supplements other renewable sources if it is used in electricity generation. It has zero emissions if combined with technologies for carbon capture and storage [26]. Biomass gasification is a low-cost tool for providing electricity to off-grid rural communities [27]. For the Sharjah town's optimal electrification, micropower optimization methods are used to design a solar/biomass hybrid renewable energy-based microgrid [28]. Reference [29] used rice husk as the basis of energy for paddy parboiling and drying, also studied the worked gasifier's energy, exergy analysis and the gas-fired boiler equipment. Large-scale biomass to hydrogen technology is one of the brightest future technology in the sustainable energy sector [30]. Gasification technology is viewed as an effective thermochemical process either to substitute fossil fuel in existing diesel engines or to produce electricity using gas engines [31]. This technique enables the implementation of electrification programs in rural areas and improves grid quality. Reference [32] has studied the combustion of rice straw to obtain energy and its related problems in China. Roughly 3.1 million tons/year of rice straw in Egypt are projected to be disposed of by burning directly in the open air, so the recycling is an urgent necessity. Reference [33] investigated rice straw's ability for energy production in Egypt. The simulation also illustrated the rice straw power plant's efficiency to determine the required amount of energy, minimize fossil fuels reliance and greenhouse gas emissions reduction.
On the other hand, RESs have been shown to have short-term fluctuations, and their energy profiles are not entirely predictable. Using information from nearby substations improves prediction accuracy and reduced data imputation errors [34]. Uncertainty modelling outlines renewable sources' fluctuations. Reference [35] showed the impacts of load and wind uncertainties in increasing the cost by 22%. In reference [36], the stochastic energy operation management is studied for grid-connected MG, including WT/PV/Micro-Turbine/Fuel Cell and BESS. Scenario-based strategies convert the stochastic problem to several deterministic problems. Monte-Carlo method is a suitable method for scenarios generation [37]. Genetic algorithm and Monte-Carlo method are used in optimal BESS sizing, taking into consideration the wind power uncertainty due to wind speed fluctuation in reference [38]. Optimal design and operation for isolated microgrids are discussed in reference [39], considering solar energy generation's stochastic behaviour. In reference [40], The point estimate method (PEM) is used to view the uncertainty linked to wind and solar powers. Reference [41] studied the consequences of renewable sources, market price and load uncertainties in optimal scheduling of a grid-connected microgrid over a 24-hour horizon, using the modified bat algorithm (MBA). The probability density functions are used in modelling renewable energy sources uncertainty. In reference [42], a multi-scenario optimization model based on the minimum life cycle cost is applied using the general algebraic modelling system (GAMS) to choose the best siting, sizing, and type of renewable sources in the distribution system.

Paper contribution
The power sector is essential to Egypt's socioeconomic growth and lowering poverty goals [43]. Depending on the previous literature, this paper presents a renewable energy study for rural communities electrification without grid connections. A comparison between different combinations of sources is also presented, using PV modules, wind, and biogas generators. The main contribution of the proposed scheme in this manuscript depending on all the above, are as follows: 1. An optimal sizing approach of a real new residential area in Egypt using renewable energy sources is proposed. 2. Uncertainty of renewable energy methodology is considered with a complete study for its effects on the optimal sizing and cost schemes. 3. The bio-gasification generation is implemented to deepen its effects on the environment and power system generation. 4. Environmental effects of rice straw recycling through biomass gasification are introduced. 5. Three different operation mechanisms are introduced according to the availability of power conversion sources. 6. Nine case studies with detailed analysis are presented to confirm their used renewable generation robustness and effectiveness. 7. A comparison of two optimization algorithms is held to ensure the system's feasibility.

Paper structure
The frame of the remaining sections is written as follows; in section 2, the system is described while the objective functions are discussed in section 3. In section 4, the system constraints are introduced. Different optimization techniques are discussed in section 5. The system uncertainties are illustrated in section 6. Also, the simulation and comparison between nine optimized scenarios are shown in section 7. The results are discussed in section 8, while the conclusion and future work are then held in section 9.

System modelling
The proposed system configuration with the available power generation units is presented in Figure 1. The system's operation is categorized into three different operation mechanisms depending on the used units and the storage system availability. The first category uses renewable energies without using batteries. The load generation mismatch is faced through biomass generation. The second category uses a combination of renewable energy sources, BESS, and biomass generation to ensure full system reliability. In the third category, the system consists of renewable energy sources with batteries and without biomass generation availability. Different scenarios of each category are studied in this paper, taking into consideration the system constraints to reach the optimal cost and reliable configuration of each scenario. Also, a comparison between scenarios is held to show the economic feasibility and the environmental response of each system. Figure 2 shows the mechanisms of each category. The system components are discussed in the following paragraphs.

PV modelling
Photovoltaic (PV) is the simplest energy technology to convert solar energy into electricity. It features easy installation, high reliability and low maintenance cost. PV solar modules' power depends mainly on environmental and meteorological data like solar radiation and the daily sun existence duration. The instantaneous generated output power of a PV system (P pv (t)) with respect to the incident solar irradiance I d (t) in (Wh/m 2 ) can be calculated by using [44]: Where η pv is PV's efficiency, S pv and I d,S tc are the rated capacity of the PV in kW and solar radiation at the standard test condition, respectively.

WG modelling
The instantaneous wind generator's (WG) output power depends on the wind speed at a specified hub height. The output power of a WG can be described by using the function described in Eq (2.2): Where S wt is the rated power capacity of the WG. w cin , w r and w cot are the cut-in, rated and cut-out wind speed, respectively [45].

Biomass generation modelling
Biomass gasification is the method of transforming solid bio-waste into an ignitable gas mixture composed mainly of carbon monoxide, oxygen, methane, hydrogen, etc. It can be used for thermal purposes or as a fuel for mechanical or electric power generation in internal combustion engines.
The power of biomass depends mainly on the calorific value and the available biomass amount [46]: The biogas operating and maintenance cost includes two parts (fixed and variable cost), depending on the proposed power and the used fuel amount: The amount of biogas fuel cost is described in Eq (2.5): The capital and salvage values of biomass unit are described in Eqs (2.6) and (2.7): Where CV bm is the biomass calorific valve, η bm is the overall conversion efficiency, θ1 bg is the annual fixed operation and maintenance cost ($/kW/year), P bg is the power produce by biogas generator, i r is the interest rate, µ bg is the escalation rate, θ2 bg is the variable operation and maintenance cost ($/kWh), PW yr bg is the annual working power of biogas generator (kWh/year), θ3 bg is the biomass fuel cost ($/ton), BF yr r is the annual required biomass fuel (ton/year), γ bg is the initial cost of biogas system ($/kW), λ bg is the resale price of the system ($/kW), and δ is the inflation rate [47].

Storage system modelling
Battery energy storage systems are used to match the generated energy with the consumed energy and enhance the system's energy balance by storing the energy from different sources such as solar and/or wind generators. For example, excess energy due to high levels of wind speeds or solar radiation will be stored in batteries. This stored energy will be released for smoothing the injected power into the system, especially in low renewable energy capabilities [48].
The charging equation: The discharging equation: Eqs (2.10) and (2.11) describe the capital and replacement cost values of BESS: Where SOC is the state of charge, σ is the hourly rate of self-discharge, Pl(t) is the load demand, P g (t) is the generated power, N Bat is the number of battery units, η bc is the charging efficiency, η bd is the discharging efficiency, µ bat is the escalation rate, α bat is the cost of battery set in $ and η inv is the inverter efficiency [49].

Objective function
The optimum system sizing's objective functions are the minimization of load-generation mismatch (loss of power supply LPS) and the total system cost minimization. The first objective function is described in the following equation: If the system uses BESS, the first objective function will be expressed as : Where P g (t) and Pl(t) are the summation of the generated power and load power, respectively. The total cost minimization is the second objective function: Where C k is the capital cost of component k, OM k is the operating and maintenance cost of component k, R k is the replacement cost, and S V k is the salvage cost of each component.

System constraint
For optimal sizing and achieving all objective functions, the system is subjected to some restrictions.

Limits constraint
The limits constraints of maximum and minimum power values of each component are represented in Eqs (4.1)-(4.4):

SOC constraint
Battery's SOC defines the remaining power and reflects battery effectiveness. At any time, the value of SOC has to be within the specified limits (20% and 80% for most control strategies) to prevent batteries' damage, secure battery, avoid over-discharging, and increase battery life-time [50,51]. The state of charge is controlled within limits for also dealing with the sudden fluctuations and changes in renewable energies, especially for deterministic scenarios [52].

Power balance constraints
The total generated power by the available generating units of each scenario, such as WG, PV, biogas generator and ESS should always meet the load demand requirements in all considered scenarios. Eq (4.8) shows the sum of available PV and WG powers at each time, depending on their availability in each scenario configuration. Eqs (4.9)-(4.11) show the power balance constraint of each category.
For category (A): For category (B): For category (C):

Optimization techniques
Multi-objective optimization methods are used in this paper to consider all potential trade-offs between different objective functions, which are normally conflicting. Two optimization algorithms are discussed in this paper to find the optimum solution. Each algorithm uses the available input data (load demand profile, generating components, available resources and weather data) to achieve all the system's objectives. Optimal system configuration determines optimal system size, net present cost, total capital cost and the corresponding CO 2 reduction. The architecture of the optimization tool is illustrated in Figure 3.

Multi objective genetic algorithm (MOGA)
Multi-objective genetic algorithm is a meta-heuristic mechanism motivated by the natural selection technique, which is a part of larger classes of evolutionary algorithms. Genetic algorithms are widely used and biologically inspired by developers to produce high-quality optimization and search prospects, like mutation, crossover and selection.
MOGA utilizes a weighted sum of various objective functions in the selection stage and merges them into a scalar fitness function. The design characteristic of the various objective functions weights are not specified and randomly changed through each selection. Thus the search orientation in this algorithm is not fixed.
At each generation over the process of MOGA, an empirical series of pareto optimal solutions are stored and updated. Also, a certain number of solutions are picked at random from the series. Those solutions are considered elite individuals. The elite mechanism has the benefit of preserving the diversity of each population [53].
The block diagram of the proposed MOGA algorithm is shown in Figure 4, and it is described below: • Stage 1 (Initialization): generate an initial population.

ε− MOGA algorithm
The ε−multi-objective genetic algorithm depends on the vision of ε−dominance to test the optimisation's stored results in the A(t) archive. ε−pareto set (x * ) is produced, and it seeks to reach the optimal pareto front F(x * ) with bounded memory sources. Furthermore, It continuously changes the pareto front boundaries and avoids any loss of the solutions belonging to the front ends. The objective space is sectioned to a particular number of boxes N box which can be calculated from: where ε is the box's width and i∈ [1,2.....,N]. Each box can be filled with only one solution, which helps to preserve the divergence of F(x * ). For a specific solution, the box i (x) is defined by: A solution with x 1 ε-dominates x 2 where x 1 < εx 2 , when and only if Thus, a set x * ∈ x is ε-pareto when and only if A(t) is always updated by ε-dominant solutions which do not share the same box. The remaining solution always occupies the center of the box to accomplish the prevention of solutions belonging to neighboring boxes and increase the solution variety [54,55]. ε's goal is to reach X * with as many solutions as possible to adequately characterize the pareto front, which is bounded by: Three populations are generated To ensure solution variance. P(t) is the main population, Q(t) is the auxiliary population, and A(t) represents the archive of the best solutions. The proposed algorithm's principal steps are as follows: • Step 1: Begin with creating empty A(t).
• Step 2: Initializing the base population at random P(0). • Step 3: Calculate the corresponding function value P(t).
• Step 4: Test the applicable values to be included in A(t).
• Step 5: Generate Q(t) by using two random individuals from P(t) and A(t).
• Step 6: Calculate the corresponding function value for each individual in Q(t). • Step 7: According to the objective space location, test which individual can be added to A(t).
• Step 8: Update P(t) with individuals from G(t) by randomly comparing each value of G(t) with selected individuals of P(t). • Step 9: Eventually, the pareto front's smart characterisation is formed by individuals from A(t).

Uncertainties modelling
Because of weather effects on renewable energy, it became increasingly difficult to guarantee the system's reliability. Therefore, it is necessary to solve this issue by introducing PV and wind sources' uncertainty that primarily depend on weather conditions. Monte-Carlo Simulation (MCS) or Monte-Carlo approach provides an appropriate solution to quantitative issues by carrying out statistical sampling procedures.
A variety of random configurations may be used in this case to produce data and samples to reflect the solar radiation and wind speed variation. Each input is independently sampled to construct a random sequence {x i } N i=1 from U d (0,1) with estimated mean of [56]: The general approach of solving stochastic formulations is to transform stochastic models into deterministic problems. Monte Carlo approach succeeds in representing uncertainties by inputs sampling and defining them through the probabilities distribution functions [57,58].
MCS is conducted to generate a finite number of possible scenarios based on the probability distributions for all stochastic parameters [59], as shown in Figure 5. The microgrid sizing procedures with MCS used the same parameters of the deterministic problem formulation and can be described as follows [38]: • Step 1: Initialize algorithm parameters. • Step 2: Apply Monte-Carlo simulation techniques to produce plentiful different scenarios with the same probability. • Step 3: In each scenario, the optimum size is calculated by operating strategy. • Step 4: Test the constraint satisfaction to create the next generation and jump to step 5. • Step 5: Repeat step 2 to 4 till the specific iteration step is completed, or other termination conditions are met.

Simulation and results
Two optimization techniques are applied for nine scenarios of the microgrid to ensure load satisfactions. The comparison between these techniques is shown in Table 1. For comparison, the same systems are also studied in deterministic and stochastic cases to show the uncertainties effects in selecting the appropriate capacities of generating units, storage systems, and proper biomass generation implementation. Table 2 shows the stochastic results. The economic and technical specifications of the proposed system's components are listed in Table 3. In this work, the optimization and Monte Carlo simulation have been coded in MATLAB software.

Category (A)
In this category, there is no storage system. All available generated power is used directly to fulfil load requirements. Three combinations of generating units are studied in this category. Scenario (1) consists of PV with biomass, while scenario (2) consists of WG with biomass, and scenario (3) consists of a combination of PV and WG with biomass generator. Figures 7-9 show the generation load mismatch and the energy share of each generating unit for each scenario. The total cost of each scenario is plotted in Figure 10 to show the comparison between scenarios and show the percentages of capital cost with running cost.

Category (B)
Category (B) represents batteries and biomass generation's participation in the same configuration with other renewable sources. Scenario (4) consists of PV with biomass and BESS units. Scenario (5) integrates batteries with WG and biomass generators. Scenario (6) represents the share of all available system components (PV, WG, BESS and biomass). Figures 11-13 show the generation load mismatch and each generating unit's energy share for scenarios 4-6, respectively. Figure 14 shows the total system cost for each of category B' scenarios.        Cost ($) Capital Cost Operating and Maintenance Cost Figure 14. Category B cost.

Category (c)
This category is considered the most simple and economical category, but it has the lowest environmental concern of CO 2 emissions and rice straw problems. In this kind of systems, there is no existence of biomass technology. The power generation depends mainly on a combination of PV and WG. Figures 15-17 show the generation load mismatch and each generating unit's energy share for scenarios 7-9, respectively. The capital cost and operating with maintenance cost of this category are shown in Figure 18.

Discussion
In all scenarios, the load is met with optimal system size using two multi-optimization techniques. It is found that the results of the two optimization techniques have some similarities in some cases and differences in other scenarios. Thus, the simulation results for the nine scenarios confirm the following features: 1. Scenario 7 is the cheapest scenario between all discussed scenarios by a total system cost of $ 4.040 million with a PV capacity of 535.060 kWh and a total number of 22 battery sets. In contrast, PV without BESS scenario is not recommended because it is the highest cost scenario. It does not use the available capabilities of solar energy due to the lack of energy storage systems. However, it would be applicable in case of applying load demand control strategies. 2. ε-MOGA gives almost nearly equal results as MOGA for category A and C, but it gives different results for category B. It uses biomass generators with high capacity in category B, but it is used for a limited no of hours during the day, which causes the low cost of fuel and low corresponding total cost. Although the results of ε-MOGA for category B seems to be better than MOGA, it is not accepted as biomass generator is planned to be used for a limited number of hours during the day. It can not be used as a backup generator because biomass units take time to be inserted to the system. 3. Without using BESS as in category A, the amount of biomass share is very high. It reaches 81% in scenario 1 as the PV is the only generating system with biomass. Besides, PV does not work for more than thirteen hours of the all-day hours, as seen in Figure 7a. Introducing wind generators in category (A) is noticed to be more dependable as it exists during all-day hours. Although wind speed is not high at all times, its existence is better than solar existence. Biomass share is reduced to around 69% in scenario 2 and 3, which reduces the cost and increases the share of other generating units like WG in scenario (2) and both PV and WG in Scenario 3. 4. Category (B) is considered a mix between category (A) and (C). Both BESS and biomass are considered in this category. It is the most reliable category as BESS enhances the system performance in fluctuated weather conditions. In addition, bio-gas can be considered a backup generation in case of load increase or other generating unit outages. In this category, the percentage of biomass's share is decreased, and the percentage share of other renewable sources is increased. Wind generation share is about 75% and 50% in scenarios 5 and 6, respectively. While PV energy share is about 86% and 35% in Scenarios 4 and 5. Biomass energy share in scenario 4 is the same as scenario 6 by a value of 14%. This percentage increases in the case of PV absence, as in scenario 5. 5. From deterministic results, PV and wind power capacities increased by the integration of BESS.
By comparing category A with category B, PV increased by (3.6%) from scenario 1 to scenario 4. Also, WG capacity increased by (1.6%) from scenario 2 to scenario 4. In scenario 3, BESS integration increases PV capacity by (392.029 kWh) and decreases WG capacity by (386.004 kWh) as noticed from scenario 6's results. 6. From shown results in table 1, if BESS replaces biomass units in category A as in Category C, the cost of scenarios 1-3 will be decreased by ($ 174.66 million), ($ 144.503 million) and ($ 142.401 million) respectively. Removing biomass generators from category B reduces the total system cost and increases other renewable sources' share. By comparing scenario 4 with 7 and 5 with 8, PV power increased by (72.9 kWh), and wind power increased by (586.051 kWh). Also, by comparing scenario 6 with scenario 9, PV power is increased, and WG power is decreased like what happened in comparing scenarios 3 and 6. 7. PV energy share represents 100% in scenario 7, and WG represents the same amount in scenario 8.
It is found that category c is the most economically effective category as it recorded the least cost between other categories with about total cost of ($ 4.040 million), ($ 9.397 million) and ($ 5.599 million) for scenarios 7-9, respectively. 8. In scenario 9, the power share of PV is nine times the power share of wind. In the case of no storage, it is not economical to use a high PV amount. 9. When comparing scenario 7 with scenario 8, PV introduction is better than WG, with a cost reduction of about (57%). In comparison, (PV+WG+BESS) scenario is noticed to have ($ 1.559 million) over cost compared to scenario 7. 10. Biomass generation cost is high due to the high operating cost, including fuel, operating and maintenance costs. The high cost of Categories A and B illustrates the high use of biomass generation, as shown in Figures 10 and 14. Differently, the capital cost in category C's scenarios represents a significant percentage of the total system's cost, including the installation and establishment of the system, as seen in Figure 18. 11. (PV + BESS) is the best economical choice for sizing, but it is still unreliable if the weather changes as there is only a single generating source. In contrast, applying (PV with Biomass) is the highest cost scenario due to the storage system absence, so all power is fed at night from the biomass system, which is costly. 12. Biomass is an expensive choice for electricity generation, but it is an environmentally friendly choice that increases system reliability, especially in critical situations. It can be used as a backup in case of generation shortage. It is not economically recommended to use biomass generators alone without other generation sources. Hybrid renewable energy is the best energy choice for planning isolated microgrid as it leans on different types of sources. Moreover, renewable sources with storage systems are considered the best reliable option. 13. Using biomass for electrical generation is not effective only as a power source. It is considered a recycling process to get rid of unwanted waste. Rice straw using as biomass fuel helps in different environmental trends like clean electricity production, recycling process and CO 2 emission reduction instead of burning after harvest. The amount of rice straw satisfies the CO 2 emissions reduction. 14. Category (A) has the highest amount of biomass share, so it has the highest value of CO 2 reduction. Still, it is not economically to be applied, although it is the most eco-friendly category to reduce rice straw burning's threats. This category does not enhance or make the best benefits of renewable energy sources (PV and WG) due to the lack of storage systems. 15. Scenario 1 represents the highest dependence on rice straw of about (3.1 * 10 5 tons). Scenario 2's amount is near to scenario 3's amount with around (2.6 * 10 5 tons). The amount of rice straw for category (B) is less than category (A). Scenario 4 is the least dependant scenario on the biomass of category B's scenarios. 16. Category (C) is the cheapest microgrid sizing strategy, especially using (PV only with BESS). Due to the absence of biomass in this strategy, there is no CO 2 emission reduction from agricultural waste recycling. 17. The rating of biomass gasifiers is increased in all scenarios when comparing deterministic and stochastic results except scenario (1), which is almost the same as this scenario depends mainly on biomass generation. In addition, the number of battery sets increased in all scenarios by ratios between (0.13%) and (1.14%). It helps to overcome the uncertainties of renewable energies through the use of reserved power during unexpected bad weather periods. 18. Besides the increase in the energy storage or biomass capacities in most scenarios, PV and WG capacities are decreased as the sources uncertainties affect their productivity. Systems depend mainly on using extra power during good weather conditions or low load periods for charging batteries to enable its reuse during unexpected periods of low PV or WG generation capability. Furthermore, biomass generation guarantees more system reliability by having backup or controllable power sources in the worst conditions. 19. All scenarios cost increased by applying Monte-Carlo simulation to all scenarios to consider renewable energy uncertainties in the sizing process. The minimum cost increase is in scenario 7 by ($ 0.287 million). Whereas Scenario 5 has a maximum increase of about ($ 58.11 million) due to the increase of batteries and biomass share. 20. By taking into consideration renewable energy uncertainty, the cost increased by ($ 12.4 million), ($ 39.4 million) and ($ 41 million) for scenarios 1-3 respectively. Moreover, the solar and wind power capacities decreased by (22.538 kWh), (388.626 kWh) and (475.324 kWh). In contrast, the biomass share increased to handle the shortage of power. WG's use in scenario 9 is highly decreased, and the scenario depends mainly on PV power and storing it for low radiation periods. Furthermore, scenario 8's cost increased by ($ 0.673 million), the number of batteries is almost doubled, and the wind generation rating decreased by 302.19 kWh.

Conclusions
This paper proposed a 100 % clean microgrid from renewable resources. Multi-objective optimization techniques are utilized for sizing the system with minimizing load-generation mismatch and total system cost minimization as objective functions. Nine scenarios classified into three categories are presented to meet the load requirements. The first category is considered the basic case study with biomass generation implementation and without storage systems. BESS is presented in category B. Category C is considered the cheapest category without biomass generation integration and without consideration to the environmental impacts of biomass use.
Renewable energy is the prospective key for reducing the dependence on harmful fossil fuels in power sectors. Also, biomass is considered the future of recycling and energy production. The on-site generation will be cost-effective to reduce the operating and transportation cost of biomass fuel, so it is preferred for small-scale ranges in isolated microgrids. Biomass generation is costly compared to other generation units. Still, it has two fundamental preferences: it provides reliable generation, especially in considering solar and wind uncertainties. It also presents a recycling option for solving the threatening environmental problem of rice straw disposal in agricultural communities instead of open-air burning. Simulation results confirm that solar energy with a storage system is the best-preferred economical option. Moreover, the hybrid system of scenario 6 gives the reasonable ecological configuration of (PV/WG/BESS/Biomass), especially for sources uncertainties consideration. Applying demand response programs with a detailed feasibility study of its effect on enhancing the energy use and optimal generation sizing is the planned future work.