solidity/tools/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] Chromosome: Add a constructor that reads steps from an abbreviation string 2020-02-18 19:38:55 +01:00
Chromosome.h [yul-phaser] Chromosome: Add a constructor that reads steps from an abbreviation string 2020-02-18 19:38:55 +01:00
Exceptions.h [yul-phaser] Add Program class 2020-02-05 18:13:30 +01:00
main.cpp [yul-phaser] Population: Customizable chromosome length in makeRandom() 2020-02-18 19:40:37 +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
Population.h [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] Make Program copyable by doing a deep copy of the AST in the copy constructor 2020-02-06 09:01:10 +01:00
Program.h [yul-phaser] Make Program copyable by doing a deep copy of the AST in the copy constructor 2020-02-06 09:01:10 +01:00
SimulationRNG.cpp [yul-phaser] SimulationRNG: Add bernoulliTrial() 2020-02-16 02:18:21 +01:00
SimulationRNG.h [yul-phaser] SimulationRNG: Add bernoulliTrial() 2020-02-16 02:18:21 +01:00