Abstract
In gas-to-methanol processes, optimizing multi-energy systems is a critical challenge toward efficient energy allocation. This paper proposes an entropy-based stochastic optimization method for a multi-energy system in a gas-to-methanol process, aiming to achieve optimal allocation of gas, steam, and electricity to ensure executability under modeling uncertainties. First, mechanistic models are developed for major chemical equipments, including the desulfurization, steam boilers, air separation, and syngas compressors. Structural errors in these models under varying operating conditions result in noticeable model uncertainties. Second, Bayesian estimation theory and the Markov Chain Monte Carlo approach are employed to analyze the differences between historical data and model predictions under varying operating conditions, thereby quantifying modeling uncertainties. Finally, subject to constraints in the model uncertainties, equipment capacities, and energy balance, a multi-objective stochastic optimization model is formulated to minimize gas loss, steam loss, and operating costs. The entropy weight approach is then applied to filter the Pareto front solution set, selecting a final optimal solution with minimal subjectivity and preferences. Case studies using Aspen Hysys-based simulations show that optimization solutions considering model uncertainties outperform the counterparts from a standard deterministic optimization in terms of executability.
1. Introduction
The gas-to-methanol process is a chemical process primarily involving the purification and reforming of coke oven gas, which is followed by the synthesis and refining of methanol. During coal coking, significant amounts of coke oven gas are emitted directly into the atmosphere through combustion, causing serious environmental pollution and wasted energy. The gas-to-methanol process offers an effective way to repurpose this gas. In this process, the operating equipment includes various energy media such as gas, steam, and electricity [1,2]. Multi-energy systems are employed to optimize the allocation of these energies, thereby avoiding unnecessary energy losses associated with optimization of a single unit of energy [3].
Extensive research efforts have been devoted to optimizing multi-energy systems [4,5]. In real industries, numerous difficult-to-predict parameters, such as energy prices, energy demands, and ambient conditions, are commonly involved, making it essential to consider the impact of uncertainties [6,7,8,9]. Monte Carlo analysis [10], stochastic optimization [11], robust optimization [12], and modeling to generate alternatives [13] are four approaches for addressing such uncertainties. Among them, stochastic optimization may be the most commonly used approach in optimizing multi-energy systems. Rakipour et al. [14] built a combined energy system model, including electrical, heating, and cooling hubs to optimize profitability while accounting for uncertainties in demand and energy prices. Vahid-Pakdel et al. [15] optimized the operation of a multi-carrier energy system, implementing stochastic programming to address uncertainties in demand and market conditions. Song et al. [16] presented a coordinated optimization method for hydrogen-based integrated energy systems, addressing supply–demand mismatch through multi-time scale scheduling with storage and uncertainties. Xiao et al. [17] developed an optimization model for regional integrated energy systems incorporating uncertainties, multi-energy coupling, and demand response. Li et al. [18] explored a scheduling model for community-integrated energy systems using chance-constrained programming to minimize costs. Niknam et al. [19] formulated a stochastic model for optimal energy management in a grid-connected microgrid, using scenario-based programming and multi-objective optimization to minimize costs and emissions. Azizi et al. [20] introduced a mixed-integer linear programming model to minimize daily costs in a local multi-energy system using neural network forecasts and stochastic optimization. Mei et al. [21] proposed a stochastic optimization model for the optimal operation of integrated energy systems within an industrial park, addressing uncertainties in distributed power generation and multi-energy loads. Sakki et al. [22] obtained a versatile stochastic simulation-optimization framework for renewable energy systems for handling multiple uncertainties in system drivers and states. Lei et al. [23] conducted a multi-objective stochastic planning study for regional integrated energy systems, taking into account the uncertainties of renewable and multi-energy sources. In the aforementioned literature, modeling the uncertainties that have arisen from structural errors in mechanistic models gas not been considered [24,25,26].
The main contribution of this paper proposes an entropy-based stochastic optimization method for a multi-energy system in a gas-to-methanol process, aiming to achieve optimal allocation of gas, steam, and electricity to ensure executability under modeling uncertainties from structural errors. First, mechanistic models are developed for major equipments, including the desulfurization, steam boilers, air separation, and syngas compressors. Second, Bayesian estimation theory and the Markov Chain Monte Carlo approach are used to analyze the differences between historical data and model predictions, thereby quantifying modeling uncertainties. Third, subject to constraints in the model uncertainties, equipment capacities, and energy balance, a multi-objective stochastic optimization model is formulated to minimize gas loss, steam loss, and operating costs. The entropy weight approach is then applied to filter the Pareto front solution set, selecting a final optimal solution with minimal subjectivity and preferences.
In many industrial processes, modeling uncertainties plays a crucial role in achieving optimal energy allocation. Ignoring these uncertainties significantly reduces the executability of optimization solutions in practical applications. The main challenge is how to characterize the modeling uncertainties that arise from structural errors in mechanistic models and effectively integrate them into multi-energy optimization. To the best of our knowledge, modeling uncertainties from structural errors is seldom considered in the literature, and the proposed method resolves the above-mentioned challenge. To simplify the optimization problem, the impacts of other uncertainties, such as energy prices, energy demands, and ambient conditions, are neglected. These uncertainties have been extensively discussed in the existing literature. Should there be a need to consider their effects, the conclusions in the above literature can be consulted.
2. Problem Description
Figure 1 shows a schematic diagram of the multi-energy system in a gas-to-methanol process comprising a gas subsystem (green), a steam subsystem (red), and an electrical subsystem (blue). In this system, coke oven gas is the main by-product gas during the coal coking, and its supply () depends mainly on the coke production plan. Half of the gas () is returned to the coking combustor to provide heat for the coking chamber. The remaining portion of the gas is consumed in three parts: First, the gas flows into the methanol production line (). This gas undergoes desulfurization to remove organic sulfur and then enters the conversion subprocess, where the and unsaturated hydrocarbons in the gas react with pure oxygen in oxidation and steam conversion reactions to produce the effective components needed for synthetic methanol, such as , , and . The syngas compressor then transports these components to the synthesis subprocess, where methanol synthesis occurs under the presence of a catalyst. Most of the gas separated after synthesis is recycled to replenish fresh gas, with the remaining portion sent to a subsidiary for hydrogen extraction. This process is specific in that the syngas is distinguished by a high hydrogen concentration (about 70%). As a result, the hydrogen addition requirement is not considered, and the expense associated with hydrogen recovery is excluded from operating costs [27,28]. Second, the gas () is burned in a steam boiler using the combustion heat to warm deaerated water and generate medium-pressure steam (). Third, to ensure the safety and stability of the methanol production, the gas holder balances the surplus or shortage of gas in the system by regulating the storage and release of gas ().
Figure 1.
Schematic diagram of the multi-energy system in a gas-to-methanol process.
Steam is a crucial energy source for providing heat and power in this system, being classified into three pressure levels. High-pressure steam is purchased externally and is solely utilized by the steam turbine. The purchase quantity is determined based on the extraction of medium-pressure steam (). Medium-pressure steam is supplied by the steam boiler and steam turbine, and it is exclusively used in three pieces of equipment: desulfurization (), air separation (), and syngas compressor (). Their consumption is closely related to the gas flow rate . Notably, high-pressure and medium-pressure steam are not consumed in the conversion and synthesis subprocesses. Low-pressure steam is supplied through the waste heat boilers and heat recovery boilers, and it is used for heat exchange in equipment such as deaerators and reboilers. The reaction heat released during the conversion and synthesis is recovered through the waste heat boilers and converted into low-pressure steam. Due to the relatively low utilization value of low-pressure steam, it is excluded from the energy scope to be considered in the sequel [28].
Electricity is supplied by both the steam turbine and the grid. The superheated steam discharged from the steam turbine drives a generator, which supplies electricity to the system. The electricity gap is balanced by purchasing electricity () from the grid. The self-generated electricity () is related to the coupling relationship between the steam flow rates and . The electricity demands of various equipment across the system, such as pumps and coolers, are collectively considered as a total electricity demand (), which is directly provided by the dispatchers.
Given data samples of the gas supply , electricity demand , and initial volume of the gas holder , the objective of this paper is to determine the optimal values of decision variables by minimizing gas loss, steam loss, and operating costs. Based on the above energy analysis, the decision variables include the extraction steam flow rate of the steam turbine (), the gas flow rate of the methanol production line (), the combustion gas flow rate of the steam boiler (), and the gas throughput of the gas holder (). In this optimization problem, gas loss refers to the coke oven gas venting, while steam loss refers to the excess medium-pressure steam produced. Operating costs require the following parameters to be specified: the coke oven gas purchase price (), high-pressure steam purchase price (), electricity grid purchase price (), self-generated electricity price (), and medium-pressure steam selling price (). Optimization constraints arise from the equipment capacities, energy balance, and model uncertainties. Equipment capacities limit the upper and lower bounds of energy production or consumption for equipment such as the steam turbine, gas holder, and steam boiler. Energy balance requires that the supply of coke oven gas and medium-pressure steam be at least equal to the demand, while the supply of electricity must exactly match the demand. Model uncertainties are the ones resulting from structural errors in the mechanistic models of desulfurization, steam boilers, air separation, and syngas compressors under varying operating conditions. Taking the model uncertainties as constraints is critically important for achieving a satisfactory executability of optimization solutions (to be shown later in Section 4).
3. The Proposed Method
3.1. Mechanistic Modeling
This subsection presents mechanistic models for the desulfurization, steam boiler, air separation, and syngas compressor.
3.1.1. Desulfurization Modeling
The steam consumption in the desulfurization is mainly influenced by the heat release of sulfur and the heat absorption of steam. The mathematical modeling of the desulfurization can be expressed as
where , , and are unknown parameters of the mechanistic model. , , and are polynomial coefficients that characterize a coupling relationship between the gas flowrate and sulfur mass flow rate [29].
3.1.2. Steam Boiler Modeling
The steam boiler converts the chemical energy of burning gas into thermal energy to generate steam. The steam generation flow rate of the steam boiler can be calculated as
where , , and are unknown parameters of the mechanistic model [30].
3.1.3. Air Separation Modeling
The air separation is driven by a steam turbine that powers an air compressor and a booster. The steam consumption of the air separation is described as
Here, , , and are unknown parameters of the mechanistic model, is a ratio of oxygen to coke oven gas in the converter, and is a correction factor [31].
3.1.4. Syngas Compressor Modeling
The syngas compressor uses three-stage compression, and its modeling logic is consistent with the air separation. The mechanistic model for the l-th stage (l = 1, 2, 3) of the syngas compressor can be represented as
where
Here, and are unknown parameters of the mechanistic model, and represent the fresh gas coming from the conversion subprocess, and is an empirical ratio of fresh gas to coke oven gas. is the syngas formed by the mixture of fresh gas and recycled gas, where , , and are polynomial parameters unaffected by uncertainties. Equation (5) is the calculation formula for the polytropic exponent of the l-th stage of the syngas compressor [32].
3.1.5. Methanol Synthesis Modeling
Methanol synthesis is conducted in a packed bed reactor. The chemical reactions include the hydrogenation reaction, hydrogenation reaction, and the reverse water-gas-shift (RWGS) reaction, as described in the following equations:
Assuming as the primary source of carbon in methanol, the reaction rates for methanol synthesis in (6) and the RWGS reaction in (8) are calculated as [33]
Here, the syngas entering the reactor is assumed to behave as an ideal gas, with the fugacity of component in the syngas being equivalent to its partial pressure, i.e., . The parameters of the steady-state kinetic models are based on the Arrhenius theory, namely, , where . The specific values of and are provided in Table 1. The equilibrium constants and are determined thermodynamically, with results provided by Graaf et al. [34] as
Table 1.
Parameter values of the steady-state kinetic models.
The molar balance relationship is derived from Equations (6) and (8):
The variation in temperature inside the reactor is analyzed based on the energy balance, while the variation in pressure is described using the Ergun equation, with the formulas defined as
Here, the enthalpy changes ( and ) for (6) and (8) are calculated as
The heat capacity of component at 298 K is represented as a polynomial function of , with relevant thermodynamic parameters provided in [35]. The gas density is derived from the ideal gas law as
where and are the molar fraction and molar mass of component , respectively.
3.1.6. Identification of Unknown Parameters
The mechanistic models in Equations (1)–(5) can be rewritten in the following form:
Here, x is the subscript index for the steam boiler model (B), desulfurization model (D), air separation model (), and l-th stage of syngas compressor model (). is the input variable of the model x, is the output variable of the model x, and are unknown parameters of the model x, where denotes the number of unknown parameters in the model x. is the operating condition vector that comprises multiple state variables, with reference ranges and nominal values presented in Table 2. The other variables in the mechanistic models have fixed values shown in Table 3 [2,28].
Table 2.
Reference ranges and nominal values of operating conditions.
Table 3.
Known values of the parameters.
The unknown parameters are estimated by minimizing the fitness between the measured data and the simulated data from the model in (14), which is defined as
where I is the number of discrete data points. Some existing optimization algorithms, such as the genetic algorithm, can be used to solve (15) to estimate . The algorithm is a standard parameter estimation method. If outliers or noise are present in the historical data, existing methods for handling such issues will be employed [36]. For example, outliers will be treated as unknown parameters, while noise will be mitigated through data smoothing techniques (e.g., simple moving average) or noise filtering methods (e.g., wavelet denoising).
3.2. Uncertainty Quantification
Due to structural errors in the mechanistic models, the “current” model estimated using the optimization algorithm may not accurately describe the true behavior of chemical equipment under “future” operating conditions. To address this issue, this subsection employs Bayesian estimation theory and the Markov Chain Monte Carlo (MCMC) approach to quantify model uncertainties by analyzing the differences between historical data and model predictions under varying operating conditions.
3.2.1. Bayesian Estimate
First, a prior parameter matrix is acquired based on the sets of historical data for model x. The n-th set of unknown parameters is estimated in (15) as by using the n-th set of historical data as the modeling data. After repeating the experiment times, a prior parameter matrix can be obtained, which is defined as
Second, using Bayesian estimation theory with as a condition, the posterior probability of the unknown parameters is estimated [37,38,39]. In the k-th dimension of , the upper and lower bounds of the parameter are defined based on the maximum and minimum values of the corresponding parameter set in . This enables the division of into equal intervals within that dimension. The interval division is uniformly applied across all dimensions of , resulting in a total of S high-dimensional intervals, where . Assuming there are sets of prior samples in that fall within the s-th interval, the probability of a sample within that interval is represented by a fictitious element . Having determined the sequence of sample sizes within each interval, is expressed as
In the absence of any preference information, the prior distribution is assumed to follow a uniform distribution (), i.e.,
Let the candidate values for in be denoted as . The prior probability of can be formulated as
where J is the number of the candidate values. The likelihood probability of given is calculated as
Using Bayesian theory, combined with the prior and likelihood probability in Equations (18) and (19), the posterior probability of is represented by
The conditional mean is often considered as the posterior estimate of , which is defined as
Third, considering a specified sample size of , sets of posterior samples are randomly generated from a uniform distribution within the s-th interval. The resulting posterior sample matrix within S intervals is
Kernel density estimation (KDE) is a nonparametric approach that estimates the overall PDF by smoothing each data point [40]. Based on the fundamental formula of KDE, the posterior PDF of can be described as
Here, the bandwidth is the smoothing parameter of the k-th dimension of . To avoid excessive smoothing of the nonunimodal distributions, Silverman’s rule of thumb is taken to calculate as
where is the standard deviation of the k-th dimension of , and is the interquartile range of the k-th dimension of . The kernel function in (22) is chosen to be the Gaussian kernel, which is defined as
3.2.2. Markov Chain Monte Carlo Approach
The Metropolis–Hastings algorithm is employed to randomly sample from the high-dimensional posterior PDF of (22) in order to simulate the complete posterior distribution and estimate model parameters:
- (1)
- Select the multivariate normal distribution as the proposal function , and set the initial point of the Markov chain at as .
- (2)
- Generate a new candidate parameter from based on the current parameter . The covariance matrix is calculated from as
- (3)
- Calculate an acceptance probability for given , and generate a uniform random number . The acceptance probability is defined asIf , accept and set it as the next state, i.e., . If , reject and keep the current state unchanged, i.e., .
3.3. Optimization Modeling
This subsection first formulates the constraints and multi-objective functions of the multi-energy system in the gas-to-methanol process. Next, the entropy weight approach based on the Pareto front is provided.
3.3.1. Optimization Constraints
In the multi-energy optimization problem, the energy balance constraints must be satisfied for each energy medium. The gas balance indictor ensures that the gas supply is greater than or equal to its consumption, as represented by
where
Here, Equation (26) simulates the energy loss in the gas storage and the return gas needed to provide the heat required for coking. The steam consumption by the desulfurization, air separation, and syngas compressors must not exceed the steam generated from the steam boilers and steam turbines. The steam balance indicator can be expressed as
where , , , , and correspond to the steam consumption models in (14), and corresponds to the steam generation model in (14).
The steam turbine expands high-pressure steam to medium-pressure steam , converting the heat in the superheated steam into mechanical energy to drive the generator for electricity generation. Additionally, it extracts steam at the intermediate stage to satisfy industrial medium-pressure steam demand. The electricity generation of the steam turbine, defined as , can be described as
where the relationships of flowrates among , , and are expressed as
The electricity balance indicator, which equalizes the electricity generation amount with electricity demand, is represented as
Based on process knowledge and practical engineering experience, the direction in which the system stores gas in the gas holder is defined as the positive direction. The gas holder volume reflects the imbalance between gas supply and consumption. When the gas holder operates within its designated operating range, it can effectively balance any surplus or shortage of gas in the system. The optimization constraints of the gas holder are described as follows:
Here, is the initial volume of the gas holder, and superscripts and are the maximum and minimum values of variables, respectively. The gas holder volume, adjusted by the optimization strategy in (31), must comply with the capacity constraint in (32), and the gas throughput should not exceed the limit in (33).
To maintain the normal operation of equipment, the production and consumption flowrates of primary energies like gas, steam, and electricity must operate within the following equipment capacity constraints:
Methanol synthesis does not involve the supply or consumption of coke oven gas or medium-pressure steam. And issues related to compression requirements, syngas flowrate, and electricity demand have been addressed in (4), (5), and (30). In addition, to ensure methanol production efficiency, the methanol flow rate at the outlet of the synthesis reactor must exceed the minimum threshold set in the process operation manual, i.e.,
where and are the inlet and outlet of the reactor, respectively.
3.3.2. Multi-Objective Functions
The optimization objective is to minimize the losses of gas and steam energy and operating costs under modeling uncertainties by reasonably allocating the three types of energy: gas, steam, and electricity. The multi-objective stochastic optimization model is constructed as
Here, are the decision variables of the optimization model. represents the energy loss function of gas:
where the gas loss is the difference between the supply and demand of gas in the system. Due to the difficulty in storing steam, to maintain the safety and stability of the equipment, some of the steam output from the steam boilers and steam turbines is not directly used for production. Therefore, the energy loss function of steam can be expressed as
In methanol production, high-pressure steam and coke oven gas serve as the primary fuels, and their associated purchase costs must be taken into account. Since the self-generated electricity from the steam turbine does not fulfill the entire electricity demand of the system, the cost of purchasing additional electricity from the grid must be factored in to achieve electricity balance. Furthermore, there are costs related to the self-generated electricity from the steam turbine. To maximize the utilization of surplus resources, this objective incorporates the sale of surplus medium-pressure steam into the operating costs. The objective function of the operating costs is
3.3.3. Entropy Weight Approach Based on Pareto Front
Multi-objective optimization problems often involve multiple conflicting objective functions, and there is usually no single solution that can simultaneously optimize all objectives. The Pareto front represents the set of all possible nondominated solutions in multi-objective optimization [41]. Assuming there are N optimal solutions denoted as , with three objective functions , , and , the corresponding objective function values for can be represented as
If there does not exist a solution x such that for all objective functions (where ) and holds for at least one objective function (where ), then belongs to the Pareto front.
In practical applications, optimization tasks often require a more specific solution. Therefore, the entropy weight approach is used to filter the ideal optimal solution on the Pareto front, effectively reducing the subjectivity and preferences among various objectives [42]. The proportion of in is calculated by normalization, and the proportion matrix of is expressed as
In information theory, entropy is a measure of the uncertainty of a system or the uniformity of its distribution. According to the formula for information entropy, the entropy of is expressed as
When the information entropy of a specific objective is low, it indicates that the differences among the optimal solutions are small, reflecting a low degree of uncertainty for that objective. Therefore, the objective is assigned a higher weight. Conversely, a higher entropy value implies a more uniform distribution of solutions, with greater differences among them, leading to a lower weight for the objective. The entropy weight corresponding to is obtained as
Considering the relative importance of various objectives in through , the position of the ideal optimal solution on the Pareto front can be determined as
3.4. Detailed Steps of the Proposed Method
As illustrated in Figure 2, the proposed method is outlined as the following steps:
Figure 2.
Flowchat of the proposed method.
- (1)
- The mechanistic models for the desulfurization, steam boiler, air separation, and syngas compressor in (1)–(5) are first formulated, with model parameters to be estimated through the genetic algorithm. Next, the posterior PDFs of these parameters in (22) are fitted based on the Bayesian estimation theory, which are then employed to establish the multi-objective stochastic optimization model in (36).
- (2)
- One set of parameter samples, denoted as , , , , , and , is randomly drawn from the posterior PDFs using the MCMC approach in Section 3.2.2. These samples serve as inputs for the optimization model in (36), transforming the uncertain optimization problem into a deterministic one.
- (3)
- The transformed problem is solved by a nonlinear solver, yielding a set of nondominated solutions on the Pareto front. As a typical nonlinear solver, the direct multi-search algorithm being implemented by the function “paretosearch” in Matlab is exploited here [43]. This solution set is evaluated by the entropy weight approach in (40)–(44), with the evaluation results being considered as the ideal optimal solution for the current samples, i.e., .
- (4)
- The parameter samples are updated, and Steps 2 and 3 are repeated until the sampling criterion of sets is met. Thus, the ideal optimal solutions across different parameter samples are obtained as .
- (5)
- The expected optimal values are adopted as the final solution for the optimization problem, being calculated as the mean of the ideal optimal solutions:
Remark: In Step 1, alternative stochastic optimization approaches, such as sample average approximation, can also be employed [44]. In Step 3, other Pareto front decision-making approaches, such as the entropy-weight TOPSIS approach, can likewise be applied [45]. The solutions obtained using various approaches are provided in Section 4 for comparison.
4. Case Studies
This section presents case studies based on a 250,000 gas-to-methanol process at Shandong Province in China. A simulation model was developed using Aspen HYSYS V11, a widely used software in chemical industries, to simulate this process in Figure 3. Figure A1, Figure A2, Figure A3, Figure A4, Figure A5 Figure A6 depict Aspen models for the packaged subprocesses, including the steam boiler, desulfurization, air separation, and syngas compressor. Note that there are two identical steam boilers (). The process operation manual specifies the values and reference ranges for the parameters and variables in Table 2, Table 3, Table 4 and Table 5 [2,28].
Figure 3.
Gas-to-methanol process based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Table 4.
Reference ranges of key variables.
Table 5.
Reference ranges of the parameters.
The first step of the proposed method is to estimate the unknown model parameters in (1)–(5). Let us take the desulfurization model in (1) as an example to explain Step 1. The prior parameter matrix is estimated based on the historical data from Aspen Hysys. is then applied to quantify the modeling uncertainties according to the Bayesian estimation theory outlined in Section 3.2.1. In (14), the input variable is the gas flow rate , while the output variable is the steam consumption flow rate . The operating conditions are defined by the inlet and outlet steam temperatures, which are denoted as . The step size for these operating conditions is set to 1 °C based on the sensor measurement resolution. According to the reference ranges in Table 2, namely, °C and °C, a total of 500 possible combinations of operating conditions are traversed. Using a ramp signal as the input data for the Aspen model in Figure A2, simulation experiments were conducted under 500 different operating conditions . A total of 500 sets of historical data were generated as . For each set of historical data, the unknown parameters of the desulfurization model were estimated in (15), resulting in . The same method was applied to the steam boiler, air separation, and syngas compressor models, generating , , , , and . Table 6 presents the number of identified models and the average fitness, indicating that these models are highly accurate and suitable for subsequent optimization tasks. In addition, a new dataset was generated under a new set of operating conditions that were different from those of the identified models. The average fitness between this dataset and the identified models is presented in Table 6. The fitting results, all exceeding 90%, indicate that the established models exhibit generalization abilities. Each dimension of these parameter matrices was divided into equal intervals, and the posterior PDFs of the model parameters are quantified in (22) using Bayesian estimation theory. The quantification results are depicted by the contour plots shown in Figure 4, Figure 5, Figure 6 and Figure 7.
Table 6.
Number of identified models and average fitness.
Figure 4.
Projections of the posterior PDF in (a) -, (c) -, and (e) -, and MCMC sampling results in (b) -, (d) -, and (f) - for the desulfurization model.
Figure 5.
Projections of the posterior PDF in (a) -, (c) -, and (e) -, and MCMC sampling results in (b) -, (d) -, and (f) - for the steam boiler model.
Figure 6.
Projections of the posterior PDF in (a) -, (c) -, and (e) -, and MCMC sampling results in (b) -, (d) -, and (f) - for the air separation model.
Figure 7.
The posterior PDFs in (a) -, (c) -, and (e) -, and MCMC sampling results in (b) -, (d) -, and (f) - for the syngas compressor model.
Second, one set of random parameter samples, as shown in Table 7, was drawn from the posterior PDFs in Figure 4, Figure 5, Figure 6 and Figure 7 using the MCMC method described in Section 3.2.2. These samples were used as the input data for the optimization problem in (36), and the optimization procedure in Steps 2 and 3 of the proposed method has been described in detail. The known conditions were as follows: the gas supply was 110 , the electricity demand was 40 MW, and the initial volume of the gas holder was 13 . The energy purchase and selling prices provided in Table 8 were utilized, with the following parameter values set: the return gas ratio was 0.45, the steam turbine extraction rate was 0.5, the gas storage loss rate was 0.21, and the steam safety margin was 0.1. The methanol synthesis reactor operates at 240 °C and 7.1 MPa, with the minimum methanol production threshold set at 18 t/h. The molar fractions of the gas components entering the reactor are as follows: , , , , , , and . A set of operating conditions, as shown in Table 9, was randomly generated from uniform distributions within the reference ranges specified in Table 2 to simulate the actual operating environment.
Table 7.
Unknown parameter samples based on the MCMC approach and their corresponding nominal values.
Table 8.
Purchase and selling prices of steam, gas, and electricity.
Table 9.
Random values of operating conditions from uniform distributions.
The optimal solution set on the Pareto front was obtained by solving (36). The objective function values of in (40) based on are presented in a three-dimensional graph shown in Figure 8a. Here, the yellow points represent the Pareto front points, while the blue circles correspond to discrete data points within the feasible region. The projections on two-dimensional planes of these data points are shown in Figure 8b–d. The smoothness of the Pareto front surface fitted from the yellow points indicates that is close to the true solution set. The entropy values for the objective functions , , and were calculated by (41) and (42) as , , and . Additionally, the PDFs of , , and are presented in Figure 9a,b, and c, respectively. The distributions of and are relatively concentrated, indicating small uncertainties, while the distribution of is more uniform, suggesting a larger uncertainty. Therefore, was down-weighted, resulting in entropy weights derived from Equation (43) as . The ideal optimal solution in was evaluated based on Equation (44) and is given by . If the entropy-weighted TOPSIS approach were to be applied in Step 3, the decision results in will be identical to those obtained using the entropy weight method. The optimal allocation of gas, steam, and electricity, along with the objective results, are presented in Table 10, while the concentration profiles in the methanol synthesis reactor are shown in Figure 10. The concentrations of key components at the reactor outlet are as follows: , , , and . The methanol production rate was 18.51 t/h, which complies with the relevant regulations in (35).
Figure 8.
(a) Pareto front points (yellow) and set of feasible points (blue); (b) View of the - plane; (c) View of the - plane; (d) View of the - plane.
Figure 9.
PDFs (red lines) of three objective functions (a) , (b) , and (c) on the Pareto Front.
Table 10.
Energy allocation and objective results after optimization.
Figure 10.
Concentration profiles in the methanol synthesis reactor.
Third, the parameter samples in Table 7 were updated without altering the known conditions and operating conditions to obtain the final solution in Steps 4 and 5 of the proposed method. As an example, random samples were drawn from the PDF of the desulfurization model in Figure 4 using the MCMC approach. The Markov chain for the desulfurization model converged after 150 sampling iterations in Figure 11, indicating that the current samples effectively simulate the posterior distribution. Based on the convergence of the Markov chains across all mechanistic models, 500 parameter samples were drawn, and the final sampling results are presented in the histograms in Figure 4, Figure 5, Figure 6 and Figure 7. A total of 500 ideal optimal solutions were obtained by repeating the solution procedure in Steps 2 and 3. The expected optimal values in (45) were then regarded as the final solution to the optimization problem in (36), specifically . If the sample average approximation approach was to be applied in Step 1, the resulting solution would be . The similarity of the results obtained by both approaches demonstrates the reliability of the proposed method. As a comparison, another experiment using a standard deterministic optimization was conducted. The operating conditions and unknown parameters were set to the nominal values shown in Table 2 and Table 7. These nominal values were used as the deterministic conditions for the optimization problem, and the corresponding deterministic solution was obtained as = 26.97 , = 53.61 , = 3.89 , and = −2.61 .
Figure 11.
Sample autocorrelation of three unknown parameters (a) , (b) , and (c) for the desulfurization model.
To demonstrate the effectiveness of the proposed method in the gas-to-methanol process, the executability of both the deterministic and uncertain optimization solutions was analyzed. The solutions were sent into the Aspen model shown in Figure 3 to determine whether they can be implemented successfully. If the implementation is successful, it indicates that the steam supply is greater than or equal to the steam demand, thus satisfying the constraint in (27) so that the solution is confirmed to be executable. Conversely, if the implementation fails, it indicates that the solution is nonexecutable. A total of 50 cases were designed to verify the executability of the solutions. The above case described in details served as the first one, while the known conditions and unknown parameter samples for the remaining 49 cases were kept consistent with those of the first case. A total of 50 sets of random operating conditions were used to represent different scheduling scenarios for optimization. The optimization procedure for the first case was repeated analogously for 49 times to compute the solutions for the other 49 cases. The energy distribution results for gas and steam across the 50 cases are displayed in Figure 12 and Figure 13, respectively. In the deterministic optimization, the deterministic solution was applied to the 50 cases, and its executability is illustrated in Figure 14. The difference between the steam supply and steam demand across 50 sets of cases is presented in Figure 14a, where the red dashed line indicates the zero loss line for steam. Cases below this dashed line are considered nonexecutable. Figure 14b uses binary values to represent executability: executable cases are assigned a value of ‘1’, while nonexecutable cases are assigned a value of ‘0’. For the deterministic optimization, the validation results reveal that 37 sets of cases are nonexecutable, while only 13 sets are executable. This demonstrates that, under most operating conditions, deterministic optimization may produce results that are not executable, leading to outcomes that contradict the intended objectives. On the contrary, for the uncertainty optimization, the verification results in Figure 15 demonstrate that all optimization solutions in Figure 12 and Figure 13 are executable across all 50 sets of cases. This confirms the rationale and necessity of incorporating model uncertainties in the optimization of the gas-to-methanol process, resulting in a 74% improvement in executability compared to the deterministic optimization.
Figure 12.
Allocation results of gas energy for 50 sets of cases.
Figure 13.
Allocation results of steam energy for 50 sets of cases.
Figure 14.
(a) Steam loss results (red dashed line: zero steam loss line) and (b) execution results of deterministic optimization for 50 sets of cases.
Figure 15.
(a) Steam loss results (red dashed line: zero steam loss line) and (b) execution results of uncertainty optimization for 50 sets of cases.
5. Conclusions
This paper proposed an entropy-based stochastic optimization method for a multi-energy system in a gas-to-methanol process, focusing on optimizing the allocation of gas, steam, and electricity to ensure executability under modeling uncertainties. The mechanistic models were developed at first for chemical equipments, including the desulfurization, air separation, syngas compressors, and steam boilers, whose parameters were estimated based on historical data. Structural errors in these mechanistic models under varying operating conditions resulted in noticeable model uncertainties. Bayesian estimation theory was used to fit probability density functions (PDFs) of the estimated model parameters by analyzing the differences between historical data and model predictions under varying operating conditions. The Markov Chain Monte Carlo approach was applied to generate parameter samples from these PDFs, decomposing the uncertain optimization problem into multiple deterministic ones. The optimization problem aimed to minimize gas loss, steam loss, and operating costs under constraints related to model uncertainties, equipment capacities, and energy balance. In the multi-objective optimization, the Pareto front solution set was filtered using the entropy weight approach, selecting a final solution with the minimal subjectivity and preferences. Case studies with Aspen Hysys-based simulations showed that optimization solutions considering model uncertainties improved executability by 74% compared to the counterparts from a standard deterministic optimization.
We are currently applying the optimization solutions obtained in this paper to a real industrial setting. The chemical company employs a manual, experience-based scheduling method that leads to significant waste of medium-pressure steam. Therefore, the application of the proposed optimization method is expected to yield satisfactory improvements in the company’s energy efficiency and economic performance.
Author Contributions
Conceptualization, J.W.; methodology, J.W. and X.W.; validation, J.W. and Y.Y.; formal analysis, X.W and M.W., data curation, X.W. and Y.Y.; writing—original draft preparation, X.W.; writing—review and editing, J.W. and M.W.; visualization, X.W. and M.W.; project administration, J.W.; funding acquisition, J.W. and Y.Y. All authors have read and agreed to the published version of the manuscript.
Funding
This work was partially supported by the National Natural Science Foundation of China under Grant No. 62273215 and the Major Scientific and Technological Innovation Project of Shandong Province under Grant No. 2021SFGC1101.
Institutional Review Board Statement
Not applicable.
Data Availability Statement
All data are presented in the main text.
Conflicts of Interest
Author Yang Yue was employed by the company Shandong Rongxin Group Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Nomenclature
| excess air coefficient for exhaust gas | |
| ∅ | porosity of the catalyst |
| , | isentropic efficiency of air separation turbines |
| polytropic efficiency of l-th stage of syngas compressor | |
| isentropic efficiency of steam turbine | |
| isentropic efficiency of l-th stage of syngas compressor turbine | |
| isentropic efficiency of air separation turbine | |
| return ratio of gas supply back to the coking combustor | |
| steam safety margin | |
| extraction rate of steam drawn from the high-pressure cylinder | |
| loss rate of gas storage | |
| the number of steam boilers in the energy system | |
| viscosity of gas passing through the bed | |
| solid density of the catalyst | |
| , | inlet gas density of air separation compressors |
| fresh gas inlet relative density of l-th stage of syngas compressor | |
| cross-sectional area of the reactor | |
| polynomial parameters of desulfurization model | |
| polynomial parameters of desulfurization model | |
| polynomial parameters of desulfurization model | |
| specific heat capacity of steam at constant pressure | |
| specific heat capacity of sulfur at constant pressure | |
| diameter of particle in the bed | |
| enthalpy value of steam | |
| enthalpy value of feed water | |
| steam entropy difference between the inlet and outlet of the | |
| low-pressure (high-pressure) cylinder | |
| calculation coefficient | |
| calculation coefficient | |
| steam adiabatic index of l-th stage of syngas compressor turbine | |
| steam adiabatic index of air separation turbine | |
| molar mass of inlet gas at l-th stage of syngas compressor | |
| total heat value of fuel | |
| loss due to incomplete chemical combustion | |
| R | gas constant for air |
| universal gas constant | |
| W | mass of the catalyst |
| electricity demand of the energy system | |
| purchased electricity from the grid | |
| self-generated electricity of the steam turbine | |
| gas supply flow rate of the energy system | |
| gas combustion flow rate in the steam boiler | |
| gas throughput of the gas holder | |
| gas flow rate into the methanol production line | |
| return flow rate of gas in the coking combustor | |
| steam consumption flow rate for the air separation | |
| steam production flow rate of the steam boiler | |
| steam consumption flow rate for the desulfurization | |
| steam consumption flow rate for the syngas compressor | |
| extraction steam flow rate of the steam turbine | |
| , | air inlet pressure of air separation compressors |
| , | air outlet pressure of air separation compressors |
| inlet pressure of l-th stage of syngas compressor | |
| outlet pressure of l-th stage of syngas compressor | |
| steam inlet pressure of turbine | |
| steam outlet pressure of turbine | |
| , | air inlet temperature of air separation compressors |
| cold air temperature | |
| exhaust gas temperature | |
| inlet temperature of l-th stage of syngas compressor | |
| outlet temperature of l-th stage of syngas compressor | |
| inlet temperature of steam | |
| outlet temperature of steam | |
| inlet temperature of sulfur | |
| outlet temperature of sulfur | |
| steam inlet temperature of turbine | |
| storage volume of the gas holder |
Appendix A
The encapsulated subprocesses of the Aspen model for the gas-to-methanol process described in Figure 3 include the steam boiler, desulfurization, air separation, and syngas compressor, as depicted below:
Figure A1.
Steam turbine model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Figure A2.
Desulfurization model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Figure A3.
Steam boiler model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Figure A4.
Air separation model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Figure A5.
Syngas compressor model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
Figure A6.
Conversion section model based on Aspen Hysys (blue arrow: material stream; red arrow: energy stream).
References
- Zhang, C.; Jun, K.-W.; Kwak, G.; Lee, Y.-J.; Park, H.-G. Efficient utilization of carbon dioxide in a gas-to-methanol process composed of CO2/steam–mixed reforming and methanol synthesis. J. CO2 Util. 2016, 16, 1–7. [Google Scholar] [CrossRef]
- Gong, M.; Yi, Q.; Huang, Y.; Wu, G.; Hao, Y.; Feng, J.; Li, W. Coke oven gas to methanol process integrated with CO2 recycle for high energy efficiency, economic benefits and low emissions. Energy Convers. Manag. 2017, 133, 318–331. [Google Scholar] [CrossRef]
- Frangopoulos, C.A. Recent developments and trends in optimization of energy systems. Energy 2018, 164, 1011–1020. [Google Scholar] [CrossRef]
- Mancò, G.; Tesio, U.; Guelpa, E.; Verda, V. A review on multi energy systems modelling and optimization. Appl. Therm. Eng. 2024, 236, 121871. [Google Scholar] [CrossRef]
- Fodstad, M.; Crespo Del Granado, P.; Hellemo, L.; Knudsen, B.R.; Pisciella, P.; Silvast, A.; Bordin, C.; Schmidt, S.; Straus, J. Next frontiers in energy system modelling: A review on challenges and the state of the art. Renew. Sustain. Energy Rev. 2022, 160, 112246. [Google Scholar] [CrossRef]
- Yue, X.; Pye, S.; DeCarolis, J.; Li, F.G.N.; Rogan, F.; Gallachóir, B.Ó. A review of approaches to uncertainty assessment in energy system optimization models. Energy Strategy Rev. 2018, 21, 204–217. [Google Scholar] [CrossRef]
- Acar, E.; Bayrak, G.; Jung, Y.; Lee, I.; Ramu, P.; Ravichandran, S.S. Modeling, analysis, and optimization under uncertainties: A review. Struct. Multidisc. Optim. 2021, 64, 2909–2945. [Google Scholar] [CrossRef]
- Gao, W.; Lin, Y. Energy dispatch for CCHP system in summer based on deep reinforcement learning. Entropy 2023, 25, 544. [Google Scholar] [CrossRef]
- Xu, R.; Lin, F.; Shao, W.; Wang, H.; Meng, F.; Li, J. Multi-time-scale optimal scheduling strategy for marine renewable energy based on deep reinforcement learning algorithm. Entropy 2024, 26, 331. [Google Scholar] [CrossRef]
- Urbanucci, L.; Testi, D. Optimal integrated sizing and operation of a CHP system with Monte Carlo risk analysis for long-term uncertainty in energy demands. Energy Convers. Manag. 2018, 157, 307–316. [Google Scholar] [CrossRef]
- Qian, Q.; Liu, H.; He, C.; Shu, Y.; Chen, Q.L.; Zhang, B.J. Sustainable retrofit of petrochemical energy systems under multiple uncertainties using the stochastic optimization method. Comput. Chem. Eng. 2021, 151, 107374. [Google Scholar] [CrossRef]
- Dong, J.; Song, Z.; Zheng, Y.; Luo, J.; Zhang, M.; Yang, X.; Ma, H. Robust optimization research of cyber–physical power system considering wind power uncertainty and coupled relationship. Entropy 2024, 26, 795. [Google Scholar] [CrossRef] [PubMed]
- DeCarolis, J.F.; Babaee, S.; Li, B.; Kanungo, S. Modelling to generate alternatives with an energy system optimization model. Environ. Model. Softw. 2016, 79, 300–310. [Google Scholar] [CrossRef]
- Rakipour, D.; Barati, H. Probabilistic optimization in operation of energy hub with participation of renewable energy resources and demand response. Energy 2019, 173, 384–399. [Google Scholar] [CrossRef]
- Vahid-Pakdel, M.J.; Nojavan, S.; Mohammadi-ivatloo, B.; Zare, K. Stochastic optimization of energy hub operation with consideration of thermal energy market and demand response. Energy Convers. Manag. 2017, 145, 117–128. [Google Scholar] [CrossRef]
- Song, Y.; Mu, H.; Li, N.; Wang, H.; Kong, X. Optimal scheduling of zero-carbon integrated energy system considering long- and short-term energy storages, demand response, and uncertainty. J. Clean. Prod. 2024, 435, 140393. [Google Scholar] [CrossRef]
- Xiao, H.; Long, F.; Zeng, L.; Zhao, W.; Wang, J.; Li, Y. Optimal scheduling of regional integrated energy system considering multiple uncertainties and integrated demand response. Electr. Power Syst. Res. 2023, 217, 109169. [Google Scholar] [CrossRef]
- Li, Y.; Wang, B.; Yang, Z.; Li, J.; Li, G. Optimal scheduling of integrated demand response-enabled community-integrated energy systems in uncertain environments. IEEE Trans. Ind. Applicat. 2022, 58, 2640–2651. [Google Scholar] [CrossRef]
- Niknam, T.; Azizipanah-Abarghooee, R.; Narimani, M.R. An efficient scenario-based stochastic programming framework for multi-objective optimal micro-grid operation. Appl. Energy 2012, 99, 455–470. [Google Scholar] [CrossRef]
- Azizi, A.; Karimi, H.; Jadid, S. Daily operation of multi-energy systems based on stochastic optimization considering prediction of renewable energy generation. IET Renew. Power Gener. 2022, 16, 245–260. [Google Scholar] [CrossRef]
- Mei, F.; Zhang, J.; Lu, J.; Lu, J.; Jiang, Y.; Gu, J.; Yu, K.; Gan, L. Stochastic optimal operation model for a distributed integrated energy system based on multiple-scenario simulations. Energy 2021, 219, 119629. [Google Scholar] [CrossRef]
- Sakki, G.K.; Tsoukalas, I.; Kossieris, P.; Makropoulos, C.; Efstratiadis, A. Stochastic simulation-optimization framework for the design and assessment of renewable energy systems under uncertainty. Renew. Sustain. Energy Rev. 2022, 168, 112886. [Google Scholar] [CrossRef]
- Lei, Y.; Wang, D.; Jia, H.; Chen, J.; Li, J.; Song, Y.; Li, J. Multi-objective stochastic expansion planning based on multi-dimensional correlation scenario generation method for regional integrated energy system integrated renewable energy. Appl. Energy 2020, 276, 115395. [Google Scholar] [CrossRef]
- Kim, J.; Jamdade, S.; Yuan, Y.; Realff, M.J. Metal-organic frameworks for atmospheric water extraction: Kinetic analysis and stochastic programming under climate variability. J. Clean. Prod. 2024, 482, 144187. [Google Scholar] [CrossRef]
- Albert, C.G.; Callies, U.; Von Toussaint, U. A Bayesian approach to the estimation of parameters and their interdependencies in environmental modeling. Entropy 2022, 24, 231. [Google Scholar] [CrossRef]
- Xing, X.; Wang, J.; Sun, S. Nonlinear dynamic models with uncertainties measured by fuzzy sets for radiator-heated buildings. IEEE Trans. Fuzzy Syst. 2024, 1–7. [Google Scholar] [CrossRef]
- Xiang, D.; Xiang, J.; Sun, Z.; Cao, Y. The integrated coke-oven gas and pulverized coke gasification for methanol production with highly efficient hydrogen utilization. Energy 2017, 140, 78–91. [Google Scholar] [CrossRef]
- Yue, Y.; Du, H.; Wu, H. Process Operation Manual for Main Equipment of Methanol Production Lines; Shandong Rongxin Group Co. Ltd.: Zoucheng, China, 2020; pp. 1–1550. [Google Scholar]
- Incropera, F.P.; DeWitt, D.P.; Bergman, T.L.; Lavine, A.S. Fundamentals of Heat and Mass Transfer; Wiley: New York, NY, USA, 1996. [Google Scholar]
- Trojan, M. Modeling of a steam boiler operation using the boiler nonlinear mathematical model. Energy 2019, 175, 1194–1208. [Google Scholar] [CrossRef]
- Dominic, S.; Maier, U. Dynamic modeling and simulation of compressor trains for an air separation unit. IFAC Proc. Vol. 2014, 47, 432–437. [Google Scholar] [CrossRef]
- Engelberth, T.; Krawczyk, D.; Verl, A. Model-based method for condition monitoring and diagnosis of compressors. Procedia CIRP 2018, 72, 1321–1326. [Google Scholar] [CrossRef]
- Bussche, K.M.V.; Froment, G.F. A steady-state kinetic model for methanol synthesis and the water gas shift reaction on a commercial Cu/ZnO/Al2O3 Catalyst. J. Catal. 1996, 161, 1–10. [Google Scholar] [CrossRef]
- Graaf, G.H.; Sijtsema, P.; Stamhuis, E.J. Chemical equilibria in methanol synthesis. Chem. Eng. Sci. 1986, 41, 2883–2890. [Google Scholar] [CrossRef]
- Domalski, E.S.; Hearing, E.D. Estimation of the thermodynamic properties of C-H-N-O-S-halogen compounds at 298.15 K. J. Phys. Chem. Ref. Data 1993, 22, 805–1159. [Google Scholar] [CrossRef]
- Lennart, L. System Identification: Theory for the User, 2nd ed.; Prentice-Hall: Englewood Cliffs, NJ, USA, 1999. [Google Scholar]
- Freni, G. Bayesian approach for uncertainty quantification in water quality modelling: The influence of prior distribution. J. Hydrol. 2010, 392, 31–39. [Google Scholar] [CrossRef]
- Park, I.; Amarchinta, H.K.; Grandhi, R.V. A Bayesian approach for quantification of model uncertainty. Reliab. Eng. Syst. Saf. 2010, 95, 777–785. [Google Scholar] [CrossRef]
- Van De Schoot, R.; Depaoli, S.; King, R.; Kramer, B.; Märtens, K.; Tadesse, M.G.; Vannucci, M.; Gelman, A.; Veen, D.; Willemsen, J.; et al. Bayesian statistics and modelling. Nat. Rev. Methods Prim. 2021, 1, 1. [Google Scholar] [CrossRef]
- Weglarczyk, S. Kernel density estimation and its application. ITM Web Conf. 2018, 23, 00037. [Google Scholar] [CrossRef]
- Li, Y. MOMCMC: An efficient Monte Carlo method for multi-objective sampling over real parameter space. Comput. Math. Appl. 2012, 64, 3542–3556. [Google Scholar] [CrossRef][Green Version]
- Shen, Y.; Li, D.; Wang, W. Multi-energy load prediction method for integrated energy system based on fennec fox optimization algorithm and hybrid kernel extreme learning machine. Entropy 2024, 26, 699. [Google Scholar] [CrossRef] [PubMed]
- Custódio, A.L.; Madeira, J.F.A.; Vaz, A.I.F.; Vicente, L.N. Direct multisearch for multiobjective optimization. SIAM J. Optim. 2011, 21, 1109–1140. [Google Scholar] [CrossRef]
- Homem-de-Mello, T.; Bayraksan, G. Monte Carlo sampling-based methods for stochastic optimization. Surv. Oper. Res. Manag. Sci. 2014, 19, 56–85. [Google Scholar] [CrossRef]
- Chen, P. Effects of the entropy weight on TOPSIS. Expert Syst. Appl. 2021, 168, 114186. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).