Skip to content

fernandopalafox/patriot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patriot

Evolutionary simulation of tribal survival under selection pressure on patriotism. Each agent carries a patriotism trait (0–1) — how much they sacrifice for the group. Sacrifice raises individual death risk but keeps the tribe alive; tribes whose mean patriotism drops below a threshold collapse.

Results

Tribe Patriotism Over Time Tribe patriotism over 200 generations — higher starting patriotism delays but doesn't prevent collapse.

Tribe Survival by Initial Patriotism Mean generation of death by initial patriotism — tribes starting too low die immediately; higher starting patriotism buys more time but yields diminishing returns.

Dependencies

jax
numpy
matplotlib

Usage

# Run a sweep over initial patriotism values
python scripts/run.py --init_sacrifice 0.5

# Regenerate figures
python scripts/visualize.py --y_param init_sacrifice

About

Simulating the propagation of patriotic genes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages