I programmed a model of continuous opinion dynamics under bounded confidence in NetLogo. I hope it can serve as a good demonstration of bounded confidence dynamics. You can play with the model as a JAVA Applet in the Browser (be patient, it takes some initialization time). Or you can download bc.nlogo and run it with your local version of NetLogo (Download NetLogo). The latter improves performance on my computer.
In the model, agents adjust their opinion gradually towards the opinions of others when the distance in opinion is within their bound of confidence. Sometimes agents change their opinion to a new one at random. When agents hold extreme opinions they might never adjust opinions.
The model includes:
- its two main variants of communication regimes (as in Deffuant et al 2000 with μ=0.5 and as in Hegselmann and Krause 2002)
- alternative aggregation of opinions by the median instead of the mean
- heterogeneous bounds of confidence coming from a four parameter beta distribution
- noise via random reset of opinions (as in Pineda et al 2009)
- one-sided and two-sided extremism (similar to Deffuant et al 2002)