breed [A_customers A_customer] breed [B_customers B_customer] breed [C_customers C_customer] breed [D_customers D_customer] breed [E_customers E_customer] ; There are nine groups of turtles breed [F_customers F_customer] breed [G_customers G_customer] breed [H_customers H_customer] breed [I_customers I_customer] globals [ money_supply ; Sum of all banks' deposit banks_in_default ; Number of bank in default ] patches-own [ deposit ; Money in account turtles_debt ; Money actually lent to customers loan ; Money that each bank can lend bank ; Reference number of each bank def_prob ; Default probability of each bank cond_def_prob ; Conditional default probability of each bank (conditioned to bank 5) other_turtles ; Number of turtles on each patch bank_equity ; Equity of each bank ] turtles-own [ owndeposit ; Money in account ref_bank ; Reference bank of each customer interact ; 1 if the agent has already purchased 0 otherwise loan_poss ; Difference between theorical loan amount and actual turtles' debt ] ;**************************** SETUP ************************************************* to setup clear-all setup-patches setup-turtles set bank5_default? false set conditional_default false end to setup-turtles create-A_customers turtles_number / 9 ; For each turtle of every breed it set up size, shape, position, reference bank ask A_customers ; and amount of deposit [ set size 0.2 set shape "person student" set owndeposit (money_base / turtles_number) setxy -1 1 set ref_bank 1 ] create-B_customers turtles_number / 9 ask B_customers [ set size 0.2 set shape "person business" set owndeposit (money_base / turtles_number) setxy 0 1 set ref_bank 2 ] create-C_customers turtles_number / 9 ask C_customers [ set size 0.2 set shape "person construction" set owndeposit (money_base / turtles_number) setxy 1 1 set ref_bank 3 ] create-D_customers turtles_number / 9 ask D_customers [ set size 0.2 set shape "person doctor" set owndeposit (money_base / turtles_number) setxy -1 0 set ref_bank 4 ] create-E_customers turtles_number / 9 ask E_customers [ set size 0.2 set shape "person farmer" set owndeposit (money_base / turtles_number) setxy 0 0 set ref_bank 5 ] create-F_customers turtles_number / 9 ask F_customers [ set size 0.2 set shape "person graduate" set owndeposit (money_base / turtles_number) setxy 1 0 set ref_bank 6 ] create-G_customers turtles_number / 9 ask G_customers [ set size 0.2 set shape "person lumberjack" set owndeposit (money_base / turtles_number) setxy -1 -1 set ref_bank 7 ] create-H_customers turtles_number / 9 ask H_customers [ set size 0.2 set shape "person police" set owndeposit (money_base / turtles_number) setxy 0 -1 set ref_bank 8 ] create-I_customers turtles_number / 9 ask I_customers [ set size 0.2 set shape "person service" set owndeposit (money_base / turtles_number) setxy 1 -1 set ref_bank 9 ] end to setup-patches ; this command defines the reference bank number, the colour, amount of equity and amount of deposit ask patches [ set pcolor random (1000) set [bank] of patch -1 1 1 set [bank] of patch 0 1 2 set [bank] of patch 1 1 3 set [bank] of patch -1 0 4 set [bank] of patch 0 0 5 set [bank] of patch 1 0 6 set [bank] of patch -1 -1 7 set [bank] of patch 0 -1 8 set [bank] of patch 1 -1 9 set deposit (money_base) / 9 set bank_equity equity ] end ;************************** GO ****************************************************** to go ; Actions that every agent does in every cycle move-turtles agent_interact bank_update interact_update loan_calc loan_possibility calc_equity calc_def default default2 calculate plots end ;************************** MOVE TURTLES ******************************************* to move-turtles ; The movement of the turtles is random ask turtles [ right random 360 forward 1 ] end ;**************************** LOAN ************************************************* to loan_calc ; Theorical quantity of lendable money ask patches [set loan (deposit * (1 - reserve_ratio) )] end to loan_possibility ; Real quantity of lendable money ask A_customers [set loan_poss ([loan] of patch -1 1 - [turtles_debt] of patch -1 1)] ask B_customers [set loan_poss ([loan] of patch 0 1 - [turtles_debt] of patch 0 1)] ask C_customers [set loan_poss ([loan] of patch 1 1 - [turtles_debt] of patch 1 1)] ask D_customers [set loan_poss ([loan] of patch -1 0 - [turtles_debt] of patch -1 0)] ask E_customers [set loan_poss ([loan] of patch 0 0 - [turtles_debt] of patch 0 0)] ask F_customers [set loan_poss ([loan] of patch 1 0 - [turtles_debt] of patch 1 0)] ask G_customers [set loan_poss ([loan] of patch -1 -1 - [turtles_debt] of patch -1 -1)] ask H_customers [set loan_poss ([loan] of patch 0 -1 - [turtles_debt] of patch 0 -1)] ask I_customers [set loan_poss ([loan] of patch 1 -1 - [turtles_debt] of patch 1 -1)] end ; ************************** AGENT INTERACT ************************************************** to agent_interact ; If there are two turtles on the same patch and both of ask turtles ; present interact = 0 and can borrow more money than [set other_turtles (count other turtles-here) ; the amount of the purchase, one of them buys and the o if (other_turtles = 1) and (interact = 0) and all? turtles-here [loan_poss > purchase] ; other sells [ask one-of turtles-here [set owndeposit (owndeposit - purchase) set interact 1 ask one-of other turtles-here [set owndeposit (owndeposit + purchase) set interact 1]]]] end ; *************************** UPDATE ********************************************************** to-report depA report sum [owndeposit] of A_customers with [owndeposit >= 0] end to-report debA report sum [owndeposit] of A_customers with [owndeposit < 0] end to-report depB report sum [owndeposit] of B_customers with [owndeposit >= 0] end to-report debB report sum [owndeposit] of B_customers with [owndeposit < 0] end to-report depC report sum [owndeposit] of C_customers with [owndeposit >= 0] end to-report debC report sum [owndeposit] of C_customers with [owndeposit < 0] end to-report depD report sum [owndeposit] of D_customers with [owndeposit >= 0] end to-report debD report sum [owndeposit] of D_customers with [owndeposit < 0] end to-report depE report sum [owndeposit] of E_customers with [owndeposit >= 0] end to-report debE report sum [owndeposit] of E_customers with [owndeposit < 0] end to-report depF report sum [owndeposit] of F_customers with [owndeposit >= 0] end to-report debF report sum [owndeposit] of F_customers with [owndeposit < 0] end to-report depG report sum [owndeposit] of G_customers with [owndeposit >= 0] end to-report debG report sum [owndeposit] of G_customers with [owndeposit < 0] end to-report depH report sum [owndeposit] of H_customers with [owndeposit >= 0] end to-report debH report sum [owndeposit] of H_customers with [owndeposit < 0] end to-report depI report sum [owndeposit] of I_customers with [owndeposit >= 0] end to-report debI report sum [owndeposit] of I_customers with [owndeposit < 0] end to bank_update ; Each bank set its credit (turtles debt) and deposit as the sum of its customers ask patch -1 1 [set turtles_debt (- debA) set deposit depA] ask patch 0 1 [set turtles_debt (- debB) set deposit depB] ask patch 1 1 [set turtles_debt (- debC) set deposit depC] ask patch -1 0 [set turtles_debt (- debD) set deposit depD] ask patch 0 0 [set turtles_debt (- debE) set deposit depE] ask patch 1 0 [set turtles_debt (- debF) set deposit depF] ask patch -1 -1 [set turtles_debt (- debG) set deposit depG] ask patch 0 -1 [set turtles_debt (- debH) set deposit depH] ask patch 1 -1 [set turtles_debt (- debI) set deposit depI] end to interact_update ask turtles [set interact 0] end ;***************************** DEFAULT ******************************************* to default ; if the switch is activated and the marginal probability of default is higher if bank5_default? and [def_prob] of patch 0 0 >= default_threshold ; than threshold chosen by the user the bank fails (deposit and loan become 0 [ ; as the deposit of the customers) ask patch 0 0 [set bank 0 set loan 0 set deposit 0 ] ask E_customers [set owndeposit 0] ] end to default2 ; If the switch is activated this procedure calculates the conditional likelihood. If it is bigger than 0.9 if conditional_default ; and the bank 5 is already failed, the bank in exam fails, too. [ask patches [set cond_def_prob (def_prob + (rho * sqrt ((def_prob /( [def_prob] of patch 0 0 + 0.00000000000001))* (1 - def_prob) * (1 - [def_prob] of patch 0 0)))) if cond_def_prob > 1 [set cond_def_prob 1] if (cond_def_prob >= 0.9) and ([bank] of patch 0 0 = 0) [set bank 0 set loan 0 set deposit 0]] ask patch 0 0 [set cond_def_prob (def_prob + (1 * sqrt ((def_prob /( [def_prob] of patch 0 0 + 0.00000000000001))* (1 - def_prob) * (1 - [def_prob] of patch 0 0))))] ask patch -1 1 [if bank = 0 [ask A_customers [set owndeposit 0]]] ask patch 0 1 [if bank = 0 [ask B_customers [set owndeposit 0]]] ask patch 1 1 [if bank = 0 [ask C_customers [set owndeposit 0]]] ask patch -1 0 [if bank = 0 [ask D_customers [set owndeposit 0]]] ask patch 1 0 [if bank = 0 [ask F_customers [set owndeposit 0]]] ask patch -1 -1 [if bank = 0 [ask G_customers [set owndeposit 0]]] ask patch 0 -1 [if bank = 0 [ask H_customers [set owndeposit 0]]] ask patch 1 -1 [if bank = 0 [ask I_customers [set owndeposit 0]]] ] end ; *********************************** CALCULATE ************************************** to calculate set money_supply sum [deposit] of patches ; This procedure calculates the total of money supply and the number of bank in default set banks_in_default (count patches with [bank = 0]) end to calc_def ask patches [if bank != 0 [ifelse ((customers_default * turtles_debt) / equity) <= 1 [set def_prob ((customers_default * turtles_debt) / equity)] [set def_prob 1]]] end to calc_equity ask patches [set bank_equity equity] end ; ****************************** PLOTS ******************************************* to plots set-current-plot "money supply (total deposit)" set-current-plot-pen "money_supply" plot money_supply end @#$#@#$#@ GRAPHICS-WINDOW 205 10 605 431 1 1 130.0 1 10 1 1 1 0 1 1 1 -1 1 -1 1 0 0 1 ticks CC-WINDOW 5 507 1038 602 Command Center 0 SLIDER 13 15 185 48 turtles_number turtles_number 18 54 18 9 1 NIL HORIZONTAL SLIDER 13 47 185 80 money_base money_base 0 1000 900 50 1 NIL HORIZONTAL SLIDER 14 168 186 201 equity equity 0 5000 400 50 1 NIL HORIZONTAL SLIDER 14 81 186 114 reserve_ratio reserve_ratio 0 1 0.1 0.01 1 NIL HORIZONTAL SLIDER 15 115 187 148 purchase purchase 0 1000 51 1 1 NIL HORIZONTAL BUTTON 43 336 106 369 NIL setup NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 43 377 106 410 NIL go T 1 T OBSERVER NIL NIL NIL NIL BUTTON 43 415 118 448 go once go NIL 1 T OBSERVER NIL NIL NIL NIL SLIDER 14 236 186 269 customers_default customers_default 0 1 0.15 0.01 1 NIL HORIZONTAL SWITCH 669 22 818 55 bank5_default? bank5_default? 0 1 -1000 SWITCH 670 63 819 96 conditional_default conditional_default 0 1 -1000 SLIDER 15 203 187 236 rho rho 0 1 0.2 0.01 1 NIL HORIZONTAL PLOT 673 111 1029 294 money supply (total deposit) time money_supply 0.0 10.0 0.0 10.0 true true PENS "money_supply" 1.0 0 -2674135 true MONITOR 216 447 361 492 NIL money_supply 17 1 11 MONITOR 481 448 589 493 NIL banks_in_default 17 1 11 SLIDER 840 24 1012 57 default_threshold default_threshold 0 1 0.9 0.01 1 NIL HORIZONTAL TEXTBOX 776 370 926 415 MONEY SUPPLY\n AND\nBANKING DEFAULTS 12 0.0 1 @#$#@#$#@ WHAT IS IT? ----------- The model represents a banking system in which customers interact among each other and with the bank, so that they can both deposit in account and borrow money making the money multiplier run. In the system default events could happen, first because of the failure of a specific bank and then of the other ones, conditioned to the first default. These events have effects on the aggregate money quantity. HOW IT WORKS ------------ The "world" of the simulation is divided in nine sectors, each one being related to a particular bank, which a group of customers is assigned to. Every customer has got an equal amount of money (determined by the quantity of money base) and he deposits it in his bank account. When the customers meet each other exchange a money amount, chosen by the user, and they can either take money from the account or borrow as much money as the part of deposit not in the compulsory reserve of his bank. The amount of loans granted to customers determines, together with their insolvence rate and bank's equity, a default probability for each bank. Particularly, the failure of a specific bank (number 5) makes other banks' default be possible or not (in a conditional way). This process affects money amount in the system. HOW TO USE IT ------------- Start the simulation by clicking "setup". Then, after clicking "go", the turtles start moving and interacting in the way explained above; they keep on doing so until the "go" button remains pressed. Button: setup resets everything to the beginning values and releases in the simulated economy a number of turtles wwhich can be chosen using the "turtles_number" slider. Button: go if clicked, the model starts running. Button: go once if clicked, the model runs once. Slider: turtles_number this slider allows you to choose the number of turtles you would like to begin the simulation with. Slider: money_base this slider allows you to change the monetary base in the system. Slider: reserve_ratio with this slider you can change the reserve ratio fixed by the Central Bank. Slider: rho to change the correlation degree between each bank and the bank 5. Slider: equity this slider allows you to change the equity amount of each bank. Slider: customers_default it allows you to change the customers' default probability. Slider: default_threshold with it you can change the threshold over which the bank 5 is considered failed. Switch: bank5_default? this switch activates the possibility of bank 5's default. Switch: conditional_default it allows other banks' conditional default (only if the bank 5 is already failed). Monitors: there are two monitors which show the total amount of money supply and the number of bank in default. Plot: money supply this plot shows the trend of this variable. THINGS TO NOTICE ---------------- First of all, it is important to notice that the model begins running only if the amount of the exchange is smaller than the initial quantity of loan disponibility. Then, the behaviour of the money supply is not constant in the growth, but depends on the interaction between agents and on their borrowing possibility. Different combinations of loan possibility and amount of exchange make possible the restitution of loan borrowed by customers: if these amounts of money are not taken by other customers the total money supply decreases. Notice the growth of default possibility as equity declines and rho and customers' insolvence grow up. Besides this, notice that the conditional default probability is always bigger than the non conditional one. This fact leads to many defaults if you consider the conditional aspect, even if the marginal default likelihood is not very significative. THINGS TO TRY ------------- After a first creation of money you can incentivate the recourse to banks' loans by varying the amount of the exchange : particularly, if this value is gradually diminished the model approssimates the result of the economic theory. You may notice also the effect on the default number and the marginal probability given by the setting of the equity and customers' insolvence rate, and the effect on conditional likelihood given by the setting of rho. EXTENDING THE MODEL ------------------- The model could be extended by introducing the curreny and the cash ratio. CREDITS AND REFERENCES ---------------------- O. Blanchard, "Macroeconomics", 3rd edition. E. Luciano, M. Marena, Course of Mathematical Finance (University of Turin), Lectures notes. @#$#@#$#@ 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 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 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 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 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 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 person business false 0 Rectangle -1 true false 120 90 180 180 Polygon -13345367 true false 135 90 150 105 135 180 150 195 165 180 150 105 165 90 Polygon -7500403 true true 120 90 105 90 60 195 90 210 116 154 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 183 153 210 210 240 195 195 90 180 90 150 165 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 76 172 91 Line -16777216 false 172 90 161 94 Line -16777216 false 128 90 139 94 Polygon -13345367 true false 195 225 195 300 270 270 270 195 Rectangle -13791810 true false 180 225 195 300 Polygon -14835848 true false 180 226 195 226 270 196 255 196 Polygon -13345367 true false 209 202 209 216 244 202 243 188 Line -16777216 false 180 90 150 165 Line -16777216 false 120 90 150 165 person construction false 0 Rectangle -7500403 true true 123 76 176 95 Polygon -1 true false 105 90 60 195 90 210 115 162 184 163 210 210 240 195 195 90 Polygon -13345367 true false 180 195 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 Circle -7500403 true true 110 5 80 Line -16777216 false 148 143 150 196 Rectangle -16777216 true false 116 186 182 198 Circle -1 true false 152 143 9 Circle -1 true false 152 166 9 Rectangle -16777216 true false 179 164 183 186 Polygon -955883 true false 180 90 195 90 195 165 195 195 150 195 150 120 180 90 Polygon -955883 true false 120 90 105 90 105 165 105 195 150 195 150 120 120 90 Rectangle -16777216 true false 135 114 150 120 Rectangle -16777216 true false 135 144 150 150 Rectangle -16777216 true false 135 174 150 180 Polygon -955883 true false 105 42 111 16 128 2 149 0 178 6 190 18 192 28 220 29 216 34 201 39 167 35 Polygon -6459832 true false 54 253 54 238 219 73 227 78 Polygon -16777216 true false 15 285 15 255 30 225 45 225 75 255 75 270 45 285 person doctor false 0 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 Polygon -13345367 true false 135 90 150 105 135 135 150 150 165 135 150 105 165 90 Polygon -7500403 true true 105 90 60 195 90 210 135 105 Polygon -7500403 true true 195 90 240 195 210 210 165 105 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 79 172 94 Polygon -1 true false 105 90 60 195 90 210 114 156 120 195 90 270 210 270 180 195 186 155 210 210 240 195 195 90 165 90 150 150 135 90 Line -16777216 false 150 148 150 270 Line -16777216 false 196 90 151 149 Line -16777216 false 104 90 149 149 Circle -1 true false 180 0 30 Line -16777216 false 180 15 120 15 Line -16777216 false 150 195 165 195 Line -16777216 false 150 240 165 240 Line -16777216 false 150 150 165 150 person farmer false 0 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 Polygon -1 true false 60 195 90 210 114 154 120 195 180 195 187 157 210 210 240 195 195 90 165 90 150 105 150 150 135 90 105 90 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 79 172 94 Polygon -13345367 true false 120 90 120 180 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 180 90 172 89 165 135 135 135 127 90 Polygon -6459832 true false 116 4 113 21 71 33 71 40 109 48 117 34 144 27 180 26 188 36 224 23 222 14 178 16 167 0 Line -16777216 false 225 90 270 90 Line -16777216 false 225 15 225 90 Line -16777216 false 270 15 270 90 Line -16777216 false 247 15 247 90 Rectangle -6459832 true false 240 90 255 300 person graduate false 0 Circle -16777216 false false 39 183 20 Polygon -1 true false 50 203 85 213 118 227 119 207 89 204 52 185 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 79 172 94 Polygon -8630108 true false 90 19 150 37 210 19 195 4 105 4 Polygon -8630108 true false 120 90 105 90 60 195 90 210 120 165 90 285 105 300 195 300 210 285 180 165 210 210 240 195 195 90 Polygon -1184463 true false 135 90 120 90 150 135 180 90 165 90 150 105 Line -2674135 false 195 90 150 135 Line -2674135 false 105 90 150 135 Polygon -1 true false 135 90 150 105 165 90 Circle -1 true false 104 205 20 Circle -1 true false 41 184 20 Circle -16777216 false false 106 206 18 Line -2674135 false 208 22 208 57 person lumberjack false 0 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 Polygon -2674135 true false 60 196 90 211 114 155 120 196 180 196 187 158 210 211 240 196 195 91 165 91 150 106 150 135 135 91 105 91 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 79 172 94 Polygon -6459832 true false 174 90 181 90 180 195 165 195 Polygon -13345367 true false 180 195 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 Polygon -6459832 true false 126 90 119 90 120 195 135 195 Rectangle -6459832 true false 45 180 255 195 Polygon -16777216 true false 255 165 255 195 240 225 255 240 285 240 300 225 285 195 285 165 Line -16777216 false 135 165 165 165 Line -16777216 false 135 135 165 135 Line -16777216 false 90 135 120 135 Line -16777216 false 105 120 120 120 Line -16777216 false 180 120 195 120 Line -16777216 false 180 135 210 135 Line -16777216 false 90 150 105 165 Line -16777216 false 225 165 210 180 Line -16777216 false 75 165 90 180 Line -16777216 false 210 150 195 165 Line -16777216 false 180 105 210 180 Line -16777216 false 120 105 90 180 Line -16777216 false 150 135 150 165 Polygon -2674135 true false 100 30 104 44 189 24 185 10 173 10 166 1 138 -1 111 3 109 28 person police false 0 Polygon -1 true false 124 91 150 165 178 91 Polygon -13345367 true false 134 91 149 106 134 181 149 196 164 181 149 106 164 91 Polygon -13345367 true false 180 195 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 Polygon -13345367 true false 120 90 105 90 60 195 90 210 116 158 120 195 180 195 184 158 210 210 240 195 195 90 180 90 165 105 150 165 135 105 120 90 Rectangle -7500403 true true 123 76 176 92 Circle -7500403 true true 110 5 80 Polygon -13345367 true false 150 26 110 41 97 29 137 -1 158 6 185 0 201 6 196 23 204 34 180 33 Line -13345367 false 121 90 194 90 Line -16777216 false 148 143 150 196 Rectangle -16777216 true false 116 186 182 198 Rectangle -16777216 true false 109 183 124 227 Rectangle -16777216 true false 176 183 195 205 Circle -1 true false 152 143 9 Circle -1 true false 152 166 9 Polygon -1184463 true false 172 112 191 112 185 133 179 133 Polygon -1184463 true false 175 6 194 6 189 21 180 21 Line -1184463 false 149 24 197 24 Rectangle -16777216 true false 101 177 122 187 Rectangle -16777216 true false 179 164 183 186 person service false 0 Polygon -7500403 true true 180 195 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 Polygon -1 true false 120 90 105 90 60 195 90 210 120 150 120 195 180 195 180 150 210 210 240 195 195 90 180 90 165 105 150 165 135 105 120 90 Polygon -1 true false 123 90 149 141 177 90 Rectangle -7500403 true true 123 76 176 92 Circle -7500403 true true 110 5 80 Line -13345367 false 121 90 194 90 Line -16777216 false 148 143 150 196 Rectangle -16777216 true false 116 186 182 198 Circle -1 true false 152 143 9 Circle -1 true false 152 166 9 Rectangle -16777216 true false 179 164 183 186 Polygon -2674135 true false 180 90 195 90 183 160 180 195 150 195 150 135 180 90 Polygon -2674135 true false 120 90 105 90 114 161 120 195 150 195 150 135 120 90 Polygon -2674135 true false 155 91 128 77 128 101 Rectangle -16777216 true false 118 129 141 140 Polygon -2674135 true false 145 91 172 77 172 101 person soldier false 0 Rectangle -7500403 true true 127 79 172 94 Polygon -10899396 true false 105 90 60 195 90 210 135 105 Polygon -10899396 true false 195 90 240 195 210 210 165 105 Circle -7500403 true true 110 5 80 Polygon -10899396 true false 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Polygon -6459832 true false 120 90 105 90 180 195 180 165 Line -6459832 false 109 105 139 105 Line -6459832 false 122 125 151 117 Line -6459832 false 137 143 159 134 Line -6459832 false 158 179 181 158 Line -6459832 false 146 160 169 146 Rectangle -6459832 true false 120 193 180 201 Polygon -6459832 true false 122 4 107 16 102 39 105 53 148 34 192 27 189 17 172 2 145 0 Polygon -16777216 true false 183 90 240 15 247 22 193 90 Rectangle -6459832 true false 114 187 128 208 Rectangle -6459832 true false 177 187 191 208 person student false 0 Polygon -13791810 true false 135 90 150 105 135 165 150 180 165 165 150 105 165 90 Polygon -7500403 true true 195 90 240 195 210 210 165 105 Circle -7500403 true true 110 5 80 Rectangle -7500403 true true 127 79 172 94 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 Polygon -1 true false 100 210 130 225 145 165 85 135 63 189 Polygon -13791810 true false 90 210 120 225 135 165 67 130 53 189 Polygon -1 true false 120 224 131 225 124 210 Line -16777216 false 139 168 126 225 Line -16777216 false 140 167 76 136 Polygon -7500403 true true 105 90 60 195 90 210 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 4.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 @#$#@#$#@