Helbing-Szolnoki inspection-game phase diagram
Source:R/tps_statphysics.R
morie_tps_inspection_game_phase.RdThree-strategy replicator dynamics (cooperator C, defector / predator P, punisher / inspector O) swept across a grid in the (temptation T, inspection cost gamma) plane. Each grid point runs the replicator update to steady state and records the defector share as a "crime rate" proxy. Reproduces the qualitative phase diagram from D'Orsogna & Perc (2015) sec. 5 / Fig. 8.
Usage
morie_tps_inspection_game_phase(
n_temptations = 20L,
n_costs = 20L,
n_steps = 600L,
save_fig = TRUE
)Value
A morie_rich_result containing the mean, min, max
steady-state defector frequency across the grid, plus the
resolution and step count used.
References
Helbing D, Szolnoki A, Perc M, Szabo G (2010). Punish, but not too hard. New Journal of Physics 12: 083005.
Examples
if (FALSE) { # \dontrun{
rr <- morie_tps_inspection_game_phase(
n_temptations = 8L, n_costs = 8L, n_steps = 120L,
save_fig = FALSE)
print(rr$summary_lines)
} # }