Ajout du neutral degree, et correction Royal Road
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1790 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
5afed6591e
commit
1f66526f43
12 changed files with 409 additions and 18 deletions
|
|
@ -43,7 +43,7 @@ public:
|
|||
* Default constructor
|
||||
* @param _k size of a block
|
||||
*/
|
||||
RoyalRoad(unsigned int _k) : k(_k) {}
|
||||
RoyalRoadEval(unsigned int _k) : k(_k) {}
|
||||
|
||||
/**
|
||||
* Count the number of complete blocks in the bit string
|
||||
|
|
@ -70,6 +70,14 @@ public:
|
|||
_solution.fitness(sum);
|
||||
}
|
||||
|
||||
/**
|
||||
* get the size of a block
|
||||
* @return block size
|
||||
*/
|
||||
unsigned int blockSize() {
|
||||
return k;
|
||||
}
|
||||
|
||||
private:
|
||||
// size of a block
|
||||
unsigned int k;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue