Skip to Content
ThermoThermo
  • Article
  • Open Access

23 March 2026

50 Pages

Thermodynamic Optimization of a Combined Cycle Cogeneration System for Petroleum Refinery Applications

,
,
,
,
and
1
Tecnológico Nacional de México/TES de Ecatepec, Av. Tecnológico S/N, Col. Valle de Anáhuac, Ecatepec de Morelos 55210, Mexico
2
Departamento de Ingeniería de Procesos e Hidráulica, Universidad Autónoma Metropolitana—Iztapalapa, Av. Ferrocarril San Rafael Atlixco No. 186, Colonia Leyes de Reforma 1a Sección, Iztapalapa, Mexico City 09340, Mexico
3
Departamento de Procesos y Tecnología, Universidad Autónoma Metropolitana—Cuajimalpa, Av. Vasco de Quiroga No. 4871, Colonia Santa Fé, Cuajimalpa, Mexico City 05348, Mexico
*
Author to whom correspondence should be addressed.

Abstract

Cogeneration system optimization in refineries confronts the challenge of simultaneously integrating design parameter selection and topological configuration. The literature typically addresses these aspects separately: parametric optimization with fixed topology or configuration optimization for specific nominal conditions. This work develops a comprehensive methodology integrating exhaustive parametric exploration with superstructure-based optimization through mixed-integer nonlinear programming (MINLP), applied to the Miguel Hidalgo refinery in Tula, Mexico. The systematic procedure generates superstructures considering all viable expansion and tempering routes under steam quality restrictions ( x ≥ 0.88 ), evaluating 84–105 combinations of generation pressure ( P HRSG = 70 –140 bar) and superheater outlet temperature ( T s 4 = 500 –560 °C). The analysis reveals three topologically distinct configurations identified as generating maximum power under different operating conditions and characterizes how transitions between high-performing configurations occur at discrete thermodynamic thresholds that correlate with constraint activation contradicting the conventional assumption of continuous parameter-configuration relationships. Multi-criteria evaluation positions Configuration 1 as the recommended design, generating 25% increase in electric generation, 11% improvement in utilization factor ( U F : 0.640 → 0.710 ) and 20% reduction in specific fuel consumption ( S F C : 0.259 → 0.207 kg/kWh). The methodology is directly generalizable to other refineries through universal thermodynamic principles, with a systematic five-step procedure applicable to any multi-pressure steam demand profile. The characterization of discrete transition phenomena and the associated methodology for their thermodynamic explanation challenges the conventional assumption of continuous parameter–configuration relationships in optimization approaches, with immediate implications for the design of flexible cogeneration systems in refineries worldwide.

1. Introduction

Petroleum refineries represent energy-intensive industrial facilities that simultaneously demand electricity and process steam at multiple pressure levels for hydrotreatment, distillation, and catalytic reforming operations [1,2]. The conventional configuration—steam generation in boilers through direct combustion (thermal efficiency 80–85%) and electricity supply from the national grid—results in inefficient utilization of primary energy. Cogeneration systems based on gas turbines with heat recovery steam generators (HRSGs) and integrated steam cycles can achieve overall fuel utilization efficiencies of 70–85% [1,3,4], representing a critical strategy for fuel consumption and CO2 emissions reduction in the industrial sector [5]. The literature consistently documents operating cost reductions of 15–20% [6,7], emissions decreases of 20–30% [8,9], and payback periods of 2–4 years for large-scale applications.
The literature on cogeneration optimization in refineries can be classified into three methodological approaches. The first evaluates specific predefined configurations through detailed thermodynamic simulation. Costea and Feidt [3] demonstrated efficiencies of 75–85% in multi-pressure combined cycles, while Mehrpooya et al. [4] quantified 12–15% reductions in specific fuel consumption. Pariasamy et al. [10] reviewed refinery configurations, documenting decreases in generation costs. These works report significant improvements but typically analyze a topology selected a priori, limiting the search space. The second approach addresses operational optimization for systems with fixed topology. Chen et al. [6] developed comprehensive MINLP models for retrofit, distinguishing three contexts: operational optimization (3–5% improvements), retrofit with restricted modifications (12–18% improvements), and greenfield design with free topology. Manesh et al. [9] and Lazzaretto and Toffolo [11,12] developed thermoeconomic optimization methodologies. A common characteristic is that these studies typically fix HRSG design parameters at nominal values, then optimize configuration for that specific point [13,14]. The third approach uses mixed-integer programming (MINLP) for simultaneous topology synthesis through superstructures [15,16]. Variny et al. [17] optimized systems with 15 pressure levels, Martelli et al. [18] proposed master–slave decomposition, Marty et al. [19] designed organic Rankine cycles with automated fluid selection. However, each implementation focuses on a specific system with ad hoc-derived superstructure, without guaranteeing the consideration of all thermodynamically viable alternatives [20,21].
Despite the progress in superstructure-based optimization, there exists an unresolved methodological tension between systematic parametric exploration and topological optimization. Existing studies typically adopt one of two approaches: (1) fixing HRSG design parameters at nominal values and optimize topology for those conditions or (2) optimizing operational parameters for a predefined topological configuration. Systematic exploration of the two-dimensional space (design parameters × optimal topology) remains scarcely reported in the refinery cogeneration literature. This gap limits understanding of how nonlinear thermodynamic constraints—particularly the minimum steam quality constraint ( x ≥ 0.88 ) to prevent blade erosion [22,23]—can induce discrete transitions between optimal configurations when operational parameters cross critical thresholds.
The optimization of cogeneration systems in refineries has advanced significantly through superstructure-based approaches, which systematically integrate multiple technologies using mathematical models such as MILP and MINLP to explore alternative configurations [24,25]. These models traditionally organize units in a hierarchical series–parallel process network but may present limitations in faithfully representing critical nonlinear relationships, such as thermodynamic properties or steam quality constraints in steam turbines [26]. Although recent studies have incorporated rigorous correlations and propositional logic to exclude infeasible configurations, and have even addressed specific problems such as hydrogen management through MINLP superstructures [27], the simultaneous exploration of parametric and topological spaces in cogeneration remains a challenge due to strong nonlinearities and the presence of integer variables. Moreover, phenomena such as abrupt shifts between optimal configurations under variations in product prices or operating conditions, observed in optimization under uncertainty in other energy sectors, have not been sufficiently examined in the refinery context, where thermodynamic and economic constraints can induce discrete changes in the selected topology.
This work identifies three specific limitations. First, topological preselection approaches limit the search space without a systematic completeness guarantee [20]. Second, optimization for specific HRSG nominal conditions is insufficient for greenfield projects where freedom exists to specify parameters; sensitivity of optimal configurations to parametric variations remains scarcely characterized [6,13]. Third, the implicit assumption of continuity between parameters and optimal configuration lacks explicit verification; active thermodynamic constraints can induce discrete transitions when parameters cross thresholds, a phenomenon not systematically documented.
The present work applies to the cogeneration project between the Federal Electricity Commission (CFE) and Mexican Petroleum (PEMEX) at the Miguel Hidalgo refinery, Tula, Hidalgo. This project forms part of the national strategy for energy efficiency and refinery modernization. Four out-of-service gas turbines will be rehabilitated for simultaneous generation of electricity and process steam through cogeneration. This case represents an appropriate context for methodological research by combining typical refinery characteristics with design freedom for specification of rehabilitated HRSG parameters.
This work addresses the following research question: how does the optimal steam cycle configuration vary with fundamental HRSG operational parameters, and what thermodynamic mechanisms cause transitions between configurations? Specifically, it seeks to: (1) develop a systematic procedure for superstructure construction that guarantees consideration of all thermodynamically viable alternatives; (2) quantify performance sensitivity to pressure and HRSG temperature variations, identifying high-sensitivity regions versus robust zones; and (3) characterize mechanisms causing discrete transitions between configurations, determining whether they occur at predictable thresholds through a priori thermodynamic analysis.
The main contributions are organized into three categories. Methodologically, a systematic four-step procedure for superstructure construction is developed: (1) identification of relevant pressure levels, (2) thermodynamic viability evaluation through quality criterion x ≥ 0.88 , (3) definition of multi-stage turbines for viable routes, and (4) integration into complete superstructure with formal completeness verification. A rigorous MINLP model incorporating mass and energy balances, steam quality constraints, and technological limits is formulated, being directly transferable to other facilities through specification of particular demands. Scientifically, distinct optimal configurations emerging under different HRSG conditions are identified, demonstrating optimal topology dependence on design parameters. A phenomenon of discrete transitions induced by quality constraint when parameters cross critical thresholds determined by energy balances in mixers is discovered. Thermodynamic analysis explaining causal physical mechanisms is developed, allowing anticipation of transition thresholds. Performance surfaces in two-dimensional parametric space are quantified (pressure P HRSG = 75–140 bar, temperature T s 4 = 500–550 °C), revealing high-sensitivity regions and robust zones. Practically, an optimal configuration recommendation for implementation with energy benefit quantification is provided, identifying trade-offs between power maximization and operational reliability and evaluating potential under future operating conditions. The methodology is applicable to other refineries for aggregate improvement potential identification.
Section 2 presents system description, systematic superstructure development, and mathematical formulation of the optimization problem. Section 3 reports parametric study design and implementation methodology. Section 4 presents identified optimal configurations, parametric space exploration, transition mechanisms, and comparative analysis. Section 6 synthesizes the conclusions and proposes future work.

2. Cogeneration System Description

2.1. Project Context

This work analyzes the cogeneration design for a petroleum refinery in central Mexico. The refinery demands continuous process steam at two pressure levels. An adjacent combined cycle power plant possesses four gas turbines and four heat recovery steam generators that are out of service. The rehabilitation project seeks to integrate both facilities through simultaneous cogeneration of electricity and steam.
This configuration is appropriate for methodological research for three reasons. First, the system presents representative characteristics of industrial cogeneration: multi-pressure process steam requirement (mass flow, pressure, and temperature)s with strict specifications, continuous operation with high reliability, and integration with existing processes. Second, existing equipment has documented specifications that enable methodological validation. Third, a complete redesign allows parametric exploration without limitations of the original configuration.
These characteristics make the system a valuable case study for developing and validating optimization methodologies applicable to other similar projects.

2.2. Gas Turbines

The base generation system consists of four identical gas turbines. Each unit has a nominal capacity of 72 MW. The total installed capacity is 288 MW. The units operated for approximately 35 years before their retirement.
Figure 1 shows a gas turbine train coupled to its HRSG. The system comprises a compressor, a turbine, a combustion chamber, and an electric generator. The gas turbine exhaust gases are utilized in the HRSG to generate steam through three sections: economizer, evaporator, and superheater. In the steam drum, liquid and vapor phases are separated, allowing for the extraction of dry saturated steam for superheating through the superheater.
Figure 1. Configuration of a gas turbine unit coupled to its HRSG.
Table 1 presents the operational parameters of the gas turbines. The fuel is natural gas with volumetric composition: 88% CH4, 10% C2H6, 2% C3H8. The lower heating value is 49,514 kJ/kg. Combustion gases exit at elevated temperature with significant excess air. These conditions favor steam generation without supplementary firing.
Table 1. Operational parameters of gas turbines.
These high-temperature gases feed the HRSGs to generate the steam required by the refinery.

2.3. Process Steam Demands

The refinery requires continuous steam at two pressure levels. Table 2 specifies the design demands. High-pressure (HP) steam represents 11.8% of total demand. This steam feeds units requiring high temperature. Low-pressure (LP) steam represents 88.2% of demand. This steam feeds multiple consumers distributed throughout the refinery.
Table 2. Refinery process steam demands.
This work considers these demands constant at their nominal values. This simplification allows focusing the analysis on steam cycle optimization. Extension to variable demands is identified as future work.

2.4. Heat Recovery Steam Generators

2.4.1. Existing Configuration

Each gas turbine is coupled to a horizontal HRSG with countercurrent flow. The HRSG consists of three main sections, as shown in Figure 1. The economizer preheats feedwater from s 1 to approximately saturation temperature. The evaporator vaporizes water at constant pressure, generating saturated steam in the drum. The superheater heats saturated steam extracted from the drum ( s 3 ) until reaching design temperature ( s 4 ).
Table 3 presents the original design specifications. The HRSGs operated in a single-pressure-level configuration. The total flow from the four units was 163.74 kg/s. This configuration discharged gases to the atmosphere without power cycle integration.
Table 3. Design specifications of existing HRSGs.

2.4.2. Redesign Scope

The project contemplates a complete HRSG redesign. This design freedom allows systematic parametric exploration. The objective is to identify configurations that maximize electrical generation while satisfying steam demands.
This analysis explores the following parametric ranges. Generation pressure varies between 70 and 140 bar. The lower limit guarantees satisfying HP demand (60 bar) with a margin for pressure drops. The upper limit is determined by metallurgical restrictions at the available gas temperature. Superheating temperature varies between 500 and 560 °C. The lower limit guarantees meeting HP specification (482 °C) with a margin for thermal losses. The upper limit is limited by materials and gas temperature.
This analysis considers a single pressure level configuration to simplify parametric exploration. Extension to multi-pressure configurations is identified as future work. Supplementary firing is not considered. HRSGs utilize only sensible heat from exhaust gases.
For each pressure–temperature combination, steam flow is calculated through a rigorous energy balance. The calculation imposes constraints of minimum pinch point, approach temperature in the superheater, and minimum HRSG stack temperature to avoid acid condensation.

2.5. Reference Conditions

Table 4 presents reference conditions for thermodynamic calculations. Water–steam properties are calculated using IAPWS-IF97 correlations, which are utilized through the XSteam add-in in Excel. Combustion gases are modeled as an ideal gas with constant specific heat c p = 1.3428 kJ/(kg·K). This value is the weighted average for typical natural gas combustion gas composition with excess air.
Table 4. Reference conditions for thermodynamic analysis.
Condenser pressure is calculated as saturation pressure at cooling water temperature plus Δ T COND
P COND = P sat ( T amb + Δ T COND )
These conditions are maintained consistently across all calculations presented in this work.

