Process Assessment of Integrated Hydrogen Production from By-Products of Cottonseed Oil-Based Biodiesel as a Circular Economy Approach

: Cottonseed oil (CSO) is well known as one of the commercial cooking oils. However, CSO still needs to compete with other edible oils available in the market due to its small production scale and high processing cost, which makes it a potential candidate as a feedstock for biodiesel production. To date, transesteriﬁcation is the most widely applied technique in the conversion of vegetable oil to biodiesel, with glycerol produced as a by-product. Large-scale biodiesel production also implies that more glycerol will be produced, which can be further utilized to synthesize hydrogen via the steam reforming route. Therefore here, an integrated biodiesel and hydrogen production from CSO was simulated using Aspen Hysys v11. Simulation results showed that the produced biodiesel has good characteristics compared to standard biodiesel. An optimum steam-to-glycerol ratio for hydrogen production was found to be 4.5, with higher reaction temperatures up to 750 ◦ C resulting in higher hydrogen yield and selectivity. In addition, a simple economic analysis of this study showed that the integrated process is economically viable.


Introduction
Energy demands and consumption have been increasing with rapid population and industrial sector growth. Fossil fuels are considered the primary energy source, even though they are limited in resources and have negative impacts on the environment. Nevertheless, fossil fuels may contain many harmful substances that can induce various environmental issues, e.g., global warming, air pollution, acid rain, and ozone layer depletion, which can negatively influence human health [1]. Numerous studies have been conducted in hopes of finding alternative fuels that can replace fossil fuels. In addition, it is also very important for the fuel resources to be economically viable, environmentally safe, and available in abundant quantities at a low cost. Among the accessible resources, biodiesel is considered a promising alternative that can be used to replace diesel oil and other petroleum-based fuels [2].
Biodiesel can be produced from renewable sources that deem it safe, biodegradable, harmless, sulphur-free, and considered an effective lubricant [3]. The advantages of biodiesel compared to fossil fuels cannot be overstated. The commercialization of biodiesel Hydrogen 2023, 4 273 as a fuel can be carried out by blending it with diesel oil or using it directly as a pure substance. It is also highly compatible with diesel engines, requiring no further modifications or causing undesirable effects on engine performance [4]. Biodiesel can be generated from a wide range of biomass, including vegetable oils [5], animal fats [6], microbial lipids [7], and waste cooking oil [8], which are accessible and renewable. Many varieties of vegetable oil have been explored as biodiesel feedstocks that can be categorized into edible oil and non-edible oil groups. To date, the majority of commercial biodiesel is produced from edible oils, including cottonseed oil (CSO) [9,10].
The development of biodiesel production starts at a laboratory scale, and scaling up the process is a major challenge. Process simulation can be used to model, predict, and optimize the process in a more economical way. Therefore, process simulation can be employed as an inexpensive tool to scale up for design considerations, production estimations, and product property assessments. In previous studies, we have actively simulated various processes associated with the utilization of vegetable oils as raw materials for biodiesel or other value-added products [11][12][13][14][15]. The production of biodiesel from a variety of feedstock can be accomplished by four main pathways: direct use and blending, microemulsion, pyrolysis, as well as transesterification. Among the four methods stated, transesterification is the most widely applied in biodiesel production. Here, the triglycerides are reacted with an alcohol, most preferably methanol, in the presence of a catalyst, transforming them into fatty acid methyl esters (FAMEs) or biodiesel and glycerol as by-products [16].
Glycerol can be transformed into various products via many different routes, either chemical or biochemical. In particular, value-added products, such as hydrogen, acrolein, glycerol carbonate, dihydroxyacetone, glyceric acid, propylene glycol, benzoic acid, and other value-added products can be obtained [17]. Among all these products, hydrogen is one of the most promising renewable energies that can be produced through an integrated process with biodiesel production. Glycerol is considered an attractive feedstock for hydrogen production and power generation, as the yields obtained from biodiesel production can meet its demand in the market [18][19][20]. The catalytic reforming of glycerol for the production of hydrogen and other energy carriers/chemicals is achieved via glycerol dehydrogenation on the catalytically active side, followed by water-gas shift or methanation reactions. Therefore, in this work, ASPEN Hysys v11 was used to model and simulate an integrated process of CSO transesterification for biodiesel production and glycerol steam reforming to produce hydrogen. The simulation focused on the properties of the biodiesel products, which are further evaluated using the available criteria, and the effect of operating conditions on hydrogen production. To the best of our knowledge, there are no studies that report the simulation process of integrated CSO transesterification for biodiesel production and glycerol steam reforming to produce hydrogen.

Biodiesel Production from Cottonseed Oil
CSO is one of the commercial cooking oils that gradually loses market share to other vegetable oils with higher production and lower costs, such as palm oil, which dominates the Indonesian market. However, with regard to active research on biodiesel production from vegetable oils, CSO as a feedstock for biodiesel production is prospective and may have the potential to increase the viability of the cottonseed industry [21]. The physical properties of CSO and the fatty acid contents of CSO are summarized in Tables 1 and 2, respectively. These values were used to carry out the simulation in this study.  Table 2. Fatty acid compositions present in cottonseed oil [22,24,25].

Fatty Acid % Composition
Myristic acid 0. CSO may have high FFA concentrations, depending on the quality of the oil. CSO feedstocks containing more than 1% FFA need to be esterified to eliminate the negative effects of saponification, which can reduce biodiesel yield as the oil is converted to soap. To remove water and other contaminants, CSO, as the raw material, needs to be filtered and pretreated so that the performance of the process is improved. In the esterification process, the FFA content in CSO is reacted with alcohol, preferably methanol, in the presence of an acid catalyst and then converted to biodiesel and water in the reactor. Traditionally, a homogeneous catalyst with an acidic property, commonly sulfuric acid, is used in the esterification process. As the catalyst is homogenous, it can be mixed with the pretreated oil after being dispersed in methanol. Subsequently, FFA-depleted biodiesel is produced, and the mixture is heated and stirred in the reactor at optimum reaction conditions. Water is then removed after the reaction conversion is achieved. The consumed FFA makes the stream proceed to the transesterification reaction. Acidic catalysts are not easy to implement due to their corrosive characteristics, neutralization issues, and the need for extensive waste disposal, making it difficult to use a strong acid as a catalyst. Many studies have explored other alternatives to strong acid catalysts to address these shortcomings, such as heterogeneous catalysts derived from sulfonated carbonaceous materials [26] or silica zirconia [27]. Equation (1) describes a typical biodiesel reaction resulting from an acid-catalyzed esterification reaction.

Transesterification Process
Transesterification is the most commonly applied method for converting vegetable oil into biodiesel and glycerol. Biodiesel and glycerol are produced when triglycerides in vegetable oils react with alcohols in the presence of alkaline catalysts. As mentioned earlier, the oil feedstock should contain less than 1% FFA for the transesterification reaction to proceed efficiently. Raw materials must be pretreated to separate water and other contaminants before being fed directly into the transesterification reactor, making the reactor inlet contain triglycerides and fatty acid alkyl esters produced from the esterification process. The most common catalyst used in transesterification reactions is NaOH in aqueous form, so it can be mixed directly with the feed stream as it enters the reactor [28]. When acid esterification reactions are involved, additional base catalysts may be required to neutralize the acid. The biodiesel and glycerol produced form two liquid layers as the reaction proceeds. In general, transesterification reactions are usually carried out at low reaction temperatures (60-70 • C) and pressures (atmospheric pressure). The presence of a catalyst in the transesterification process is essential to ensure that the reaction proceeds to biodiesel production. Homogeneous catalysts require extra work for separation purposes, making a heterogeneous catalyst an interesting choice. Metal-oxide-based heterogeneous catalysts have been intensively studied for their application as catalysts in transesterification reactions to generate biodiesel [29,30]. Environmentally friendly alternatives, such as calcium oxides from calcium-rich natural resources such as eggshells [31,32], cockle shells [33], or other animal shells, can also serve as catalysts. General biodiesel production via an alkali-catalyzed esterification reaction is stated in Equation (2).

