add method index(sol, index) to moIndexNeighbor

This commit is contained in:
verel 2012-10-24 23:07:05 +02:00
commit 72ffb89999
6 changed files with 70 additions and 34 deletions

View file

@ -75,7 +75,7 @@ public:
* @param _neighbor the first neighbor
*/
virtual void init(EOT & _solution, Neighbor & _neighbor) {
_neighbor.index(rng.random(neighborhoodSize));
_neighbor.index(_solution, rng.random(neighborhoodSize));
}
/**
@ -84,7 +84,7 @@ public:
* @param _neighbor the next neighbor
*/
virtual void next(EOT & _solution, Neighbor & _neighbor) {
_neighbor.index(rng.random(neighborhoodSize));
_neighbor.index(_solution, rng.random(neighborhoodSize));
}
/**