[yul-phaser] Population: Print individuals in a more compact way

This commit is contained in:
Kamil Śliwak 2020-03-09 19:24:37 +01:00
parent 10e8d3616c
commit 3f524ccfe5
2 changed files with 2 additions and 4 deletions

View File

@ -76,8 +76,7 @@ protected:
string individualPattern(Individual const& individual) const
{
ostringstream output;
output << "Fitness:" << individual.fitness << ",";
output << "optimisations:" << individual.chromosome;
output << individual.fitness << individual.chromosome;
return output.str();
}

View File

@ -43,8 +43,7 @@ ostream& operator<<(ostream& _stream, Population const& _population);
ostream& phaser::operator<<(ostream& _stream, Individual const& _individual)
{
_stream << "Fitness: " << _individual.fitness;
_stream << ", optimisations: " << _individual.chromosome;
_stream << _individual.fitness << " " << _individual.chromosome;
return _stream;
}