cleanup
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1720 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ea81cb7f3d
commit
4d5b8db81e
23 changed files with 44 additions and 62 deletions
|
|
@ -37,7 +37,6 @@ class moeoIndexedArchive : public moeoArchive < MOEOT >
|
|||
* @param _moeo the given individual
|
||||
*/
|
||||
bool operator()(const MOEOT & _moeo){
|
||||
bool added=false;
|
||||
std::pair<bool,std::vector<typename moeoArchiveIndex<MOEOT>::modif> > res=index(_moeo);
|
||||
if (!(res.first)){
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ public:
|
|||
unsigned int k_succ(const ObjectiveVector& _objVec1, const ObjectiveVector& _objVec2){
|
||||
unsigned int res=0;
|
||||
if(!(*comparator)(_objVec2, _objVec1)){
|
||||
for(int i=0; i < ObjectiveVector::nObjectives(); i++){
|
||||
for(unsigned int i=0; i < ObjectiveVector::nObjectives(); i++){
|
||||
if( (ObjectiveVector::minimizing(i) && ((_objVec1[i] - _objVec2[i]) >= (-1.0 * 1e-6 ))) ||
|
||||
(ObjectiveVector::maximizing(i) && ((_objVec1[i] - _objVec2[i]) <= 1e-6 ))){
|
||||
res+=pow(2,ObjectiveVector::nObjectives()-i-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue