This disclosure relates to methods of developing a model for optimizing the operating parameters for a cogen facility associated with a crude processing facility.
Cogeneration plants, termed cogen facilities, are plants that generate both electrical power and heat. They are often located in industrial areas, such as near refineries and chemical plants, for which they can provide both electrical power and steam. Cogen facilities increase the efficiency of power generation and steam production as the production of each can be made from the same fuel source, which is converted to power, for example, in a gas turbine. The waste heat from this power conversion is then used to generate steam. Prior to cogeneration, industries relied on a lower efficiency process in which steam was generated in a dedicated boiler, and electrical power was imported from an electrical grid. As cogeneration is getting more economically attractive, optimizing cogeneration design and operation has become one of the key initiatives in the operating facilities, for example, to lower carbon oxides production.
Optimization of a cogeneration system is a complex task that poses many parameters that need to be determined. The interaction between parameters make an intuitive solution difficult or impossible. Creating a cogeneration model that mimics the actual operation will improve design and operation of cogeneration facilities.
An embodiment described herein provides a method for developing a model to optimize operations for a cogen facility. The method includes collecting data on the operation of the cogen facility and creating an objective function to minimize total operating cost of the cogen facility, wherein the objective function is based, at least in part, on a fuel cost and a net power cost. An output is provided from the objective function, wherein the output is used to control a mixture of gas turbines used in the cogen facility and steam generation rates.
A method for developing a cogeneration operating model is provided. The operating model is a performance model of a cogeneration (cogen) facility, which allows the determination of operational adjustments. The operating model includes the inputs and outputs for the components of the cogen facility used in the refinery, including the gas turbine generators (GTG), heat recovery steam generators (HRSG), steam turbine generators (STG), gas turbines (GT) use for powering pumps, boilers, and let down stations.
The operating model is based on the actual performance data of the cogen facility and is continuously validated to ensure the model reflects the reality on the site. The operating model is integrated with the rest of the operating units that make up the cogen, such as the steam condensate system, via a comprehensive mass and energy balance of the whole cogen system.
The operating model may be used for optimization purposes with the objective function selected to minimize operating costs and optimize energy intensity (EI) for various production and water injection cases. The output of the optimization model can be used to determine the numbers of gas turbines or boilers to run while keeping the operating constraints within the limits as defined in the model. The operating model has used to optimize various operating scenarios at a plan, which contributed to an EI improvement of 1-2% without incurring any capital cost.
Operating model described herein is directed to cogeneration facilities used in upstream crude oil processing, where the cogeneration operation depends on the crude production requirements, for example, based on seawater injection rates. Thus, the model accounts for the relevant parameters for crude production, including, injection rates, power demands, steam demands, and the like.
There are various types of boilers in use in cogen facilities. The most common boilers are either fired by fuel gas (BOILER 2) or fuel oil (BOILER 1). For most cases, the boilers are the primary source of steam. Steam can be generated according to its respective pressure level which covers, in terms of relative of importance, HP steam, medium pressure (MP) and low pressure (LP) steam. The higher the steam pressure, the higher its value will be, especially for electrical power generation.
The steam condensate recovered from the cogen plant is then recycled. Before reuse, the steam condensate (shown as returned condensate) is treated via a deaerator to remove any oxygen. As there are condensate losses in the system, some amount of make-up water, fed to the deaerator in this example, is used to ensure the water balance in the cogen system is intact.
Optimization models for cogen facilities have been studied and are deployed in many facilities worldwide. These models have become increasingly important as businesses focus on decarbonization efforts and commercial interest. This kind of model which has been used to understand the various interactions among the equipment in the cogen facilities and identify cost reduction opportunities in the cogen system, assess process modification benefits, and provide reliable energy cost accounting especially with the various steam levels.
However, the upstream cogen facilities, as shown in
The development of the operating model begins with the modeling of the individual equipment within the cogen system. The operating model is developed based on the actual performance of the equipment. Accordingly, historical data of the past few months was extracted from the equipment. The reason for using shorter time period, as opposed to data over a year or longer timeframe, is to realistically model the current performance of the operation in the immediate future. The operating model tends to be more reliable for predicting in the short term rather than the long term, as the model is regressed more reliably at the most recent performance. On the performance aspect, the trend was observed to identify appropriate correlations. The objective is to have a linear correlation for the relevant performance. The model is then revalidated against the actual performance. Having a linear model reduces the complexity of solving an optimization problem.
This model was validated against the actual performance, indicating an excellent fit. Accordingly, this model could then be used for each of the gas turbine generators in the cogen facility.
As for the steam turbine model, it was based on the standard thermodynamic correlation model involving enthalpy steam properties and relevant isentropic efficiency.
A sixth model was developed to account for number of gas turbines or boilers in operation. This was a logical model based on a binary variable (0 or 1) used to represent whether a gas turbine was in use or not. This is part of the overall optimization model framework. The model assigns Z1, Z2, Z3, Z4, Z5, Z6, and Z7 as binary variables to each of the 7 gas turbines in the cogen facility. Thus, the number of gas turbines in operation is represented by equation 6:
The number of gas turbines to be operated for the given total seawater injection requirement can be determined by dividing the total injection requirement value with the capacity of the gas turbine loading, for example, the water injection rate for the gas turbine.
The optimization model can then determine which machines to run from Z1 to Z7, to satisfy the requirement of number of gas turbines in operation. In some cases, a user can dictate the specific machines to run, for example, the need to run gas turbines linked to an HRSG to produce either HP steam or MP steam. For example, the gas turbines labeled Z1, Z2, Z3 and Z4 may produce MP steam, while the gas turbines labeled Z5, Z6, and Z7 may produce HP steam. Accordingly, if only 2 MP steam gas turbines were to be run, the model is expressed as shown in equation 7:
Similarly for the HP steam gas turbines, assuming only one machine is required, this model is expressed as shown in equation 8:
The sum of Equations 7 and 8 then gives a total number of gas turbines in operation, e.g., three in this case.
The above-mentioned concept can be applied equally well for the given number of boilers to run. In addition, this kind of logical modelling can be used to reflect the specific selection of the equipment to run to account for reliability issues or downtime of the other equipment.
The optimization framework is the engine behind the modeling work where all the models developed will then be subjected to the established optimization algorithm. Since the model is mixed with linear and non-linear components along with binary (0 and 1 variables), the optimization algorithm used is the Mixed Integer Non-Linear Programming (MINLP). For example, the non-linear model typically relates to the cogeneration efficiency calculation as shown in equation 9.
In equation 9, cogen efficiency is a non-linear equation having the form shown in equation 10.
Similarly, the binary variables are used to impose the existence of a unit or otherwise. As an illustration, two models shown in equations 11 and 12 show linear models with a binary variable, A1.
If A1 is 1, indicating that a unit exists, the boiler steam will show its corresponding figures based on the optimum boiler fuel variable. The second model above ensures that boiler steam is within a boundary or limit. However, if A1 is 0, indicating that no unit exists, the second model should have the boiler steam ZERO as the right-hand side of the second model is already ZERO. Thus, the Boiler Fuel will be ZERO as well.
The objective function is used to minimize operating cost, which includes the fuel gas cost and net power cost (difference between power import and export), while honoring the constraints, defined by performance models, logical modelling, material, and energy balance around the cogen system and the equipment capacity. The objective function serves as a basis for optimization criteria. An example of an objective function that may be used is the operation cost optimization form showed in equation 13.
There are various optimization packages can be used for this purpose, such as GAMS (General Algebraic Modelling System) or MATLAB. These are the mathematical programming software packages that are used to solve optimization problems. In this embodiment, the models were coded in GAMS package, either in Academic, Demo version or Commercial License, to define the objective function and constraint models (performance models, logical models, capacity, material, and energy balances) respectively. These models are then solved through the MINLP algorithm to determine the optimized variables. Depending on the size and the quality of the models, the solution can be generated within several seconds. In this case, the linear models are much quicker and easy to solve as opposed to the very non-linear models. Non-linear models are known to cause optimization convergence problem if appropriate or reasonable variable initialization is not given to the MINLP solver. Hence, it is always advantage to the user to develop linear models.
To demonstrate the strength of the model, a validation exercise was carried out to compare the actual performance of the cogen facility with the modeled performance. It was found that the average model error was well below 2%. Following this validation exercise, the operating model was deemed fit to work on optimization, where any operating scenarios and/or what-if scenarios can be analyzed.
An embodiment described herein provides a method for developing a model to optimize operations for a cogen facility. The method includes collecting data on the operation of the cogen facility and creating an objective function to minimize total operating cost of the cogen facility, wherein the objective function is based, at least in part, on a fuel cost and a net power cost. An output is provided from the objective function, wherein the output is used to control a mixture of gas turbines used in the cogen facility and steam generation rates.
In an aspect, combinable with any other aspect, the method includes collecting data on seawater injection rates.
In an aspect, combinable with any other aspect, the method includes collecting data on production rates.
In an aspect, combinable with any other aspect, the method includes collecting data on steam demand from the cogen facility.
In an aspect, combinable with any other aspect, the method includes collecting data on power demand from the cogen facility.
In an aspect, combinable with any other aspect, the method includes collecting data on the power cost for the cogen facility.
In an aspect, combinable with any other aspect, the method includes collecting data on the fuel gas cost for the cogen facility.
In an aspect, combinable with any other aspect, the method includes the objective function is based, at least in part, on a performance model for equipment in the cogen facility.
In an aspect, combinable with any other aspect, the objective function is based, at least in part, on a logical model of the cogen facility.
In an aspect, combinable with any other aspect, the objective function is based, at least in part, on a material and energy balance in the cogen facility.
In an aspect, combinable with any other aspect, the objective function is based, at least in part, on operating capacity of equipment in the cogen facility.
In an aspect, combinable with any other aspect, the output includes an operating cost for the cogen facility.
In an aspect, combinable with any other aspect, the output includes a target for power generation.
In an aspect, combinable with any other aspect, the output includes a fuel consumption rate.
In an aspect, combinable with any other aspect, the output includes a steam production rate.
In an aspect, combinable with any other aspect, the output includes CO2 emission from the cogen facility.
In an aspect, combinable with any other aspect, the output includes an energy intensity for the cogen facility.
Other implementations are also within the scope of the following claims.