Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Commit 99111d81 authored by Frédéric Krüger's avatar Frédéric Krüger
Browse files

Modification des tpl pour la sauvegarde de la fitness au moment du dump

d'un individua
parent 8669bc54
......@@ -187,6 +187,7 @@ float IndividualImpl::evaluate(){
string IndividualImpl::serialize(){
ostringstream AESAE_Line(ios_base::app);
\GENOME_SERIAL
AESAE_Line << this->fitness;
return AESAE_Line.str();
}
......@@ -194,6 +195,8 @@ void IndividualImpl::deserialize(string Line){
istringstream AESAE_Line(Line);
string line;
\GENOME_DESERIAL
AESAE_Line >> this->fitness;
this->valid=true;
}
IndividualImpl::IndividualImpl(const IndividualImpl& genome){
......
......@@ -292,6 +292,7 @@ float IndividualImpl::evaluate(){
string IndividualImpl::serialize(){
ostringstream AESAE_Line(ios_base::app);
\GENOME_SERIAL
AESAE_Line << this->fitness;
return AESAE_Line.str();
}
......@@ -299,9 +300,10 @@ void IndividualImpl::deserialize(string Line){
istringstream AESAE_Line(Line);
string line;
\GENOME_DESERIAL
AESAE_Line >> this->fitness;
this->valid=true;
}
IndividualImpl::IndividualImpl(const IndividualImpl& genome){
// ********************
......
......@@ -198,6 +198,7 @@ float IndividualImpl::evaluate(){
string IndividualImpl::serialize(){
ostringstream AESAE_Line(ios_base::app);
\GENOME_SERIAL
AESAE_Line << this->fitness;
return AESAE_Line.str();
}
......@@ -205,6 +206,8 @@ void IndividualImpl::deserialize(string Line){
istringstream AESAE_Line(Line);
string line;
\GENOME_DESERIAL
AESAE_Line >> this->fitness;
this->valid=true;
}
void IndividualImpl::optimise(int currentIteration){
......
......@@ -153,6 +153,7 @@ float IndividualImpl::evaluate(){
string IndividualImpl::serialize(){
ostringstream AESAE_Line(ios_base::app);
\GENOME_SERIAL
AESAE_Line << this->fitness;
return AESAE_Line.str();
}
......@@ -160,6 +161,8 @@ void IndividualImpl::deserialize(string Line){
istringstream AESAE_Line(Line);
string line;
\GENOME_DESERIAL
AESAE_Line >> this->fitness;
this->valid=true;
}
IndividualImpl::IndividualImpl(const IndividualImpl& genome){
......
......@@ -149,14 +149,16 @@ float IndividualImpl::evaluate(){
string IndividualImpl::serialize(){
ostringstream AESAE_Line(ios_base::app);
\GENOME_SERIAL
AESAE_Line << this->fitness;
return AESAE_Line.str();
}
void IndividualImpl::deserialize(string Line){
istringstream AESAE_Line(Line);
string line;
\GENOME_DESERIAL
AESAE_Line >> this->fitness;
this->valid=true;
}
IndividualImpl::IndividualImpl(const IndividualImpl& genome){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment