Optimization of an Alkylation Process#
This process corresponds to the simplified mathematical model of the Alkylation process production. This problem was initially studied and published in the 60s and after embedded in the famous Hock and Schittkowski collection of tests for nonlinear programs, labeled as problem number 114. The schematic below depicts the Alkylation process. The description of the process depicted below is based on the original source, available in:
J. Bracken and G. P. McCormick, “Selected applications of nonlinear programming”
Schematic of the Alkylation Process
In this simplified process, the reactor receives olefin feed, isobutane makeup and fresh acid, as well as a recycle of isobutane from the fractionator. The hydrocarbon produced in the reactor is sent to the fractionator, generating the alkylate product. As stated before, the fractionator recycles isobutane back to the reactor. The final product is the desired alkylate and spent acid is a by-product undesired that leaves the reactor. The main assumptions of this simplified process are:
Isobutane makeup and recycle are 100% pure.
The olefin feed is composed of 100% of butylene.
Fresh acid strength is 98%.
The relationships among process variables is derived from mass/energy balances and correlations among these same variables are a result of linear/nonlinear regression. More precisely, the equality constraints are a result of conservation of mass and the inequalities are a result of nonlinear regression among the problem variables. The table below defines the optimization variables of this constrained optimization problem. The units for mass flow rates are \([barrels/day]\), the acid addition rate is measured in \([thousands \, of \, pounds/day]\). In addition \(x_7-x_{10}\) are dimensionless quantities.
Description of all process variables for the evaporation process.
The process equations are derived from the literature and the rationale for each expression for equalities and inequalities constraints are described as follows:
From a nonlinear regression holding the reactor temperatures between 80-90°F and the acid strength from 85 to 93, a relationship between the alkylate yield, olefin feed and isobutane-to-olefin ratio is developed:
Carrying out a volumetric reactor balance, the isobutane makeup can be expressed as being equal to the olefine feed plus the isobutane makeup and deducting shrinkage effect. The latter is represented as 0.22 (vol/vol) of alkylate yield:
For the acid strength, it is correlated as a function of acid addition rate, acid dilution factor and alkylate yield:
For the MON, its relationship to the acid strength and external isobutane-to-olefin ration is developed via nonlinear regression as follows:
The external isobutane-to-olefin ration is simply the sum of the isobutane makeup and the isobutane recycled, divided by the feed:
The acid dilution factor is expressed as a linear function of the F-4 performance number as follows:
Lastly, the F-4 performance number is expressed as a function of the MON via linear regression:
Since regression analysis was used to formulate relationships for \(x_4,x_7,x_9,x_{10}\), for these variables inequalities constraints are posed in order to specify a range in which the actual (true) value can be inferred from the regressed (estimated) value. Following the literature, such inequalities are written as:
In which \(a=0.99\) and \(b=0.9\) are parameters used to determine the amplitude of acceptance in which each nonlinear regression represents the true value of the estimation.
For the objective function, it is formulated as an economic optimization (Profit) problem:
In which,
\(c_1=\) alkylate product value (dollars per octane-barrel)
\(c_2=\) olefin feed cost (dollars per barrel)
\(c_3=\) isobutane recycle costs (dollars per barrel),
\(c_4=\) acid addition cost (dollars per thousand pounds)
\(c_5=\) isobutane makeup cost (dollars per barrel).
Lastly, lower and upper bounds are imposed to the decision variables (formalized below) by the physical capabilities of the Alkylation plant and on the economics.
Find the optimal operating point of this process flowsheet using constrained optimization techniques covered in Lecture 3. You should:
Formalize (write-down) the optimization problem, making the necessary assumptions/simplifications
Use
scipy.optimize.minimizeappropriately for the constrained optimization problemCompare your results against the optimum found in the reported literature.
Discuss your code implementation and results during the presentation.