U.S. Department of Transportation
Federal Highway Administration
1200 New Jersey Avenue, SE
Washington, DC 20590
202-366-4000


Skip to content
Facebook iconYouTube iconTwitter iconFlickr iconLinkedInInstagram

Federal Highway Administration Research and Technology
Coordinating, Developing, and Delivering Highway Transportation Innovations

 
REPORT
This report is an archived publication and may contain dated technical, contact, and link information
Back to Publication List        
Publication Number:  FHWA-HRT-13-054    Date:  November 2013
Publication Number: FHWA-HRT-13-054
Date: November 2013

 

The Exploratory Advanced Research Program

A Primer for Agent-Based Simulation and Modeling in Transportation Applications

CHAPTER 1: Agent-Based Modeling and Simulation

Basic Concepts

ABMS is a modeling approach for simulating the actions and interactions of autonomous individuals, with a view to assessing their effects on the system as a whole. An essential idea of ABMS is that many phenomena, even complex ones, can be understood as systems of autonomous agents that follow rules of interaction.(1) Repetitive, competitive interactions between agents are major features of ABMS, which rely on the power of computers to explore dynamics out of the reach of pure mathematical methods. In a traditional discrete event simulation, entities follow a sequence of processes, which are defined from the top-down system perspective. In contrast, ABMS defines the local behavior rules, usually simple, of each entity from a bottom-up perspective. In accordance, simulation results reveal the emerging behaviors of a system as a whole, based on the behavior formations of the underlying entities. The main roots of ABMS are in modeling human social and organizational behavior and individual decisionmaking.(2)

What Is an Agent?

There is no universal definition of the term agent, as agent could refer to different components when studying different objectives in different paradigms. Some may consider any type of distinguished parts of a program (e.g., model, system, or subsystem), or any type of independent entity (e.g., organization, firm, or individual people), to be an agent. As shown in figure 1, the agent is programmed to react to other agents and the computational environment in which it is located,(3) with a behavior rule ranging from primitive reaction decisions to complex adaptive AI.(4) [figure 1]

According to Macal and North,(4) an agent in a typical ABMS could be defined as follows:

A diagram describing the features of a typical agent and its interaction with the environment and other agents. In the center of the diagram is a blue capsular field that contains a bulleted list with the heading Agent; the bullets underneath are: Attributes, Behavioral rules, Memory, Resources, Decision making sophistication, and Rules to modify behavioral rules. A green double-sided arrow is pointing to and from the capsule and the phrase Other agents written above the capsule; another green double-sided arrow is pointing to and from the capsule and the word Environment written below the capsule.

Scope of ABMS

Agent-based models consist of agents that interact within an environment. Agent-based modeling has been called by various names in the broad base of its applications, which could refer to completely different methodologies. In a computing scientific domain (e.g., AI or distributed autonomous systems), agent-based modeling typically refers to a computational method and simulation for studying the actions and interactions of a set of autonomous entities. It is also called a multi-agent system (MAS) or agent-based system. In non-computing-related scientific domains (e.g., ecological science or life science), Agent-Based models usually refer to the individual-based models.

In social sciences, agent-based modeling could refer to an actor in the social world. In recent years, in agent-based social simulation (ABSS) that mimics social phenomena, the concept of autonomous agents has become well-known. Davidsson(5) classifies research areas in ABSS into social aspects of agent systems (SAAS), multi-agent-based simulation (MABS), and social simulation (SocSim). This classification depends upon different combinations of focus areas, which include agent-based computing, computer simulation, and social science. First, SAAS focuses more on social science and agent-based computing and includes the study of norms, institutions, organizations, cooperation, and competition, among others. Second, research in the intersection between computer simulation and agent-based computing is referred to as MABS and uses agent technology for simulating any phenomena other than social phenomena. Third, SocSim is in the intersection between social science and computer simulation and corresponds to the simulation of social phenomena on a computer that uses typically simple models of the simulated social entities, such as cellular automata. In transportation research and applications, which are the focus of this primer, the keyword of agent-based modeling is mostly seen referring to an individual-based model and simulation or an autonomous computing method.

Although agent-based modeling is a diverse research paradigm applied in completely different ways in a large and widely spread scientific field, all eventually tie together in the domain of agent-based computing.(6) The term ABMS in this primer covers all semantics referenced above.

It is worth noting that an agent-based system could also be a software method, such as defined by the Institute of Electrical and Electronics Engineers' Foundation for Intelligent Physical Agents, an international agent standard. The ABMS agents in this primer exclude the software method, in which agents (including mobile agents) are lightweight software proxies that roam over the World Wide Web and perform various functions.(6)