2.6. Proposed System Configuration

Following the repowering performed at the Tula combined cycle power plant, four gas turbines with their respective HRSGs were retired. Additionally, the refinery generates steam independently through conventional boilers. However, this configuration results in relatively low overall efficiency.
The proposed configuration integrates electrical generation with steam supply to the refinery. The system comprises three main elements. First, complete rehabilitation of the four gas turbines and HRSGs to guarantee the supply of steam flows with pressure and temperature parameters demanded by the refinery. Second, installation of an integrated steam cycle including steam turbines with controlled extractions, condenser, pump, makeup tank, and distribution network. Third, a control system for coordinated facility operation.
The proposed system would simultaneously generate electrical power and process steam. Electrical power comes from gas turbines (288 MW) plus the steam cycle. Process steam (13.89 kg/s at 60 bar/482 °C and 104.17 kg/s at 20 bar/350 °C) is extracted from steam turbines.
The central design challenge lies in conflicting objectives. Maximizing electrical power requires expanding all steam to the condenser. Satisfying process demands requires extracting steam at intermediate pressures (60 bar for HP, 20 bar for LP). Extractions reduce the flow available for generation in low-pressure stages. However, extractions are indispensable for refinery specifications. Additionally, steam from the HRSG exceeds the required temperatures. This difference requires reduction strategies without excessive exergy destruction.
The following section presents a systematic formulation of the steam cycle superstructure that resolves these challenges.

3. Steam Cycle Superstructure Formulation

3.1. Optimal Design Problem Statement

The optimal steam cycle design resolves two conflicting objectives. The first objective is to maximize electrical power generation ( max W ˙ ST ). The second objective is to satisfy exactly the steam demands ( m ˙ HP = 13.89 kg/s at 60 bar/482 °C, m ˙ LP = 104.17 kg/s at 20 bar/350 °C). This multi-objective problem is reformulated as constrained optimization: maximize power subject to exact satisfaction of demands and thermodynamic constraints.
Steam generated in HRSGs must be distributed to three destinations. First, extractions at 60 bar for HP demand. Second, extractions at 20 bar for LP demand. Third, discharge to the condenser of excess flow. The pressure hierarchy must satisfy P HRSG > P HP > P LP > P COND . Differences between consecutive levels must allow viable turbine expansion.
Industrial steam turbines require a minimum steam quality in all stages. This constraint avoids mechanical blade erosion from water droplet impact. The established criterion is x ≥ 0.88 in all expansions, although generally, the last expansion in a steam turbine is where the presence of a two-phase mixture occurs. For saturated or two-phase steam,
x = h − h f ( P ) h f g ( P ) ≥ 0.88
where h is specific enthalpy, h f is saturated liquid enthalpy, and  h f g is heat of vaporization at operating pressure. This constraint limits viable expansions and determines which configurations are physically realizable.

3.2. Base Configuration Without Power Utilization

Before introducing steam turbines for additional power generation, the configuration that only satisfies steam demands through expansion valves and tempering mixtures is analyzed. Figure 2 shows the complete system. The system comprises four distribution headers (Head I, Head II, Head HP, Head LP) and four expansion valves (EV1–EV4).
Figure 2. Base configuration with distribution headers and expansion valves.
In this configuration, expansion valves reduce pressure through isenthalpic processes. Head I distributes superheated steam ( s 4 ) from the HRSG. Head II distributes saturated steam ( s 3 ) from the drum. HP and LP headers generate demands through hot and cold stream mixtures. To reach specified temperatures (482 °C for HP, 350 °C for LP), each header requires a specific proportion of hot and cold steam. Excess flow m ˙ EX is discarded without utilization.
Figure 3 illustrates these processes in temperature–entropy diagram. Vertical lines represent isenthalpic expansions in valves. Red and blue points indicate HP and LP demand conditions, respectively. Superheated steam mixtures with saturated steam allow reaching the required temperatures. The dashed line x = 0.88 indicates the quality limit for safe steam turbine operation.
Figure 3. T–s diagram of base configuration showing isenthalpic expansions.
Analysis of processes occurring in expansion valves and headers from the temperature–entropy diagram reveals significant entropy generation. This generation represents an opportunity for power generation. Replacing valves with steam turbines would allow the utilization of the available pressure differential. This motivation leads to the systematic superstructure derivation presented below.

3.3. Systematic Superstructure Derivation

The steam cycle superstructure is derived through a systematic procedure. This procedure guarantees completeness in viable configuration representation. The method consists of three clearly defined steps. These steps can be applied to any cogeneration system with multi-pressure demands.

3.3.1. Step 1: Pressure Level Definition

Four relevant pressure levels are identified. The HRSG level operates at P HRSG = 88.26 bar (subsequently variable in the range 70–140 bar). The HP level operates at P HP = 60 bar (refinery demand). The LP level operates at P LP = 20 bar (refinery demand). The COND level (excess steam recovery) operates at P COND calculated according to Equation (1).
The number of steam turbines and expansions of each is determined based on superheated steam extractions at the outlet of equipment Head I ( s 4 ), Head HP (HP), EV1 ( s 5 ), Head LP (LP), EV2 ( s 8 ); and saturated steam extraction at the outlet of Head II ( s 10 ). All extractions can be shown in both Figure 2 and Figure 3.

3.3.2. Step 2: Turbine and Expansion Route Definition

Based on the viable expansions from Step 1, six steam turbines are identified. Each turbine represents a thermodynamically feasible expansion route. Each turbine is characterized by its route (sequence of pressure levels), number of stages, and available extraction points.
An expansion stage is a continuous segment between two consecutive levels without intermediate extractions. The number of stages corresponds to the number of segments in the route. Extractions for demands occur between stages, at intermediate pressure levels.
Table 5 presents the six systematically defined turbines. ST1 and ST2 have three stages and allow extractions at HP and LP pressures. ST3 starts at HP Header, has two stages, and allows extraction at LP pressure. ST4 has two stages and allows extraction at LP pressure. ST5 has one stage and no extractions. ST6 starts at LP Header and has no extractions.
Table 5. Systematic definition of steam turbines in the superstructure.
The three evaluated configurations are the systematic outcome of this procedure, not an arbitrary selection. ST2 is excluded because its inlet state s 10 (saturated drum steam) produces steam quality below 0.88 in the final expansion stage across the entire parametric range, violating Equation (31). ST6 duplicates the LP → COND expansion route of ST5 without additional routing flexibility, yielding identical or lower net power in all evaluated cases.
This definition guarantees three important properties. First, each stage corresponds to a physical turbine segment with continuous flow. Second, the number of stages reflects the geometric complexity of the turbine. Third, extractions between stages allow independent flow control to match any necessary demands.

3.3.3. Step 3: Integration of Expansions in T–s Diagram

According to the location and number of expansions of the six steam turbines, the number of streams entering and leaving HP and LP headers can now be identified. In this way, Figure 4 illustrates the complete superstructure in the temperature–entropy diagram. The diagram shows the multiple possible expansion routes from the HRSG level ( s 4 ) to the condenser. Routes include direct expansions (ST4, ST5) and expansions with extractions at HP or LP (ST1, ST2, ST3, and ST6). The left side shows expansions from drum saturated steam ( s 3 ).
Figure 4. T–s diagram of superstructure showing multiple expansion routes.
The dashed line x = 0.88 delimits the safe operation region for steam turbines. Red streams represent HP steam at 60 bar and 482 °C. Blue streams represent LP steam at 20 bar and 350 °C.
The multiple routes illustrated from the T–s diagram represent a theoretical approach that, in turn, can be put into practice. This allows the algorithm to select the optimal combination. Selection maximizes power generation, satisfying all thermodynamic and demand constraints.

3.4. Complete Superstructure Visualization

The six defined turbines integrate with headers, demands, condenser, and feedwater system. Figure 5 shows the complete superstructure. The system integrates the six turbines with different routes according to Table 5. Distribution headers allow stream mixing. Valves EV1–EV4 provide alternative routes without power generation. Bifurcation nodes (Node 1–3) distribute flows between multiple destinations. The condenser operates at pressure calculated according to Equation (1). Makeup tank and pump close the cycle.
Figure 5. Complete steam cycle superstructure with six alternative turbines.
Lines with valves represent optional streams. Binary variables activate or deactivate these streams in optimization. Optimal configuration is determined by selecting the turbine and stream subset that maximizes W ˙ ST . Selection must satisfy steam quality and exact process demand constraints.
The superstructure contains binary variables to activate/deactivate stages and streams. It also contains continuous variables for mass flows and powers. Optimal configurations are identified through MINLP optimization. The objective is to maximize total steam cycle power. Constraints include mass and energy balances, steam quality as specified by Equation (2), and exact demand satisfaction.
The presented methodology is systematic and generalizable. To apply it to another cogeneration system requires three steps. First, identify pressure levels according to specific demands. Second, define turbines corresponding to viable routes, specifying stages and extraction points. Third, integrate all elements into a superstructure with explicit binary variables. The resulting problem has a standard MINLP structure solvable with commercial solvers.
The following section presents a detailed mathematical model of the superstructure, including balance equations, thermodynamic constraints, and the formulation of an optimization problem.

4. Mathematical Modeling and Optimization

4.1. Assumptions and Considerations

Thermodynamic modeling is developed under the assumptions presented below, complementing reference conditions and equipment parameters established in Section 2.

4.1.1. Operational Assumptions

  • Steady state: all components operate at nominal design conditions. This assumption is appropriate for configuration optimization where the interest is in design point performance.
  • Adiabatic operation: heat losses to the environment are neglected in all components.
  • Identical unit operation: The four gas turbines and HRSGs operate under identical conditions.

4.1.2. Thermodynamic Assumptions

  • Perfect gas model for Brayton cycle: combustion air and gases in the gas turbine are modeled as ideal gases with constant specific heats and isentropic exponents. For air in compressor: c p , a = 1.005 kJ/(kg·K), γ a = 1.4 . For combustion gases in turbine: c p , eg = 1.3428 kJ/(kg·K), γ eg = 1.2972 . Isentropic exponents are calculated as x a = ( γ a − 1 ) / γ a = 0.286 and x eg = ( γ eg − 1 ) / γ eg = 0.218 for pressure and temperature expressions presented in the following subsection.
  • Complete combustion in the chamber is considered complete with 161.90% excess air. Fuel-air ratio ( f a r ) is determined through energy balance in the combustion chamber. Unburned emissions are neglected, given excess air and high combustion temperatures.
  • Pressure drops in gas turbine ( Δ P CC , Δ P GT ) are explicitly considered according to Table 1.
  • Pressure drops in pipes, headers, and superstructure equipment are neglected.

4.2. Thermodynamic Modeling of Components

Models are developed consistently with Section 4.1 assumptions and Section 2 parameters. Water and steam properties are evaluated using IAPWS-IF97 correlations, which are utilized through the XSteam add-in in Excel.

4.2.1. Gas Turbine Cycle

The Brayton cycle of each turbine is characterized by thermodynamic states presented in Table 6. Isentropic exponents are x a = 0.286 for air and x e g = 0.218 for combustion gases.
Table 6. Thermodynamic states of gas turbine cycle.
The total air flow processed by N gas turbines is
m ˙ a = W ˙ m , GT c p , a T g 1 1 + f a r c p , e g c p , a η IGT 1 − 1 + Δ P GT x e g π C 1 − Δ P CC x e g − 1 η IC π C x a − 1
The fuel–air ratio is derived from the adiabatic combustion chamber energy balance (complete combustion): m ˙ a c p , a T g 2 + m ˙ f L H V = ( m ˙ a + m ˙ f ) c p , e g T g 3 . Dividing by m ˙ a and solving for f a r = m ˙ f / m ˙ a yields Equation (5) directly.
For the case study, N = 4 turbines and W ˙ m , GT = 288 MW. Fuel-air ratio is obtained from the combustor balance
f a r = c p , e g T g 3 − c p , a T g 2 L H V − c p , e g T g 3
The total heat supplied in N chambers is
Q ˙ sup , CC = m ˙ a c p , a T g 1 1 + f a r c p , e g c p , a T g 3 T g 1 − 1 − π C x a − 1 η IC
The total fuel and exhaust gas flows are
m ˙ f = Q ˙ sup , CC L H V , m ˙ e g = m ˙ a + m ˙ f

4.2.2. Heat Recovery Steam Generator

HRSG modeling is performed for one unit and scaled by N. Generated steam flow is determined through energy balance with pinch point constraint:
m ˙ T = m ˙ e g c p , e g T g 4 − T g 6 h 4 − h 2 , Δ T PP = T g 6 − T sat ( P HRSG )
Substituting pinch point constraint ( Δ T PP = 10  °C):
m ˙ T = m ˙ e g c p , e g T g 4 − T sat ( P HRSG ) + 10 h 4 − h 2
Gas temperatures at the superheater and economizer outlet are
T g 5 = T g 4 − m ˙ T h 4 − h 3 m ˙ e g c p , e g , T g 7 = T g 6 − m ˙ T h 2 − h 1 m ˙ e g c p , e g
Stack temperature must satisfy T g 7 ≥ 120  °C.

4.2.3. Balances in Superstructure Components

The superstructure integrates 21 main components whose mass and energy balances are presented in Table 7. Thermodynamic states are identified by numerical subscripts ( h i , m ˙ i where i = 1 , 2 , … , 36 ) according to Figure 5.
Table 7. Superstructure steam cycle components with mass and energy balances.
The fundamental thermodynamic equations governing table processes are the following. For steam turbine expansions,
s out , s = s in , h out = h in − η is h in − h out , s , W ˙ = m ˙ in h in − h out
where h out , s = h ( P out , s out , s ) . For adiabatic mixing in headers,
h mix = ∑ i m ˙ i h i ∑ i m ˙ i
For isenthalpic expansions in valves,
h out = h in
For bifurcations at nodes and at Headers I and II,
m ˙ in = ∑ j m ˙ out , j , h out , j = h in ∀ j
Steam quality is calculated using
x = h − h f ( P ) h f g ( P )
Condensing pressure and pumping work are determined by
P COND = P sat ( T amb + Δ T COND ) , W ˙ P = m ˙ T ( P HRSG − P COND ) v liq η pump
The presented models constitute the basis for the optimization problem formulation presented in the following subsection.