Biodiesel Purification
To ensure the conversion of CSO to biodiesel, the transesterification reaction is performed in a methanol-rich environment. Methanol remaining in the product stream must be removed for economic reasons. In addition to unreacted methanol, the side products, including water and glycerol, must be separated from the biodiesel product stream to meet the biodiesel standards. Wet scrubbing, dry scrubbing (activated compounds, biomassbased adsorbents, and silica-based adsorbents), ion exchange, or membrane separation technology are all options for biodiesel refining [34]. The purity of biodiesel that needs to be achieved is the determining factor in selecting the appropriate technology. Membrane technology may be a viable option for separating glycerol from biodiesel, but special efforts are necessary to prevent membrane fouling and clogging [34]. Other emerging technologies, such as high-voltage electrolysis, may be good candidates for separating glycerol from biodiesel [35]. Distillation has traditionally been used to separate and recover methanol [36]. Recently, the use of membrane reactors has become popular because of their advantages in enhancing the purification process [37].

Glycerol Steam Reforming to Produce Hydrogen
Hydrogen production from glycerol can be achieved via various routes. Steam reforming is the most common reaction for this application. The reaction pathway to produce hydrogen from glycerol involves complex reactions, which are summarized in Equations (3)-(6).
The first three reactions increase the hydrogen yield of the production process, while the fourth (methanation) reduces the hydrogen yield because the hydrogen produced is consumed as a reactant. However, this process is known to improve the heat balance [18].
As the key parameters to evaluate the process, glycerol conversion, hydrogen yield, and hydrogen selectivity are described in Equations (7)-(10).
Glycerol conversion : x glycerol = n Glycerol in − n Glycerol out n Glycerol in × 100%

Simulation Methodology
All processes were simulated using Aspen Hysys v11 with the following assumptions. The raw materials for biodiesel production used in this study were CSO with a basis of 1000 kg/h and methanol. Due to the high FFA composition of CSO (>1%), the biodiesel production process involves esterification and transesterification. Glycerol as a by-product was then converted to hydrogen via a steam reforming process, followed by a water-gas shift reaction to eliminate carbon monoxide. The triglyceride compositions in CSO were simplified by using the major fatty acids in CSO, including triolein, tristearin, trilinolein, and tripalmitin. Trilinolein and tripalmitin are expressed using hypothetical components to better imitate the characteristics of CSO, while oleic acid is employed to represent the FFA composition. The simulation parameters for the integrated process of biodiesel production are summarized in Table 3, and the simulation parameters for hydrogen production are stated in Table 4.  Table 4. Glycerol steam reforming for hydrogen production simulation parameters.

Parameters Values
Steam-to-glycerol molar ratio 0.5-10 Reaction temperature ( • C) 400-750 Figure 1 depicts the simulation flowsheet for the biodiesel production process from cottonseed oil. Esterification, transesterification, and biodiesel purification are all part of the process. Major key equipment is used in the simulation, involving reactors, process separation units, heat exchangers, and pumps. Table 5 summarizes codes and descriptions for each piece of process equipment. conversion reactors. The conversion for both processes (esterification and transesterification) was set at 100%.  Table 5. Equipment description of the cottonseed oil to biodiesel simulation flowsheet using Aspen Hysys v11.

