Project: Trust formation in networks of interacting individuals

3 views
Skip to first unread message

Niccolò Pescetelli

unread,
Mar 13, 2014, 6:01:47 AM3/13/14
to modell...@googlegroups.com
Hi all,

I am new to this group. I took this term course in ABM and now I'm stuck with a probably very easy problem. In my project you have a fully directed network of people that interact and influence each others' choice depending on how much they trust each other. I coded trust as the thickness of the in-links, so that if agent A trusts agent B, the trust link will go from B to A (thus representing the information flow). On every tick each agent makes a binary choice and then, if not confident in it, changes its mind according to other agents' choice. 
This change of mind part is tricky though. What I want to say to the agent to do is: if you are not confident in what you chose take the in-link with greatest thickness and set my-new-choice to [my-old-choice] of the agent at the other end of the selected link.
What's the syntax for selecting the thickest link? I thought something like 

set my-new-choice 
[[my-old-choice] of end1] of my-in-links with max (thickness)

Thank you a lot for your help!

Howard Noble

unread,
Mar 13, 2014, 8:17:10 AM3/13/14
to modell...@googlegroups.com
Hi Niccolo,

Have you tried using max-one-of: http://ccl.northwestern.edu/netlogo/docs/dictionary.html#max-one-of

something like:

set my-new-choice max-one-of my-links [ thickness ]

It might be a good idea to give your links an attribute called "trust-of-link" and then set the thickness based on this attribute (so that you can do visualise the log of this value if trust grows too much for the visualisation to make sense.

hth, howard


--
You received this message because you are subscribed to the Google Groups "The Modelling4All project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelling4al...@googlegroups.com.
To post to this group, send email to modell...@googlegroups.com.
Visit this group at http://groups.google.com/group/modelling4all.
For more options, visit https://groups.google.com/d/optout.

Arthur Hjorth

unread,
Mar 13, 2014, 8:19:18 AM3/13/14
to modell...@googlegroups.com
on phone so very brief:

ask the-agent[
let new-thickness x ; (calculate new value here)
ask max-one-of my-in-links [thickness] [set thickness new-thickness]
]

i agree with Howard that you probably should have a dedicated variable for this - it will make the code much easier to read.


--
Reply all
Reply to author
Forward
0 new messages