% Title Solution of an Alkylation Process via Constrained Nonlinear Programming
% Reference: Edgar, Himmelblau and Lasdon in Optimization of
% Chemical Processes, McGraw-Hill International Edition, 2001
% Author of the matlab file: Housam Binous, PhD, Tunis, Tunisia
% Email: binoushousam@yahoo.com
% The same problem was solved using Mathematica and GAMS.
% GAMS ans Mathematica files are available from the author upon request.
x0=ones(1,10);
A=zeros(1,10);
b=0;
Aeq=zeros(1,10);
beq=0;
LB=[1e-6 1e-6 1e-6 1e-6 1e-6 85 90 3 1e-2 145];
UB=[2e+3 16e+3 120 5e+3 2e+3 93 95 12 4 162];
[x feval]= fmincon(@alkylation_cost,x0,A,b,Aeq,beq,LB,UB,@alkylation_constraints)