Energy, Exergy, Exergoeconomic, and Exergoenvironmental Assessment of Flash-Binary Geothermal Combined Cooling, Heating and Power Cycle

: This research presents the energy, exergy, economic, and environmental assessment, and multi-objective optimization of a ﬂash-binary geothermal CCHP cycle. A sensitivity analysis of production well inlet temperature and cooling to power ﬂow ratio on exergetic, economic, and environmental parameters was conducted. Furthermore, the effects of the inﬂation rate and plant working hours on economic parameters were investigated. Results showed that increasing the production well inlet temperature harms exergy efﬁciency and exergetic performance criteria and results in a gain in exergo-environmental impact index and heating capacity. In addition, the total plant cost increased by raising the production well temperature. Furthermore, increasing the cooling to power ﬂow ratio caused a reduction in exergy efﬁciency, exergetic performance criteria, and produced net power and an enhancement in exergy destruction, cooling capacity, and total plant cost. The exergy efﬁciency and total cost rate in the base case were 58% and 0.1764, respectively. Optimization results showed that at the selected optimum point, exergy efﬁciency was 4.5% higher, and the total cost rate was 10.3% lower than the base case. Levelized cost of energy and the pay-back period at the optimum point was obtained as 6.22 c$/kWh, 3.43 years, which were 5.14% and 6.7% lower than the base case.


Introduction
Energy and electricity demand in recent years is increasing, so researchers and industries are focusing on systems with higher productivity. Combined cooling heating and power (CCHP) is one of the most exciting solutions for researchers. Additionally, using renewable energies as a heat source has gained the attention of researchers. Geothermal energy is one of the most favorable renewable energies including unique features such as dependability and sustainability with a temperature range varying from 50 to 350 • C [1,2].
Ebrahimi et al. [3] analyzed a CCHP system according to energy and exergy concepts. They conducted some parametric evaluations such as inlet pressure and temperature of the turbine effects on system productivity. Their results showed that the most considerable exergy destruction in summer and winter is related to the vapor generator. Tempesti and Ahmadi et al. [4] analyzed a multi-generation ORC to generate power, cooling, and hydrogen from energy, exergy, and environmental aspects. They undertook multi-objective optimization to find the most favorable design parameters and minimized the system's total cost rate and maximized the efficiency of exergy. Al-Ali and Dincer [5] carried out an energy and exergy analysis of a multigenerational integrated geothermal and solar system to produce electricity, cooling, heating, and hot water. Their results presented the efficiency of the multi-generation exergy as 36.6% and the single generation as 26.2%. Ehyaei et al. [6] carried out an exergy, economic, and environmental assessment of a CHP internal combustion engine. Their results showed that an enormous amount of molar air to fuel ratio led to fewer electricity values and external costs. Additionally, the environmental impact depends on the system location and engine operation time. Chaiyat and Kiatsiriroat [7] investigated the feasibility of increasing ORC efficiency by the CCHP system from an absorption system according to the energy, economic, and environmental aspects. Their results illustrated that the ORC cycle with the absorption system had more efficiency than the ORC.
Darvish et al. [8] investigated the best working fluid for a regenerative ORC with low-temperature resources. Their results showed that the most considerable portion of exergy destruction is relevant to the boiler and expander. Imran et al. [9] studied three different geothermal ORC cycles (basic, recuperated, and regenerative ORC) from the energy and exergy points of view. They compared these cycles at optimum operating conditions by minimizing the specific investment cost and maximizing the efficiency. Zhao and Wang [10] performed an exergoeconomic assessment of a flash-binary geothermal cycle using ORC. A parametric study of flash pressure, ORC turbine inlet pressure, and temperature was conducted. Haghighi et al. [11] performed a comprehensive study of previous research done on ORC cycles with different operating conditions and configurations. They found that according to the geothermal-based ORC cycle features, the final efficiency and cost differed extensively. Anvari et al. [12] carried out a thermo-economic evaluation of a combined system. Additionally, they considered the effect of adding a regenerative ORC to the gas turbine and heat recovery steam generator. Aali et al. [13] conducted exergoeconomic analysis and single optimization of a single flash geothermal cycle. They assessed the effect of wellhead temperature and pressure differences of existing wells in the Sabalan area in Iran. Ahmadi Boyaghchi and Chavoshi [14] carried out energy, exergy, exergoeconomic, and environmental assessment of a solar-geothermal driven CCHP. They optimized this system for four different working fluids by the Non-dominated Sorting Genetic Algorithm II (NSGA-II) to reach optimum solutions. They compared the effect of these fluids on system performance. Shamoushaki et al. [15] carried out energy, exergy, exergoeconomic, and environmental assessments of a solid oxide fuel cell and gas turbine (SOFC-GT) system. They undertook multi-objective optimization of the considered system by the NSGA-II algorithm and performed a sensitivity evaluation of fuel cost per unit of energy effect on the efficiency of exergy and overall cost rate.
Ghaebi et al. [16] proposed a Kalina system and an ejector refrigeration combined cycle to generate power and cooling. They analyzed the main parameter changes on net-work, exergy, and thermal efficiencies, and capacity of refrigeration. Bianchi et al. [17] studied a micro-ORC case study using geothermal energy. Their results showed that the expander and feed pump efficiencies and the ORC efficiency at the geothermal well's arranged working conditions were 53%, 41%, and 4.4%, respectively. Leveni et al. [18] carried out an energy and exergy analysis of ORC integrated with a LiBr/water absorption chiller with the geothermal resource of Torre Alfina in the center of Italy. They developed the thermodynamic model in Engineering Equation Solver (EES) software and conducted a sensitivity analysis to study the plant operating range and the feasibility of design in adjusting to the customers' needs. Khosravi et al. [2] proposed an artificial intelligence approach to model geothermal ORC power systems. Their presented model predicted the net generated power, energy, and exergy efficiencies, and levelized cost of energy (LCOE) of the geothermal ORC system. Ehyaei et al. [19] conducted an exergy and exergoeconomic investigation of a combined geothermal cooling and power system. Their considered system was an ORC as an upper and the absorption chiller as the bottom cycles. They also carried out an optimization of this system by the particle swarm optimization (PSO) algorithm. Braimakis et al. [20] conducted an energy and exergy assessment of the ultra-supercritical biomass-fueled steam cycle. They performed sensitivity analyses for widespread ranges of heat demand. Their results illustrated that most exergy destructions were due to combustion and steam generation.
Wang et al. [21] conducted a thermodynamic and exergy analysis of a power and cooling generation system based on geothermal flash, organic Rankine, and ejector refrigeration cycles. They applied different working fluids to obtain a better system performance. Their results showed that a system with isopentane (0.3)/R142b (0.7) as a working fluid had the highest exergy efficiency and lowest exergy destruction. Tian et al. [22] studied a cogeneration double flash-binary geothermal power cycle to produce cooling and power. They performed multi-objective optimization of the system that caused a 20.59% increase in the net electrical power and 68.11% growth in exergy efficiency. Ahmadi et al. [23] investigated different ORC applications for power production from geothermal resources. They compared the considered configurations from the ORC economic index to find the most affordable cycle. Assad et al. [24] carried out an energy and exergy assessment of a single flash geothermal power cycle at the optimum separator temperature. Results showed that maximum energy efficiency at the well temperatures of 300, 275, and 250 K was 12.5, 11, and 9.5%, respectively. Gholizadeh et al. [25] found that flash-binary geothermal cycles are a promising technology to extend trigeneration systems for the generation of heating, cooling, and freshwater; however, they have received less attention. Ding et al. [26] proposed a combined flash-binary to generate cooling and power using a zeotropic fluid. They optimized the system using the NSGA-II algorithm to find the best operational parameters. Cao et al. [27] evaluated a double-flash-binary geothermal system to generate power and cooling. A sensitivity assessment of separator and condenser pressures and evaporator temperature variations on the system performance is done.
In the present research, the energy, exergy, economic, and environmental analysis of a flash-binary geothermal CCHP cycle is done. This combined system aims to generate power and heating by flash cycle and produce power and cooling by the ORC section. Thermodynamic modeling was expanded in MATLAB using Refprop 9.1 [28], and the thermodynamic properties of all points were obtained. The discretization method was applied to calculate a more accurate heat exchanger area value, which directly and significantly impacts the equipment cost. The optimization was carried out by the NSGA-II algorithm to reach an optimum solution and find the best design variable values. Two considered objective functions were total cost rate and exergy efficiency. Most researchers considered the various working fluids' impact on the system performance. Others have evaluated CCHP systems with various configurations and different heat sources (gas turbine, solargeothermal, fuel cell, etc.). Reviewing previous studies showed that many researchers have analyzed flash-binary systems from different aspects. They mainly focused on assessing the inlet temperature and pressure of the turbine and separator pressure impacts on system performance. However, in this study, the authors concentrated on the effects of the parameters that have not been considered widely in previous research such as cooling to power ratio, interest rate, plant working hours, and saved values of carbon dioxide and fuel. In addition, the designed configuration in this study has not been evaluated in other studies. The novelty and work done in this research are: • Sensitivity analysis of production well temperature and cooling to power flow ratio variations impact on the exergetic, economic, and environmental parameters; • Sensitivity analysis of the interest rate and plant working hours effects on the economic parameters; • Evaluating the change in these parameters on the exergo-environmental impact index to find the most environmentally friendly system; • The pay-back period estimation; and • Calculation of the saved amount of CO 2 and fuel consumption of the cycle due to using geothermal energy as a heat resource.

