1. Introduction
One of the severe impacts of climate change is the alteration of precipitation patterns, leading to changes in land use, increased occurrences of floods, and intensified droughts. These changes pose a significant threat to human populations, particularly in regions like California in the USA and the Middle East [
1]. Beyond water scarcity, these areas face a growing need for unforeseen levels of cooling, heating, and electricity, driving the demand for new sources of freshwater, such as desalinated seawater. This demand marks a shift away from traditional standalone engineering solutions towards integrated cogeneration systems. These systems, which produce both freshwater and energy, are increasingly sought after, especially when powered by renewable energy sources to reduce greenhouse gas emissions [
2]. Consequently, the integration and optimization of these systems with renewable energies, focusing on efficient configurations and advanced heat recovery methods, have become critical areas of interest within the research community.
Optimizing the techno-economic performance of cogeneration systems through the recovery of waste heat is a pivotal element of various applications. In one such example of this optimization, leveraging the recovery of waste heat in the natural gas cycle within a power and freshwater cogeneration configuration proved to significantly reduce total annual costs to USD 1,559,491, yielding an annual return on investment of USD 598,833 [
3]. Dos Reis et al. [
4] developed a new methodology for heat, power, and cooling cogeneration by recovering waste heat from bottoming cycles; they achieved 26.15% energy efficiency with a 6.085% saving on primary energy. Integrated recovery of waste heat, carbon capture, and dehumidification could improve the power generation and thermal efficiency of a coal-fired power plant by 13.34% and 5.74%, respectively, within 5.36 years compared with recovering capex [
5]. Moreover, waste heat recovered from a pressurized water reactor has shown the potential to elevate the economic efficiency of direct-contact membrane distillation, allowing this method to compete with traditional multi-effect distillation (MED) and multi-stage flash (MSF) desalination technologies [
6]. This achievement is particularly noteworthy, given that the standalone MSF process traditionally exhibits the smallest water loss among freshwater production methods [
7]. Esmaeilion et al. showed that exergetic performance of integrated systems provides limited opportunities for optimization [
8]. Thus, environmental considerations play a crucial role in the configuration of components, performance enhancement, and system optimization [
9]. Considering the drop in the performance of gas turbines (GTs) in hot seasons, studies like those by Abdulrahim and Chung [
10] have compared the efficacy of evaporative cooling and solar energy-fired absorption refrigeration systems in improving the performance of said cogeneration systems. Their results showed that the given plant’s overall exergy efficiency could increase by 5.96 to 6.73% after reducing the compressor inlet air temperature. Other research has investigated the use of evaporative coolers, spray inlet coolers, fogging systems, and mechanical vapor compression for similar purposes [
11]. However, the potential of utilizing cooling from combined desalination and refrigeration systems to chill the air taken in by GT compressors in integrated systems remains an underexplored topic.
Ensuring the sustainability of energy systems necessitates a comprehensive approach that extends beyond energy efficiency to include the minimization of heat rejection and emissions. The circular integration of thermal and chemical processes presents a promising avenue for producing freshwater, meeting other needs without resorting to hazardous emissions or significant water losses for the purpose of cooling [
12]. Although strides have been made in mitigating climate change through such approaches, the achievement of net-zero carbon emissions cannot only be the responsibility of biogas-driven facilities. Renewable forms of energy and hydrogen units are two promising alternative options for the reliable operation of eco-friendly community systems [
13]. An integrated binary geothermal energy system, as a green energy-based example, could ensure a capacity of 0.019 kg/s of green methanol with 36.96% energy and 39.31% exergy efficiencies through the elaborate production and use of hydrogen [
14]. Despite the hybridization approach being more economic, long-term hydrogen storage and conversion are attracting great attention due to the greater exergy efficiency they can provide. For instance, Rodríguez et al. [
15] reached a 52.04% exergy efficiency by integrating a sulfur–iodine thermochemical cycle and an MSF desalination process in a hydrogen and freshwater cogeneration system. Contrarily, Al-Fadhli et al. [
16] minimized total annual costs by retrofitting desalination facilities, thermal power plants, and battery storage with photovoltaic arrays. They showed that maintaining a consistent capacity in a photovoltaic array is feasible with carbon tax rates ranging from USD 20 to 120/t CO
2. As carbon prices rise and corporations commit more strongly to decarbonization, the need for efficient, long-term planning in order to navigate the complex landscape of cogeneration technologies becomes more imminent [
17]. Optimization models will therefore have a critical role in guiding the more sustainable development of energy systems.
Optimization techniques have been extensively applied in order to enhance the design and operation of model-based cogeneration systems. Mosaffa et al. [
18] applied parametric optimization to a parallel combined cooling and power cogeneration system and reduced the payback period to 4.8 years by reaching energy and exergy efficiencies of 68.8% and 37%. Sun et al. [
19] demonstrated how a multi-objective optimization model could harmonize the thermodynamic and economic aspects of a cooling and power cogeneration system, managing to decrease the economic costs and exergy destruction rate by 1.6% and 31.5%, respectively. Such models have also been beneficial for cogeneration systems involving freshwater production and cooling/heating, which typically utilize either membrane-based methods like reverse osmosis or thermal techniques such as MSF and MED [
20]. These desalination processes, requiring both power and heat, are often paired with vapor compression or absorption refrigeration systems to leverage common energy sources (such as the heat that is rejected from gas turbine plants), thus enhancing system efficiency. One such optimal electricity and freshwater cogeneration system reached 45.6% exergy efficiency, a 2.716 USD/GJ total product cost rate, and 30.26 kg/s CO
2 emission using natural gas and a heliostat solar field [
21]. Using a multi-objective particle swarm optimization algorithm, the exergy efficiency, net output power, and net present value of a power and heating cogeneration system increased to 44.083%, 8008.6 kW, and USD 14.566 M, respectively [
22]. Although a classical linear programming technique for multidimensional analysis of preference may increase the net power and freshwater production rate of a cogeneration system from 5601 kW and 39.5% at the base configuration to 7070.52 kW and 41.16% after optimization [
23], advanced metaheuristic optimization tools are usually chosen to improve both the energy and exergy efficiency of power–freshwater cogeneration systems. Using a genetic algorithm, Jafarzad et al. [
24] improved the energy and exergy efficiency of a power–freshwater cogeneration system by 2.18 and 1.54 times, respectively. Charmchi et al. [
25] extended the model to a many-objective optimization formulation and proposed a flexible system that can operate in various modes. Despite these advancements, potential green energy supply systems remain underexplored.
Acknowledging the indispensability of renewable forms of energy as cogeneration systems adapt to the conditions of climate change and transition to a net-zero future, this study introduces a novel approach for designing an efficient, renewable-energy-driven integrated cooling–freshwater system. In accordance with the aforementioned research gaps, we present three innovations.
To investigate the potential of cooling the inflow air of a GT to enhance overall thermodynamic performance, a novel configuration of the integrated system uses an internal heat exchanger to transfer heat to a bottoming refrigeration cycle.
In response to the lack of a general computational platform that links iterative thermal simulation models with vectorized mathematical models of renewable energies, a new integrated thermo-environ-economic framework is proposed for comprehensive system evaluation.
The variable of modified total annual cost (MTAC) is introduced as a novel economic target to reduce the computational costs of the large optimization models.
The rest of the paper consists of three major parts. Firstly, thermodynamic, economic, exergoeconomic, and environmental models of the integrated system are developed to form an optimization platform. Secondly, a model-based integrated renewable-energy-driven cogeneration system is validated using a case study from the Middle East. Finally, the results are discussed—considering the uncertainties of fossil fuel prices, solar radiation, and wind speed—via a sensitivity analysis conducted under optimum conditions.
2. Materials and Methods
This section details the configuration, modeling framework, and optimization strategy of the proposed system.
Section 2.1 elucidates the layout of the proposed system, which integrates three interdependent subsystems into a single cogeneration system with internal heat recovery potential. Subsequently, the system is mathematically modeled using basic thermodynamic principles (
Section 2.2) and incorporates primary economic, exergoeconomic, and environmental analyses within a new modeling platform (
Section 2.3). An iterative mathematical model simulates the thermal units, while vectorized programming techniques are used to model the green units. These three analyses are essential for evaluating the system’s performance. The variables derived from these primary analyses form the terms of a novel optimization objective function discussed in
Section 2.4. This objective function determines the system’s final configuration and the energy trade among the subsystems. Finally, the sensitivity of the optimal system to various renewable and non-renewable fuels is analyzed in
Section 2.5, assessing the robustness of the model-based system with respect to different fuel inputs.
2.1. System Configuration
As depicted in
Figure 1, the proposed integrated system comprises three principal subsystems: the integrated MED, absorption heat pump (ABHP), and vapor compression refrigeration (VCR) subsystem, collectively referred to as the MAV subsystem within this study. Additionally, it includes a combined heat and power (CHP) subsystem, and a hybrid renewable power (HRP) subsystem equipped with battery and hydrogen storage options, denoted HRP/BH. The MAV subsystem, presented in a blue polygon in
Figure 1, is responsible for generating the integrated system’s freshwater and cooling outputs, with its requisite heat and power supplied by the CHP and HRP/BH subsystems. A portion of the cooling produced by the VCR unit is utilized to cool the air in the CHP unit’s compressor inlet, thereby boosting efficiency. Freshwater generated in the MAV subsystem’s final stage undergoes expansion via the expansion valve (EV
2), enabling it to flow through the evaporator. In the evaporator, the saturated liquid turns to saturated vapor by absorbing heat from the surrounding air. The vapor refrigerant, saturated upon exiting the evaporator, is split into two pathways: one is directed to the absorber after compression by the low-pressure compressor, while the other is compressed by a high-pressure compressor and channeled to the MED unit’s first stage to meet its energy requirements. The high-pressure compressor functions as a mechanical heat pump for the MED unit, relying on electricity instead of a hot source. The refrigerant compressed by the low-pressure compressor is absorbed by the concentrated solution in the absorber before being pumped through a solution heat exchanger (SHX) to the generator at elevated pressure. The MED subsystem’s heating steam is sourced from two streams: the first is produced by the LiBr-H
2O boiling off due to heat from the heat recovery steam generator (HRSG) in the generator; the second stream results from a part of the vapor condensed in the MED-ABHP unit’s first stage, which is vaporized by reclaiming heat from both the solution and the compressed vapor in the absorber.
As shown in
Figure 1, the hot steam is introduced to the tube side within the first stage of the MED-ABHP unit, before being condensed by releasing its latent heat into the feed water for evaporation. Some of the resulting condensate recirculates to the absorber, while the rest enters the first flashing box. Demisted vapor formed in the first stage and the flashed vapor from the first flashing box are used together as heating sources in the first pre-heater to preheat the feed water to the first stage. This combined vapor then moves to the second stage, acting as the heat source for vaporizing the feed water therein. This cycle repeats across all stages, culminating with the vapor from the final stage passing through a condenser. Part of this condensed vapor functions as a refrigerant (via EV
2), with the remainder being directed to the distillate tank as resulting freshwater. The cooling water for the MED unit is split; one stream is used as feed water across stages, and the other is discharged back into the sea. The electricity needed for the high- and low-pressure compressors and the solution pump is provided by the CHP and HRP/BH subsystems, and the heat needed in the generator is provided by the HRSG of the CHP subsystem. In the CHP subsystem, air cooled by the MAV system’s evaporator is compressed by an air compressor (AC) and then fed into a combustion chamber (CC) where fuel is added. The resulting hot gas expands through a gas turbine (GT), generating shaft work to power both the AC and a generator (G). This expanded gas is then processed through an HRSG component, which recovers the waste heat from the exhaust gas to generate motive steam for the MAV generator. The CHP subsystem, restricted by purple lines in
Figure 1, operates on purified natural gas.
In the HRP/BH subsystem, as represented by a green rectangle in
Figure 1, electricity from a wind turbine is utilized to power the compressors and pump directly. Any surplus electricity from the wind turbine undergoes conversion to direct current (DC) via a rectifier. This DC power, along with that generated by solar photovoltaic (PV) panels, is initially used to charge the battery system. Once the battery reaches full capacity, additional electricity is routed to a DC/DC converter, enhancing system efficiency through voltage stabilization. This stable electrical output is then used in a deionizer for water deionization, the product of which is supplied to an electrolyzer. The electrolyzer’s function is to split water into hydrogen and oxygen, which are subsequently stored in separate tanks for later use. The electrolyzers and hydrogen facilities are shown in schematic figures in the box at the right-hand side of the solar PVs and wind turbined in
Figure 1. Should the electricity generated by the wind turbine fall short of the system’s demands, the stored DC power is mobilized by discharging the battery, converting it to alternating current (AC) using an inverter. If the battery is fully depleted, the system then taps into the stored hydrogen and oxygen, channeling them into a fuel cell to generate electricity, with water produced as a by-product. The electricity from the fuel cell, adjusted for voltage compatibility with the DC bus via a DC/DC converter, supplements the system’s power supply. The hierarchical nature of this electricity management strategy, prioritizing battery discharge before fuel cell utilization, guides the optimization of the integrated system’s design.
2.2. Mathematical Model
Figure 2 shows the computational framework of the proposed model, which integrates thermodynamic, environmental, and economic models for each subsystem to calculate overall exergy destruction, total annual costs (TACs), and hazardous emissions. As indicated in the figure, the rate of cooling and freshwater production is influenced by the refrigerant ratio within the MAV subsystem. The power demand dictates the sizing of the CHP and HRP/BH subsystems based on the power ratio (PR). The red arrows show the critical variables calculated while simulating a subsystem and used in modeling other subsystems. Following the management strategy outlined in
Section 2.1, the models for all subsystems are defined, facilitating the calculation of the exergy destruction costs, MTAC, and emissions of CO and NOx for the entire integrated system. These variables then serve as inputs for an optimization platform. Detailed mathematical models for all three subsections are provided in subsequent sections to elucidate the proposed methodology.
Several simplifying assumptions were made in the development of the thermodynamic model of the system, as outlined below [
26]:
The system operates under steady-state conditions.
Heat losses and pressure drops in piping and components are considered negligible.
The concentration of water/lithium bromide (LiBr) in the steam phase is assumed to be zero.
The water/LiBr solution at the generator and absorber outlets is in a saturated state.
The refrigerant at the outlets of the evaporator and condenser in the VCR cycle is saturated.
All gases are treated as ideal gases.
2.2.1. The MAV Subsystem
The MAV components are simulated according to the modeling assumptions and the mathematical equations in this section. The mass, concentration, and energy balance of the generator, absorber, evaporator, EV, and SHX components are presented in Equations (1)–(3), respectively [
27,
28].
where
is the mass flow rate,
is the solution concentration,
is the specific enthalpy, and
is the net heat rate of the component. The subscripts
and
represent the inlet and outlet streams, respectively. The power consumption (
) of the pump is given by Equation (4) [
29].
where
is the isentropic efficiency, and the subscript
represents the pump. The MED unit is modeled using the equations developed by Esfahani et al. [
30] and Charmchi et al. [
25]. Mass balance equations of the first and second to
nth stages and the end condenser are given by Equations (5) through (7), respectively.
where subscripts
B,
F, and
D represent brine, feed, and distillate streams, respectively. Subscripts
i,
r, and
Con. represent the number of stages, entrained steam, and condenser, respectively, and
y is the flash ratio. The produced freshwater mass flow rate (
) is given by Equation (8).
where
is the refrigerant mass flow rate. The salinity balance equations of the first, and second to
nth stages are given in Equations (9) and (10), respectively.
where
X is salinity, and subscripts
i and
sw represent the number of stages and seawater, respectively.
Energy balance equations of the first stage and second to
nth stages are given by Equations (11) and (12), respectively.
where
L is the latent heat of the stream.
is the mass flow rate of the motive steam, and
is temperature difference between the
ith and (
I − 1)th effects, which is assumed to be equal among the effects to achieve the optimum operating conditions, as outlined in Equation (13).
The power consumptions of the low- and high-pressure compressors (
) are obtained using Equation (14).
where subscript
com represents the compressors,
Cp is the specific heat capacity at constant pressure, and
T is the temperature, obtained using Equation (15) [
12].
where
ηcom is the isentropic efficiency of the compressor,
γsteam is the heat ratio of steam, and
rcom is the pressure ratio of the compressor, calculated using Equation (16).
where
P is the pressure. The refrigerant ratio from the low-pressure compressor to the high-pressure compressor (RR) is calculated by Equation (17).
where the subscripts HP and LP denote the high-pressure and low-pressure compressors, respectively. The ratio, RR, indicates the distribution of refrigerant flow between the low-pressure and high-pressure turbines within the system, ranging from 0 to 1. As depicted in
Figure 2, RR plays a pivotal role in defining the configuration of the adaptable MAV subsystem. With an RR value of 0, all refrigerant from the evaporator is directed to the low-pressure compressor, thereby increasing the MAV subsystem’s heat demand. Conversely, with the RR set to 1, the entire refrigerant flow from the evaporator is compressed by the high-pressure compressor, leading to a reduction in the MAV subsystem’s heat requirement.
Table 1 outlines the initial operating and thermodynamic parameters for the MAV subsystem [
25,
30].
2.2.2. The CHP Subsystem
The thermodynamic models developed by Ifaei et al. [
12] were adopted to simulate the CHP subsystem. Equations (14) to (16) are used to determine the power consumption and thermodynamic properties of the airflow exiting the AC. The mass and energy balance equations of the combustion chamber (CC) are given in Equations (18) and (19).
where the subscript
flue represents the outlet flue gas,
is the lower heating value, and
is the efficiency of the combustion chamber.
The power generated by the gas turbine (
) and the net power generated in the CHP (
) are obtained using Equation (20)
where
is the heat capacity of the GT inflow,
is the temperature difference between GT’s inlet and outlet streams, and
is the power consumed by the air compressor. The detailed computational approach for the combustion model, along with all necessary constants, is outlined in [
12]. Key constants employed in this analysis are consolidated in
Table 2.
2.2.3. The HRP/BH Subsystem
The HRP/BH subsystem incorporates solar PVs, wind turbines, electrolyzers, fuel cells, and hydrogen storage tanks. The power output of the solar PVs was obtained using Equation (22) [
31].
where
is the power output of PV module under standard test conditions (STC),
is the PV’s derating factor,
is the temperature coefficient of power,
is PV cell’s temperature,
is the PV cell’s temperature under STC, and
is the total solar radiation on the tilted PV module, which is determined using Equation (23).
where
,
, and
represent the direct beam, diffuse component, and ground-reflected component of solar radiation, respectively.
is obtained using Equation (24).
where
is the ambient temperature,
is the nominal operating cell temperature,
is the ambient temperature at which the NOCT is defined (20 °C),
is the solar radiation at which the NOCT is defined (0.8 kW/m
2),
is the maximum power point efficiency under STC,
is the solar transmittance of any cover over the PV array, and
is the solar absorptance of the PV array.
Table 3 details the characteristics of the PV module utilized in this study, with additional modeling information available in [
31].
The power output of the wind turbines (
) is obtained using Equation (25).
where
is the loss factor,
is the air density at the hub height,
is the air speed at the hub height,
is the swept area by the turbine’s blades, and
is maximum theoretical efficiency of the turbine. The characteristics of the wind turbine used in this study are presented in
Table 4, and the further modeling details can be found in [
31].
The actual industrial sizes of the hydrogen storage system components, including the electrolyzer, hydrogen tank, and fuel cell, are calculated by considering the power losses based on the actual appropriate hydrogen tank electricity capacity (
) and the components’ efficiencies. The actual volume of the hydrogen tank (
) is calculated using Equation (26).
where
and
are considered to be 2.5 m
3 and 200 bar, respectively [
32].
The number of electrolyzer cells (
) is obtained using Equation (27).
where
IEL is the current through the electrolyzer (
A),
VEL is the working voltage (
V),
tAHSSC is the time interval duration related to
AHTCa, and
ηEL is the efficiency of the electrolyzer.
IEL, and
VEL are considered to be 3.8 A and 11.32 V, respectively [
12].
The number of cells in the proton exchange membrane fuel cell (PEMFC) can be obtained using Equation (28).
where
NFC is the number of fuel cells and
IFC and
VFC are the output current and voltage of the fuel cell, which are considered to be 2.92 A and 4.93 V [
12].
tAHTC is the time interval duration associated with
AHTCa, and
ηFC is the efficiency of the fuel cell. The technical properties of the energy storage system used in this study are summarized in
Table 5 [
12,
33,
34].
2.3. System’s Analyses
To integrate the fundamental mathematical model with an optimization framework, it is essential to conduct economic, exergoeconomic, and environmental analyses. These analyses serve as a computational bridge, facilitating the transition from initial conceptual models to optimized configurations.
2.3.1. Economic Analysis
The economic performance of the system was analyzed using the models developed by Ifaei et al. [
12] and Charmchi et al. [
25] to obtain
TAC as given in Equation (29).
where
TCC is the total capital cost,
ir is the interest rate,
lt is the lifetime of the project, and
AOC is the annual operation costs obtained using the data in
Table 6. The TCC is computed using Equation (30).
where
is the purchased equipment costs, and
represents the contingency costs that include civil and construction, engineering and supervision costs, which is assumed to be 0.15 of the total purchased costs at the computation year, 2023 [
12].
of the electro-mechanical components is obtained by the nonlinear equations from [
12,
25,
31], and that of the heat-exchanging units (
), such as the absorber, evaporator, and SHX are obtained using Equation (31).
where
Ci is the cost of the
ith component in the reference year,
Qi is the transferred heat rate,
Ui is the overall heat transfer coefficient,
Ai,ref is the area of the
ith reference component, and
is the logarithmic mean temperature difference. The economic constants and parameters are summarized in
Table 6. Some parameters are directly obtained from cited references [
12,
25,
35], whereas others are harmonized to be used in this model.
2.3.2. Exergoeconomic Analysis
The exergy destruction rate (
) of each component was obtained using the exergy models developed by Charmchi et al. [
25]. The exergy balance equation is given in Equation (32).
where
,
,
,
, and
are the exergy rate, power, temperature of the dead state (298 K), absolute temperature, and heat rate of the stream, respectively. The exergy rate of the fuel (
), product (
), and lost (
) streams are obtained using Equation (33) [
25].
The exergoeconomic analysis was conducted using the annual cost flow of each component in a cost-flow approach [
36]. The exergoeconomic balance equations of each component of the system are given in Equations (34)–(36) [
25].
where
is a cost rate of the exergy,
c is the unit cost, and
is the cost rate of a component obtained from the economic model detailed in
Section 2.3.1. The subscripts
W,
Q,
I, and
R represent the power, heat, investment and replacement, respectively.
2.3.3. Environmental Analysis
The environmental analysis encompasses hazardous emissions due to combustion of fossil fuel in the GT. Here, we calculate CO and NOx emissions as the indicators of the environmental analysis, as outlined in Equations (37) and (38).
where
is the retention time of the combustion chamber (0.002 s),
is the chamber’s inlet pressure,
is the pressure drop in the chamber (3%), and
is the adiabatic flame temperature of the chamber, which is calculated using Equations (39)–(41) and the parameters reported in [
37].
2.4. Optimization Model
Upon achieving converged solutions through the mathematical model, alongside exergoeconomic, economic, and environmental analyses, an iterative optimization model was developed. The major aspects of the model are detailed in this section.
2.4.1. Objective Function
Figure 3 shows the flowchart to obtain the objective function of the optimization model considering the whole integrated system. Accordingly, a modified total annual cost (
) is defined as a summation of the total cost of exergy destruction of the integrated system (
), total annual cost of that (
), and its environmental emission cost (
) of the MAV-CHP-HRP/BH system, as given in Equation (42).
where
is the summation of the exergy destruction costs of all components obtained by Equations (32) through (35),
TAC is obtained using Equation (29), and
is determined considering the environmental damage cost due to CO and NOx emissions using Equation (43).
where
and
are unit damage costs of the NOx (6.853
$/kgNOx) and
CO (0.02086
$/kgCO), respectively [
38].
2.4.2. Decision Variables
The decision variables of the optimization model were selected based on the physical limitations of the system, logical boundaries of the feasibility space, and the design criteria for each subsystem. Within the MAV subsystem, the determination of heat and power requirements—given the demands for freshwater and cooling—relies significantly on the
RR. As such,
RR emerges as a crucial decision variable due to its profound impact on the integration of the MAV, CHP, and HRP/BH subsystems. In addition, the absorber pressure (
PA), temperature difference between effects of the MED system (Δ
TMED), temperature of the strong solution from absorber (
Tss), and temperature of the weak solution from generator (
Tws) are selected as four key design parameters of the MVA. Their variation range is given in
Table 7 [
12,
25].
PR is another crucial decision variable that substantially influences the optimization of the MAV-CHP-HRP/BH system, which plays a pivotal role in the power generation capabilities of the CHP and HRP/BH subsystems. Within the CHP subsystem, pressure ratio (
rp), inlet and outlet temperatures of turbine (
Tin,GT and
Tout,GT), and compressor inlet air temperature (
Tin,com) are identified as four key physical constraints. These constraints are detailed in
Table 7 [
12]. For the RES subsystem, the sizes of the solar PV panels and wind turbines, along with the tilt angle of the solar PV panels, are deemed the most critical design criteria. These factors are selected as significant decision variables, impacting the system’s overall efficiency and effectiveness in harnessing renewable energy [
31].
2.4.3. Optimization Method
The single-objective optimization problem was solved by a genetic algorithm (GA). The GA, as a parallel, heuristic, and population-based search method, was used to find the optimal solutions among a large number of feasible solutions via an evolution-based stochastic search and selection approach. The GA can solve multidimensional, non-differential, non-continues, and non-parametric problems due to its independency from error surfaces [
39]. The optimum quantities of the decision variables presented in
Table 7 were used to minimize the MTAC
tot in four steps: chromosome structure and initial population size, fitness value, evolution, and terminal condition. In this study, the MTAC
tot function, represented by Equation (42), was hired as the fitness function. The next generations were reproduced using a reproduction operator by selecting the fittest chromosomes as the patents. The crossover and mutation rates were set to be 0.5 and 0.05, respectively. The iteration was terminated by selecting the best members of the population in the feasible solution space.
2.5. Sensitivity Analysis
The sensitivity of MTAC with respect to each energy source was calculated using Equation (44) [
12].
where
represents uncertain variables (fuel price, solar radiation, and wind speed) under optimum conditions. The obtained sensitivity values are used to compare the significance of fuel price, solar radiation, and wind speed on the MTAC of the integrated system under optimum conditions.
4. Results and Discussion
Parametric optimization using the GA was performed to determine the optimal design parameters of the MAV-CHP-HRP/BH system, aiming to minimize MTAC. Utilizing the genetic algorithm toolbox in MATLAB and considering MTAC as the objective function (along with the constraints outlined in
Table 7), optimal design parameters were identified. The dynamic interfaces of both the Engineering Equations Solver (EES) and MATLAB have shown efficacy in optimizing complex systems [
43]. Within our approach, the subsystems are simulated as the model converges in EES, and the optimization procedure is followed as detailed in
Section 2.4. The results of this optimization process are presented in
Table 8. According to the RR value in the table, the mass flowrate of the low-pressure compressor is almost three times that in the high-pressure compressor under optimum conditions. This fact indicates the significant role of the ABHP unit in reaching optimal exergy levels. This finding also aligns with the conclusions provided by Charmchi et al. [
25]. PR, the second critical decision variable, is 0.68 under optimum conditions; this result demonstrates the greater role of the CHP unit in satisfying the power demand of the whole integrated system (a role more substantial than that of renewable forms of energy). The superiority of the CHP unit to the RHP/BH subsystem may be for two reasons: firstly, renewable energies are not competitive with non-renewable energies when equal weights are assigned to economic, environmental, and exergy terms in the objective function; secondly, the constant power supply of the CHP unit makes it far preferable to the erratic weather-driven power of the RHP unit.
Considering the variation ranges of the decision variables in
Table 7, the optimum values of
rp and
Tin,GT are very close to the upper boundaries. However, the metallurgical restrictions constrain the optimization problem. Moreover, negligible share of wind turbines (
= 8) in the optimal configuration of the RHP/BH can be attributed to the high costs of wind facilities in the case study, as summarized in
Table 6. However, this number of wind turbines could produce 592.01 MWh/year of renewable electricity. The remaining 3298.4 MWh of renewable electricity was supplied by solar PVs. Considering that the literature reports the dominance of solar over wind in hybrid systems in the case study [
31], this result seems acceptable. However, the size of the solar PVs and the capacity of the batteries under optimum conditions are different from those reported in the case study in the literature [
31], and this fact can be attributed to the differences in the problem and solution platform between these studies. According to
Figure 3, the size of the RHP/BH subsystem is determined by evaluating the power demand of the MAV unit and the optimal
PR, whereas the HRP systems of refs. [
31,
42] are simulated by Blackbox HOMER and iterative LPSP algorithms. A total of 25,220.1 kg/year of green hydrogen was consumed by the fuel cells. This amount is comparable to the consumption by a fuel cell in an optimal self-scheduling system with four products [
43]. The higher yield achieved with similar hydrogen consumption is mainly due to the more complex configuration of the multicarrier system and the better adaptation of reverse osmosis systems compared to MEDs for electricity usage, which were used in this study [
7].
4.1. Energy, Exergy and Environmental Analyses
According to
Table 8, the CHP subsystem consumes 0.898 kg/s of natural gas to provide 4.375 MW of power and 32.158 MW of non-renewable heat. All the produced heat is consumed by the MAV subsystem, but an additional HRP/BH subsystem with a capacity of 1.816 MW is required to supply the remaining needed power under optimum conditions. Because one of the key components of the MTAC is the cost of destroying the exergy of the system, it is essential to examine exergy destruction in each subsystem.
Figure 8 presents the exergy destruction of each subsystem within the optimal MAV-CHP-HRP/BH system. To calculate the exergy destruction cost rate of the HRP/BH subsystem for the MTAC, the hourly exergy destroyed by the solar system, wind turbines, and energy storage systems over the course of a year is summed. We thus determined that a total input exergy of 762,872 GJ/year is destroyed within the MAV-CHP-HRP/BH system. Among the subsystems, the CHP system exhibits the highest exergy destruction at 422,409 GJ/year. Following closely, the HRP/BH and MAV subsystems contribute to exergy destruction with rates of 197,068 GJ/year and 143,394 GJ/year, respectively. This has also been confirmed by the previous studies. The exergy analysis of a similar optimal multi-component system showed that CHP components such as the CC, GT, and AC exhibit the greatest exergy destruction among ABHP and BH facilities [
12]. This result can be attributed to the transfer of heat at high temperatures alongside other irreversible processes in the CHP components. On the other hand, the MED unit destroys an average of only 13% of fuel exergy during desalination [
7]. Considering the small portion of the exergy allocated to the MAV unit, it shows the best performance among the subsystems.
In accordance with the MTAC objective function outlined in Equation (42), the optimal values of TAC, exergy destruction cost, and environmental cost for each subsystem are derived to examine their respective impact on MTAC.
Figure 9 illustrates the influence of each subsystem on each term of the MTAC. According to the figure, the TAC, exergy destruction cost, and environmental cost of the optimal MAV-CHP-HRP/BH system are
$29,132,075/yr,
$4,441,160/yr, and
$3,284,560/yr, respectively. Among the subsystems, MAV exhibits the highest TAC at
$19,591,900/yr, followed by CHP and HRP/BH with TACs of
$5,590,000/yr and
$3,950,175/yr, respectively. Regarding exergy destruction costs, CHP, HRP/BH, and MAV systems account for
$2,561,150/yr,
$1,088,970/yr, and
$791,040/yr, respectively. Notably, only the CHP system contributes to the environmental cost with
$3,284,000/yr. The optimal MTAC value is depicted as
$36,857,795/yr in
Figure 9.
To facilitate a comparison of the significance of each subsystem’s effect on MTAC, the total cost rate of each subsystem was normalized.
Figure 10 illustrates the normalized cost rate for MAV, CHP, and HRP/BH. The MAV subsystem accounts for 67% of the TAC, while CHP and HRP/BH contribute 19% and 14%, respectively. In terms of exergy destruction cost rates, MAV, CHP, and HRP/BH represent 18%, 58%, and 25%, respectively. Hence, it can be inferred that MAV, CHP, and HRP/BH contribute 55%, 31%, and 14%, respectively, to the MTAC of the MAV-CHP-HRP/BH system. In
Figure 11, the normalized values of TAC, exergy destruction cost rate, and environmental cost rate on MTAC are presented. TAC emerges as the dominant contributor to MTAC, accounting for 79% of the total, followed by exergy destruction cost rate and environmental cost rate (with contributions of 12% and 9%, respectively). This result is a consequence of the high replacement and maintenance costs of the RHP/BH subsystem.
4.2. Sensitivity Analysis
The sensitivity analysis aimed to assess how the system’s MTAC responds to changes in the conditions of a given energy source, including variations in the unit price of fossil fuel, solar radiation, and wind speed. Wind power, solar radiation, and methane are the three primary energy sources of the system. Each iteration of sensitivity analysis involved repeating the optimization process while keeping other variables constant. Due to the substantial computational time required (approximately 3 h per optimization run), the sensitivity analysis was conducted only for six different energy resource scenarios, as outlined in
Table 9. Different scaled annual averages of solar radiation and wind speed were utilized for this analysis. The long run of each optimal solution in a sensitivity analysis was mainly associated with the convergence of the subsystems’ models rather than the optimization algorithm. This is because the hyperparameters of the GA algorithm were fixed during the sensitivity analysis.
Figure 12 illustrates the impact of the unit price of fuel on MTAC. In the graph, the red marker denotes the optimal conditions obtained while a fuel unit price of USD 0.003 per MW was in effect. The plot reveals that MTAC increases with higher unit prices of fuel, indicating a direct correlation between fuel price and MTAC. Interestingly, as fuel prices rise, their influence on MTAC diminishes, whereas their impact is more pronounced at lower prices. This trend arises because as fuel prices rise, the contribution of the HRP/BH subsystem to power generation decreases relative to the CHP system, which relies on fuel for power generation. Consequently, increased fuel prices lead to reduced fuel consumption, thereby mitigating their effect on the MTAC of the MAV-CHP-HRP/BH system. Similar to a previous study [
43], TAC is very sensitive to the CHP’s fuel price when hydrogen can circulate in the system. In higher fuel prices, hydrogen facilities (i.e., the size of the corresponding HRP/BH subsystem) increase in size, which leads to an increase in total costs. It is therefore unambiguous that an increase in the unit price of fuel at greater TACs causes greater changes in the MTAC.
Figure 13 illustrates the impact of variations in solar radiation on MTAC. The graph depicts a decrease in MTAC with increasing solar radiation. This reduction in MTAC can be attributed to the decrease in the size of the HRP/BH subsystem as solar radiation increases. Consequently, both the TAC and the exergy destruction cost of the HRP/BH subsystem decrease, leading to an overall reduction in MTAC. Interestingly, the effect of solar radiation on MTAC is more pronounced at higher values of solar radiation compared to lower values. This observation suggests that the contribution of the HRP/BH subsystem to power generation significantly increases with higher solar radiation levels, resulting in reduced fuel consumption by the CHP system. Therefore, the fuel price plays a crucial role in explaining the rapid decrease in MTAC at high solar radiation values.
Figure 14 displays the optimal values of MTAC with varying wind speeds, while keeping the fuel price fixed at 0.003
$/MW and solar radiation at 6.103 kWh/m
2.day. The graph demonstrates a decrease in MTAC as wind speed increases. This reduction in MTAC is attributed to the decrease in the size of the HRP/BH subsystem, resulting in lower TAC and exergy destruction cost for the integrated system. Interestingly, the impact of low wind speeds on MTAC appears to be more significant than that of high wind speeds. This observation suggests that the decrease in MTAC is more pronounced with lower wind speeds, possibly because the increased use of wind turbines at higher wind speeds leads to higher costs associated with the HRP/BH subsystem.
According to Equation (44), the sensitivity of the MTAC under optimum conditions was 0.22, 0.49, and 0.42, with respect to the fuel price, solar radiation, and wind speed, respectively. This indicates that solar radiation has the most significant impact on optimum MTAC and should be given greater consideration during the operation of the optimal combined system. Moreover, the proposed iterative thermo-econo-environmental modeling platform (
Figure 2) prioritizes the MAV simulation, modeling the other subsystems based on the key values of
RR and heat demand of the MAV at the model’s converged solutions. Consequently, the optimization model exhibits heightened sensitivity to the MAV decision variables compared to the parameters of the other subsystems. Future research should develop non-parametric iterative models that ensure equal sensitivity to the parameters of all subsystems.