I have the following problem. My turtles are separeted in 2 groups. The 2 breeds are Honests and Strategics (stgs). Strategics can be audited or not and compliants or not. Therefore, I have 3 cases: 1) No-Audited, 2) Audited and Compliant, 3) Audited and Non-Compliant. Then, Strategics are linked to other turtles by links
ask stgs [create-links-with other turtles in-radius 1]
All Strategics have 2 parameters: sigma and phi, changing based on the composition of his network. Let say: a) if all turtles within his network are No-Audited set sigma = 0 and phi = 0, b) if at least one is Audited and Compliant set sigma = 1 and phi = 0, c) if at least one is Audited and Non-Compliant set sigma = 0 and phi = 1. Basicaly the question is: how can I manage nested "if statements" within a network? Do I need to create subgroups of turtles? Thank you
Aucun commentaire:
Enregistrer un commentaire