4.3. Optimization Problem Formulation and Configuration Enumeration Approach

The optimization problem is formulated as a mixed-integer nonlinear program (MINLP) to determine the optimal steam cycle configuration that maximizes electrical power generation while simultaneously satisfying refinery steam demands. The formulation integrates Section 4.2 thermodynamic models with discrete decision variables for equipment and stream activation.

4.3.1. Decision Variables

The problem contains two variable types that completely characterize system state.
Continuous Variables
Continuous variables ( n c = 43 ) describe mass flows and thermodynamic properties of all superstructure streams:
  • Mass flows: m ˙ i for i = 1 , 2 , … , 36 according to Table 7.
  • Specific enthalpies: h i determined by pressure, temperature and phase through IAPWS-IF97 correlations.
  • Derived properties: temperature T i , quality x i (calculated, not independent).
  • Generated powers: W ˙ ST j for j = 1 , … , 6 according to Equation (20).
  • Pumping work: W ˙ P according to Equation (21).
Binary Variables
Binary variables ( n b = 24 ) control turbine stage and flow stream activation:
y j , k = 1 if stage k of turbine j is active 0 otherwise
where j ∈ { 1 , 2 , 3 , 4 , 5 , 6 } and k varies according to each turbine’s number of stages: ST1 and ST2 (3 stages), ST3 and ST4 (2 stages), ST5 and ST6 (1 stage). Total number of turbine binary variables is 12.
Additionally, 12 binary variables control stream existence in superstructure alternative routes (valves EV1–EV4 and node bifurcations).

4.3.2. Objective Function

The objective function maximizes net power generated by the steam cycle is
max W ˙ net = ∑ j = 1 6 W ˙ ST j − W ˙ P
Power generated by each turbine W ˙ ST j is calculated through expansion with isentropic efficiency. For each expansion stage, the isentropic outlet state is determined by
s out , s = s in , h out , s = h ( P out , s out , s )
Actual outlet enthalpy is obtained applying isentropic efficiency ( η is = 0.89 ):
h out = h in − η is h in − h out , s
Power generated by each turbine stage is
W ˙ ST j = m ˙ in h in − h out
These equations apply to each of the 12 expansion stages of the six turbines according to Table 7 configuration. For multi-stage turbines (ST1–ST4), total power is the sum of all active stage powers.
Pumping work is calculated using
W ˙ P = m ˙ T ( P HRSG − P COND ) v liq η pump
where v liq = 0.001 m3/kg is liquid water specific volume and η pump = 0.85 according to Table 4. Although  W ˙ P typically represents 0.5–1% of turbine-generated power, it is included for rigorous energy accounting. Condensing pressure P COND is determined according to Equation (1).

4.3.3. Constraints

Problem constraints are classified into five categories that guarantee physical, thermodynamic and operational solution feasibility.
Mass Balance Constraints
The 21 mass balances from Table 7 must be simultaneously satisfied:
∑ i ∈ IN c m ˙ i = ∑ j ∈ OUT c m ˙ j ∀ c ∈ C
where C is the set of 21 components, IN c and OUT c denote component c input and output streams. These balances include HRSG (economizer, evaporator, superheater, drum), distribution network (four headers, three nodes), expansion valves (EV1–EV4), turbines (ST1–ST6), and condensate system (condenser, tank, pump).
Energy Balance Constraints
The 11 energy balances for components with conversion or mixing from Table 7 are imposed as equality constraints. For turbines:
m ˙ in , j h in , j = ∑ k m ˙ out , j , k h out , j , k + W ˙ ST j ∀ j ∈ { 1 , … , 6 }
where outlet enthalpies h out , j , k are calculated according to Equations (18) and (19) and powers W ˙ ST j according to Equation (20).
For mixing headers (Head HP, Head LP):
∑ i ∈ IN h m ˙ i h i = ∑ j ∈ OUT h m ˙ j h j ∀ h ∈ { HP , LP }
These balances guarantee that Head HP and Head LP mixtures generate steam at specified temperatures ( T HP = 482  °C, T LP = 350  °C).
Refinery Demand Constraints
High- and low-pressure steam demands are satisfied exactly:
m ˙ HP = 13.89 kg / s , m ˙ LP = 104.17 kg / s
with temperature specifications T HP = 482  °C and T LP = 350  °C according to Table 7. These constraints are inviolable and represent refinery operational requirements.
Thermodynamic Constraints
Steam quality at each turbine stage outlet is calculated using
x j , k = h j , k − h f ( P j , k ) h f g ( P j , k )
where h f ( P j , k ) is saturated liquid enthalpy and h f g ( P j , k ) is heat of vaporization at pressure P j , k of stage k of turbine j. Minimum quality constraint is imposed on all stages:
x j , k ≥ 0.88 ∀ j ∈ { 1 , … , 6 } , ∀ k
This constraint is critical to prevent turbine blade erosion caused by high-velocity liquid water droplet impact. The constraint only applies when expansion results in wet steam (two-phase region). For superheated steam, the constraint is automatically satisfied.
This thermodynamic constraint is particularly important because it causes discrete transitions between optimal configurations when certain expansion routes violate the quality limit. Specifically, for low steam generation pressures ( P HRSG < 80 bar) and high superheater outlet temperature T s 4 s ( T s 4 > 530  °C), complete expansions of ST1 and ST2 from P HRSG to P COND result in qualities below 0.88, forcing the optimizer to use alternative routes with expansion valves.
Gas temperature at economizer outlet (stack) must satisfy
T g 7 ≥ 120 ∘ C
According to Equation (9), to avoid water vapor condensation and acid formation in the stack.
Activation Logic Constraints
Logic constraints couple binary variables with mass flows through the big-M formulation:
m ˙ j , k ≤ y j , k · M j , k ∀ j , k
where M j , k is a sufficiently large upper bound for flow in stage k of turbine j. In this work, M j , k = 150 kg/s is used (approximately total generated steam flow). When y j , k = 0 , m ˙ j , k = 0 is forced (inactive stage). When y j , k = 1 , flow can take any value between 0 and M j , k .
Additionally, hierarchical precedence between stages of the same turbine is imposed:
y j , k + 1 ≤ y j , k ∀ j , k = 1 , … , n j − 1
where n j is the number of stages of turbine j. This constraint guarantees that a later stage cannot be activated if the previous stage is inactive. For example, for ST1 with three stages: if y 1 , 1 = 0 then y 1 , 2 = y 1 , 3 = 0 obligatorily.
Steam quality constraint violation (Equation (27)) forces the corresponding binary variable to zero:
x j , k < 0.88 ⇒ y j , k = 0
This formulation allows the optimizer to automatically exclude configurations that would violate thermodynamic limits. In practice, this constraint is implemented through an explicit pre-feasibility filter: before invoking the NLP solver, the isentropic outlet enthalpy of each stage is evaluated. If  h j , k − h f ( P j , k ) < 0.88 h f g ( P j , k ) for any stage, the configuration is excluded without NLP evaluation.

4.3.4. Complete MINLP Problem Formulation

The complete problem is expressed as
max m ˙ i , h i , y j , k W ˙ net = ∑ j = 1 6 W ˙ ST j − W ˙ P s . t . Mass balances ( 21 constraints ) : Equation ( 22 ) Energy balances ( 11 constraints ) : Equations ( 23 ) and ( 24 ) Refinery demands ( 2 constraints ) : Equation ( 25 ) Steam quality ( 12 constraints ) : Equation ( 27 ) Stack temperature ( 1 constraint ) : Equation ( 28 ) Big - M activation ( 12 constraints ) : Equation ( 29 ) Stage precedence ( 8 constraints ) : Equation ( 30 ) Thermodynamic properties : Equations ( 18 ) – ( 21 ) m ˙ i ≥ 0 ∀ i y j , k ∈ { 0 , 1 } ∀ j , k
The problem contains 67 variables (43 continuous + 24 binary) and approximately 67 constraints.

4.3.5. Computational Implementation

The MINLP optimization problem formulated in Section 4.3.1, Section 4.3.2 and Section 4.3.3 was implemented in Microsoft Excel 2019 with GRG (Generalized Reduced Gradient) Nonlinear solver and XSteam add-in version 2.6 for thermodynamic properties evaluation based on IAPWS-IF97 correlations. The solver was configured with convergence tolerance 10 − 6 , constraint precision 10 − 5 , and configuration enumeration approach evaluating three topologically distinct candidate configurations at each parametric point, with multistart strategy (10 runs) for continuous variable optimization to address the non-convex nature of the problem arising from thermodynamic nonlinearities and bilinear terms. The complete solver configuration is provided in Table 8.
Table 8. GRG Nonlinear Solver Configuration (per NLP subproblem).
The solution algorithm follows a five-step procedure for each parametric case ( P HRSG , T s 4 ) : (1) calculate HRSG steam generation m ˙ T from gas turbine exhaust conditions using energy balance with pinch point constraint (Equation (8)), (2) identify three candidate configurations based on thermodynamic viability (Configuration 1: ST1 + ST3 + ST5; Configuration 2: ST1 + ST4 + ST5; Configuration 3: ST1 + ST3 + ST4), (3) for each candidate configuration, solve NLP with binary variables fixed, using multistart strategy for continuous variable optimization, (4) select configuration generating maximum power among feasible candidates, and (5) validate solution through three-level protocol verifying thermodynamic consistency (energy/mass balance closure < 0.1%), physical feasibility (steam quality x j k ≥ 0.88 , pressure hierarchy), and solution quality (convergence achieved, multistart consistency within 0.1%). Typical solution time is 2–5 min per case on standard hardware (Intel Core i7-9700, 16 GB RAM).
The parametric analysis systematically evaluates 84–105 operating points combining pressure sweep P HRSG = [ 70 , 75 , 88.26 , 90 , 100 , 110 , 120 , 130 , 140 ] bar with temperature ranges T s 4 = [ 500 , 510 , 520 ]  °C (low range, 27 cases), [ 530 , 540 ]  °C (mid range, 18 cases), and  [ 550 , 560 ]  °C (high range, 18 cases), plus nominal case (88.26 bar, 510 °C) and additional validation points. Independent configuration evaluation is performed at each parametric combination (three NLP subproblems per point), with 98.7% of cases (83/84) passing all validation checks on first attempt. Total computational time for complete parametric map is 7–9 h on the specified hardware, reducible through parallel execution across multiple processor cores.
Solver Limitations and Optimality Claims
The configuration enumeration approach employed provides locally optimal solutions within each of the three candidate topologies systematically evaluated but does not guarantee global optimality across all 2 24 possible binary variable combinations. Throughout this manuscript, “optimal” refers to locally optimal solutions among the three candidates, not to proven global optimality. This approach balances computational tractability with thermodynamic rigor, as evidenced by coherent regional patterns in Table 10 and mechanistically consistent thermodynamic explanations in Section 5.3.
Complete computational details including algorithm pseudocode, detailed validation protocol specifications, input data (natural gas composition, reference environment conditions), and data availability statement are provided in Appendix B to ensure full reproducibility of results.
Figure 6 presents the flowchart of the entire proposed methodology for the optimization of the cogeneration system superstructure. It synthesizes the systematic five-step procedure, integrating everything from the superstructure definition and the MINLP model to the validation of results and the generation of the optimal configuration map. This visual scheme consolidates the comprehensive approach developed to address the simultaneous optimization of parameters and topology.
Figure 6. Flowchart of the proposed methodology for the optimization of the superstructure.

5. Results and Discussion

This section presents the optimal configurations identified through the optimization procedure described in Section 4. Analysis is organized into five subsections that progressively characterize the system: first the baseline reference without cogeneration is established, subsequently the three optimal configurations emerging from parametric analysis are identified, their individual thermodynamic behaviors are characterized, physical mechanisms causing discrete transitions between configurations are explained, and finally multiple criteria are evaluated to recommend practical implementation.

5.1. Reference System and Identified Optimal Configurations

All results in this section represent locally optimal solutions within the enumerated configuration set; global optimality across all 2 24 binary combinations is not guaranteed (Section 4.3).

5.1.1. Base Configuration Without Power Generation

The base system, described in Section 2.5 and shown in Figure 2, operates exclusively through isenthalpic expansion valves to satisfy refinery steam demands. This configuration represents the lower performance bound of the integrated turbine-process system. Valves EV1 to EV4 reduce steam pressure from HRSG level to HP and LP levels through irreversible processes. Tempering mixtures in headers Head HP and Head LP combine superheated and saturated steam streams to reach specified temperatures of T HP = 482  °C and T LP = 350  °C, respectively.
Thermodynamic analysis of the base system reveals that throttling processes generate significant exergy destruction. For expansion valves, entropy generation is
S ˙ gen , EV = m ˙ ( s out − s in ) > 0
where outlet specific entropy s out > s in due to isenthalpic process irreversibility. This entropy generation represents opportunity for power generation through turbine installation that utilizes available pressure differentials.

5.1.2. Quantitative Configuration Comparison

