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:
parent
b4f0125416
commit
92e2843c4e
3 changed files with 432 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue