Any EO with an invalid fitness should be printable !
This commit is contained in:
parent
32f1c98630
commit
5b9af91d2a
1 changed files with 9 additions and 3 deletions
12
eo/src/EO.h
12
eo/src/EO.h
|
|
@ -115,9 +115,15 @@ public:
|
|||
* @param _os A ostream.
|
||||
*/
|
||||
virtual void printOn(ostream& _os) const {
|
||||
if (invalid())
|
||||
_os << "INVALID ";
|
||||
else
|
||||
|
||||
//if (invalid())
|
||||
// _os << "INVALID ";
|
||||
//else
|
||||
|
||||
// From now on, no special case for invalid fitnesses :-)
|
||||
// A random value would so be printed.
|
||||
// Even a non-evaluated EO is also serializable ...
|
||||
|
||||
_os << repFitness << ' '; // trailing space to make reading in that much easier
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue