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/07 21:21] – csymonds | people:chris_symonds:model [2014/11/16 23:07] (current) – [Figure 1] csymonds | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Model Description===== | ||
- | Paralta is a simulation that runs in the Moveable Feast Machine, a robust-first, | + | Paralta is a simulation that runs in the Moveable Feast Machine, a robust-first, |
- | | + | |
- | | + | |
- | | + | |
+ | =====Model Description===== | ||
- | DREGs are set with the following parameters: | + | The Paralta simulation consists of two elements from the MFM: DREGs and RES, and introduces one new element: Sytizen, which represents a denizen of the simulation world. The DREG parameters |
- | * Spawn RES with probability 0.02 | + | |
- | * Delete nearby Elements with probability 0.01 | + | |
- | * Spawn other DREGs with probability 0.002 | + | |
- | * Delete other DREGs with probability 0.02 | + | |
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. | ||
+ | * Energy - a nine-bit value 0 =< e =< 511, and initialized to 20. | ||
+ | * 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: | ||
+ | * Parochialism - a Sytizen with Parochial value 0 =< p =< 7 is considered non-parochial, | ||
+ | * Altruism - a Sytizen with Altruism value 0 =< a =< 7 is considered non-altruistic, | ||
- | * Team - an integer value representing the in-group of the Sytizen. | + | The Genotype |
- | * Energy - an integer value initialized to 20. | + | |
- | | + | |
- | * Parochialism - a value <=7 indicates a non-parochial individual, while a value >7 implies a parochial citizen. | + | |
- | * Altruism - a value <=7 indicates a non-altruistic individual, while a value >7 implies an altruistic citizen. | + | |
- | The genotype parameters gives rise to four discrete | + | Parochial Altruist (PA) will take on the genetic |
- | Parochial | + | Parochial |
- | Parochial | + | Non-Parochial |
- | Non-Parochial Altruists (NPA): These Sytizens, upon encountering an in-group member with low energy, will share an amount of their resources equal to half the difference in energy, less a sharing threshold of 20. Movement is biased towards in-group members. | + | Non-Parochial |
- | Non-Parochial Non-Altruists | + | ===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 | ||
- | All Sytizens, in addition to their genetic movement bias (if any) are also movement-biased towards any RES visible | + | 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 |
+ | |||
+ | ===Simulation Events=== | ||
+ | At the beginning of an event, a Sytizen will first pay a metabolism cost of 1 energy. If this depletes the energy | ||
+ | |||
+ | 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. | ||
+ | |||
+ | ===Methodology=== | ||
+ | The energy threshold by which a Sytizen will engage in genetic behavior was adjusted over several runs. Initially, this threshold is set to 0, and genetic behavior will be engaged in every turn, if all other conditions are met. Then, we conduct runs at thresholds of 100, 250, 400, and 512 (effectively turning off the genetic behavior). We make 4 simulation runs per threshold. | ||
+ | |||
+ | [[people: | ||
+ | |||
+ | =====Figure 1===== | ||
+ | {{: |
people/chris_symonds/model.1415395270.txt.gz · Last modified: 2014/11/07 21:21 by csymonds