Template:EvoLudoLab:2x2: Difference between revisions

From EvoLudo
No edit summary
 
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
Along the bottom of the applet there are several buttons to control the execution and the speed of the simulations - for details see the [[Virtuallabs:Graphical User Interface|''VirtualLabs'' GUI documentation]]. Of particular importance are the [[Virtuallabs:Parameters|parameters]] button and the [[Virtuallabs:Dataviews|data views]] pop-up list along the top. The former opens a panel that allows to set and change various parameters concerning the game as well as the population structure, while the latter displays the simulation data in different ways.
{{Legend:StrategiesCD}}
{{Legend:StrategiesCD}}
{{Legend:Gradient|label=Payoff code|min=Low|max=High}}
{{Legend:Gradient|label=Payoffs|min=Low|max=High}}
''Note:'' The shades of grey of the payoff scale are augmented by blueish and reddish shades indicating payoffs for mutual cooperation and defection, respectively.
''Note:'' The gradient of the payoff scale is augmented by pale shades of the strategy colours to mark payoffs that are achieved in homogeneous populations of the corresponding type.


<div id="virtuallab">
<div id="evoludolab">
{{#tag:virtuallab||code="chh.virtuallabs.TwoByTwoLab.class"|codebase="applets"|height="572"|width="480"|archive="2x2.jar"|options={{{options}}}}}
{{#tag:evoludolab||options={{{options}}}}}
</div>
</div>


Line 14: Line 12:
{{{doc}}}
{{{doc}}}


{| id="dataview"
|
|
===Data views===
===Data views===
{| class="dataview"
|-
|-
!
!
[[VirtualLabs:Dataviews#Structure - strategy|Structure - strategy]]
[[Data Views#Strategies - Structure|Strategies - Structure]]
| Snapshot of the spatial arrangement of strategies.
| Snapshot of the spatial arrangement of strategies.
|-
|-
!
!
[[VirtualLabs:Dataviews#Mean strategy|Mean strategy]]
[[Data Views#Strategies - Mean|Strategies - Mean]]
| Time evolution of the strategy frequencies.
| Time evolution of the strategy frequencies.
|-
|-
!
!
[[VirtualLabs:Dataviews#Structure - fitness|Structure - fitness]]
[[Data Views#Fitness - Structure|Fitness - Structure]]
| Snapshot of the spatial distribution of payoffs.
| Snapshot of the spatial distribution of payoffs.
|-
|-
!
!
[[VirtualLabs:Dataviews#Mean fitness|Mean fitness]]
[[Data Views#Fitness - Mean|Fitness - Mean]]
| Time evolution of average population payoff bounded by the minimum and maximum individual payoff.
| Time evolution of average population payoff bounded by the minimum and maximum individual payoff.
|-
|-
!
!
[[VirtualLabs:Dataviews#Fitness histogram|Fitness histogram]]
[[Data Views#Fitness - Histogram|Fitness - Histogram]]
| Snapshot of payoff distribution in population.
| Snapshot of payoff distribution in population.
|-
!
[[Data Views#Structure - Degree|Structure - Degree]]
| Degree distribution in structured populations.
|-
!
[[Data Views#Statistics - Fixation probability|Statistics - Fixation probability]]
| Statistics of fixation probabilities.
|-
!
[[Data Views#Statistics - Fixation time|Statistics - Fixation time]]
| Statistics of fixation and absorption times.
|-
!
[[Data Views#Statistics - Stationary distribution| Stationary distribution]]
| Statistics of the stationary distribution of the numbers of each strategic type. Note, only available for non-zero mutation rates.
|-
!
[[Data Views#Console log|Console log]]
| Message log from engine.
|}
|}
<br style="clear:both" />
{{-}}


== Game parameters ==
== Module parameters ==
The list below describes only the few parameters related to the Prisoner's Dilemma, Snowdrift and Hawk-Dove games. Follow the link for a complete list and detailed descriptions of all [[Virtuallabs:Parameters|other parameters]] such as spatial arrangements or update rules on the player and population level.
The list below describes only the few parameters related to the Prisoner's Dilemma, Snowdrift and Hawk-Dove games. Follow the link for a complete list and detailed descriptions of the [[Graphical User Interface|user interface]] and further [[parameters]] such as spatial arrangements or update rules on the player and population level.


; Reward:
; <tt>--paymatrix <a00,a01;a10,a11></tt>
: reward for mutual cooperation.
: <tt>2x2</tt> payoff matrix. Type \(A\) has index <tt>0</tt> and type \(B\) index <tt>1</tt>.
; Temptation:
{{cloinittype}}
: temptation to defect, i.e. payoff the defector gets when matched with a cooperator. Without loss of generality two out of the four traditional payoff values <math>R, S, T</math> and <math>P</math> can be fixed and set conveniently to <math>R = 1</math> and <math>P = 0</math>. This means mutual cooperation pays<math>1</math> and mutual defection zero. For example for the prisoner's dilemma <math>T > R > P > S</math> must hold, i.e. <math>T > 1</math> and <math>S < 0</math>.
; Sucker:
: sucker's payoff which denotes the payoff the cooperator gets when matched with a defector.
; Punishment:
: punishment for mutual defection.
; Init Coop, init defect:
: initial fractions of cooperators and defectors. If they do not add up to 100%, the values will be scaled accordingly. Setting the fraction of cooperators to 100% and of defectors to zero, then the lattice is initialized with a symmetrical configuration suitable for observing evolutionary kaleidoscopes.


[[Category:VirtualLab]]
[[Category:Interactive Lab]]

Latest revision as of 08:57, 11 August 2024

Color code: Cooperators Defectors
New cooperator New defector
Payoffs:
Low High

Note: The gradient of the payoff scale is augmented by pale shades of the strategy colours to mark payoffs that are achieved in homogeneous populations of the corresponding type.

{{{title}}}

{{{doc}}}

Data views

Strategies - Structure

Snapshot of the spatial arrangement of strategies.

Strategies - Mean

Time evolution of the strategy frequencies.

Fitness - Structure

Snapshot of the spatial distribution of payoffs.

Fitness - Mean

Time evolution of average population payoff bounded by the minimum and maximum individual payoff.

Fitness - Histogram

Snapshot of payoff distribution in population.

Structure - Degree

Degree distribution in structured populations.

Statistics - Fixation probability

Statistics of fixation probabilities.

Statistics - Fixation time

Statistics of fixation and absorption times.

Stationary distribution

Statistics of the stationary distribution of the numbers of each strategic type. Note, only available for non-zero mutation rates.

Console log

Message log from engine.

Module parameters

The list below describes only the few parameters related to the Prisoner's Dilemma, Snowdrift and Hawk-Dove games. Follow the link for a complete list and detailed descriptions of the user interface and further parameters such as spatial arrangements or update rules on the player and population level.

--paymatrix <a00,a01;a10,a11>
2x2 payoff matrix. Type \(A\) has index 0 and type \(B\) index 1.
--inittype <type>
type of initial configuration:
frequency <f0>,<f1>...
random distribution with given trait frequencies, f0, f1,.... Note, only available for frequency based modules and models.
density <d0>,<d1>...
initial trait densities <d1,...,dn>. Note, only available for density based modules and models.
uniform
uniform random distribution, equal frequencies of all traits.
monomorphic <t>[,<v>]
monomorphic initialization with trait t. Note, for modules with variable population densities, the optional parameter v indicates the initial frequency of vacant sites. If omitted the monomorphic trait is initialized at its (estimated) carrying capacity.
mutant <m>,<r>[,<v>]
single mutant with trait m in homogeneous resident population of type r. The mutant is placed in a location selected uniformly at random (mutants arising through cosmic rays). Note, for modules with variable population densities, the optional parameter v indicates the initial frequency of vacant sites. If omitted the resident trait is initialized at its (estimated) carrying capacity.
temperature <m>,<r>[,<v>]
single mutant with trait m in homogeneous resident population of type r. The mutant is placed in a location selected proportional to the in-degree of nodes (temperature initialization, mutants arising through errors in reproduction). Note, for modules with variable population densities, the optional parameter v indicates the initial frequency of vacant sites. If omitted the resident trait is initialized at its (estimated) carrying capacity.
stripes
stripes of traits. Note, only available for 2D lattices.
kaleidoscopes
configurations that produce evolutionary kaleidoscopes for deterministic updates (players and population). Note, only available for some modules.

Note, for modules that admit multiple species, the initialization types for each species can be specified as an array separated by ;. With more species than initialization types, they are assigned in a cyclical manner.