Code
Description MIX-100 Methanol mixer CRV-100 Esterification reactor CRV-101 Transesterification reactor V-100 Flash distillation column M-100 Membrane T-100 and T-102 Fractional distillation column P-100 Membrane pump E-100, E-101, E-102, and E-103 Heat exchanger Temperature is another factor that influences biodiesel yield. According to the literature review, both reactors can be operated at the same operating conditions (65 °C, atmospheric pressure). Most of the remaining methanol, water, glycerol, and biodiesel were found in the output stream of the second reactor. Biodiesel was used as a fuel, which is required to meet the standards available, especially the qualification from the purity level. Excess methanol must be recovered for economic efficiency. The product was then processed through a series of separation steps for methanol recovery, glycerol separation, and biodiesel purification to produce high-quality biodiesel.
Two stages of separation were utilized to maximize the methanol recovery: flash distillation and fractional distillation. Flash distillation requires the outlet of the transesterification process reactor to be heated to 80 °C in a flash drum to form a vapor-liquid mixture. This mixture contains a methanol fraction enriched in the vapor phase and can be used to remove most of the excess methanol. The methanol-rich vapor phase was then cooled down and used as feed. Most of the unreacted methanol was recovered using this method, with a recovery of approximately 65%.
The liquid stream then proceeded to the next stage, which was the glycerol separation. The operation could be carried out using a variety of technologies [34]. Considering many aspects, membrane separation may be the best candidate for this purpose due to its selectivity and rejection rate for specific components [38,39]. Because the high retention of the membrane results in optimal process conditions, membrane separation needs to be performed at high pressure (5.5 bar) and low temperature (25 °C) to protect the membrane  Table 5. Equipment description of the cottonseed oil to biodiesel simulation flowsheet using Aspen Hysys v11.

