function [fval, exitflag, output, x] = runfleq1
% RUNFLEQ1 demonstrates 'HessMult' option for FMINCON with linear
% equalities.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.1 $  $Date: 2000/06/16 21:45:42 $

load fleq1          % Get V, Aeq, beq
n = 1000;           % problem dimension
mtxmpy = @hmfleq1;   % Function handle to function hmfleq1
xstart = -ones(n,1); xstart(2:2:n,1) = ones(length(2:2:n),1); % starting point
options = optimset('GradObj','on','Hessian','on','HessMult',mtxmpy,...,
'Display','iter'); 
[x,fval,exitflag,output] = fmincon(@brownvv,xstart,[],[],Aeq,beq,[],[], ...
                                    [],options,V);
