An Eight Strategy Discrete Space Iterated Prisoners' Dilemma with Mutation |
This model incorporates all of the eight possible strategies of the well-known prisoners' dilemma with possible reciprocity based on memory of a single round. There is an initial strategy (C or D), a strategy that is employed following cooperation of a particular agent in the previous round (C or D), and a strategy that is employed following defection of a particular agent in the previous round (C or D). Thus, there are eight strategies: CDC, DDD, CDD, DCD, CCD, CCC, DCC, and DDC. The replication dynamic is by imitation. After each agent plays a round with each of eight neighbors (a Moore neighborhood) on an unbordered toroidal lattice, each agent sequentially adopts the strategy of the neighbor who has accumulated the highest adaptive score - a summation of payoffs from the matrix that can be specified in the simulation. Should there be a tie in these scores, one is chosen at random. If the focal agent's adaptive score is part of a tie, it keeps its own strategy if the status quo switch is on, and chooses one at random from all tied strategies, including its own, if the status quo switch is off. Imitation occurs with error at a rate specified by the mutation rate. Pressing "Setup" initializes the taurus with random strategies. Pressing "Go" runs the simulation (Press "go" again to halt). Begin by trying the simulation with a mutation rate of zero. Then try the simulation with a variety of different mutation rates. What effect does the mutation rate have on the evolution of cooperation? Does it matter whether or not the status quo is maintained in ties? |
This applet was created using NetLogo 3.1.4. It requires Java 1.4.1 or higher. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4. (Safari works, IE does not. Mac OS X comes with Safari. Open Safari and set it as your default web browser under Safari/Preferences/General.) On other operating systems, you may obtain the latest Java plugin from Sun's Java site. |
© Copyright 2007, Gregory Todd Jones, All Rights Reserved. |