turtles-own [ infected? ;; if true, the turtle is infectious dependence-of-1 dependence-of-2 dependence-of-3 dependence-of-4 dependence-of-5 dependence-of-6 dependence-of-7 dependence-total dependence-of-0 dead dissapear? economic-valor recovering? intrinsic crises employment home-savings origin-employment origin-savings ] breed [bancs banc] breed [empresas empresa] globals [ size0 size1 size2 size3 size4 total-economy total-size time total-intrinsic environment total-employment total-savings original-employment original-savings ] to setup clear-all setup-nodes setup-spatially-clustered-network reset-ticks end to change-environment ;; loads an image as a background from the current directory the model was launched from set environment "bolsa.jpg" import-drawing environment end to setup-nodes set-default-shape turtles "circle" create-bancs 5 [ ; for visual reasons, we don't put any nodes *too* close to the edges setxy (random-xcor * 0.95) (random-ycor * 0.95) set size0 banco-quiebra set size1 size-other-banks set size2 size-other-banks set size3 size-other-banks set size4 size-other-banks set total-size size0 + size1 + size2 + size3 + size4 ask turtle 1 [set color green set size size1 set shape "coin heads" set economic-valor size1 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] ask turtle 2 [set color green set size size2 set shape "coin heads" set economic-valor size2 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] ask turtle 3 [set color green set size size3 set shape "coin heads" set economic-valor size3 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] ask turtle 0 [set color green set size size0 set shape "coin heads" set economic-valor size0 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] ask turtle 4 [set color green set size size4 set shape "coin heads" set economic-valor size4 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] ] ask turtle 1 [set dependence-of-0 random-float 1 * apalancamiento * (size0 / size1) set dependence-of-2 random-float 1 * apalancamiento * size2 / size1 set dependence-of-3 random-float 1 * apalancamiento * size3 / size1 set dependence-of-4 random-float 1 * apalancamiento * size4 / size1] ask turtle 2 [set dependence-of-0 random-float 1 * apalancamiento * (size0 / size2) set dependence-of-1 random-float 1 * apalancamiento * size1 / size2 set dependence-of-3 random-float 1 * apalancamiento * size3 / size2 set dependence-of-4 random-float 1 * apalancamiento * size4 / size2] ask turtle 3 [set dependence-of-0 random-float 1 * apalancamiento * (size0 / size3) set dependence-of-2 random-float 1 * apalancamiento * size2 / size3 set dependence-of-1 random-float 1 * apalancamiento * size1 / size3 set dependence-of-4 random-float 1 * apalancamiento * size4 / size3] ask turtle 4 [set dependence-of-0 random-float 1 * apalancamiento * (size0 / size4) set dependence-of-2 random-float 1 * apalancamiento * size2 / size4 set dependence-of-1 random-float 1 * apalancamiento * size1 / size4 set dependence-of-3 random-float 1 * apalancamiento * size3 / size4] ask turtle 0 [set dependence-of-4 random-float 1 * apalancamiento * (size4 / size0) set dependence-of-2 random-float 1 * apalancamiento * size2 / size0 set dependence-of-1 random-float 1 * apalancamiento * size1 / size0 set dependence-of-4 random-float 1 * apalancamiento * size4 / size0] create-empresas size-other-banks * 1.5 [ setxy (random-xcor * 0.95) (random-ycor * 0.95) set dependence-of-0 random-float 1 * (size0 / total-size) set dependence-of-1 random-float 1 * (size1 / total-size) set dependence-of-2 random-float 1 * (size2 / total-size) set dependence-of-3 random-float 1 * (size3 / total-size) set dependence-of-4 random-float 1 * (size4 / total-size) set economic-valor 1 set color green set shape "factory" set size 2 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] create-empresas size-other-banks * 1.5 [ setxy (random-xcor * 0.95) (random-ycor * 0.95) set dependence-of-0 random-float 1 * (size0 / total-size) set dependence-of-1 random-float 1 * (size1 / total-size) set dependence-of-2 random-float 1 * (size2 / total-size) set dependence-of-3 random-float 1 * (size3 / total-size) set dependence-of-4 random-float 1 * (size4 / total-size) set economic-valor 1 set color green set shape "logs" set size 2 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] create-empresas size-other-banks * 1.5 [ setxy (random-xcor * 0.95) (random-ycor * 0.95) set dependence-of-0 random-float 1 * (size0 / total-size) set dependence-of-1 random-float 1 * (size1 / total-size) set dependence-of-2 random-float 1 * (size2 / total-size) set dependence-of-3 random-float 1 * (size3 / total-size) set dependence-of-4 random-float 1 * (size4 / total-size) set economic-valor 1 set color green set shape "food" set size 2 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] create-empresas size-other-banks * 1.5 [ setxy (random-xcor * 0.95) (random-ycor * 0.95) set dependence-of-0 random-float 1 * (size0 / total-size) set dependence-of-1 random-float 1 * (size1 / total-size) set dependence-of-2 random-float 1 * (size2 / total-size) set dependence-of-3 random-float 1 * (size3 / total-size) set dependence-of-4 random-float 1 * (size4 / total-size) set economic-valor 1 set color green set shape "building institution" set size 2 set intrinsic economic-valor set employment economic-valor set origin-employment economic-valor] create-empresas size-other-banks * 3 [ setxy (random-xcor * 0.95) (random-ycor * 0.95) set dependence-of-0 random-float 1 * (size0 / total-size) set dependence-of-1 random-float 1 * (size1 / total-size) set dependence-of-2 random-float 1 * (size2 / total-size) set dependence-of-3 random-float 1 * (size3 / total-size) set dependence-of-4 random-float 1 * (size4 / total-size) set economic-valor 1 set color green set shape "house" set size 2 set intrinsic economic-valor set home-savings economic-valor set origin-savings economic-valor] ask turtles [set dependence-total dependence-of-0 + dependence-of-1 + dependence-of-2 + dependence-of-3 + dependence-of-4] set total-economy sum [economic-valor] of turtles set total-intrinsic sum [intrinsic] of turtles set total-employment sum [employment] of turtles set total-savings sum [home-savings] of turtles set original-employment sum [employment] of turtles set original-savings sum [home-savings] of turtles ask turtle 0 [set infected? true set color red set crises 1 set label "Crises focus" set economic-valor 0] set time 1 ;; Layout turtles: layout-circle (sort bancs) 20 repeat 15 [do-layout] repeat 55 [do-layout display] end to do-layout repeat 1 [layout-spring empresas links 0.2 4 0.9] repeat 1 [layout-spring bancs links 0.2 4 0.9] end to setup-spatially-clustered-network end to bank-bail-in if all? turtles [crises = 0] [ stop ] spread-virus do-virus-checks tick end to become-infected ;; turtle procedure end to spread-virus ask bancs [if dead > 10 [hide-turtle set dissapear? true set color black set crises 0 set employment 0]] ask empresas [if dead > 10 [die]] ask turtles [if color = red [set dead dead + 1]] ask bancs [if random-float 100 < recovey and infected? = true and dead < 10 [set color yellow set infected? false set economic-valor intrinsic / 2 set recovering? true] ] ask bancs [if random-float 100 < recovey and recovering? = true and dead < 10 [set color green set recovering? false set economic-valor intrinsic set recovering? true set crises 0] ] if ([color] of turtle 0 = red and [dead] of turtle 0 < 3) [ask bancs [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-0 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 0 = yellow ) [ask empresas [if random-float 1 < dependence-of-0 [set color yellow set infected? false set economic-valor intrinsic / 2 ]]] if ([color] of turtle 0 = green) [ask empresas [if random-float 1 < dependence-of-0 [set color green set infected? false set economic-valor intrinsic set crises 0]]] if ([color] of turtle 1 = red and [dead] of turtle 1 < 3) [ask bancs [if random-float 1 < dependence-of-1 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-1 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 1 = yellow) [ask empresas [if random-float 1 < dependence-of-1 [set color yellow] set infected? false set economic-valor intrinsic / 2 ]] if ([color] of turtle 1 = green) [ask empresas [if random-float 1 < dependence-of-1 [set color green set infected? false set economic-valor intrinsic set crises 0]]] if ([color] of turtle 2 = red and [dead] of turtle 2 < 3) [ask bancs [if random-float 2 < dependence-of-2 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-2 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 2 = yellow) [ask empresas [if random-float 1 < dependence-of-2 [set color yellow set infected? false] set economic-valor intrinsic / 2 ]] if ([color] of turtle 2 = green) [ask empresas [if random-float 1 < dependence-of-2 [set color green set infected? false set economic-valor intrinsic set crises 0]]] if ([color] of turtle 3 = red and [dead] of turtle 2 < 3) [ask bancs [if random-float 3 < dependence-of-3 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-3 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 3 = yellow) [ask empresas [if random-float 1 < dependence-of-3 [set color yellow set infected? false set economic-valor intrinsic / 2 ]]] if ([color] of turtle 3 = green) [ask empresas [if random-float 1 < dependence-of-3 [set color green set infected? false set economic-valor intrinsic set crises 0]]] if ([color] of turtle 4 = red and [dead] of turtle 3 < 3) [ask bancs [if random-float 4 < dependence-of-4 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-4 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 4 = yellow) [ask empresas [if random-float 1 < dependence-of-4 [set color yellow set infected? false set economic-valor intrinsic / 2 ]]] if ([color] of turtle 4 = green) [ask empresas [if random-float 1 < dependence-of-4 [set color green set infected? false set economic-valor intrinsic set crises 0]]] set total-economy sum [economic-valor] of turtles set total-employment sum [employment] of turtles set total-savings sum [home-savings] of turtles end to bank-crash if all? turtles [crises = 0] [ stop ] bank-crash-1 if time > 3 [ ask bancs [if dead > 5 [hide-turtle set dissapear? true set color black set crises 0 set infected? false set employment 0]] ask empresas [if dead > 10 [die]] ask turtles [if color = red [set dead dead + 1]] ask bancs [if random-float 100 < recovey and infected? = true [set color yellow set infected? false set economic-valor intrinsic / 2 set recovering? true] ] ask bancs [if random-float 100 < recovey and recovering? = true [set color green set recovering? false set economic-valor intrinsic set recovering? true set crises 0 set employment origin-employment] ] if ([color] of turtle 1 = red) [ask bancs [if random-float 1 < dependence-of-1 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-1 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 1 = yellow) [ask empresas [if random-float 1 < dependence-of-1 [set color yellow] set infected? false set economic-valor intrinsic / 2 set employment origin-employment / 1.5]] if ([color] of turtle 1 = green) [ask empresas [if random-float 1 < dependence-of-1 [set color green set infected? false set economic-valor intrinsic set crises 0 set employment origin-employment / 1.5]]] if ([color] of turtle 2 = red) [ask bancs [if random-float 2 < dependence-of-2 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-2 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 2 = yellow) [ask empresas [if random-float 1 < dependence-of-2 [set color yellow set infected? false] set economic-valor intrinsic / 2 set employment origin-employment / 1.5]] if ([color] of turtle 2 = green) [ask empresas [if random-float 1 < dependence-of-2 [set color green set infected? false set economic-valor intrinsic set crises 0 set employment origin-employment / 1.5]]] if ([color] of turtle 3 = red) [ask bancs [if random-float 3 < dependence-of-3 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-3 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 3 = yellow) [ask empresas [if random-float 1 < dependence-of-3 [set color yellow set infected? false set economic-valor intrinsic / 2 set employment origin-employment / 1.5]]] if ([color] of turtle 3 = green) [ask empresas [if random-float 1 < dependence-of-3 [set color green set infected? false set economic-valor intrinsic set crises 0 set employment origin-employment / 1.5]]] if ([color] of turtle 4 = red) [ask bancs [if random-float 4 < dependence-of-4 * (1 + banc-panic / 100) [set infected? true set color red set economic-valor 0 set crises 1]] ask empresas [if random-float 1 < dependence-of-4 [set infected? true set color red set economic-valor 0 set crises 1]]] if ([color] of turtle 4 = yellow) [ask empresas [if random-float 1 < dependence-of-4 [set color yellow set infected? false set economic-valor intrinsic / 2 set employment origin-employment / 1.5]]] if ([color] of turtle 4 = green) [ask empresas [if random-float 1 < dependence-of-4 [set color green set infected? false set economic-valor intrinsic set crises 0 set employment origin-employment]]] set total-economy sum [economic-valor] of turtles set total-employment sum [employment] of turtles set total-savings sum [home-savings] of turtles ] set time time + 1 tick end to bank-crash-1 if time = 1 [ ask turtle 0 [die] ask bancs [set size size - dependence-of-0 * size0 set intrinsic intrinsic - dependence-of-0 * size0 set economic-valor economic-valor - dependence-of-0 * size0] ] if time < 4 [ ask empresas [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [die]] ask turtle 1 [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red set crises 1 set economic-valor 0 ask empresas [if random-float 1 < dependence-of-1 * (1 + banc-panic / 100) [die]]] if random-float 0.5 < dependence-of-0 * (1 + banc-panic / 100) [set color yellow set recovering? true set economic-valor intrinsic / 2 set crises 1] ] ask turtle 2 [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red set crises 1 set economic-valor 0 ask empresas [if random-float 1 < dependence-of-2 * (1 + banc-panic / 100) [die]]] if random-float 0.5 < dependence-of-0 * (1 + banc-panic / 100) [set color yellow set recovering? true set economic-valor intrinsic / 2 set crises 1] ] ask turtle 3 [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red set crises 1 set economic-valor 0 ask empresas [if random-float 1 < dependence-of-3 * (1 + banc-panic / 100) [die]]] if random-float 0.5 < dependence-of-0 * (1 + banc-panic / 100) [set color yellow set recovering? true set economic-valor intrinsic / 2 set crises 1] ] ask turtle 4 [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red set crises 1 set economic-valor 0 ask empresas [if random-float 1 < dependence-of-4 * (1 + banc-panic / 100) [die]]] if random-float 0.5 < dependence-of-0 * (1 + banc-panic / 100) [set color yellow set recovering? true set economic-valor intrinsic / 2 set crises 1] ] set total-economy sum [economic-valor] of turtles ] end to do-test-0 ask turtles [if random-float 1 < dependence-of-0 * (1 + banc-panic / 100) [set infected? true set color red]] end to do-virus-checks end ; Copyright 2012 Jose Rodriguez. ; See Info tab for full copyright and license. @#$#@#$#@ GRAPHICS-WINDOW 164 10 540 407 30 30 6.0 1 14 1 1 1 0 0 0 1 -30 30 -30 30 1 1 1 ticks 30.0 SLIDER 9 238 161 271 recovey recovey 0.0 15.0 10 0.1 1 % HORIZONTAL SLIDER 9 168 150 201 banc-panic banc-panic 0.0 100.0 100 0.1 1 % HORIZONTAL BUTTON 14 118 79 158 NIL setup NIL 1 T OBSERVER NIL NIL NIL NIL 1 BUTTON 83 119 155 159 NIL bank-bail-in T 1 T OBSERVER NIL NIL NIL NIL 1 SLIDER 14 43 144 76 banco-quiebra banco-quiebra 1 20 20 1 1 NIL HORIZONTAL PLOT 28 466 228 616 Valour of the economy NIL NIL 0.0 10.0 0.0 100.0 true false "" "" PENS "default" 1.0 0 -14985354 true "" "plot ( total-economy / total-intrinsic ) * 100" MONITOR 29 354 122 399 NIL total-economy 17 1 11 BUTTON 10 287 103 320 NIL Bank-crash T 1 T OBSERVER NIL NIL NIL NIL 1 MONITOR 18 407 158 452 % of survival economy ( total-economy / total-intrinsic ) * 100 2 1 11 SLIDER 14 82 144 115 size-other-banks size-other-banks 1 20 20 1 1 NIL HORIZONTAL SLIDER 9 203 153 236 apalancamiento apalancamiento 0.1 1 0.1 0.01 1 NIL HORIZONTAL @#$#@#$#@ ## WHAT IS IT? This model explains the effects of a "Ball-in" or "Bank crash" in a interconnected economy. ## HOW IT WORKS You can generate an economic systems, with random relationships between banks and companys. You can control the strong of this relationships and the size of economy, banks, and the bank in crise ## HOW TO USE IT Using the sliders, to control the strong of interconnexions between banks APALANCAMIENTO, you can control the size of bank who star the crises BANCO-QUIEBRA, and the sizes of other banks SIZE-OTHER-BANKS. There are two sliders additionals, the slider RECOVEY show the recovery rate of banks that simulate the possibility that a bank in crises to improve their situations, the slider BANC-PANIC simulate the increasing possibility that a bank with relationship with a bank in crises to get in crises too. The button BAL-IN simulate the effect of a bail in process (the bank is not able to pay the debts with the other banks and offer some solutions like give to them stock shares of himself), this is a risky operation and the others banks could absorb the loses or set in crises too. The button BANK-CRASH simulate the crash of the bank who star the crises and the spread of this problem to other turtles (companys and other banks). ## THINGS TO NOTICE At the run of BANCK-CRASH, the other banks shrink in size and valor simulating the debt loses (the loans of the other banks to the bank who star the crisis can't be payed), and the loses could star a crises in the banks too. At the run of BAIL IN the other banks could star in crises, they could be payed by their loans to the bank who star the crises, but this pay is less valuable (stock shares are less valuable than the return of the loan), and this could star a crises too. You can see not banking turtles (simulating no financieral companys, real state investments, ...) that could star crises too in the two situations. The companys have loans wiht banks and need to renew the loans and the access to credit for improve their working process, when banks are in crises the no financieral turtles have problems to get new loans, and could star a crises too depending of the relative size of the banks who was in crises. A mid term crises bring the company or the bank to bank-rupt and dissapear of economy (it will die). You can see that the relative size of bank who star the crises, the financial leverage (APALANCAMIENTO) and the recovery rate of banks in crises could give more different outputs. But, when you try the model several times, in the best conditions (low financial leverage, the bank who star the crises are smaller than other banks, and big recovery rate) the crises could arrive to all the economy destroying all. ## HOW TO CITE If you mention this model in a publication, we ask that you include these citations for the model itself and for the NetLogo software: * Jose Rodriguez (2012). http://www.joserodriguez.info/bloc * Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. ## COPYRIGHT AND LICENSE Copyright 2012 Jose Rodriguez ![CC BY-NC-SA 3.0](http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png) This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Commercial licenses are also available. @#$#@#$#@ default true 0 Polygon -7500403 true true 150 5 40 250 150 205 260 250 airplane true 0 Polygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15 arrow true 0 Polygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150 box false 0 Polygon -7500403 true true 150 285 285 225 285 75 150 135 Polygon -7500403 true true 150 135 15 75 150 15 285 75 Polygon -7500403 true true 15 75 15 225 150 285 150 135 Line -16777216 false 150 285 150 135 Line -16777216 false 150 135 15 75 Line -16777216 false 150 135 285 75 bug true 0 Circle -7500403 true true 96 182 108 Circle -7500403 true true 110 127 80 Circle -7500403 true true 110 75 80 Line -7500403 true 150 100 80 30 Line -7500403 true 150 100 220 30 building institution false 0 Rectangle -7500403 true true 0 60 300 270 Rectangle -16777216 true false 130 196 168 256 Rectangle -16777216 false false 0 255 300 270 Polygon -7500403 true true 0 60 150 15 300 60 Polygon -16777216 false false 0 60 150 15 300 60 Circle -1 true false 135 26 30 Circle -16777216 false false 135 25 30 Rectangle -16777216 false false 0 60 300 75 Rectangle -16777216 false false 218 75 255 90 Rectangle -16777216 false false 218 240 255 255 Rectangle -16777216 false false 224 90 249 240 Rectangle -16777216 false false 45 75 82 90 Rectangle -16777216 false false 45 240 82 255 Rectangle -16777216 false false 51 90 76 240 Rectangle -16777216 false false 90 240 127 255 Rectangle -16777216 false false 90 75 127 90 Rectangle -16777216 false false 96 90 121 240 Rectangle -16777216 false false 179 90 204 240 Rectangle -16777216 false false 173 75 210 90 Rectangle -16777216 false false 173 240 210 255 Rectangle -16777216 false false 269 90 294 240 Rectangle -16777216 false false 263 75 300 90 Rectangle -16777216 false false 263 240 300 255 Rectangle -16777216 false false 0 240 37 255 Rectangle -16777216 false false 6 90 31 240 Rectangle -16777216 false false 0 75 37 90 Line -16777216 false 112 260 184 260 Line -16777216 false 105 265 196 265 butterfly true 0 Polygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240 Polygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240 Polygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163 Polygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165 Polygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225 Circle -16777216 true false 135 90 30 Line -16777216 false 150 105 195 60 Line -16777216 false 150 105 105 60 car false 0 Polygon -7500403 true true 300 180 279 164 261 144 240 135 226 132 213 106 203 84 185 63 159 50 135 50 75 60 0 150 0 165 0 225 300 225 300 180 Circle -16777216 true false 180 180 90 Circle -16777216 true false 30 180 90 Polygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89 Circle -7500403 true true 47 195 58 Circle -7500403 true true 195 195 58 circle false 0 Circle -7500403 true true 0 0 300 circle 2 false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 coin heads false 0 Circle -7500403 true true 15 15 270 Circle -16777216 false false 22 21 256 Line -16777216 false 165 180 192 196 Line -16777216 false 42 140 83 140 Line -16777216 false 37 151 91 151 Line -16777216 false 218 167 265 167 Polygon -16777216 false false 148 265 75 229 86 207 113 191 120 175 109 162 109 136 86 124 137 96 176 93 210 108 222 125 203 157 204 174 190 191 232 230 Polygon -16777216 false false 212 142 182 128 154 132 140 152 149 162 144 182 167 204 187 206 193 193 190 189 202 174 193 158 202 175 204 158 Line -16777216 false 164 154 182 152 Line -16777216 false 193 152 202 153 Polygon -16777216 false false 60 75 75 90 90 75 105 75 90 45 105 45 120 60 135 60 135 45 120 45 105 45 135 30 165 30 195 45 210 60 225 75 240 75 225 75 210 90 225 75 225 60 210 60 195 75 210 60 195 45 180 45 180 60 180 45 165 60 150 60 150 45 165 45 150 45 150 30 135 30 120 60 105 75 cow false 0 Polygon -7500403 true true 200 193 197 249 179 249 177 196 166 187 140 189 93 191 78 179 72 211 49 209 48 181 37 149 25 120 25 89 45 72 103 84 179 75 198 76 252 64 272 81 293 103 285 121 255 121 242 118 224 167 Polygon -7500403 true true 73 210 86 251 62 249 48 208 Polygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123 cylinder false 0 Circle -7500403 true true 0 0 300 dot false 0 Circle -7500403 true true 90 90 120 face happy false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 255 90 239 62 213 47 191 67 179 90 203 109 218 150 225 192 218 210 203 227 181 251 194 236 217 212 240 face neutral false 0 Circle -7500403 true true 8 7 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Rectangle -16777216 true false 60 195 240 225 face sad false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 168 90 184 62 210 47 232 67 244 90 220 109 205 150 198 192 205 210 220 227 242 251 229 236 206 212 183 factory false 0 Rectangle -7500403 true true 76 194 285 270 Rectangle -7500403 true true 36 95 59 231 Rectangle -16777216 true false 90 210 270 240 Line -7500403 true 90 195 90 255 Line -7500403 true 120 195 120 255 Line -7500403 true 150 195 150 240 Line -7500403 true 180 195 180 255 Line -7500403 true 210 210 210 240 Line -7500403 true 240 210 240 240 Line -7500403 true 90 225 270 225 Circle -1 true false 37 73 32 Circle -1 true false 55 38 54 Circle -1 true false 96 21 42 Circle -1 true false 105 40 32 Circle -1 true false 129 19 42 Rectangle -7500403 true true 14 228 78 270 fish false 0 Polygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166 Polygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165 Polygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60 Polygon -7500403 true true 30 136 151 77 226 81 280 119 292 146 292 160 287 170 270 195 195 210 151 212 30 166 Circle -16777216 true false 215 106 30 flag false 0 Rectangle -7500403 true true 60 15 75 300 Polygon -7500403 true true 90 150 270 90 90 30 Line -7500403 true 75 135 90 135 Line -7500403 true 75 45 90 45 flower false 0 Polygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135 Circle -7500403 true true 85 132 38 Circle -7500403 true true 130 147 38 Circle -7500403 true true 192 85 38 Circle -7500403 true true 85 40 38 Circle -7500403 true true 177 40 38 Circle -7500403 true true 177 132 38 Circle -7500403 true true 70 85 38 Circle -7500403 true true 130 25 38 Circle -7500403 true true 96 51 108 Circle -16777216 true false 113 68 74 Polygon -10899396 true false 189 233 219 188 249 173 279 188 234 218 Polygon -10899396 true false 180 255 150 210 105 210 75 240 135 240 food false 0 Polygon -7500403 true true 30 105 45 255 105 255 120 105 Rectangle -7500403 true true 15 90 135 105 Polygon -7500403 true true 75 90 105 15 120 15 90 90 Polygon -7500403 true true 135 225 150 240 195 255 225 255 270 240 285 225 150 225 Polygon -7500403 true true 135 180 150 165 195 150 225 150 270 165 285 180 150 180 Rectangle -7500403 true true 135 195 285 210 house false 0 Rectangle -7500403 true true 45 120 255 285 Rectangle -16777216 true false 120 210 180 285 Polygon -7500403 true true 15 120 150 15 285 120 Line -16777216 false 30 120 270 120 leaf false 0 Polygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195 line true 0 Line -7500403 true 150 0 150 300 line half true 0 Line -7500403 true 150 0 150 150 logs false 0 Polygon -7500403 true true 15 241 75 271 89 245 135 271 150 246 195 271 285 121 235 96 255 61 195 31 181 55 135 31 45 181 49 183 Circle -1 true false 132 222 66 Circle -16777216 false false 132 222 66 Circle -1 true false 72 222 66 Circle -1 true false 102 162 66 Circle -7500403 true true 222 72 66 Circle -7500403 true true 192 12 66 Circle -7500403 true true 132 12 66 Circle -16777216 false false 102 162 66 Circle -16777216 false false 72 222 66 Circle -1 true false 12 222 66 Circle -16777216 false false 30 240 30 Circle -1 true false 42 162 66 Circle -16777216 false false 42 162 66 Line -16777216 false 195 30 105 180 Line -16777216 false 255 60 165 210 Circle -16777216 false false 12 222 66 Circle -16777216 false false 90 240 30 Circle -16777216 false false 150 240 30 Circle -16777216 false false 120 180 30 Circle -16777216 false false 60 180 30 Line -16777216 false 195 270 285 120 Line -16777216 false 15 240 45 180 Line -16777216 false 45 180 135 30 pentagon false 0 Polygon -7500403 true true 150 15 15 120 60 285 240 285 285 120 person false 0 Circle -7500403 true true 110 5 80 Polygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Rectangle -7500403 true true 127 79 172 94 Polygon -7500403 true true 195 90 240 150 225 180 165 105 Polygon -7500403 true true 105 90 60 150 75 180 135 105 plant false 0 Rectangle -7500403 true true 135 90 165 300 Polygon -7500403 true true 135 255 90 210 45 195 75 255 135 285 Polygon -7500403 true true 165 255 210 210 255 195 225 255 165 285 Polygon -7500403 true true 135 180 90 135 45 120 75 180 135 210 Polygon -7500403 true true 165 180 165 210 225 180 255 120 210 135 Polygon -7500403 true true 135 105 90 60 45 45 75 105 135 135 Polygon -7500403 true true 165 105 165 135 225 105 255 45 210 60 Polygon -7500403 true true 135 90 120 45 150 15 180 45 165 90 square false 0 Rectangle -7500403 true true 30 30 270 270 square 2 false 0 Rectangle -7500403 true true 30 30 270 270 Rectangle -16777216 true false 60 60 240 240 star false 0 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108 target false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 Circle -7500403 true true 60 60 180 Circle -16777216 true false 90 90 120 Circle -7500403 true true 120 120 60 tree false 0 Circle -7500403 true true 118 3 94 Rectangle -6459832 true false 120 195 180 300 Circle -7500403 true true 65 21 108 Circle -7500403 true true 116 41 127 Circle -7500403 true true 45 90 120 Circle -7500403 true true 104 74 152 triangle false 0 Polygon -7500403 true true 150 30 15 255 285 255 triangle 2 false 0 Polygon -7500403 true true 150 30 15 255 285 255 Polygon -16777216 true false 151 99 225 223 75 224 truck false 0 Rectangle -7500403 true true 4 45 195 187 Polygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194 Rectangle -1 true false 195 60 195 105 Polygon -16777216 true false 238 112 252 141 219 141 218 112 Circle -16777216 true false 234 174 42 Rectangle -7500403 true true 181 185 214 194 Circle -16777216 true false 144 174 42 Circle -16777216 true false 24 174 42 Circle -7500403 false true 24 174 42 Circle -7500403 false true 144 174 42 Circle -7500403 false true 234 174 42 turtle true 0 Polygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210 Polygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105 Polygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105 Polygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87 Polygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210 Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99 wheel false 0 Circle -7500403 true true 3 3 294 Circle -16777216 true false 30 30 240 Line -7500403 true 150 285 150 15 Line -7500403 true 15 150 285 150 Circle -7500403 true true 120 120 60 Line -7500403 true 216 40 79 269 Line -7500403 true 40 84 269 221 Line -7500403 true 40 216 269 79 Line -7500403 true 84 40 221 269 x false 0 Polygon -7500403 true true 270 75 225 30 30 225 75 270 Polygon -7500403 true true 30 75 75 30 270 225 225 270 @#$#@#$#@ NetLogo 5.0.2 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ default 0.0 -0.2 0 0.0 1.0 0.0 1 1.0 0.0 0.2 0 0.0 1.0 link direction true 0 Line -7500403 true 150 150 90 180 Line -7500403 true 150 150 210 180 @#$#@#$#@ 0 @#$#@#$#@