Wesley R. Elsberry
Posts: 4991 Joined: May 2002
|
For my script, these are the relevant rules/behaviors:
* Each "die" in the initial population starts with all faces at '1'.
* If all the rolls are the same, 10% of the population is killed off and children replace those. (This is because the initial population is guaranteed to do this, which would not be the case if the initial condition were [1,2,3,4,5,6].)
* Per generation, several things happen. The average fitness per locus across the population is calculated. One roll per die is made. If the roll equals or exceeds the average fitness, the "die" survives. The remaining slots in the population are taken by children of survivors, where those generating children are randomly taken from the survivors group.
-------------- "You can't teach an old dogma new tricks." - Dorothy Parker
|