Presentation is loading. Please wait.

Presentation is loading. Please wait.

CITS4403 Computational Modelling Agent Based Models.

Similar presentations


Presentation on theme: "CITS4403 Computational Modelling Agent Based Models."— Presentation transcript:

1 CITS4403 Computational Modelling Agent Based Models

2 Agents Agents represent entities in a system which are able to perform actions, and respond to local information according to a set of rules. Intelligent software agents are often designed around the Belief- Desire-Intention model. Multi-agent systems are able to achieve complex goals using relatively simple agents. Agent based models are an easy way to model the effects of basic assumptions.

3 Segregation The Schelling model of the world is a grid; each cell represents a house. The houses are occupied by two kinds of “agents,” labeled red and blue, in roughly equal numbers. At any point in time, an agent might be happy or unhappy, depending on the other agents in the neighborhood. The neighborhood of each house is the set of eight adjacent cells, and agents are unhappy if they have less than 2 neighbours like themselves. If they’re unhappy, they move to an arbitrary empty cell.

4 Emergent behaviour From very simple rules we notice segregation as an emergent property. Note agents are not opposed to the other type, they are just seeking familiarity. What is a good measure of segregation?

5 Agent-Based Programming Agent Oriented Programming is an programming paradigm that uses software agents working towards local goals to achieve global results. Netlogo (http://ccl.northwestern.edu/netlogo/) is a good example of an agent oriented language, which has an excellent model library:http://ccl.northwestern.edu/netlogo/

6 Agent-based models The characteristics of agent-based models include: Agents that model intelligent behavior, usually with a simple set of rules. The agents are usually situated in space (or in a network), and interact with each other locally. They usually have imperfect, local information. Often there is variability between agents. Often there are random elements, either among the agents or in the world.

7 Traffic Jams Traffic models are a classic example of agent based modelling. The Highway is a one-lane road that forms a circle, but it is displayed as a series of rows that spiral down the canvas. Each driver starts with a random position and speed. At each time step, each Driver accelerates or brakes based on the distance between it and the Driver in front.

8 Boids Agents in this models are called “boids”. Each agent simulates three behaviors: Collision avoidance: avoid obstacles, including other birds. Flock centering: move toward the center of the flock. Velocity matching: align velocity with neighboring birds. Boids make decisions based on local information only; each boid only sees (or pays attention to) other boids in its field of vision and range.

9 Prisoner’s Dilema Two suspects [Alice and Bob] are arrested by the police. The police have insufficient evidence for a conviction, and, having separated the prisoners, visit each of them to offer the same deal. If one testifies against the other (defects) and the other remains silent (cooperates), the defector goes free and the silent accomplice receives the full one-year sentence. If both remain silent, both prisoners are sentenced to only one month in jail for a minor charge. If each betrays the other, each receives a three- month sentence.

10 Iterated Prisoners Dilema What is the best strategy is the prisoners dilema? What if you had to repeatedly play the prisoner’s dilema with the same person, or with the same population? In the late 1970s Robert Axelrod organized a tournament to compare strategies. Participants to submitted strategies, then played the programs against each other and kept score.

11 Emergence An emergent propertyis a characteristic of a system that results from the interaction of its components, not from their properties. Conventional science is based on the axiom that if you know the rules that govern a system, you can predict its behavior. However some systems are computationally irreducible: the only way to predict their properties is to execute the system. To some people, “emergence” is another name for ignorance: a property is emergent if we don’t have a reductionist explanation for it.

12

13 Emergent Properties Many complex systems have properties, as a whole, that their components do not: The Rule 30 cellular automaton is deterministic, and the rules that govern its evolution are completely known. Nevertheless, it generates a sequence that is statistically random. The agents in Schelling’s model are not racist, but the outcome of their interactions is as if they were. Traffic jams move backward even though the cars in them are moving forward. The behavior of flocks and herds emerges from local interactions between their members. As Axelrod says about the iterated prisoner’s dilemma: “The emergence of cooperation can be explained as a consequence of individual[s] pursuing their own interests.”

14 Free Will William James proposed a two-stage model in which possible actions are generated by a random process and then selected by a deterministic process David Hume suggested that our perception of making choices is an illusion; in that case, our actions are deterministic because the system that produces them is deterministic. Roger Penrose proposes that free will could be a consequence of quantum uncertainty. Free will is the ability to make choices, but if our bodies and brains are governed by deterministic physical laws, our actions would be determined. Some arguments are:


Download ppt "CITS4403 Computational Modelling Agent Based Models."

Similar presentations


Ads by Google