git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2127 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
070fa160d8
commit
a4bd87b0fd
1 changed files with 84 additions and 81 deletions
|
|
@ -63,7 +63,8 @@ public:
|
|||
~QAPIncrEval() {
|
||||
}
|
||||
|
||||
/*functor of incremental evaluation of the solution(function inline can be called from host or device)
|
||||
/**
|
||||
* functor of incremental evaluation of the solution(function inline can be called from host or device)
|
||||
* @param _sol the solution to evaluate
|
||||
* @param _fitness the fitness of the current solution
|
||||
* @param _index the set of information to compute fitness neighbor
|
||||
|
|
@ -73,7 +74,8 @@ inline __host__ __device__ Fitness operator() (EOT & _sol,Fitness _fitness, unsi
|
|||
|
||||
Fitness tmp;
|
||||
|
||||
/* dev_a & dev_b are global device variable, data specific to QAP problem (flow & distance matices)
|
||||
/**
|
||||
* dev_a & dev_b are global device variable, data specific to QAP problem (flow & distance matices)
|
||||
* _index[0] the first position of swap
|
||||
* _index[1] the second position of swap
|
||||
* _index[2] the solution size
|
||||
|
|
@ -85,7 +87,8 @@ inline __host__ __device__ Fitness operator() (EOT & _sol,Fitness _fitness, unsi
|
|||
|
||||
}
|
||||
|
||||
/* compute the new fitness of the solution after permutation of pair(i,j)(function inline called from host device)
|
||||
/**
|
||||
* compute the new fitness of the solution after permutation of pair(i,j)(function inline called from host device)
|
||||
* @param _a the flow matrix of size*size (specific data of QAP problem must be declared as global device variable)
|
||||
* @param _b the distance matrix of size*size (specific data of QAP problem must be declared as global device variable)
|
||||
* @param _sol the solution to evaluate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue