%Federica Tinti (ftinti@math.unipd.it)
%Department of Mathematics of Ferrara (ITALY)
%
%map of the Harker's Nash-Cournot test problem
%
function [f]=Harnashc5(x)
%
%NASH-COURNOT test problem  (n=5) 
%
%References: 
%P.T.Harker, 'Accelerating the convergence of the diagonal 
%and projection algorithms for finite-dimensional variational
%inequalities', Matematical Programming, 41 (1988), pp. 29-59.
%
%M.C. Ferris, S.P. Dirkse, 'MCPLIB: A collection of Nonlinear 
%Mixed Complementarity Problems', 1994.
%
c=[10 8 6 4 2]';
b1=[1.2 1.10 1 0.9 0.8]';
L=5*ones(5,1);
gamma=1.1;
gamma1=1./gamma;
temp=sum(x);
aux=1./b1;
f=c+L.^(aux).*x.^(aux)-(5000/temp).^(gamma1)*(ones(size(x))-gamma1*x/temp);