solidity/test/yulPhaser
Kamil Śliwak ecb30c670f [yul-phaser] Population: Make ordering of individuals with same fitness deterministic and prioritise shorter chromosomes
- Before this change the order of chromosomes with the same fitness in a population depended on the initial order set when the population was first created. Now it only depends on the individual.
- The length comparison is not strictly necessary (lexicographical order covers that) but it makes the intention clear and the comparison slightly faster when chromosomes have different lengths.
2020-02-18 19:40:37 +01:00
..
Chromosome.cpp [yul-phaser] Population+Chromosome: Better tests for makeRandom() 2020-02-18 19:40:37 +01:00
Common.cpp [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
Common.h [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
CommonTest.cpp [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
Population.cpp [yul-phaser] Population: Make ordering of individuals with same fitness deterministic and prioritise shorter chromosomes 2020-02-18 19:40:37 +01:00
Program.cpp [yul-phaser] Move stripWhitespace() from Program tests to Common 2020-02-18 19:38:55 +01:00
SimulationRNG.cpp [yul-phaser] SimulationRNG: Add bernoulliTrial() 2020-02-16 02:18:21 +01:00