PA/C model with affinity v1.0.0

We represent here a RA agent-based model of the opinion and tolerance dynamics in artificial societies; that is suitable for the simulation of social phenomena such as consensus, polarization and fragmentation of opinion, extremists’ emergence and the leadership, between others, in social networks of different topology. Computer simulation in artificial networked societies composed of agents of two psychological types is used for studying the opinion formation, showing the phenomenon of preferential self-organization into groups of ideological affinity. The variables of the model are opinion and uncertainty of agents; those are governed by the discrete time updating equations that are specific for each psychological type of agents, through the pair interaction between them. In addition, the model is controlled by the following essential parameters: the average initial uncertainty U of agents, and fraction p of agents of the two psychological types, C- and PA- agents accompanied by the mechanism of ideological affinity. The model follows the ideas developed in the social influence, social judgment and social identity theories. Particularly, the social influence is expressed by the distance between and the overlap of opinion segments of pairs of agents, meanwhile the basic concepts of social judgment and social identity theories, believes of agents and belonging to a group, are modeled by the psychological profile of PA- or C-agents and opinion affinity. The updating dynamics is by pairs of agents, unidirectional and stochastic. In each updating stage, N edges of a network are randomly chosen. Then, in the pair (i,j) of agents associated with each of these edges, one agent is considered as passive (influenced) and the other as active (influential), also in a random way. If overlap is greater than or equal to zero, the passive agent of the pair, say j, updates the opinion and uncertainty according to the psychological profile of the agent.
This is a companion discussion topic for the original entry at https://www.comses.net/codebases/5250/releases/1.0.0/