MIX-100
Methanol mixer CRV-100 Esterification reactor CRV-101 Transesterification reactor V-100 Flash distillation column M-100 Membrane T-100 and T-102 Fractional distillation column P-100 Membrane pump E-100, E-101, E-102, and E-103 Heat exchanger The process reactor inlets were CSO (1000 kg/h) as an oil feedstock and methanol as an alcohol source, with a methanol-to-oil ratio of 6:1. The CSO stream was simulated with a composition of triolein (13.08%), trilinolein (42.31%), tripalmitin (20.31%), tristearin (1.86%), and oleic acid (22.43%) as FFA. Since CSO contains more than 1% FFA, it needs to be esterified first before proceeding with the transesterification reaction. Because of data constraints, both the esterification and transesterification reactions were modeled by conversion reactors. The conversion for both processes (esterification and transesterification) was set at 100%.
Temperature is another factor that influences biodiesel yield. According to the literature review, both reactors can be operated at the same operating conditions (65 • C, atmospheric pressure). Most of the remaining methanol, water, glycerol, and biodiesel were found in the output stream of the second reactor. Biodiesel was used as a fuel, which is required to meet the standards available, especially the qualification from the purity level. Excess methanol must be recovered for economic efficiency. The product was then processed through a series of separation steps for methanol recovery, glycerol separation, and biodiesel purification to produce high-quality biodiesel.
Two stages of separation were utilized to maximize the methanol recovery: flash distillation and fractional distillation. Flash distillation requires the outlet of the transesterification process reactor to be heated to 80 • C in a flash drum to form a vapor-liquid mixture. This mixture contains a methanol fraction enriched in the vapor phase and can be used to remove most of the excess methanol. The methanol-rich vapor phase was then cooled down and used as feed. Most of the unreacted methanol was recovered using this method, with a recovery of approximately 65%.
The liquid stream then proceeded to the next stage, which was the glycerol separation. The operation could be carried out using a variety of technologies [34]. Considering many aspects, membrane separation may be the best candidate for this purpose due to its selectivity and rejection rate for specific components [38,39]. Because the high retention of the membrane results in optimal process conditions, membrane separation needs to be performed at high pressure (5.5 bar) and low temperature (25 • C) to protect the membrane material. The residue was 99% glycerol (97.54 kg/h) together with other impurities. The rich biodiesel permeate stream was sent to a fractional distillation column (T-100) for biodiesel refining. About 30% of the excess methanol could be recovered after the fractional distillation process, bringing the total amount of recycled methanol up to 95%. After a series of purification steps, the biodiesel had an ester composition of up to 99.97% at a mass flow rate of 1008 kg/h. The detailed mass and energy balances for each stream are summarized in Table 6. The biodiesel product properties obtained from the simulated process in this study were compared to experimental studies utilizing CSO as feedstock ( Table 7). The properties of biodiesel modeled from the simulation process are comparable to other similar experimental studies on biodiesel production from CSO. The properties are also consistent with biodiesel standards from the literature (ASTM D 6751 and EN 14214).  Figure 2 depicts the simulation flowsheet for the hydrogen production process from glycerol. The process was modeled with two reactors, one for the steam reforming process and one for the low-temperature separation (LTS) water-gas shift reaction. The process was followed by purification processes, which include flash distillation, absorption, and distillation. The main equipment involved in the process were reactors, flash tanks, absorption columns, and distillation columns, as well as auxiliary equipment such as pumps, heat exchangers, and compressors.   Figure 2 depicts the simulation flowsheet for the hydrogen production process from glycerol. The process was modeled with two reactors, one for the steam reforming process and one for the low-temperature separation (LTS) water-gas shift reaction. The process was followed by purification processes, which include flash distillation, absorption, and distillation. The main equipment involved in the process were reactors, flash tanks, absorption columns, and distillation columns, as well as auxiliary equipment such as pumps, heat exchangers, and compressors. Table 8 summarizes the codes and descriptions for key equipment.  The mass and energy balances for hydrogen production are summarized in Table 9. The glycerol stream with a mass flow rate of 97.54 kg/h separated from the biodiesel production product stream was heated to reach the reaction temperature. In addition to glycerol, the steam generated in the steam reforming process also entered the reactor GBR-200 as superheated steam. In the GBR-200 reactor, the hydrogen production process was modeled by four reactions: glycerol steam reforming, glycerol decomposition, water-gas shift reaction, and methanation reaction. To eliminate the carbon dioxide composition from the product stream, the GBR-200 product stream entering the second reactor (GBR-201)  The mass and energy balances for hydrogen production are summarized in Table 9. The glycerol stream with a mass flow rate of 97.54 kg/h separated from the biodiesel production product stream was heated to reach the reaction temperature. In addition to glycerol, the steam generated in the steam reforming process also entered the reactor GBR-200 as superheated steam. In the GBR-200 reactor, the hydrogen production process was modeled by four reactions: glycerol steam reforming, glycerol decomposition, water-gas shift reaction, and methanation reaction. To eliminate the carbon dioxide composition from the product stream, the GBR-200 product stream entering the second reactor (GBR-201) underwent a low-temperature water-gas shift reaction. The reactor was modeled with a water-gas reaction only. The output of GBR-200 was then cooled down to separate most of the water formed. The gas stream separated from water was then compressed before entering the absorption column to separate carbon dioxide using DEA as a solvent. The gas stream leaves the absorber with a high concentration of hydrogen and a mass flow rate of 8.45 kg/h. Glycerol steam reforming was simulated with the following operating conditions: reaction temperatures of 400-750 • C and a steam-to-glycerol molar ratio of 0.5-10. The effect of the steam-to-glycerol ratio on product composition is shown in Figure 3. In steam-deficient environments, the gas products were dominated by CO 2 and CH 4 . As the ratio of steam to glycerol increases, the hydrogen fraction in the product stream increases exponentially, reaching a maximum ratio of 4.5. As the ratio continued to increase, the number of unreacted steams increased and the hydrogen fraction decreased simultaneously. From the case study, it can be concluded that the steam-to-glycerol ratio should be around 4.5 to achieve the optimum result. The effect of reaction temperature on the composition of the produced gas was also simulated, as shown in Figure 4. At the lowest simulation temperature, the hydrogen fraction is very low, and the process is deemed inefficient. As the temperature continued to rise, the hydrogen composition increased exponentially and dominated the product stream at the highest simulated temperature. The steam reforming reaction is endothermic, and high temperatures are preferred. However, higher reaction temperatures are economically undesirable [42]. The next parameters to evaluate are hydrogen yield and selectivity. In the reaction process, high yield and selectivity for the desired products are preferable. Simulated data for hydrogen yield and selectivity at different reaction temperatures are shown in Figures  5 and 6, respectively. Both parameters showed similar trends. As the temperature rises, the hydrogen yield and selectivity increase significantly. Hydrogen yield and selectivity of 96.68% and 98.1%, respectively, were achieved at the maximum simulated temperature. The effect of reaction temperature on the composition of the produced gas was also simulated, as shown in Figure 4. At the lowest simulation temperature, the hydrogen fraction is very low, and the process is deemed inefficient. As the temperature continued to rise, the hydrogen composition increased exponentially and dominated the product stream at the highest simulated temperature. The steam reforming reaction is endothermic, and high temperatures are preferred. However, higher reaction temperatures are economically undesirable [42]. The effect of reaction temperature on the composition of the produced gas was also simulated, as shown in Figure 4. At the lowest simulation temperature, the hydrogen fraction is very low, and the process is deemed inefficient. As the temperature continued to rise, the hydrogen composition increased exponentially and dominated the product stream at the highest simulated temperature. The steam reforming reaction is endothermic, and high temperatures are preferred. However, higher reaction temperatures are economically undesirable [42]. The next parameters to evaluate are hydrogen yield and selectivity. In the reaction process, high yield and selectivity for the desired products are preferable. Simulated data for hydrogen yield and selectivity at different reaction temperatures are shown in Figures  5 and 6, respectively. Both parameters showed similar trends. As the temperature rises, the hydrogen yield and selectivity increase significantly. Hydrogen yield and selectivity of 96.68% and 98.1%, respectively, were achieved at the maximum simulated temperature.  The next parameters to evaluate are hydrogen yield and selectivity. In the reaction process, high yield and selectivity for the desired products are preferable. Simulated data for hydrogen yield and selectivity at different reaction temperatures are shown in Figures 5 and 6, respectively. Both parameters showed similar trends. As the temperature rises, the hydrogen yield and selectivity increase significantly. Hydrogen yield and selectivity of 96.68% and 98.1%, respectively, were achieved at the maximum simulated temperature. Hydrogen 2023, 4, FOR PEER REVIEW 11 Figure 5. Effect of reaction temperature on hydrogen yield. Figure 6. Effect of reaction temperature on selectivity of hydrogen.

