From f8603acf3c561b10a933a45b802cd2edab3f0771 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 17 Jun 2013 13:59:09 +0200 Subject: [PATCH] bugfix: consider a dual fitness to be correctly initialized from a pair --- eo/src/eoDualFitness.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eo/src/eoDualFitness.h b/eo/src/eoDualFitness.h index c7c6b4d71..a6d6aa54e 100644 --- a/eo/src/eoDualFitness.h +++ b/eo/src/eoDualFitness.h @@ -174,6 +174,7 @@ public: { this->_value = v.first; this->is_feasible( v.second ); + this->_feasible_init = true; return *this; } @@ -184,6 +185,7 @@ public: if (this != &other) { this->_value = other._value; this->is_feasible( other.is_feasible() ); + this->_feasible_init = other._feasible_init; } return *this; }