From 720e1c4bec0eebb1e262699c1f917e1bce6df63b Mon Sep 17 00:00:00 2001 From: boufaras Date: Tue, 21 Dec 2010 14:42:53 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2029 331e1502-861f-0410-8da2-ba01fb791d7f --- ParadisEO-GPU/src/eval/moCudaEval.h | 40 +++++++++++++++++------------ 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/ParadisEO-GPU/src/eval/moCudaEval.h b/ParadisEO-GPU/src/eval/moCudaEval.h index d2161a6ef..98c92a7a4 100644 --- a/ParadisEO-GPU/src/eval/moCudaEval.h +++ b/ParadisEO-GPU/src/eval/moCudaEval.h @@ -53,8 +53,7 @@ public: /** * Constructor - * @param - * _neighborhoodSize the size of the neighborhood + * @param _neighborhoodSize the size of the neighborhood */ moCudaEval(unsigned int _neighborhoodSize) { @@ -87,27 +86,34 @@ public: void operator()(EOT & _sol, Neighbor & _neighbor) { _neighbor.fitness(host_FitnessArray[_neighbor.index()]); - /*std::cout << _sol.fitness() << " -host_FitnessArray[" - << _neighbor.index() << "]= " - << host_FitnessArray[_neighbor.index()] << std::endl;*/ + + } + + /** + * Compute fitness for all Kswap solution neighbors in device + * @param _sol the solution which generate the neighborhood + * @param _mapping the neighborhood mapping + * @param _Kswap the number of swap + */ + virtual void neighborhoodKswapEval(EOT & _sol, unsigned * _mapping, + unsigned _Kswap) { + + } + + /** + * Compute fitness for all Kflip solution neighbors in device + * @param _sol the solution which generate the neighborhood + * @param _mapping the neighborhood mapping + * @param _Kflip the number of bit to flip + */ + virtual void neighborhoodKflipEval(EOT & _sol, unsigned * _mapping, + unsigned _Kflip) { } /** * Compute fitness for all solution neighbors in device * @param _sol the solution which generate the neighborhood - * @param _mapping the neighborhood mapping - * @param _Kswap the number of swap - */ - virtual void neighborhoodEval(EOT & _sol, unsigned * _mapping, - unsigned _Kswap) { - - } - - /** - * Compute fitness for all solution neighbors in device - * @param - * _sol the solution which generate the neighborhood */ virtual void neighborhoodEval(EOT & _sol)=0;