From 500f66efbfffb3b9fe6fc75c25cde3695a48f945 Mon Sep 17 00:00:00 2001 From: okoenig Date: Mon, 14 Jun 2004 17:05:07 +0000 Subject: [PATCH] Added a failed boolean to indicate if fitness evaluation succeeded ( useful if programs are involved, where fitness evaluation can fail for some indis) Avg Stats are now only evaluated of individuals if this bool is false! --- eo/src/eoScalarFitnessAssembled.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/eo/src/eoScalarFitnessAssembled.h b/eo/src/eoScalarFitnessAssembled.h index a266d595..59324b38 100644 --- a/eo/src/eoScalarFitnessAssembled.h +++ b/eo/src/eoScalarFitnessAssembled.h @@ -228,7 +228,11 @@ std::ostream& operator<<(std::ostream& os, const eoScalarFitnessAssembled @@ -239,7 +243,10 @@ std::istream& operator>>(std::istream& is, eoScalarFitnessAssembled> value; f[i] = value; } - + + is >> f.feasible; + is >> f.failed; + return is; }