% 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.
function f=alkylation_cost(x)
f=-0.063*x(4)*x(7)+5.04*x(1)+0.035*x(2)+10*x(3)+3.36*x(5);