-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.html
615 lines (552 loc) · 43.4 KB
/
models.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
<div id="modelsPage">
<center>
<ul id="top-menu">
<li>
<a href="#bookModels">Book Models</a>
</li>
<li>
<a href="#ch0">Chapter 0</a>
</li>
<li>
<a href="#ch1">Chapter 1</a>
</li>
<li>
<a href="#ch2">Chapter 2</a>
</li>
<li>
<a href="#ch3">Chapter 3</a>
</li>
<li>
<a href="#ch4">Chapter 4</a>
</li>
<li>
<a href="#ch5">Chapter 5</a>
</li>
<li>
<a href="#ch6">Chapter 6</a>
</li>
<li>
<a href="#ch7">Chapter 7</a>
</li>
<li>
<a href="#ch8">Chapter 8</a>
</li>
</ul>
</center>
<div id="modelsStart"></div>
<div style="padding-top:61px;padding-left:6%">
<div class="chapter-label"><h1><a id="bookModels">Introduction to Agent-based Modeling Book Models</a></h1></div>
This page includes all the models covered in the textbook. Each model can be downloaded and run using the free <a href="http://ccl.northwestern.edu/netlogo" id="NetLogoLink">NetLogo</a> software.
<div>
<h2><a id="ch0" >Chapter 0 - Why Agent-Based Modeling?</a></h2>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/TurtlesCircling.png">
</div>
<div class="model-description">
<div class="model-name">Turtles Circling <span class="model-page">(p. 8)</span></div>
This is a kind of mathematical investigation — we are investigating the emergent shape created by the movement of many turtles (arrows) moving independently in simple ways. Each turtle is moving a little step forward and taking a little turn right to stay on a circle of radius 20.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%200/Turtles%20Circling%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%200/Turtles%20Circling%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch1">Chapter 1 - What Is Agent-Based Modeling?</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/AntsSimple.png">
</div>
<div class="model-description">
<div class="model-name">Ants<span class="model-page"> (p. 26)</span></div>
In this model, a colony of ants forages for food. Though each ant follows a set of simple rules, the colony as a whole acts in a sophisticated way.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%201/Ants%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%201/Ants%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch2">Chapter 2 - Creating Simple Agent-Based Models</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/LifeSimple.png">
</div>
<div class="model-description">
<div class="model-name">Life<span class="model-page"> (p. 55)</span></div>
This program is a simple example of the Life model, which is a 2D cellular automaton.<br/><br/>
A cellular automaton is a computational machine that performs actions based on certain rules. It can be thought of as a board which is divided into cells (such as square cells of a checkerboard). Each cell can be either “alive” or “dead.” This is called the “state” of the cell. According to specified rules, each cell will be alive or dead at the next time step.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Life%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Life%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/HeroesAndCowards.png">
</div>
<div class="model-description">
<div class="model-name">Heroes and Cowards <span class="model-page">(p. 68)</span></div>
This model demonstrates the “Heroes and Cowards game. In the game, each person arbitrarily chooses someone else in the room to be their perceived friend, and someone to be their perceived enemy. They don’t tell anyone who they have chosen, but they all move to position themselves either such that a) they are between their friend and their enemy, or b) such that they are behind their friend relative to their enemy.<br/><br/>
This simple model demonstrates an idealized form of this game played out by computational agents. Mostly it demonstrates how rich, complex, and surprising behavior can emerge from simple rules and interactions
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Heroes%20and%20Cowards.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Heroes%20and%20Cowards.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SimpleEconomy.png">
</div>
<div class="model-description">
<div class="model-name">Simple Economy <span class="model-page">(p. 87)</span></div>
This model is a very simple model of economic exchange. It is a thought experiment of a world where, in every time step, each person gives one dollar to one other person (at random) if they have any money to give. If they have no money then they do not give out any money.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Simple%20Economy.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%202/Simple%20Economy.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch3">Chapter 3 - Exploring and Extending Agent-Based Models</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/FireSimple.png">
</div>
<div class="model-description">
<div class="model-name">Fire Simple<span class="model-page"> (p. 105)</span></div>
This model simulates the spread of a fire through a forest. It shows that the fire’s chance of reaching the right edge of the forest depends critically on the density of trees. This is an example of a common feature of complex systems, the presence of a non-linear threshold or critical parameter.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
<div style="padding-top:5px;">In this chapter we make three extensions to the Fire Simple model:<br/>
(1) Probabilistic Spreading of Fire: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple%20Extension%201.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple%20Extension%201.nlogo" class="nlw-link small"></a><br/>
(2) Adding Wind: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Fire%20Extensions/Fire%20Simple%20Extension%202.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple%20Extension%202.nlogo" class="nlw-link small"></a><br/>
(3) Allowing Sparks to Jump: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Fire%20Extensions/Fire%20Simple%20Extension%203.nlogo" class="nlw-link small"></a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/DLASimple.png">
</div>
<div class="model-description">
<div class="model-name">DLA Simple<span class="model-page"> (p. 118)</span></div>
This model demonstrates diffusion-limited aggregation, in which particles moving (diffusing) in random trajectories stick together (aggregate) to form beautiful treelike branching fractal structures. There are many patterns found in nature that resemble the patterns produced by this model: crystals, coral, fungi, lightning, and so on.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
<div style="padding-top:5px;">In this chapter we make three extensions to the DLA Simple model:<br/>
(1) Probabilistic Sticking: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%201.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%201.nlogo" class="nlw-link small"></a><br/>
(2) Probabilistic Sticking Based on Density: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%202.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%202.nlogo" class="nlw-link small"></a><br/>
(3) Multiple Seeds: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/DLA%20Extensions/DLA%20Simple%20Extension%203.nlogo" class="nlw-link small"></a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SegregationSimple.png">
</div>
<div class="model-description">
<div class="model-name">Segregation Simple<span class="model-page"> (p. 128)</span></div>
This project models the behavior of two types of turtles in a mythical pond. The red turtles and green turtles get along with one another. But each turtle wants to make sure that it lives near some of “its own.” That is, each red turtle wants to live near at least some red turtles, and each green turtle wants to live near at least some green turtles. The simulation shows how these individual preferences ripple through the pond, leading to large-scale patterns. This project was inspired by Thomas Schelling’s writings about social systems (particularly with regards to housing segregation in cities).
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
<div style="padding-top:5px;">In this chapter we make three extensions to the Segregation Simple model:<br/>
(1) More than 2 Ethnicities: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%201.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%201.nlogo" class="nlw-link small"></a><br/>
(2) Individual Similarity Preferences: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%202.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%202.nlogo" class="nlw-link small"></a><br/>
(3) Minimum Similarity Preferences: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/Segregation%20Extensions/Segregation%20Simple%20Extension%203.nlogo" class="nlw-link small"></a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/ElFarol.png">
</div>
<div class="model-description">
<div class="model-name">El Farol<span class="model-page"> (p. 141)</span></div>
El Farol is a bar in Santa Fe, New Mexico. The bar is popular — especially on Thursday nights when they offer Irish music — but sometimes becomes overcrowded and unpleasant. In fact, if the patrons of the bar think it will be overcrowded they stay home; otherwise they go enjoy themselves at El Farol. This model explores what happens to the overall attendance at the bar on these popular Thursday evenings, as the patrons use different strategies for determining how crowded they think the bar will be.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
<div style="padding-top:5px;">In this chapter we make three extensions to the El Farol model:<br/>
(1) Agent Shading by Frequency: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="nlw-link small"></a><br/>
(2) Additional Monitors: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="nlw-link small"></a><br/>
(3) Histogram Tracking Reward Values: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%203/El%20Farol%20Extensions/El%20Farol%20Extension%203.nlogo" class="nlw-link small"></a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch4">Chapter 4 - Creating Agent-Based Models</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/WolfSheepSimple.png">
</div>
<div class="model-description">
<div class="model-name">Building the Wolf-Sheep Predation Model<span class="model-page"> (p. 141)</span></div>
In this chapter we incrementally build a predator-prey model of population dynamics. Each version adds a new component to the model.
<div style="padding-top:8px;">
(1) Introducing Sheep: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%201.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%201.nlogo" class="nlw-link small"></a><br/>
(2) Giving Sheep Energy: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%202.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%202.nlogo" class="nlw-link small"></a><br/>
(3) Adding Grass: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%203.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%203.nlogo" class="nlw-link small"></a><br/>
(4) Sheep now Reproduce: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%204.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%204.nlogo" class="nlw-link small"></a><br/>
(5) Introducing Wolves: <a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%205.nlogo" class="model-download-link small"></a>
<a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%204/Wolf%20Sheep%20Simple%205.nlogo" class="nlw-link small"></a><br/>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch5">Chapter 5 - The Components of Agent-Based Modeling</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/AgentsetOrdering.png">
</div>
<div class="model-description">
<div class="model-name">Agentset Ordering <span class="model-page">(p. 218)</span></div>
This model explores the order with which constructed agent sets follow their commands. In particular, this model explores how an agentset constructed by collecting agents with a certain property do not automatically update even if the properties of the agents change during a run of the model. The agentset continues to consist of the agents that had that property at the time of agentset construction. In other words, even though you ASK agents that have a particular criterion to take an action, not all agents after the ASK that satisfy that criterion will necessarily take that action, since some of the agent properties may have changed during the ASK execution.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Agentset%20Ordering.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Agentset%20Ordering.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/AgentsetEfficiency.png">
</div>
<div class="model-description">
<div class="model-name">Agentset Efficiency <span class="model-page">(p. 218)</span></div>
This model addresses a couple of concerns that can arise when using agentsets, in particular when filtering them using the “with” primitive. The first of these concerns has to do with efficiency: it is best to avoid building the same agentset multiple times. The second concern has to do with the timing of side effects: rebuilding an agentset using the same condition can lead to different results if the state of the agents has changed in the meanwhile.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Agentset%20Efficiency.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Agentset%20Efficiency.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/TrafficBasicUtility.jpg">
</div>
<div class="model-description">
<div class="model-name">Traffic Basic Utility <span class="model-page">(p. 226)</span></div>
This model models the movement of cars on a highway. Each car follows a simple set of rules: it slows down (decelerates) if it sees a car close ahead, and speeds up (accelerates) if it doesn’t see a car ahead.<br/><br/>
This model extends the Traffic Basic model, from the social science section of the NetLogo models library, to include a utility function for the cars. The model sets the optimal speed for the cars (best fuel efficiency) to be 0.45. If the acceleration rule speeds the car past the optimal speed, the car decelerates instead of accelerating.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Basic%20Utility.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Basic%20Utility.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/TrafficGridGoal.png">
</div>
<div class="model-description">
<div class="model-name">Traffic Grid Goal <span class="model-page">(p. 227)</span></div>
The Traffic Grid Goal model simulates traffic moving in a city grid. It allows you to control traffic lights and global variables, such as the speed limit and the number of cars, and explore traffic dynamics.<br/><br/>
This model extends the Traffic Grid model by giving the cars goals, namely to drive to and from work. It is the third in a series of traffic models that use different kinds of agent cognition. The agents in this model use goal-based cognition.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Grid%20Goal.nlogo" class="model-download-link">Download</a>
<!-- Disabled until `inspect` is implemented <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Grid%20Goal.nlogo" class="nlw-link">Try it in NetLogo Web</a> -->
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/TrafficBasicAdaptive.jpg">
</div>
<div class="model-description">
<div class="model-name">Traffic Basic Adaptive <span class="model-page">(p. 230)</span></div>
This model models the movement of cars on a highway. Each car follows a simple set of rules: it slows down (decelerates) if it sees a car close ahead, and speeds up (accelerates) if it doesn’t see a car ahead.<br/><br/>
The model extends the Traffic Basic model, from the social science section of the NetLogo models library, by having cars adapt their acceleration speed to maintain a smooth flow of traffic.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Basic%20Adaptive.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Traffic%20Basic%20Adaptive.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/RandomNetwork.png">
</div>
<div class="model-description">
<div class="model-name">Random Network <span class="model-page">(p. 244)</span></div>
The theory of random networks was first introduced by mathematicians Paul Erdős and Alfréd Rényi in 1959. There are several different models for random networks. The most well known are two variants called Erdős–Rényi networks. This model shows four different ways to create random networks, 2 of which create the variants of the classic Erdős–Rényi networks.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Random%20Network.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Random%20Network.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/PreferentialAttachmentSimple.png">
</div>
<div class="model-description">
<div class="model-name">Preferential Attachment Simple <span class="model-page">(p. 246)</span></div>
This is a simplified version of the Preferential Attachment model. It generates a network where the probability of a new link being connected to a node is proportional to the number of links the node already has.<br/><br/>
Such networks can be found in a surprisingly large range of real world situations, ranging from the connections between websites to the collaborations between actors. This model generates these networks by a process of “preferential attachment”, in which new network members prefer to make a connection to the more popular existing members.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Preferential%20Attachment%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Preferential%20Attachment%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/Communication-T-TNetworkExample.png">
</div>
<div class="model-description">
<div class="model-name">Communication T-T Example <span class="model-page">(p. 260)</span></div>
This code example is a variation on the Communication-T-T Example in the Code Examples section of the NetLogo models library. In the original code example, the turtles passed messages to nearby turtles. In this version, the turtles pass messages through a network. One turtle starts out with a message (the red turtle) and she spreads the message to other turtles she is linked with. When a turtle gets the message, it turns red.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Communication-T-T%20Network%20Example.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%205/Communication-T-T%20Network%20Example.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2> <a id="ch6">Chapter 6 - Analyzing Agent-Based Models</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SpreadofDisease.png">
</div>
<div class="model-description">
<div class="model-name">Spread of Disease <span class="model-page">(p. 283)</span></div>
This model explores the spread of disease in a number of different conditions and environments. In particular, it explores how making assumptions about the interactions of agents can drastically affect the results of the model.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%206/Spread%20of%20Disease.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%206/Spread%20of%20Disease.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2> <a id="ch7">Chapter 7 - Verification, Validation, and Replication</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/VotingComponentVerification.png">
</div>
<div class="model-description">
<div class="model-name">Voting Model <span class="model-page">(p. 318)</span></div>
These models are simple cellular automata that simulate voting distribution by having each patch take a “vote” of its eight surrounding neighbors, then perhaps change its own vote according to the outcome.<br/><br/>
The sensitivity version of this model alters the original model by allowing the user to specify the initial percentage of the green patches in the model and to test whether the model’s behavior is sensitive to the initial percentages of the colors.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%207/Voting%20Sensitivity%20Analysis.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%207/Voting%20Sensitivity%20Analysis.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
<br/>
The component verification extension adds the CHECK-SETUP procedure which examines whether or not the initial conditions of the model exceed the expected initial conditions
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%207/Voting%20Component%20Verification.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%207/Voting%20Component%20Verification.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
</div>
<div>
<div class="chapter-label"><h2><a id="ch8">Chapter 8 - Advanced Topics and Applications</a></h2></div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/ExampleHubNet.jpg">
</div>
<div class="model-description">
<div class="model-name">HubNet Example <span class="model-page">(p. 360)</span></div>
This model provides the basic structure of the code for a HubNet model. For this reason, the model is very simple: all that each participant can do is move their turtle around the world.<br/><br/>
This model can be used as a template to build more complex participatory simulations
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM Textbook/chapter 8/Example HubNet.nlogo" class="model-download-link">Download</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/HubNetAvoidance.jpg">
</div>
<div class="model-description">
<div class="model-name">Disease With Android Avoidance HubNet <span class="model-page">(p. 361)</span></div>
This model simulates the spread of a disease through a population. This population can consist of either students, which are turtles controlled by individual students via the HubNet Client, or turtles that are generated and controlled by NetLogo, called androids, or both androids and students.<br/><br/>
This model is a slight variant of the DISEASE-HUBNET model in the NetLogo models library. It extends that model by allowing androids to have 3 distinct behaviors.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Disease%20With%20Android%20Avoidance%20HubNet.nlogo" class="model-download-link">Download</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/arduino.jpg">
</div>
<div class="model-description">
<div class="model-name">Arduino Example <span class="model-page">(p. 379)</span></div>
This model should give a sense for the process of controlling an Arduino board with NetLogo. In it, we use only the Arduino’s onboard LED, located next to pin 13 (and connected to that pin). This example simply allows NetLogo to turn that LED on or off.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Arduino%20Example.nlogo" class="model-download-link">Download Arduino Example</a>
</div>
<div style="padding-top:8px;">
<a href="models/Arduino_IABM_Sketch.ino" class="model-download-link">Download Arduino sketch file</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/RunAndRunResult.jpg">
</div>
<div class="model-description">
<div class="model-name">Run & Run Result Examples <span class="model-page">(p. 394)</span></div>
The Run Example model illustrates how to use the RUN command in NetLogo, which enables the runtime execution of different commands that are encoded as text. This is often useful if you want to construct turtle commands on the fly.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Run%20Example.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Run%20Example.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div><br/>
The Run Result Example model illustrates how to use the RUN-RESULT command in NetLogo, which enables the runtime execution of different commands that are encoded as text and reports a result. As opposed to the RUN command which executes procedures the RUN-RESULT command works as a runtime reporter.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Run%20Result%20Example.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Run%20Result%20Example.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SimpleMachineLearning.png">
</div>
<div class="model-description">
<div class="model-name">Simple Machine Learning <span class="model-page">(p. 398)</span></div>
This model illustrates how to integrate machine learning with agent-based modeling. The model creates a set of turtles whose goal is to get to the upper right corner of the world. The turtles start with random strategies, but the model then uses an evolutionary approach they improve their strategies over time to reach this corner.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Simple%20Machine%20Learning.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Simple%20Machine%20Learning.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SandpileSimple.png">
</div>
<div class="model-description">
<div class="model-name">Sandpile Simple <span class="model-page">(p. 400)</span></div>
The Bak–Tang–Wiesenfeld sandpile model demonstrates the concept of “self-organized criticality”. It further demonstrates that complexity can emerge from simple rules and that a system can arrive at a critical state spontaneously rather than through the fine tuning of precise parameters.
<div style="padding-top:8px;">
<a href="https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Sandpile%20Simple.nlogo" class="model-download-link">Download</a>
| <a href="https://netlogoweb.org/launch#https://netlogoweb.org/assets/modelslib/IABM%20Textbook/chapter%208/Sandpile%20Simple.nlogo" class="nlw-link">Try it in NetLogo Web</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/TicketSales.png">
</div>
<div class="model-description">
<div class="model-name">Ticket Sales <span class="model-page">(p. 403)</span></div>
The general intent of this model is to simulate how individuals within a limited geographic region decide to buy tickets to a live event.
<div style="padding-top:8px;">
<a href="models/Ticket Sales.nlogo" class="model-download-link">Download the model</a>
</div>
<div style="padding-top:8px;">
<a href="models/TicketSalesData.zip" class="model-download-link">Download the data</a>
</div>
</div>
</div>
<div class="model-container">
<div class="model-image-wrapper">
<img class="model-image" src="models/images/SimpleViralMarketing.png">
</div>
<div class="model-description">
<div class="model-name">Simple Viral Marketing <span class="model-page">(p. 409)</span></div>
This model is a simple experiment that allows researchers to examine how to best seed a network to maximize the adoption rate of a product by using viral marketing.<br/><br/>
Its purpose is to allow you to explore the relationship between different centrality measures, and different network types, and see if the interactions between them make for faster or slower spread of the product.
<div style="padding-top:8px;">
<a href="models/Simple Viral Marketing.nlogo" class="model-download-link">Download</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
// Cache selectors
var lastId,
topMenu = $("#top-menu"),
topMenuHeight = topMenu.outerHeight()+15,
// All list items
menuItems = topMenu.find("a"),
// Anchors corresponding to menu items
scrollItems = menuItems.map(function(){
var item = $($(this).attr("href"));
if (item.length) { return item; }
});
// Bind click handler to menu items
// so we can get a fancy scroll animation
menuItems.click(function(e){
var href = $(this).attr("href"),
offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1;
$('html, body').stop().animate({
scrollTop: offsetTop - 50
}, 300);
e.preventDefault();
});
// Bind to scroll
$(window).scroll(function(){
// Get container scroll position
var fromTop = $(this).scrollTop()+topMenuHeight + 55;
// Get id of current scroll item
var cur = scrollItems.map(function(){
if ($(this).offset().top < fromTop)
return this;
});
// Get the id of the current element
cur = cur[cur.length-1];
var id = cur && cur.length ? cur[0].id : "";
if (lastId !== id) {
lastId = id;
// Set/remove active class
menuItems
.parent().removeClass("active")
.end().filter("[href=#"+id+"]").parent().addClass("active");
}
});
// sticky header stuff
$(function(){
// Check the initial Poistion of the Sticky Header
var stickyHeaderTop = $('#top-menu').offset().top;
var stickyHeaderLeft = $('#top-menu').offset().left;
$(window).scroll(function(){
if( $(window).scrollTop() > stickyHeaderTop ) {
$('#top-menu').css({position: 'fixed', top: '0px', left: stickyHeaderLeft});
$('#modelsStart').css('display', 'block');
} else {
$('#top-menu').css({position: 'static', top: '0px'});
$('#modelsStart').css('display', 'none');
}
});
});
</script>