-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from LABSS/fix-c
Fix c
- Loading branch information
Showing
4 changed files
with
393 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE experiments SYSTEM "behaviorspace.dtd"> | ||
<experiments> | ||
<experiment name="xml_launch" repetitions="1" runMetricsEveryStep="true"> | ||
<setup>setup</setup> | ||
<go>go</go> | ||
<final>show (word "Time elapsed:" timer) | ||
dump-networks | ||
</final> | ||
<!-- 30 years --> | ||
<timeLimit steps="360"/> | ||
<!-- 1. Number of OC members per time unit (tentatively month) --> | ||
<metric>o1</metric> | ||
<!-- 2. Number of recruited individuals into OC per time unit --> | ||
<metric>o2</metric> | ||
<!-- 3. Number of crimes per time unit --> | ||
<metric>o3</metric> | ||
<!-- 4. Number of crimes committed by OC members per time unit --> | ||
<metric>o4</metric> | ||
<!-- 5. Distribution and mean of C (which is the individual propensity towards crime commission) --> | ||
<metric>o5</metric> | ||
<metric>o5a</metric> | ||
<!-- 6. Distribution and mean of R (which is the individual embededdness into OC-prone local networks) --> | ||
<metric>o6</metric> | ||
<metric>o6a</metric> | ||
<!-- 7. Distribution of socio-demographic variables on new recruited individuals --> | ||
<metric>o7a</metric> | ||
<metric>o7b</metric> | ||
<metric>o7c</metric> | ||
<!-- 8. Distribution of socio-demographic variables of OC members --> | ||
<metric>o8a</metric> | ||
<metric>o8b</metric> | ||
<metric>o8c</metric> | ||
<!-- 9. Distribution of socio-demographic variables of “ordinary criminals” (people that commit crime but are not part of an OC) --> | ||
<metric>o9a</metric> | ||
<metric>o9b</metric> | ||
<metric>o9c</metric> | ||
<!-- 10. Distribution of socio-demographic variables of the general population --> | ||
<metric>o10a</metric> | ||
<metric>o10b</metric> | ||
<metric>o10c</metric> | ||
<!-- 11. Number of crimes committed by facilitator agents per time unit --> | ||
<metric>o11</metric> | ||
<!-- 12. Number of law enforcement interventions per time unit --> | ||
<metric>o12</metric> | ||
<!-- 13. age structure of offenses --> | ||
<metric>o13</metric> | ||
<!-- 14. co-offenses per turn. A vector of co-offenses the side of the index, starting with zero. --> | ||
<metric>o14</metric> | ||
<!-- 15. number of persons addressed by a preventive interventions recruited this tick--> | ||
<metric>o15</metric> | ||
<!-- 16. number of OC person offsprings recruited this tick --> | ||
<metric>o16</metric> | ||
<metric>count persons</metric> | ||
<metric>count links</metric> | ||
<metric>count prisoners</metric> | ||
<metric>count persons with [ migrant? ]</metric> | ||
<metric>number-deceased</metric> | ||
<metric>sum [ num-crimes-committed ] of persons</metric> | ||
<metric>count persons with [ my-job != nobody ]</metric> | ||
<metric>count jobs with [ my-worker != nobody ]</metric> | ||
<metric>crime-size-fails</metric> | ||
<metric>count persons with [facilitator?]</metric> | ||
<metric>facilitator-fails</metric> | ||
<metric>facilitator-crimes</metric> | ||
<metric>count household-links </metric> | ||
<metric>count partner-links</metric> | ||
<metric>count sibling-links</metric> | ||
<metric>count offspring-links</metric> | ||
<metric>count friendship-links</metric> | ||
<metric>count criminal-links</metric> | ||
<metric>count professional-links</metric> | ||
<metric>count school-links</metric> | ||
<metric>count meta-links</metric> | ||
<metric>sum [ count my-students ] of schools</metric> | ||
<metric>count jobs</metric> | ||
<metric>count all-persons with [ num-crimes-committed = 0 ]</metric> | ||
<metric>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 ]</metric> | ||
<metric>people-jailed</metric> | ||
<!-- PARAMETERS --> | ||
<enumeratedValueSet variable="intervention"> | ||
<value value=""baseline""/> | ||
<value value=""preventive""/> | ||
<value value=""disruptive""/> | ||
</enumeratedValueSet> | ||
<!-- 1. Number of OC members --> | ||
<enumeratedValueSet variable="num-oc-persons"> | ||
<value value="15"/> | ||
<value value="30"/> | ||
<value value="45"/> | ||
</enumeratedValueSet> | ||
<!-- PALERMO SETUP --> | ||
<enumeratedValueSet variable="data-folder"> | ||
<value value=""inputs/palermo/data/""/> | ||
</enumeratedValueSet> | ||
<!-- 2. Criminal rate --> | ||
<enumeratedValueSet variable="criminal-rate"> | ||
<value value="0.5"/> | ||
<value value="1.0"/> | ||
<value value="1.5"/> | ||
</enumeratedValueSet> | ||
<!-- 3a. Employment rate --> | ||
<enumeratedValueSet variable="unemployment-multiplier"> | ||
<value value=""base""/> | ||
<value value="0.5"/> | ||
</enumeratedValueSet> | ||
<!-- 3b. Education rate --> | ||
<enumeratedValueSet variable="education-rate"> | ||
<value value="1"/> | ||
</enumeratedValueSet> | ||
<!-- 4. Law enforcement intervention rate --> | ||
<enumeratedValueSet variable="number-arrests-per-year"> | ||
<value value="15"/> | ||
<value value="30"/> | ||
<value value="45"/> | ||
</enumeratedValueSet> | ||
<!-- 5. Punishment length --> | ||
<enumeratedValueSet variable="punishment-length"> | ||
<value value="0.5"/> | ||
<value value="1.0"/> | ||
<value value="1.5"/> | ||
</enumeratedValueSet> | ||
<!-- FIXED parameters --> | ||
<enumeratedValueSet variable="num-oc-families"> | ||
<value value="8"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="num-persons"> | ||
<value value="10000"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="welfare-support"> | ||
<value value=""none""/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="output?"> | ||
<value value="false"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="intervention-start"> | ||
<value value="13"/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="social-support"> | ||
<value value=""none""/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="intervention-end"> | ||
<value value="36"/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="nat-propensity-threshold"> | ||
<value value="1"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="oc-embeddedness-radius"> | ||
<value value="2"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="threshold-use-facilitators"> | ||
<value value="4"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="ticks-per-year"> | ||
<value value="12"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="percentage-of-facilitators"> | ||
<value value="0.005"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="nat-propensity-sigma"> | ||
<value value="0.25"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="targets-addressed-percent"> | ||
<value value="10"/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="nat-propensity-m"> | ||
<value value="1"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="OC-members-scrutinize?"> | ||
<value value="false"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="family-intervention"> | ||
<value value=""none""/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="max-accomplice-radius"> | ||
<value value="2"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="ticks-between-intervention"> | ||
<value value="1"/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="retirement-age"> | ||
<value value="65"/> | ||
</enumeratedValueSet> | ||
<enumeratedValueSet variable="OC-boss-repression?"> | ||
<value value="false"/> <!-- overriden by intervention --> | ||
</enumeratedValueSet> | ||
</experiment> | ||
</experiments> | ||
|
Oops, something went wrong.