people:chris_symonds:model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
people:chris_symonds:model [2014/11/16 15:29] – [Model Description] csymonds | people:chris_symonds:model [2014/11/16 23:07] (current) – [Figure 1] csymonds | ||
---|---|---|---|
Line 8: | Line 8: | ||
Each Sytizen is represented by the following parameters: | Each Sytizen is represented by the following parameters: | ||
* Team - a three-bit value representing the in-group of the Sytizen. | * Team - a three-bit value representing the in-group of the Sytizen. | ||
- | * Energy - a nine-bit value 0 =< e <= 511, and initialized to 20. | + | * Energy - a nine-bit value 0 =< e =< 511, and initialized to 20. |
* res grant 10 energy when consumed by the Sytizen. | * res grant 10 energy when consumed by the Sytizen. | ||
* Genotype - the genetic makeup of the Sytizen that determines its overall behavior in the world. This is represented by two, four-bit values: | * Genotype - the genetic makeup of the Sytizen that determines its overall behavior in the world. This is represented by two, four-bit values: | ||
Line 25: | Line 25: | ||
===Genetic Behavior=== | ===Genetic Behavior=== | ||
- | A Sytizen that falls into the Altruist category will engage in their genetic behavior once per simulation event, if the energy of the Sytizen is greater than the threshold set before the simulation begins. If so, the Sytizen will choose an in-group member at random within two Manhattan distance from herself. If the energy of that member is less than the energy of the active Sytizen (less the threshold amount) | + | A Sytizen that falls into the Altruist category will engage in their genetic behavior once per simulation event, if the energy of the Sytizen is greater than the threshold set before the simulation begins. If so, the Sytizen will choose an in-group member at random within two Manhattan distance from herself. If the energy of that member is less than the energy of the active Sytizen (less the threshold amount) then the active Sytizen will share half the difference in the two energy amounts to a maximum of 10 energy. The chosen member gains energy in that amount and the active Sytizen will lose energy in the same amount. |
Any Sytizen that is considered Parochial will engage in Parochial behavior once per simulation event, if the energy of the Sytizen is greater than the threshold set before the simulation begins. This behavior will happen in addition to the Altruistic behavior, if the Sytizen is considered to be both. The Sytizen will choose one out-group member within Manhattan distance two uniformly at random. The victim will be killed with probability 0.5. If the victim is not killed, the attacker herself has a 0.5 probability of dying in the attempt. | Any Sytizen that is considered Parochial will engage in Parochial behavior once per simulation event, if the energy of the Sytizen is greater than the threshold set before the simulation begins. This behavior will happen in addition to the Altruistic behavior, if the Sytizen is considered to be both. The Sytizen will choose one out-group member within Manhattan distance two uniformly at random. The victim will be killed with probability 0.5. If the victim is not killed, the attacker herself has a 0.5 probability of dying in the attempt. | ||
Line 32: | Line 32: | ||
At the beginning of an event, a Sytizen will first pay a metabolism cost of 1 energy. If this depletes the energy to 0, the Sytizen is removed and the event ended. The neighborhood of the Sytizen is then scanned, and the location and type of any Element or empty space is recorded within a Manhattan distance of four. The Sytizen will then consume one neighboring RES within two Manhattan distance from them. A consumed RES bestows 10 energy on the Sytizen. Then, any genetic-specific behavior is performed as described above. | At the beginning of an event, a Sytizen will first pay a metabolism cost of 1 energy. If this depletes the energy to 0, the Sytizen is removed and the event ended. The neighborhood of the Sytizen is then scanned, and the location and type of any Element or empty space is recorded within a Manhattan distance of four. The Sytizen will then consume one neighboring RES within two Manhattan distance from them. A consumed RES bestows 10 energy on the Sytizen. Then, any genetic-specific behavior is performed as described above. | ||
- | If the Sytizen is still alive and their total energy is greater than 30, they will attempt to procreate. Any in-group members within a Manhattan distance of four are sorted by energy. If the highest energy amount is greater than 40 RES, that Sytizen is selected to breed. If an empty location is available, an offspring will appear with a starting energy of 20, and the energy of each parent reduced by 10. The offspring will inherit one of the parent' | + | If the Sytizen is still alive and their total energy is greater than 30, they will attempt to procreate. Any in-group members within a Manhattan distance of four are sorted by energy. If the highest energy amount is greater than 40 RES, that Sytizen is selected to breed. If an empty location is available, an offspring will appear with a starting energy of 20, and the energy of each parent reduced by 10. The offspring will inherit one of the parent' |
Finally, the Sytizen engages in movement. All Sytizens are movement-biased towards any RES visible to them in a given event. The normalized locations of any RES within manhattan distance four are summed, and a vector is determined from the average of those locations. They take a single step, and the event is concluded. | Finally, the Sytizen engages in movement. All Sytizens are movement-biased towards any RES visible to them in a given event. The normalized locations of any RES within manhattan distance four are summed, and a vector is determined from the average of those locations. They take a single step, and the event is concluded. | ||
- | We vary the energy threshold | + | ===Methodology=== |
+ | The energy threshold | ||
[[people: | [[people: | ||
=====Figure 1===== | =====Figure 1===== | ||
- | {{: | + | {{: |
people/chris_symonds/model.1416151780.txt.gz · Last modified: 2014/11/16 15:29 by csymonds