System Description
The schematic diagram of the flash-binary geothermal CCHP cycle is illustrated in Figure 1. The applied working fluid in the ORC cycle was isobutene. The temperature, pressure, and mass flow rate of the geofluid was 443.2 K, 901.3 kPa, and 100 kg/s, respectively. In this system, the hot water of residential buildings was produced by geothermal fluid (pure water), and cooling water was produced by the ORC cycle.

System Description
The schematic diagram of the flash-binary geothermal CCHP cycle is illustrated in Figure 1. The applied working fluid in the ORC cycle was isobutene. The temperature, pressure, and mass flow rate of the geofluid was 443.2 K, 901.3 kPa, and 100 kg/s, respectively. In this system, the hot water of residential buildings was produced by geothermal fluid (pure water), and cooling water was produced by the ORC cycle. In this system, geothermal fluid (water) with the heat obtained from geothermal resources (point 1) passes through the expansion valve. After pressure reduction, it goes into two phases. In the separator, these two-phase separate into two lines. The separator is adiabatic and reversible, so it operates at the same temperature. After entering into a flash turbine, the vapor generates power and flows into the heat exchanger to produce hot water for residential consumption and then goes to the injection well. Saturated liquid flows into evaporator 1 and gets its heat to the ORC fluid (isobutane), and water goes to the injection well. The ORC fluid with high enthalpy flows into the ORC turbine and generates power, then flows into the mixer, and after mixing with fluid coming from the compressor, it goes into the condenser to cool down by entering the air. Afterward, ORC fluid is divided into two flows to regulate the cooling to power ratio ( ), which in this study was considered as 0.2. Fluid through line 11 goes to the pump (to recirculate the ORC part for power generation) and through 14 flows into the expansion valve. After reducing the pressure by an expansion valve, it enters into an evaporator and absorbs heat from the water to produce cooled water for the cooling system, then flows into the compressor. The temperature-entropy (T-s) diagram is shown in Figure 2. In this figure, points 1, 4, and 7 are related to geothermal water. In this system, geothermal fluid (water) with the heat obtained from geothermal resources (point 1) passes through the expansion valve. After pressure reduction, it goes into two phases. In the separator, these two-phase separate into two lines. The separator is adiabatic and reversible, so it operates at the same temperature. After entering into a flash turbine, the vapor generates power and flows into the heat exchanger to produce hot water for residential consumption and then goes to the injection well. Saturated liquid flows into evaporator 1 and gets its heat to the ORC fluid (isobutane), and water goes to the injection well. The ORC fluid with high enthalpy flows into the ORC turbine and generates power, then flows into the mixer, and after mixing with fluid coming from the compressor, it goes into the condenser to cool down by entering the air. Afterward, ORC fluid is divided into two flows to regulate the cooling to power ratio (α), which in this study was considered as 0.2. Fluid through line 11 goes to the pump (to recirculate the ORC part for power generation) and through 14 flows into the expansion valve. After reducing the pressure by an expansion valve, it enters into an evaporator and absorbs heat from the water to produce cooled water for the cooling system, then flows into the compressor. The temperature-entropy (T-s) diagram is shown in Figure 2. In this figure, points 1, 4, and 7 are related to geothermal water.

Energy and Exergy Modeling
Mathematical modeling is done according to the first and second laws of thermodynamics. Some assumptions considered in this research are as follows:  The system operates under steady-state conditions [15].  The potential and kinetic energy are considered insignificant [19].  The ambient temperature and pressure are supposed 298.15 K and 1.013 kPa [8].


The pump, turbines, and compressors have isentropic efficiencies, that their values are brought in Table 1 [19].  The pressure losses of pipelines and all components are supposed to be negligible [29].
The mass and energy balance equations are written as follows [30]: Here, and are related to the control volume inlet and outlet. , ℎ, , and are mass flow rate kg/s , specific enthalpy kJ/kg , heat transfer, and work, respectively kW . Input parameters for the thermodynamic evaluation of this cycle are presented in Table 1. The pressure and temperature of the geothermal fluid were selected according to Wang et al. [31]. Additionally, the mass and energy balance correlations are presented in Table 2. The thermal efficiency can be calculated as [23]:

Energy and Exergy Modeling
Mathematical modeling is done according to the first and second laws of thermodynamics. Some assumptions considered in this research are as follows:

•
The system operates under steady-state conditions [15].

•
The potential and kinetic energy are considered insignificant [19].

•
The ambient temperature and pressure are supposed 298.15 K and 1.013 kPa [8].

•
The pump, turbines, and compressors have isentropic efficiencies, that their values are brought in Table 1 [19].

