From 36d73f93de5227c4e83995bd310130f9fb8b4904 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 13:49:26 +0200 Subject: [PATCH 01/38] crime multiplier updates yearly This should change the number of crimes accordingly to population decline. Also, there's a new (untested) xml production system in place. --- PROTON-OC.nlogo | 1 + experiments-xml/OC-profile.xml | 176 ----------- experiments-xml/makeInterventions.py | 128 ++++++++ experiments-xml/rp0.3.xml | 190 ------------ experiments-xml/rp0.4a.xml | 153 ++++++++++ experiments-xml/rp0.4b-facilitators.xml | 151 ++++++++++ experiments-xml/rp0.4b-students.xml | 151 ++++++++++ experiments-xml/rp0.4b.xml | 185 ------------ experiments-xml/rp0.4b_facilitators.xml | 184 ------------ experiments-xml/rp0.4b_students.xml | 184 ------------ experiments-xml/rp0.4c.xml | 187 ------------ experiments-xml/rp0.5a.xml | 331 ++++++++++----------- experiments-xml/rp0.5b.xml | 329 +++++++++----------- experiments-xml/rp0.5b_facilitators.xml | 184 ------------ experiments-xml/rp0.5b_students.xml | 184 ------------ experiments-xml/{rp0.4.xml => rp_base.xml} | 6 +- 16 files changed, 884 insertions(+), 1840 deletions(-) delete mode 100644 experiments-xml/OC-profile.xml create mode 100644 experiments-xml/makeInterventions.py delete mode 100644 experiments-xml/rp0.3.xml create mode 100644 experiments-xml/rp0.4a.xml create mode 100644 experiments-xml/rp0.4b-facilitators.xml create mode 100644 experiments-xml/rp0.4b-students.xml delete mode 100644 experiments-xml/rp0.4b.xml delete mode 100644 experiments-xml/rp0.4b_facilitators.xml delete mode 100644 experiments-xml/rp0.4b_students.xml delete mode 100644 experiments-xml/rp0.4c.xml delete mode 100644 experiments-xml/rp0.5b_facilitators.xml delete mode 100644 experiments-xml/rp0.5b_students.xml rename experiments-xml/{rp0.4.xml => rp_base.xml} (97%) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 079f801a..c4ebb859 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -396,6 +396,7 @@ to go ] if ((ticks mod ticks-per-year) = 0) [ ; this should be 11, probably, otherwise calculate-criminal-tendency + calculate-crime-multiplier ; we should update it, if population change graduate-and-enter-jobmarket ; updates neet status only when changing age range (the age is a key of the table) ask persons with [ job-level < 2 and just-changed-age? and member? list age male? table:keys labour-status-range ] [ diff --git a/experiments-xml/OC-profile.xml b/experiments-xml/OC-profile.xml deleted file mode 100644 index 79f6b5e7..00000000 --- a/experiments-xml/OC-profile.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - - setup - profile-go - show (word "Time elapsed:" timer) - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - initial-random-seed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/makeInterventions.py b/experiments-xml/makeInterventions.py new file mode 100644 index 00000000..efa68934 --- /dev/null +++ b/experiments-xml/makeInterventions.py @@ -0,0 +1,128 @@ +import xml.etree.ElementTree as ET + +repetitions = 20 + +#pretty print method +def indent(elem, level=0): + i = "\n" + level*" " + j = "\n" + (level-1)*" " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for subelem in elem: + indent(subelem, level+1) + if not elem.tail or not elem.tail.strip(): + elem.tail = j + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = j + return elem + +# ---------------------------------- +version="rp0.4a" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value=""preventive"")) +al.insert(1, ET.Element("value", value=""disruptive"")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + +# ---------------------------------- +version="rp0.4b-facilitators" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +for x in al.getchildren(): + al.remove(x) +al.insert(1, ET.Element("value", value=""facilitators"")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + +# ---------------------------------- +version="rp0.4b-students" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +for x in al.getchildren(): + al.remove(x) +al.insert(1, ET.Element("value", value=""students"")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + +# ---------------------------------- +version="rp0.5a" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') +for x in al.getchildren(): + al.remove(x) +al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) + + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value=""preventive"")) +al.insert(1, ET.Element("value", value=""disruptive"")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + +# ---------------------------------- +version="rp0.5b" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') +for x in al.getchildren(): + al.remove(x) +al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +for x in al.getchildren(): + al.remove(x) +al.insert(1, ET.Element("value", value=""students"")) +al.insert(1, ET.Element("value", value=""facilitators"")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + diff --git a/experiments-xml/rp0.3.xml b/experiments-xml/rp0.3.xml deleted file mode 100644 index b90ce685..00000000 --- a/experiments-xml/rp0.3.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4a.xml b/experiments-xml/rp0.4a.xml new file mode 100644 index 00000000..1ffe416d --- /dev/null +++ b/experiments-xml/rp0.4a.xml @@ -0,0 +1,153 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.4b-facilitators.xml b/experiments-xml/rp0.4b-facilitators.xml new file mode 100644 index 00000000..cfc3e906 --- /dev/null +++ b/experiments-xml/rp0.4b-facilitators.xml @@ -0,0 +1,151 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.4b-students.xml b/experiments-xml/rp0.4b-students.xml new file mode 100644 index 00000000..e162cee9 --- /dev/null +++ b/experiments-xml/rp0.4b-students.xml @@ -0,0 +1,151 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.4b.xml b/experiments-xml/rp0.4b.xml deleted file mode 100644 index 653f3b7d..00000000 --- a/experiments-xml/rp0.4b.xml +++ /dev/null @@ -1,185 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4b_facilitators.xml b/experiments-xml/rp0.4b_facilitators.xml deleted file mode 100644 index 966427fe..00000000 --- a/experiments-xml/rp0.4b_facilitators.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4b_students.xml b/experiments-xml/rp0.4b_students.xml deleted file mode 100644 index f9a7c157..00000000 --- a/experiments-xml/rp0.4b_students.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4c.xml b/experiments-xml/rp0.4c.xml deleted file mode 100644 index a274d123..00000000 --- a/experiments-xml/rp0.4c.xml +++ /dev/null @@ -1,187 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - number-born - number-migrants - number-weddings - degree-correction-for-bosses - correction-for-non-facilitators - length removed-fatherships - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.5a.xml b/experiments-xml/rp0.5a.xml index 6b68c81f..b7190cf5 100644 --- a/experiments-xml/rp0.5a.xml +++ b/experiments-xml/rp0.5a.xml @@ -1,186 +1,153 @@ - - - - setup - go - show (word "Time elapsed:" timer) + + setup + go + show (word "Time elapsed:" timer) dump-networks - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/experiments-xml/rp0.5b.xml b/experiments-xml/rp0.5b.xml index a7052ce6..de9aabad 100644 --- a/experiments-xml/rp0.5b.xml +++ b/experiments-xml/rp0.5b.xml @@ -1,185 +1,152 @@ - - - - setup - go - show (word "Time elapsed:" timer) + + setup + go + show (word "Time elapsed:" timer) dump-networks - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/experiments-xml/rp0.5b_facilitators.xml b/experiments-xml/rp0.5b_facilitators.xml deleted file mode 100644 index de2da223..00000000 --- a/experiments-xml/rp0.5b_facilitators.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.5b_students.xml b/experiments-xml/rp0.5b_students.xml deleted file mode 100644 index d5673cde..00000000 --- a/experiments-xml/rp0.5b_students.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4.xml b/experiments-xml/rp_base.xml similarity index 97% rename from experiments-xml/rp0.4.xml rename to experiments-xml/rp_base.xml index fa84aec7..95cd8e30 100644 --- a/experiments-xml/rp0.4.xml +++ b/experiments-xml/rp_base.xml @@ -1,7 +1,7 @@ - + setup go show (word "Time elapsed:" timer) @@ -77,11 +77,11 @@ count all-persons with [ num-crimes-committed = 0 ] count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] - - From b14473b7c7cb1139a616407f9dc3a0431707a8e1 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 15:04:42 +0200 Subject: [PATCH 02/38] Person links already contain criminal links --- PROTON-OC.nlogo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index c4ebb859..5537795a 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1504,7 +1504,7 @@ to-report number-of-accomplices end to update-meta-links [ agents ] - nw:with-context agents (link-set person-links criminal-links) [ ; limit the context to the agents in the radius of interest + nw:with-context agents person-links [ ; limit the context to the agents in the radius of interest ask agents [ ask other (turtle-set nw:turtles-in-radius 1 nw:turtles-in-reverse-radius 1) [ create-meta-link-with myself [ ; if that link already exists, it won't be re-created From 06cc0de8b61ea79dac7e5a5af8d9e489d778a339 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 16:26:25 +0200 Subject: [PATCH 03/38] First attempt of taking into account all the other networks in bossness --- PROTON-OC.nlogo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 5537795a..a5b9f671 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1273,7 +1273,9 @@ end to-report OC-repression-prob [ a-group ] let representative one-of a-group with [ OC-member? ] - let n [ count person-link-neighbors with [ OC-member? ] ] of representative + let n [ count (my-links with [ [oc-member?] of other-end ]) ] of representative + let myOCcrim my-criminal-links with [ [oc-member?] of other-end ] + set n n + sum [ num-co-offenses ] of myOCcrim - count myOCcrim ; subtracting the ones already counted above report (n / (n + 1)) ^ 2 * degree-correction-for-bosses end From 4f51c07e152eed379be103d3184e946416fc2789 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 17:34:03 +0200 Subject: [PATCH 04/38] Introduced oc-status We get rid of the n^2 / (n+1)^2 calculation. Instead, we calculate now a score based on the number of links of all kind to OC neighbors, plus the number of criminal acts done together. We subratct the minimum (thus starting from zero) and we set the mean to 1. The max will depend on the range. This number is then used to multiply the arrest probability. This will produce the correct number of arrests given that all members participate equally to crimes. --- PROTON-OC.nlogo | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index a5b9f671..04f5ecc7 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -124,6 +124,7 @@ globals [ c-range-by-age-and-sex labour-status-by-age-and-sex labour-status-range + oc-status ; mean one over all oc members, gives probability of arrest. ; outputs number-deceased facilitator-fails @@ -1238,6 +1239,7 @@ to commit-crimes ] ] ] + calc-OC-status foreach co-offender-groups [ co-offenders -> if random-float 1 < (arrest-probability-with-intervention co-offenders) [ get-caught co-offenders ] ] @@ -1273,10 +1275,24 @@ end to-report OC-repression-prob [ a-group ] let representative one-of a-group with [ OC-member? ] - let n [ count (my-links with [ [oc-member?] of other-end ]) ] of representative - let myOCcrim my-criminal-links with [ [oc-member?] of other-end ] - set n n + sum [ num-co-offenses ] of myOCcrim - count myOCcrim ; subtracting the ones already counted above - report (n / (n + 1)) ^ 2 * degree-correction-for-bosses + report arrest-rate * table:get oc-status [ who ] of representative +end + +to calc-OC-status + set oc-status table:from-list [ list who calc-OC-member-position ] of persons with [ oc-member? ] + let min-score min table:values oc-status + let divide-score mean table:values oc-status - min-score + foreach table:keys oc-status [ k -> + table:put oc-status k (table:get oc-status k - min-score) / divide-score + ] + show sort table:values oc-status + show mean table:values oc-status +end + +to-report calc-OC-member-position + let n count my-links with [ [oc-member?] of other-end ] + let myOCcrim my-criminal-links with [ [ oc-member? ] of other-end ] + report n + sum [ num-co-offenses ] of myOCcrim - count myOCcrim ; subtracting the ones already counted above end to retire-persons @@ -1410,6 +1426,7 @@ to calc-degree-correction-for-bosses let n count person-link-neighbors with [ oc-member? ] set to-sum lput (n ^ 2 / (n + 1) ^ 2) to-sum ] + show mean to-sum ; if the OC network is disconnected, the correction isn't needed - I use 1 but it will be multiplied by zero anyway set degree-correction-for-bosses ifelse-value (sum to-sum = 0) [ arrest-rate ] [ arrest-rate / mean to-sum ] ] @@ -2168,7 +2185,7 @@ num-oc-persons 2 200 30.0 -1 +5 1 NIL HORIZONTAL @@ -2288,7 +2305,7 @@ SWITCH 743 OC-boss-repression? OC-boss-repression? -0 +1 1 -1000 From 8b4af3fc14cbf4241d10f9b06282f1e1955f29d3 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 17:46:34 +0200 Subject: [PATCH 05/38] another xml update --- experiments-xml/makeInterventions.py | 3 + experiments-xml/makeInterventions_rp0.6.py | 84 ++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 experiments-xml/makeInterventions_rp0.6.py diff --git a/experiments-xml/makeInterventions.py b/experiments-xml/makeInterventions.py index efa68934..98ebc657 100644 --- a/experiments-xml/makeInterventions.py +++ b/experiments-xml/makeInterventions.py @@ -77,6 +77,9 @@ def indent(elem, level=0): tree = ET.ElementTree(indent(root)) tree.write(version + '.xml', encoding='utf-8') +# watch out, this should have changed much more to become rp5 + + # ---------------------------------- version="rp0.5a" tree = ET.parse('rp_base.xml') diff --git a/experiments-xml/makeInterventions_rp0.6.py b/experiments-xml/makeInterventions_rp0.6.py new file mode 100644 index 00000000..768725f3 --- /dev/null +++ b/experiments-xml/makeInterventions_rp0.6.py @@ -0,0 +1,84 @@ +import xml.etree.ElementTree as ET + +repetitions = 20 + +#pretty print method +def indent(elem, level=0): + i = "\n" + level*" " + j = "\n" + (level-1)*" " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for subelem in elem: + indent(subelem, level+1) + if not elem.tail or not elem.tail.strip(): + elem.tail = j + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = j + return elem + +# ---------------------------------- +version="rp0.6p" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value=""preventive"")) +al.insert(1, ET.Element("value", value=""disruptive"")) +al.insert(1, ET.Element("value", value=""students"")) +al.insert(1, ET.Element("value", value=""facilitators"")) + +al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') + +al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3000")) + + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + + +# ---------------------------------- +version="rp0.6e" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value=""preventive"")) +al.insert(1, ET.Element("value", value=""disruptive"")) +al.insert(1, ET.Element("value", value=""students"")) +al.insert(1, ET.Element("value", value=""facilitators"")) + +al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) + +al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3000")) + + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + + + + From f62acb0f67a6ec9f73b97ef6311eb5cc1451e2f1 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 17:57:24 +0200 Subject: [PATCH 06/38] Update arrest rate in proportion to the population also, first attempt to RP0.6 --- PROTON-OC.nlogo | 4 +- experiments-xml/makeInterventions_rp0.6.py | 15 +- experiments-xml/rp0.6e.xml | 155 +++++++++++++++++++++ experiments-xml/rp0.6p.xml | 155 +++++++++++++++++++++ 4 files changed, 326 insertions(+), 3 deletions(-) create mode 100644 experiments-xml/rp0.6e.xml create mode 100644 experiments-xml/rp0.6p.xml diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 04f5ecc7..313add5e 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -447,8 +447,8 @@ to-report intervention-on? end to calculate-arrest-rate - ; this gives the base probability of arrest, propotionally to the number of expected crimes in the first year - set arrest-rate number-arrests-per-year / ticks-per-year / number-crimes-yearly-per10k + ; this gives the base probability of arrest, propotionally to the number of expected crimes in the first year. + set arrest-rate number-arrests-per-year / ticks-per-year / number-crimes-yearly-per10k / 10000 * count persons end to dump-networks diff --git a/experiments-xml/makeInterventions_rp0.6.py b/experiments-xml/makeInterventions_rp0.6.py index 768725f3..cd569024 100644 --- a/experiments-xml/makeInterventions_rp0.6.py +++ b/experiments-xml/makeInterventions_rp0.6.py @@ -56,7 +56,6 @@ def indent(elem, level=0): al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions/3))) @@ -74,6 +73,20 @@ def indent(elem, level=0): for x in al.getchildren(): al.remove(x) al.insert(1, ET.Element("value", value="3000")) +# the three eindhoven basic changes +al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="15")) +al = tree.find('.//enumeratedValueSet[@variable="number-crimes-yearly-per10k"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3368")) +al = tree.find('.//enumeratedValueSet[@variable="number-arrests-per-year"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="15")) +al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="4")) + #write to file tree = ET.ElementTree(indent(root)) diff --git a/experiments-xml/rp0.6e.xml b/experiments-xml/rp0.6e.xml new file mode 100644 index 00000000..e85b13b3 --- /dev/null +++ b/experiments-xml/rp0.6e.xml @@ -0,0 +1,155 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml new file mode 100644 index 00000000..36830383 --- /dev/null +++ b/experiments-xml/rp0.6p.xml @@ -0,0 +1,155 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 34fa9b37d6aff952f099c65b71275f75a17c6eb1 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 18:08:10 +0200 Subject: [PATCH 07/38] Extreme interventions: rp0.6 first version. --- PROTON-OC.nlogo | 20 ++++++++++---------- experiments-xml/rp0.6e.xml | 1 + experiments-xml/rp0.6p.xml | 1 + experiments-xml/rp_base.xml | 1 + 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 313add5e..205f6e2d 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -147,6 +147,7 @@ globals [ people-jailed number-crimes crime-multiplier + kids-intervention-counter ] to profile-setup @@ -591,6 +592,7 @@ to family-intervene ] if any? kids-to-protect [ ask n-of ceiling (targets-addressed-percent / 100 * count kids-to-protect) kids-to-protect [ + set kids-intervention-counter kids-intervention-counter + 1 ; notice that the intervention acts on ALL family members respecting the condition, causing double calls for families with double targets. ; gee but how comes that it increases with the nubmer of targets? We have to do better here let father one-of in-offspring-link-neighbors with [ male? and oc-member? ] @@ -765,12 +767,12 @@ to choose-intervention-setting set intervention-end 9999 ] if intervention = "preventive" [ - set family-intervention "remove-if-caught-and-OC-member" + set family-intervention "remove-if-OC-member" set social-support "none" set welfare-support "none" set OC-boss-repression? false set facilitator-repression? false - set targets-addressed-percent 50 + set targets-addressed-percent 100 set ticks-between-intervention 1 set intervention-start 13 set intervention-end 9999 @@ -781,7 +783,7 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? true set facilitator-repression? false - set targets-addressed-percent 10 + set targets-addressed-percent 10 ; not appliable set ticks-between-intervention 1 set intervention-start 13 set intervention-end 9999 @@ -792,8 +794,8 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? false - set targets-addressed-percent 10 - set ticks-between-intervention 12 + set targets-addressed-percent 100 + set ticks-between-intervention 1 set intervention-start 13 set intervention-end 9999 ] @@ -803,8 +805,8 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? true - set facilitator-repression-multiplier 2 - set targets-addressed-percent 10 + set facilitator-repression-multiplier 20 + set targets-addressed-percent 10 ; not appliable set ticks-between-intervention 1 set intervention-start 13 set intervention-end 9999 @@ -1285,8 +1287,6 @@ to calc-OC-status foreach table:keys oc-status [ k -> table:put oc-status k (table:get oc-status k - min-score) / divide-score ] - show sort table:values oc-status - show mean table:values oc-status end to-report calc-OC-member-position @@ -2235,7 +2235,7 @@ CHOOSER family-intervention family-intervention "none" "remove-if-caught" "remove-if-OC-member" "remove-if-caught-and-OC-member" -0 +2 CHOOSER 15 diff --git a/experiments-xml/rp0.6e.xml b/experiments-xml/rp0.6e.xml index e85b13b3..5cd4abb4 100644 --- a/experiments-xml/rp0.6e.xml +++ b/experiments-xml/rp0.6e.xml @@ -60,6 +60,7 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml index 36830383..d8d5ffc2 100644 --- a/experiments-xml/rp0.6p.xml +++ b/experiments-xml/rp0.6p.xml @@ -60,6 +60,7 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter diff --git a/experiments-xml/rp_base.xml b/experiments-xml/rp_base.xml index 95cd8e30..25535cbf 100644 --- a/experiments-xml/rp_base.xml +++ b/experiments-xml/rp_base.xml @@ -79,6 +79,7 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter From d3ca87b246aa0ec8365f993116796e651adabe8a Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Aug 2019 18:26:36 +0200 Subject: [PATCH 08/38] Repairing bugs to manage the casese where OC is disconnected or empty --- PROTON-OC.nlogo | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 205f6e2d..f5267ab5 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1241,7 +1241,7 @@ to commit-crimes ] ] ] - calc-OC-status + if any? persons with [ oc-member? ] [ calc-OC-status ] foreach co-offender-groups [ co-offenders -> if random-float 1 < (arrest-probability-with-intervention co-offenders) [ get-caught co-offenders ] ] @@ -1283,9 +1283,13 @@ end to calc-OC-status set oc-status table:from-list [ list who calc-OC-member-position ] of persons with [ oc-member? ] let min-score min table:values oc-status - let divide-score mean table:values oc-status - min-score + let divide-score mean table:values oc-status - min-score set divide-score divide-score foreach table:keys oc-status [ k -> - table:put oc-status k (table:get oc-status k - min-score) / divide-score + table:put oc-status k ifelse-value (divide-score = 0) [ + 1 + ] [ + (table:get oc-status k - min-score) / divide-score + ] ] end From b198e86c26badf34315315cb82f2bef2440f7a60 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Thu, 29 Aug 2019 22:29:57 +0200 Subject: [PATCH 09/38] remove old corrections, repair xml --- PROTON-OC.nlogo | 19 +--------------- experiments-xml/makeInterventions.py | 25 +++++++++------------- experiments-xml/makeInterventions_rp0.6.py | 17 +++++++-------- experiments-xml/rp0.4a.xml | 5 +++-- experiments-xml/rp0.4b-facilitators.xml | 3 ++- experiments-xml/rp0.4b-students.xml | 3 ++- experiments-xml/rp0.5a.xml | 7 +++--- experiments-xml/rp0.5b.xml | 7 +++--- experiments-xml/rp0.6e.xml | 10 ++++----- experiments-xml/rp0.6p.xml | 7 +++--- 10 files changed, 42 insertions(+), 61 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index f5267ab5..01f0e49f 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -139,7 +139,6 @@ globals [ criminal-tendency-addme-for-weighted-extraction criminal-tendency-subtractfromme-for-inverse-weighted-extraction number-law-interventions-this-tick - degree-correction-for-bosses correction-for-non-facilitators number-protected-recruited-this-tick number-offspring-recruited-this-tick @@ -246,7 +245,6 @@ to setup set big-crime-from-small-fish 0 ; to add in behaviorspace reporters ask persons [set hobby random 5] ; hobby is used only in wedding procedure to compute wedding sim. set removed-fatherships [] - calc-degree-correction-for-bosses calc-correction-for-non-facilitators show word "Setup complete in " timer end @@ -1417,25 +1415,10 @@ to calculate-criminal-tendency calc-criminal-tendency-addme-for-weighted-extraction calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction if intervention-on? [ - if OC-boss-repression? [ calc-degree-correction-for-bosses ] if facilitator-repression? [ calc-correction-for-non-facilitators ] ] end -to calc-degree-correction-for-bosses - let gang persons with [ oc-member? ] - if any? gang [ - let to-sum [] - ask gang [ - let n count person-link-neighbors with [ oc-member? ] - set to-sum lput (n ^ 2 / (n + 1) ^ 2) to-sum - ] - show mean to-sum - ; if the OC network is disconnected, the correction isn't needed - I use 1 but it will be multiplied by zero anyway - set degree-correction-for-bosses ifelse-value (sum to-sum = 0) [ arrest-rate ] [ arrest-rate / mean to-sum ] - ] -end - to calc-correction-for-non-facilitators let f count persons with [ facilitator? ] let n count persons @@ -1888,7 +1871,7 @@ num-persons 100 10000 1000.0 -50 +100 1 NIL HORIZONTAL diff --git a/experiments-xml/makeInterventions.py b/experiments-xml/makeInterventions.py index 98ebc657..be2d55a6 100644 --- a/experiments-xml/makeInterventions.py +++ b/experiments-xml/makeInterventions.py @@ -27,13 +27,12 @@ def indent(elem, level=0): al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value=""preventive"")) -al.insert(1, ET.Element("value", value=""disruptive"")) +al.insert(1, ET.Element("value", value='"preventive"')) +al.insert(1, ET.Element("value", value='"disruptive"')) #write to file tree = ET.ElementTree(indent(root)) @@ -45,14 +44,13 @@ def indent(elem, level=0): root = tree.getroot() al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""facilitators"")) +al.insert(1, ET.Element("value", value='"facilitators"')) #write to file tree = ET.ElementTree(indent(root)) @@ -64,14 +62,13 @@ def indent(elem, level=0): root = tree.getroot() al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""students"")) +al.insert(1, ET.Element("value", value='"students"')) #write to file tree = ET.ElementTree(indent(root)) @@ -86,19 +83,18 @@ def indent(elem, level=0): root = tree.getroot() al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) +al.insert(1, ET.Element("value", value='"inputs/eindhoven/data/"')) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value=""preventive"")) -al.insert(1, ET.Element("value", value=""disruptive"")) +al.insert(1, ET.Element("value", value='"preventive"')) +al.insert(1, ET.Element("value", value='"disruptive"')) #write to file tree = ET.ElementTree(indent(root)) @@ -110,20 +106,19 @@ def indent(elem, level=0): root = tree.getroot() al = tree.find('.//experiment') -print(al) al.set('name', version) al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) +al.insert(1, ET.Element("value", value='"inputs/eindhoven/data/"')) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""students"")) -al.insert(1, ET.Element("value", value=""facilitators"")) +al.insert(1, ET.Element("value", value='"students"')) +al.insert(1, ET.Element("value", value='"facilitators"')) #write to file tree = ET.ElementTree(indent(root)) diff --git a/experiments-xml/makeInterventions_rp0.6.py b/experiments-xml/makeInterventions_rp0.6.py index cd569024..4fa2ff32 100644 --- a/experiments-xml/makeInterventions_rp0.6.py +++ b/experiments-xml/makeInterventions_rp0.6.py @@ -32,10 +32,9 @@ def indent(elem, level=0): al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value=""preventive"")) -al.insert(1, ET.Element("value", value=""disruptive"")) -al.insert(1, ET.Element("value", value=""students"")) -al.insert(1, ET.Element("value", value=""facilitators"")) +al.insert(1, ET.Element("value", value='"disruptive"')) +al.insert(1, ET.Element("value", value='"students"')) +al.insert(1, ET.Element("value", value='"facilitators"')) al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') @@ -60,14 +59,14 @@ def indent(elem, level=0): al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value=""preventive"")) -al.insert(1, ET.Element("value", value=""disruptive"")) -al.insert(1, ET.Element("value", value=""students"")) -al.insert(1, ET.Element("value", value=""facilitators"")) +al.insert(1, ET.Element("value", value='"preventive"')) +al.insert(1, ET.Element("value", value='"disruptive"')) +al.insert(1, ET.Element("value", value='"students"')) +al.insert(1, ET.Element("value", value='"facilitators"')) al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value=""inputs/eindhoven/data/"")) +al.insert(1, ET.Element("value", value='"inputs/eindhoven/data/"')) al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') for x in al.getchildren(): al.remove(x) diff --git a/experiments-xml/rp0.4a.xml b/experiments-xml/rp0.4a.xml index 1ffe416d..0e677cf0 100644 --- a/experiments-xml/rp0.4a.xml +++ b/experiments-xml/rp0.4a.xml @@ -60,10 +60,11 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter - - + + diff --git a/experiments-xml/rp0.4b-facilitators.xml b/experiments-xml/rp0.4b-facilitators.xml index cfc3e906..db5462a5 100644 --- a/experiments-xml/rp0.4b-facilitators.xml +++ b/experiments-xml/rp0.4b-facilitators.xml @@ -60,8 +60,9 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter - + diff --git a/experiments-xml/rp0.4b-students.xml b/experiments-xml/rp0.4b-students.xml index e162cee9..4cbffd4c 100644 --- a/experiments-xml/rp0.4b-students.xml +++ b/experiments-xml/rp0.4b-students.xml @@ -60,8 +60,9 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter - + diff --git a/experiments-xml/rp0.5a.xml b/experiments-xml/rp0.5a.xml index b7190cf5..bb80eb7d 100644 --- a/experiments-xml/rp0.5a.xml +++ b/experiments-xml/rp0.5a.xml @@ -60,16 +60,17 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter - - + + - + diff --git a/experiments-xml/rp0.5b.xml b/experiments-xml/rp0.5b.xml index de9aabad..983867ec 100644 --- a/experiments-xml/rp0.5b.xml +++ b/experiments-xml/rp0.5b.xml @@ -60,15 +60,16 @@ people-jailed count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] + kids-intervention-counter - - + + - + diff --git a/experiments-xml/rp0.6e.xml b/experiments-xml/rp0.6e.xml index 5cd4abb4..c1faa0da 100644 --- a/experiments-xml/rp0.6e.xml +++ b/experiments-xml/rp0.6e.xml @@ -63,16 +63,16 @@ kids-intervention-counter - - - - + + + + - + diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml index d8d5ffc2..db91fb7a 100644 --- a/experiments-xml/rp0.6p.xml +++ b/experiments-xml/rp0.6p.xml @@ -63,10 +63,9 @@ kids-intervention-counter - - - - + + + From ae0857b6dea0e0f2d00671f81c38269036278631 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sun, 1 Sep 2019 09:38:17 +0200 Subject: [PATCH 10/38] catching no OC members in o6 reporter. --- nls_files/experiments.nls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nls_files/experiments.nls b/nls_files/experiments.nls index b9ff2bf5..23fdadaa 100644 --- a/nls_files/experiments.nls +++ b/nls_files/experiments.nls @@ -66,9 +66,11 @@ end to-report o6a ; average of R (which is the individual embededdness into OC-prone local networks) - report mean [ oc-embeddedness ] of all-persons with [ oc-member? ] + let crims all-persons with [ oc-member? ] + report ifelse-value (any? crims) [ mean [ oc-embeddedness ] of crims ] [ 0 ] end + to-report o7a ; Distribution of socio-demographic variables on new recruited individuals report make-discrete-histo [ -> [ education-level ] of all-persons with [ new-recruit = (ticks - 1) ] ] 0 4 From 7fc8022ead3c91f5977961695accbd5916ae214a Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Sep 2019 13:02:41 +0200 Subject: [PATCH 11/38] Better c calculation BUG: not all people got c calculated at the simulation onset. --- PROTON-OC.nlogo | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 01f0e49f..e19f66cd 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -473,20 +473,20 @@ to calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction end to socialization-intervene + show "a" let potential-targets all-persons with [ age <= 18 and age >= 6 and my-school != nobody ] let targets rnd:weighted-n-of ceiling (targets-addressed-percent / 100 * count potential-targets) potential-targets [ criminal-tendency + criminal-tendency-addme-for-weighted-extraction ] - ifelse social-support = "educational" or social-support = "all" [ + show [ who ] of targets + if social-support = "educational" or social-support = "all" [ soc-add-educational targets - ][ - ifelse social-support = "psychological" or social-support = "all" [ - soc-add-psychological targets - ][ - if social-support = "more friends" or social-support = "all" [ - soc-add-more-friends targets - ] - ] + ] + if social-support = "psychological" or social-support = "all" [ + soc-add-psychological targets + ] + if social-support = "more friends" or social-support = "all" [ + soc-add-more-friends targets ] if social-support = "all" [ ; also give a job to the mothers welfare-createjobs (turtle-set [ in-offspring-link-neighbors ] of targets) with [ not male? ] @@ -501,12 +501,11 @@ to soc-add-psychological [ targets ] ; we use a random sample (arbitrarily set to 50 people size max) to avoid weighting sample from large populations ask targets [ let support-set other persons with [ - num-crimes-committed = 0 + num-crimes-committed = 0 and age > [ age ] of myself ] if any? support-set [ - create-friendship-link-with rnd:weighted-one-of (limited-extraction support-set) [ - 1 - (abs (age - [ age ] of myself ) / 120) - ] + let chosen rnd:weighted-one-of (limited-extraction support-set) [ 1 - (abs (age - [ age ] of myself ) / 120) ] + create-friendship-link-with chosen ] ] end @@ -1393,10 +1392,13 @@ to-report candidate-weight ; person reporter end to calculate-criminal-tendency + let co 0 foreach table:keys c-range-by-age-and-sex [ genderage -> - let subpop all-persons with [ age = item 1 genderage and male? = item 0 genderage ] + let top-and-value item 0 table:get c-range-by-age-and-sex genderage + let subpop all-persons with [ age >= item 1 genderage and age < item 0 top-and-value and male? = item 0 genderage ] if any? subpop [ - let c item 1 item 0 table:get c-range-by-age-and-sex genderage + set co co + count subpop + let c item 1 top-and-value ; c is the cell value. Now we calcolate criminal-tendency with the factors. ask subpop [ set criminal-tendency c @@ -1412,6 +1414,7 @@ to calculate-criminal-tendency assert [ -> abs (mean [ criminal-tendency ] of subpop - c) < 0.01 * c ] ] ] + show co calc-criminal-tendency-addme-for-weighted-extraction calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction if intervention-on? [ @@ -2222,7 +2225,7 @@ CHOOSER family-intervention family-intervention "none" "remove-if-caught" "remove-if-OC-member" "remove-if-caught-and-OC-member" -2 +0 CHOOSER 15 From c54d09c00d3b36167cfb07225ef6f001b89be6e4 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Sep 2019 13:12:31 +0200 Subject: [PATCH 12/38] remove show --- PROTON-OC.nlogo | 3 --- 1 file changed, 3 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index e19f66cd..04b86d81 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1392,12 +1392,10 @@ to-report candidate-weight ; person reporter end to calculate-criminal-tendency - let co 0 foreach table:keys c-range-by-age-and-sex [ genderage -> let top-and-value item 0 table:get c-range-by-age-and-sex genderage let subpop all-persons with [ age >= item 1 genderage and age < item 0 top-and-value and male? = item 0 genderage ] if any? subpop [ - set co co + count subpop let c item 1 top-and-value ; c is the cell value. Now we calcolate criminal-tendency with the factors. ask subpop [ @@ -1414,7 +1412,6 @@ to calculate-criminal-tendency assert [ -> abs (mean [ criminal-tendency ] of subpop - c) < 0.01 * c ] ] ] - show co calc-criminal-tendency-addme-for-weighted-extraction calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction if intervention-on? [ From 148bed64f52f074ff8aa29e0ca402fb19549f240 Mon Sep 17 00:00:00 2001 From: "mario.paolucci" Date: Tue, 3 Sep 2019 13:10:36 +0200 Subject: [PATCH 13/38] reparing xml --- experiments-xml/makeInterventions_rp0.6.py | 1 + experiments-xml/rp0.6p.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/experiments-xml/makeInterventions_rp0.6.py b/experiments-xml/makeInterventions_rp0.6.py index 4fa2ff32..11bfe1a8 100644 --- a/experiments-xml/makeInterventions_rp0.6.py +++ b/experiments-xml/makeInterventions_rp0.6.py @@ -32,6 +32,7 @@ def indent(elem, level=0): al.set('repetitions', str(int(repetitions/3))) al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value='"preventive"')) al.insert(1, ET.Element("value", value='"disruptive"')) al.insert(1, ET.Element("value", value='"students"')) al.insert(1, ET.Element("value", value='"facilitators"')) diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml index db91fb7a..27a05028 100644 --- a/experiments-xml/rp0.6p.xml +++ b/experiments-xml/rp0.6p.xml @@ -66,6 +66,7 @@ + From c26a050ef59982e20045d5a153d8a4f087be8f88 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Sep 2019 14:31:07 +0200 Subject: [PATCH 14/38] Everybody was a recruit at year one. --- PROTON-OC.nlogo | 1 + 1 file changed, 1 insertion(+) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 04b86d81..ceefabb2 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -911,6 +911,7 @@ to init-person-empty ; person command set age calculate-age set my-school nobody set target-of-intervention false + set new-recruit -2 end to let-migrants-in From c5f6ea0811f8e45d5528417af725deee73d86c8f Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Sep 2019 18:27:35 +0200 Subject: [PATCH 15/38] Changed the way we generate arrests - now it is like crimes, a fixed number It is now distributed on all the population of the criminals, with flat weights unless there is an intervention. --- PROTON-OC.nlogo | 93 +++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 54 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index ceefabb2..50cf77ab 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -42,6 +42,7 @@ persons-own [ criminal-tendency my-school target-of-intervention + arrest-weight ; WARNING: If you add any variable here, it needs to be added to `prisoners-own` as well! ] @@ -70,6 +71,7 @@ prisoners-own [ criminal-tendency my-school target-of-intervention + arrest-weight ] jobs-own [ @@ -124,7 +126,6 @@ globals [ c-range-by-age-and-sex labour-status-by-age-and-sex labour-status-range - oc-status ; mean one over all oc members, gives probability of arrest. ; outputs number-deceased facilitator-fails @@ -1239,10 +1240,19 @@ to commit-crimes ] ] ] - if any? persons with [ oc-member? ] [ calc-OC-status ] - foreach co-offender-groups [ co-offenders -> - if random-float 1 < (arrest-probability-with-intervention co-offenders) [ get-caught co-offenders ] + let criminals (turtle-set co-offender-groups) + if-else (intervention-on? and facilitator-repression?) [ + ask criminals [ set arrest-weight ifelse-value (facilitator?) [ facilitator-repression-multiplier ] [ 1 ] ] + ] [ + if-else (intervention-on? and OC-boss-repression? and any? criminals with [ oc-member? ]) [ + ask criminals with [ not oc-member? ] [ set arrest-weight 1 ] + calc-OC-status criminals with [ oc-member? ] + ] [ ; no intervention active + ask criminals [ set arrest-weight 1 ] + ] ] + let target-n-of-arrests number-arrests-per-year / ticks-per-year / 10000 * count persons + ask rnd:weighted-n-of target-n-of-arrests criminals [ arrest-weight ] [ get-caught ] end to-report make-co-offending-histo [ co-offender-groups ] @@ -1255,38 +1265,15 @@ to-report make-co-offending-histo [ co-offender-groups ] report counts end -to-report arrest-probability-with-intervention [ group ] - ; the OC intervention self-compensates (bosses more likely, lackeys less - if-else (intervention-on? and OC-boss-repression? and any? group with [ oc-member? ]) [ - report count group * OC-repression-prob group - ][ - ; the facilitator intervention needs to compensate with everybody, including the non-facilitators - if-else (intervention-on? and facilitator-repression?) [ - report ifelse-value any? group with [ facilitator? ] [ - count group * arrest-rate * facilitator-repression-multiplier - ][ - count group * arrest-rate * correction-for-non-facilitators - ] - ][ - report count group * arrest-rate - ] - ] -end - -to-report OC-repression-prob [ a-group ] - let representative one-of a-group with [ OC-member? ] - report arrest-rate * table:get oc-status [ who ] of representative -end - -to calc-OC-status - set oc-status table:from-list [ list who calc-OC-member-position ] of persons with [ oc-member? ] - let min-score min table:values oc-status - let divide-score mean table:values oc-status - min-score set divide-score divide-score - foreach table:keys oc-status [ k -> - table:put oc-status k ifelse-value (divide-score = 0) [ +; of a group of criminals +to calc-OC-status [ oc-offenders ] + ask oc-offenders [ set arrest-weight calc-OC-member-position ] + let min-score min [ arrest-weight ] of oc-offenders + let divide-score mean [ arrest-weight - min-score ] of oc-offenders + ask oc-offenders [ set arrest-weight ifelse-value (divide-score = 0) [ 1 ] [ - (table:get oc-status k - min-score) / divide-score + (arrest-weight - min-score) / divide-score ] ] end @@ -1360,26 +1347,24 @@ to commit-crime [ co-offenders ] ; observer command ask criminal-links with [ co-off-flag = 2 ] [ set num-co-offenses num-co-offenses + 1 ] end -to get-caught [ co-offenders ] - ask co-offenders [ - set number-law-interventions-this-tick number-law-interventions-this-tick + 1 - set people-jailed people-jailed + 1 - set breed prisoners - set shape "face sad" - ifelse male? - [ set sentence-countdown item 0 rnd:weighted-one-of-list male-punishment-length-list [ [ p ] -> last p ] ] - [ set sentence-countdown item 0 rnd:weighted-one-of-list female-punishment-length-list [ [ p ] -> last p ] ] - set sentence-countdown sentence-countdown * punishment-length - if my-job != nobody [ - ask my-job [ set my-worker nobody ] - set my-job nobody - set job-level 1 - ] - if my-school != nobody [ leave-school ] - ask my-professional-links [ die ] - ask my-school-links [ die ] - ; we keep the friendship links and the family links +to get-caught + set number-law-interventions-this-tick number-law-interventions-this-tick + 1 + set people-jailed people-jailed + 1 + set breed prisoners + set shape "face sad" + ifelse male? + [ set sentence-countdown item 0 rnd:weighted-one-of-list male-punishment-length-list [ [ p ] -> last p ] ] + [ set sentence-countdown item 0 rnd:weighted-one-of-list female-punishment-length-list [ [ p ] -> last p ] ] + set sentence-countdown sentence-countdown * punishment-length + if my-job != nobody [ + ask my-job [ set my-worker nobody ] + set my-job nobody + set job-level 1 ] + if my-school != nobody [ leave-school ] + ask my-professional-links [ die ] + ask my-school-links [ die ] + ; we keep the friendship links and the family links end ; this is what in the paper is called r - this is r @@ -2306,7 +2291,7 @@ intervention-start intervention-start 0 100 -13.0 +12.0 1 1 NIL From 4b2766c331e87d491028028a51c7660eaf0feb8b Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Sep 2019 18:43:56 +0200 Subject: [PATCH 16/38] removing silly prints --- PROTON-OC.nlogo | 2 -- 1 file changed, 2 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 50cf77ab..61d67469 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -474,12 +474,10 @@ to calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction end to socialization-intervene - show "a" let potential-targets all-persons with [ age <= 18 and age >= 6 and my-school != nobody ] let targets rnd:weighted-n-of ceiling (targets-addressed-percent / 100 * count potential-targets) potential-targets [ criminal-tendency + criminal-tendency-addme-for-weighted-extraction ] - show [ who ] of targets if social-support = "educational" or social-support = "all" [ soc-add-educational targets ] From b68382657259668d99d61bd419fcc362c09afb91 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 3 Sep 2019 21:45:58 +0200 Subject: [PATCH 17/38] old test makes no sense anymore, removed. --- .../labss/proton/oc/tests/OCNetTests.scala | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCNetTests.scala b/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCNetTests.scala index 4cf3247c..764bc3e7 100644 --- a/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCNetTests.scala +++ b/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCNetTests.scala @@ -21,30 +21,6 @@ class OCNetTests extends OCModelSuite { ws.rpt(""" all? all-persons [ count other (turtle-set nw:turtles-in-radius 1 nw:turtles-in-reverse-radius 1) = count person-link-neighbors ] """) shouldBe true - var target = ws.rpt(""" - sum [ arrest-rate ] of persons with [ oc-member? ] - """).asInstanceOf[Number].floatValue - var value = ws.rpt(""" - sum [ (OC-repression-prob turtle-set self) ] of persons with [ oc-member? ] - """).asInstanceOf[Number].floatValue - if (target - value > 1E-5) { - println(target + " different from " + value) - println(ws.rpt(""" - [ (OC-repression-prob turtle-set self) ] of persons with [ oc-member? ] - """)) - println(ws.rpt(""" - [ count person-link-neighbors with [ oc-member? ] ] of persons with [ oc-member? ] - """)) - ws.cmd("calc-degree-correction-for-bosses") - target = ws.rpt(""" - sum [ arrest-rate ] of persons with [ oc-member? ] - """).asInstanceOf[Number].floatValue - value = ws.rpt(""" - sum [ (OC-repression-prob turtle-set self) ] of persons with [ oc-member? ] - """).asInstanceOf[Number].floatValue - if (target - value < 1E-5) {println("problem solved by recalc")} - } - //ws.rpt("ifelse-value (ticks mod ticks-per-year = 0) [ sum [ arrest-rate ] of persons with [ oc-member? ] - sum [ (OC-repression-prob turtle-set self) ] of persons with [ oc-member? ] < 1E-5 ] [ true ]") shouldBe true } } } From 94238986654642857b52412f29ec0263b27dee21 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Wed, 4 Sep 2019 12:10:11 +0200 Subject: [PATCH 18/38] Adding a correction in the case of few arrests --- PROTON-OC.nlogo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 61d67469..cdbe785b 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1250,6 +1250,8 @@ to commit-crimes ] ] let target-n-of-arrests number-arrests-per-year / ticks-per-year / 10000 * count persons + ; if I don't add some 1, for low levels of arrests and few agents nobody ever will be arrested. + set target-n-of-arrests floor target-n-of-arrests + ifelse-value (random-float 1 < (target-n-of-arrests - floor target-n-of-arrests)) [ 1 ] [ 0 ] ask rnd:weighted-n-of target-n-of-arrests criminals [ arrest-weight ] [ get-caught ] end @@ -2276,7 +2278,7 @@ SWITCH 743 OC-boss-repression? OC-boss-repression? -1 +0 1 -1000 @@ -2603,7 +2605,7 @@ CHOOSER data-folder data-folder "inputs/palermo/data/" "inputs/eindhoven/data/" -1 +0 SWITCH 1095 @@ -2612,7 +2614,7 @@ SWITCH 783 facilitator-repression? facilitator-repression? -1 +0 1 -1000 From e72004c134ed69bd62d52f6e4ee34ed93918b371 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Wed, 4 Sep 2019 16:06:09 +0200 Subject: [PATCH 19/38] Updating the xml, adding a run with more crime and arrests --- experiments-xml/rp0.6e.xml | 2 + experiments-xml/rp0.6p.xml | 2 + experiments-xml/rp0.6pmorearr.xml | 157 ++++++++++++++++++++++++++++++ experiments-xml/rp_base.xml | 2 + 4 files changed, 163 insertions(+) create mode 100644 experiments-xml/rp0.6pmorearr.xml diff --git a/experiments-xml/rp0.6e.xml b/experiments-xml/rp0.6e.xml index c1faa0da..a184b7b8 100644 --- a/experiments-xml/rp0.6e.xml +++ b/experiments-xml/rp0.6e.xml @@ -61,6 +61,8 @@ count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml index 27a05028..bc1b9ed1 100644 --- a/experiments-xml/rp0.6p.xml +++ b/experiments-xml/rp0.6p.xml @@ -61,6 +61,8 @@ count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons diff --git a/experiments-xml/rp0.6pmorearr.xml b/experiments-xml/rp0.6pmorearr.xml new file mode 100644 index 00000000..1b18f39f --- /dev/null +++ b/experiments-xml/rp0.6pmorearr.xml @@ -0,0 +1,157 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp_base.xml b/experiments-xml/rp_base.xml index 25535cbf..aec88964 100644 --- a/experiments-xml/rp_base.xml +++ b/experiments-xml/rp_base.xml @@ -80,6 +80,8 @@ count all-persons with [ my-school != nobody ] count all-persons with [ my-job != nobody ] kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons From 0260793d9343be99f18dcbbdb2f7e3af6a1c6882 Mon Sep 17 00:00:00 2001 From: "mario.paolucci" Date: Wed, 4 Sep 2019 22:15:55 +0200 Subject: [PATCH 20/38] adding e xml --- experiments-xml/rp0.6emorearr.xml | 158 ++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 experiments-xml/rp0.6emorearr.xml diff --git a/experiments-xml/rp0.6emorearr.xml b/experiments-xml/rp0.6emorearr.xml new file mode 100644 index 00000000..a999448b --- /dev/null +++ b/experiments-xml/rp0.6emorearr.xml @@ -0,0 +1,158 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a95c948024fdb4ae5b4cdc044077a84b7c9e5e08 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Thu, 5 Sep 2019 08:49:50 +0200 Subject: [PATCH 21/38] Remove excess professional links to make students suitable --- PROTON-OC.nlogo | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index cdbe785b..c8bdf128 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -423,6 +423,7 @@ to go retire-persons make-baby remove-excess-friends + remove-excess-professional-links make-friends ask prisoners [ set sentence-countdown sentence-countdown - 1 @@ -658,6 +659,15 @@ to remove-excess-friends ] end +to remove-excess-professional-links + ask persons [ + let num-friends count my-professional-links + if num-friends > 30 [ + ask n-of (num-friends - 30) my-professional-links [ die ] + ] + ] +end + to-report dunbar-number ; person reporter report 150 - abs (age - 30) end @@ -2218,7 +2228,7 @@ CHOOSER social-support social-support "none" "educational" "psychological" "more friends" "all" -0 +4 CHOOSER 15 @@ -2239,7 +2249,7 @@ targets-addressed-percent targets-addressed-percent 0 100 -10.0 +100.0 1 1 NIL @@ -2278,7 +2288,7 @@ SWITCH 743 OC-boss-repression? OC-boss-repression? -0 +1 1 -1000 @@ -2291,7 +2301,7 @@ intervention-start intervention-start 0 100 -12.0 +13.0 1 1 NIL @@ -2424,7 +2434,7 @@ CHOOSER intervention intervention "use current values" "baseline" "preventive" "disruptive" "students" "facilitators" -0 +4 MONITOR 268 @@ -2614,7 +2624,7 @@ SWITCH 783 facilitator-repression? facilitator-repression? -0 +1 1 -1000 From 18b64131ee93ddc2141d61cff40d8a1ed00815a2 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sun, 8 Sep 2019 11:54:15 +0200 Subject: [PATCH 22/38] Manage no-crimes error in ifelse-value in reporter From 5d0150089339f76363b349b5be083f2a5c115389 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 10 Sep 2019 10:50:11 +0200 Subject: [PATCH 23/38] calculating criminal tendency compensation for weighted extraction more often. --- PROTON-OC.nlogo | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index c8bdf128..ebd626f5 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -60,6 +60,7 @@ prisoners-own [ propensity oc-member? cached-oc-embeddedness + oc-embeddedness-fresh? partner ; the person's significant other retired? number-of-children @@ -417,6 +418,8 @@ to go let-migrants-in return-kids ] + calc-criminal-tendency-addme-for-weighted-extraction + calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction wedding reset-oc-embeddedness commit-crimes @@ -1408,8 +1411,6 @@ to calculate-criminal-tendency assert [ -> abs (mean [ criminal-tendency ] of subpop - c) < 0.01 * c ] ] ] - calc-criminal-tendency-addme-for-weighted-extraction - calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction if intervention-on? [ if facilitator-repression? [ calc-correction-for-non-facilitators ] ] @@ -1780,10 +1781,6 @@ to-report the-families report components end -to-report families-size-and-OC - report map [ i -> (list count i mean [ oc-embeddedness ] of i) ] the-families -end - to-report compare-edu-wealth-table report reduce sentence map [ key -> @@ -2168,7 +2165,7 @@ num-oc-persons 2 200 30.0 -5 +1 1 NIL HORIZONTAL From d532d768ca9edd4a6954a89aa535c92036596979 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 10 Sep 2019 11:38:06 +0200 Subject: [PATCH 24/38] Preparing to run rp0.61 --- PROTON-OC.nlogo | 8 +- experiments-xml/makeInterventions_rp0.61.py | 49 +++++++ experiments-xml/rp0.61p.xml | 155 ++++++++++++++++++++ 3 files changed, 208 insertions(+), 4 deletions(-) create mode 100644 experiments-xml/makeInterventions_rp0.61.py create mode 100644 experiments-xml/rp0.61p.xml diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index ebd626f5..1f49ebad 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -781,7 +781,7 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? false - set targets-addressed-percent 100 + set targets-addressed-percent 10 set ticks-between-intervention 1 set intervention-start 13 set intervention-end 9999 @@ -803,8 +803,8 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? false - set targets-addressed-percent 100 - set ticks-between-intervention 1 + set targets-addressed-percent 10 + set ticks-between-intervention 12 set intervention-start 13 set intervention-end 9999 ] @@ -814,7 +814,7 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? true - set facilitator-repression-multiplier 20 + set facilitator-repression-multiplier 2 set targets-addressed-percent 10 ; not appliable set ticks-between-intervention 1 set intervention-start 13 diff --git a/experiments-xml/makeInterventions_rp0.61.py b/experiments-xml/makeInterventions_rp0.61.py new file mode 100644 index 00000000..1a5269c0 --- /dev/null +++ b/experiments-xml/makeInterventions_rp0.61.py @@ -0,0 +1,49 @@ +import xml.etree.ElementTree as ET + +repetitions = 20 + +#pretty print method +def indent(elem, level=0): + i = "\n" + level*" " + j = "\n" + (level-1)*" " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for subelem in elem: + indent(subelem, level+1) + if not elem.tail or not elem.tail.strip(): + elem.tail = j + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = j + return elem + +# ---------------------------------- +version="rp0.61p" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/3))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value='"preventive"')) +al.insert(1, ET.Element("value", value='"students"')) +al.insert(1, ET.Element("value", value='"facilitators"')) + +al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3000")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + + + + diff --git a/experiments-xml/rp0.61p.xml b/experiments-xml/rp0.61p.xml new file mode 100644 index 00000000..9d02fe1d --- /dev/null +++ b/experiments-xml/rp0.61p.xml @@ -0,0 +1,155 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 7425c40749b36f9b4c81596c4922b05ee1b7673e Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 11 Sep 2019 12:10:07 +0200 Subject: [PATCH 25/38] Preparing to run experiments with constant population This is implemented by turning off migrants (but that's not strictly necessary, in fact) and then just replacing dead people. It generates an implausible shape for the population. --- PROTON-OC.nlogo | 121 +++++++++++++++++++++++------------- experiments-xml/rp_base.xml | 1 + 2 files changed, 79 insertions(+), 43 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 1f49ebad..b1823b9a 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -927,51 +927,64 @@ to init-person-empty ; person command end to let-migrants-in - ; calculate the difference between deaths and birth - let to-replace max list 0 (num-persons - count all-persons) - let free-jobs jobs with [ my-worker = nobody ] - let num-to-add min (list to-replace count free-jobs) - set number-migrants number-migrants + num-to-add - ask n-of num-to-add free-jobs [ - ; we do not care about education level and wealth of migrants, as those variables - ; exist only in order to generate the job position. - hatch-persons 1 [ - init-person-empty - set my-job myself - ask my-job [ set my-worker myself ] - let employees turtle-set [ current-employees ] of [ my-employer ] of my-job - let conn decide-conn-number employees 20 - create-professional-links-with n-of conn other employees - set birth-tick ticks - (random 20 + 18) * ticks-per-year - set age calculate-age - set wealth-level [ job-level ] of myself - set migrant? true + if migration-on? [ + ; calculate the difference between deaths and birth + let to-replace max list 0 (num-persons - count all-persons) + let free-jobs jobs with [ my-worker = nobody ] + let num-to-add min (list to-replace count free-jobs) + set number-migrants number-migrants + num-to-add + ask n-of num-to-add free-jobs [ + ; we do not care about education level and wealth of migrants, as those variables + ; exist only in order to generate the job position. + hatch-persons 1 [ + init-person-empty + set my-job myself + ask my-job [ set my-worker myself ] + let employees turtle-set [ current-employees ] of [ my-employer ] of my-job + let conn decide-conn-number employees 20 + create-professional-links-with n-of conn other employees + set birth-tick ticks - (random 20 + 18) * ticks-per-year + set age calculate-age + set wealth-level [ job-level ] of myself + set migrant? true + ] ] ] end to make-baby - ask persons with [ not male? and age >= 14 and age <= 50 ] [ - if random-float 1 < p-fertility [ - ; we stop counting after 2 because probability stays the same - set number-of-children number-of-children + 1 - set number-born number-born + 1 - hatch-persons 1 [ - set wealth-level [ wealth-level ] of myself - set birth-tick ticks - init-person-empty - ask [ offspring-link-neighbors ] of myself [ - create-sibling-links-with other [ offspring-link-neighbors ] of myself - ] - create-household-links-with (turtle-set myself [ household-link-neighbors ] of myself) - create-offspring-links-from (turtle-set myself [ partner-link-neighbors ] of myself) - let dad one-of in-offspring-link-neighbors with [ male? ] - set max-education-level ifelse-value (any? turtle-set dad) [ - [ max-education-level ] of dad - ][ - [ max-education-level ] of myself - ] - ] + ifelse constant-population? [ + let breeding-target num-persons - count all-persons + show breeding-target + if breeding-target > 0 [ + let breeding-pool n-of (breeding-target * 10) persons with [ not male? and age >= 14 and age <= 50 ] + ask rnd:weighted-n-of breeding-target breeding-pool [ p-fertility ] [ init-baby ] + ] + ] [ + ask persons with [ not male? and age >= 14 and age <= 50 ] [ + if random-float 1 < p-fertility [ init-baby ] + ] + ] +end + +to init-baby ; person procedure + ; we stop counting after 2 because probability stays the same + set number-of-children number-of-children + 1 + set number-born number-born + 1 + hatch-persons 1 [ + set wealth-level [ wealth-level ] of myself + set birth-tick ticks + init-person-empty + ask [ offspring-link-neighbors ] of myself [ + create-sibling-links-with other [ offspring-link-neighbors ] of myself + ] + create-household-links-with (turtle-set myself [ household-link-neighbors ] of myself) + create-offspring-links-from (turtle-set myself [ partner-link-neighbors ] of myself) + let dad one-of in-offspring-link-neighbors with [ male? ] + set max-education-level ifelse-value (any? turtle-set dad) [ + [ max-education-level ] of dad + ][ + [ max-education-level ] of myself ] ] end @@ -2246,7 +2259,7 @@ targets-addressed-percent targets-addressed-percent 0 100 -100.0 +10.0 1 1 NIL @@ -2261,7 +2274,7 @@ ticks-between-intervention ticks-between-intervention 1 24 -1.0 +12.0 1 1 NIL @@ -2431,7 +2444,7 @@ CHOOSER intervention intervention "use current values" "baseline" "preventive" "disruptive" "students" "facilitators" -4 +0 MONITOR 268 @@ -2640,6 +2653,28 @@ facilitator-repression-multiplier NIL HORIZONTAL +SWITCH +865 +865 +1035 +898 +migration-on? +migration-on? +0 +1 +-1000 + +SWITCH +865 +905 +1052 +938 +constant-population? +constant-population? +1 +1 +-1000 + @#$#@#$#@ ## WHAT IS IT? diff --git a/experiments-xml/rp_base.xml b/experiments-xml/rp_base.xml index aec88964..02c5c5ec 100644 --- a/experiments-xml/rp_base.xml +++ b/experiments-xml/rp_base.xml @@ -56,6 +56,7 @@ count prisoners count persons with [ migrant? ] number-deceased + number-born sum [ num-crimes-committed ] of persons count persons with [ my-job != nobody ] count jobs with [ my-worker != nobody ] From d06b57227ea859bbe45d3bdbd21ea2f880d11354 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 11 Sep 2019 17:11:16 +0200 Subject: [PATCH 26/38] adding names interventions to distinguish between normal and strong. Also, getting rp0.62 ready. --- PROTON-OC.nlogo | 64 +------- experiments-xml/makeInterventions_rp0.62.py | 87 ++++++++++ experiments-xml/rp0.62p.xml | 170 ++++++++++++++++++++ experiments-xml/rp0.62p_strong.xml | 170 ++++++++++++++++++++ experiments-xml/rp_base.xml | 18 ++- nls_files/experiments.nls | 104 ++++++++++++ 6 files changed, 548 insertions(+), 65 deletions(-) create mode 100644 experiments-xml/makeInterventions_rp0.62.py create mode 100644 experiments-xml/rp0.62p.xml create mode 100644 experiments-xml/rp0.62p_strong.xml diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index b1823b9a..0bb2ae22 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -763,65 +763,6 @@ to setup-persons-and-friendship ] end -to choose-intervention-setting - if intervention = "baseline" [ - set family-intervention "none" - set social-support "none" - set welfare-support "none" - set OC-boss-repression? false - set facilitator-repression? false - set targets-addressed-percent 10 - set ticks-between-intervention 1 - set intervention-start 13 - set intervention-end 9999 - ] - if intervention = "preventive" [ - set family-intervention "remove-if-OC-member" - set social-support "none" - set welfare-support "none" - set OC-boss-repression? false - set facilitator-repression? false - set targets-addressed-percent 10 - set ticks-between-intervention 1 - set intervention-start 13 - set intervention-end 9999 - ] - if intervention = "disruptive" [ - set family-intervention "none" - set social-support "none" - set welfare-support "none" - set OC-boss-repression? true - set facilitator-repression? false - set targets-addressed-percent 10 ; not appliable - set ticks-between-intervention 1 - set intervention-start 13 - set intervention-end 9999 - ] - if intervention = "students" [ - set family-intervention "none" - set social-support "all" - set welfare-support "none" - set OC-boss-repression? false - set facilitator-repression? false - set targets-addressed-percent 10 - set ticks-between-intervention 12 - set intervention-start 13 - set intervention-end 9999 - ] - if intervention = "facilitators" [ - set family-intervention "none" - set social-support "none" - set welfare-support "none" - set OC-boss-repression? false - set facilitator-repression? true - set facilitator-repression-multiplier 2 - set targets-addressed-percent 10 ; not appliable - set ticks-between-intervention 1 - set intervention-start 13 - set intervention-end 9999 - ] -end - to-report up-to-n-of-other-with [ n p ] let result [] ask other persons [ @@ -955,7 +896,6 @@ end to make-baby ifelse constant-population? [ let breeding-target num-persons - count all-persons - show breeding-target if breeding-target > 0 [ let breeding-pool n-of (breeding-target * 10) persons with [ not male? and age >= 14 and age <= 50 ] ask rnd:weighted-n-of breeding-target breeding-pool [ p-fertility ] [ init-baby ] @@ -2238,7 +2178,7 @@ CHOOSER social-support social-support "none" "educational" "psychological" "more friends" "all" -4 +0 CHOOSER 15 @@ -2443,7 +2383,7 @@ CHOOSER 750 intervention intervention -"use current values" "baseline" "preventive" "disruptive" "students" "facilitators" +"use current values" "baseline" "preventive" "disruptive" "students" "facilitators" "preventive-strong" "disruptive-strong" "students-strong" "facilitators-strong" 0 MONITOR diff --git a/experiments-xml/makeInterventions_rp0.62.py b/experiments-xml/makeInterventions_rp0.62.py new file mode 100644 index 00000000..2f3e5804 --- /dev/null +++ b/experiments-xml/makeInterventions_rp0.62.py @@ -0,0 +1,87 @@ +import xml.etree.ElementTree as ET + +repetitions = 20 + +#pretty print method +def indent(elem, level=0): + i = "\n" + level*" " + j = "\n" + (level-1)*" " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for subelem in elem: + indent(subelem, level+1) + if not elem.tail or not elem.tail.strip(): + elem.tail = j + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = j + return elem + +# ---------------------------------- +version="rp0.62p" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/4))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value='"preventive"')) +al.insert(1, ET.Element("value", value='"students"')) +al.insert(1, ET.Element("value", value='"facilitators"')) + +al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3000")) + +al = tree.find('.//enumeratedValueSet[@variable="constant-population?"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="true")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + +#-------------------------------------- + +version="rp0.62p_strong" +tree = ET.parse('rp_base.xml') +root = tree.getroot() + +al = tree.find('.//experiment') +print(al) +al.set('name', version) +al.set('repetitions', str(int(repetitions/6))) + +al = tree.find('.//enumeratedValueSet[@variable="intervention"]') +al.insert(1, ET.Element("value", value='"preventive-strong"')) +al.insert(1, ET.Element("value", value='"facilitators-strong"')) + +al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="3000")) + +al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="100")) + +al = tree.find('.//enumeratedValueSet[@variable="number-arrests-per-year"]') +al.insert(1, ET.Element("value", value="300")) + +al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="20")) + +al = tree.find('.//enumeratedValueSet[@variable="constant-population?"]') +for x in al.getchildren(): al.remove(x) +al.insert(1, ET.Element("value", value="true")) + +#write to file +tree = ET.ElementTree(indent(root)) +tree.write(version + '.xml', encoding='utf-8') + diff --git a/experiments-xml/rp0.62p.xml b/experiments-xml/rp0.62p.xml new file mode 100644 index 00000000..590032ef --- /dev/null +++ b/experiments-xml/rp0.62p.xml @@ -0,0 +1,170 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.62p_strong.xml b/experiments-xml/rp0.62p_strong.xml new file mode 100644 index 00000000..f9fa778f --- /dev/null +++ b/experiments-xml/rp0.62p_strong.xml @@ -0,0 +1,170 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp_base.xml b/experiments-xml/rp_base.xml index 02c5c5ec..f5a80677 100644 --- a/experiments-xml/rp_base.xml +++ b/experiments-xml/rp_base.xml @@ -91,6 +91,9 @@ + + + @@ -116,9 +119,6 @@ - - - @@ -179,6 +179,18 @@ + + + + + + + + + + + + diff --git a/nls_files/experiments.nls b/nls_files/experiments.nls index 23fdadaa..f6d1b5b2 100644 --- a/nls_files/experiments.nls +++ b/nls_files/experiments.nls @@ -1,3 +1,107 @@ +to choose-intervention-setting + if intervention = "baseline" [ + set family-intervention "none" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? false + set targets-addressed-percent 10 + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "preventive" [ + set family-intervention "remove-if-OC-member" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? false + set targets-addressed-percent 10 + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "preventive-strong" [ + set family-intervention "remove-if-OC-member" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? false + set targets-addressed-percent 100 + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "disruptive" [ + set family-intervention "none" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? true + set facilitator-repression? false + set targets-addressed-percent 10 ; not applicable + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "disruptive-strong" [ + set family-intervention "none" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? true + set facilitator-repression? false + set targets-addressed-percent 10 ; not applicable + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "students" [ + set family-intervention "none" + set social-support "all" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? false + set targets-addressed-percent 10 + set ticks-between-intervention 12 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "students-strong" [ + set family-intervention "none" + set social-support "all" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? false + set targets-addressed-percent 100 + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "facilitators" [ + set family-intervention "none" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? true + set facilitator-repression-multiplier 2 + set targets-addressed-percent 10 ; not applicable + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] + if intervention = "facilitators-strong" [ + set family-intervention "none" + set social-support "none" + set welfare-support "none" + set OC-boss-repression? false + set facilitator-repression? true + set facilitator-repression-multiplier 20 + set targets-addressed-percent 10 ; not applicable + set ticks-between-intervention 1 + set intervention-start 13 + set intervention-end 9999 + ] +end + to-report o1 ; number of current OC members report count all-persons with [ oc-member? ] From 3111ca5f6736947e7da706ee43e29d81b27dcbc8 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sun, 15 Sep 2019 10:36:53 +0200 Subject: [PATCH 27/38] Reorganizing the interface.for public release --- PROTON-OC.nlogo | 566 ++++++++++++++++++++++-------------------------- 1 file changed, 264 insertions(+), 302 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 0bb2ae22..db13cfbe 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1764,13 +1764,13 @@ to-report just-changed-age? end @#$#@#$#@ GRAPHICS-WINDOW -400 -10 -1083 -694 +950 +605 +991 +647 -1 -1 -20.455 +1.0 1 10 1 @@ -1791,10 +1791,10 @@ ticks 30.0 BUTTON -16 -129 -131 -162 +330 +215 +445 +248 NIL setup NIL @@ -1808,10 +1808,10 @@ NIL 1 SLIDER -15 -15 -260 -48 +0 +10 +245 +43 num-persons num-persons 100 @@ -1823,10 +1823,10 @@ NIL HORIZONTAL MONITOR -270 -185 -380 -230 +810 +110 +925 +155 NIL count jobs 17 @@ -1834,10 +1834,10 @@ count jobs 11 SWITCH -265 -50 -388 -83 +0 +610 +245 +643 output? output? 1 @@ -1845,38 +1845,21 @@ output? -1000 MONITOR -270 -235 -380 -280 +810 +160 +925 +205 NIL count links 17 1 11 -BUTTON -136 -129 -261 -162 -NIL -profile-setup -NIL -1 -T -OBSERVER -NIL -NIL -NIL -NIL -1 - INPUTBOX -1230 -60 -1345 -120 +0 +480 +245 +540 ticks-per-year 12.0 1 @@ -1884,10 +1867,10 @@ ticks-per-year Number BUTTON -16 -169 -71 -202 +330 +255 +385 +288 go go NIL @@ -1901,10 +1884,10 @@ NIL 0 BUTTON -76 -169 -131 -202 +390 +255 +445 +288 NIL go T @@ -1917,35 +1900,18 @@ NIL NIL 0 -BUTTON -136 -169 -261 -202 -NIL -profile-go -NIL -1 -T -OBSERVER -NIL -NIL -NIL -NIL -1 - OUTPUT -1098 -409 -1345 -608 +270 +335 +517 +640 10 SLIDER -1097 -159 -1342 -192 +0 +265 +245 +298 max-accomplice-radius max-accomplice-radius 0 @@ -1957,10 +1923,10 @@ NIL HORIZONTAL SLIDER -1097 -194 -1342 -227 +0 +300 +245 +333 oc-embeddedness-radius oc-embeddedness-radius 1 @@ -1972,10 +1938,10 @@ NIL HORIZONTAL SLIDER -1097 -229 -1342 -262 +0 +335 +245 +368 retirement-age retirement-age 0 @@ -1987,10 +1953,10 @@ years old HORIZONTAL SLIDER -1097 -264 -1342 -297 +0 +150 +245 +183 number-arrests-per-year number-arrests-per-year 0 @@ -2002,10 +1968,10 @@ NIL HORIZONTAL MONITOR -270 -285 -380 -330 +810 +210 +925 +255 NIL count prisoners 17 @@ -2013,10 +1979,10 @@ count prisoners 11 PLOT -15 -700 -390 -855 +945 +270 +1285 +425 Age distribution age count @@ -2031,10 +1997,10 @@ PENS "default" 1.0 1 -16777216 true "" "histogram [ age ] of persons" MONITOR -270 -335 -378 -380 +810 +260 +925 +305 migrants count persons with [ migrant? ] 17 @@ -2042,32 +2008,21 @@ count persons with [ migrant? ] 11 MONITOR -270 -385 -380 -430 -NIL +810 +310 +925 +355 +dead number-deceased 17 1 11 -MONITOR -270 -435 -380 -480 -crimes -sum [ num-crimes-committed ] of persons -17 -1 -11 - SLIDER -1097 -299 -1342 -332 +0 +370 +245 +403 nat-propensity-m nat-propensity-m 0 @@ -2079,10 +2034,10 @@ NIL HORIZONTAL SLIDER -1097 -334 -1342 -367 +0 +405 +245 +438 nat-propensity-sigma nat-propensity-sigma 0 @@ -2094,10 +2049,10 @@ NIL HORIZONTAL SLIDER -1097 -369 -1344 -402 +0 +440 +245 +473 nat-propensity-threshold nat-propensity-threshold 0 @@ -2109,10 +2064,10 @@ sd HORIZONTAL SLIDER -16 -54 -261 -87 +0 +45 +245 +78 num-oc-persons num-oc-persons 2 @@ -2124,10 +2079,10 @@ NIL HORIZONTAL SLIDER -16 -89 -261 -122 +0 +80 +245 +113 num-oc-families num-oc-families 1 @@ -2139,10 +2094,10 @@ NIL HORIZONTAL MONITOR -270 -486 -382 -531 +810 +360 +925 +405 NIL number-born 17 @@ -2150,10 +2105,10 @@ number-born 11 MONITOR -270 -136 -380 -181 +810 +61 +925 +106 OC members count all-persons with [ oc-member? ] 17 @@ -2161,40 +2116,40 @@ count all-persons with [ oc-member? ] 11 CHOOSER -15 -210 -260 -255 +540 +200 +785 +245 family-intervention family-intervention "none" "remove-if-caught" "remove-if-OC-member" "remove-if-caught-and-OC-member" 0 CHOOSER -15 -260 -260 -305 +540 +245 +785 +290 social-support social-support "none" "educational" "psychological" "more friends" "all" 0 CHOOSER -15 -310 -260 -355 +540 +290 +785 +335 welfare-support welfare-support "none" "job-mother" "job-child" 0 SLIDER -15 -360 -260 -393 +540 +60 +785 +93 targets-addressed-percent targets-addressed-percent 0 @@ -2206,10 +2161,10 @@ NIL HORIZONTAL SLIDER -15 -400 -260 -433 +540 +95 +785 +128 ticks-between-intervention ticks-between-intervention 1 @@ -2221,10 +2176,10 @@ NIL HORIZONTAL SWITCH -1095 -615 -1340 -648 +540 +340 +785 +373 OC-members-scrutinize? OC-members-scrutinize? 1 @@ -2232,10 +2187,10 @@ OC-members-scrutinize? -1000 SWITCH -1095 -710 -1340 -743 +540 +375 +785 +408 OC-boss-repression? OC-boss-repression? 1 @@ -2243,10 +2198,10 @@ OC-boss-repression? -1000 SLIDER -15 -435 -260 -468 +540 +130 +785 +163 intervention-start intervention-start 0 @@ -2258,10 +2213,10 @@ NIL HORIZONTAL SLIDER -15 -470 -260 -503 +540 +165 +785 +198 intervention-end intervention-end 0 @@ -2273,10 +2228,10 @@ NIL HORIZONTAL SLIDER -405 -750 -565 -783 +0 +190 +245 +223 percentage-of-facilitators percentage-of-facilitators 0 @@ -2288,10 +2243,10 @@ NIL HORIZONTAL SLIDER -405 -780 -565 -813 +0 +225 +245 +258 threshold-use-facilitators threshold-use-facilitators 0 @@ -2303,10 +2258,10 @@ NIL HORIZONTAL MONITOR -570 -770 -640 -815 +945 +60 +1060 +105 facilitators count persons with [facilitator?] 0 @@ -2314,10 +2269,10 @@ count persons with [facilitator?] 11 MONITOR -640 -770 -730 -815 +945 +110 +1060 +155 NIL facilitator-fails 17 @@ -2325,10 +2280,10 @@ facilitator-fails 11 MONITOR -730 -770 -815 -815 +945 +160 +1060 +205 NIL facilitator-crimes 17 @@ -2336,10 +2291,10 @@ facilitator-crimes 11 MONITOR -570 -705 -677 -750 +945 +10 +1060 +55 NIL crime-size-fails 17 @@ -2347,10 +2302,10 @@ crime-size-fails 11 SLIDER -865 -735 -1047 -768 +270 +60 +515 +93 education-rate education-rate 0 @@ -2362,10 +2317,10 @@ NIL HORIZONTAL SLIDER -865 -825 -1037 -858 +270 +95 +515 +128 punishment-length punishment-length 0.5 @@ -2377,20 +2332,20 @@ NIL HORIZONTAL CHOOSER -690 -705 -852 -750 +540 +10 +785 +55 intervention intervention "use current values" "baseline" "preventive" "disruptive" "students" "facilitators" "preventive-strong" "disruptive-strong" "students-strong" "facilitators-strong" 0 MONITOR -268 -537 -383 -582 +810 +410 +925 +455 employed count persons with [ my-job != nobody ] 17 @@ -2398,10 +2353,10 @@ count persons with [ my-job != nobody ] 11 MONITOR -268 -587 -383 -632 +810 +460 +925 +505 open positions count jobs with [ my-worker = nobody ] 17 @@ -2409,10 +2364,10 @@ count jobs with [ my-worker = nobody ] 11 MONITOR -270 -85 -380 -130 +810 +10 +925 +55 people count all-persons 17 @@ -2420,10 +2375,10 @@ count all-persons 11 MONITOR -270 -635 -385 -680 +810 +509 +925 +554 NIL number-weddings 17 @@ -2431,10 +2386,10 @@ number-weddings 11 PLOT -19 -864 -220 -1014 +1085 +10 +1286 +130 c tick mean c @@ -2446,14 +2401,14 @@ true false "" "" PENS -"c-pen" 1.0 0 -16777216 true "" "plot mean [ criminal-tendency ] of all-persons" +"c-pen" 1.0 0 -16777216 true "" "if any? all-persons [ plot mean [ criminal-tendency ] of all-persons ]" PLOT +1085 +140 +1286 260 -869 -461 -1019 -education +mean education tick mean education 0.0 @@ -2464,34 +2419,23 @@ true false "" "" PENS -"edu-pen" 1.0 0 -16777216 true "" "plot mean [ education-level ] of all-persons" +"edu-pen" 1.0 0 -16777216 true "" "if any? all-persons [ plot mean [ education-level ] of all-persons ]" CHOOSER -865 -775 -1047 -820 +270 +130 +515 +175 unemployment-multiplier unemployment-multiplier "base" 0.5 1.5 0 MONITOR -15 -555 -160 -600 -unemployed rate (link) -count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [ my-school = nobody and age > 16 and age < 65 ] -3 -1 -11 - -MONITOR -1095 -830 -1305 -875 +540 +495 +750 +540 unemployed rate (level, percent) count all-persons with [ job-level = 1 and age > 16 and age < 65 and my-school = nobody ] / count all-persons with [ my-school = nobody and age > 16 and age < 65 ] * 100 2 @@ -2499,21 +2443,21 @@ count all-persons with [ job-level = 1 and age > 16 and age < 65 and my-school = 11 MONITOR -16 -509 -141 -554 -assignment errors +810 +559 +925 +604 +job mismatch count all-persons with [ my-job = nobody and job-level > 1 and my-school = nobody and age > 16 and age < 65 ] 17 1 11 MONITOR -165 -510 -260 -555 +810 +609 +925 +654 NIL number-crimes 3 @@ -2521,10 +2465,10 @@ number-crimes 11 SLIDER -1095 -655 -1347 -688 +0 +115 +245 +148 number-crimes-yearly-per10k number-crimes-yearly-per10k 0 @@ -2536,10 +2480,10 @@ NIL HORIZONTAL MONITOR -1095 -880 -1305 -925 +540 +545 +750 +590 Not looking for work (percent) count all-persons with [ job-level = 0 and age > 16 and age < 65 and my-school = nobody ] / count all-persons with [ my-school = nobody and age > 16 and age < 65 ] * 100 2 @@ -2547,10 +2491,10 @@ count all-persons with [ job-level = 0 and age > 16 and age < 65 and my-school = 11 MONITOR -1095 -930 -1305 -975 +540 +595 +750 +640 occupied (level, percent) count all-persons with [ job-level > 1 and age > 16 and age < 65 and my-school = nobody ] / count all-persons with [ my-school = nobody and age > 16 and age < 65 ] * 100 2 @@ -2558,9 +2502,9 @@ count all-persons with [ job-level > 1 and age > 16 and age < 65 and my-school = 11 CHOOSER -1090 +270 10 -1287 +515 55 data-folder data-folder @@ -2568,10 +2512,10 @@ data-folder 0 SWITCH -1095 -750 -1340 -783 +540 +410 +785 +443 facilitator-repression? facilitator-repression? 1 @@ -2579,10 +2523,10 @@ facilitator-repression? -1000 SLIDER -1095 +540 +445 785 -1342 -818 +478 facilitator-repression-multiplier facilitator-repression-multiplier 1 @@ -2594,10 +2538,10 @@ NIL HORIZONTAL SWITCH -865 -865 -1035 -898 +0 +540 +245 +573 migration-on? migration-on? 0 @@ -2605,16 +2549,34 @@ migration-on? -1000 SWITCH -865 -905 -1052 -938 +0 +575 +245 +608 constant-population? constant-population? 1 1 -1000 +PLOT +945 +435 +1285 +585 +OC members +NIL +NIL +0.0 +10.0 +0.0 +10.0 +true +false +"" "" +PENS +"default" 1.0 0 -16777216 true "" "let _w (all-persons with [ oc-member? ]) if (any? _w) [ plot count _w ]" + @#$#@#$#@ ## WHAT IS IT? From 303a6c2ab39aaec51a941568e512c6592c966c94 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sun, 15 Sep 2019 12:11:26 +0200 Subject: [PATCH 28/38] Aligning some sliders. --- PROTON-OC.nlogo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index db13cfbe..f38ed417 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -1914,8 +1914,8 @@ SLIDER 298 max-accomplice-radius max-accomplice-radius -0 -5 +1 +4 2.0 1 1 @@ -1930,7 +1930,7 @@ SLIDER oc-embeddedness-radius oc-embeddedness-radius 1 -5 +4 2.0 1 1 From 56bef2e65953a1b72342cef1be571bededb2e736 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 19 Sep 2019 13:56:57 +0200 Subject: [PATCH 29/38] Preparing rp0.7 --- .gitignore | 1 + experiments-xml/makeInterventions_rp0.7.py | 43 ++++ experiments-xml/prettyprint.py | 18 ++ .../rp0.7p_15_\"base\"_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_15_\"base\"_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_\"base\"_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_15_\"base\"_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_\"base\"_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_15_0.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_15_0.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_0.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_15_0.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_0.5_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_15_1.0_\"baseline\".xml" | 171 +++++++++++++++ .../rp0.7p_15_1.0_\"disruptive\".xml" | 171 +++++++++++++++ .../rp0.7p_15_1.0_\"facilitators\".xml" | 171 +++++++++++++++ .../rp0.7p_15_1.0_\"preventive\".xml" | 171 +++++++++++++++ .../rp0.7p_15_1.0_\"students\".xml" | 171 +++++++++++++++ .../rp0.7p_15_1.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_15_1.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_1.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_15_1.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_15_1.5_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_30_\"base\"_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_30_\"base\"_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_\"base\"_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_30_\"base\"_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_\"base\"_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_30_0.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_30_0.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_0.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_30_0.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_0.5_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_30_1.0_\"baseline\".xml" | 171 +++++++++++++++ .../rp0.7p_30_1.0_\"disruptive\".xml" | 171 +++++++++++++++ .../rp0.7p_30_1.0_\"facilitators\".xml" | 171 +++++++++++++++ .../rp0.7p_30_1.0_\"preventive\".xml" | 171 +++++++++++++++ .../rp0.7p_30_1.0_\"students\".xml" | 171 +++++++++++++++ .../rp0.7p_30_1.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_30_1.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_1.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_30_1.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_30_1.5_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_45_\"base\"_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_45_\"base\"_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_\"base\"_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_45_\"base\"_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_\"base\"_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_45_0.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_45_0.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_0.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_45_0.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_0.5_\"students\".xml" | 172 +++++++++++++++ .../rp0.7p_45_1.0_\"baseline\".xml" | 171 +++++++++++++++ .../rp0.7p_45_1.0_\"disruptive\".xml" | 171 +++++++++++++++ .../rp0.7p_45_1.0_\"facilitators\".xml" | 171 +++++++++++++++ .../rp0.7p_45_1.0_\"preventive\".xml" | 171 +++++++++++++++ .../rp0.7p_45_1.0_\"students\".xml" | 171 +++++++++++++++ .../rp0.7p_45_1.5_\"baseline\".xml" | 172 +++++++++++++++ .../rp0.7p_45_1.5_\"disruptive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_1.5_\"facilitators\".xml" | 172 +++++++++++++++ .../rp0.7p_45_1.5_\"preventive\".xml" | 172 +++++++++++++++ .../rp0.7p_45_1.5_\"students\".xml" | 172 +++++++++++++++ experiments-xml/rp0.7p_base.xml | 197 ++++++++++++++++++ 64 files changed, 10564 insertions(+) create mode 100644 experiments-xml/makeInterventions_rp0.7.py create mode 100644 experiments-xml/prettyprint.py create mode 100644 "experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_0.5_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.0_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_15_1.5_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_0.5_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.0_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_30_1.5_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_0.5_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.0_\"students\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" create mode 100644 "experiments-xml/rp0.7p_45_1.5_\"students\".xml" create mode 100644 experiments-xml/rp0.7p_base.xml diff --git a/.gitignore b/.gitignore index 9d9e8808..1268022d 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ outputs/table-output.csv outputs/.ipynb_checkpoints *.~lock.*xls# ipynb_checkpoints +*.pyc diff --git a/experiments-xml/makeInterventions_rp0.7.py b/experiments-xml/makeInterventions_rp0.7.py new file mode 100644 index 00000000..e728e340 --- /dev/null +++ b/experiments-xml/makeInterventions_rp0.7.py @@ -0,0 +1,43 @@ +import xml.etree.ElementTree as ET +import prettyprint + +repetitions = 3 + +version="rp0.7p" + +ocfamilies = {'15':'6', '30':'8', '45':'12'} + +for ocmembers in ['15', '30', '45']: + for employmentrate in ['0.5', '"base"', '1.5']: + for intervention in ['"baseline"','"preventive"', '"disruptive"', '"students"','"facilitators"']: + + tree = ET.parse('rp0.7p_base.xml') + root = tree.getroot() + + al = tree.find('.//experiment') + al.set('repetitions', str(3)) + + experiment = "_".join([version, ocmembers, employmentrate, intervention]) + al = tree.find('.//experiment') + al.set('name', experiment) + al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') + al.insert(1, ET.Element("value", value=ocmembers)) + al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') + al.insert(1, ET.Element("value", value=ocfamilies.get(ocmembers))) + + + al = tree.find('.//enumeratedValueSet[@variable="intervention"]') + al.insert(1, ET.Element("value", value=intervention)) + + + al = tree.find('.//enumeratedValueSet[@variable="unemployment-multiplier"]') + al.insert(1, ET.Element("value", value=employmentrate)) + + + #write to file + tree = ET.ElementTree(prettyprint.indent(root)) + tree.write(experiment + '.xml', encoding='utf-8') + + + + diff --git a/experiments-xml/prettyprint.py b/experiments-xml/prettyprint.py new file mode 100644 index 00000000..3f84c4a5 --- /dev/null +++ b/experiments-xml/prettyprint.py @@ -0,0 +1,18 @@ +#pretty print method +def indent(elem, level=0): + i = "\n" + level*" " + j = "\n" + (level-1)*" " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for subelem in elem: + indent(subelem, level+1) + if not elem.tail or not elem.tail.strip(): + elem.tail = j + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = j + return elem + diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" "b/experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" new file mode 100644 index 00000000..1297544a --- /dev/null +++ "b/experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" "b/experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" new file mode 100644 index 00000000..5457e4d6 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" "b/experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" new file mode 100644 index 00000000..5802fa98 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" "b/experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" new file mode 100644 index 00000000..ac16b8eb --- /dev/null +++ "b/experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" "b/experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" new file mode 100644 index 00000000..a37bab7f --- /dev/null +++ "b/experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" new file mode 100644 index 00000000..6c915512 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" new file mode 100644 index 00000000..2aa09831 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" new file mode 100644 index 00000000..437cdee1 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" new file mode 100644 index 00000000..361f3dd0 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_0.5_\"students\".xml" "b/experiments-xml/rp0.7p_15_0.5_\"students\".xml" new file mode 100644 index 00000000..228630af --- /dev/null +++ "b/experiments-xml/rp0.7p_15_0.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" new file mode 100644 index 00000000..2ad12581 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" new file mode 100644 index 00000000..da85ed70 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" new file mode 100644 index 00000000..a4dff04a --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" new file mode 100644 index 00000000..cee8872c --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"students\".xml" new file mode 100644 index 00000000..a977f611 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.0_\"students\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" new file mode 100644 index 00000000..dabb103d --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" new file mode 100644 index 00000000..8cb97d0c --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" new file mode 100644 index 00000000..1afae1dd --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" new file mode 100644 index 00000000..45b8aa03 --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_15_1.5_\"students\".xml" "b/experiments-xml/rp0.7p_15_1.5_\"students\".xml" new file mode 100644 index 00000000..ad20749d --- /dev/null +++ "b/experiments-xml/rp0.7p_15_1.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" "b/experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" new file mode 100644 index 00000000..54968ef7 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" "b/experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" new file mode 100644 index 00000000..0dd50157 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" "b/experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" new file mode 100644 index 00000000..1276aa38 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" "b/experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" new file mode 100644 index 00000000..8712200e --- /dev/null +++ "b/experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" "b/experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" new file mode 100644 index 00000000..74c5e5a7 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" new file mode 100644 index 00000000..346e68f4 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" new file mode 100644 index 00000000..8c86633c --- /dev/null +++ "b/experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" new file mode 100644 index 00000000..74f71f73 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" new file mode 100644 index 00000000..c10d27fa --- /dev/null +++ "b/experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_0.5_\"students\".xml" "b/experiments-xml/rp0.7p_30_0.5_\"students\".xml" new file mode 100644 index 00000000..95a5ac74 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_0.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" new file mode 100644 index 00000000..a56554ad --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" new file mode 100644 index 00000000..aab7687e --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" new file mode 100644 index 00000000..8b23b42e --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" new file mode 100644 index 00000000..a1959a61 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"students\".xml" new file mode 100644 index 00000000..a09144ed --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.0_\"students\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" new file mode 100644 index 00000000..ba5e06c0 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" new file mode 100644 index 00000000..4497dcb6 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" new file mode 100644 index 00000000..4edd3e7c --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" new file mode 100644 index 00000000..49484236 --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_30_1.5_\"students\".xml" "b/experiments-xml/rp0.7p_30_1.5_\"students\".xml" new file mode 100644 index 00000000..c77d875d --- /dev/null +++ "b/experiments-xml/rp0.7p_30_1.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" "b/experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" new file mode 100644 index 00000000..ef0656f1 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" "b/experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" new file mode 100644 index 00000000..389c2ec7 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" "b/experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" new file mode 100644 index 00000000..1a9f59eb --- /dev/null +++ "b/experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" "b/experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" new file mode 100644 index 00000000..0d96d2c2 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" "b/experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" new file mode 100644 index 00000000..264159cc --- /dev/null +++ "b/experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" new file mode 100644 index 00000000..225254fe --- /dev/null +++ "b/experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" new file mode 100644 index 00000000..6bc50876 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" new file mode 100644 index 00000000..c378f686 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" new file mode 100644 index 00000000..b405a30f --- /dev/null +++ "b/experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_0.5_\"students\".xml" "b/experiments-xml/rp0.7p_45_0.5_\"students\".xml" new file mode 100644 index 00000000..efce2f81 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_0.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" new file mode 100644 index 00000000..5e616b01 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" new file mode 100644 index 00000000..67c1ae92 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" new file mode 100644 index 00000000..4bd1f6c0 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" new file mode 100644 index 00000000..eea1ecb3 --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"students\".xml" new file mode 100644 index 00000000..bd2c572f --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.0_\"students\".xml" @@ -0,0 +1,171 @@ + + + setup + go + show (word "Time elapsed:" timer) + dump-networks + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" "b/experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" new file mode 100644 index 00000000..09675c8b --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" "b/experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" new file mode 100644 index 00000000..5c87500e --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" "b/experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" new file mode 100644 index 00000000..3f160c8b --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" "b/experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" new file mode 100644 index 00000000..44f1725b --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/experiments-xml/rp0.7p_45_1.5_\"students\".xml" "b/experiments-xml/rp0.7p_45_1.5_\"students\".xml" new file mode 100644 index 00000000..a534524f --- /dev/null +++ "b/experiments-xml/rp0.7p_45_1.5_\"students\".xml" @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7p_base.xml b/experiments-xml/rp0.7p_base.xml new file mode 100644 index 00000000..a07dc0ff --- /dev/null +++ b/experiments-xml/rp0.7p_base.xml @@ -0,0 +1,197 @@ + + + + + setup + go + show (word "Time elapsed:" timer) + + + + + o1 + + o2 + + o3 + + o4 + + o5 + o5a + + o6 + o6a + + o7a + o7b + o7c + + o8a + o8b + o8c + + o9a + o9b + o9c + + o10a + o10b + o10c + + o11 + + o12 + + o13 + + o14 + + o15 + + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 27a8316bb1f8780a931972168c6bdeebd1c56c9a Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 19 Sep 2019 15:18:33 +0200 Subject: [PATCH 30/38] Repairing test and bug in new jobs The jobs that get created via the intervenions are now correctly created at job-level >= 2 --- PROTON-OC.nlogo | 9 +- experiments-xml/makeInterventions_rp0.7.py | 2 +- .../rp0.7p_15_0.5_baseline.xml | 2 +- .../rp0.7p_15_0.5_disruptive.xml | 2 +- .../rp0.7p_15_0.5_facilitators.xml | 2 +- .../rp0.7p_15_0.5_preventive.xml | 2 +- .../rp0.7p_15_0.5_students.xml | 2 +- .../rp0.7p_15_1.0_\"baseline\".xml" | 171 ------------------ .../rp0.7p_15_1.0_\"disruptive\".xml" | 171 ------------------ .../rp0.7p_15_1.0_\"facilitators\".xml" | 171 ------------------ .../rp0.7p_15_1.0_\"preventive\".xml" | 171 ------------------ .../rp0.7p_15_1.0_\"students\".xml" | 171 ------------------ .../rp0.7p_15_1.5_baseline.xml | 2 +- .../rp0.7p_15_1.5_disruptive.xml | 2 +- .../rp0.7p_15_1.5_facilitators.xml | 2 +- .../rp0.7p_15_1.5_preventive.xml | 2 +- .../rp0.7p_15_1.5_students.xml | 2 +- .../rp0.7p_15_base_baseline.xml | 2 +- .../rp0.7p_15_base_disruptive.xml | 2 +- .../rp0.7p_15_base_facilitators.xml | 2 +- .../rp0.7p_15_base_preventive.xml | 2 +- .../rp0.7p_15_base_students.xml | 2 +- .../rp0.7p_30_0.5_baseline.xml | 2 +- .../rp0.7p_30_0.5_disruptive.xml | 2 +- .../rp0.7p_30_0.5_facilitators.xml | 2 +- .../rp0.7p_30_0.5_preventive.xml | 2 +- .../rp0.7p_30_0.5_students.xml | 2 +- .../rp0.7p_30_1.0_\"baseline\".xml" | 171 ------------------ .../rp0.7p_30_1.0_\"disruptive\".xml" | 171 ------------------ .../rp0.7p_30_1.0_\"facilitators\".xml" | 171 ------------------ .../rp0.7p_30_1.0_\"preventive\".xml" | 171 ------------------ .../rp0.7p_30_1.0_\"students\".xml" | 171 ------------------ .../rp0.7p_30_1.5_baseline.xml | 2 +- .../rp0.7p_30_1.5_disruptive.xml | 2 +- .../rp0.7p_30_1.5_facilitators.xml | 2 +- .../rp0.7p_30_1.5_preventive.xml | 2 +- .../rp0.7p_30_1.5_students.xml | 2 +- .../rp0.7p_30_base_baseline.xml | 2 +- .../rp0.7p_30_base_disruptive.xml | 2 +- .../rp0.7p_30_base_facilitators.xml | 2 +- .../rp0.7p_30_base_preventive.xml | 2 +- .../rp0.7p_30_base_students.xml | 2 +- .../rp0.7p_45_0.5_baseline.xml | 2 +- .../rp0.7p_45_0.5_disruptive.xml | 2 +- .../rp0.7p_45_0.5_facilitators.xml | 2 +- .../rp0.7p_45_0.5_preventive.xml | 2 +- .../rp0.7p_45_0.5_students.xml | 2 +- .../rp0.7p_45_1.0_\"baseline\".xml" | 171 ------------------ .../rp0.7p_45_1.0_\"disruptive\".xml" | 171 ------------------ .../rp0.7p_45_1.0_\"facilitators\".xml" | 171 ------------------ .../rp0.7p_45_1.0_\"preventive\".xml" | 171 ------------------ .../rp0.7p_45_1.0_\"students\".xml" | 171 ------------------ .../rp0.7p_45_1.5_baseline.xml | 2 +- .../rp0.7p_45_1.5_disruptive.xml | 2 +- .../rp0.7p_45_1.5_facilitators.xml | 2 +- .../rp0.7p_45_1.5_preventive.xml | 2 +- .../rp0.7p_45_1.5_students.xml | 2 +- .../rp0.7p_45_base_baseline.xml | 2 +- .../rp0.7p_45_base_disruptive.xml | 2 +- .../rp0.7p_45_base_facilitators.xml | 2 +- .../rp0.7p_45_base_preventive.xml | 2 +- .../rp0.7p_45_base_students.xml | 2 +- nls_files/experiments.nls | 4 +- .../proton/oc/tests/OCInterventionTest.scala | 2 + 64 files changed, 55 insertions(+), 2617 deletions(-) rename "experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" => experiments-xml/rp0.7p_15_0.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" => experiments-xml/rp0.7p_15_0.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" => experiments-xml/rp0.7p_15_0.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" => experiments-xml/rp0.7p_15_0.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_15_0.5_\"students\".xml" => experiments-xml/rp0.7p_15_0.5_students.xml (98%) delete mode 100644 "experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" delete mode 100644 "experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" delete mode 100644 "experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" delete mode 100644 "experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" delete mode 100644 "experiments-xml/rp0.7p_15_1.0_\"students\".xml" rename "experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" => experiments-xml/rp0.7p_15_1.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" => experiments-xml/rp0.7p_15_1.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" => experiments-xml/rp0.7p_15_1.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" => experiments-xml/rp0.7p_15_1.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_15_1.5_\"students\".xml" => experiments-xml/rp0.7p_15_1.5_students.xml (98%) rename "experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" => experiments-xml/rp0.7p_15_base_baseline.xml (98%) rename "experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" => experiments-xml/rp0.7p_15_base_disruptive.xml (98%) rename "experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" => experiments-xml/rp0.7p_15_base_facilitators.xml (98%) rename "experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" => experiments-xml/rp0.7p_15_base_preventive.xml (98%) rename "experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" => experiments-xml/rp0.7p_15_base_students.xml (98%) rename "experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" => experiments-xml/rp0.7p_30_0.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" => experiments-xml/rp0.7p_30_0.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" => experiments-xml/rp0.7p_30_0.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" => experiments-xml/rp0.7p_30_0.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_30_0.5_\"students\".xml" => experiments-xml/rp0.7p_30_0.5_students.xml (98%) delete mode 100644 "experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" delete mode 100644 "experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" delete mode 100644 "experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" delete mode 100644 "experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" delete mode 100644 "experiments-xml/rp0.7p_30_1.0_\"students\".xml" rename "experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" => experiments-xml/rp0.7p_30_1.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" => experiments-xml/rp0.7p_30_1.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" => experiments-xml/rp0.7p_30_1.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" => experiments-xml/rp0.7p_30_1.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_30_1.5_\"students\".xml" => experiments-xml/rp0.7p_30_1.5_students.xml (98%) rename "experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" => experiments-xml/rp0.7p_30_base_baseline.xml (98%) rename "experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" => experiments-xml/rp0.7p_30_base_disruptive.xml (98%) rename "experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" => experiments-xml/rp0.7p_30_base_facilitators.xml (98%) rename "experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" => experiments-xml/rp0.7p_30_base_preventive.xml (98%) rename "experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" => experiments-xml/rp0.7p_30_base_students.xml (98%) rename "experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" => experiments-xml/rp0.7p_45_0.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" => experiments-xml/rp0.7p_45_0.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" => experiments-xml/rp0.7p_45_0.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" => experiments-xml/rp0.7p_45_0.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_45_0.5_\"students\".xml" => experiments-xml/rp0.7p_45_0.5_students.xml (98%) delete mode 100644 "experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" delete mode 100644 "experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" delete mode 100644 "experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" delete mode 100644 "experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" delete mode 100644 "experiments-xml/rp0.7p_45_1.0_\"students\".xml" rename "experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" => experiments-xml/rp0.7p_45_1.5_baseline.xml (98%) rename "experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" => experiments-xml/rp0.7p_45_1.5_disruptive.xml (98%) rename "experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" => experiments-xml/rp0.7p_45_1.5_facilitators.xml (98%) rename "experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" => experiments-xml/rp0.7p_45_1.5_preventive.xml (98%) rename "experiments-xml/rp0.7p_45_1.5_\"students\".xml" => experiments-xml/rp0.7p_45_1.5_students.xml (98%) rename "experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" => experiments-xml/rp0.7p_45_base_baseline.xml (98%) rename "experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" => experiments-xml/rp0.7p_45_base_disruptive.xml (98%) rename "experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" => experiments-xml/rp0.7p_45_base_facilitators.xml (98%) rename "experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" => experiments-xml/rp0.7p_45_base_preventive.xml (98%) rename "experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" => experiments-xml/rp0.7p_45_base_students.xml (98%) diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index f38ed417..8979a013 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -248,7 +248,7 @@ to setup ask persons [set hobby random 5] ; hobby is used only in wedding procedure to compute wedding sim. set removed-fatherships [] calc-correction-for-non-facilitators - show word "Setup complete in " timer + show (word "Setup complete in " timer " s.") end to setup-facilitators @@ -394,8 +394,8 @@ to go if welfare-support != "none" [ welfare-intervene ] ; OC-members-scrutiny works directly in factors-c ; OC-members-repression works in arrest-probability-with-intervention in commmit-crime - ; OC-ties-disruption? we don't yet have an implementation. ] + ; things we only update yearly if ((ticks mod ticks-per-year) = 0) [ ; this should be 11, probably, otherwise calculate-criminal-tendency calculate-crime-multiplier ; we should update it, if population change @@ -558,6 +558,7 @@ to welfare-createjobs [ targets ] set my-employer myself ask my-employer [ set my-jobs (turtle-set my-jobs myself) ] set label self + if [ job-level ] of target < 2 [ ask target [ set job-level 2 ] ] set job-level [ job-level ] of target set my-worker target ask target [ @@ -1816,7 +1817,7 @@ num-persons num-persons 100 10000 -1000.0 +550.0 100 1 NIL @@ -2339,7 +2340,7 @@ CHOOSER intervention intervention "use current values" "baseline" "preventive" "disruptive" "students" "facilitators" "preventive-strong" "disruptive-strong" "students-strong" "facilitators-strong" -0 +1 MONITOR 810 diff --git a/experiments-xml/makeInterventions_rp0.7.py b/experiments-xml/makeInterventions_rp0.7.py index e728e340..6c17f2dc 100644 --- a/experiments-xml/makeInterventions_rp0.7.py +++ b/experiments-xml/makeInterventions_rp0.7.py @@ -17,7 +17,7 @@ al = tree.find('.//experiment') al.set('repetitions', str(3)) - experiment = "_".join([version, ocmembers, employmentrate, intervention]) + experiment = "_".join([version, ocmembers, employmentrate.replace('"', ''), intervention.replace('"', '')]) al = tree.find('.//experiment') al.set('name', experiment) al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') diff --git "a/experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" b/experiments-xml/rp0.7p_15_0.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_15_0.5_baseline.xml index 6c915512..4b072cb4 100644 --- "a/experiments-xml/rp0.7p_15_0.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_15_0.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_15_0.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_15_0.5_disruptive.xml index 2aa09831..cd347410 100644 --- "a/experiments-xml/rp0.7p_15_0.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_15_0.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_15_0.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_15_0.5_facilitators.xml index 437cdee1..e4ec31e0 100644 --- "a/experiments-xml/rp0.7p_15_0.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_15_0.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" b/experiments-xml/rp0.7p_15_0.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_15_0.5_preventive.xml index 361f3dd0..ed4398a3 100644 --- "a/experiments-xml/rp0.7p_15_0.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_15_0.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_0.5_\"students\".xml" b/experiments-xml/rp0.7p_15_0.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_0.5_\"students\".xml" rename to experiments-xml/rp0.7p_15_0.5_students.xml index 228630af..83755924 100644 --- "a/experiments-xml/rp0.7p_15_0.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_15_0.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" deleted file mode 100644 index 2ad12581..00000000 --- "a/experiments-xml/rp0.7p_15_1.0_\"baseline\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" deleted file mode 100644 index da85ed70..00000000 --- "a/experiments-xml/rp0.7p_15_1.0_\"disruptive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" deleted file mode 100644 index a4dff04a..00000000 --- "a/experiments-xml/rp0.7p_15_1.0_\"facilitators\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" deleted file mode 100644 index cee8872c..00000000 --- "a/experiments-xml/rp0.7p_15_1.0_\"preventive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_15_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_15_1.0_\"students\".xml" deleted file mode 100644 index a977f611..00000000 --- "a/experiments-xml/rp0.7p_15_1.0_\"students\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" b/experiments-xml/rp0.7p_15_1.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_15_1.5_baseline.xml index dabb103d..7c636c11 100644 --- "a/experiments-xml/rp0.7p_15_1.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_15_1.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_15_1.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_15_1.5_disruptive.xml index 8cb97d0c..696d0d61 100644 --- "a/experiments-xml/rp0.7p_15_1.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_15_1.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_15_1.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_15_1.5_facilitators.xml index 1afae1dd..657a8a73 100644 --- "a/experiments-xml/rp0.7p_15_1.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_15_1.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" b/experiments-xml/rp0.7p_15_1.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_15_1.5_preventive.xml index 45b8aa03..b6b1ea69 100644 --- "a/experiments-xml/rp0.7p_15_1.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_15_1.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_1.5_\"students\".xml" b/experiments-xml/rp0.7p_15_1.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_1.5_\"students\".xml" rename to experiments-xml/rp0.7p_15_1.5_students.xml index ad20749d..bfe0999a 100644 --- "a/experiments-xml/rp0.7p_15_1.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_15_1.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" b/experiments-xml/rp0.7p_15_base_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" rename to experiments-xml/rp0.7p_15_base_baseline.xml index 1297544a..c521e90b 100644 --- "a/experiments-xml/rp0.7p_15_\"base\"_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_15_base_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" b/experiments-xml/rp0.7p_15_base_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" rename to experiments-xml/rp0.7p_15_base_disruptive.xml index 5457e4d6..0f0586d8 100644 --- "a/experiments-xml/rp0.7p_15_\"base\"_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_15_base_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" b/experiments-xml/rp0.7p_15_base_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" rename to experiments-xml/rp0.7p_15_base_facilitators.xml index 5802fa98..4cc186f8 100644 --- "a/experiments-xml/rp0.7p_15_\"base\"_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_15_base_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" b/experiments-xml/rp0.7p_15_base_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" rename to experiments-xml/rp0.7p_15_base_preventive.xml index ac16b8eb..f8584087 100644 --- "a/experiments-xml/rp0.7p_15_\"base\"_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_15_base_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" b/experiments-xml/rp0.7p_15_base_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" rename to experiments-xml/rp0.7p_15_base_students.xml index a37bab7f..3a4a6983 100644 --- "a/experiments-xml/rp0.7p_15_\"base\"_\"students\".xml" +++ b/experiments-xml/rp0.7p_15_base_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" b/experiments-xml/rp0.7p_30_0.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_30_0.5_baseline.xml index 346e68f4..5e13fae9 100644 --- "a/experiments-xml/rp0.7p_30_0.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_30_0.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_30_0.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_30_0.5_disruptive.xml index 8c86633c..69bf251f 100644 --- "a/experiments-xml/rp0.7p_30_0.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_30_0.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_30_0.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_30_0.5_facilitators.xml index 74f71f73..2f3c46ba 100644 --- "a/experiments-xml/rp0.7p_30_0.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_30_0.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" b/experiments-xml/rp0.7p_30_0.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_30_0.5_preventive.xml index c10d27fa..56f87fe8 100644 --- "a/experiments-xml/rp0.7p_30_0.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_30_0.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_0.5_\"students\".xml" b/experiments-xml/rp0.7p_30_0.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_0.5_\"students\".xml" rename to experiments-xml/rp0.7p_30_0.5_students.xml index 95a5ac74..1e6b1c61 100644 --- "a/experiments-xml/rp0.7p_30_0.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_30_0.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" deleted file mode 100644 index a56554ad..00000000 --- "a/experiments-xml/rp0.7p_30_1.0_\"baseline\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" deleted file mode 100644 index aab7687e..00000000 --- "a/experiments-xml/rp0.7p_30_1.0_\"disruptive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" deleted file mode 100644 index 8b23b42e..00000000 --- "a/experiments-xml/rp0.7p_30_1.0_\"facilitators\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" deleted file mode 100644 index a1959a61..00000000 --- "a/experiments-xml/rp0.7p_30_1.0_\"preventive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_30_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_30_1.0_\"students\".xml" deleted file mode 100644 index a09144ed..00000000 --- "a/experiments-xml/rp0.7p_30_1.0_\"students\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" b/experiments-xml/rp0.7p_30_1.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_30_1.5_baseline.xml index ba5e06c0..028a69b4 100644 --- "a/experiments-xml/rp0.7p_30_1.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_30_1.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_30_1.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_30_1.5_disruptive.xml index 4497dcb6..6a1112ff 100644 --- "a/experiments-xml/rp0.7p_30_1.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_30_1.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_30_1.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_30_1.5_facilitators.xml index 4edd3e7c..4a724ee1 100644 --- "a/experiments-xml/rp0.7p_30_1.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_30_1.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" b/experiments-xml/rp0.7p_30_1.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_30_1.5_preventive.xml index 49484236..5aca0b80 100644 --- "a/experiments-xml/rp0.7p_30_1.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_30_1.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_1.5_\"students\".xml" b/experiments-xml/rp0.7p_30_1.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_1.5_\"students\".xml" rename to experiments-xml/rp0.7p_30_1.5_students.xml index c77d875d..3cebd4b0 100644 --- "a/experiments-xml/rp0.7p_30_1.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_30_1.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" b/experiments-xml/rp0.7p_30_base_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" rename to experiments-xml/rp0.7p_30_base_baseline.xml index 54968ef7..c6221617 100644 --- "a/experiments-xml/rp0.7p_30_\"base\"_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_30_base_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" b/experiments-xml/rp0.7p_30_base_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" rename to experiments-xml/rp0.7p_30_base_disruptive.xml index 0dd50157..b9fc11ea 100644 --- "a/experiments-xml/rp0.7p_30_\"base\"_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_30_base_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" b/experiments-xml/rp0.7p_30_base_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" rename to experiments-xml/rp0.7p_30_base_facilitators.xml index 1276aa38..bf533831 100644 --- "a/experiments-xml/rp0.7p_30_\"base\"_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_30_base_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" b/experiments-xml/rp0.7p_30_base_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" rename to experiments-xml/rp0.7p_30_base_preventive.xml index 8712200e..cf508ede 100644 --- "a/experiments-xml/rp0.7p_30_\"base\"_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_30_base_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" b/experiments-xml/rp0.7p_30_base_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" rename to experiments-xml/rp0.7p_30_base_students.xml index 74c5e5a7..9ed87772 100644 --- "a/experiments-xml/rp0.7p_30_\"base\"_\"students\".xml" +++ b/experiments-xml/rp0.7p_30_base_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" b/experiments-xml/rp0.7p_45_0.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_45_0.5_baseline.xml index 225254fe..f22a1494 100644 --- "a/experiments-xml/rp0.7p_45_0.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_45_0.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_45_0.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_45_0.5_disruptive.xml index 6bc50876..420d80a6 100644 --- "a/experiments-xml/rp0.7p_45_0.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_45_0.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_45_0.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_45_0.5_facilitators.xml index c378f686..d9c2ef10 100644 --- "a/experiments-xml/rp0.7p_45_0.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_45_0.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" b/experiments-xml/rp0.7p_45_0.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_45_0.5_preventive.xml index b405a30f..dcb3d8fa 100644 --- "a/experiments-xml/rp0.7p_45_0.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_45_0.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_0.5_\"students\".xml" b/experiments-xml/rp0.7p_45_0.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_0.5_\"students\".xml" rename to experiments-xml/rp0.7p_45_0.5_students.xml index efce2f81..fd9cf68d 100644 --- "a/experiments-xml/rp0.7p_45_0.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_45_0.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" deleted file mode 100644 index 5e616b01..00000000 --- "a/experiments-xml/rp0.7p_45_1.0_\"baseline\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" deleted file mode 100644 index 67c1ae92..00000000 --- "a/experiments-xml/rp0.7p_45_1.0_\"disruptive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" deleted file mode 100644 index 4bd1f6c0..00000000 --- "a/experiments-xml/rp0.7p_45_1.0_\"facilitators\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" deleted file mode 100644 index eea1ecb3..00000000 --- "a/experiments-xml/rp0.7p_45_1.0_\"preventive\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_45_1.0_\"students\".xml" "b/experiments-xml/rp0.7p_45_1.0_\"students\".xml" deleted file mode 100644 index bd2c572f..00000000 --- "a/experiments-xml/rp0.7p_45_1.0_\"students\".xml" +++ /dev/null @@ -1,171 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" b/experiments-xml/rp0.7p_45_1.5_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" rename to experiments-xml/rp0.7p_45_1.5_baseline.xml index 09675c8b..97324ff7 100644 --- "a/experiments-xml/rp0.7p_45_1.5_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_45_1.5_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" b/experiments-xml/rp0.7p_45_1.5_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" rename to experiments-xml/rp0.7p_45_1.5_disruptive.xml index 5c87500e..8acc6c06 100644 --- "a/experiments-xml/rp0.7p_45_1.5_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_45_1.5_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" b/experiments-xml/rp0.7p_45_1.5_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" rename to experiments-xml/rp0.7p_45_1.5_facilitators.xml index 3f160c8b..720a3ac6 100644 --- "a/experiments-xml/rp0.7p_45_1.5_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_45_1.5_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" b/experiments-xml/rp0.7p_45_1.5_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" rename to experiments-xml/rp0.7p_45_1.5_preventive.xml index 44f1725b..f194f627 100644 --- "a/experiments-xml/rp0.7p_45_1.5_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_45_1.5_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_1.5_\"students\".xml" b/experiments-xml/rp0.7p_45_1.5_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_1.5_\"students\".xml" rename to experiments-xml/rp0.7p_45_1.5_students.xml index a534524f..d33b40f8 100644 --- "a/experiments-xml/rp0.7p_45_1.5_\"students\".xml" +++ b/experiments-xml/rp0.7p_45_1.5_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" b/experiments-xml/rp0.7p_45_base_baseline.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" rename to experiments-xml/rp0.7p_45_base_baseline.xml index ef0656f1..552e73c1 100644 --- "a/experiments-xml/rp0.7p_45_\"base\"_\"baseline\".xml" +++ b/experiments-xml/rp0.7p_45_base_baseline.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" b/experiments-xml/rp0.7p_45_base_disruptive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" rename to experiments-xml/rp0.7p_45_base_disruptive.xml index 389c2ec7..ef54167e 100644 --- "a/experiments-xml/rp0.7p_45_\"base\"_\"disruptive\".xml" +++ b/experiments-xml/rp0.7p_45_base_disruptive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" b/experiments-xml/rp0.7p_45_base_facilitators.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" rename to experiments-xml/rp0.7p_45_base_facilitators.xml index 1a9f59eb..e7408411 100644 --- "a/experiments-xml/rp0.7p_45_\"base\"_\"facilitators\".xml" +++ b/experiments-xml/rp0.7p_45_base_facilitators.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" b/experiments-xml/rp0.7p_45_base_preventive.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" rename to experiments-xml/rp0.7p_45_base_preventive.xml index 0d96d2c2..288b4338 100644 --- "a/experiments-xml/rp0.7p_45_\"base\"_\"preventive\".xml" +++ b/experiments-xml/rp0.7p_45_base_preventive.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git "a/experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" b/experiments-xml/rp0.7p_45_base_students.xml similarity index 98% rename from "experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" rename to experiments-xml/rp0.7p_45_base_students.xml index 264159cc..175908c1 100644 --- "a/experiments-xml/rp0.7p_45_\"base\"_\"students\".xml" +++ b/experiments-xml/rp0.7p_45_base_students.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) diff --git a/nls_files/experiments.nls b/nls_files/experiments.nls index f6d1b5b2..7ccfd587 100644 --- a/nls_files/experiments.nls +++ b/nls_files/experiments.nls @@ -6,7 +6,7 @@ to choose-intervention-setting set OC-boss-repression? false set facilitator-repression? false set targets-addressed-percent 10 - set ticks-between-intervention 1 + set ticks-between-intervention 12 set intervention-start 13 set intervention-end 9999 ] @@ -124,7 +124,7 @@ end to-report o5 ; Distribution of C (which is the individual propensity towards crime commission) - report make-histo [ -> criminal-tendency ] 7 -2 5 all-persons + report make-histo [ -> criminal-tendency ] 7 -2 7 all-persons end to-report make-histo [ citizen-reporter bins min-v max-v the-set ] diff --git a/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCInterventionTest.scala b/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCInterventionTest.scala index 700161ee..fad0b24a 100644 --- a/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCInterventionTest.scala +++ b/proton-oc-tests/src/test/scala/it/cnr/istc/labss/proton/oc/tests/OCInterventionTest.scala @@ -35,6 +35,8 @@ class OCInterventionTest extends OCModelSuite { ask the-family [ create-sibling-links-with other the-family ] set targets-addressed-percent 100 set family-intervention "remove-if-OC-member" + calc-criminal-tendency-addme-for-weighted-extraction + calc-criminal-tendency-subtractfromme-for-inverse-weighted-extraction family-intervene """) // the baby is (one-of persons with [ age = 0 and propensity = 0]) From af9a953e59167b22784b5341e3e740b8893876a5 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sat, 21 Sep 2019 09:51:34 +0200 Subject: [PATCH 31/38] Creating rp0.8p. Testing sequential run bash scriput, not working yet. --- experiments-xml/rp0.8p.xml | 170 +++++++++++++++++++++++++++++++++++++ run-xml.sh | 25 ++++++ 2 files changed, 195 insertions(+) create mode 100644 experiments-xml/rp0.8p.xml create mode 100755 run-xml.sh diff --git a/experiments-xml/rp0.8p.xml b/experiments-xml/rp0.8p.xml new file mode 100644 index 00000000..e074998c --- /dev/null +++ b/experiments-xml/rp0.8p.xml @@ -0,0 +1,170 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/run-xml.sh b/run-xml.sh new file mode 100755 index 00000000..fadc6b46 --- /dev/null +++ b/run-xml.sh @@ -0,0 +1,25 @@ +#!/bin/bash +if [ $# -lt 1 ] +then + echo "Usage : $0 string to expand in experiments-xml" + exit +fi + + +echo $netlogo + +for arg in `ls experiments-xml/$1`; do + case `hostname` in + tiny ) + /home/paolucci/NetLogo\ 6.0.4/netlogo-headless.sh --model PROTON-OC.nlogo --setup-file $arg --table $arg.`hostname`.`git rev-parse --short HEAD`.csv > $arg.`hostname`.`git rev-parse --short HEAD`.out + ;; + drake1 ) + netlogo="/Applications/NetLogo\ 6.0.4/netlogo-headless.sh" ;; + labss-simul ) + netlogo="/home/paolucci/NetLogo\ 6.0.4/netlogo-headless-2.sh" ;; + barcelona ) + netlogo="/home/paolucci/NetLogo\ 6.0.4/netlogo-headless-2G.sh" ;; + pc54-77.nizza.rm.cnr.it ) + netlogo="/Applications/NetLogo\ 6.0.4/netlogo-headless.sh" ;; + esac +done From 7cd02f8316967ce76602178c6951cf026324c79c Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 24 Sep 2019 11:50:36 +0200 Subject: [PATCH 32/38] Moving facilitator intervention to 3 All preceeding simulations have 2. Also, we add fertility data for NL --- PROTON-OC.nlogo | 2 +- .../data/initial_fertility_rates.csv | 109 ++++++++++++++++++ nls_files/experiments.nls | 2 +- 3 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 inputs/eindhoven/data/initial_fertility_rates.csv diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 8979a013..6738b094 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -261,7 +261,7 @@ end to load-stats-tables set num-co-offenders-dist but-first csv:from-file "inputs/general/data/num_co_offenders_dist.csv" - set fertility-table group-by-first-two-items read-csv "../../palermo/data/initial_fertility_rates" + set fertility-table group-by-first-two-items read-csv "initial_fertility_rates" set mortality-table group-by-first-two-items read-csv "../../palermo/data/initial_mortality_rates" set edu group-by-first-of-three read-csv "../../palermo/data/edu" set edu_by_wealth_lvl group-couples-by-2-keys read-csv "../../palermo/data/edu_by_wealth_lvl" diff --git a/inputs/eindhoven/data/initial_fertility_rates.csv b/inputs/eindhoven/data/initial_fertility_rates.csv new file mode 100644 index 00000000..f3979bdd --- /dev/null +++ b/inputs/eindhoven/data/initial_fertility_rates.csv @@ -0,0 +1,109 @@ +age,num_children,fertility +15,0.00000,0.00024 +16,0.00000,0.00066 +17,0.00000,0.00184 +18,0.00000,0.00358 +19,0.00000,0.00749 +20,0.00000,0.01068 +21,0.00000,0.01607 +22,0.00000,0.02426 +23,0.00000,0.03340 +24,0.00000,0.04582 +25,0.00000,0.06175 +26,0.00000,0.07897 +27,0.00000,0.09553 +28,0.00000,0.11259 +29,0.00000,0.12739 +30,0.00000,0.13651 +31,0.00000,0.13860 +32,0.00000,0.13093 +33,0.00000,0.12329 +34,0.00000,0.10832 +35,0.00000,0.09279 +36,0.00000,0.07521 +37,0.00000,0.05884 +38,0.00000,0.04447 +39,0.00000,0.03321 +40,0.00000,0.02253 +41,0.00000,0.01471 +42,0.00000,0.00913 +43,0.00000,0.00502 +44,0.00000,0.00223 +45,0.00000,0.00124 +46,0.00000,0.00067 +47,0.00000,0.00034 +48,0.00000,0.00018 +49,0.00000,0.00010 +50,0.00000,0.00005 +15,1.00000,0.00024 +16,1.00000,0.00066 +17,1.00000,0.00184 +18,1.00000,0.00358 +19,1.00000,0.00749 +20,1.00000,0.01068 +21,1.00000,0.01607 +22,1.00000,0.02426 +23,1.00000,0.03340 +24,1.00000,0.04582 +25,1.00000,0.06175 +26,1.00000,0.07897 +27,1.00000,0.09553 +28,1.00000,0.11259 +29,1.00000,0.12739 +30,1.00000,0.13651 +31,1.00000,0.13860 +32,1.00000,0.13093 +33,1.00000,0.12329 +34,1.00000,0.10832 +35,1.00000,0.09279 +36,1.00000,0.07521 +37,1.00000,0.05884 +38,1.00000,0.04447 +39,1.00000,0.03321 +40,1.00000,0.02253 +41,1.00000,0.01471 +42,1.00000,0.00913 +43,1.00000,0.00502 +44,1.00000,0.00223 +45,1.00000,0.00124 +46,1.00000,0.00067 +47,1.00000,0.00034 +48,1.00000,0.00018 +49,1.00000,0.00010 +50,1.00000,0.00005 +15,2.00000,0.00024 +16,2.00000,0.00066 +17,2.00000,0.00184 +18,2.00000,0.00358 +19,2.00000,0.00749 +20,2.00000,0.01068 +21,2.00000,0.01607 +22,2.00000,0.02426 +23,2.00000,0.03340 +24,2.00000,0.04582 +25,2.00000,0.06175 +26,2.00000,0.07897 +27,2.00000,0.09553 +28,2.00000,0.11259 +29,2.00000,0.12739 +30,2.00000,0.13651 +31,2.00000,0.13860 +32,2.00000,0.13093 +33,2.00000,0.12329 +34,2.00000,0.10832 +35,2.00000,0.09279 +36,2.00000,0.07521 +37,2.00000,0.05884 +38,2.00000,0.04447 +39,2.00000,0.03321 +40,2.00000,0.02253 +41,2.00000,0.01471 +42,2.00000,0.00913 +43,2.00000,0.00502 +44,2.00000,0.00223 +45,2.00000,0.00124 +46,2.00000,0.00067 +47,2.00000,0.00034 +48,2.00000,0.00018 +49,2.00000,0.00010 +50,2.00000,0.00005 \ No newline at end of file diff --git a/nls_files/experiments.nls b/nls_files/experiments.nls index 7ccfd587..8bad7d4f 100644 --- a/nls_files/experiments.nls +++ b/nls_files/experiments.nls @@ -82,7 +82,7 @@ to choose-intervention-setting set welfare-support "none" set OC-boss-repression? false set facilitator-repression? true - set facilitator-repression-multiplier 2 + set facilitator-repression-multiplier 3 set targets-addressed-percent 10 ; not applicable set ticks-between-intervention 1 set intervention-start 13 From ba1e82b4d102f19972b2e77f0679cbc7d46084d4 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 24 Sep 2019 16:45:11 +0200 Subject: [PATCH 33/38] Also mortality rates for e from here. --- .gitignore | 3 +- PROTON-OC.nlogo | 2 +- .../data/initial_mortality_rates.csv | 173 ++++++++++++++++++ 3 files changed, 176 insertions(+), 2 deletions(-) create mode 100644 inputs/eindhoven/data/initial_mortality_rates.csv diff --git a/.gitignore b/.gitignore index 1268022d..68db4370 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.csv# *.doc# *.docx# +*.ods# .DS_Store *.icloud *.graphml @@ -15,4 +16,4 @@ outputs/table-output.csv outputs/.ipynb_checkpoints *.~lock.*xls# ipynb_checkpoints -*.pyc +*.pyc \ No newline at end of file diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 6738b094..695f397c 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -262,7 +262,7 @@ end to load-stats-tables set num-co-offenders-dist but-first csv:from-file "inputs/general/data/num_co_offenders_dist.csv" set fertility-table group-by-first-two-items read-csv "initial_fertility_rates" - set mortality-table group-by-first-two-items read-csv "../../palermo/data/initial_mortality_rates" + set mortality-table group-by-first-two-items read-csv "initial_mortality_rates" set edu group-by-first-of-three read-csv "../../palermo/data/edu" set edu_by_wealth_lvl group-couples-by-2-keys read-csv "../../palermo/data/edu_by_wealth_lvl" set work_status_by_edu_lvl group-couples-by-2-keys read-csv "../../palermo/data/work_status_by_edu_lvl" diff --git a/inputs/eindhoven/data/initial_mortality_rates.csv b/inputs/eindhoven/data/initial_mortality_rates.csv new file mode 100644 index 00000000..6f9ca2d3 --- /dev/null +++ b/inputs/eindhoven/data/initial_mortality_rates.csv @@ -0,0 +1,173 @@ +age,male?,p +0,true,0.00394 +1,true,0.0002 +2,true,0.00013 +3,true,6E-05 +4,true,0.00012 +5,true,0.0001 +6,true,0.00013 +7,true,9E-05 +8,true,7E-05 +9,true,9E-05 +10,true,5E-05 +11,true,0.00011 +12,true,0.00012 +13,true,0.00015 +14,true,0.00018 +15,true,0.00021 +16,true,0.00022 +17,true,0.00032 +18,true,0.00033 +19,true,0.00038 +20,true,0.00041 +21,true,0.00029 +22,true,0.00031 +23,true,0.00046 +24,true,0.00048 +25,true,0.00047 +26,true,0.00045 +27,true,0.00041 +28,true,0.00055 +29,true,0.00046 +30,true,0.00045 +31,true,0.00045 +32,true,0.00059 +33,true,0.00069 +34,true,0.0004 +35,true,0.00063 +36,true,0.00067 +37,true,0.00077 +38,true,0.00075 +39,true,0.00086 +40,true,0.00084 +41,true,0.00086 +42,true,0.00107 +43,true,0.00131 +44,true,0.00149 +45,true,0.00137 +46,true,0.0016 +47,true,0.0019 +48,true,0.002 +49,true,0.00221 +50,true,0.00229 +51,true,0.00251 +52,true,0.003 +53,true,0.00329 +54,true,0.00395 +55,true,0.00408 +56,true,0.00425 +57,true,0.00472 +58,true,0.00578 +59,true,0.0063 +60,true,0.00717 +61,true,0.00772 +62,true,0.00842 +63,true,0.0095 +64,true,0.01023 +65,true,0.01095 +66,true,0.01236 +67,true,0.01328 +68,true,0.01461 +69,true,0.01678 +70,true,0.01749 +71,true,0.02043 +72,true,0.02327 +73,true,0.02514 +74,true,0.02753 +75,true,0.03014 +76,true,0.03459 +77,true,0.03659 +78,true,0.0422 +79,true,0.05023 +80,true,0.05626 +81,true,0.06452 +82,true,0.07064 +83,true,0.07894 +84,true,0.0929 +85,true,1 +0,false,0.00312 +1,false,0.00024 +2,false,8E-05 +3,false,9E-05 +4,false,7E-05 +5,false,7E-05 +6,false,9E-05 +7,false,8E-05 +8,false,5E-05 +9,false,8E-05 +10,false,9E-05 +11,false,3E-05 +12,false,7E-05 +13,false,0.00012 +14,false,7E-05 +15,false,0.00013 +16,false,0.00011 +17,false,0.00018 +18,false,0.00019 +19,false,0.00011 +20,false,0.00012 +21,false,0.00015 +22,false,0.0002 +23,false,0.00021 +24,false,0.00019 +25,false,0.00016 +26,false,0.00015 +27,false,0.00018 +28,false,0.0002 +29,false,0.00022 +30,false,0.00027 +31,false,0.00032 +32,false,0.00027 +33,false,0.00035 +34,false,0.00047 +35,false,0.00035 +36,false,0.00039 +37,false,0.00049 +38,false,0.00055 +39,false,0.00073 +40,false,0.00047 +41,false,0.00076 +42,false,0.00085 +43,false,0.00091 +44,false,0.00101 +45,false,0.00094 +46,false,0.00118 +47,false,0.00139 +48,false,0.00163 +49,false,0.00171 +50,false,0.00187 +51,false,0.00189 +52,false,0.00221 +53,false,0.00251 +54,false,0.00292 +55,false,0.00347 +56,false,0.00329 +57,false,0.00374 +58,false,0.00438 +59,false,0.00457 +60,false,0.00525 +61,false,0.00564 +62,false,0.00644 +63,false,0.00684 +64,false,0.00703 +65,false,0.0074 +66,false,0.00898 +67,false,0.00905 +68,false,0.00981 +69,false,0.01072 +70,false,0.01238 +71,false,0.01303 +72,false,0.01514 +73,false,0.01621 +74,false,0.01794 +75,false,0.02054 +76,false,0.02331 +77,false,0.02539 +78,false,0.02767 +79,false,0.03148 +80,false,0.03743 +81,false,0.04261 +82,false,0.04912 +83,false,0.05644 +84,false,0.06411 +85,false,1 From 39fa825107e1ea79a2a745108de1ba631952e629 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 24 Sep 2019 23:26:46 +0200 Subject: [PATCH 34/38] add raw file initial_mortality_rates.ods --- .../eindhoven/raw/initial_mortality_rates.ods | Bin 0 -> 17315 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 inputs/eindhoven/raw/initial_mortality_rates.ods diff --git a/inputs/eindhoven/raw/initial_mortality_rates.ods b/inputs/eindhoven/raw/initial_mortality_rates.ods new file mode 100644 index 0000000000000000000000000000000000000000..60bab03f9e7fbed0abdd07a6edb6be1e592ed144 GIT binary patch literal 17315 zcmbV!1yo&2vM9kVKp?n<;O_43?yiRe1b2tv?he5rxI=Jv4esvlZXfQv`S;GeJG1`! z#oCA6r*~C#Rd-icSJysrl3?JUK|r8EK=#7fWc|(ALuf!iK;EynuRttJEdcf|)&PBL zYjaaWeS1?YOIk-uBN{7xJ5xIvD{FwIk(Hr?1;Emt#?IOnpl@Vn0sz>{{R>SH?uU+R z91xKA3*(KZl8J+bfu+8wxgD+jKW}NQErG#uGNK=0v0&dG`6wAjClQc_e>R9073)6`H=)KXK?)X-4YG|gJ+Pdr;np|u$#BPn{TLlK$K@t?008NUpG4+57%HX2S0E35O2p&AD5^A z_n070-!}*d_6rIN4)6&J@(&FS^$Csji%1HMhzW>F35$vgiA{@4%7_Z|jtljPi3mxK z@QaNKPmKyljSY#7jg3i2iA(yCk`R-Y9G{w+8kUe5k(?8oniHE|kdmI0kX4+TnVXzl zlA2$UUQm^t7@m_Fll>#5AU!rOE3GIqp(H1@B0sIFAU!81H#@&5yP&ivKfAOrucWv* zr?@7kw7#&cD!-z!q@uRCy0PMCW_58+RasF(S#E7*NmFHhOLakYb#-N3Q+0iFV_j8C zLrqgtQ%PNWS$$`9Q&&xEe`9M$UHf2DdrwpMaC7hP*8Yk1x{}WN(yr#}j+Tc0*6N;) z=Arhwp{~Z?z0DH?tzBJRoxOwI1EYgI9mD-SLqkKILsLDYa|5Fjy}##&e@_ifEsf2s zP7ZaAj}Fa^c1?|sER6RqP7bZkjZIEYj?XMi%`eZ-Of1b$FD)&O&8ZcMN4Ev&51 zt{*I}Z!c~gE$^JI?47O6j%+MWt*}(wE zZyg>UZXRA7oSg5T-5#G`9besF9B!ST>|dQ9KU^JMU0q(>++W{6-rZb2+}*sqyzF61 z8iIgeR)`DnD>*M5Ya=Qt0u!8^9Gx5;)6Q$U%tgP=Ym|OJBkHFLl(|FM@$(mSAqBc{ zP7xUL2SE~7GBgH_2A3*DBD%%zL_C}yO!2M@GMk`mJ+ z42~pnT1Bt$lED|dbq=uNq}^>6WxBPw+kR|yJ3U=_T(*L6$JV998!0bDT>7zNg-!vw zoYDm+Xw9FOAhZ%5b19;*ZE(u!&c+k@Gsyjy`sZ1U1JZ2+#*f`C_p)0;lU3OVRFN@l zAmhri-!hJ00uV3x9BWlgrw2Xx-7938I<_Q>lVAN#A5Q%M!l>p$q6HKv7HFre=}z~{ z87~x#kG-@4i!UR_$+fM|YbZS2mCXe#L)8W__X}C|OKK0;Ij(tbeB`lY&SQ6*TiNp~ ziikY(N!Yc`j7Y{Gm?G%Vf4|PI@_X&SfRxYvdg7=MoV+ygI_|OZH-2^0Shs>H(y%4v zTNU)H63g9}9PnTgX5r}H3Xq9OgDeJDRl4mWcr5}tNNdKAgNqa>!B;|SPkzAnmOn3? zpZ3h|+1m7PSf~?_fG#V5)bVaKm|Ghh|M6Q;?AVerQrP5FSq#hf7Exe-@KaEF>yPY3 zt{F6WSK%PaqH}w;9Nk%~5q-#~YW78+ccrB8-*2UOF#NfbpGw|(H#>|8cSg+8o%^NGG)BJS{SV44nJnfkub+$;OE(H+bW=_vEY zGNK=a%X6dcyS!kp3t4Gl6UfjF(JSO?d{k}N*+0M7foE@cLCJSm^MZbHh1XOH^8l1s zkCt-uVhkCOty4A4-B^kl$Sr^0bB3IsT!Z-;n|h|L%4^ta-KuKbSY``_DX}96q++yY z#ob8a$*~K>zB)O}jW!0jBZgBKxhqV7Ssl0O{Ui^c(G_E+sRx;K<#5f6!tw((Gl^N) z|3Y2_wTRh2Pl+&nkzGZlKQd`I+Ry{XwE66c0lJZsc(cWj6*2`b``yt76G}b_dM$Da z8nW{;7tE*m$MaYMovdZWX2>9DGRf^Nzu$)Z^rwGFSOER3b zn|OAsxhGf|dnmq}O2%oU9B;QZWsb4EzWOz)(^ziB)>Sg0S3vm=El;J4r&d!9pd+x1V(?3C+<5RYL^o+VN|(jFRf`Q+HfXe)gVRZw^J zlC;KOnMPN0&u8I;EUBdG;@+g4Fy$L&{y>AY>bRs!jR<-&9*u&3@dn&(a$< z;zk0d0@WQQB(TV}oM5)I1 za^fm?m;HFI=%yT!AvM`dFzCQtIh%sH@QTR>CVt&7Pg0z_G^8K-HbW1{8=mmuc(q3P zk77X8{O1R4`0Eas#kCZdi|EbeKZVJz>!{01plX2*N-I1-Y)N3tJ+Zt}AkD)MZH>u1 zEyaXTQ+O@uzd#GlF_zP*B*{sJe?#wg9I_;M{c5)Y%Nq;}m(k}`l6Iz%8DmK^T6TD( zVN`O$|Kf&}Z0b`XciKJnVYTw&Tz4aq-`*j@bPaPP<@*`f1Ozx~vV-!h5%JdG`PmUS zr1+EcwIMP}nc=pmJ~UP#6RBN}1)Qa3riIvHR#RVuUq`Ld@xc3h)Ws=UoRTDCZ@xR^ z!=g~dpKUtsc3JE{m zehW#lFJMHkzA@jkffhN|L;V$4PG7(gTUqM5)l{d=A8+rJ;>77Ag9BP;qIL?GjpDE`4?XDzqCX;WHD{v)ARo%*c7?eT&tgs^&vt`{-$7W>E2DF9iH$T|j~ zjn9I8T3|!dY3L8b^Khh5dUJx@(0Dp0Znf-LnlQe5RS8=#Wd^jtrL1N@pb-k^u&6Vw z=-4v&)QXO67XK7EY}{Ka`;7@_D|zH@v|Toyk9WLAy2QBN+DZU$^wqMzhS7d=+p(Ln zOHZVNLo<-J$QfN?VAp-vdOhm66Mm(0{>1nL>ci1`(PVma7gxag?AV~0weU8aC;?{o z8RC69*F&!XHtS=)Tb}z4=h;G<&5e#Y1l>kbb_)Mwfs!)&4jQ@bK2?#c{`d!aW@?n5 zQSjyXBm?Bk$?H9ikhV7=g0;;B33y}|lUGzD&A;7tcwP}Cl?GtfKT}a-zH-FJRHzHc z!)uqJ^f_4Nl9^NP3lK~)RabRJWtoCB1P&JINV(2_@fuD0RE=WLxzp)b64UQM)2jnu zNi)QFkp~>chMFA0z?7f|lb>d!x!2=Mm{gQTr;B;37GpvMRd%|r9m~zk(tb@_{b*9M zryU4$D&+%bCTV>=-$juPNzf=_j0HXY;>>5Q&>D2M<5uDMGus<8Ya(px*Zl&W`Qf}N zV-EPTQ*vt04tU^vQ+=bonmJlGZwbrJfT{T`D$t)@X(+VFdsxj(GEgVlgh-i4rVeT) zqBokTj(H-oYe79Tfhc8OkBv!pEZyb0o(Jb`UYzYsnXQfO;P8j5z*A6K=@Taz9eB95 z_z7^U$#FlLg|s_D>4kFTeXs0Xl&j-ZA{jr@WV76g`eu0N*jp$qAJ8G?hc2^b=1))> zYTdCTYm{HtJ(Ia3RBfz3zMyzNjlEh{4jfJ>;m{>L3h8BW)1$_Rs9&~Tgy`+1*(=d7 zQn)Wl$-JJLR}|YaCsZ4Bv({EkYuS*aCM|lAPnx1}aez-uM68QbO*b+xZ>xf&iAyxZ zWdDXR3AT#Eyn{Z!T)@x^lipKxUv)sU*xP$UlTz8qEE<||e9*~==PbjU4h_6Y@58d~ zh9KsH?>6ayll(b|I*Hu`#tsI$Tp%-$1*yeZ0QB! zTq-B0kHpB+q@m1m@cAUpS^Wns^imB!nZ@Pib*$1$`WxM(9Ek)T1Wfp#k?(?4y(~EM+ zQ`RrX74ZZ>W^bU^q{PwJk6rN;mH3?HWm$T4wwrx7j`E6H^;l?wA~ot6on93y>5vEm zR&=xSALnMO8ND$60r@)o06D7?`ow7{@v%wFe6wHuSA~H&A~8dRP(%2S4)?M*OFf_B+g6t*txhr^ z`_{Iok^;^3EPzhvmZ=@RV(_5$3mvn7+tkO$VdH9)v41!=Rc4{XkYvQfI(x1`dL%9> z4d~GnvRL!&TH*FLE@XtnOc4bOu-6s%3{Bj!Q#C5-2j3~2wdwowK|{Zv`oqvSi%s9b zTyyedYiq+le%Yl+FOf%FBQgGdIygSfpi-|gu#oX%Jw8m?O_zB#Lz|7I&2SlazY{fH z*#uE(0-~gXNuWk>E(AHmxueFyx_j!tHF?6S9U%snYym{58q&VKb!7 zqxVwPtIySQgtx@m_~hvPJ$1gWSGZ^mqtYGExQv!mGsYqb zeTZh4{h7H3cfQRHGNkBJ0dU$Sx!$|7vx^>TPNtB3!P~XktH9_e9_DLwi>)?gfZoWW z^C(}yv>={g08Iah$n(5Y_leesf&b;Ip!v(QuXWlv^+uG{dSlsT;-bR&k)4X_29JOC zwtoLFvH;R)s|hs6Gx#igS)=A9$#zv%J~A!J8|KbpwT0qAvFxw0VaWlnY-$_~;$+>7 z*(J~BY3%-7?A53j16myFN}FiGqq8FZ2aMwM2|S$taQH+c2R|u;{ceKE^t55ug1Jq`<5Sk3%>T@P-Q4f#dx zG^q@w=S6NVg1Rd)99k~TL-S)1J7-x{h4RF<6Cvf2JCa1(ZQhARVK(XcaOO-r{8Q}B zc{<;19bX#vGlnLhKdo=7*iY5Ril68n2B~^B6qnwloHK%vj&VJIn`R6qwaHGZQCvgx=GP{L8Vepa!-x9yo^~M+HMnWY}r*czYrl(H0K&is(+6geqVQ0 zfzT_>xYle}KLv-|{JGj1mX4F=;uiD|zi`&$yqQFdc);z9E~YJ1NNSMpzW5>QoKM$4FUhV1o@URp4)%fzGhTTOK@{Ohi;3ABx)He9 z{pasAhuHacN_#j{b`q3}!KH4gt?meB?XbQ_+U?ANV|QqiavHdMV|YQ;r2UL)PY@0$ zA=ST*5w4oT1w0J3)PGivtaD1nt4!QKDbJZFCR>UH`i_$SF#m`Qg(1;lACv_u?B+XLxxYo&>3tr}?(QaH@fseW>g!w&XeE~*`7v=*hx3y#BkA}2( zENQ`H5k|jl_^l(D6nXe)vwQBtJ$hsJ_=HgP&4s&g6ntKVTq)0Q`Kz>#|EL* z8SEEdM$?}VknW|CW+;*&u0L_jDg)HSdgvK?A=EjpgW~0c*o4&0SKDOcvQwi4Sd!O2 z6RUD=2wRDS_CFVk#~hB0W^Kql`)Asc&N_=RlVM zmZR=v99>Z#e5&*uFL^va2wk|aB)i3r^6LJ2n+H!Zair>9kn&8|0=mh@*}ULAdc2~- z{mXE1`pLZg zZ?dz7^V*rKCP(L4YHQY;6>u~xDOtrK*N?2K4Nu&3>Hy!eNhW(t(}yFM$Z?bIIw0sD z#w$p|17&4UN5Jbw0QnkNPE4tXKEJstoB}Bp{7iNKwr-|uyLv$v0d*ID&)Q;M1FiH= z$I31)Kady_ke>!cl6m-&Fil!$I(CMt?O;VuMty}5exA3BgXH$p(qtQb!CZ27DdTN2 z`TTW%W-C>Wq`NkKS@3riC8CTt%t-K@08a_8o6-}s&`LGl+{b6<8{p56uRN^-O`EuD zV}nv7g9Di;6ujTOZtQ_UOI|l~lsTzVh^hScNcgo6uT`Vs>Nuq=6T@ailB+3}dNe%_rlw(=Fl|#s~(a zE!)ZPMuQwUEm6uIBkd~t{>GvN78_Ck)Hb>ImSOKZmXVTs>H6e#mnHqUQD@mW&uX#d z5vMJr_rUAiD~+SsnqVWmbi{8tPK~Ry*a9evR@!Llul%h(#r_!TJe&Tox&dZye2lb7 z|BR4rtnVGvTKU;qWT1~`3vmg!>(A!aljSN@AjjY=&d;bVO0 zP(!dcvUp6N284Q%4M8nF4&^aAephuwA>2YgIGg7{%SHb=wcYbPd0m8g0G55(PCH!1 z4--&<8+xP_CId5!*%U@mEe{SYUO%%@Ij@`FITH`HD-fk;9WInykn#ZLLdE)-G(^)pbGab%;Ura^9YyO{wdzL4O3 zb0u$!RrGMdlR)@ys{U96XeV-0;DyOJ%DyjKw(WvBO+`HhD>`m~S+!fcseWyhiEbu} zI~vx~9xg1tYrB5+{k!-Zavsu93KyoXv)snw+(Ks<{u{~Y1z2)cm{;El2);Q6RQq>U zFPg0EF$2bXSADGnCy&bPpkw*$eCyvPQ)*-hx0rO(QW#Sc)|8ZnRk` zmahR#><}F*dkZPMBQE{Hvk%ampzaHlC;2@N*&DRpPVSsY)-`UMu3ZN09 zQ)2;N*MBs)IyUk_nTdZ+0LG)H=K}Y4MdScJ!}iYrr{CW=W*~#{B~0~WXKgtP(--Q;8gMD^5 z5YPZyYbbjcUqeMnh11&wM(9WSqNDMR=gG3h(dyPw9WNzCGE*6cxmN`)Q|OR%z-MBR zyRI4`FK7M-?@T_5q407RcYN6y6JKlz>}C^NuePuFJ@di{pYjY0!xQDwo`309h;)LE zNRXDndui?YG}yqaTxYF zhP*QVi^I%W+=jc2(sh|K{VV>#JlK6VMBLi$?fuZ$`=&RCuXf7he%AO4NS%$NZ_pi? z|5q(*M;rD?I_ZHYvAk{;g2Gg!7+34^6ox2JDo(XJH@9C)e#4q4@uC#lP*{BYKt*#= zo3OdDp!6VR6h%wB)2yFj2B-*OZ(A_pMao>7mUxkk&>O6S3W6;h)`1y}EQS+|m0yN0}$ zuoZh|GCX3~66kWkveWiZ(DD$wKTG_$xyzb*22W5XQn`!@KdGYkW!byxJk!RWYg9u` zMVY<_8F4o;T!O*gAV%=!;iB|pqa4oC&{2wYp>1gQxLen1QHZ#(D!mwzOK?Mv*p2`- z*+=LRr;-OCPM-t}1Kayf>rzG>>3rw=^Qn2_I9xy&L4jJ)gIJydKvcft+m~*;mY{v| zIMLOT$8aR~Z&1JT5*f7Wr6&mVq8A>8w{LNSMB-P`#EZCv1*PDx@^kUlzzWA~5X0LhOvd#Vo6A6C|u$!_R(iE!pJ*a?RcKk!s9 zr$(FItj%p2Fa@ID;;j>Yt0Wh>zq*{r^*5}{VS64Z*|HfJIa2kKpu5hdk%d1-S;kCI zw_~*xj1Dq<;ExsHtnYdAx{H646m5LWZdq3S4P#!Ot4bp`md=C@^pYF%%p`Dtty}Fx zo_0QB5`>h+agiGv9inBaW)@2;cYPu@CtU&i+Jwzg7G16YanooRWY!Wyff##vbfzU9 zvClh8J_C;eTgTRv+8;A|?pqOT9SRd59PJH@}y-;Ogu#D!&q$^`U${_Uvrz3PA9{isyX%F@^r z=wSQD!K)nut-Y0%xq-ed?SIC?{~Ih*3w0CT{bhOPda zjDM$@ck%vvOaD&7_b#;7w*;8~k7l5uq5n8}e-rBe0^Hl3p_Qfm`?0#Sh550zw%ukO zs>f;hSplO*jxf?wOw)=Kr}*Q>h<%mmPb*A~Y;%^l0s?Zcr$-QEBE>2y9HU<=p`0%B z-5UhX!FDz_HbIeytK8HFp@CJ$MaC}N$cgKF*;+EG>b1>Hc+Zc!Uf}n8O_5#?zlV3H zYnoG-C$F=$ZaQkzZw}hf4^9A1wJomP8o!2$^Y@BQ%+#p{Pl_^hn2T*2nhwo^S{Jy! zJxb2<&Ym4(pPikwx*v?EGT*GNY@m5vKyo#^&7ei@jbIg1I5k*Dtz;Tc+NdW!=r5~j zg`6Wakv)Re${GfeP|t=gR{6g*DO9zjY@tdK>AG=&zS1Y)7UyoZ3-?GH(aB2b@~YKD zpLfw4QCoP_S~a?Qy(Kie&C7Sy{YhMV>FIKRr>A@Y;(;ohyP(Kavvh5CDLe3%Rl1s0 zd9}jg2-_})F05~{4Qj8i`mC?+V8{_9Bi&y%)U~nv+}NgQ;Q^%SnxRwd=(3=b zaO~{!n+v?9krk?kwhT)i+0!B6bI`J*wM-31k4pE#WR=*nom7&|IxS|4w(=x)Ja<&h z@s+wqPx&@nj;m?htFj*>G6M1Jwk4fGX5Afv$~-UkU+U6t0|%VJuzDw}S%a)g=pRW6 z_dH=&q!92AJ*hls1nVw3_(_q;^Vy>Iy!G5= z^5tf-r_GXvr##Wg!@=%+tgX#-ksgWuq~UO=CsFOz+nsvluTGw5d z=kw5p%*7> zC!_0;9TK&*Rma6uO-Zb(zbw?Bu$B^v<_kfubDW5=?hKhHx!q}Kwu@Gicq?|&Ovl}l zNn(en9IK^U6D@4q$w@5hdQJhFSh@k7J#{zKPTx}d2)m|e1&iwvuOe>&4o>A84M8+^ z&u5pAg)s*#dse!sjktd10qz~&e7!#FvvGhY^Ow@>O}7A>3*9OC z;v8CRa;Q}a*sZpoVZNOyK)4JrSjde$d^INkn6*;pXnz3V#xB; z>i`yh7eHi&f%(zd<>Gds0Ba{0)S-gSwT{9nBOmp;5&mH}Uck|#*aTnu=wcaVR*C;% z@F2%58^3qwl{YL>lJ~rMHsILf5l&j3zVK;uB#G92WvM}bg^uNO|l&;Qe~Du#RxT=jGFeEK*s(P(1S z6m(Y@uT>q;&!7BibRUsFNiGL2bbB|a9%v5}=uFlR(GAY<(wuQGk_4tZwFfE)M%mbW z(#Ft#7lxw04(_@O)AK?ZC^e=&4$(*^+{hl430fJ+v8Mb_2XNSysBlI&YVHc%J>it+)Ra$Ari z7e7Yp;gkM?Xt%^;5bi`|lGeiq64`|20mi|vR5ciHZD@zVE15#v|2;_5q7rc3{fY9L zuvdfyQZj-;>N!ZQ5WiCJ;nSofFWohvL7r##oZgh)fP6qtP*D8CC(iy(dUkcTP8^!I zD(CbqLw)YI8zO{Ks;t?;3W5-T{RSq$6Bvf9$V)_f-F4UskE5&s8RsQ;lOCsk5V(!v z2aF>|@KF|!sQ_&gRO8`y7EwRoQ!f8Cuh=AJGe0K`wY=2`Wj8(yZe3*#ajCZL#r3rV`rPwv}A z*T4HpY%3YpjyE@P?<$hmwJ;L2vM>U!$c-#hB)V1M{5AWR^Vbd>n)O^)q5l~Tnd#OF z+-HcXTRh)Ll8#|WdjvVag~jQ}3_?UZ#m}Qqp0JZUV{+h^Y(ir4Cx5r=ox>_`;(!cU`VG42hQ3H-erg(9qKl2BeP3t6tmhf2-(LY zCtW54bMjzNvyIb7<{K2h?Z=@wqfv&m;FAlgp<42Qda0Vdg3DE zqAv&ptXZ*q-?;BskrQqUvN196SH^!AZKPA+5dx<>i1pt?ZA=!9ajVg>GD4y;@%76xk5nF`;3uM-Y4lZb{`EM+2c=vBw|*>-Fy)Z&Jj5 zpvn$^Cj?~vgQYbl;W42^JEH>p`%JmUB)ldZY`+)(W5_~RP#xTaFko(!N*TVX1Lnh9 ztzhq6gfiCKfIe%M6FCT!!X=Z0Q3wd9pazpDCks6{j5BckNd`!20)*8>cCSxL3Y<+! zMwsHWzi|=opdS2VKHfw#PVh`%Xwm+3j9LE`ucI{H62}7t&BdaAHDtq4s9#nKP5rR-k0|qhnybfANT%)K8#Rh@*3>2l|=axe#ZK#UO^r zFsWZZda~JYc(X)DZ-vBp9|vKpz(VdXqpSTaxxTVMXl+BLKG--t#BJ&!pt7UWea1KNN zL9|=)^^9{8N>-x+r)mushyazPp|E4sfyp-Rn+Un_dw8#w!92}CePJEf5TOOLMNzB0 zK`+5nuhnM9X$IPo(sEvYiE|W3raaHd8>c>Muqt4XbM$GHj}EoF3Om>-&85`GyJ=3H zrQ$N2vAkNOgto3^;5>pJeX!q#g#M$@#RT6ObrDkn4sedG$CjwUDos4lkz~J?ao9C< z{f&nUC)h6TxdMN#U_R{t-~m~YpNJL}oNH?7U1*oIo_Y7p;Y-JW!Y>K9>u)0QTf}Wm zi3AJ73`jzBuzJj>*{11J1a0N{c=vU_*^W`V$ZBxtRW>kI85T9Ow4NjcEr%`M} zDX3tV{V!`g&2OWVQ3|RuEqE6jxRx*bUZkqhjL&uGnJh;-b;d^9@?c;vE{e2Cl8VBv?FiZ&KN+ z>3E93?6yC@sc{X@`K<-}XVfASk7%)a9Acdk zP|G?og-uLq-WTgq*8zM!H4}D&|oIDJb!`w!+lo z{n6HNB?T1@F&}*PpOx?YD9GRVL9~s&t&F2|xZM~0oo{W4y?LAEz@+O0kabKTX1!fa zN6aStVYuQO!>+Til|3qmNI(5NpDh%3`~3G-_mY!Sq8fpwGyWk17Y!iKN2*=$_uC`} zCc(zoD)0*>b?6!}C13$D^L>ocl#o8Ho8|Pr(F{dSC=^Y%Avu@QHGCTb!Z4EFXJOUg zT(w>QP%EG?2bh+32aosOA3HV)-}8WJfIC>Y_ackJ09)Y~dFWBiH(UCqfgpfO5im{M zT9?K5t=2i^Gbt{S#F;YvyRyu4V{9h)v*DGF{t&DWkYQ|d7gg4(e~;STo)~*?Cq5alDDuekt@TzI1M@xxmILZ&k6OXsaAOOo%3Usydm-|J7G=~!y z5N@@B2=k2o`A3--{TY0vOQYaN6*w7RFg1}03KHcs)YO{no|qU0^>|?oG)aXi=iY-# zF6jNP*q-d_a75DTMCq3#URtzr=GKo|k9YWG?UhIP4@9y@cue5cl}F+yRPOkan+ya4 z38z7_8XblE>Gxt_Hk~T zXLC?hS;Wzl3@fP##RaG6uKTWl!o~KrM@TqoF2vXQ_O5iSC zZ@P$s4L^5&`MS>Fk68_S&}*ITa`xBvD{88tlOy--<-I z7{IWHxSnQYjT@Vis^X(M9ljS3rc6@wb4ed89Mx_O4PI$TZ7jm23BcZtHs%_| z=NWzoa-?9j^N|*@`$Gg;I|=JVC@LkIZp~6){?INq^4_uju(!t*yJlP@m2+Om5Pnca zt{3|KPG|1)F8677d4#0ggyTjBbTN}6mkj?nUto3{h9JIBfDg5aY1S?cMN@nB_hIQ7 zvoQPw7S|Fi;s*rEUhxG{tiA>oQ8jB~1)ZEiYgf6;LTP;&vSRq)K32}r2-WxlpFHP! zrJj-i5~dK>tfjQVk)Z_i@LB=u=j`#Jy35l=WTjJGO$e<%w4@?%ww6?5$yhV?paF(Z zrFn9OH4g-GWJM6k%FL{+bo!*DtST)*Gc2rdRQ{6UQrkk+j|3_jYGj+@A{Ut?%LPx_ zNmZ?K?oWE5?2;uE%~lDwh1B`!?30v0skLnl`_zF!Wz*0znIb6&c&rczsw`Y*&-{}0MOTfzoInh7<57UQ zXIu+zpcEPv-pC-7jeBT5fKHxGo8EMXkD!~V{flJ6m-TA8STF)B)G*sap5+OPfun1Vi4e-8l#zJDO!?d-pHD3 za2Q7GCo5No8z@V#Zh$5ZLT$z!z`ov_8sA%4tF7vD=Yqov&dsm->1H3(B3R7UQe>lsx!Lv zrYH1>r+$q%NAx{P)wLgI3aep-j5@uysUTJXvq;2nt@WcY5so*9)w}MFwQ$XSTNqqw zAN|%(wwrb=tX7vpaouVAZqHX1Pg-uJR@|VjUI>5fh{ISQ9<~z0pX6y`DW5Bg*QllX zo=FPy^v+Cx_dcNnq>}mg8G&fpnbT9$59k3S&iBn^Oo*9~11*5Iqm-j$&?3?28=aqc zyCf~BgB0)g!N=M4kXDg8tE>cXDs+h<44(v^n7li!980d_f|;x16m_m5BOm8AF@4LxLKIZrG?W;(8691|}%Jz|$bdV3VsgSIfmx^AU$x zV&R6grWw4ceO6Oh4n+d*@uau@Be5fvzH~@_r(FJk(K$X^2nbuU!3ML8cIE&z2-=Gj01;z2Q!+I>onCYpx4MUI8JI!gQ$+;cPEybOv)Crb); z-2{JXR(SKV>TELSluItz=C2*oY&K%>y)_ZgFnHktrq^5USnQ)4FvhC#_J^5KF1KH} zLzg)UGpk_r>l9i7>%K&P=L?6C8uYXG#c7n0>|so}lxOeAI^O8hYnk-T=F&T(j2N3+ z34+hx)>&(*IMI3wWXGGho*241O!l0w62|GJF`URAG;zAT?!M5By<%>Z*EkB9^Nr>J zAEI_^F7TB_%iq;kb89jI@#Z%8{#Uo*U43={dwWw$;2(~|vBsk91{;#cYPs0G1Eue= z7D+yG{%{W;D7d@t9Wn7DC|5LbIk92?Y&pC>i~bpc;n|eT^aZHe!DOk5Q*q?l%@BhS z5DsI~dySL-fe03eL=#5gf>*u2bjrpAcWQewrtj_?|Jr$4^vZf#yRPdMs77;?nPqa1kc9=k$ynU1xoIn9{B9PNNWt8orS0d zs=-f|wHcBC=p#Y05_){E6cdayIUQ5H-L^ynJU_#T4}-wY9k4^fPweuadh3}J(G#CX z{q{cBN;~OCX>7HFAteFEaZfeY;+i2C}vGwj0$Pu6TDkk3fQi>y`KUqWEXera`%!nh^>=B8n|=*kUPLW*vhLAQRbo}g=EX0wkRrA z<^JqtjgP&Q?89MIpc6npj1>dg;S_`g)oWzI%k4n|xC84P^r0brW}JfLCtCR~LNr7w z-r5?qUF>uItgkD1CIKa9>56RdBNrFieKb-+-e8!(sQD<)dnGRtW-|>LtN1r@5SI0A z1#fVSL%)+V<@YK_pTt45(IOK|F5GBjC*y)ULD5-^Pnm7kK5 zz<9kNIUqUx+Wn1ap74+vD}|bA#$uVld>il;AwUIg8cLe-_*d@DR<_J@G>6J`YvYq> zO|e--&#LZHbP-k-@}7mXJHr$JY*tmzotPuG%phdQ?Xjos2rY#pWr8X1;kh42{Mpze zlaSbf^X40&(w#f!c>@;)<-qSUTCS4v^j5rL}7p!vkMMTuuEjX_i8S`EpuGSnNr;^$Fw=e5UX=Mrs zd4+Uw?TQV#bs;xDV5J=R=1pr7s;}S7Cmu3KWRFkIi6(@V;W8d@qHt>#7tJ(LtR8-! zo+t?}SXB8|7|smP3u&B@IHdMc*md0nQ=J*#ob7iMOsGfqv{e#AxJ$%YxSKm%pq@P9 zc^nJx(^qY2M(%07!O8MNldAHIhUC-nVf)DK5pxatWFXAbH`;bg=?wQE>3V?op>?za zMno843BSWiE2k$-yNiwj2scO)+r~&s8Cm-BwQe(Du@MF*Ld8`ohNU>JYuXkE?bExUhD9Yc+}GMNlow5!h*$P_#RG9D7V zyzQd_rHqzxv;jG%Ucl?Bd$+OEiME4JQb}Kc$C;DLhdLe2Bdi;byCU9s%cg}Z*wXJp zwi-&?c=?NU`s~?P6!S##*HJ{Z6Ht7|i%VcJPm8poKNl?_D~wf5ch|Z0du3z2+BFkDN~KB3NN!C`lumSUIpI{k&iVWj(R% z*Y+Nt(#uu#8TR>UpVdG73{>_HrHpS2B^CI))<1xL2Kmo#%D<`pFYwRz=Kme*-`|D* z6GiFm_CLKD|G%jGiT1}E^?w$=> z#Gi2SH^lx-D*4Y;-jgT(1Twt;E!ba^O#WZ#==}|yzb2jhXFBg`Cx1fH-_ZHjB$WSG zN)vxW>0gsl{xhY2)inHDFaCSR(4R>v|C!3aYFglLsQfi)*T3Wa)#ZJ6 zZ2yFImVezP{5$4fE$_c#zOw$SgZ%H9f3+U(mibSp;{FeIT22z;ZCe8Z^6Bjl@Md(# Ic;8F^2PSFWz5oCK literal 0 HcmV?d00001 From 665713612938ec9f500761db024cc08b22c3dfe8 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Tue, 24 Sep 2019 23:35:06 +0200 Subject: [PATCH 35/38] Adding rp0.8f to redo facilitators. --- experiments-xml/rp0.8fp.xml | 166 ++++++++++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 experiments-xml/rp0.8fp.xml diff --git a/experiments-xml/rp0.8fp.xml b/experiments-xml/rp0.8fp.xml new file mode 100644 index 00000000..41a36965 --- /dev/null +++ b/experiments-xml/rp0.8fp.xml @@ -0,0 +1,166 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 8b9d9a1f8e52131d26df174b4272cfebaf57bfdf Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Wed, 25 Sep 2019 08:39:46 +0200 Subject: [PATCH 36/38] Adding rp0.8e --- PROTON-OC.nlogo | 4 +- experiments-xml/rp0.8e.xml | 170 +++++++++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 experiments-xml/rp0.8e.xml diff --git a/PROTON-OC.nlogo b/PROTON-OC.nlogo index 695f397c..fa66ec27 100644 --- a/PROTON-OC.nlogo +++ b/PROTON-OC.nlogo @@ -2429,8 +2429,8 @@ CHOOSER 175 unemployment-multiplier unemployment-multiplier -"base" 0.5 1.5 -0 +"base" 0.5 1.5 0.410067526089626 0.205033763044813 0.615101289134438 +3 MONITOR 540 diff --git a/experiments-xml/rp0.8e.xml b/experiments-xml/rp0.8e.xml new file mode 100644 index 00000000..890418ae --- /dev/null +++ b/experiments-xml/rp0.8e.xml @@ -0,0 +1,170 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 492824f8321f23d57255cb93f13d8864ec7eb824 Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Fri, 27 Sep 2019 11:54:41 +0200 Subject: [PATCH 37/38] Creating rp0.7e - eindhoven for the wizard. This will have the facilitator multpilier at 3 unlike rp0.7p. --- LICENSE | 21 ++ experiments-xml/makeInterventions_rp0.7e.py | 43 ++++ experiments-xml/rp0.7e_15_20_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_20_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_20_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_20_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_20_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_41_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_41_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_41_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_41_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_41_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_61_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_61_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_61_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_61_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_15_61_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_20_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_20_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_20_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_20_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_20_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_41_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_41_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_41_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_41_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_41_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_61_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_61_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_61_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_61_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_30_61_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_20_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_20_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_20_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_20_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_20_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_41_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_41_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_41_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_41_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_41_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_61_baseline.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_61_disruptive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_61_facilitators.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_61_preventive.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_8_61_students.xml | 172 +++++++++++++++ experiments-xml/rp0.7e_base.xml | 197 ++++++++++++++++++ 48 files changed, 8001 insertions(+) create mode 100644 LICENSE create mode 100644 experiments-xml/makeInterventions_rp0.7e.py create mode 100644 experiments-xml/rp0.7e_15_20_baseline.xml create mode 100644 experiments-xml/rp0.7e_15_20_disruptive.xml create mode 100644 experiments-xml/rp0.7e_15_20_facilitators.xml create mode 100644 experiments-xml/rp0.7e_15_20_preventive.xml create mode 100644 experiments-xml/rp0.7e_15_20_students.xml create mode 100644 experiments-xml/rp0.7e_15_41_baseline.xml create mode 100644 experiments-xml/rp0.7e_15_41_disruptive.xml create mode 100644 experiments-xml/rp0.7e_15_41_facilitators.xml create mode 100644 experiments-xml/rp0.7e_15_41_preventive.xml create mode 100644 experiments-xml/rp0.7e_15_41_students.xml create mode 100644 experiments-xml/rp0.7e_15_61_baseline.xml create mode 100644 experiments-xml/rp0.7e_15_61_disruptive.xml create mode 100644 experiments-xml/rp0.7e_15_61_facilitators.xml create mode 100644 experiments-xml/rp0.7e_15_61_preventive.xml create mode 100644 experiments-xml/rp0.7e_15_61_students.xml create mode 100644 experiments-xml/rp0.7e_30_20_baseline.xml create mode 100644 experiments-xml/rp0.7e_30_20_disruptive.xml create mode 100644 experiments-xml/rp0.7e_30_20_facilitators.xml create mode 100644 experiments-xml/rp0.7e_30_20_preventive.xml create mode 100644 experiments-xml/rp0.7e_30_20_students.xml create mode 100644 experiments-xml/rp0.7e_30_41_baseline.xml create mode 100644 experiments-xml/rp0.7e_30_41_disruptive.xml create mode 100644 experiments-xml/rp0.7e_30_41_facilitators.xml create mode 100644 experiments-xml/rp0.7e_30_41_preventive.xml create mode 100644 experiments-xml/rp0.7e_30_41_students.xml create mode 100644 experiments-xml/rp0.7e_30_61_baseline.xml create mode 100644 experiments-xml/rp0.7e_30_61_disruptive.xml create mode 100644 experiments-xml/rp0.7e_30_61_facilitators.xml create mode 100644 experiments-xml/rp0.7e_30_61_preventive.xml create mode 100644 experiments-xml/rp0.7e_30_61_students.xml create mode 100644 experiments-xml/rp0.7e_8_20_baseline.xml create mode 100644 experiments-xml/rp0.7e_8_20_disruptive.xml create mode 100644 experiments-xml/rp0.7e_8_20_facilitators.xml create mode 100644 experiments-xml/rp0.7e_8_20_preventive.xml create mode 100644 experiments-xml/rp0.7e_8_20_students.xml create mode 100644 experiments-xml/rp0.7e_8_41_baseline.xml create mode 100644 experiments-xml/rp0.7e_8_41_disruptive.xml create mode 100644 experiments-xml/rp0.7e_8_41_facilitators.xml create mode 100644 experiments-xml/rp0.7e_8_41_preventive.xml create mode 100644 experiments-xml/rp0.7e_8_41_students.xml create mode 100644 experiments-xml/rp0.7e_8_61_baseline.xml create mode 100644 experiments-xml/rp0.7e_8_61_disruptive.xml create mode 100644 experiments-xml/rp0.7e_8_61_facilitators.xml create mode 100644 experiments-xml/rp0.7e_8_61_preventive.xml create mode 100644 experiments-xml/rp0.7e_8_61_students.xml create mode 100644 experiments-xml/rp0.7e_base.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..520e2ecc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Mario Paolucci + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/experiments-xml/makeInterventions_rp0.7e.py b/experiments-xml/makeInterventions_rp0.7e.py new file mode 100644 index 00000000..ee810e1e --- /dev/null +++ b/experiments-xml/makeInterventions_rp0.7e.py @@ -0,0 +1,43 @@ +import xml.etree.ElementTree as ET +import prettyprint + +repetitions = 3 + +version="rp0.7e" + +ocfamilies = {'8':'3', '15':'6', '30':'8'} + +for ocmembers in ['8', '15', '30']: + for employmentrate in ['0.205033763044813', '0.410067526089626', '0.615101289134438']: + for intervention in ['"baseline"','"preventive"', '"disruptive"', '"students"','"facilitators"']: + + tree = ET.parse('rp0.7e_base.xml') + root = tree.getroot() + + al = tree.find('.//experiment') + al.set('repetitions', str(3)) + + experiment = "_".join([version, ocmembers, employmentrate[2:4], intervention.replace('"', '')]) + al = tree.find('.//experiment') + al.set('name', experiment) + al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') + al.insert(1, ET.Element("value", value=ocmembers)) + al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') + al.insert(1, ET.Element("value", value=ocfamilies.get(ocmembers))) + + + al = tree.find('.//enumeratedValueSet[@variable="intervention"]') + al.insert(1, ET.Element("value", value=intervention)) + + + al = tree.find('.//enumeratedValueSet[@variable="unemployment-multiplier"]') + al.insert(1, ET.Element("value", value=employmentrate)) + + + #write to file + tree = ET.ElementTree(prettyprint.indent(root)) + tree.write(experiment + '.xml', encoding='utf-8') + + + + diff --git a/experiments-xml/rp0.7e_15_20_baseline.xml b/experiments-xml/rp0.7e_15_20_baseline.xml new file mode 100644 index 00000000..2f56ab29 --- /dev/null +++ b/experiments-xml/rp0.7e_15_20_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_20_disruptive.xml b/experiments-xml/rp0.7e_15_20_disruptive.xml new file mode 100644 index 00000000..5ab0b87e --- /dev/null +++ b/experiments-xml/rp0.7e_15_20_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_20_facilitators.xml b/experiments-xml/rp0.7e_15_20_facilitators.xml new file mode 100644 index 00000000..4df92b13 --- /dev/null +++ b/experiments-xml/rp0.7e_15_20_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_20_preventive.xml b/experiments-xml/rp0.7e_15_20_preventive.xml new file mode 100644 index 00000000..c257f25e --- /dev/null +++ b/experiments-xml/rp0.7e_15_20_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_20_students.xml b/experiments-xml/rp0.7e_15_20_students.xml new file mode 100644 index 00000000..418eb28d --- /dev/null +++ b/experiments-xml/rp0.7e_15_20_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_41_baseline.xml b/experiments-xml/rp0.7e_15_41_baseline.xml new file mode 100644 index 00000000..fc62c9d0 --- /dev/null +++ b/experiments-xml/rp0.7e_15_41_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_41_disruptive.xml b/experiments-xml/rp0.7e_15_41_disruptive.xml new file mode 100644 index 00000000..65282729 --- /dev/null +++ b/experiments-xml/rp0.7e_15_41_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_41_facilitators.xml b/experiments-xml/rp0.7e_15_41_facilitators.xml new file mode 100644 index 00000000..80179782 --- /dev/null +++ b/experiments-xml/rp0.7e_15_41_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_41_preventive.xml b/experiments-xml/rp0.7e_15_41_preventive.xml new file mode 100644 index 00000000..86bf97e6 --- /dev/null +++ b/experiments-xml/rp0.7e_15_41_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_41_students.xml b/experiments-xml/rp0.7e_15_41_students.xml new file mode 100644 index 00000000..a9ad473a --- /dev/null +++ b/experiments-xml/rp0.7e_15_41_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_61_baseline.xml b/experiments-xml/rp0.7e_15_61_baseline.xml new file mode 100644 index 00000000..c58a1849 --- /dev/null +++ b/experiments-xml/rp0.7e_15_61_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_61_disruptive.xml b/experiments-xml/rp0.7e_15_61_disruptive.xml new file mode 100644 index 00000000..763118cc --- /dev/null +++ b/experiments-xml/rp0.7e_15_61_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_61_facilitators.xml b/experiments-xml/rp0.7e_15_61_facilitators.xml new file mode 100644 index 00000000..8b4d5e65 --- /dev/null +++ b/experiments-xml/rp0.7e_15_61_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_61_preventive.xml b/experiments-xml/rp0.7e_15_61_preventive.xml new file mode 100644 index 00000000..ebbfe29c --- /dev/null +++ b/experiments-xml/rp0.7e_15_61_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_15_61_students.xml b/experiments-xml/rp0.7e_15_61_students.xml new file mode 100644 index 00000000..9299b405 --- /dev/null +++ b/experiments-xml/rp0.7e_15_61_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_20_baseline.xml b/experiments-xml/rp0.7e_30_20_baseline.xml new file mode 100644 index 00000000..3c4943b7 --- /dev/null +++ b/experiments-xml/rp0.7e_30_20_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_20_disruptive.xml b/experiments-xml/rp0.7e_30_20_disruptive.xml new file mode 100644 index 00000000..135bc8e4 --- /dev/null +++ b/experiments-xml/rp0.7e_30_20_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_20_facilitators.xml b/experiments-xml/rp0.7e_30_20_facilitators.xml new file mode 100644 index 00000000..1ce8b8ad --- /dev/null +++ b/experiments-xml/rp0.7e_30_20_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_20_preventive.xml b/experiments-xml/rp0.7e_30_20_preventive.xml new file mode 100644 index 00000000..f37c40e8 --- /dev/null +++ b/experiments-xml/rp0.7e_30_20_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_20_students.xml b/experiments-xml/rp0.7e_30_20_students.xml new file mode 100644 index 00000000..ba63457b --- /dev/null +++ b/experiments-xml/rp0.7e_30_20_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_41_baseline.xml b/experiments-xml/rp0.7e_30_41_baseline.xml new file mode 100644 index 00000000..de47b19e --- /dev/null +++ b/experiments-xml/rp0.7e_30_41_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_41_disruptive.xml b/experiments-xml/rp0.7e_30_41_disruptive.xml new file mode 100644 index 00000000..bf2ceb5d --- /dev/null +++ b/experiments-xml/rp0.7e_30_41_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_41_facilitators.xml b/experiments-xml/rp0.7e_30_41_facilitators.xml new file mode 100644 index 00000000..ba24dadc --- /dev/null +++ b/experiments-xml/rp0.7e_30_41_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_41_preventive.xml b/experiments-xml/rp0.7e_30_41_preventive.xml new file mode 100644 index 00000000..0f1c7f34 --- /dev/null +++ b/experiments-xml/rp0.7e_30_41_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_41_students.xml b/experiments-xml/rp0.7e_30_41_students.xml new file mode 100644 index 00000000..3f03d42d --- /dev/null +++ b/experiments-xml/rp0.7e_30_41_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_61_baseline.xml b/experiments-xml/rp0.7e_30_61_baseline.xml new file mode 100644 index 00000000..c7f09165 --- /dev/null +++ b/experiments-xml/rp0.7e_30_61_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_61_disruptive.xml b/experiments-xml/rp0.7e_30_61_disruptive.xml new file mode 100644 index 00000000..e2b39f36 --- /dev/null +++ b/experiments-xml/rp0.7e_30_61_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_61_facilitators.xml b/experiments-xml/rp0.7e_30_61_facilitators.xml new file mode 100644 index 00000000..bcc207bb --- /dev/null +++ b/experiments-xml/rp0.7e_30_61_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_61_preventive.xml b/experiments-xml/rp0.7e_30_61_preventive.xml new file mode 100644 index 00000000..5b1c395b --- /dev/null +++ b/experiments-xml/rp0.7e_30_61_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_30_61_students.xml b/experiments-xml/rp0.7e_30_61_students.xml new file mode 100644 index 00000000..61771f0a --- /dev/null +++ b/experiments-xml/rp0.7e_30_61_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_20_baseline.xml b/experiments-xml/rp0.7e_8_20_baseline.xml new file mode 100644 index 00000000..41429e11 --- /dev/null +++ b/experiments-xml/rp0.7e_8_20_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_20_disruptive.xml b/experiments-xml/rp0.7e_8_20_disruptive.xml new file mode 100644 index 00000000..b05c78c7 --- /dev/null +++ b/experiments-xml/rp0.7e_8_20_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_20_facilitators.xml b/experiments-xml/rp0.7e_8_20_facilitators.xml new file mode 100644 index 00000000..da831a9f --- /dev/null +++ b/experiments-xml/rp0.7e_8_20_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_20_preventive.xml b/experiments-xml/rp0.7e_8_20_preventive.xml new file mode 100644 index 00000000..109048af --- /dev/null +++ b/experiments-xml/rp0.7e_8_20_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_20_students.xml b/experiments-xml/rp0.7e_8_20_students.xml new file mode 100644 index 00000000..7aab265a --- /dev/null +++ b/experiments-xml/rp0.7e_8_20_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_41_baseline.xml b/experiments-xml/rp0.7e_8_41_baseline.xml new file mode 100644 index 00000000..740b25cc --- /dev/null +++ b/experiments-xml/rp0.7e_8_41_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_41_disruptive.xml b/experiments-xml/rp0.7e_8_41_disruptive.xml new file mode 100644 index 00000000..f25b619a --- /dev/null +++ b/experiments-xml/rp0.7e_8_41_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_41_facilitators.xml b/experiments-xml/rp0.7e_8_41_facilitators.xml new file mode 100644 index 00000000..1b813fc9 --- /dev/null +++ b/experiments-xml/rp0.7e_8_41_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_41_preventive.xml b/experiments-xml/rp0.7e_8_41_preventive.xml new file mode 100644 index 00000000..71c62a9d --- /dev/null +++ b/experiments-xml/rp0.7e_8_41_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_41_students.xml b/experiments-xml/rp0.7e_8_41_students.xml new file mode 100644 index 00000000..e4756bb6 --- /dev/null +++ b/experiments-xml/rp0.7e_8_41_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_61_baseline.xml b/experiments-xml/rp0.7e_8_61_baseline.xml new file mode 100644 index 00000000..bc1eeba8 --- /dev/null +++ b/experiments-xml/rp0.7e_8_61_baseline.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_61_disruptive.xml b/experiments-xml/rp0.7e_8_61_disruptive.xml new file mode 100644 index 00000000..5d529c5b --- /dev/null +++ b/experiments-xml/rp0.7e_8_61_disruptive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_61_facilitators.xml b/experiments-xml/rp0.7e_8_61_facilitators.xml new file mode 100644 index 00000000..e964d967 --- /dev/null +++ b/experiments-xml/rp0.7e_8_61_facilitators.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_61_preventive.xml b/experiments-xml/rp0.7e_8_61_preventive.xml new file mode 100644 index 00000000..c2c7e071 --- /dev/null +++ b/experiments-xml/rp0.7e_8_61_preventive.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_8_61_students.xml b/experiments-xml/rp0.7e_8_61_students.xml new file mode 100644 index 00000000..9bbc4405 --- /dev/null +++ b/experiments-xml/rp0.7e_8_61_students.xml @@ -0,0 +1,172 @@ + + + setup + go + show (word "Time elapsed:" timer) + + + o1 + o2 + o3 + o4 + o5 + o5a + o6 + o6a + o7a + o7b + o7c + o8a + o8b + o8c + o9a + o9b + o9c + o10a + o10b + o10c + o11 + o12 + o13 + o14 + o15 + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experiments-xml/rp0.7e_base.xml b/experiments-xml/rp0.7e_base.xml new file mode 100644 index 00000000..112ca011 --- /dev/null +++ b/experiments-xml/rp0.7e_base.xml @@ -0,0 +1,197 @@ + + + + + setup + go + show (word "Time elapsed:" timer) + + + + + o1 + + o2 + + o3 + + o4 + + o5 + o5a + + o6 + o6a + + o7a + o7b + o7c + + o8a + o8b + o8c + + o9a + o9b + o9c + + o10a + o10b + o10c + + o11 + + o12 + + o13 + + o14 + + o15 + + o16 + count persons + count links + count prisoners + count persons with [ migrant? ] + number-deceased + number-born + sum [ num-crimes-committed ] of persons + count persons with [ my-job != nobody ] + count jobs with [ my-worker != nobody ] + crime-size-fails + count persons with [facilitator?] + facilitator-fails + facilitator-crimes + count household-links + count partner-links + count sibling-links + count offspring-links + count friendship-links + count criminal-links + count professional-links + count school-links + count meta-links + sum [ count my-students ] of schools + count jobs + count all-persons with [ num-crimes-committed = 0 ] + count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] + people-jailed + count all-persons with [ my-school != nobody ] + count all-persons with [ my-job != nobody ] + kids-intervention-counter + mean [ count link-neighbors ] of all-persons with [oc-member?] + mean [ count link-neighbors ] of all-persons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 0e9052eb7d309219baf9533162a3b7792fd5cc2e Mon Sep 17 00:00:00 2001 From: mariopaolucci Date: Sun, 20 Oct 2019 17:45:09 +0200 Subject: [PATCH 38/38] Preparing another launch of rp0.8 to improve significance. Cleaning up running plans up to 0.7 --- experiments-xml/makeInterventions_rp0.6.py | 97 --------- experiments-xml/makeInterventions_rp0.61.py | 49 ----- experiments-xml/makeInterventions_rp0.62.py | 87 -------- experiments-xml/makeInterventions_rp0.7.py | 43 ---- experiments-xml/makeInterventions_rp0.7e.py | 43 ---- experiments-xml/rp0.4a.xml | 154 -------------- experiments-xml/rp0.4b-facilitators.xml | 152 -------------- experiments-xml/rp0.4b-students.xml | 152 -------------- experiments-xml/rp0.5a.xml | 154 -------------- experiments-xml/rp0.5b.xml | 153 -------------- experiments-xml/rp0.61p.xml | 155 -------------- experiments-xml/rp0.62p.xml | 170 --------------- experiments-xml/rp0.62p_strong.xml | 170 --------------- experiments-xml/rp0.6e.xml | 158 -------------- experiments-xml/rp0.6emorearr.xml | 158 -------------- experiments-xml/rp0.6p.xml | 158 -------------- experiments-xml/rp0.6pmorearr.xml | 157 -------------- experiments-xml/rp0.7e_15_20_baseline.xml | 172 --------------- experiments-xml/rp0.7e_15_20_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_15_20_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_15_20_preventive.xml | 172 --------------- experiments-xml/rp0.7e_15_20_students.xml | 172 --------------- experiments-xml/rp0.7e_15_41_baseline.xml | 172 --------------- experiments-xml/rp0.7e_15_41_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_15_41_preventive.xml | 172 --------------- experiments-xml/rp0.7e_15_41_students.xml | 172 --------------- experiments-xml/rp0.7e_15_61_baseline.xml | 172 --------------- experiments-xml/rp0.7e_15_61_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_15_61_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_15_61_preventive.xml | 172 --------------- experiments-xml/rp0.7e_15_61_students.xml | 172 --------------- experiments-xml/rp0.7e_30_20_baseline.xml | 172 --------------- experiments-xml/rp0.7e_30_20_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_30_20_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_30_20_preventive.xml | 172 --------------- experiments-xml/rp0.7e_30_20_students.xml | 172 --------------- experiments-xml/rp0.7e_30_41_baseline.xml | 172 --------------- experiments-xml/rp0.7e_30_41_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_30_41_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_30_41_preventive.xml | 172 --------------- experiments-xml/rp0.7e_30_41_students.xml | 172 --------------- experiments-xml/rp0.7e_30_61_baseline.xml | 172 --------------- experiments-xml/rp0.7e_30_61_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_30_61_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_30_61_preventive.xml | 172 --------------- experiments-xml/rp0.7e_30_61_students.xml | 172 --------------- experiments-xml/rp0.7e_8_20_baseline.xml | 172 --------------- experiments-xml/rp0.7e_8_20_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_8_20_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_8_20_preventive.xml | 172 --------------- experiments-xml/rp0.7e_8_20_students.xml | 172 --------------- experiments-xml/rp0.7e_8_41_baseline.xml | 172 --------------- experiments-xml/rp0.7e_8_41_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_8_41_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_8_41_preventive.xml | 172 --------------- experiments-xml/rp0.7e_8_41_students.xml | 172 --------------- experiments-xml/rp0.7e_8_61_baseline.xml | 172 --------------- experiments-xml/rp0.7e_8_61_disruptive.xml | 172 --------------- experiments-xml/rp0.7e_8_61_facilitators.xml | 172 --------------- experiments-xml/rp0.7e_8_61_preventive.xml | 172 --------------- experiments-xml/rp0.7e_8_61_students.xml | 172 --------------- experiments-xml/rp0.7e_base.xml | 197 ------------------ experiments-xml/rp0.7p_15_0.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_15_0.5_disruptive.xml | 172 --------------- .../rp0.7p_15_0.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_15_0.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_15_0.5_students.xml | 172 --------------- experiments-xml/rp0.7p_15_1.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_15_1.5_disruptive.xml | 172 --------------- .../rp0.7p_15_1.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_15_1.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_15_1.5_students.xml | 172 --------------- experiments-xml/rp0.7p_15_base_baseline.xml | 172 --------------- experiments-xml/rp0.7p_15_base_disruptive.xml | 172 --------------- .../rp0.7p_15_base_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_15_base_preventive.xml | 172 --------------- experiments-xml/rp0.7p_15_base_students.xml | 172 --------------- experiments-xml/rp0.7p_30_0.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_30_0.5_disruptive.xml | 172 --------------- .../rp0.7p_30_0.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_30_0.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_30_0.5_students.xml | 172 --------------- experiments-xml/rp0.7p_30_1.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_30_1.5_disruptive.xml | 172 --------------- .../rp0.7p_30_1.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_30_1.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_30_1.5_students.xml | 172 --------------- experiments-xml/rp0.7p_30_base_baseline.xml | 172 --------------- experiments-xml/rp0.7p_30_base_disruptive.xml | 172 --------------- experiments-xml/rp0.7p_30_base_preventive.xml | 172 --------------- experiments-xml/rp0.7p_30_base_students.xml | 172 --------------- experiments-xml/rp0.7p_45_0.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_45_0.5_disruptive.xml | 172 --------------- .../rp0.7p_45_0.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_45_0.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_45_0.5_students.xml | 172 --------------- experiments-xml/rp0.7p_45_1.5_baseline.xml | 172 --------------- experiments-xml/rp0.7p_45_1.5_disruptive.xml | 172 --------------- .../rp0.7p_45_1.5_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_45_1.5_preventive.xml | 172 --------------- experiments-xml/rp0.7p_45_1.5_students.xml | 172 --------------- experiments-xml/rp0.7p_45_base_baseline.xml | 172 --------------- experiments-xml/rp0.7p_45_base_disruptive.xml | 172 --------------- .../rp0.7p_45_base_facilitators.xml | 172 --------------- experiments-xml/rp0.7p_45_base_preventive.xml | 172 --------------- experiments-xml/rp0.7p_45_base_students.xml | 172 --------------- ....7e_15_41_facilitators.xml => rp0.8e2.xml} | 17 +- ...p_30_base_facilitators.xml => rp0.8p2.xml} | 15 +- experiments-xml/save-random-seed | 0 109 files changed, 15 insertions(+), 17560 deletions(-) delete mode 100644 experiments-xml/makeInterventions_rp0.6.py delete mode 100644 experiments-xml/makeInterventions_rp0.61.py delete mode 100644 experiments-xml/makeInterventions_rp0.62.py delete mode 100644 experiments-xml/makeInterventions_rp0.7.py delete mode 100644 experiments-xml/makeInterventions_rp0.7e.py delete mode 100644 experiments-xml/rp0.4a.xml delete mode 100644 experiments-xml/rp0.4b-facilitators.xml delete mode 100644 experiments-xml/rp0.4b-students.xml delete mode 100644 experiments-xml/rp0.5a.xml delete mode 100644 experiments-xml/rp0.5b.xml delete mode 100644 experiments-xml/rp0.61p.xml delete mode 100644 experiments-xml/rp0.62p.xml delete mode 100644 experiments-xml/rp0.62p_strong.xml delete mode 100644 experiments-xml/rp0.6e.xml delete mode 100644 experiments-xml/rp0.6emorearr.xml delete mode 100644 experiments-xml/rp0.6p.xml delete mode 100644 experiments-xml/rp0.6pmorearr.xml delete mode 100644 experiments-xml/rp0.7e_15_20_baseline.xml delete mode 100644 experiments-xml/rp0.7e_15_20_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_15_20_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_15_20_preventive.xml delete mode 100644 experiments-xml/rp0.7e_15_20_students.xml delete mode 100644 experiments-xml/rp0.7e_15_41_baseline.xml delete mode 100644 experiments-xml/rp0.7e_15_41_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_15_41_preventive.xml delete mode 100644 experiments-xml/rp0.7e_15_41_students.xml delete mode 100644 experiments-xml/rp0.7e_15_61_baseline.xml delete mode 100644 experiments-xml/rp0.7e_15_61_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_15_61_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_15_61_preventive.xml delete mode 100644 experiments-xml/rp0.7e_15_61_students.xml delete mode 100644 experiments-xml/rp0.7e_30_20_baseline.xml delete mode 100644 experiments-xml/rp0.7e_30_20_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_30_20_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_30_20_preventive.xml delete mode 100644 experiments-xml/rp0.7e_30_20_students.xml delete mode 100644 experiments-xml/rp0.7e_30_41_baseline.xml delete mode 100644 experiments-xml/rp0.7e_30_41_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_30_41_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_30_41_preventive.xml delete mode 100644 experiments-xml/rp0.7e_30_41_students.xml delete mode 100644 experiments-xml/rp0.7e_30_61_baseline.xml delete mode 100644 experiments-xml/rp0.7e_30_61_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_30_61_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_30_61_preventive.xml delete mode 100644 experiments-xml/rp0.7e_30_61_students.xml delete mode 100644 experiments-xml/rp0.7e_8_20_baseline.xml delete mode 100644 experiments-xml/rp0.7e_8_20_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_8_20_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_8_20_preventive.xml delete mode 100644 experiments-xml/rp0.7e_8_20_students.xml delete mode 100644 experiments-xml/rp0.7e_8_41_baseline.xml delete mode 100644 experiments-xml/rp0.7e_8_41_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_8_41_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_8_41_preventive.xml delete mode 100644 experiments-xml/rp0.7e_8_41_students.xml delete mode 100644 experiments-xml/rp0.7e_8_61_baseline.xml delete mode 100644 experiments-xml/rp0.7e_8_61_disruptive.xml delete mode 100644 experiments-xml/rp0.7e_8_61_facilitators.xml delete mode 100644 experiments-xml/rp0.7e_8_61_preventive.xml delete mode 100644 experiments-xml/rp0.7e_8_61_students.xml delete mode 100644 experiments-xml/rp0.7e_base.xml delete mode 100644 experiments-xml/rp0.7p_15_0.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_15_0.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_15_0.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_15_0.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_15_0.5_students.xml delete mode 100644 experiments-xml/rp0.7p_15_1.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_15_1.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_15_1.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_15_1.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_15_1.5_students.xml delete mode 100644 experiments-xml/rp0.7p_15_base_baseline.xml delete mode 100644 experiments-xml/rp0.7p_15_base_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_15_base_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_15_base_preventive.xml delete mode 100644 experiments-xml/rp0.7p_15_base_students.xml delete mode 100644 experiments-xml/rp0.7p_30_0.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_30_0.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_30_0.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_30_0.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_30_0.5_students.xml delete mode 100644 experiments-xml/rp0.7p_30_1.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_30_1.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_30_1.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_30_1.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_30_1.5_students.xml delete mode 100644 experiments-xml/rp0.7p_30_base_baseline.xml delete mode 100644 experiments-xml/rp0.7p_30_base_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_30_base_preventive.xml delete mode 100644 experiments-xml/rp0.7p_30_base_students.xml delete mode 100644 experiments-xml/rp0.7p_45_0.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_45_0.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_45_0.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_45_0.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_45_0.5_students.xml delete mode 100644 experiments-xml/rp0.7p_45_1.5_baseline.xml delete mode 100644 experiments-xml/rp0.7p_45_1.5_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_45_1.5_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_45_1.5_preventive.xml delete mode 100644 experiments-xml/rp0.7p_45_1.5_students.xml delete mode 100644 experiments-xml/rp0.7p_45_base_baseline.xml delete mode 100644 experiments-xml/rp0.7p_45_base_disruptive.xml delete mode 100644 experiments-xml/rp0.7p_45_base_facilitators.xml delete mode 100644 experiments-xml/rp0.7p_45_base_preventive.xml delete mode 100644 experiments-xml/rp0.7p_45_base_students.xml rename experiments-xml/{rp0.7e_15_41_facilitators.xml => rp0.8e2.xml} (93%) rename experiments-xml/{rp0.7p_30_base_facilitators.xml => rp0.8p2.xml} (94%) create mode 100644 experiments-xml/save-random-seed diff --git a/experiments-xml/makeInterventions_rp0.6.py b/experiments-xml/makeInterventions_rp0.6.py deleted file mode 100644 index 11bfe1a8..00000000 --- a/experiments-xml/makeInterventions_rp0.6.py +++ /dev/null @@ -1,97 +0,0 @@ -import xml.etree.ElementTree as ET - -repetitions = 20 - -#pretty print method -def indent(elem, level=0): - i = "\n" + level*" " - j = "\n" + (level-1)*" " - if len(elem): - if not elem.text or not elem.text.strip(): - elem.text = i + " " - if not elem.tail or not elem.tail.strip(): - elem.tail = i - for subelem in elem: - indent(subelem, level+1) - if not elem.tail or not elem.tail.strip(): - elem.tail = j - else: - if level and (not elem.tail or not elem.tail.strip()): - elem.tail = j - return elem - -# ---------------------------------- -version="rp0.6p" -tree = ET.parse('rp_base.xml') -root = tree.getroot() - - -al = tree.find('.//experiment') -print(al) -al.set('name', version) -al.set('repetitions', str(int(repetitions/3))) - -al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value='"preventive"')) -al.insert(1, ET.Element("value", value='"disruptive"')) -al.insert(1, ET.Element("value", value='"students"')) -al.insert(1, ET.Element("value", value='"facilitators"')) - -al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') - -al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3000")) - - -#write to file -tree = ET.ElementTree(indent(root)) -tree.write(version + '.xml', encoding='utf-8') - - -# ---------------------------------- -version="rp0.6e" -tree = ET.parse('rp_base.xml') -root = tree.getroot() - - -al = tree.find('.//experiment') -al.set('name', version) -al.set('repetitions', str(int(repetitions/3))) - -al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value='"preventive"')) -al.insert(1, ET.Element("value", value='"disruptive"')) -al.insert(1, ET.Element("value", value='"students"')) -al.insert(1, ET.Element("value", value='"facilitators"')) - -al = tree.find('.//enumeratedValueSet[@variable="data-folder"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value='"inputs/eindhoven/data/"')) - -al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3000")) - -# the three eindhoven basic changes -al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="15")) -al = tree.find('.//enumeratedValueSet[@variable="number-crimes-yearly-per10k"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3368")) -al = tree.find('.//enumeratedValueSet[@variable="number-arrests-per-year"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="15")) -al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="4")) - - -#write to file -tree = ET.ElementTree(indent(root)) -tree.write(version + '.xml', encoding='utf-8') - - - - diff --git a/experiments-xml/makeInterventions_rp0.61.py b/experiments-xml/makeInterventions_rp0.61.py deleted file mode 100644 index 1a5269c0..00000000 --- a/experiments-xml/makeInterventions_rp0.61.py +++ /dev/null @@ -1,49 +0,0 @@ -import xml.etree.ElementTree as ET - -repetitions = 20 - -#pretty print method -def indent(elem, level=0): - i = "\n" + level*" " - j = "\n" + (level-1)*" " - if len(elem): - if not elem.text or not elem.text.strip(): - elem.text = i + " " - if not elem.tail or not elem.tail.strip(): - elem.tail = i - for subelem in elem: - indent(subelem, level+1) - if not elem.tail or not elem.tail.strip(): - elem.tail = j - else: - if level and (not elem.tail or not elem.tail.strip()): - elem.tail = j - return elem - -# ---------------------------------- -version="rp0.61p" -tree = ET.parse('rp_base.xml') -root = tree.getroot() - -al = tree.find('.//experiment') -print(al) -al.set('name', version) -al.set('repetitions', str(int(repetitions/3))) - -al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value='"preventive"')) -al.insert(1, ET.Element("value", value='"students"')) -al.insert(1, ET.Element("value", value='"facilitators"')) - -al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3000")) - -#write to file -tree = ET.ElementTree(indent(root)) -tree.write(version + '.xml', encoding='utf-8') - - - - diff --git a/experiments-xml/makeInterventions_rp0.62.py b/experiments-xml/makeInterventions_rp0.62.py deleted file mode 100644 index 2f3e5804..00000000 --- a/experiments-xml/makeInterventions_rp0.62.py +++ /dev/null @@ -1,87 +0,0 @@ -import xml.etree.ElementTree as ET - -repetitions = 20 - -#pretty print method -def indent(elem, level=0): - i = "\n" + level*" " - j = "\n" + (level-1)*" " - if len(elem): - if not elem.text or not elem.text.strip(): - elem.text = i + " " - if not elem.tail or not elem.tail.strip(): - elem.tail = i - for subelem in elem: - indent(subelem, level+1) - if not elem.tail or not elem.tail.strip(): - elem.tail = j - else: - if level and (not elem.tail or not elem.tail.strip()): - elem.tail = j - return elem - -# ---------------------------------- -version="rp0.62p" -tree = ET.parse('rp_base.xml') -root = tree.getroot() - -al = tree.find('.//experiment') -print(al) -al.set('name', version) -al.set('repetitions', str(int(repetitions/4))) - -al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value='"preventive"')) -al.insert(1, ET.Element("value", value='"students"')) -al.insert(1, ET.Element("value", value='"facilitators"')) - -al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3000")) - -al = tree.find('.//enumeratedValueSet[@variable="constant-population?"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="true")) - -#write to file -tree = ET.ElementTree(indent(root)) -tree.write(version + '.xml', encoding='utf-8') - -#-------------------------------------- - -version="rp0.62p_strong" -tree = ET.parse('rp_base.xml') -root = tree.getroot() - -al = tree.find('.//experiment') -print(al) -al.set('name', version) -al.set('repetitions', str(int(repetitions/6))) - -al = tree.find('.//enumeratedValueSet[@variable="intervention"]') -al.insert(1, ET.Element("value", value='"preventive-strong"')) -al.insert(1, ET.Element("value", value='"facilitators-strong"')) - -al = tree.find('.//enumeratedValueSet[@variable="num-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="3000")) - -al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="100")) - -al = tree.find('.//enumeratedValueSet[@variable="number-arrests-per-year"]') -al.insert(1, ET.Element("value", value="300")) - -al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="20")) - -al = tree.find('.//enumeratedValueSet[@variable="constant-population?"]') -for x in al.getchildren(): al.remove(x) -al.insert(1, ET.Element("value", value="true")) - -#write to file -tree = ET.ElementTree(indent(root)) -tree.write(version + '.xml', encoding='utf-8') - diff --git a/experiments-xml/makeInterventions_rp0.7.py b/experiments-xml/makeInterventions_rp0.7.py deleted file mode 100644 index 6c17f2dc..00000000 --- a/experiments-xml/makeInterventions_rp0.7.py +++ /dev/null @@ -1,43 +0,0 @@ -import xml.etree.ElementTree as ET -import prettyprint - -repetitions = 3 - -version="rp0.7p" - -ocfamilies = {'15':'6', '30':'8', '45':'12'} - -for ocmembers in ['15', '30', '45']: - for employmentrate in ['0.5', '"base"', '1.5']: - for intervention in ['"baseline"','"preventive"', '"disruptive"', '"students"','"facilitators"']: - - tree = ET.parse('rp0.7p_base.xml') - root = tree.getroot() - - al = tree.find('.//experiment') - al.set('repetitions', str(3)) - - experiment = "_".join([version, ocmembers, employmentrate.replace('"', ''), intervention.replace('"', '')]) - al = tree.find('.//experiment') - al.set('name', experiment) - al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') - al.insert(1, ET.Element("value", value=ocmembers)) - al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') - al.insert(1, ET.Element("value", value=ocfamilies.get(ocmembers))) - - - al = tree.find('.//enumeratedValueSet[@variable="intervention"]') - al.insert(1, ET.Element("value", value=intervention)) - - - al = tree.find('.//enumeratedValueSet[@variable="unemployment-multiplier"]') - al.insert(1, ET.Element("value", value=employmentrate)) - - - #write to file - tree = ET.ElementTree(prettyprint.indent(root)) - tree.write(experiment + '.xml', encoding='utf-8') - - - - diff --git a/experiments-xml/makeInterventions_rp0.7e.py b/experiments-xml/makeInterventions_rp0.7e.py deleted file mode 100644 index ee810e1e..00000000 --- a/experiments-xml/makeInterventions_rp0.7e.py +++ /dev/null @@ -1,43 +0,0 @@ -import xml.etree.ElementTree as ET -import prettyprint - -repetitions = 3 - -version="rp0.7e" - -ocfamilies = {'8':'3', '15':'6', '30':'8'} - -for ocmembers in ['8', '15', '30']: - for employmentrate in ['0.205033763044813', '0.410067526089626', '0.615101289134438']: - for intervention in ['"baseline"','"preventive"', '"disruptive"', '"students"','"facilitators"']: - - tree = ET.parse('rp0.7e_base.xml') - root = tree.getroot() - - al = tree.find('.//experiment') - al.set('repetitions', str(3)) - - experiment = "_".join([version, ocmembers, employmentrate[2:4], intervention.replace('"', '')]) - al = tree.find('.//experiment') - al.set('name', experiment) - al = tree.find('.//enumeratedValueSet[@variable="num-oc-persons"]') - al.insert(1, ET.Element("value", value=ocmembers)) - al = tree.find('.//enumeratedValueSet[@variable="num-oc-families"]') - al.insert(1, ET.Element("value", value=ocfamilies.get(ocmembers))) - - - al = tree.find('.//enumeratedValueSet[@variable="intervention"]') - al.insert(1, ET.Element("value", value=intervention)) - - - al = tree.find('.//enumeratedValueSet[@variable="unemployment-multiplier"]') - al.insert(1, ET.Element("value", value=employmentrate)) - - - #write to file - tree = ET.ElementTree(prettyprint.indent(root)) - tree.write(experiment + '.xml', encoding='utf-8') - - - - diff --git a/experiments-xml/rp0.4a.xml b/experiments-xml/rp0.4a.xml deleted file mode 100644 index 0e677cf0..00000000 --- a/experiments-xml/rp0.4a.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4b-facilitators.xml b/experiments-xml/rp0.4b-facilitators.xml deleted file mode 100644 index db5462a5..00000000 --- a/experiments-xml/rp0.4b-facilitators.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.4b-students.xml b/experiments-xml/rp0.4b-students.xml deleted file mode 100644 index 4cbffd4c..00000000 --- a/experiments-xml/rp0.4b-students.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.5a.xml b/experiments-xml/rp0.5a.xml deleted file mode 100644 index bb80eb7d..00000000 --- a/experiments-xml/rp0.5a.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.5b.xml b/experiments-xml/rp0.5b.xml deleted file mode 100644 index 983867ec..00000000 --- a/experiments-xml/rp0.5b.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.61p.xml b/experiments-xml/rp0.61p.xml deleted file mode 100644 index 9d02fe1d..00000000 --- a/experiments-xml/rp0.61p.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.62p.xml b/experiments-xml/rp0.62p.xml deleted file mode 100644 index 590032ef..00000000 --- a/experiments-xml/rp0.62p.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.62p_strong.xml b/experiments-xml/rp0.62p_strong.xml deleted file mode 100644 index f9fa778f..00000000 --- a/experiments-xml/rp0.62p_strong.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.6e.xml b/experiments-xml/rp0.6e.xml deleted file mode 100644 index a184b7b8..00000000 --- a/experiments-xml/rp0.6e.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.6emorearr.xml b/experiments-xml/rp0.6emorearr.xml deleted file mode 100644 index a999448b..00000000 --- a/experiments-xml/rp0.6emorearr.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.6p.xml b/experiments-xml/rp0.6p.xml deleted file mode 100644 index bc1b9ed1..00000000 --- a/experiments-xml/rp0.6p.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.6pmorearr.xml b/experiments-xml/rp0.6pmorearr.xml deleted file mode 100644 index 1b18f39f..00000000 --- a/experiments-xml/rp0.6pmorearr.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - dump-networks - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_20_baseline.xml b/experiments-xml/rp0.7e_15_20_baseline.xml deleted file mode 100644 index 2f56ab29..00000000 --- a/experiments-xml/rp0.7e_15_20_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_20_disruptive.xml b/experiments-xml/rp0.7e_15_20_disruptive.xml deleted file mode 100644 index 5ab0b87e..00000000 --- a/experiments-xml/rp0.7e_15_20_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_20_facilitators.xml b/experiments-xml/rp0.7e_15_20_facilitators.xml deleted file mode 100644 index 4df92b13..00000000 --- a/experiments-xml/rp0.7e_15_20_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_20_preventive.xml b/experiments-xml/rp0.7e_15_20_preventive.xml deleted file mode 100644 index c257f25e..00000000 --- a/experiments-xml/rp0.7e_15_20_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_20_students.xml b/experiments-xml/rp0.7e_15_20_students.xml deleted file mode 100644 index 418eb28d..00000000 --- a/experiments-xml/rp0.7e_15_20_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_41_baseline.xml b/experiments-xml/rp0.7e_15_41_baseline.xml deleted file mode 100644 index fc62c9d0..00000000 --- a/experiments-xml/rp0.7e_15_41_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_41_disruptive.xml b/experiments-xml/rp0.7e_15_41_disruptive.xml deleted file mode 100644 index 65282729..00000000 --- a/experiments-xml/rp0.7e_15_41_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_41_preventive.xml b/experiments-xml/rp0.7e_15_41_preventive.xml deleted file mode 100644 index 86bf97e6..00000000 --- a/experiments-xml/rp0.7e_15_41_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_41_students.xml b/experiments-xml/rp0.7e_15_41_students.xml deleted file mode 100644 index a9ad473a..00000000 --- a/experiments-xml/rp0.7e_15_41_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_61_baseline.xml b/experiments-xml/rp0.7e_15_61_baseline.xml deleted file mode 100644 index c58a1849..00000000 --- a/experiments-xml/rp0.7e_15_61_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_61_disruptive.xml b/experiments-xml/rp0.7e_15_61_disruptive.xml deleted file mode 100644 index 763118cc..00000000 --- a/experiments-xml/rp0.7e_15_61_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_61_facilitators.xml b/experiments-xml/rp0.7e_15_61_facilitators.xml deleted file mode 100644 index 8b4d5e65..00000000 --- a/experiments-xml/rp0.7e_15_61_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_61_preventive.xml b/experiments-xml/rp0.7e_15_61_preventive.xml deleted file mode 100644 index ebbfe29c..00000000 --- a/experiments-xml/rp0.7e_15_61_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_61_students.xml b/experiments-xml/rp0.7e_15_61_students.xml deleted file mode 100644 index 9299b405..00000000 --- a/experiments-xml/rp0.7e_15_61_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_20_baseline.xml b/experiments-xml/rp0.7e_30_20_baseline.xml deleted file mode 100644 index 3c4943b7..00000000 --- a/experiments-xml/rp0.7e_30_20_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_20_disruptive.xml b/experiments-xml/rp0.7e_30_20_disruptive.xml deleted file mode 100644 index 135bc8e4..00000000 --- a/experiments-xml/rp0.7e_30_20_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_20_facilitators.xml b/experiments-xml/rp0.7e_30_20_facilitators.xml deleted file mode 100644 index 1ce8b8ad..00000000 --- a/experiments-xml/rp0.7e_30_20_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_20_preventive.xml b/experiments-xml/rp0.7e_30_20_preventive.xml deleted file mode 100644 index f37c40e8..00000000 --- a/experiments-xml/rp0.7e_30_20_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_20_students.xml b/experiments-xml/rp0.7e_30_20_students.xml deleted file mode 100644 index ba63457b..00000000 --- a/experiments-xml/rp0.7e_30_20_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_41_baseline.xml b/experiments-xml/rp0.7e_30_41_baseline.xml deleted file mode 100644 index de47b19e..00000000 --- a/experiments-xml/rp0.7e_30_41_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_41_disruptive.xml b/experiments-xml/rp0.7e_30_41_disruptive.xml deleted file mode 100644 index bf2ceb5d..00000000 --- a/experiments-xml/rp0.7e_30_41_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_41_facilitators.xml b/experiments-xml/rp0.7e_30_41_facilitators.xml deleted file mode 100644 index ba24dadc..00000000 --- a/experiments-xml/rp0.7e_30_41_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_41_preventive.xml b/experiments-xml/rp0.7e_30_41_preventive.xml deleted file mode 100644 index 0f1c7f34..00000000 --- a/experiments-xml/rp0.7e_30_41_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_41_students.xml b/experiments-xml/rp0.7e_30_41_students.xml deleted file mode 100644 index 3f03d42d..00000000 --- a/experiments-xml/rp0.7e_30_41_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_61_baseline.xml b/experiments-xml/rp0.7e_30_61_baseline.xml deleted file mode 100644 index c7f09165..00000000 --- a/experiments-xml/rp0.7e_30_61_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_61_disruptive.xml b/experiments-xml/rp0.7e_30_61_disruptive.xml deleted file mode 100644 index e2b39f36..00000000 --- a/experiments-xml/rp0.7e_30_61_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_61_facilitators.xml b/experiments-xml/rp0.7e_30_61_facilitators.xml deleted file mode 100644 index bcc207bb..00000000 --- a/experiments-xml/rp0.7e_30_61_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_61_preventive.xml b/experiments-xml/rp0.7e_30_61_preventive.xml deleted file mode 100644 index 5b1c395b..00000000 --- a/experiments-xml/rp0.7e_30_61_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_30_61_students.xml b/experiments-xml/rp0.7e_30_61_students.xml deleted file mode 100644 index 61771f0a..00000000 --- a/experiments-xml/rp0.7e_30_61_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_20_baseline.xml b/experiments-xml/rp0.7e_8_20_baseline.xml deleted file mode 100644 index 41429e11..00000000 --- a/experiments-xml/rp0.7e_8_20_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_20_disruptive.xml b/experiments-xml/rp0.7e_8_20_disruptive.xml deleted file mode 100644 index b05c78c7..00000000 --- a/experiments-xml/rp0.7e_8_20_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_20_facilitators.xml b/experiments-xml/rp0.7e_8_20_facilitators.xml deleted file mode 100644 index da831a9f..00000000 --- a/experiments-xml/rp0.7e_8_20_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_20_preventive.xml b/experiments-xml/rp0.7e_8_20_preventive.xml deleted file mode 100644 index 109048af..00000000 --- a/experiments-xml/rp0.7e_8_20_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_20_students.xml b/experiments-xml/rp0.7e_8_20_students.xml deleted file mode 100644 index 7aab265a..00000000 --- a/experiments-xml/rp0.7e_8_20_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_41_baseline.xml b/experiments-xml/rp0.7e_8_41_baseline.xml deleted file mode 100644 index 740b25cc..00000000 --- a/experiments-xml/rp0.7e_8_41_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_41_disruptive.xml b/experiments-xml/rp0.7e_8_41_disruptive.xml deleted file mode 100644 index f25b619a..00000000 --- a/experiments-xml/rp0.7e_8_41_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_41_facilitators.xml b/experiments-xml/rp0.7e_8_41_facilitators.xml deleted file mode 100644 index 1b813fc9..00000000 --- a/experiments-xml/rp0.7e_8_41_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_41_preventive.xml b/experiments-xml/rp0.7e_8_41_preventive.xml deleted file mode 100644 index 71c62a9d..00000000 --- a/experiments-xml/rp0.7e_8_41_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_41_students.xml b/experiments-xml/rp0.7e_8_41_students.xml deleted file mode 100644 index e4756bb6..00000000 --- a/experiments-xml/rp0.7e_8_41_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_61_baseline.xml b/experiments-xml/rp0.7e_8_61_baseline.xml deleted file mode 100644 index bc1eeba8..00000000 --- a/experiments-xml/rp0.7e_8_61_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_61_disruptive.xml b/experiments-xml/rp0.7e_8_61_disruptive.xml deleted file mode 100644 index 5d529c5b..00000000 --- a/experiments-xml/rp0.7e_8_61_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_61_facilitators.xml b/experiments-xml/rp0.7e_8_61_facilitators.xml deleted file mode 100644 index e964d967..00000000 --- a/experiments-xml/rp0.7e_8_61_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_61_preventive.xml b/experiments-xml/rp0.7e_8_61_preventive.xml deleted file mode 100644 index c2c7e071..00000000 --- a/experiments-xml/rp0.7e_8_61_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_8_61_students.xml b/experiments-xml/rp0.7e_8_61_students.xml deleted file mode 100644 index 9bbc4405..00000000 --- a/experiments-xml/rp0.7e_8_61_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_base.xml b/experiments-xml/rp0.7e_base.xml deleted file mode 100644 index 112ca011..00000000 --- a/experiments-xml/rp0.7e_base.xml +++ /dev/null @@ -1,197 +0,0 @@ - - - - - setup - go - show (word "Time elapsed:" timer) - - - - - o1 - - o2 - - o3 - - o4 - - o5 - o5a - - o6 - o6a - - o7a - o7b - o7c - - o8a - o8b - o8c - - o9a - o9b - o9c - - o10a - o10b - o10c - - o11 - - o12 - - o13 - - o14 - - o15 - - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_0.5_baseline.xml b/experiments-xml/rp0.7p_15_0.5_baseline.xml deleted file mode 100644 index 4b072cb4..00000000 --- a/experiments-xml/rp0.7p_15_0.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_0.5_disruptive.xml b/experiments-xml/rp0.7p_15_0.5_disruptive.xml deleted file mode 100644 index cd347410..00000000 --- a/experiments-xml/rp0.7p_15_0.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_0.5_facilitators.xml b/experiments-xml/rp0.7p_15_0.5_facilitators.xml deleted file mode 100644 index e4ec31e0..00000000 --- a/experiments-xml/rp0.7p_15_0.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_0.5_preventive.xml b/experiments-xml/rp0.7p_15_0.5_preventive.xml deleted file mode 100644 index ed4398a3..00000000 --- a/experiments-xml/rp0.7p_15_0.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_0.5_students.xml b/experiments-xml/rp0.7p_15_0.5_students.xml deleted file mode 100644 index 83755924..00000000 --- a/experiments-xml/rp0.7p_15_0.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_1.5_baseline.xml b/experiments-xml/rp0.7p_15_1.5_baseline.xml deleted file mode 100644 index 7c636c11..00000000 --- a/experiments-xml/rp0.7p_15_1.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_1.5_disruptive.xml b/experiments-xml/rp0.7p_15_1.5_disruptive.xml deleted file mode 100644 index 696d0d61..00000000 --- a/experiments-xml/rp0.7p_15_1.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_1.5_facilitators.xml b/experiments-xml/rp0.7p_15_1.5_facilitators.xml deleted file mode 100644 index 657a8a73..00000000 --- a/experiments-xml/rp0.7p_15_1.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_1.5_preventive.xml b/experiments-xml/rp0.7p_15_1.5_preventive.xml deleted file mode 100644 index b6b1ea69..00000000 --- a/experiments-xml/rp0.7p_15_1.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_1.5_students.xml b/experiments-xml/rp0.7p_15_1.5_students.xml deleted file mode 100644 index bfe0999a..00000000 --- a/experiments-xml/rp0.7p_15_1.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_base_baseline.xml b/experiments-xml/rp0.7p_15_base_baseline.xml deleted file mode 100644 index c521e90b..00000000 --- a/experiments-xml/rp0.7p_15_base_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_base_disruptive.xml b/experiments-xml/rp0.7p_15_base_disruptive.xml deleted file mode 100644 index 0f0586d8..00000000 --- a/experiments-xml/rp0.7p_15_base_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_base_facilitators.xml b/experiments-xml/rp0.7p_15_base_facilitators.xml deleted file mode 100644 index 4cc186f8..00000000 --- a/experiments-xml/rp0.7p_15_base_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_base_preventive.xml b/experiments-xml/rp0.7p_15_base_preventive.xml deleted file mode 100644 index f8584087..00000000 --- a/experiments-xml/rp0.7p_15_base_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_15_base_students.xml b/experiments-xml/rp0.7p_15_base_students.xml deleted file mode 100644 index 3a4a6983..00000000 --- a/experiments-xml/rp0.7p_15_base_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_0.5_baseline.xml b/experiments-xml/rp0.7p_30_0.5_baseline.xml deleted file mode 100644 index 5e13fae9..00000000 --- a/experiments-xml/rp0.7p_30_0.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_0.5_disruptive.xml b/experiments-xml/rp0.7p_30_0.5_disruptive.xml deleted file mode 100644 index 69bf251f..00000000 --- a/experiments-xml/rp0.7p_30_0.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_0.5_facilitators.xml b/experiments-xml/rp0.7p_30_0.5_facilitators.xml deleted file mode 100644 index 2f3c46ba..00000000 --- a/experiments-xml/rp0.7p_30_0.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_0.5_preventive.xml b/experiments-xml/rp0.7p_30_0.5_preventive.xml deleted file mode 100644 index 56f87fe8..00000000 --- a/experiments-xml/rp0.7p_30_0.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_0.5_students.xml b/experiments-xml/rp0.7p_30_0.5_students.xml deleted file mode 100644 index 1e6b1c61..00000000 --- a/experiments-xml/rp0.7p_30_0.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_1.5_baseline.xml b/experiments-xml/rp0.7p_30_1.5_baseline.xml deleted file mode 100644 index 028a69b4..00000000 --- a/experiments-xml/rp0.7p_30_1.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_1.5_disruptive.xml b/experiments-xml/rp0.7p_30_1.5_disruptive.xml deleted file mode 100644 index 6a1112ff..00000000 --- a/experiments-xml/rp0.7p_30_1.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_1.5_facilitators.xml b/experiments-xml/rp0.7p_30_1.5_facilitators.xml deleted file mode 100644 index 4a724ee1..00000000 --- a/experiments-xml/rp0.7p_30_1.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_1.5_preventive.xml b/experiments-xml/rp0.7p_30_1.5_preventive.xml deleted file mode 100644 index 5aca0b80..00000000 --- a/experiments-xml/rp0.7p_30_1.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_1.5_students.xml b/experiments-xml/rp0.7p_30_1.5_students.xml deleted file mode 100644 index 3cebd4b0..00000000 --- a/experiments-xml/rp0.7p_30_1.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_base_baseline.xml b/experiments-xml/rp0.7p_30_base_baseline.xml deleted file mode 100644 index c6221617..00000000 --- a/experiments-xml/rp0.7p_30_base_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_base_disruptive.xml b/experiments-xml/rp0.7p_30_base_disruptive.xml deleted file mode 100644 index b9fc11ea..00000000 --- a/experiments-xml/rp0.7p_30_base_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_base_preventive.xml b/experiments-xml/rp0.7p_30_base_preventive.xml deleted file mode 100644 index cf508ede..00000000 --- a/experiments-xml/rp0.7p_30_base_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_30_base_students.xml b/experiments-xml/rp0.7p_30_base_students.xml deleted file mode 100644 index 9ed87772..00000000 --- a/experiments-xml/rp0.7p_30_base_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_0.5_baseline.xml b/experiments-xml/rp0.7p_45_0.5_baseline.xml deleted file mode 100644 index f22a1494..00000000 --- a/experiments-xml/rp0.7p_45_0.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_0.5_disruptive.xml b/experiments-xml/rp0.7p_45_0.5_disruptive.xml deleted file mode 100644 index 420d80a6..00000000 --- a/experiments-xml/rp0.7p_45_0.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_0.5_facilitators.xml b/experiments-xml/rp0.7p_45_0.5_facilitators.xml deleted file mode 100644 index d9c2ef10..00000000 --- a/experiments-xml/rp0.7p_45_0.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_0.5_preventive.xml b/experiments-xml/rp0.7p_45_0.5_preventive.xml deleted file mode 100644 index dcb3d8fa..00000000 --- a/experiments-xml/rp0.7p_45_0.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_0.5_students.xml b/experiments-xml/rp0.7p_45_0.5_students.xml deleted file mode 100644 index fd9cf68d..00000000 --- a/experiments-xml/rp0.7p_45_0.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_1.5_baseline.xml b/experiments-xml/rp0.7p_45_1.5_baseline.xml deleted file mode 100644 index 97324ff7..00000000 --- a/experiments-xml/rp0.7p_45_1.5_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_1.5_disruptive.xml b/experiments-xml/rp0.7p_45_1.5_disruptive.xml deleted file mode 100644 index 8acc6c06..00000000 --- a/experiments-xml/rp0.7p_45_1.5_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_1.5_facilitators.xml b/experiments-xml/rp0.7p_45_1.5_facilitators.xml deleted file mode 100644 index 720a3ac6..00000000 --- a/experiments-xml/rp0.7p_45_1.5_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_1.5_preventive.xml b/experiments-xml/rp0.7p_45_1.5_preventive.xml deleted file mode 100644 index f194f627..00000000 --- a/experiments-xml/rp0.7p_45_1.5_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_1.5_students.xml b/experiments-xml/rp0.7p_45_1.5_students.xml deleted file mode 100644 index d33b40f8..00000000 --- a/experiments-xml/rp0.7p_45_1.5_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_base_baseline.xml b/experiments-xml/rp0.7p_45_base_baseline.xml deleted file mode 100644 index 552e73c1..00000000 --- a/experiments-xml/rp0.7p_45_base_baseline.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_base_disruptive.xml b/experiments-xml/rp0.7p_45_base_disruptive.xml deleted file mode 100644 index ef54167e..00000000 --- a/experiments-xml/rp0.7p_45_base_disruptive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_base_facilitators.xml b/experiments-xml/rp0.7p_45_base_facilitators.xml deleted file mode 100644 index e7408411..00000000 --- a/experiments-xml/rp0.7p_45_base_facilitators.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_base_preventive.xml b/experiments-xml/rp0.7p_45_base_preventive.xml deleted file mode 100644 index 288b4338..00000000 --- a/experiments-xml/rp0.7p_45_base_preventive.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7p_45_base_students.xml b/experiments-xml/rp0.7p_45_base_students.xml deleted file mode 100644 index 175908c1..00000000 --- a/experiments-xml/rp0.7p_45_base_students.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - setup - go - show (word "Time elapsed:" timer) - - - o1 - o2 - o3 - o4 - o5 - o5a - o6 - o6a - o7a - o7b - o7c - o8a - o8b - o8c - o9a - o9b - o9c - o10a - o10b - o10c - o11 - o12 - o13 - o14 - o15 - o16 - count persons - count links - count prisoners - count persons with [ migrant? ] - number-deceased - number-born - sum [ num-crimes-committed ] of persons - count persons with [ my-job != nobody ] - count jobs with [ my-worker != nobody ] - crime-size-fails - count persons with [facilitator?] - facilitator-fails - facilitator-crimes - count household-links - count partner-links - count sibling-links - count offspring-links - count friendship-links - count criminal-links - count professional-links - count school-links - count meta-links - sum [ count my-students ] of schools - count jobs - count all-persons with [ num-crimes-committed = 0 ] - count all-persons with [ my-job = nobody and my-school = nobody and age > 16 and age < 65 ] / count all-persons with [my-job = nobody and my-school = nobody and age > 16 and age < 65 ] - people-jailed - count all-persons with [ my-school != nobody ] - count all-persons with [ my-job != nobody ] - kids-intervention-counter - mean [ count link-neighbors ] of all-persons with [oc-member?] - mean [ count link-neighbors ] of all-persons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments-xml/rp0.7e_15_41_facilitators.xml b/experiments-xml/rp0.8e2.xml similarity index 93% rename from experiments-xml/rp0.7e_15_41_facilitators.xml rename to experiments-xml/rp0.8e2.xml index 80179782..63b2c0f4 100644 --- a/experiments-xml/rp0.7e_15_41_facilitators.xml +++ b/experiments-xml/rp0.8e2.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) @@ -63,22 +63,25 @@ kids-intervention-counter mean [ count link-neighbors ] of all-persons with [oc-member?] mean [ count link-neighbors ] of all-persons + initial-random-seed + + + + - + - + - - @@ -87,14 +90,10 @@ - - - - diff --git a/experiments-xml/rp0.7p_30_base_facilitators.xml b/experiments-xml/rp0.8p2.xml similarity index 94% rename from experiments-xml/rp0.7p_30_base_facilitators.xml rename to experiments-xml/rp0.8p2.xml index bf533831..7542ad06 100644 --- a/experiments-xml/rp0.7p_30_base_facilitators.xml +++ b/experiments-xml/rp0.8p2.xml @@ -1,5 +1,5 @@ - + setup go show (word "Time elapsed:" timer) @@ -63,8 +63,13 @@ kids-intervention-counter mean [ count link-neighbors ] of all-persons with [oc-member?] mean [ count link-neighbors ] of all-persons + initial-random-seed + + + + @@ -76,9 +81,7 @@ - - @@ -87,14 +90,10 @@ - - - - @@ -166,7 +165,7 @@ - + diff --git a/experiments-xml/save-random-seed b/experiments-xml/save-random-seed new file mode 100644 index 00000000..e69de29b