Economic Analysis
As an initial consideration to further investigate the feasibility of the simulated process, a simple economic analysis is required. The economic analysis was carried out via the Aspen process economic analyzer (APEA) to calculate total capital and production costs. External data based on the average market price of CSO, biodiesel, and hydrogen were used for the rough revenue estimation. The projected annual expenditures and revenues are summarized in Table 10. Table 10. Economic analysis results of an integrated biodiesel and hydrogen production from cottonseed oil.

Economic Analysis
As an initial consideration to further investigate the feasibility of the simulated process, a simple economic analysis is required. The economic analysis was carried out via the Aspen process economic analyzer (APEA) to calculate total capital and production costs. External data based on the average market price of CSO, biodiesel, and hydrogen were used for the rough revenue estimation. The projected annual expenditures and revenues are summarized in Table 10. Table 10. Economic analysis results of an integrated biodiesel and hydrogen production from cottonseed oil.

Economic Analysis
As an initial consideration to further investigate the feasibility of the simulated process, a simple economic analysis is required. The economic analysis was carried out via the Aspen process economic analyzer (APEA) to calculate total capital and production costs. External data based on the average market price of CSO, biodiesel, and hydrogen were used for the rough revenue estimation. The projected annual expenditures and revenues are summarized in Table 10. Table 10. Economic analysis results of an integrated biodiesel and hydrogen production from cottonseed oil.

