mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Population: Print individuals in a more compact way
This commit is contained in:
parent
10e8d3616c
commit
3f524ccfe5
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user