•
The pressure losses of pipelines and all components are supposed to be negligible [29].
The mass and energy balance equations are written as follows [30]: W are mass flow rate (kg/s), specific enthalpy (kJ/kg), heat transfer, and work, respectively (kW). Input parameters for the thermodynamic evaluation of this cycle are presented in Table 1. The pressure and temperature of the geothermal fluid were selected according to Wang et al. [31]. Additionally, the mass and energy balance correlations are presented in Table 2. The thermal efficiency can be calculated as [23]: Table 2. Equations of mass and energy balances [33].

No
Component Mass Balance Energy Balance Mixer Exergy is the highest theoretical work that can be achieved from an energy system. The exergy balance of each piece of equipment is [34,35]: .
where ex is the specific exergy of each stream (kJ/kg), and Ex W , and .
Ex D are the exergy of heat transfer, work, and exergy destruction of each component (kW), respectively. Exergy is divided into four different sections: kinetic, potential, physical, and chemical, and in this study, the chemical, kinetic, and potential were considered insignificant. The physical exergy of each stream is [34,36]: In the above equation, 0 refers to the reference condition, which is the same as the ambient condition. s is the specific entropy (kJ/kg.K) and subscript k refers to the kth component. The exergy destruction equations for the whole equipment are presented in Table 3. Exergy analysis of a system, one of the most significant variables, is the exergy destruction ratio, which defines the exergy destruction of each piece of equipment divided into total exergy destruction [12].
Additionally, the exergetic efficiency of each piece of equipment can be obtained as: Here, .
Ex P,k and .
Ex F,k are the exergy flow rate of product and fuel, respectively. Moreover, the coefficient of performance (COP) of the refrigeration part can be obtained as follows [19]: Exergetic performance criteria (EPC) is useful for technical decisions and can be written as [37]: The efficiency of exergy of the whole cycle is [38]:

Exergo-Economic Modeling
Exergoeconomic is a powerful and influential knowledge driven by a combination of economic and exergy concepts. It helps researchers reach a better understanding of systems from energy and economic points of view. It makes possible the economic design of energy systems that are not obtainable by standard economic modeling [34]. In the present study, the specific exergy costing (SPECO) method was applied to this system's exergoeconomic evaluation [39]. To the exergoeconomic modeling of this system, cost balance and auxiliary equations are considered, as presented in Table 4. Equation of cost balance for whole equipment is as follows [34,40]: where . C q,k is the unit cost rate of heat transfer ($/s); . C w,k is the unit cost rate of work ($/s), and . Z k is the capital cost rate.
. C i,k and . C e,k are the inlet and outlet cost unit ($/s), respectively. Unit cost rate can be written as [34,40]: where c k and .
Ex k are cost per unit of energy ($/kJ) and exergy rate of the kth stream of the cycle (kW), respectively. The total cost rate of the cycle is the sum of capital investments (CI) and operating and maintenance (O&M) cost, then [34,41]: Table 4. Cost balance and auxiliary equations.

Component Cost Balance Equation Auxiliary
Equation In this equation, Z k , ϕ, and N are the investment cost of the kth component ($), maintenance factor, and annual plant working hours (considered as 7446 h [14]), respectively. The purchasing cost correlations and their constant values are presented in Tables 5 and 6, respectively. Capital recovery factor (CRF) can be expressed as [34,42]: Here, i is the rate of interest which is considered 10% [43], and n is the useful life of the cycle that is supposed to be 30 years in the current study. In the exergoeconomic evaluation, by introducing each component product and fuel, the product and fuel cost of components can be calculated. Moreover, the cost rate related to exergy destruction can be obtained by multiplying specific fuel costs and exergy destruction of each equipment [34]. . .
where in these equations, c P,k and c F,k are the specific cost of product and fuel ($/kJ), respectively.
. C D,k is the exergy destruction cost rate of the kth component ($/s). The purchased equipment costs are shown in Table 5. Furthermore, the exergoeconomic factor and relative cost difference can be calculated as follows [34,44]:

Component Cost Correlation Ref
Pump Compressor Heat exchangers

Heat Exchangers Area Calculation
The discretization method is applied to calculate the heat transfer coefficient (U) and area (A) by partitioning the heat exchanger area into minor parts. It is essential because the area of heat exchangers has direct impacts on their purchase cost. The below equation can be used for each section: where To calculate the convective heat transfer coefficient, it can be written as: Energies 2021, 14, 4464 10 of 24 In this equation, Nu is the Nusselt number and λ is the thermal conductivity (W/mK). The Nusselt number can be calculated by the Dittus Boelter correlation as follows [52]: In the above equation, Pr is the Prandtl number, and Re is the Reynolds number. Furthermore, n for the cooling and heating process are 0.3 and 0.4, respectively [52]. For the calculation of the condenser area, the below equation is used to obtain the Nusselt number [53]: Additionally, to calculate the evaporator area, the below correlation is applied [54]: In the above equations, b, wa, and pc refer to the bulk, wall, and pseudo-critical, respectively. Finally, after calculating the area of each divided section, the overall heat exchanger area can be obtained: Specific investment cost (SIC) is an economic indicator that presents the total capital to net power ratio of the system and can be defined as follows [55]: Here, F s is the correction factor of overhead expenses [55]. The equations of the cost calculation of power plants are presented in Table 7 [55]. Table 7. The total capital investment and production cost [55].

Cost Item Correlation
Total direct permanent investment C DPI = TC B + C site + C serv + C alloc Total depreciable capital C TDC = C DPI + C cont Cost of contingencies and contractor's fee C cont = 0.18C DPI Total permanent investment C TPI = C TDC + C land + C royal + C startup Total capital investment C TCI = C TPI + C WC Cost of wages and benefits C WB = 0.035C TDC Cost of salaries and benefits C SB = 0.035C WB Cost of materials and services C MS = C WB Cost of maintenance overhead C MO = 0.05C WB Direct manufacturing costs C DMC = C WB + C SB + C MS + C MO Cost of property taxes and liability insurance C PI = 0.02C TDC Fixed manufacturing costs C FIX = C PI Total annual cost of manufacture C COM = C DMC + C FIX General expenses C GE = 0 Total production cost The geothermal well drilling cost is calculated as follows [19]: Well drilling cost = 16.5 × z 1.607 (30) LCOE (levelized cost of energy) is an important economic indicator. Low-cost electricity generation can lead to the investors' lucrativeness in a specific period; this is a proper explanation of a relatively low LCOE value [56]. This can be calculated as [55]: where E t is the generated electrical power in year t (kWh). The pay-back period (PBP) is the required time for an energy system to return its investment. It could give investors a better understanding of the risk of their investment. Pay-back time can be written as [55]: The pay-back period is calculated according to corporate tax rates and mean electricity prices for Iran's industry. The mathematical modeling flowchart of the system is illustrated in Figure 3.  Table 1 Calculation of thermodynamic properties, energy and exergy efficiencies of the system by equations of section 2.2

Calculation of exergoeconomic and exergoenvironemntal parameters by equations of section 2.3 -2.5
Stop Sensitivity analysis of the system

Exergo-Environmental Analysis
This cycle is compared with conventional fossil fuel power plants, which consume fuels and cause greenhouse gas emissions. As a geothermal power plant does not need fuel to generate electricity and gets its required energy from the geothermal fluid, these advantages, compared with conventional fossil fuel power plants, could be explained by a reduction in fuel consumption and carbon dioxide emissions in a year as follows [57]: In the above equation, α Petro is the average needed petroleum for generating 1 kWh of electricity, which is considered as 0.266 L/kWh [10], and α CO 2 is the amount of released carbon dioxide from fossil fuels for producing 1 kWh, which is considered 0.849 kg/kWh [10]. These reductions are related to the power plants' user phase and do not include the construction part as geothermal construction has some environmental impacts [58]. The exergoenvironmental indicator presents the systems' evaluation from exergy and environmental aspects and environmental impacts of the irreversibilities. The exergo-environmental impact factor can be calculated as [59,60]: The exergo-environmental impact index is an indicator that represents how much a system is environmentally damaging. It can be obtained from [59,60]:

Multi-Objective Optimization
The multi-objective optimization was done by the NSGA-II algorithm in MATLAB to obtain the optimum solution. Two objective functions were considered in the optimization process: total cost rate and cycle exergy efficiency. Optimization aims to minimize the cost and maximize efficiency. The selected design variables and their constraints are shown in Table 8. The main parameters of the optimization process are presented in Table 9. The first objective function is exergy efficiency (Equation (11)) and another function is the sum of the capital and exergy destruction cost rate of the components, which is as follows:

Solution Procedure and Model Validation
Energy, exergy, economic, and environmental evaluation of a flash-binary geothermal CCHP power plant was carried out in the present research. A sensitivity evaluation of the input temperature of the production well and cooling to power flow ratio on the cycle's exergetic and economic performance was done. Furthermore, the effects of interest rate and plant working hours on economic parameters were evaluated. The thermodynamic and exergoeconomic modeling was expanded in MATLAB using Refprop 9.1. Multi-objective optimization was carried out by the NSGA-II algorithm to find the best solution and value. The code was compared with a flash-binary cycle investigated by Wang et al. [31] and Kolahi et al. [61] to validate the modeling. The results showed that the present calculation had good compatibility with their results, which are shown in Table 10. The errors were mostly because of the database using thermodynamic properties in Refprop.