Systematic exploration of parametric space ( P HRSG , T s 4 ) through the MINLP model formulated in Section 4.3 identifies three topologically distinct configurations that emerge as optimal under different HRSG operating conditions. Table 9 presents comprehensive quantitative comparison between the base system and the three cogeneration configurations.
Table 9. Comparison between base system and cogeneration configurations at nominal conditions.
The maximum power within Configuration 1’s valid region is 78.96 MW at P HRSG = 140  bar, T s 4 = 500 °C (Table 4), not at nominal conditions (88.26 bar/510 °C → 72.32 MW, 91.6 % of the maximum). For Configuration 2, the maximum is 73.22 MW at 75 bar/510 °C.
The base system operates with utilization factor U F = 0.640 and specific fuel consumption S F C = 0.259  kg/kWh, characteristic values of systems without steam cycle power generation potential utilization. The three cogeneration configurations increase utilization factor between 11.09% and 13.90%, simultaneously reducing specific fuel consumption between 20.01% and 22.39% compared to base system without cogeneration. These results quantify thermodynamic benefits of turbine-process integration and demonstrate that cogeneration represents an effective strategy for improving overall refinery energy system efficiency.
Differences among the three configurations are notable. Configuration 1 presents the widest operating range, maintaining feasibility for pressures between 75 and 140 bar and temperatures between 500 and 520 °C. Configuration 2 exhibits a restricted range, limited to pressures between 75 and 110 bar for the same temperature interval. Configuration 3 operates exclusively in a high-temperature regime (550–560 °C) but covers the entire evaluated pressure range. Generated power varies between 71.72 MW (Configuration 2, nominal conditions) and 80.82 MW (Configuration 3, optimal conditions), representing 12.7% difference, justifying a detailed analysis of each topology. The thermodynamic state properties for the three optimal configurations are shown in Appendix A, Table A1, Table A2, Table A3 and Table A4.
The utilization factor and specific fuel consumption are defined as
U F = W ˙ CC + Q ˙ proc m ˙ f · L H V , Q ˙ proc = ∑ j m ˙ j ( h j − h 0 ) , h 0 = 125.74 kJ / kg , S F C = m ˙ f W ˙ CC .

5.1.3. Configuration Performance Map in Parametric Space

Table 10 presents the complete map of optimal configurations identified for each evaluated combination of pressure P HRSG and temperature T s 4 . This map constitutes one of the work’s central results, revealing that the configuration generating maximum power is not unique but varies discretely according to HRSG operating conditions.
Table 10. Configuration performance map showing which of three candidate topologies generates maximum power at each HRSG operating point (locally optimal solutions identified through configuration enumeration).
The map reveals three important structural characteristics. First, Configuration 1 dominates parametric space, occupying the most extensive region spanning pressures from 70 to 140 bar for temperatures between 500 and 520 °C, plus high-pressure zones (greater than 110 bar) for temperatures of 530 and 540 °C. Second, Configuration 2 emerges only in a narrow low-pressure zone (75–110 bar) for moderate temperatures (500–520 °C), coexisting with Configuration 1 in some parametric combinations. Third, Configuration 3 activates exclusively for high-temperature regime ( T s 4 ≥ 550  °C), occupying entire pressure range for T s 4 = 550 and 560 °C, plus penetrating toward lower temperatures (530 and 540 °C) in low-pressure region.
Transitions between configurations occur at specific thresholds not evident through conventional thermodynamic analysis. For example, for fixed temperature T s 4 = 530  °C, the system operates with Configuration 3 for pressures below 100 bar but abruptly transitions to Configuration 1 when pressure exceeds this threshold. Similarly, for fixed pressure P HRSG = 110  bar, the Configuration 1 to Configuration 3 transition occurs between T s 4 = 520 and 530 °C. Physical mechanisms causing these discrete transitions are analyzed in detail in Section 5.3.

5.2. Topological and Thermodynamic Analysis of Configurations

This subsection characterizes the three optimal configurations identified, describing their topology, analyzing their thermodynamic behavior through temperature–entropy diagrams, and quantifying their sensitivity to variations in HRSG operating parameters.

5.2.1. Configuration 1: System with Tempering via Valves

Figure 7 shows the topology of Configuration 1. The system activates headers Head I and Head II, allowing distribution of both superheated steam and saturated steam from the HRSG drum. Expansion valves EV1, EV2, and EV3 remain operational, providing alternative routes for generating tempering streams. In terms of steam turbines, ST1, ST3, and ST5 are activated, corresponding to three expansion stages that exploit the pressure differentials available between HRSG, HP, LP, and COND levels.
Figure 7. Topology of Configuration 1 showing active components: headers Head I and Head II, valves EV1–EV3, and turbines ST1, ST3, ST5 with three total expansion stages.
High-pressure steam flow is generated through mixing of three streams in the Head HP header. The first stream comes from expansion in the first stage of ST1, which reduces pressure from P HRSG to P HP = 60  bar. The second stream results from throttling in valve EV1, which brings superheated steam from Head I to the HP pressure level. The third stream, generated through throttling in EV3, transports saturated steam from Head II to the HP header. This last valve provides critical flexibility for tempering: when the outlet temperature of ST1 exceeds the required temperature in Head HP ( T HP = 482  °C), the flow through EV3 increases to reduce the mixture temperature through injection of relatively cold saturated steam.
Low-pressure steam flow is generated analogously. Excess steam from the Head HP header expands in the first stage of ST3 until reaching pressure P LP = 20  bar, feeding the Head LP header. This stream mixes with throttled steam in valve EV2, coming from node 3, adjusting the mixture temperature to meet the specification T LP = 350  °C. Finally, excess steam from node 3 expands in turbine ST5 to condensing pressure P COND , generating additional power and closing the thermodynamic cycle.
Figure 8 presents the complete thermodynamic analysis of Configuration 1. The temperature–entropy diagram (a) under nominal conditions ( P HRSG = 88.26  bar, T s 4 = 510  °C) illustrates the multiple thermodynamic routes available in the superstructure. Expansion in ST1 from state s 5 (superheated steam at 88.26 bar, 510 °C) to state s 6 (60 bar) generates the first power contribution. Isenthalpic processes in EV1 and EV3 are represented by vertical lines connecting the HRSG and HP pressure levels, illustrating the characteristic irreversibility of these valves. Mixing of the three streams in Head HP produces the HP steam flow state, identified by the red point at 60 bar and 482 °C.
Figure 8. Configuration 1: (a) Temperature–entropy diagram showing expansion routes and mixing in HP and LP headers under nominal conditions ( P HRSG = 88.26 bar, T s 4 = 510 °C); (b) Generated power surface and steam quality as function of HRSG parameters.
Similarly, expansion in ST3 from Head HP to the LP level, followed by mixing with steam from EV2, generates the LP steam flow identified by the blue point at 20 bar and 350 °C. Final expansion in ST5 brings excess steam to the condenser, reaching quality x s 8 = 0.935 at state s 8 . This value is comfortably above the safety limit x = 0.88 , indicated by the dashed line in the diagram, guaranteeing operation without risk of blade erosion.
Parametric sensitivity analysis for Configuration 1 is presented in Figure 8b. The generated power surface W ˙ ST shows increasing trend with increments in HRSG pressure for fixed temperature. This behavior is explained by two competing effects. On one hand, higher pressure increases the pressure drop available for expansion in turbines, increasing specific work per unit mass of steam. On the other hand, higher pressure slightly reduces the generated steam flow m ˙ T due to pinch point restrictions in the evaporator. The first effect dominates, resulting in net power increase.
For fixed pressure, temperature increments T s 4 produce the opposite effect: generated power decreases. This apparently counterintuitive behavior is due to higher superheat temperature requiring greater heat transfer in the superheater, reducing the energy available for evaporation and consequently decreasing total steam flow m ˙ T . The reduction in mass flow exceeds the increase in specific work from higher inlet enthalpy, resulting in lower net power.
The optimal combination within Configuration 1’s validity region is P HRSG = 140  bar and T s 4 = 500  °C, generating maximum power of 78.96 MW with steam quality x min = 0.910 in the condenser. Under nominal operating conditions ( P HRSG = 88.26  bar, T s 4 = 510  °C), the system generates 72.32 MW, representing 92.3% of maximum potential. This proximity indicates that nominal conditions are close to the thermodynamic optimum within the safe operating range.

5.2.2. Configuration 2: Simplified System Without Drum Steam

Configuration 2, shown in Figure 9, presents simplified topology compared to Configuration 1. Header Head II is deactivated, eliminating the distribution route for saturated steam from the HRSG drum. Consequently, valve EV3 is also deactivated, since its specific function was to transport saturated steam for tempering. The system operates only with header Head I and valves EV1 and EV2, distributing exclusively superheated steam from the superheater.
Figure 9. Topology of Configuration 2 showing simplification with respect to Config. 1: only header Head I active, valves EV1 and EV2, turbines ST1, ST4, ST5.
In terms of steam turbines, the configuration activates ST1, ST4, and ST5. The key difference from Configuration 1 lies in the substitution of ST3 by ST4. While ST3 initiates its expansion from the Head HP header, turbine ST4 initiates from node 2, expanding steam directly from the HP level to LP without intermediate extraction of the stream feeding Head HP.
High-pressure steam flow is obtained through mixing of only two streams in Head HP. The first is superheated steam from node 2 after partial throttling, which acts as the hot stream. The second is steam expanded in the first stage of ST1 from P HRSG to P HP , which typically is at a temperature lower than T HP = 482  °C and acts as the cold stream. The absence of valve EV3 eliminates the possibility of tempering through saturated steam, significantly limiting system flexibility.
Similarly, low-pressure steam flow is generated through the mixing of two streams. The first comes from throttling in EV2, transporting superheated steam from node 3 as the hot stream. The second results from expansion in the first stage of ST4, which reduces pressure from P HP to P LP . The outlet temperature of this expansion, denoted as T s 13 , determines the feasibility of the complete configuration.
The temperature–entropy diagram of Configuration 2 (Figure 10a) reveals the critical restriction that limits its operating range. The outlet temperature of ST4 at state s 13 must obligatorily satisfy T s 13 < T LP = 350  °C so that mixing with steam from EV2 can reach the specified temperature of the LP header. For nominal conditions, T s 13 = 332  °C, providing margin of only 18 °C with respect to the limit. This narrow margin makes the configuration sensitive to variations in HRSG operating parameters.
Figure 10. Configuration 2: (a) T-s diagram showing critical restriction T s 13 < T LP that limits operating range; (b) Power surface exhibiting inverse trend to Config. 1 (power decreases with pressure).
Parametric sensitivity of Configuration 2, presented in Figure 10b, exhibits opposite behavior to Configuration 1. For fixed temperature, increments in pressure P HRSG reduce generated power. This counterintuitive behavior is explained through analysis of the restriction T s 13 < T LP . The outlet temperature of expansion in ST4 increases when inlet pressure P HP increases, because the specific entropy of steam in Head HP decreases with higher pressure at fixed temperature. By increasing P HRSG , this effect propagates toward Head HP, increasing T s 13 and approaching it dangerously to the 350 °C limit. To maintain feasibility, the optimizer reduces flows through ST4, decreasing power generation.
The validity region of Configuration 2 is limited to pressures between 75 and 110 bar and temperatures between 500 and 520 °C. Maximum power of 73.22 MW is reached at the lower pressure limit ( P HRSG = 75  bar, T s 4 = 510  °C), where the restriction T s 13 < T LP is most relaxed. Under nominal conditions, the configuration generates 71.72 MW, representing 1.18 MW less than Configuration 1 for the same HRSG operating conditions. The bounded feasibility region reflects a thermodynamic boundary, not a numerical artifact: the equality constraint T LP = 350 °C cannot be met when h s 13 ≥ 3137.64  kJ/kg, creating a sharp—not gradual—transition at the feasibility boundary (Section 5.3.1).

5.2.3. Configuration 3: High-Power System with Multi-Stage Expansion

Configuration 3, presented in Figure 11, represents the most complex topology of the three identified. Similar to Configuration 1, it activates both headers Head I and Head II, in addition to valves EV1, EV2, and EV3. The distinctive difference lies in activation of both expansion stages of turbine ST4, allowing complete expansion route HP → LP → COND. This feature enables operation at elevated temperatures while maintaining acceptable steam quality in the condenser.
Figure 11. Topology of Configuration 3 showing maximum complexity: both headers active, all valves, and four total expansion stages including both stages of ST4.
The set of active turbines includes ST1, ST3, and ST4, totaling four expansion stages: the first stage of ST1 (HRSG → HP), the first stage of ST3 (HP → LP), and both stages of ST4 (HP → LP followed by LP → COND). This multiplicity of routes provides superior flexibility for distribution of mass flows between the different pressure levels, maximizing power generation subject to demand and steam quality restrictions.
High-pressure steam flow is generated through the same three-stream scheme as Configuration 1: steam expanded in ST1, throttled steam in EV1, and saturated steam throttled in EV3. However, the relative proportions of these streams differ significantly due to high-temperature conditions. Figure 12 illustrates two distinct operating regimes within Configuration 3’s validity region.
Figure 12. Configuration 3: (a,b) T–s diagrams showing two operating regimes according to outlet temperature of ST1 relative to T HP , demonstrating flexibility of tempering system; (c) Power generation for high-temperature range (550–560 °C) showing maxima of 80.82 MW but critical quality x ≈ 0.88 .
In regime (a), when the outlet temperature of ST1 is lower than the HP header temperature ( T s 6 < T HP = 482  °C), the system requires greater flow of the hot stream from EV1 to elevate the mixture temperature. This regime typically occurs at the lower temperature limit of the validity region. In regime (b), when T s 6 > T HP due to high superheat temperature, the system increases the flow of saturated steam from EV3 to temper the mixture, reducing temperature to the specified value of 482 °C. This regime is characteristic of the upper temperature limit.
For low-pressure steam flow, the temperature of the cold stream from the first stage of ST3 remains essentially constant since inlet conditions in Head HP are fixed by the demand specification. The flow of throttled steam in EV2 adjusts the mixture temperature to satisfy T LP = 350  °C. Excess steam expands in both stages of ST4, from the HP level to the condenser, generating significant contribution to total cycle power.
Power generation analysis for Configuration 3, presented in Figure 12c, reveals that this configuration reaches the highest power levels among the three evaluated. The power surface covers the temperature range 550–560 °C for all pressures, in addition to penetrating toward lower temperatures (530–540 °C) in the low-pressure region. Maximum power of 80.82 MW is obtained at conditions P HRSG = 140  bar and T s 4 = 550  °C, representing 11.0% increase with respect to the nominal value of Configuration 1.
However, Configuration 3 operates with steam quality close to the critical limit. For maximum power conditions, quality at state s 14 (outlet of the second stage of ST4) reaches x s 14 = 0.881 , barely 0.001 above the safety limit x = 0.88 . The entire valid operating range maintains qualities between 0.880 and 0.900, significantly lower than the 0.910–0.935 margin of Configuration 1. This proximity to the limit demands rigorous operational monitoring and precise control systems to guarantee that transient variations in operating conditions do not lead to quality restriction violation.

5.3. Thermodynamic Mechanisms of Transitions Between Configurations

Two thermodynamic criteria govern the configuration map: (i)  h s 13 ≥ 3137.64  kJ/kg triggers Config. 2 → 1 (Section 5.3.1); (ii)  x s 19 > 0.940 triggers Config. 1 → 3 (Section 5.3.2).
The configuration map presented in Table 10 reveals that transitions between high-performing identified configurations occur at specific thresholds of the parametric space ( P HRSG , T s 4 ) . These transitions are discrete: upon crossing a critical threshold, the system changes abruptly from one topological configuration to another without intermediate states. This phenomenon is not evident through conventional thermodynamic analysis and constitutes one of the central scientific contributions of the present work. This subsection develops causal analysis of transitions through rigorous characterization of active thermodynamic restrictions, demonstrating that thresholds correlate with systematic activation of thermodynamic constraints, which can be identified through evaluation of feasibility conditions.

5.3.1. Transition from Configuration 2 to Configuration 1

The first transition of interest occurs in the moderate temperature regime ( T s 4 = 500 –520 °C) when HRSG pressure exceeds values between 100 and 110 bar. As observed in Table 10, for fixed temperature T s 4 = 520  °C, the system operates with Configuration 2 for pressures between 75 and 100 bar, but transitions to Configuration 1 when pressure reaches 110 bar. This threshold varies slightly with temperature, but the causal mechanism remains invariant.
Analysis of Configuration 2 in Section 5.2.2 identified that the critical restriction is T s 13 < T LP , where T s 13 denotes the outlet temperature of the first stage of ST4. This temperature is determined by pressure and enthalpy ( P L P , h s 13 ) and through the expression for isentropic expansion with efficiency:
h s 13 = h s 12 − η is ( h s 12 − h s 13 s )
where h s 12 is the inlet enthalpy to ST4 (equal to the inlet enthalpy of EV1, h s 12 = h s 9 ), η is = 0.89 is the isentropic efficiency of the turbine, and  h s 13 s is the enthalpy obtained through isentropic expansion from inlet conditions to outlet pressure P LP = 20  bar.
The enthalpy h s 13 s is calculated through the constant entropy condition:
s s 13 s = s 12 , P s 13 s = P LP
where s s 13 s is the specific entropy of steam coming from valve EV1 and node 2. This entropy depends on conditions ( P HRSG , T s 4 ) . The mechanism causing the transition is explained through the effect of P HRSG on the thermodynamic properties of steam in EV1. When HRSG pressure increases and T s 4 is constant, the steam enthalpy ( h s 9 feeding EV1 decreases. This implies that the enthalpy at the inlet of ST4 is lower and temperature T s 13 at the end of expansion moves below T LP .
However, the dominant effect comes from the increase in superheat temperature T s 4 . Although pressure P HRSG remains fixed, higher temperature implies a greater increase in enthalpy h s 4 , which consequently will result in higher temperature at the inlet and outlet of ST4.
The feasibility condition of Configuration 2 requires
T s 13 < T LP = 350   ° C
or equivalently, this implies that
h s 13 < h LP = 3137.64 kJ / kg
When P HRSG exceeds the critical threshold, the system cannot operate with Configuration 2 because temperature T s 13 would exceed 350 °C, making it impossible to generate LP steam flow through mixing. The optimizer detects this infeasibility and automatically changes to Configuration 1, which incorporates valve EV3 for additional tempering through saturated steam injection. This valve relaxes the temperature restriction by providing an additional cold stream, enabling operation at higher pressures.

5.3.2. Transition from Configuration 1 to Configuration 3

The second transition of interest occurs in the elevated temperature regime ( T s 4 ≥ 530  °C) and varies its pressure threshold according to specific temperature. As observed in Table 10, for  T s 4 = 530  °C, the transition occurs at P HRSG = 100  bar: the system operates with Configuration 3 for pressures less than or equal to 90 bar, but changes to Configuration 1 for pressures from 100 bar onward. For  T s 4 = 540  °C, the threshold increases to 120 bar. This behavior suggests that the causal mechanism involves interaction between both HRSG operating parameters.
Thermodynamic analysis reveals that the transition is related to the steam quality restriction in the final expansion to the condenser. For Configuration 1, excess steam coming from expansion valve EV2 and from node 3, expands in turbine ST5 from the LP level to condensing pressure. Quality in the condenser is determined by
x s 19 = h s 19 − h f ( P COND ) h f g ( P COND )
where h s 19 is the specific enthalpy of steam at the outlet of ST5, h f ( P COND ) is the saturated liquid enthalpy, and  h f g ( P COND ) is the heat of vaporization at condensing pressure.
When the superheat temperature T s 4 increases for constant pressure P H R S G , the inlet enthalpy to the steam system increases. Although total mass flow m ˙ T decreases due to heat transfer restrictions in the HRSG, the specific enthalpy of steam in node 3 (inlet to ST5) is the same, h s 4 = h s 18 . Then, this enthalpy increases due to a temperature increase in T s 4 and propagates through the expansion, resulting in higher enthalpy h s 8 in the condenser and consequently both higher steam quality x s 19 and a decrease in power generation W ˙ ST .
In the opposite case, when pressure P H R S G increases for constant superheat temperature T s 4 , the inlet enthalpy to the steam system decreases. This causes an increase in steam generation in the HRSG, resulting in an increase in power generation W ˙ ST , and a decrease in steam quality x s 19 .
The lowest quality x s 19 = 0.916 in Configuration 1 is shown for operation at the highest pressure P H R S G = 140 bar and the lowest superheat temperature T s 4 = 500  °C. However, this minimum quality, obtained from the set of possibilities ( P HRSG , T s 4 ) , is far from the allowed limit x = 0.88 .
For elevated temperatures ( T s 4 ≥ 530  °C) and pressures ( P H R S G ≥ 100  bar), quality x s 19 in Configuration 1 increases drastically x s 19 > 0.940 . This quality increase causes a decrease in power generation W ˙ ST and, at the same time, an increase in heat rejection in the condenser Q ˙ COND .
Configuration 3 in addition to generating higher power than Configuration 1, solves the steam quality problem through division of the HP → COND expansion into two stages within ST4. Steam expanding in the second stage of ST4 to condensing pressure presents a quality x s 14 that approaches dangerously close to the safety limit x = 0.88 . This approach results when the temperature at the end of the first expansion T s 13 is extremely close to temperature T L P . This condition occurs under the condition of the highest pressure P H R S G within the temperature range of superheat T s 4 = 530 and 550 °C.
Although formally the configuration remains feasible while x s 14 > 0.88 , the reduced safety margin makes this configuration operationally risky. Transient variations in operating conditions could lead to momentary violation of the limit, causing risk of blade erosion.
The decision mechanism between Configuration 1 and Configuration 3 represents a trade-off between operational simplicity and power maximization. Configuration 1 uses three total expansion stages, while Configuration 3 requires four stages. This additional complexity is only justified when the steam quality restriction becomes sufficiently active. The transition threshold occurs when the benefit of higher power generation (due to higher steam flow available at high temperatures) compensates for the cost of increased operational complexity.
Quantitative prediction of the transition threshold is more complex than in the case of the Config. 2 → Config. 1 transition since it involves optimization of the balance between multiple objectives. However, qualitative analysis provides a clear criterion: the transition occurs when steam quality in Configuration 1 is greater than x s 19 > 0.940 and with it a decrease in power generation. Power generation in Configuration 3 exceeds that of Configuration 1 by a significant margin (typically greater than 4 MW) with a steam quality margin of ( x s 14 = 0.88 − 0.90 ) .
Validation is obtained through analysis of specific cases. For  P HRSG = 100  bar and T s 4 = 530  °C, Configuration 1 generates 72.59 MW with x s 19 = 0.9424 , while Configuration 3 generates 77.85 MW with x s 14 = 0.8809 . The difference of 5.26 MW (7.24%) justifies the optimizer’s preference for Configuration 3 despite having a decrease in safety margin in steam quality.

5.3.3. Implications for Design and Operation

The identified thermodynamic mechanisms have three important practical implications for design and implementation of cogeneration systems in refineries.
First, system optimization must be performed considering the complete parametric space ( P HRSG , T s 4 ) rather than a single nominal point. The existence of discrete transitions implies that the local optimum at a specific point may be significantly inferior to the global optimum achievable in another region of the parametric space with different topological configuration. Design must specify not only the nominal configuration but also valid operating ranges and alternative configurations available for different operating conditions.
Second, operational flexibility of the system is maximized by installing all superstructure components rather than only those corresponding to the nominally optimal configuration. This additional investment allows the system to adapt its active topology according to variable demand conditions and equipment availability, maintaining high efficiency in multiple operating scenarios. The decision between flexible design and specific design should be evaluated through technical-economic analysis that quantifies the value of flexibility versus the incremental investment required.
Third, transition thresholds between configurations can be explained through systematic thermodynamic analysis of active restrictions. This mechanistic understanding allows anticipating changes in optimal configuration during the design phase, avoiding operational surprises and informing specification of control and monitoring systems. The characterization procedure developed in this subsection is generalizable to other cogeneration systems through application of the same conceptual framework: identify critical restrictions, analyze their variation with design parameters, and determine violation conditions.

5.3.4. Multi-Criteria Evaluation for Design Selection

Selection of the most appropriate configuration for implementation requires multi-criteria analysis that considers not only generated power but also operational flexibility, reliability, and system complexity. A weighted evaluation methodology is developed based on five quantitative criteria.
Table 11 defines the five evaluation criteria with their operational definitions and assigned weights. Weights were assigned using the Analytic Hierarchy Process (AHP, Saaty 1980) reflecting CFE-PEMEX industrial priorities: maximum power generation (0.25), operational flexibility (0.20), safety margin (0.20), maintenance complexity (0.15), and robustness (0.20). The sensitivity analysis (Table 13) confirms Configuration 1 is optimal in three of four scenarios under ± 50 % weight variation.
Table 11. Multi-criteria evaluation criteria with assigned weights.
The validity regions of configurations are determined through exhaustive parametric analysis. For each combination of HRSG conditions ( P HRSG , T 4 ) within the range of interest (70–140 bar, 500–560 °C), the topological optimization problem is solved to identify which configuration maximizes net power while meeting all thermodynamic restrictions. From this analysis naturally emerges the partition of the parametric space: each point belongs to the validity region of the configuration that is superior there. For example, Configuration 1 presents a validity region in the range 70–140 bar and 500–530 °C, which means that at any point within those ranges, Configuration 1 generates higher power than the alternatives while meeting restrictions.
All criteria are consistently defined so that a higher value indicates better performance. For criteria C1–C3, this is direct (higher power, larger range, and greater margin are preferable), while for C4 and C5 inverse indices are used: a higher simplicity index corresponds to fewer stages (simpler), and a higher robustness index corresponds to lower standard deviation (more robust).
Normalization of each criterion is performed through
v i , k = value i , k max j ( value j , k )
where i identifies the configuration being evaluated ( i = 1 , 2 , 3 for Config 1, Config 2, Config 3), k identifies the criterion being normalized ( k = 1 , 2 , 3 , 4 , 5 for C1 to C5), and  max j ( value j , k ) represents the maximum value of criterion k among all configurations, where j traverses the three configurations ( j = 1 , 2 , 3 ). For example, to normalize criterion C2 (operating range) of Config 1, we calculate v 1 , 2 = value 1 , 2 / max ( value 1 , 2 , value 2 , 2 , value 3 , 2 ) , i.e., divide Config 1’s range by the maximum range observed in the three configurations. This normalization produces values v i , k ∈ [ 0 , 1 ] where v i , k = 1 indicates that configuration i presents the best performance for the criterion k.
The total weighted score for each configuration is calculated through
S i = ∑ k = 1 5 w k · v i , k
where w k is the weight of criterion k (Table 11) and ∑ k = 1 5 w k = 1 . The configuration with the highest score S i is considered superior according to this multi-criteria analysis.
Table 12 presents the comparative evaluation of the three optimal configurations identified. The raw values of each criterion are determined through exhaustive analysis over the validity regions of each configuration.
Table 12. Multi-criteria evaluation of identified configurations.
Configuration 3 reaches 80.82 MW, establishing the normalization reference. Configuration 1 achieves 97.7% of this maximum value (78.97 MW), while Configuration 2 reaches 90.6% (73.23 MW). The assigned weight of 0.25 reflects that, although important, power is not the only determining criterion.
Configuration 1 covers 1365 bar·°C, while Configuration 2 only spans 462 bar·°C. Configuration 3 occupies intermediate position with 1050 bar·°C. The area of each region is calculated by counting parametric points where the configuration is optimal, multiplied by mesh spacing ( Δ P × Δ T ). The weight of 0.20 recognizes that operational flexibility is critical for system robustness against uncertainties.
Configuration 2 offers greater margin (0.045), followed by Configuration 1 (0.030), while Configuration 3 operates dangerously close to the limit (0.001). This criterion receives weight of 0.20 due to reliability and maintenance cost implications associated with operation near erosion limits.
Configurations 1 and 2 require three stages ( I S = 0.333 ), while Configuration 3 requires four stages ( I S = 0.250 ). The relatively lower weight (0.15) reflects that moderately greater complexity may be justified if other benefits are significant.
Configuration 2 presents greater robustness ( I R = 0.714   MW − 1 , equivalent to σ = 1.40 MW), followed by Configuration 1 ( I R = 0.455   MW − 1 , σ = 2.20 MW), while Configuration 3 exhibits lower robustness ( I R = 0.444   MW − 1 , σ = 2.25 MW). The standard deviation is calculated over the set of powers generated at all parametric points of the validity region. For example, Configuration 2 with σ = 1.40  MW experiences typical variation of ± 1.40  MW when operating at different points in its validity region. The weight of 0.20 recognizes the importance of performance thermodynamic consistency for operational planning.
The total weighted score, calculated through Equation (41), positions Configuration 1 as superior with 0.82 points. This configuration offers optimal balance between power generation (97.7% of absolute maximum), extensive operating range (100% of maximum), adequate safety margin (67% of maximum), competitive simplicity (100%), and acceptable operational robustness (64% of best). Configuration 3 reaches 0.69 points, penalized mainly by critical safety margin (2% of best) and lower robustness (62%). Configuration 2 obtains 0.68 points, limited by reduced power (91%) and narrow operating range (34% of maximum).

5.3.5. Sensitivity Analysis of Multi-Criteria Evaluation

Robustness of the recommended selection is verified through sensitivity analysis that evaluates the effect of changes in weights assigned to each criterion. Table 13 presents total scores under three alternative weighting scenarios.
Table 13. Sensitivity analysis: total score under different weighting schemes.
The analysis reveals that Configuration 1 maintains its superior position in three of the four evaluated scenarios. In the base scenario, Configuration 1 obtains 0.82 points, clearly surpassing alternatives. When the weight of maximum power is increased to 0.40, Configuration 1 improves its score to 0.85, although Configuration 3 increases competitiveness (0.77 points) due to its higher absolute power. However, Configuration 1 maintains advantage due to its superior balance in other criteria.
In the scenario with extreme emphasis on reliability (weights of 0.30 for safety margin and robustness), Configuration 2 emerges as superior (0.83 points), surpassing Configuration 1 (0.74 points). This occurs because Configuration 2 presents the best safety margin (0.045) and lowest variability ( σ = 1.40 MW). Configuration 3 is severely penalized in this scenario (0.52 points) due to its critical margin of barely 0.001.
When flexibility is emphasized by increasing the weight of operating range to 0.35, Configuration 1 reaches its best relative performance (0.87 points), leveraging its wide validity region of 1365 bar·°C. Configuration 2 is particularly affected in this scenario (0.62 points) due to its restricted validity region of only 462 bar·°C.
The robustness of Configuration 1 as a superior option is confirmed by maintaining first place in three of four scenarios. Configuration 2 would only be justified in contexts where reliability (safety margin and operational robustness) is absolutely prioritized over flexibility and power. However, such an extreme scenario is unlikely in real industrial applications, where balance between multiple objectives is generally preferable.

5.3.6. Sensitivity of Steam Turbine Isentropic Efficiency

The isentropic efficiency of steam turbines is a determining parameter in the thermodynamic performance of the cycle, as it directly influences power generation and steam quality at the end of each expansion. Figure 13 presents a sensitivity analysis of Configuration 1, evaluating power generation and minimum steam quality as a function of P H R S G and T s 4 , for two values of η I S T : the nominal (0.89) and a reduced one (0.85). The latter simulates operational wear conditions on the turbine blades.
Figure 13. Configuration 1: Power generation and steam quality as function of P H R S G , T s 4 at η I S T = 0.89 and 0.85.
Formally, reducing η IST affects steam quality through h out = h in − η IST ( h in − h out , s ) (enthalpy increases) and x out = ( h out − h f ) / h f g (quality increases), allowing the optimizer to route more flow to condenser expansion without violating x ≥ 0.88 .
The figure reveals a notable result: a lower isentropic efficiency ( η I S T = 0.85) leads to higher power generation values across the entire parametric range compared to the nominal condition. This seemingly counterintuitive behavior is explained by the interaction between expansion thermodynamics and the response of the MINLP optimizer. While a reduced η I S T decreases the specific work per stage, it also increases the enthalpy of the remaining steam, allowing the optimizer to reallocate mass flows toward the expansion routes that maximize net power within the superstructure, favoring a greater flow rate expanded to the condenser.
Despite this quantitative change in power, the optimal topology (Configuration 1) remains unaltered. The power surface for η I S T = 0.85 is approximately parallel to that for η I S T = 0.89 but shifted toward higher values. This confirms the robustness of Configuration 1 against degradation in turbine efficiency, a relevant factor for long-term operation.
Additionally, it is observed that the lower isentropic efficiency exerts a positive effect on operational safety margin: the resulting increase in steam quality moves the system away from the critical limit x ≥ 0.88 , thereby reducing the risk of blade erosion. However, this apparent benefit should be interpreted with caution, since higher quality at the end of the expansion also implies greater heat rejection in the condenser and, consequently, lower global thermodynamic conversion efficiency. This trade-off underscores the importance of complementing the analysis with exergetic or thermoeconomic criteria to define truly optimal operating conditions.

5.3.7. Recommended Configuration

Based on multi-criteria analysis and its verification through sensitivity analysis, Configuration 1 is recommended for implementation in the Tula cogeneration system. This selection is founded on:
  • Superior operational flexibility: The operating range of 1365 bar·°C allows accommodating significant variations in HRSG conditions without requiring configuration changes. This flexibility is critical for adaptability to seasonal variations, changes in refinery load, or fluctuations in ambient conditions.
  • Performance–reliability balance: Configuration 1 generates 78.97 MW (97.7% of the absolute maximum) with an adequate safety margin (0.030) that protects against transient violations of steam quality. The sacrifice of 1.85 MW with respect to the absolute maximum is amply justified by greater operational robustness.
  • Competitive simplicity: Configuration 1 requires only 3 expansion stages, facilitating control and reducing maintenance costs. This simplicity also increases inherent system reliability by reducing potential failure points.
  • Acceptable robustness: The standard deviation of 2.20 MW (64% of best) provides sufficient thermodynamic consistency for operational planning. Although  Configuration 2 presents lower variability, its restricted operating range severely limits its practical applicability.
  • Selection robustness: Sensitivity analysis confirms that Configuration 1 maintains superiority under different design philosophies, except in extreme scenarios that prioritize reliability over all other criteria.
For applications where absolute power maximization is prioritized (contexts with very high electricity prices or minimum generation contractual requirements), Configuration 3 could be justified provided that advanced monitoring and control systems are implemented to mitigate risks associated with operation near the steam quality limit ( Δ x = 0.001 ). However, such a scenario would require significant additional investments in instrumentation and protection systems.
Configuration 2, although presenting excellent reliability (best safety margin and lower variability), is not recommended for initial implementation due to its severely restricted operating range (462 bar·°C, only 34% of maximum). This configuration could be considered in future applications with very specific and stable operating conditions within its narrow validity region.

5.4. Implementation Recommendations

Based on the multi-criteria evaluation of Section 5.4 and considering current operating conditions of the refinery, implementation of Configuration 1 is recommended with specifications presented in Table 14.
Table 14. Specifications of recommended design for initial implementation.
The recommended operating range (75–140 bar, 500–520 °C, Table 6) accommodates exhaust gas variations across the four gas turbine trains without requiring reconfiguration of the active steam cycle topology. Dynamic analysis (start-up, load following, demand variation) is identified as future work.
This configuration provides optimal balance between the following attributes:
  • Increased generation: Produces 72.32 MW of additional power under nominal conditions.
  • Improved efficiency: Maintains utilization factor of 0.710, reaching typical values of state-of-the-art combined cycle plants.
  • Reduced consumption: Achieves specific consumption of 0.207 kg/kWh, decreasing operating costs and CO2 emissions proportionally.
  • Operational flexibility: Offers wide operating range (75–140 bar in pressure, 500–520 °C in temperature), allowing adaptation to variations in steam demands or equipment availability.
  • Safety margin: Maintains distance of 0.030 from critical steam quality limit, sufficient for reliable operation under transient variations.
  • Moderate complexity: Requires only three expansion stages, facilitating operation, control, and system maintenance.

5.4.1. Incremental Optimization Strategies

If HRSG rehabilitation with improved specifications is contemplated, two strategies are identified that maintain Configuration 1 as the optimal topology.
Strategy A: Pressure Increase
Increase steam generation pressure to 130–140 bar while maintaining superheat temperature in the nominal range 510–520 °C.
Expected benefits:
  • Power increment of 5–6 MW (reaching 77–79 MW);
  • Improvement of 0.7% in utilization factor (reaching U F = 0.716 –0.718);
  • Additional reduction of 1.4% in specific fuel consumption (reaching S F C = 0.204 –0.206 kg/kWh);
  • Maintenance of adequate safety margin ( x min = 0.910 –0.915).
Technical requirements:
  • HRSGs designed for operating pressure of 140 bar with appropriate safety margin (design pressure typically 1.2 times operating pressure);
  • Modifications in the steam distribution system piping and valves to support increased pressure;
  • Recertification of steam turbines for operation in new pressure range.
Strategy B: Nominal Point Optimization
Adjust nominal conditions within current HRSG range to approach thermodynamic optimum. Specifically, operate at ( P HRSG = 88 –90 bar, T s 4 = 500  °C) instead of original conditions at 510 °C.
Expected benefits:
  • Increment of 1–2 MW (reaching 74–75 MW);
  • Marginal improvement in utilization factor (0.3–0.5%);
  • No additional capital investment requirements.
Additional considerations: Superheat temperature reduction could extend the service life of HRSG thermal components by operating under less severe conditions, potentially extending maintenance intervals.
The decision between these strategies must be founded on technical–economic analysis that quantifies incremental investment costs, additional revenues from higher electric generation, and savings in fuel consumption. This analysis must calculate the payback period and net present value under different scenarios of electricity and natural gas prices.

5.4.2. Future Expansion Scenario: Transition to Configuration 3

If future operating conditions justify maximization of electric generation at the expense of increased complexity and reduced safety margins, Configuration 3 represents viable expansion option. This transition is recommended only if the following conditions are met:
Condition 1: HRSG Modification
HRSGs must be modified to operate in the range P HRSG = 130 –140 bar and T s 4 = 550 –560 °C. This requires replacement or reinforcement of high-temperature components, particularly superheaters and connection piping. Additionally, combustion control system upgrade is required to maintain elevated temperatures with stability.
Condition 2: Complete ST4 Installation
Turbine ST4 must be installed with both operational expansion stages (HP → LP and LP → COND). This installation requires investment in multi-stage turbine with controlled extractions and regulation valve systems for each stage.
Condition 3: Advanced Monitoring Systems
Implement continuous monitoring of steam quality through humidity sensors at outlets of all turbine stages, particularly at ST4 outlet where x ≈ 0.88 . The system must include anticipatory alarms and automatic interlock that reduces superheat temperature if quality approaches dangerously close to the limit.
Condition 4: Economic Justification
Additional investment must be justified through cost–benefit analysis demonstrating that incremental revenues from higher electric generation exceed increased investment, operation, and maintenance costs in an acceptable payback period. Expected power increment is approximately an additional 8 MW, equivalent to 4960 MWh/month, assuming a plant factor of 0.85. Typically, an acceptable payback period for industrial projects is less than 5 years.
Under these conditions, transition to Configuration 3 would generate the following results:
  • Power of 80.82 MW (11% increase with respect to nominal Config. 1);
  • Utilization factor of 0.735 (3.4% increase);
  • Specific fuel consumption of 0.199 kg/kWh (3.9% reduction).
However, it would operate with minimum steam quality of 0.880, requiring rigorous operational management and advanced protection systems.

5.4.3. Applicability to Other PEMEX System Refineries

The methodology developed in this work is directly applicable to other refineries of the PEMEX system (Salamanca, Salina Cruz, Minatitlán, Cadereyta, Ciudad Madero) through the systematic procedure summarized in Table 15.
Table 15. Procedure for applying methodology to other refineries.
This procedure is generalizable because it is founded on universal thermodynamic principles: mass and energy balances, steam quality restrictions, and MINLP optimization. Particularities of each installation (pressure levels, temperatures, flows) are incorporated as input data to the model, without  requiring reformulation of mathematical structure.
Quantification of aggregate improvement potential in the national refinery system requires detailed evaluation specific to each installation. Factors to consider include
  • Availability of existing gas turbines or viability of new installation
  • Current configuration of steam generation system (conventional boilers vs. existing HRSGs)
  • Steam demand profiles at multiple pressure levels
  • Physical space restrictions and connections with existing infrastructure
  • Technical-economic feasibility considering investment costs and applicable regulatory framework
This aggregate evaluation constitutes relevant future work to inform national energy policy in the petroleum refining sector. Systematic implementation of advanced cogeneration in the refinery system presents significant potential for improvement in global energy efficiency.

6. Conclusions

This work demonstrates that the optimal topology of a cogeneration system does not vary continuously with design parameters but undergoes discrete transitions at specific thermodynamic thresholds. This finding challenges the conventional assumption in the optimization literature—which traditionally addresses parameter selection and topological configuration separately—and has fundamental implications for the design of flexible energy systems.
Through systematic parametric exploration (70–140 bar and 500–560 °C) coupled with superstructure-based MINLP optimization, three topologically distinct configurations that maximize power generation under different operating conditions were identified. The principal scientific contribution lies in the rigorous characterization of the mechanisms governing these transitions:
  • Configuration 2 → 1 Transition (100–110 bar): Occurs when HRSG pressure increases at constant temperature, raising the ST4 outlet temperature ( T s 13 ) until the LP header mixing constraint ( T s 13 < 350 °C) activates, rendering Configuration 2 thermodynamically infeasible. The optimizer responds by activating valve EV3 for tempering with saturated steam (Configuration 1).
  • Configuration 1 → 3 Transition (>530 °C: Emerges from the trade-off between power maximization and steam quality degradation. At elevated temperatures, Configuration 1 develops excessive quality ( x s 19 > 0.940 ) with diminishing power output, while Configuration 3 divides the high-pressure expansion into two stages (ST4), generating an additional 4–8 MW while maintaining quality near the safety limit ( x s 14 ≈ 0.88 ).
This mechanistic understanding fundamentally transforms design methodology: rather than discovering operational limitations through field-testing, engineers can now anticipate topology changes during the design phase by evaluating critical constraint activation across the entire anticipated operating envelope.
From a practical perspective, Configuration 1 (active ST1 + ST3 + ST5, operational valves EV1–EV3) emerges as the recommended design for the Miguel Hidalgo refinery following multi-criteria evaluation integrating maximum power, operating range, safety margin, system simplicity, and performance robustness. With a weighted score of 0.82 (versus 0.69 and 0.68 for alternatives), this configuration offers
  • High performance: 72.32 MW from the steam cycle under nominal conditions, representing a 25% increase in total generation (288 MW baseline + 72.32 MW additional).
  • Broad operational flexibility: A valid range of 75–140 bar and 500–520 °C (1365 bar·°C), enabling adaptation to seasonal variations and demand changes without reconfiguration.
  • Adequate safety margin:  Δ x = 0.03 above the critical quality limit ( x ≥ 0.88 ), protecting against blade erosion during transients.
  • Moderate complexity: Only three expansion stages, facilitating control and maintenance.
In terms of energy efficiency, this translates to an 11.09% improvement in utilization factor (from 0.640 to 0.710) and a 20% reduction in specific fuel consumption (from 0.259 to 0.207 kg/kWh) relative to the baseline system without cogeneration. The additional annual generation (534 GWh, assuming an 85% plant factor) is equivalent to the residential consumption of approximately 160,000 Mexican households.
The developed methodology—systematized into a five-step procedure (characterization → superstructure generation → parametric exploration → configuration identification → multi-criteria evaluation)—is directly generalizable to other PEMEX refineries (Salamanca, Salina Cruz, Minatitlán, Cadereyta, Ciudad Madero) and to industrial installations worldwide. Preliminary estimates suggest an aggregate efficiency improvement potential of 15–25% across the refinery portfolio, translating to 400–600 GWh annually in additional electricity generation and proportional CO2 emissions reductions.
Four priority directions emerge for future work: (1) systematic quantification of aggregate potential across the national refinery system to inform energy policy; (2) detailed exergy analysis to identify irreversibilities and targeted improvement opportunities; (3) extension to multi-objective optimization integrating economic (capital cost, payback period) and environmental (CO2, NOx emissions) variables; and (4) investigation of similar discrete transition phenomena in other industrial energy systems with multi-pressure steam networks.
The demonstration that optimal cogeneration system topology transitions discretely at thermodynamically explainable thresholds fundamentally alters how flexible energy systems should be designed. This work provides both theoretical understanding and practical tools enabling designers to anticipate configuration changes during the design phase, rather than discovering them through costly operational trial-and-error.

Author Contributions

Conceptualization, M.S.-P., L.E.M.-C., R.L.-L. and H.D.L.-M.; methodology, M.S.-P., L.E.M.-C. and H.D.L.-M.; software, M.S.-P., L.E.M.-C. and H.D.L.-M.; validation, M.S.-P. and R.L.-L.; formal analysis, R.L.-L., M.S.-P. and L.E.M.-C.; investigation, M.S.-P. and L.E.M.-C.; resources, M.S.-P., L.E.M.-C., W.B.-B., R.L.-L., S.C.-H. and H.D.L.-M.; data curation, M.S.-P., L.E.M.-C. and H.D.L.-M.; writing—original draft preparation, M.S.-P. and L.E.M.-C.; writing—review and editing, L.E.M.-C., R.L.-L., S.C.-H. and H.D.L.-M.; visualization, M.S.-P., R.L.-L. and H.D.L.-M.; supervision, M.S.-P. and H.D.L.-M.; project administration, M.S.-P. and W.B.-B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

Equipment Inventory of the Superstructure
HRSG System
ECEconomizer
EVEvaporator
SHSuperheater
DrumLiquid-Vapor Separator
Distribution Headers
Head ISuperheated Steam Header
Head IISaturated Steam Header
Head HPHigh-Pressure Header (Refinery Supply)
Head LPLow-Pressure Header (Refinery Supply)
Bifurcation Nodes
Node 1Bifurcation Node 1
Node 2Bifurcation Node 2
Node 3Bifurcation Node 3
Expansion Valves
EV1Expansion Valve 1
EV2Expansion Valve 2
EV3Expansion Valve 3
EV4Expansion Valve 4
Steam Turbines
ST1Steam Turbine 1 (3 stages, with electric generator)
ST2Steam Turbine 2 (3 stages, with electric generator)
ST3Steam Turbine 3 (2 stages, with electric generator)
ST4Steam Turbine 4 (2 stages, with electric generator)
ST5Steam Turbine 5 (1 stage, with electric generator)
ST6Steam Turbine 6 (1 stage)
Condensate System
CONDCondenser
PFeedwater Pump
TankWater Makeup Tank
Symbols and Variables
Latin Letters
c p , a Specific heat capacity of air at constant pressurekJ/(kg·K)
c p , g Specific heat capacity of gas at constant pressurekJ/(kg·K)
hSpecific enthalpykJ/kg
h HP Specific enthalpy at high-pressure headerkJ/kg
h LP Specific enthalpy at low-pressure headerkJ/kg
jSteam turbine number index-
kExpansion stage index-
m ˙ Mass flow ratekg/s
m ˙ a Air mass flow ratekg/s
m ˙ f Fuel mass flow ratekg/s
m ˙ g Exhaust gas mass flow ratekg/s
m ˙ T Total steam mass flow ratekg/s
m ˙ HP High-pressure steam mass flow ratekg/s
m ˙ LP Low-pressure steam mass flow ratekg/s
mInlet state index-
m + 1 Outlet state index-
PPressurebar
P 0 Reference pressurebar
P g 1 Gas turbine inlet pressurebar
P g 2 Compressor outlet pressurebar
P g 3 Turbine inlet pressurebar
P g 4 Turbine outlet pressurebar
P H R S G HRSG operating pressurebar
Q ˙ Heat flow rateMW
Q ˙ CC Heat flow rate supplied to combustion chamberMW
Q ˙ HP High-pressure steam heat flow rateMW
Q ˙ LP Low-pressure steam heat flow rateMW
TTemperature°C
T 0 Reference temperature°C
T g 1 Gas turbine inlet temperature°C
T g 2 Compressor outlet temperature°C
T g 3 Turbine inlet temperature°C
T g 4 Turbine outlet temperature°C
T g e Gas temperature at evaporator outlet°C
T s a t Saturation temperature°C
T s 4 Superheater outlet temperature°C
W ˙ PowerMW
W ˙ P Pump power consumptionMW
W ˙ m , S T Steam cycle power outputMW
W ˙ m , T G Gas turbine power outputMW
W ˙ m , C C Combined cycle power outputMW
W ˙ ST j Power generated by steam turbine jMW
W ˙ ST 1 Power generated by steam turbine 1MW
W ˙ ST 2 Power generated by steam turbine 2MW
W ˙ ST 3 Power generated by steam turbine 3MW
W ˙ ST 4 Power generated by steam turbine 4MW
W ˙ ST 5 Power generated by steam turbine 5MW
W ˙ ST 6 Power generated by steam turbine 6MW
y ST Binary variable for steam turbine expansion stages-
y ST j k Binary variable for expansion stage k of turbine j-
z i Binary variable for steam flow i-
Greek Letters
γ Specific heat ratio-
γ a Specific heat ratio of air-
γ g Specific heat ratio of exhaust gas-
Δ P Pressure drop-
Δ P CC Pressure drop in combustion chamber-
Δ P GT Pressure drop in gas turbine-
Δ T PP Pinch Point temperature difference°C
η Efficiency-
η s Isentropic efficiency-
η s , S T j k Isentropic efficiency of expansion stage k in turbine j-
η s i c Isentropic efficiency of compressor-
η s i t Isentropic efficiency of turbine-
π C Compression ratio-
Subscripts and Notation
0Reference state
1 , 2 , 3 , . . . , 34 State points in the thermodynamic cycle
aAir
C C Combustion chamber
fFuel
gGas/exhaust gas
g 1 , g 2 , g 3 , g 4 Gas turbine cycle states
g e Gas at evaporator outlet
H P High pressure
H R S G Heat recovery steam generator
iFlow index
jSteam turbine number
j k Expansion stage k of turbine j
kExpansion stage
L P Low pressure
mMechanical/output or inlet state
m + 1 Outlet state
PPump
sSteam or isentropic
s 4 Superheater outlet state
s a t Saturation
S T Steam turbine
S T 1 , . . . , S T 6 Steam turbines 1 through 6
TTotal
T G Gas turbine

Appendix A. Thermodynamic States of the Superstructure

Table A1. Thermodynamic states of the Superstructure and mass flows for optimal configurations 1 and 2, for operating conditions of P H R S G = 88.26 bar and T s 4 = 510 °C.
Table A2. Continuation of thermodynamic states of the Superstructure and mass flows for optimal configurations 1 and 2, for operating conditions of P H R S G = 88.26 bar and T s 4 = 510 °C.
Table A3. Thermodynamic states of the Superstructure and mass flows for optimal configuration 3, for operating conditions of P H R S G = 88.26 bar and T s 4 = 530 °C.
Table A4. Continuation of thermodynamic states of the Superstructure and mass flows for optimal configuration 3, for operating conditions of P H R S G = 88.26 bar and T s 4 = 530 °C.

Appendix B. Computational Implementation Details

This appendix provides comprehensive specifications of the computational environment, numerical methods, and implementation procedures used throughout this work, enabling exact replication of results presented in Section 5.

Appendix B.1. Software Environment

The optimization framework was implemented in Microsoft Excel 2019 (Version 16.0.10396) with the following components:
  • Solver Engine: GRG (Generalized Reduced Gradient) Nonlinear solver, part of Excel Solver Add-in developed by Frontline Systems
  • Thermodynamic Properties: XSteam add-in version 2.6 (Magnus Holmgren, 2006), implementing IAPWS-IF97 formulas for water and steam properties
  • Operating System: Windows 10 Professional (64-bit)
  • Hardware: Intel Core i7-9700 processor (3.0 GHz, 8 cores), 16 GB RAM
Alternative implementations are feasible in any environment supporting MINLP solvers and IAPWS-IF97 property calculations, including:
  • Python ---> 3.10 with scipy.optimize + iapws library
  • Julia ---> 1.11.0 with JuMP.jl + Juniper.jl + IAPWS.jl
  • Gams ----> 40.1.0 with BARON or DICOPT solvers

Appendix B.2. Complete Solver Configuration

The GRG Nonlinear solver was configured with the following parameters to ensure robust convergence:
ParameterValuePurpose
Convergence tolerance 10 − 6 Gradient norm threshold
Constraint precision 10 − 5 Feasibility tolerance
Maximum iterations1000Prevents infinite loops
Maximum subproblem iterations500Per NLP subproblem
Derivatives methodForward differenceNumerical gradients
Central differencesEnabledImproved accuracy
Multistart10 runsEscape local optima
Population size50Initial point generation
Random seedVariableDifferent for each case
These settings balance computational efficiency (typical solution time 2–5 min per case) with solution quality. Tighter tolerances ( 10 − 8 ) were tested but provided negligible improvement at 3–5× computational cost.

Appendix B.3. Solution Algorithm

The complete solution procedure for each parametric case ( P HRSG , T s 4 ) follows this structured methodology:
Algorithm: MINLP Solution for Single Operating Point
  • Input: ( P HRSG , T s 4 ) , refinery demands ( m ˙ HP , m ˙ LP )
  • Output: Optimal configuration, power W ˙ net , state points
Step 1: Calculate HRSG steam generation
  • Evaluate gas turbine cycle using Equations (3)–(6)
  • Calculate m ˙ T from HRSG energy balance with pinch point constraint (Equation (8))
  • Verify stack temperature T g 7 ≥ 120 °C to avoid acid condensation
Step 2: Identify candidate configurations
Based on systematic thermodynamic feasibility analysis of the superstructure (Section 3), three topologically distinct configurations identified as optimal in adjacent parametric regions are considered:
4.
Configuration 1 (Tempering via Valves):
  • Active Headers: Head I, Head II
  • Active valves: EV1, EV2, EV3
  • Active turbines: ST1 (3 stages), ST3 (2 stages), ST5 (1 stage)
  • Fixed binary variables:
    –
    Set y ST 1 = [ 1 , 1 , 1 ] (heuristic: activate ST1 fully based on the highest enthalpy drop)
    –
    Set y ST 3 = [ 1 , 1 , 0 ] (activate two stages)
    –
    Set y ST 5 = [ 1 ] (activate single stage to condenser)
    –
    Set all other y j k = 0 (remaining turbines and stages inactive)
    –
    Set EV1 = 1, EV2 = 1 and EV3 = 1
5.
Configuration 2 (Simplified System):
  • Active Headers: Head I only (Head II deactivated)
  • Active valves: EV1 and EV2 (EV3 deactivated)
  • Active turbines: ST1 (3 stages), ST4 (2 stages), ST5 (1 stage)
    –
    Set y ST 1 = [ 1 , 1 , 1 ] (heuristic: activate ST1 fully based on the highest enthalpy drop)
    –
    Set y ST 4 = [ 1 , 1 , 0 ] (activate two stages)
    –
    Set y ST 5 = [ 1 ] (activate single stage to condenser)
    –
    Set all other y j k = 0 (remaining turbines and stages inactive)
    –
    Set EV1 = 1 and EV2 = 1
6.
Configuration 3 (High-Power Multi-Stage):
  • Active Headers: Head I and Head II
  • Active valves: EV1, EV2 and EV3
  • Active turbines: ST1 (3 stages), ST3 (2 stages), ST4 (2 stage)
    –
    Set y ST 1 = [ 1 , 1 , 1 ] (heuristic: activate ST1 fully based on the highest enthalpy drop)
    –
    Set y ST 3 = [ 1 , 1 , 0 ] (activate two stages)
    –
    Set y ST 4 = [ 1 , 1 ] (activate two stages to condenser)
    –
    Set all other y j k = 0 (remaining turbines and stages inactive)
    –
    Set EV1 = 1, EV2 = 1 and EV3 = 1
  • Total expansion stages: 4
  • Key characteristic: Maximizes expansion stages for higher power generation
Justification of Configuration Selection
  • Steam quality constraints ( x ≥ 0.88 at all turbine outlets)
  • Temperature requirements of high- and low-pressure headers ( T H P = 482 °C, T L P = 350 °C)
  • Pressure hierarchy feasibility ( P HRSG > P HP > P LP > P COND )
  • Thermodynamic feasibility of tempering routes
  • Preliminary sensitivity analysis that identified discrete transition phenomena
Alternative configurations (e.g., ST2, ST6, different valve combinations) were preliminarily evaluated but were excluded because:
  • Violation of steam quality constraints within the operating range
  • Lower power generation compared to the three candidates
  • Thermodynamic infeasibility (inability to meet temperature specifications)
Step 3: Solve NLP for each candidate configuration
For each configuration k ∈ { 1 , 2 , 3 }
7.
Fix binary variables to the values specified in Step 2 for configuration k : y = y k , f i x e d
8.
Formulate NLP problem with only continous variables:
  • maximize f ( x cont , y k , fixed ) = W ˙ ST ( x cont , y k , fixed )
  • subject to g ( x cont , y k , fixed ) ≤ 0 where:
    –
    x cont = continuous variables (mass flows, pressures, temperatures, etc.)
    –
    y k , fixed = binary variables FIXED to configuration k values
    –
    g ( · ) = constraints (mass balances, energy balances, x ≥ 0.88 , etc.)
9.
Initialize continuous variables using heuristics:
  • Mass flows proportional to turbine enthalpy drops
  • Extraction pressures at demand levels ( P HP = 60 bar, P LP = 20 bar)
  • Temperatures from isentropic expansion estimates with η IST = 0.89
10.
Solve NLP using GRG Nonlinear with multistart strategy:
(a)
For i = 1 to 10 (multistart runs for continuous variables):
  • Generate random perturbation of initial continuous variables ( ± 10 % variation)
  • Solve NLP from perturbed starting point
  • If solution is feasible and improves objective: Store solution
(b)
Select best solution among the 10 runs: ( x c o n t , k * , y k , f i x e d , W ˙ k * )
11.
Verify thermodynamic consistency:
  • Mass balance closure: | ∑ m ˙ in − ∑ m ˙ out | < 10 − 4 kg/s
  • Energy balance closure: | ∑ Q ˙ in − ∑ Q ˙ out − ∑ W ˙ | / ∑ Q ˙ in < 0.1 %
  • Steam quality: x j k ≥ 0.88 at all active turbine stages
  • Entropy generation: S ˙ gen ≥ 0 for all irreversible processes
12.
Thermodynamic feasibility check
  • If configuration k is thermodynamically feasible: Store ( x c o n t , k * , y k , f i x e d , W ˙ k * )
  • If configuration k violates any constraint: Mark as infeasible for this point ( P HRSG , T s 4 )
Step 4: Multistart MINLP optimization
13.
Among feasible configurations, identify the one with maximum power: k * = arg max k ∈ { 1 , 2 , 3 } W ˙ k * : configuration k is feasible
14.
Return optimal solution for this parametric point:
  • Configuration: k *
  • Binary variables: y k * , fixed
  • Continuous variables: x cont , k * *
  • Generated power: W ˙ k * *
  • All thermodynamic state points

Appendix B.4. Parametric Sweep Implementation

The complete parametric analysis evaluates 84–105 operating points depending on temperature range:
  • Pressure sweep: P HRSG = [70, 75, 88.26, 90, 100, 110, 120, 130, 140] bar (9 values)
  • Temperature sweeps:
    –
    Low range: T s 4 = [500, 510, 520] °C → 9 × 3 = 27 cases
    –
    Mid range: T s 4 = [530, 540] °C → 9 × 2 = 18 cases
    –
    High range: T s 4 = [550, 560] °C → 9 × 2 = 18 cases
    –
    Nominal case: (88.26 bar, 510 °C) → 1 case
  • Total: 27 + 18 + 18 + additional validation points ≈ 84–105 cases
Each case requires 2–5 min solution time, totaling 7–9 h for a complete parametric map on the specified hardware. Parallel execution across multiple Excel instances can reduce wall-clock time proportionally to available cores (up to 8-fold speed upon the test system).

Appendix B.5. Three-Level Validation Protocol

All solutions undergo three-level validation before inclusion in results:
Level 1: Thermodynamic Consistency
  • Energy balance closure: | ∑ Q ˙ in − ∑ Q ˙ out − ∑ W ˙ | / ∑ Q ˙ in < 0.1 %
  • Mass balance closure: | ∑ m ˙ in − ∑ m ˙ out | < 10 − 3 kg/s for each component
  • Entropy generation: S ˙ gen ≥ 0 for all irreversible processes (turbines, throttling valves, mixing)
Level 2: Physical Feasibility
  • Steam quality: x j k ≥ 0.88 at all turbine stage outlets (safety criterion to prevent blade erosion)
  • Temperature constraints: T g 7 ≥ 120 °C (avoid sulfuric acid condensation in the stack)
  • Pressure hierarchy: P HRSG > P HP > P LP > P COND (ensure thermodynamic viability of flows)
  • Flow positivity: m ˙ i ≥ 0 for all streams (no negative or reverse flows)
Level 3: Solution Quality
  • Convergence achieved: Gradient norm < 10 − 6 (optimizer successfully found a stationary point)
  • No binding constraints at tolerance: | g i | > 10 − 4 for active constraints (avoid numerical artifacts)
  • Consistency across restarts: Best solutions from ≥ 3 random initializations agree within 0.1% (confirms robustness)
Cases failing any validation criterion are flagged for manual review. In this study, 98.7% of cases (83/84) passed all validation checks on the first attempt, with the single failure resulting from an infeasible pressure-temperature combination outside the steam tables’ valid range.

Appendix B.6. Input Data Specification

Complete specification of input parameters, ensuring reproducibility:
Natural gas composition (volumetric basis):
  • Methane (CH4): 88.0% (primary component)
  • Ethane (C2H6): 10.0%
  • Propane (C3H8): 2.0%
  • Trace components (N2, CO2): <0.1% (neglected in calculations)
Derived fuel properties:
  • Lower heating value: L H V = 49,514 kJ/kg (calculated from composition using standard formation enthalpies)
  • Molecular weight: M f = 17.63 kg/kmol
  • Stoichiometric air-fuel ratio: ( A / F ) stoich = 16.12   kg air / kg fuel
  • Actual air-fuel ratio: ( A / F ) actual = 42.25   kg air / kg fuel (corresponds to 161.9% excess air, typical for industrial gas turbines)
Reference environment (Morris-Szargut method):
  • Ambient temperature: T 0 = 30 °C (303.15 K)—representative of Tula refinery location
  • Ambient pressure: P 0 = 0.78 bar (Tula altitude: 2020 m above sea level)
  • Reference state: Saturated liquid water at T 0 , P 0
  • Dead state enthalpy: h 0 = 125.74 kJ/kg
  • Dead state entropy: s 0 = 0.4365 kJ/(kg·K)
These reference conditions are essential for calculating the utilization factor and comparing results with literature values, which often employ different reference states (25 °C, 1 bar being a common alternative).

References

  1. Variny, M.; Jediná, D.; Kizek, J.; Illés, P.; Lukáč, L.; Janošovskỳ, J.; Lesnỳ, M. An investigation of the techno-economic and environmental aspects of process heat source change in a refinery. Processes 2019, 7, 776. [Google Scholar] [CrossRef] [Scilit]
  2. Kornienko, V.; Radchenko, M.; Radchenko, A.; Koshlak, H.; Radchenko, R. Enhancing the Fuel Efficiency of Cogeneration Plants by Fuel Oil Afterburning in Exhaust Gas before Boilers. Energies 2023, 16, 6743. [Google Scholar] [CrossRef] [Scilit]
  3. Costea, M.; Feidt, M. A Review Regarding Combined Heat and Power Production and Extensions: Thermodynamic Modelling and Environmental Impact. Energies 2022, 15, 8782. [Google Scholar] [CrossRef] [Scilit]
  4. Mehrpooya, M.; Ashouri, M.; Mohammadi, A. Thermoeconomic analysis and optimization of a regenerative two-stage organic Rankine cycle coupled with liquefied natural gas and solar energy. Energy 2017, 126, 899–914. [Google Scholar] [CrossRef] [Scilit]
  5. Pinto, L.F.R.; Tucci, H.N.P.; Mummolo, G.; Neto, G.C.d.O.; Facchini, F. Circular economy approach on energy cogeneration in petroleum refining. Energies 2022, 15, 1713. [Google Scholar] [CrossRef] [Scilit]
  6. Chen, C.L.; Lin, C.Y. Design and optimization of steam distribution systems for steam power plants. Ind. Eng. Chem. Res. 2011, 50, 8097–8109. [Google Scholar] [CrossRef] [Scilit]
  7. Golmohamadi, H.; Asadi, A. Integration of joint power-heat flexibility of oil refinery industries to uncertain energy markets. Energies 2020, 13, 4874. [Google Scholar] [CrossRef] [Scilit]
  8. Ahmadi, P.; Dincer, I. Thermodynamic and exergoenvironmental analyses, and multi-objective optimization of a gas turbine power plant. Appl. Therm. Eng. 2011, 31, 2529–2540. [Google Scholar] [CrossRef] [Scilit]
  9. Manesh, M.K.; Ghalami, H.; Amidpour, M.; Hamedi, M. Optimal coupling of site utility steam network with MED-RO desalination through total site analysis and exergoeconomic optimization. Desalination 2013, 316, 42–52. [Google Scholar] [CrossRef] [Scilit]
  10. Pariasamy, S.G.; Venkiteswaran, V.K.; Kumar, J.; Awad, M.M. Industrial CHP with steam systems: A review of recent case studies, trends and relevance to Malaysian industry. Energies 2022, 15, 7491. [Google Scholar] [CrossRef] [Scilit]
  11. Lazzaretto, A.; Tsatsaronis, G. SPECO: A systematic and general methodology for calculating efficiencies and costs in thermal systems. Energy 2006, 31, 1257–1289. [Google Scholar] [CrossRef] [Scilit]
  12. Toffolo, A.; Lazzaretto, A. Evolutionary algorithms for multi-objective energetic and economic optimization in thermal system design. Energy 2002, 27, 549–567. [Google Scholar] [CrossRef] [Scilit]
  13. Bernier, E.; Maréchal, F.; Samson, R. Multi-objective design optimization of a natural gas-combined cycle with carbon dioxide capture in a life cycle perspective. Energy 2010, 35, 1121–1128. [Google Scholar] [CrossRef] [Scilit]
  14. Bamufleh, H.S.; Ponce-Ortega, J.M.; El-Halwagi, M.M. Multi-objective optimization of process cogeneration systems with economic, environmental, and social tradeoffs. Clean Technol. Environ. Policy 2013, 15, 185–197. [Google Scholar] [CrossRef] [Scilit]
  15. Grossmann, I.E.; Sargent, R.W. Optimum design of chemical plants with uncertain parameters. AICHE J. 1978, 24, 1021–1028. [Google Scholar] [CrossRef] [Scilit]
  16. Li, J.; Demirel, S.E.; Hasan, M.F. Fuel gas network synthesis using block superstructure. Processes 2018, 6, 23. [Google Scholar] [CrossRef] [Scilit]
  17. Variny, M.; Hanus, K.; Blahušiak, M.; Furda, P.; Illés, P.; Janošovskỳ, J. Energy and environmental assessment of steam management optimization in an ethylene plant. Int. J. Environ. Res. Public Health 2021, 18, 12267. [Google Scholar] [CrossRef] [Scilit]
  18. Martelli, E.; Capra, F.; Consonni, S. Numerical optimization of combined heat and power organic Rankine cycles–part a: Design optimization. Energy 2015, 90, 310–328. [Google Scholar] [CrossRef] [Scilit]
  19. Marty, F.; Serra, S.; Sochard, S.; Reneaume, J.M. Exergy analysis and optimization of a combined heat and power geothermal plant. Energies 2019, 12, 1175. [Google Scholar] [CrossRef] [Scilit]
  20. Kemp, I.C.; Lim, J.S. Pinch Analysis for Energy and Carbon Footprint Reduction: User Guide to Process Integration for the Efficient Use of Energy; Butterworth-Heinemann: Oxford, UK, 2020. [Google Scholar]
  21. Bejan, A.; Tsatsaronis, G.; Moran, M.J. Thermal Design and Optimization; John Wiley & Sons: New York, NY, USA, 1995. [Google Scholar]
  22. Cotton, K.C. Evaluating and Improving Steam Turbine Performance: Includes Cogeneration and Combined Cycles; Cotton Fact Incorporated: Cary, NC, USA, 1998. [Google Scholar]
  23. Tuma, M.; Oman, J.; Sekavčnik, M. Efficiency of a combined gas-steam process. Energy Convers. Manag. 1999, 40, 1163–1175. [Google Scholar] [CrossRef] [Scilit]
  24. Albahri, T.A.; Khor, C.S.; Elsholkami, M.; Elkamel, A. A mixed integer nonlinear programming approach for petroleum refinery topology optimisation. Chem. Eng. Res. Des. 2019, 143, 24–35. [Google Scholar] [CrossRef] [Scilit]
  25. Khor, C.; Elkamel, A. Superstructure optimization for oil refinery design. Pet. Sci. Technol. 2010, 28, 1457–1465. [Google Scholar] [CrossRef] [Scilit]
  26. Kermani, M.; Wallerand, A.S.; Kantor, I.D.; Maréchal, F. Generic superstructure synthesis of organic Rankine cycles for waste heat recovery in industrial processes. Appl. Energy 2018, 212, 1203–1225. [Google Scholar] [CrossRef] [Scilit]
  27. Masoumi, M.E.; Jahantighy, Z.F. Hydrogen Integration in Refinery Using MINLP Method. Adv. Mater. Res. 2013, 622, 720–725. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.