Backgrounds of ABMS

ABMS evolved from AI and computer science but is now being developed independently in research centers throughout the world. The history of ABMS can be traced back to John Von Neumann, who conceived and developed a device later known as cellular automata.

In the 1970s, John Conway developed the Game of Life, a two-dimensional (2D) cellular automata shown in figure 2.(7)

Two screenshots of a Game of Life simulation. The screenshot on the left is Generation 0, which shows the initial layout of cells in the Alive state. The cells (depicted in red) are randomly distributed. The screenshot on the right shows Generation 30, after the cells have been updated 30 times; instead of being randomly distributed, in this update the cells are now arranged into discrete groups

A cell has two states, alive and dead; the state of a cell depends on the state of the neighbors of the previous time step. Conways's game engendered great interest in the emergence of complexity from simple rules.

Interest continued to grow and diversify in the 1990s with the appearance of various tools, particularly Swarm and NetLogo in the mid-1990s and Recursive Porous Agent Simulation Toolkit (Repast) and AnyLogic in 2000.

In the mid-1990s, Joshua Epstein and Robert Axtell(9) developed Sugarscape, an artificially intelligent ABSS, which captures fundamental concepts of social sciences. At each grid point on a plane, sugar grew at a constant rate. A set of agents, with a fixed, randomly determined level of vision and metabolism, find and eat sugar on the sugarscape. If sugar at one place was exhausted, the agent then moved to a new location where it had the maximum sugar within its vision. This simple system of rules led to migration phenomenon. More rules created additional interesting results. Epstein and Axtell added spice, a second resource similar to sugar. This showed that with barter economies, agents had a higher chance of survival. They added sex and, when there was sufficient sugar, the agents would reproduce. This led to age pyramids, tribal growth, and other demographic features. Other rules led to combat and other evocative results. Sugarscape showed how simple rules could create a complex society in a bottom-up manner, as shown in figure 3, and inspired further growth in agent-based modeling. In the late 1990s, computer power advanced significantly, and ABMS became widespread.

The diagram depicts a blue arrow that arches up and to the right. There are three dots on the arrow, one for each ever-more-complex stage of ABMS. At the bottom of the arrow is the first dot, which represents Local rules; under Local rules is a bullet point for Agents. The next dot up represents Adaptive, emerging behaviors; under this dot is the bullet neighborhood agents. The final and highest dot represents System performance; under this are two bullets: (1) System dynamics, and (2) Environment.

The field of CAS is sometimes referenced as providing the historical roots of ABMS. CAS draws its primary inspiration from biological systems and is concerned mainly with how complex adaptive behavior, as shown in figure 4, emerges in nature from the interaction among autonomous agents.(10) One of the fundamental contributions made to the field of CAS, and to ABMS as well, was John Holland's identification of the four properties-aggregation, nonlinearity, flows, and diversity-and three mechanisms-tagging, internal models, and building blocks-that compose all CAS. Essentially, these items have aided in defining and designing ABMS as they are known today.(10)

Two screenshots depicting agent configuration. The screenshot on the left shows the initial random configuration. The second screenshot on the right shows the configuration after 500 updates; in this second screenshot the agents are organized into groups on the left side of the screen.

The Need for ABMS

The ABMS approach allows one to represent and analyze a complex problem (e.g., system dynamics) beyond the reach of mathematics or traditional modeling tools. Advances in database technology (allowing a finer level of granularity) and computational power allow one to compute large-scale microsimulation models that would not have been possible even recently.(11) This feature of ABMS has contributed to the field of computer simulation by providing a new paradigm for the simulation of complex systems with many interactions between the entities of the system.(5) In microsimulations, the structure is viewed as emergent from the interactions between the individuals, whereas in macrosimulations, the set of individuals is viewed as a structure that can be characterized by a number of variables.

Bonabeau(2) summarized the benefits of ABMS over other modeling techniques as follows:

Specifically, ABMS is superior in modeling the following situations:

Challenges in ABMS

Despite the substantial benefits of ABMS discussed in the previous section, there are several challenges associated with ABMS. Samuelson(12) pointed out that many complex ABMS deal with sufficiently sensitive issues, in which validation becomes problematic, and this difficulty increases as models become more complex. In addition, simulating detailed behaviors of underlying agents could be extremely intensive in computation and therefore become time-consuming.(2) Although the computing power is growing at an impressive pace, the high computational requirements of ABMS remain a problem when it comes to modeling extremely large systems.

