%script (inputHpHard.m) (n=20)
%Federica Tinti (ftinti@math.unipd.it)
%Department of Mathematics of Ferrara (ITALY)
%
%parameters of the test problem HpHard (n=20)
%the related M-function file is HpHard.m 
%
%dimension
n=20;
%
%to build affine function F=M5*x+q5 
global M5 q5
%
rand('state',0);
A5=rand(20)*10-5;
B5=rand(20)*10-5;
B5=tril(B5,-1)-((tril(B5,-1))')+diag(zeros(20,1));
%
M5=A5*A5'+B5+diag(rand(20,1)*0.3);
q5=500*rand(20,1)-500;
%
%starting point
x=ones(n,1);
%
%constraint (VIP)
A=zeros(1,n);           %constraint (A*x<=b)
b=0;                   
Aeq=ones(1,n);          %equality constraint (Aeq*x=beq)
beq=n;                
lb=zeros(n,1);          %lower bound
ub=[];                  %upper bound            
%
%funciton F
fs='HpHard';