No bio entered.
Code for simulating opinion dynamics. Model is an extension of the CODA model for M possible choices. In this implementation, likelihoods are chosen so that choices are equivalente to options over a one-dimensional ideological dimension.
Agers and non-agers agent compete over a spatial landscape. When two agents occupy the same grid, who will survive is decided by a random draw where chances of survival are proportional to fitness. Agents have offspring each time step who are born at a distance b from the parent agent and the offpring inherits their genetic fitness plus a random term. Genetic fitness decreases with time, representing environmental change but effective non-inheritable fitness can increase as animals learn and get bigger.