git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1575 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
224e52b4c7
commit
0409c65edf
1 changed files with 8 additions and 2 deletions
|
|
@ -13,13 +13,18 @@ class eoAmeliorationContinue: public eoContinue<EOT>
|
|||
{
|
||||
public:
|
||||
|
||||
eoAmeliorationContinue(moeoDMLSArchive<EOT> & _arch, unsigned int _neighborhoodSize) : arch(_arch),maxGen(_neighborhoodSize), neighborhoodSize(_neighborhoodSize), counter(0){}
|
||||
eoAmeliorationContinue(moeoDMLSArchive<EOT> & _arch, unsigned int _neighborhoodSize, bool _multiply) : arch(_arch),maxGen(_neighborhoodSize), neighborhoodSize(_neighborhoodSize), counter(0), multiply(_multiply){}
|
||||
|
||||
// _pop must be an archive
|
||||
virtual bool operator() (const eoPop<EOT> & _pop)
|
||||
{
|
||||
bool res;
|
||||
maxGen=arch.size() * neighborhoodSize;
|
||||
if(multiply){
|
||||
maxGen=arch.size() * neighborhoodSize;
|
||||
}
|
||||
else{
|
||||
maxGen = neighborhoodSize;
|
||||
}
|
||||
if(arch.modified())
|
||||
counter=0;
|
||||
else
|
||||
|
|
@ -41,6 +46,7 @@ private:
|
|||
unsigned int maxGen;
|
||||
unsigned int neighborhoodSize;
|
||||
unsigned int counter;
|
||||
bool multiply;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue