git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2034 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bba6487639
commit
04b1e301a7
1 changed files with 9 additions and 9 deletions
|
|
@ -67,14 +67,14 @@ public:
|
||||||
* Incremental evaluation of the solution(function inline can be called from host or device)
|
* Incremental evaluation of the solution(function inline can be called from host or device)
|
||||||
* @param _bitVector the solution to evaluate
|
* @param _bitVector the solution to evaluate
|
||||||
* @param _fitness the fitness of the current solution
|
* @param _fitness the fitness of the current solution
|
||||||
* @param _id the index of solution neighbor
|
* @param _index the index of solution neighbor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
inline __host__ __device__ Fitness operator() (EOT & _bitVector,Fitness _fitness, unsigned _id) {
|
inline __host__ __device__ Fitness operator() (EOT & _bitVector,Fitness _fitness, unsigned int * _index) {
|
||||||
|
|
||||||
Fitness tmp;
|
Fitness tmp;
|
||||||
|
|
||||||
if (_bitVector[_id] == 0)
|
if (_bitVector[_index[0]] == 0)
|
||||||
|
|
||||||
tmp= _fitness+1;
|
tmp= _fitness+1;
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ public:
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue