I have a network of agents that each agent have an opinion 1 or 0 and also a value that is weighed by α ∈ [0, 1]. Smaller values of α implies stronger confidence for the agent to stick to its current opinion. Now, I want to write a code in c# that each agent change his/her opinion due to the probability of α. Or I want to write a function "Change_opinion" and then call it for each agent according to it's α value.
Aucun commentaire:
Enregistrer un commentaire