%Federica Tinti (ftinti@math.unipd.it)
%Department of Mathematics of Ferrara (ITALY)
%
%map of Harker's Nash-Cournot test problem
%
function [f]=Harnashc10(x)
%
%NASH-COURNOT test problem    (n=10) 
%
%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.
%
L=10*ones(10,1);
b1=[1.2 1 0.9 0.6 1.5 1 0.7 1.1 0.95 0.75]';
c=[5 3 8 5 1 3 7 4 6 3]';
gamma=1.2;
gamma1=1./gamma;
temp=sum(x);
aux=1./b1;
f=c+L.^(aux).*x.^(aux)-(5000/temp).^(gamma1)*(ones(size(x))-gamma1*x/temp);