Add a neighborhood which flips several bits in random order

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2204 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2011-03-30 15:17:50 +00:00
commit ade53b7ec3
2 changed files with 171 additions and 0 deletions

View file

@ -134,6 +134,16 @@ public:
}
}
/**
* Write object. Called printOn since it prints the object _on_ a stream.
* @param _os A std::ostream.
*/
virtual void printOn(std::ostream& _os) const {
_os << this->fitness() << " " << nBits ;
for(unsigned int i = 0; i < nBits; i++)
_os << " " << bits[i] ;
}
};
#endif