Optimization Results
The obtained Pareto frontier curve is illustrated in Figure 4. As can be seen, five different points were selected on this graph. Each Pareto point could be an optimum solution for selecting the final optimum point related to decision-maker opinion in a multiobjective optimization solution. Among these points, points B, C, D, and E had higher efficiency and points A, B, and C had lower cost rate values than the base case. Point C was selected as the optimum point for this optimization solution, which had a 4.5% higher efficiency and 10.3% lower cost rate than the base case. The values of the objective functions and design variables for all selected points are presented in Table 11.

Results of the Analyses
The thermodynamic properties of the evaluated power plant are shown in Table 12 and the main calculated parameters in both the base and optimum cases are presented in Table 13. The exergoeconomic variables of the cycle are shown in Table 14. Figure 5a illustrates the exergy efficiency and destruction changes against the production well inlet temperature. Regarding the results, increasing the production temperature well raises the exergy efficiency slightly at first, then decreases, and the decreasing trend has more slope at higher temperatures as irreversibilities increase. Exergy destruction had slight changes with a slight reduction at first up to 430 K, then increased. Raising the production well temperature increases the heat input into the system, which is more dominant at lower temperatures. However, more temperature enhancement causes a growth in the irreversibilities of the system.

Results of the Analyses
The thermodynamic properties of the evaluated power plant are shown in Table 12 and the main calculated parameters in both the base and optimum cases are presented in Table 13. The exergoeconomic variables of the cycle are shown in Table 14. Figure 5a illustrates the exergy efficiency and destruction changes against the production well inlet temperature. Regarding the results, increasing the production temperature well raises the exergy efficiency slightly at first, then decreases, and the decreasing trend has more slope at higher temperatures as irreversibilities increase. Exergy destruction had slight changes with a slight reduction at first up to 430 K, then increased. Raising the production well temperature increases the heat input into the system, which is more dominant at lower temperatures. However, more temperature enhancement causes a growth in the irreversibilities of the system.
The variations of EPC and exergo-environmental impact are presented in Figure  5b. Regarding this figure, raising the inlet temperature of the cycle causes a decrease in exergetic performance and an increase in the exergo-environmental index. A decline in EPC was due to the diminished net produced work and growth in the exergy destruction with the inlet temperature of the production well rising. Temperature increase from 428 to 448 K caused a decrease in EPC, diminishing from 1.99 to 1.91. This trend for the exergo-environmental index is converse; it increased from 0.502 to 0.524 in this temperature range. Increase in the exergo-environmental index is mainly due to decreased exergy efficiency, which means an increase in the destruction.    was due to the diminished net produced work and growth in the exergy destruction with the inlet temperature of the production well rising. Temperature increase from 428 to 448 K caused a decrease in EPC, diminishing from 1.99 to 1.91. This trend for the exergo-environmental index is converse; it increased from 0.502 to 0.524 in this temperature range. Increase in the exergo-environmental index is mainly due to decreased exergy efficiency, which means an increase in the destruction.  Figure 6a depicts the total plant cost and SIC variations against the inlet temperature of the production well. It is clear that increasing the inlet temperature of the production well led to a rise in total plant cost, mainly related to an increase in purchasing cost of some components. Additionally, raising the inlet temperature of the production well increased the SIC first (from 3.94 at 428 K to 4.28 at 436 K), and after reaching its maximum value at 436 K, it decreased to 4.08 $ W ⁄ at 448 K. At lower temperatures, the total cost increased as the temperature increased. This is the main factor in SIC growth; however, at higher temperatures, the produced power cost changes with more than lower temperatures, leading to a decrease in SIC. The production and produced electricity cost rate variations with the inlet temperature of production well increase is shown in Figure 6b. According to the obtained results, enhancing the cycle inlet temperature decreases the heat capacity of evaporator 2, which means a reduction in the cycle's cooling capacity. Furthermore, this temperature growth leads to the heat capacity enhancement of the heat exchanger and hot water production. Temperature growth directly impacts the heat exchanger capacity as it increases the system's input energy. The exergetic performance criteria and exergo-environmental impact index variations with the inlet temperature of the production well. Figure 6a depicts the total plant cost and SIC variations against the inlet temperature of the production well. It is clear that increasing the inlet temperature of the production well led to a rise in total plant cost, mainly related to an increase in purchasing cost of some components. Additionally, raising the inlet temperature of the production well increased the SIC first (from 3.94 at 428 K to 4.28 at 436 K), and after reaching its maximum value at 436 K, it decreased to 4.08 $/W at 448 K. At lower temperatures, the total cost increased as the temperature increased. This is the main factor in SIC growth; however, at higher temperatures, the produced power cost changes with more than lower temperatures, leading to a decrease in SIC. The production and produced electricity cost rate variations with the inlet temperature of production well increase is shown in Figure 6b. According to the obtained results, enhancing the cycle inlet temperature decreases the heat capacity of evaporator 2, which means a reduction in the cycle's cooling capacity. Furthermore, this temperature growth leads to the heat capacity enhancement of the heat exchanger and hot water production. Temperature growth directly impacts the heat exchanger capacity as it increases the system's input energy. Figure 7a displays the exergy efficiency and destruction of the cycle changes vs. cooling to power flow ratio. According to this figure, increasing this ratio causes a decline in cycle exergy efficiency and an enhancement in exergy destruction. It can be found from the results that increasing the cooling to power rate has a significant negative impact on the exergetic performance of the system, so that by raising α from 0.1 to 0.9, the exergy efficiency lessens from 64% to 20%, and exergy destruction grows from 2900 to 5600 kW. This negative effect is related to reducing net produced power with increasing α that reduces the system's efficiency and productivity. As the cooling to power flow ratio values change, the mass flow rate of division and its changes are constantly increasing, then the exergy efficiency and destructive behavior are linear. The effect of the cooling to power flow ratio on EPC and the exergo-environmental impact index is illustrated in Figure 7b. Exergetic performance declines with a gain in the cooling to power flow ratio, which is due to an increase in destruction. Moreover, as the destruction increases, the exergo-environmental impact index increases, which negatively affects the environment. Production and produced electricity cost rate variations against the production well inlet temperature. Figure 7a displays the exergy efficiency and destruction of the cycle changes vs. cooling to power flow ratio. According to this figure, increasing this ratio causes a decline in cycle exergy efficiency and an enhancement in exergy destruction. It can be found from the results that increasing the cooling to power rate has a significant negative impact on the exergetic performance of the system, so that by raising from 0.1 to 0.9, the exergy efficiency lessens from 64% to 20%, and exergy destruction grows from 2900 to 5600 kW. This negative effect is related to reducing net produced power with increasing that reduces the system's efficiency and productivity. As the cooling to power flow ratio values change, the mass flow rate of division and its changes are constantly increasing, then the exergy efficiency and destructive behavior are linear. The effect of the cooling to power flow ratio on EPC and the exergo-environmental impact index is illustrated in Figure 7b. Exergetic performance declines with a gain in the cooling to power flow ratio, which is due to an increase in destruction. Moreover, as the destruction increases, the exergo-environmental impact index increases, which negatively affects the environment.  Figure 8a presents the total plant cost and SIC variations vs. cooling to power flow ratio. It is straightforward that both total plant cost and specific investment cost increase with the rising cooling to power flow ratio. Increasing the cooling to power flow ratio causes growth in the compressor capacity, and consequently more expensive equipment. SIC growth is mainly related to a rise in plant cost and reduction in net produced power. Figure 8b shows the evaporator 2 heat and net produced power of the cycle changes vs. cooling to power flow ratio. Evaporator 2 heat capacity increases, and net power reduces with cooling to power flow ratio enhancement. Increasing evaporator 2 heat is due to a rise in the evaporator mass flow rate with rising . However, as increasing the cooling side mass flow rate increases the required compressor work, then the network declines. The variations in exergy destruction cost rate and LCOE against interest rate percentage are shown in Figure 9a. It can be seen that the growth in the rate of interest harms both the exergy destruction cost rate and LCOE, so that increasing the interest rate from 10% to 15% leads to an increase in the exergy destruction cost rate from 0.055 to 0.13 $ s ⁄ and LCOE from 4.3 to 8 c$ kWh ⁄ . Figure Figure 8a presents the total plant cost and SIC variations vs. cooling to power flow ratio. It is straightforward that both total plant cost and specific investment cost increase with the rising cooling to power flow ratio. Increasing the cooling to power flow ratio causes growth in the compressor capacity, and consequently more expensive equipment. SIC growth is mainly related to a rise in plant cost and reduction in net produced power. Figure 8b shows the evaporator 2 heat and net produced power of the cycle changes vs. cooling to power flow ratio. Evaporator 2 heat capacity increases, and net power reduces with cooling to power flow ratio enhancement. Increasing evaporator 2 heat is due to a rise in the evaporator mass flow rate with rising α. However, as increasing the cooling side mass flow rate increases the required compressor work, then the network declines. The variations in exergy destruction cost rate and LCOE against interest rate percentage are shown in Figure 9a. It can be seen that the growth in the rate of interest harms both the exergy destruction cost rate and LCOE, so that increasing the interest rate from 10% to 15% leads to an increase in the exergy destruction cost rate from 0.055 to 0.13 $/s and LCOE from 4.3 to 8 c$/kWh. Figure 9b depicts the effect of the interest rate change on production and the total cost rate. Results show that both the production and total cost rate increase with the growth in interest rate.   Figure 10a illustrates the exergy destruction cost rate and LCOE variations vs. the working hours of the power plant. It is clear from this graph that enhancement in working hours results in a decrease in both the exergy destruction cost rate and LCOE. The impact of the plant's working hours on the production and total cost rate is presented in Figure  10b. It is clear that the production and total cost rate have increased with the rising working hours of the plant.   Figure 10a illustrates the exergy destruction cost rate and LCOE variations vs. the working hours of the power plant. It is clear from this graph that enhancement in working hours results in a decrease in both the exergy destruction cost rate and LCOE. The impact of the plant's working hours on the production and total cost rate is presented in Figure  10b. It is clear that the production and total cost rate have increased with the rising working hours of the plant.  Figure 10a illustrates the exergy destruction cost rate and LCOE variations vs. the working hours of the power plant. It is clear from this graph that enhancement in working hours results in a decrease in both the exergy destruction cost rate and LCOE. The impact of the plant's working hours on the production and total cost rate is presented in Figure 10b.
It is clear that the production and total cost rate have increased with the rising working hours of the plant. The exergy destruction ratio of all components is presented in Figure 11. From this graph, the highest value of the destruction of exergy is related to the ORC turbine, which was 34%, and the lowest destruction was related to the separator and mixer. This cycle's pay-back time was about 3.66 years, which was reduced to 3.43 years by optimizing the cycle. The amount of saved CO2 and fuel in this cycle were 39,336 and 12,324.3 m during the lifetime of the power plant, respectively.  The exergy destruction ratio of all components is presented in Figure 11. From this graph, the highest value of the destruction of exergy is related to the ORC turbine, which was 34%, and the lowest destruction was related to the separator and mixer. This cycle's pay-back time was about 3.66 years, which was reduced to 3.43 years by optimizing the cycle. The amount of saved CO 2 and fuel in this cycle were 39,336 tonnes and 12,324.3 m 3 during the lifetime of the power plant, respectively. The exergy destruction ratio of all components is presented in Figure 11. From this graph, the highest value of the destruction of exergy is related to the ORC turbine, which was 34%, and the lowest destruction was related to the separator and mixer. This cycle's pay-back time was about 3.66 years, which was reduced to 3.43 years by optimizing the cycle. The amount of saved CO2 and fuel in this cycle were 39,336 and 12,324.3 m during the lifetime of the power plant, respectively.    Figure 11. The exergy destruction ratio of all equipment.

