Model of Context Switching with Segregation 1.0.0

In the context switching model, a society of agents embedded in multiple social relations, engages in a simple abstract game: the consensus game. Each agent has to choose towards one of two possible choices which are basically arbitrary. The objective of the game is to reach a global consensus, but the particular choice that gets collectively selected is irrelevant. The agents switch contexts with a switching probability, in addition, agents avoid undesired neighbourhoods with a mechanism of segregation with a tunable tolerance threshold.
This is a companion discussion topic for the original entry at https://www.comses.net/codebases/3081/releases/1.0.0/