An analytic study of opinion dynamics in multi-agent systems. (15th May 2017)