private void addRandomNeighbors ( ) { for ( int i = 0 ; i < solutionListSize ; i ++ ) { while ( neighbours . get ( i ) . size ( ) <= numberOfRandomNeighbours ) { int random = randomGenerator . getRandomValue ( 0 , solutionListSize - 1 ) ; neighbours . get ( i ) . add ( random ) ; } } }
Add random neighbors to all the neighborhoods