Add a flag in MOEO.h
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1374 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
c91e3243bf
commit
ca452b8c0b
1 changed files with 20 additions and 1 deletions
|
|
@ -115,6 +115,7 @@ class MOEO : public EO < MOEOObjectiveVector >
|
||||||
diversityValue = Diversity();
|
diversityValue = Diversity();
|
||||||
// invalidate all
|
// invalidate all
|
||||||
invalidate();
|
invalidate();
|
||||||
|
flag=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -332,6 +333,22 @@ class MOEO : public EO < MOEOObjectiveVector >
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for "flag"
|
||||||
|
* @param _flag the flag value
|
||||||
|
*/
|
||||||
|
void setFlag(int _flag){
|
||||||
|
flag=_flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for "flag"
|
||||||
|
* @return the flag value
|
||||||
|
*/
|
||||||
|
int getFlag(){
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
@ -347,6 +364,8 @@ class MOEO : public EO < MOEOObjectiveVector >
|
||||||
Diversity diversityValue;
|
Diversity diversityValue;
|
||||||
/** true if the diversity value is invalid */
|
/** true if the diversity value is invalid */
|
||||||
bool invalidDiversityValue;
|
bool invalidDiversityValue;
|
||||||
|
/** A flag which can be used to stock information*/
|
||||||
|
int flag;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue