v0.1 — Schelling Operational Status
This first model recovers the classic Schelling segregation result while expressing the agents' decision rule through Operational Status.
- Fronterization holds the agent's current attribute (binary in this version: two types).
- Permeability is the minimum share of similar neighbors the agent requires. A higher value is stricter: the agent accepts less local difference.
- Receptivity detects when the proportion of similar neighbors falls below that share.
- Proceptivity moves the agent to a random empty cell when it is dissatisfied.
With a moderate permeability, around 0.3 to 0.5, the familiar pattern appears: agents start relatively mixed and gradually form larger same-type clusters. The recording shows the grid, the rising segregation index, and the count of dissatisfied agents.
The mapping stays close to the original Schelling micromotives so the Operational Status vocabulary can be checked against a well-known benchmark. Later versions will introduce multiple simultaneous criteria and dynamic changes to Fronterization.
Repository lokapal-xyz/computational-systemics-schelling-v0.1 Opens in a new tab.How to run
The script needs Python 3.12 or newer. It prints a local address. Open that address in a browser. Stop the dashboard with Ctrl+C.
git clone https://github.com/lokapal-xyz/computational-systemics-schelling-v0.1
cd computational-systemics-schelling-v0.1
chmod +x setup.sh # only needed once
./setup.sh