Add the nkq and nkp landscapes evaluations

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1922 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2010-08-27 09:30:32 +00:00
commit 92e2843c4e
3 changed files with 432 additions and 2 deletions

View file

@ -364,6 +364,14 @@ protected:
}
}
/**
* To generate a contribution in the table f_i
*
*/
virtual double contribution() {
return rng.uniform();
}
/**
* To generate instance with random (without replacement) links
*
@ -380,7 +388,7 @@ protected:
// table of contribution with random numbers from [0,1)
for(int j = 0; j < (1<<(K+1)); j++)
tables[i][j] = rng.uniform();
tables[i][j] = contribution();
}
}
@ -397,7 +405,7 @@ protected:
// table of contribution with random numbers from [0,1)
for(int j = 0; j < (1<<(K+1)); j++)
tables[i][j] = rng.uniform();
tables[i][j] = contribution();
}
}