
F = load('Lambda4.txt');

n = 4;

p = 5;

nf = ones(1,n);

nv = [3 2 4 3]; 

varF = [ 1   1   1   1  
         2   2   2   2   
         3  -1   3   4
        -1  -1   4  -1 ];

%Google parameter
pp=.9;

%Parameters
v=(1);
generations = 40;
pop_size = 30;
prob = .6;
sigma = .03;
mut = .5;
eps = .00001;

indices_list = (251);


% uses estimated google
prop=geneticEstGoogle(v,indices_list, p, nv, F, varF, pp, generations,pop_size,sigma,mut,eps, 100);
disp(prop)
steady_vector=googleRank(F,varF,nv,prop,p,pp);
steady_vector(251)
% Results on April 22, 2016 
% prop =[1.0000         0    0.4277    0.7968
%        0.3962    1.0000    0.6063    0.6946];
% Score: 0.6040 (exact)