Conclusions
In this study, energetic, exergetic, exergo-economic, and exergo-environmental analyses of a flash-binary geothermal multi-generation system were conducted to generate power, heating, and cooling. According to the first and second laws of thermodynamic and exergo-economic concepts, the system modeling was extended in MATLAB. Multi-objective optimization was done by the NSGA-II algorithm to find the best design variables and objective function values. A sensitivity analysis of the inlet temperature of the production well and cooling to power flow ratio on exergetic, economic, and environmental parameters were studied. Furthermore, the effects of interest rate and plant working hours on economic parameters were evaluated. The brief obtained conclusions of this study are as follows: • The optimization results showed that at the selected optimum point, exergy efficiency was 4.5% higher, and the total cost rate was 10.3% lower than the base case. • Growth in the production well's inlet temperature decreased the exergy efficiency, exergetic performance criteria, and cooling capacity. In addition, it harmed the exergoenvironmental index. However, it increased the heating capacity and total plant cost of the cycle. The specific investment cost rose at first, and after reaching its maximum value at 436 K, it was reduced.

•
Raising the cooling to power flow ratio reduced the exergy efficiency, exergetic performance, and net power of the system as the irreversibilities rose. However, it increased the exergy destruction, total plant cost, exergo-environmental index, cooling capacity, and specific investment cost.

•
Increasing the interest rate caused a rise in exergy destruction, total cost rate, and LCOE. Evaluation of the increase in the plant working hours showed a reduction in exergy destruction, production and total cost rate, and LCOE.

•
The saved CO 2 and petroleum amounts were about 39,336 tonnes and 12,324.3 m 3 during the lifetime of the power plant due to use of the geothermal energy as a heat source instead of fossil fuel-based power plants. These reductions are related to the user phase of the power plants.

•
The most considerable portion of exergy destruction pertained to the ORC turbine; after that, HX and evaporator 1 had the most destructions.

•
The LCOE in the optimization state was 5.14% lower than the base case. Furthermore, optimization reduced the pay-back period by 6.7% compared with the base case (Reduced from 3.66 to 3.43 years). Funding: This research received no external funding.

Conflicts of Interest:
The authors declare no conflict of interest.