Parameter Value
Biodiesel production capacity (TPY) 8000 Hydrogen production (TPY) 70 Total capital cost (million USD) 5.8 Production cost (million USD/year) 0.9 Raw materials cost (million USD/year) 6.5 Revenue (million USD/year) 7.8 From the data reported in Table 10, the payback period (PBP), rate of return on investment (ROI), and internal rate of return (IRR) were calculated using Equations (3)-(5), respectively, with supplementary assumptions of 11% interest rate (i), 8-year project time (t), and operation of the plant, which starts at the beginning of year 3. ROI does not take into account the time value of money. Meanwhile, IRR takes into account the time value of money and calculates the annual growth rate. The projected net present value (NPV) of the simulated processes is illustrated in Figure 7. As summarized in Table 11, the calculated results demonstrate that the integrated process of biodiesel and hydrogen production from CSO in small capacity has quite excellent investment criteria.
where i a = lower discount rate chosen, i b = higher discount rate chosen, NPV a = net present value at i a , and NPV b = net present value at i b From the data reported in Table 10, the payback period (PBP), rate of return on investment (ROI), and internal rate of return (IRR) were calculated using Equations (3)-(5), respectively, with supplementary assumptions of 11% interest rate (i), 8-year project time (t), and operation of the plant, which starts at the beginning of year 3. ROI does not take into account the time value of money. Meanwhile, IRR takes into account the time value of money and calculates the annual growth rate. The projected net present value (NPV) of the simulated processes is illustrated in Figure 7. As summarized in Table 11, the calculated results demonstrate that the integrated process of biodiesel and hydrogen production from CSO in small capacity has quite excellent investment criteria.
where = lower discount rate chosen, = higher discount rate chosen, NPVa = net present value at , and NPVb = net present value at  A sensitivity analysis was conducted to examine the impact of production variables such as biodiesel selling price and production capacity on gross margin. Input variable sensitivity limits are set at −50% and +50% of the base case. Figure 8 shows the results of the sensitivity analysis. There is a steep slope in production capacity compared to the price  A sensitivity analysis was conducted to examine the impact of production variables such as biodiesel selling price and production capacity on gross margin. Input variable sensitivity limits are set at −50% and +50% of the base case. Figure 8 shows the results of the sensitivity analysis. There is a steep slope in production capacity compared to the price of biodiesel production. It can be concluded that production capacity has a greater impact on gross margins than biodiesel pricing. of biodiesel production. It can be concluded that production capacity has a greater impact on gross margins than biodiesel pricing.

Conclusions
This study aims to simulate an integrated process of biodiesel production from CSO and hydrogen production from glycerol, which is the by-product of the main process. In the initial process, CSO is converted to biodiesel via the transesterification process. In addition, since glycerol is a by-product in the initial stage, it is then utilized as the raw material in the following process. The second reaction involves four reactions in the main reactor: steam reforming, glycerol decomposition, water-gas shift, and methanation.
The optimum steam-to-glycerol molar ratio is 4.5, and the higher the reaction temperature, the higher the proportion of hydrogen in the gas stream, leading to higher hydrogen yield and selectivity. However, the energy consumption of this process needs to be further studied, as more energy must be supplied at higher temperatures. A simple economic analysis of the integrated process showed that this process is economically viable.

Conclusions
This study aims to simulate an integrated process of biodiesel production from CSO and hydrogen production from glycerol, which is the by-product of the main process. In the initial process, CSO is converted to biodiesel via the transesterification process. In addition, since glycerol is a by-product in the initial stage, it is then utilized as the raw material in the following process. The second reaction involves four reactions in the main reactor: steam reforming, glycerol decomposition, water-gas shift, and methanation.
The optimum steam-to-glycerol molar ratio is 4.5, and the higher the reaction temperature, the higher the proportion of hydrogen in the gas stream, leading to higher hydrogen yield and selectivity. However, the energy consumption of this process needs to be further studied, as more energy must be supplied at higher temperatures. A simple economic analysis of the integrated process showed that this process is economically viable.