In a similar vein, Jennings(13) identified two major drawbacks associated with ABMS:

Another issue of ABMS in the social science field is that it often involves human agents with potentially irrational behavior, subjective choices, and complex psychology. All of these factors are difficult to measure, quantify, calibrate, and sometimes justify.(2)

ABMS Applications

Practical ABMS is actively being applied in many areas. Examples of applications include the modeling of organizational behavior and psychology,(14) team working,(15) supply chain management and logistics,(16) consumer behavior,(17) social networks,(18) distributed computing, transportation management,(19) and environmental study.(20) In these applications, and in the example shown in figure 5, the system of interest is simulated by capturing the behavior of individual agents and their interconnections. Agent-based modeling tools can be used to test how changes in individual behaviors will affect the system's emerging overall behavior.

ABMS has also been applied to various domains in social and society studies, including population dynamics,(21) the spread of epidemics,(22) biological applications, civilization development,(23) and military applications.(24)

Three screenshots show various autonomous agents (colored red, white, blue, and orange) interacting.

In their review, Macal and North(4) classified these ABMS applications into two categories, as follows:

A short list of ABMS applications summarized by Macal and North is presented in table 1.

Table 1. Agent-based modeling applications (Source: Macal & North(4))

Business Organizations Society and Culture
  • Manufacturing operations
  • Ancient civilizations
  • Supply chains
  • Civil disobedience
  • Consumer markets
  • Social determinants of terrorism
  • Insurance industry
  • Organizational networks
Economics Military
  • Artificial financial markets
  • Command and control
  • Trade networks
  • Force-on-force
Infrastructure

Biology

  • Electric power markets
  • Population dynamics
  • Transportation
  • Ecological networks
  • Hydrogen infrastructure
  • Animal group behavior
Crowds
  • Cell behavior and subcellular processes
  • Pedestrian movement
 
  • Evacuation modeling
 

An Example of ABMS in the Supply Chain

For this section, the researchers use an example from Macal and North(11) to illustrate the general components of an agent-based model, and general methods of modeling an agent-based system, in the supply chain context.

Consider a generic supply chain system consisting of five stages: factories, distributors, wholesalers, retailers, and customers. Each stage is modeled by a set of individual entities, or agents, which interact with each other to form a supply chain network, as shown in figure 6.

For simplicity, the suppliers are ignored. There is only one commodity, no transformation of goods is made, and no assembly of materials into products is required. The flows of goods and information in the form of orders between stages (agents), as well as physical shipments, are included in the model. The flows of payments and the complexities of pricing, negotiation, and financial accounting that this would entail are not included in this simple model.

Local rules, or behaviors, of the agents that model the flows of goods are specified as follows:

The goal of the agents at each stage (retailer, wholesaler, and factory) is to manage their inventory at an optimized level such that their net costs are minimized (or net gains are maximized). When inventories are low, there is a chance of losing profits because of running out of stock. When inventories are large, agents have to maintain high inventory holding costs. Agents control their inventory level by following their local rules and by processing local information, such that their own benefits are maximal. Local rules dominate the operating mechanism of the system, because none of the agents can access global information (e.g., information other than an agent's neighborhood), none of the agents has a global view of the supply chain, and none of the agents is interested in optimizing the system as a whole. Through local rules of individual entities in this supply chain system, it is expected to observe the emergent behavior, which ultimately could exhibit an equilibrium state for agents at each stage.

In this example, local information refers to the experienced order histories that have been received from neighborhood agents (upstream and downstream), local rules are the set of rules to maintain a desired inventory level, and emergent behavior refers to the equilibrium for each agent.

The diagram shows the increasingly complex relationships between the five stages of a typical supply chain system. Each stage has its own agents, which are depicted in different colors. Blue lines connect each agent, showing the flow of goods from agent to agent. The top of the diagram is the simplest level; the bottom is the most complex. The agents of each level interact with those immediately above and immediately below them. At the top of the diagram are factories (shown in this example with two peach-colored agents). The next level down is distributors (shown with three green agents). The next level is wholesalers (shown with four blue agents). The next level is retailers (five purple agents). Finally, the bottom level is customers (six yellow agents). With each level the number of blue lines showing the flow of good increases and the network becomes more complex.

 

Federal Highway Administration | 1200 New Jersey Avenue, SE | Washington, DC 20590 | 202-366-4000
Turner-Fairbank Highway Research Center | 6300 Georgetown Pike | McLean, VA | 22101